3 # from OpenLDAP: pkg/ldap/configure.in,v 1.478.2.9 2003/12/01 00:58:21 kurt Exp
5 # This work is part of OpenLDAP Software <http://www.openldap.org/>.
7 # Copyright 1998-2003 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-2003 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]"
147 SLURPD (Replication Daemon) Options:"
149 --enable-slurpd enable building slurpd [auto]"
152 Library Generation & Linking Options"
154 --enable-static[=PKGS] build static libraries [default=yes]"
156 --enable-shared[=PKGS] build shared libraries [default=yes]"
158 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
160 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
162 # Find the correct PATH separator. Usually this is `:', but
163 # DJGPP uses `;' like DOS.
164 if test "X${PATH_SEPARATOR+set}" != Xset; then
165 UNAME=${UNAME-`uname 2>/dev/null`}
167 *-DOS) lt_cv_sys_path_separator=';' ;;
168 *) lt_cv_sys_path_separator=':' ;;
170 PATH_SEPARATOR=$lt_cv_sys_path_separator
174 # Check that we are running under the correct shell.
175 SHELL=${CONFIG_SHELL-/bin/sh}
179 # Remove one level of quotation (which was required for Make).
180 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
185 if test "X$1" = X--no-reexec; then
186 # Discard the --no-reexec flag, and continue.
188 elif test "X$1" = X--fallback-echo; then
189 # Avoid inline document here, it may be left over
191 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
192 # Yippee, $echo works!
195 # Restart under the correct shell.
196 exec $SHELL "$0" --no-reexec ${1+"$@"}
199 if test "X$1" = X--fallback-echo; then
200 # used as fallback echo
208 # The HP-UX ksh and POSIX shell print the target directory to stdout
210 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
212 if test -z "$ECHO"; then
213 if test "X${echo_test_string+set}" != Xset; then
214 # find a string as large as possible, as long as the shell can cope with it
215 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
216 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
217 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
218 echo_test_string="`eval $cmd`" &&
219 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
226 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
227 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
228 test "X$echo_testing_string" = "X$echo_test_string"; then
231 # The Solaris, AIX, and Digital Unix default echo programs unquote
232 # backslashes. This makes it impossible to quote backslashes using
233 # echo "$something" | sed 's/\\/\\\\/g'
235 # So, first we look for a working echo in the user's PATH.
237 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
238 for dir in $PATH /usr/ucb; do
239 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
240 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
241 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
242 test "X$echo_testing_string" = "X$echo_test_string"; then
249 if test "X$echo" = Xecho; then
250 # We didn't find a better echo, so look for alternatives.
251 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
252 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
253 test "X$echo_testing_string" = "X$echo_test_string"; then
254 # This shell has a builtin print -r that does the trick.
256 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
257 test "X$CONFIG_SHELL" != X/bin/ksh; then
258 # If we have ksh, try running configure again with it.
259 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
260 export ORIGINAL_CONFIG_SHELL
261 CONFIG_SHELL=/bin/ksh
263 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
267 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
268 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
269 test "X$echo_testing_string" = "X$echo_test_string"; then
272 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
273 test "X$echo_testing_string" = 'X\t' &&
274 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
275 test "X$echo_testing_string" = "X$echo_test_string"; then
276 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
278 SHELL="$CONFIG_SHELL"
280 echo="$CONFIG_SHELL $0 --fallback-echo"
281 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
282 test "X$echo_testing_string" = 'X\t' &&
283 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
284 test "X$echo_testing_string" = "X$echo_test_string"; then
285 echo="$CONFIG_SHELL $0 --fallback-echo"
287 # maybe with a smaller string...
290 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
291 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
298 if test "$prev" != 'sed 50q "$0"'; then
299 echo_test_string=`eval $prev`
300 export echo_test_string
301 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
303 # Oops. We lost completely, so just stick with echo.
312 # Copy echo and quote the copy suitably for passing to libtool from
313 # the Makefile, instead of quoting the original, which is used later.
315 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
316 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
321 --disable-libtool-lock avoid locking (might break parallel builds)"
323 --with-pic try to use only PIC/non-PIC objects [default=use both]"
326 See INSTALL file for further details."
328 # Initialize some variables set by options.
329 # The variables have the same names as the options, with
330 # dashes changed to underlines.
332 cache_file=./config.cache
341 program_transform_name=s,x,x,
349 bindir='${exec_prefix}/bin'
350 sbindir='${exec_prefix}/sbin'
351 libexecdir='${exec_prefix}/libexec'
352 datadir='${prefix}/share'
353 sysconfdir='${prefix}/etc'
354 sharedstatedir='${prefix}/com'
355 localstatedir='${prefix}/var'
356 libdir='${exec_prefix}/lib'
357 includedir='${prefix}/include'
358 oldincludedir='/usr/include'
359 infodir='${prefix}/info'
360 mandir='${prefix}/man'
362 # Initialize some other variables.
365 SHELL=${CONFIG_SHELL-/bin/sh}
366 # Maximum number of lines to put in a shell here document.
373 # If the previous option needs an argument, assign it.
374 if test -n "$ac_prev"; then
375 eval "$ac_prev=\$ac_option"
381 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
385 # Accept the important Cygnus configure options, so we can diagnose typos.
389 -bindir | --bindir | --bindi | --bind | --bin | --bi)
391 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
392 bindir="$ac_optarg" ;;
394 -build | --build | --buil | --bui | --bu)
396 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
397 build="$ac_optarg" ;;
399 -cache-file | --cache-file | --cache-fil | --cache-fi \
400 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
401 ac_prev=cache_file ;;
402 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
403 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
404 cache_file="$ac_optarg" ;;
406 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
408 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
410 datadir="$ac_optarg" ;;
412 -disable-* | --disable-*)
413 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
414 # Reject names that are not valid shell variable names.
415 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
416 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
418 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
419 eval "enable_${ac_feature}=no" ;;
421 -enable-* | --enable-*)
422 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
423 # Reject names that are not valid shell variable names.
424 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
425 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
427 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
432 eval "enable_${ac_feature}='$ac_optarg'" ;;
434 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
435 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
436 | --exec | --exe | --ex)
437 ac_prev=exec_prefix ;;
438 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
439 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
440 | --exec=* | --exe=* | --ex=*)
441 exec_prefix="$ac_optarg" ;;
443 -gas | --gas | --ga | --g)
444 # Obsolete; use --with-gas.
447 -help | --help | --hel | --he)
448 # Omit some internal or obsolete options to make the list less imposing.
449 # This message is too long to be a string in the A/UX 3.1 sh.
451 Usage: configure [options] [host]
452 Options: [defaults in brackets after descriptions]
454 --cache-file=FILE cache test results in FILE
455 --help print this message
456 --no-create do not create output files
457 --quiet, --silent do not print \`checking...' messages
458 --version print the version of autoconf that created configure
459 Directory and file names:
460 --prefix=PREFIX install architecture-independent files in PREFIX
462 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
464 --bindir=DIR user executables in DIR [EPREFIX/bin]
465 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
466 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
467 --datadir=DIR read-only architecture-independent data in DIR
469 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
470 --sharedstatedir=DIR modifiable architecture-independent data in DIR
472 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
473 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
474 --includedir=DIR C header files in DIR [PREFIX/include]
475 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
476 --infodir=DIR info documentation in DIR [PREFIX/info]
477 --mandir=DIR man documentation in DIR [PREFIX/man]
478 --srcdir=DIR find the sources in DIR [configure dir or ..]
479 --program-prefix=PREFIX prepend PREFIX to installed program names
480 --program-suffix=SUFFIX append SUFFIX to installed program names
481 --program-transform-name=PROGRAM
482 run sed PROGRAM on installed program names
486 --build=BUILD configure for building on BUILD [BUILD=HOST]
487 --host=HOST configure for HOST [guessed]
488 --target=TARGET configure for TARGET [TARGET=HOST]
489 Features and packages:
490 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
491 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
492 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
493 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
494 --x-includes=DIR X include files are in DIR
495 --x-libraries=DIR X library files are in DIR
497 if test -n "$ac_help"; then
498 echo "--enable and --with options recognized:$ac_help"
502 -host | --host | --hos | --ho)
504 -host=* | --host=* | --hos=* | --ho=*)
507 -includedir | --includedir | --includedi | --included | --include \
508 | --includ | --inclu | --incl | --inc)
509 ac_prev=includedir ;;
510 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
511 | --includ=* | --inclu=* | --incl=* | --inc=*)
512 includedir="$ac_optarg" ;;
514 -infodir | --infodir | --infodi | --infod | --info | --inf)
516 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
517 infodir="$ac_optarg" ;;
519 -libdir | --libdir | --libdi | --libd)
521 -libdir=* | --libdir=* | --libdi=* | --libd=*)
522 libdir="$ac_optarg" ;;
524 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
525 | --libexe | --libex | --libe)
526 ac_prev=libexecdir ;;
527 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
528 | --libexe=* | --libex=* | --libe=*)
529 libexecdir="$ac_optarg" ;;
531 -localstatedir | --localstatedir | --localstatedi | --localstated \
532 | --localstate | --localstat | --localsta | --localst \
533 | --locals | --local | --loca | --loc | --lo)
534 ac_prev=localstatedir ;;
535 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
536 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
537 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
538 localstatedir="$ac_optarg" ;;
540 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
542 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
543 mandir="$ac_optarg" ;;
546 # Obsolete; use --without-fp.
549 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
553 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
554 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
557 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
558 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
559 | --oldin | --oldi | --old | --ol | --o)
560 ac_prev=oldincludedir ;;
561 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
562 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
563 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
564 oldincludedir="$ac_optarg" ;;
566 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
568 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
569 prefix="$ac_optarg" ;;
571 -program-prefix | --program-prefix | --program-prefi | --program-pref \
572 | --program-pre | --program-pr | --program-p)
573 ac_prev=program_prefix ;;
574 -program-prefix=* | --program-prefix=* | --program-prefi=* \
575 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
576 program_prefix="$ac_optarg" ;;
578 -program-suffix | --program-suffix | --program-suffi | --program-suff \
579 | --program-suf | --program-su | --program-s)
580 ac_prev=program_suffix ;;
581 -program-suffix=* | --program-suffix=* | --program-suffi=* \
582 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
583 program_suffix="$ac_optarg" ;;
585 -program-transform-name | --program-transform-name \
586 | --program-transform-nam | --program-transform-na \
587 | --program-transform-n | --program-transform- \
588 | --program-transform | --program-transfor \
589 | --program-transfo | --program-transf \
590 | --program-trans | --program-tran \
591 | --progr-tra | --program-tr | --program-t)
592 ac_prev=program_transform_name ;;
593 -program-transform-name=* | --program-transform-name=* \
594 | --program-transform-nam=* | --program-transform-na=* \
595 | --program-transform-n=* | --program-transform-=* \
596 | --program-transform=* | --program-transfor=* \
597 | --program-transfo=* | --program-transf=* \
598 | --program-trans=* | --program-tran=* \
599 | --progr-tra=* | --program-tr=* | --program-t=*)
600 program_transform_name="$ac_optarg" ;;
602 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
603 | -silent | --silent | --silen | --sile | --sil)
606 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
608 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
610 sbindir="$ac_optarg" ;;
612 -sharedstatedir | --sharedstatedir | --sharedstatedi \
613 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
614 | --sharedst | --shareds | --shared | --share | --shar \
616 ac_prev=sharedstatedir ;;
617 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
618 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
619 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
621 sharedstatedir="$ac_optarg" ;;
623 -site | --site | --sit)
625 -site=* | --site=* | --sit=*)
628 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
630 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
631 srcdir="$ac_optarg" ;;
633 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
634 | --syscon | --sysco | --sysc | --sys | --sy)
635 ac_prev=sysconfdir ;;
636 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
637 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
638 sysconfdir="$ac_optarg" ;;
640 -target | --target | --targe | --targ | --tar | --ta | --t)
642 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
643 target="$ac_optarg" ;;
645 -v | -verbose | --verbose | --verbos | --verbo | --verb)
648 -version | --version | --versio | --versi | --vers)
649 echo "configure generated by autoconf version 2.13.1"
653 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
654 # Reject names that are not valid shell variable names.
655 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
656 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
658 ac_package=`echo $ac_package| sed 's/-/_/g'`
663 eval "with_${ac_package}='$ac_optarg'" ;;
665 -without-* | --without-*)
666 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
667 # Reject names that are not valid shell variable names.
668 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
669 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
671 ac_package=`echo $ac_package| sed 's/-/_/g'`
672 eval "with_${ac_package}=no" ;;
675 # Obsolete; use --with-x.
678 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
679 | --x-incl | --x-inc | --x-in | --x-i)
680 ac_prev=x_includes ;;
681 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
682 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
683 x_includes="$ac_optarg" ;;
685 -x-libraries | --x-libraries | --x-librarie | --x-librari \
686 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
687 ac_prev=x_libraries ;;
688 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
689 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
690 x_libraries="$ac_optarg" ;;
692 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
696 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
697 echo "configure: warning: $ac_option: invalid host type" 1>&2
699 if test "x$nonopt" != xNONE; then
700 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
708 if test -n "$ac_prev"; then
709 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
712 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
714 # File descriptor usage:
717 # 2 errors and warnings
718 # 3 some systems may open it to /dev/tty
719 # 4 used on the Kubota Titan
720 # 6 checking for... messages and results
721 # 5 compiler messages saved in config.log
722 if test "$silent" = yes; then
730 This file contains any messages produced by compilers while
731 running configure, to aid debugging if configure makes a mistake.
734 # Strip out --no-create and --no-recursion so they do not pile up.
735 # Also quote any args containing shell metacharacters.
740 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
741 | --no-cr | --no-c) ;;
742 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
743 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
744 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
745 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
746 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
751 # Only set these to C if already set. These must not be set unconditionally
752 # because not all systems understand e.g. LANG=C (notably SCO).
753 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
754 # Non-C LC_CTYPE values break the ctype check.
755 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
756 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
757 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
758 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
760 # confdefs.h avoids OS command line length limits that DEFS can exceed.
761 rm -rf conftest* confdefs.h
762 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
765 # A filename unique to this package, relative to the directory that
766 # configure is in, which we can look for to find out if srcdir is correct.
767 ac_unique_file=build/version.sh
769 # Find the source files, if location was not specified.
770 if test -z "$srcdir"; then
771 ac_srcdir_defaulted=yes
772 # Try the directory containing this script, then its parent.
774 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
775 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
777 if test ! -r $srcdir/$ac_unique_file; then
781 ac_srcdir_defaulted=no
783 if test ! -r $srcdir/$ac_unique_file; then
784 if test "$ac_srcdir_defaulted" = yes; then
785 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
787 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
790 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
792 # Prefer explicitly selected file to automatically selected ones.
793 if test -z "$CONFIG_SITE"; then
794 if test "x$prefix" != xNONE; then
795 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
797 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
800 for ac_site_file in $CONFIG_SITE; do
801 if test -r "$ac_site_file"; then
802 echo "loading site script $ac_site_file"
809 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
810 ac_cpp='$CPP $CPPFLAGS'
811 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
812 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
813 cross_compiling=$ac_cv_prog_cc_cross
817 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
818 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
819 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
826 ac_n= ac_c='\c' ac_t=
830 # set unset (borrowed from autoconf 2.49c)
831 if (OL_FOO=OL_FOO; unset OL_FOO) >/dev/null 2>&1; then
837 $ol_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
840 for ac_dir in build $srcdir/build; do
841 if test -f $ac_dir/install-sh; then
843 ac_install_sh="$ac_aux_dir/install-sh -c"
845 elif test -f $ac_dir/install.sh; then
847 ac_install_sh="$ac_aux_dir/install.sh -c"
849 elif test -f $ac_dir/shtool; then
851 ac_install_sh="$ac_aux_dir/shtool install -c"
855 if test -z "$ac_aux_dir"; then
856 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
858 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
859 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
860 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
862 eval `$ac_aux_dir/version.sh`
863 if test -z "$OL_STRING"; then
864 { echo "configure: error: could not determine version" 1>&2; exit 1; }
867 if test -f "$ac_aux_dir/shtool" -a ! -d $ac_aux_dir/shtool; then
868 ac_cv_shtool="$ac_aux_dir/shtool"
870 { echo "configure: error: no shtool found in $ac_aux_dir" 1>&2; exit 1; }
873 SHTOOL="$ac_cv_shtool"
875 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
876 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
879 if test -d $ac_aux_dir/CVS; then
880 OPENLDAP_CVS="(from CVS sources) "
883 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
886 echo $ac_n "checking host system type""... $ac_c" 1>&6
887 echo "configure:888: checking host system type" >&5
888 if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
890 # Make sure we can run config.sub.
891 if $ac_config_sub sun4 >/dev/null 2>&1; then :
892 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
895 ac_cv_host_alias=$host
896 case "$ac_cv_host_alias" in
900 if ac_cv_host_alias=`$ac_config_guess`; then :
901 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
903 *) ac_cv_host_alias=$nonopt ;;
907 ac_cv_host=`$ac_config_sub $ac_cv_host_alias`
908 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
909 ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
910 ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
912 echo $ac_n "(cached) $ac_c" 1>&6
915 echo "$ac_t""$ac_cv_host" 1>&6
918 host_alias=$ac_cv_host_alias
919 host_cpu=$ac_cv_host_cpu
920 host_vendor=$ac_cv_host_vendor
921 host_os=$ac_cv_host_os
927 echo $ac_n "checking target system type""... $ac_c" 1>&6
928 echo "configure:929: checking target system type" >&5
929 if test "x$ac_cv_target" = "x" || (test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
931 # Make sure we can run config.sub.
932 if $ac_config_sub sun4 >/dev/null 2>&1; then :
933 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
936 ac_cv_target_alias=$target
937 case "$ac_cv_target_alias" in
941 ac_cv_target_alias=$host_alias ;;
943 *) ac_cv_target_alias=$nonopt ;;
947 ac_cv_target=`$ac_config_sub $ac_cv_target_alias`
948 ac_cv_target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
949 ac_cv_target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
950 ac_cv_target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
952 echo $ac_n "(cached) $ac_c" 1>&6
955 echo "$ac_t""$ac_cv_target" 1>&6
958 target_alias=$ac_cv_target_alias
959 target_cpu=$ac_cv_target_cpu
960 target_vendor=$ac_cv_target_vendor
961 target_os=$ac_cv_target_os
967 echo $ac_n "checking build system type""... $ac_c" 1>&6
968 echo "configure:969: checking build system type" >&5
969 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
971 # Make sure we can run config.sub.
972 if $ac_config_sub sun4 >/dev/null 2>&1; then :
973 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
976 ac_cv_build_alias=$build
977 case "$ac_cv_build_alias" in
981 ac_cv_build_alias=$host_alias ;;
983 *) ac_cv_build_alias=$nonopt ;;
987 ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
988 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
989 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
990 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
992 echo $ac_n "(cached) $ac_c" 1>&6
995 echo "$ac_t""$ac_cv_build" 1>&6
998 build_alias=$ac_cv_build_alias
999 build_cpu=$ac_cv_build_cpu
1000 build_vendor=$ac_cv_build_vendor
1001 build_os=$ac_cv_build_os
1007 # Do some error checking and defaulting for the host and target type.
1009 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1012 # 1. You are not allowed to specify --host, --target, and nonopt at the
1014 # 2. Host defaults to nonopt.
1015 # 3. If nonopt is not specified, then host defaults to the current host,
1016 # as determined by config.guess.
1017 # 4. Target and build default to nonopt.
1018 # 5. If nonopt is not specified, then target and build default to host.
1020 # The aliases save the names the user supplied, while $host etc.
1021 # will get canonicalized.
1022 case $host---$target---$nonopt in
1023 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1024 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1027 test "$host_alias" != "$target_alias" &&
1028 test "$program_prefix$program_suffix$program_transform_name" = \
1030 program_prefix=${target_alias}-
1033 # Find a good install program. We prefer a C program (faster),
1034 # so one script is as good as another. But avoid the broken or
1035 # incompatible versions:
1036 # SysV /etc/install, /usr/sbin/install
1037 # SunOS /usr/etc/install
1038 # IRIX /sbin/install
1040 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1041 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1042 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1043 # ./install, which can be erroneously created by make from ./install.sh.
1044 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1045 echo "configure:1046: checking for a BSD compatible install" >&5
1046 if test -z "$INSTALL"; then
1047 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
1048 echo $ac_n "(cached) $ac_c" 1>&6
1050 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1051 for ac_dir in $PATH; do
1052 # Account for people who put trailing slashes in PATH elements.
1054 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1056 # OSF1 and SCO ODT 3.0 have their own names for install.
1057 # Don't use installbsd from OSF since it installs stuff as root
1059 for ac_prog in ginstall scoinst install; do
1060 if test -f $ac_dir/$ac_prog; then
1061 if test $ac_prog = install &&
1062 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1063 # AIX install. It has an incompatible calling convention.
1065 elif test $ac_prog = install &&
1066 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
1067 # program-specific install script used by HP pwplus--don't use.
1070 ac_cv_path_install="$ac_dir/$ac_prog -c"
1081 if test "${ac_cv_path_install+set}" = set; then
1082 INSTALL="$ac_cv_path_install"
1084 # As a last resort, use the slow shell script. We don't cache a
1085 # path for INSTALL within a source directory, because that will
1086 # break other packages using the cache if that directory is
1087 # removed, or if the path is relative.
1088 INSTALL="$ac_install_sh"
1091 echo "$ac_t""$INSTALL" 1>&6
1093 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1094 # It thinks the first close brace ends the variable substitution.
1095 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1097 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1099 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1101 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1102 echo "configure:1103: checking whether build environment is sane" >&5
1105 echo timestamp > conftestfile
1106 # Do `set' in a subshell so we don't clobber the current shell's
1107 # arguments. Must try -L first in case configure is actually a
1108 # symlink; some systems play weird games with the mod time of symlinks
1109 # (eg FreeBSD returns the mod time of the symlink's containing
1112 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1113 if test "$*" = "X"; then
1115 set X `ls -t $srcdir/configure conftestfile`
1117 if test "$*" != "X $srcdir/configure conftestfile" \
1118 && test "$*" != "X conftestfile $srcdir/configure"; then
1120 # If neither matched, then we have a broken ls. This can happen
1121 # if, for instance, CONFIG_SHELL is bash and it inherits a
1122 # broken ls alias from the environment. This has actually
1123 # happened. Such a system could not be considered "sane".
1124 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1125 alias in your environment" 1>&2; exit 1; }
1128 test "$2" = conftestfile
1134 { echo "configure: error: newly created file is older than distributed files!
1135 Check your system clock" 1>&2; exit 1; }
1138 echo "$ac_t""yes" 1>&6
1139 if test "$program_transform_name" = s,x,x,; then
1140 program_transform_name=
1142 # Double any \ or $. echo might interpret backslashes.
1143 cat <<\EOF_SED > conftestsed
1144 s,\\,\\\\,g; s,\$,$$,g
1146 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1149 test "$program_prefix" != NONE &&
1150 program_transform_name="s,^,${program_prefix},;$program_transform_name"
1151 # Use a double $ so make ignores it.
1152 test "$program_suffix" != NONE &&
1153 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
1155 # sed with no file args requires a program.
1156 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1158 for ac_prog in mawk gawk nawk awk
1160 # Extract the first word of "$ac_prog", so it can be a program name with args.
1161 set dummy $ac_prog; ac_word=$2
1162 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1163 echo "configure:1164: checking for $ac_word" >&5
1164 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
1165 echo $ac_n "(cached) $ac_c" 1>&6
1167 if test -n "$AWK"; then
1168 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1170 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1172 for ac_dir in $ac_dummy; do
1173 test -z "$ac_dir" && ac_dir=.
1174 if test -f $ac_dir/$ac_word; then
1175 ac_cv_prog_AWK="$ac_prog"
1182 AWK="$ac_cv_prog_AWK"
1183 if test -n "$AWK"; then
1184 echo "$ac_t""$AWK" 1>&6
1186 echo "$ac_t""no" 1>&6
1189 test -n "$AWK" && break
1192 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1193 echo "configure:1194: checking whether ${MAKE-make} sets \${MAKE}" >&5
1194 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1195 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1196 echo $ac_n "(cached) $ac_c" 1>&6
1198 cat > conftestmake <<\EOF
1200 @echo 'ac_maketemp="${MAKE}"'
1202 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1203 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1204 if test -n "$ac_maketemp"; then
1205 eval ac_cv_prog_make_${ac_make}_set=yes
1207 eval ac_cv_prog_make_${ac_make}_set=no
1211 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1212 echo "$ac_t""yes" 1>&6
1215 echo "$ac_t""no" 1>&6
1216 SET_MAKE="MAKE=${MAKE-make}"
1225 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1226 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1231 missing_dir=`cd $ac_aux_dir && pwd`
1232 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1233 echo "configure:1234: checking for working aclocal" >&5
1234 # Run test in a subshell; some versions of sh will print an error if
1235 # an executable is not found, even if stderr is redirected.
1236 # Redirect stdin to placate older versions of autoconf. Sigh.
1237 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1239 echo "$ac_t""found" 1>&6
1241 ACLOCAL="$missing_dir/missing aclocal"
1242 echo "$ac_t""missing" 1>&6
1245 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1246 echo "configure:1247: checking for working autoconf" >&5
1247 # Run test in a subshell; some versions of sh will print an error if
1248 # an executable is not found, even if stderr is redirected.
1249 # Redirect stdin to placate older versions of autoconf. Sigh.
1250 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1252 echo "$ac_t""found" 1>&6
1254 AUTOCONF="$missing_dir/missing autoconf"
1255 echo "$ac_t""missing" 1>&6
1258 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1259 echo "configure:1260: checking for working automake" >&5
1260 # Run test in a subshell; some versions of sh will print an error if
1261 # an executable is not found, even if stderr is redirected.
1262 # Redirect stdin to placate older versions of autoconf. Sigh.
1263 if (automake --version) < /dev/null > /dev/null 2>&1; then
1265 echo "$ac_t""found" 1>&6
1267 AUTOMAKE="$missing_dir/missing automake"
1268 echo "$ac_t""missing" 1>&6
1271 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1272 echo "configure:1273: checking for working autoheader" >&5
1273 # Run test in a subshell; some versions of sh will print an error if
1274 # an executable is not found, even if stderr is redirected.
1275 # Redirect stdin to placate older versions of autoconf. Sigh.
1276 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1277 AUTOHEADER=autoheader
1278 echo "$ac_t""found" 1>&6
1280 AUTOHEADER="$missing_dir/missing autoheader"
1281 echo "$ac_t""missing" 1>&6
1284 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1285 echo "configure:1286: checking for working makeinfo" >&5
1286 # Run test in a subshell; some versions of sh will print an error if
1287 # an executable is not found, even if stderr is redirected.
1288 # Redirect stdin to placate older versions of autoconf. Sigh.
1289 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1291 echo "$ac_t""found" 1>&6
1293 MAKEINFO="$missing_dir/missing makeinfo"
1294 echo "$ac_t""missing" 1>&6
1297 install_sh="$missing_dir/install-sh"
1298 test -f "$install_sh" || install_sh="$missing_dir/install.sh"
1300 for ac_prog in gnutar gtar tar
1302 # Extract the first word of "$ac_prog", so it can be a program name with args.
1303 set dummy $ac_prog; ac_word=$2
1304 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1305 echo "configure:1306: checking for $ac_word" >&5
1306 if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then
1307 echo $ac_n "(cached) $ac_c" 1>&6
1309 if test -n "$AMTAR"; then
1310 ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
1312 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1314 for ac_dir in $ac_dummy; do
1315 test -z "$ac_dir" && ac_dir=.
1316 if test -f $ac_dir/$ac_word; then
1317 ac_cv_prog_AMTAR="$ac_prog"
1324 AMTAR="$ac_cv_prog_AMTAR"
1325 if test -n "$AMTAR"; then
1326 echo "$ac_t""$AMTAR" 1>&6
1328 echo "$ac_t""no" 1>&6
1331 test -n "$AMTAR" && break
1336 if test -n "$AMTAR"; then
1337 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
1342 cat >> confdefs.h <<EOF
1343 #define OPENLDAP_PACKAGE "$PACKAGE"
1346 cat >> confdefs.h <<EOF
1347 #define OPENLDAP_VERSION "$VERSION"
1351 cat >> confdefs.h <<EOF
1352 #define LDAP_VENDOR_VERSION $OL_API_INC
1355 cat >> confdefs.h <<EOF
1356 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
1359 cat >> confdefs.h <<EOF
1360 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
1363 cat >> confdefs.h <<EOF
1364 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
1368 OPENLDAP_LIBVERSION=$OL_API_LIB
1370 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
1374 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
1375 echo "configure:1376: checking configure arguments" >&5
1380 ldap_subdir="/openldap"
1382 # Check whether --with-subdir or --without-subdir was given.
1383 if test "${with_subdir+set}" = set; then
1384 withval="$with_subdir"
1391 ldap_subdir="$withval"
1394 ldap_subdir="/$withval"
1401 # OpenLDAP --enable-debug
1402 # Check whether --enable-debug or --disable-debug was given.
1403 if test "${enable_debug+set}" = set; then
1404 enableval="$enable_debug"
1407 for ol_val in auto yes no ; do
1408 if test "$enableval" = "$ol_val" ; then
1412 if test "$ol_arg" = "invalid" ; then
1413 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
1415 ol_enable_debug="$ol_arg"
1418 ol_enable_debug="yes"
1420 # end --enable-debug
1421 # OpenLDAP --enable-dynamic
1422 # Check whether --enable-dynamic or --disable-dynamic was given.
1423 if test "${enable_dynamic+set}" = set; then
1424 enableval="$enable_dynamic"
1427 for ol_val in auto yes no ; do
1428 if test "$enableval" = "$ol_val" ; then
1432 if test "$ol_arg" = "invalid" ; then
1433 { echo "configure: error: bad value $enableval for --enable-dynamic" 1>&2; exit 1; }
1435 ol_enable_dynamic="$ol_arg"
1438 ol_enable_dynamic="no"
1440 # end --enable-dynamic
1441 # OpenLDAP --enable-syslog
1442 # Check whether --enable-syslog or --disable-syslog was given.
1443 if test "${enable_syslog+set}" = set; then
1444 enableval="$enable_syslog"
1447 for ol_val in auto yes no ; do
1448 if test "$enableval" = "$ol_val" ; then
1452 if test "$ol_arg" = "invalid" ; then
1453 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
1455 ol_enable_syslog="$ol_arg"
1458 ol_enable_syslog="auto"
1460 # end --enable-syslog
1461 # OpenLDAP --enable-proctitle
1462 # Check whether --enable-proctitle or --disable-proctitle was given.
1463 if test "${enable_proctitle+set}" = set; then
1464 enableval="$enable_proctitle"
1467 for ol_val in auto yes no ; do
1468 if test "$enableval" = "$ol_val" ; then
1472 if test "$ol_arg" = "invalid" ; then
1473 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
1475 ol_enable_proctitle="$ol_arg"
1478 ol_enable_proctitle="yes"
1480 # end --enable-proctitle
1481 ol_enable_referrals=${ol_enable_referrals-no}
1482 ol_enable_kbind=${ol_enable_kbind-no}
1483 # OpenLDAP --enable-ipv6
1484 # Check whether --enable-ipv6 or --disable-ipv6 was given.
1485 if test "${enable_ipv6+set}" = set; then
1486 enableval="$enable_ipv6"
1489 for ol_val in auto yes no ; do
1490 if test "$enableval" = "$ol_val" ; then
1494 if test "$ol_arg" = "invalid" ; then
1495 { echo "configure: error: bad value $enableval for --enable-ipv6" 1>&2; exit 1; }
1497 ol_enable_ipv6="$ol_arg"
1500 ol_enable_ipv6="auto"
1503 # OpenLDAP --enable-local
1504 # Check whether --enable-local or --disable-local was given.
1505 if test "${enable_local+set}" = set; then
1506 enableval="$enable_local"
1509 for ol_val in auto yes no ; do
1510 if test "$enableval" = "$ol_val" ; then
1514 if test "$ol_arg" = "invalid" ; then
1515 { echo "configure: error: bad value $enableval for --enable-local" 1>&2; exit 1; }
1517 ol_enable_local="$ol_arg"
1520 ol_enable_local="auto"
1522 # end --enable-local
1523 # OpenLDAP --enable-x_compile
1524 # Check whether --enable-x_compile or --disable-x_compile was given.
1525 if test "${enable_x_compile+set}" = set; then
1526 enableval="$enable_x_compile"
1529 for ol_val in yes no ; do
1530 if test "$enableval" = "$ol_val" ; then
1534 if test "$ol_arg" = "invalid" ; then
1535 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1537 ol_enable_x_compile="$ol_arg"
1540 ol_enable_x_compile="no"
1542 # end --enable-x_compile
1545 # OpenLDAP --with-cyrus_sasl
1546 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
1547 if test "${with_cyrus_sasl+set}" = set; then
1548 withval="$with_cyrus_sasl"
1551 for ol_val in auto yes no ; do
1552 if test "$withval" = "$ol_val" ; then
1556 if test "$ol_arg" = "invalid" ; then
1557 { echo "configure: error: bad value $withval for --with-cyrus_sasl" 1>&2; exit 1; }
1559 ol_with_cyrus_sasl="$ol_arg"
1562 ol_with_cyrus_sasl="auto"
1564 # end --with-cyrus_sasl
1566 # OpenLDAP --with-fetch
1567 # Check whether --with-fetch or --without-fetch was given.
1568 if test "${with_fetch+set}" = set; then
1569 withval="$with_fetch"
1572 for ol_val in auto yes no ; do
1573 if test "$withval" = "$ol_val" ; then
1577 if test "$ol_arg" = "invalid" ; then
1578 { echo "configure: error: bad value $withval for --with-fetch" 1>&2; exit 1; }
1580 ol_with_fetch="$ol_arg"
1583 ol_with_fetch="auto"
1587 ol_with_kerberos=${ol_with_kerberos-auto}
1588 # OpenLDAP --with-threads
1589 # Check whether --with-threads or --without-threads was given.
1590 if test "${with_threads+set}" = set; then
1591 withval="$with_threads"
1594 for ol_val in auto nt posix mach pth lwp yes no manual ; do
1595 if test "$withval" = "$ol_val" ; then
1599 if test "$ol_arg" = "invalid" ; then
1600 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1602 ol_with_threads="$ol_arg"
1605 ol_with_threads="auto"
1607 # end --with-threads
1609 # OpenLDAP --with-tls
1610 # Check whether --with-tls or --without-tls was given.
1611 if test "${with_tls+set}" = set; then
1615 for ol_val in auto ssleay openssl yes no ; do
1616 if test "$withval" = "$ol_val" ; then
1620 if test "$ol_arg" = "invalid" ; then
1621 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1623 ol_with_tls="$ol_arg"
1630 # OpenLDAP --with-yielding_select
1631 # Check whether --with-yielding_select or --without-yielding_select was given.
1632 if test "${with_yielding_select+set}" = set; then
1633 withval="$with_yielding_select"
1636 for ol_val in auto yes no manual ; do
1637 if test "$withval" = "$ol_val" ; then
1641 if test "$ol_arg" = "invalid" ; then
1642 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1644 ol_with_yielding_select="$ol_arg"
1647 ol_with_yielding_select="auto"
1649 # end --with-yielding_select
1653 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1654 if test "${with_xxslapdoptions+set}" = set; then
1655 withval="$with_xxslapdoptions"
1659 # OpenLDAP --enable-slapd
1660 # Check whether --enable-slapd or --disable-slapd was given.
1661 if test "${enable_slapd+set}" = set; then
1662 enableval="$enable_slapd"
1665 for ol_val in auto yes no ; do
1666 if test "$enableval" = "$ol_val" ; then
1670 if test "$ol_arg" = "invalid" ; then
1671 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1673 ol_enable_slapd="$ol_arg"
1676 ol_enable_slapd="yes"
1678 # end --enable-slapd
1679 # OpenLDAP --enable-aci
1680 # Check whether --enable-aci or --disable-aci was given.
1681 if test "${enable_aci+set}" = set; then
1682 enableval="$enable_aci"
1685 for ol_val in auto yes no ; do
1686 if test "$enableval" = "$ol_val" ; then
1690 if test "$ol_arg" = "invalid" ; then
1691 { echo "configure: error: bad value $enableval for --enable-aci" 1>&2; exit 1; }
1693 ol_enable_aci="$ol_arg"
1699 # OpenLDAP --enable-cleartext
1700 # Check whether --enable-cleartext or --disable-cleartext was given.
1701 if test "${enable_cleartext+set}" = set; then
1702 enableval="$enable_cleartext"
1705 for ol_val in auto yes no ; do
1706 if test "$enableval" = "$ol_val" ; then
1710 if test "$ol_arg" = "invalid" ; then
1711 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1713 ol_enable_cleartext="$ol_arg"
1716 ol_enable_cleartext="yes"
1718 # end --enable-cleartext
1719 # OpenLDAP --enable-crypt
1720 # Check whether --enable-crypt or --disable-crypt was given.
1721 if test "${enable_crypt+set}" = set; then
1722 enableval="$enable_crypt"
1725 for ol_val in auto yes no ; do
1726 if test "$enableval" = "$ol_val" ; then
1730 if test "$ol_arg" = "invalid" ; then
1731 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1733 ol_enable_crypt="$ol_arg"
1736 ol_enable_crypt="no"
1738 # end --enable-crypt
1739 ol_enable_kpasswd=${ol_enable_kpasswd-no}
1740 # OpenLDAP --enable-lmpasswd
1741 # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
1742 if test "${enable_lmpasswd+set}" = set; then
1743 enableval="$enable_lmpasswd"
1746 for ol_val in auto yes no ; do
1747 if test "$enableval" = "$ol_val" ; then
1751 if test "$ol_arg" = "invalid" ; then
1752 { echo "configure: error: bad value $enableval for --enable-lmpasswd" 1>&2; exit 1; }
1754 ol_enable_lmpasswd="$ol_arg"
1757 ol_enable_lmpasswd="no"
1759 # end --enable-lmpasswd
1760 # OpenLDAP --enable-spasswd
1761 # Check whether --enable-spasswd or --disable-spasswd was given.
1762 if test "${enable_spasswd+set}" = set; then
1763 enableval="$enable_spasswd"
1766 for ol_val in auto yes no ; do
1767 if test "$enableval" = "$ol_val" ; then
1771 if test "$ol_arg" = "invalid" ; then
1772 { echo "configure: error: bad value $enableval for --enable-spasswd" 1>&2; exit 1; }
1774 ol_enable_spasswd="$ol_arg"
1777 ol_enable_spasswd="no"
1779 # end --enable-spasswd
1780 # OpenLDAP --enable-modules
1781 # Check whether --enable-modules or --disable-modules was given.
1782 if test "${enable_modules+set}" = set; then
1783 enableval="$enable_modules"
1786 for ol_val in auto yes no ; do
1787 if test "$enableval" = "$ol_val" ; then
1791 if test "$ol_arg" = "invalid" ; then
1792 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1794 ol_enable_modules="$ol_arg"
1797 ol_enable_modules="no"
1799 # end --enable-modules
1800 ol_enable_multimaster=${ol_enable_multimaster-no}
1801 # OpenLDAP --enable-rewrite
1802 # Check whether --enable-rewrite or --disable-rewrite was given.
1803 if test "${enable_rewrite+set}" = set; then
1804 enableval="$enable_rewrite"
1807 for ol_val in auto yes no ; do
1808 if test "$enableval" = "$ol_val" ; then
1812 if test "$ol_arg" = "invalid" ; then
1813 { echo "configure: error: bad value $enableval for --enable-rewrite" 1>&2; exit 1; }
1815 ol_enable_rewrite="$ol_arg"
1818 ol_enable_rewrite="no"
1820 # end --enable-rewrite
1821 # OpenLDAP --enable-rlookups
1822 # Check whether --enable-rlookups or --disable-rlookups was given.
1823 if test "${enable_rlookups+set}" = set; then
1824 enableval="$enable_rlookups"
1827 for ol_val in auto yes no ; do
1828 if test "$enableval" = "$ol_val" ; then
1832 if test "$ol_arg" = "invalid" ; then
1833 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1835 ol_enable_rlookups="$ol_arg"
1838 ol_enable_rlookups="no"
1840 # end --enable-rlookups
1841 # OpenLDAP --enable-slapi
1842 # Check whether --enable-slapi or --disable-slapi was given.
1843 if test "${enable_slapi+set}" = set; then
1844 enableval="$enable_slapi"
1847 for ol_val in auto yes no ; do
1848 if test "$enableval" = "$ol_val" ; then
1852 if test "$ol_arg" = "invalid" ; then
1853 { echo "configure: error: bad value $enableval for --enable-slapi" 1>&2; exit 1; }
1855 ol_enable_slapi="$ol_arg"
1858 ol_enable_slapi="no"
1860 # end --enable-slapi
1861 # OpenLDAP --enable-slp
1862 # Check whether --enable-slp or --disable-slp was given.
1863 if test "${enable_slp+set}" = set; then
1864 enableval="$enable_slp"
1867 for ol_val in auto yes no ; do
1868 if test "$enableval" = "$ol_val" ; then
1872 if test "$ol_arg" = "invalid" ; then
1873 { echo "configure: error: bad value $enableval for --enable-slp" 1>&2; exit 1; }
1875 ol_enable_slp="$ol_arg"
1881 # OpenLDAP --enable-wrappers
1882 # Check whether --enable-wrappers or --disable-wrappers was given.
1883 if test "${enable_wrappers+set}" = set; then
1884 enableval="$enable_wrappers"
1887 for ol_val in auto yes no ; do
1888 if test "$enableval" = "$ol_val" ; then
1892 if test "$ol_arg" = "invalid" ; then
1893 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1895 ol_enable_wrappers="$ol_arg"
1898 ol_enable_wrappers="no"
1900 # end --enable-wrappers
1903 # OpenLDAP --enable-bdb
1904 # Check whether --enable-bdb or --disable-bdb was given.
1905 if test "${enable_bdb+set}" = set; then
1906 enableval="$enable_bdb"
1909 for ol_val in auto yes no ; do
1910 if test "$enableval" = "$ol_val" ; then
1914 if test "$ol_arg" = "invalid" ; then
1915 { echo "configure: error: bad value $enableval for --enable-bdb" 1>&2; exit 1; }
1917 ol_enable_bdb="$ol_arg"
1923 # OpenLDAP --with-bdb_module
1924 # Check whether --with-bdb_module or --without-bdb_module was given.
1925 if test "${with_bdb_module+set}" = set; then
1926 withval="$with_bdb_module"
1929 for ol_val in static dynamic ; do
1930 if test "$withval" = "$ol_val" ; then
1934 if test "$ol_arg" = "invalid" ; then
1935 { echo "configure: error: bad value $withval for --with-bdb_module" 1>&2; exit 1; }
1937 ol_with_bdb_module="$ol_arg"
1940 ol_with_bdb_module="static"
1942 # end --with-bdb_module
1944 # OpenLDAP --enable-dnssrv
1945 # Check whether --enable-dnssrv or --disable-dnssrv was given.
1946 if test "${enable_dnssrv+set}" = set; then
1947 enableval="$enable_dnssrv"
1950 for ol_val in auto yes no ; do
1951 if test "$enableval" = "$ol_val" ; then
1955 if test "$ol_arg" = "invalid" ; then
1956 { echo "configure: error: bad value $enableval for --enable-dnssrv" 1>&2; exit 1; }
1958 ol_enable_dnssrv="$ol_arg"
1961 ol_enable_dnssrv="no"
1963 # end --enable-dnssrv
1964 # OpenLDAP --with-dnssrv_module
1965 # Check whether --with-dnssrv_module or --without-dnssrv_module was given.
1966 if test "${with_dnssrv_module+set}" = set; then
1967 withval="$with_dnssrv_module"
1970 for ol_val in static dynamic ; do
1971 if test "$withval" = "$ol_val" ; then
1975 if test "$ol_arg" = "invalid" ; then
1976 { echo "configure: error: bad value $withval for --with-dnssrv_module" 1>&2; exit 1; }
1978 ol_with_dnssrv_module="$ol_arg"
1981 ol_with_dnssrv_module="static"
1983 # end --with-dnssrv_module
1985 # OpenLDAP --enable-hdb
1986 # Check whether --enable-hdb or --disable-hdb was given.
1987 if test "${enable_hdb+set}" = set; then
1988 enableval="$enable_hdb"
1991 for ol_val in auto yes no ; do
1992 if test "$enableval" = "$ol_val" ; then
1996 if test "$ol_arg" = "invalid" ; then
1997 { echo "configure: error: bad value $enableval for --enable-hdb" 1>&2; exit 1; }
1999 ol_enable_hdb="$ol_arg"
2005 # OpenLDAP --with-hdb_module
2006 # Check whether --with-hdb_module or --without-hdb_module was given.
2007 if test "${with_hdb_module+set}" = set; then
2008 withval="$with_hdb_module"
2011 for ol_val in static dynamic ; do
2012 if test "$withval" = "$ol_val" ; then
2016 if test "$ol_arg" = "invalid" ; then
2017 { echo "configure: error: bad value $withval for --with-hdb_module" 1>&2; exit 1; }
2019 ol_with_hdb_module="$ol_arg"
2022 ol_with_hdb_module="static"
2024 # end --with-hdb_module
2026 # OpenLDAP --enable-ldap
2027 # Check whether --enable-ldap or --disable-ldap was given.
2028 if test "${enable_ldap+set}" = set; then
2029 enableval="$enable_ldap"
2032 for ol_val in auto yes no ; do
2033 if test "$enableval" = "$ol_val" ; then
2037 if test "$ol_arg" = "invalid" ; then
2038 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
2040 ol_enable_ldap="$ol_arg"
2046 # OpenLDAP --with-ldap_module
2047 # Check whether --with-ldap_module or --without-ldap_module was given.
2048 if test "${with_ldap_module+set}" = set; then
2049 withval="$with_ldap_module"
2052 for ol_val in static dynamic ; do
2053 if test "$withval" = "$ol_val" ; then
2057 if test "$ol_arg" = "invalid" ; then
2058 { echo "configure: error: bad value $withval for --with-ldap_module" 1>&2; exit 1; }
2060 ol_with_ldap_module="$ol_arg"
2063 ol_with_ldap_module="static"
2065 # end --with-ldap_module
2067 # OpenLDAP --enable-ldbm
2068 # Check whether --enable-ldbm or --disable-ldbm was given.
2069 if test "${enable_ldbm+set}" = set; then
2070 enableval="$enable_ldbm"
2073 for ol_val in auto yes no ; do
2074 if test "$enableval" = "$ol_val" ; then
2078 if test "$ol_arg" = "invalid" ; then
2079 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
2081 ol_enable_ldbm="$ol_arg"
2087 # OpenLDAP --with-ldbm_api
2088 # Check whether --with-ldbm_api or --without-ldbm_api was given.
2089 if test "${with_ldbm_api+set}" = set; then
2090 withval="$with_ldbm_api"
2093 for ol_val in auto berkeley bcompat mdbm gdbm ; do
2094 if test "$withval" = "$ol_val" ; then
2098 if test "$ol_arg" = "invalid" ; then
2099 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
2101 ol_with_ldbm_api="$ol_arg"
2104 ol_with_ldbm_api="auto"
2106 # end --with-ldbm_api
2108 # OpenLDAP --with-ldbm_module
2109 # Check whether --with-ldbm_module or --without-ldbm_module was given.
2110 if test "${with_ldbm_module+set}" = set; then
2111 withval="$with_ldbm_module"
2114 for ol_val in static dynamic ; do
2115 if test "$withval" = "$ol_val" ; then
2119 if test "$ol_arg" = "invalid" ; then
2120 { echo "configure: error: bad value $withval for --with-ldbm_module" 1>&2; exit 1; }
2122 ol_with_ldbm_module="$ol_arg"
2125 ol_with_ldbm_module="static"
2127 # end --with-ldbm_module
2129 # OpenLDAP --with-ldbm_type
2130 # Check whether --with-ldbm_type or --without-ldbm_type was given.
2131 if test "${with_ldbm_type+set}" = set; then
2132 withval="$with_ldbm_type"
2135 for ol_val in auto btree hash ; do
2136 if test "$withval" = "$ol_val" ; then
2140 if test "$ol_arg" = "invalid" ; then
2141 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
2143 ol_with_ldbm_type="$ol_arg"
2146 ol_with_ldbm_type="auto"
2148 # end --with-ldbm_type
2150 # OpenLDAP --enable-meta
2151 # Check whether --enable-meta or --disable-meta was given.
2152 if test "${enable_meta+set}" = set; then
2153 enableval="$enable_meta"
2156 for ol_val in auto yes no ; do
2157 if test "$enableval" = "$ol_val" ; then
2161 if test "$ol_arg" = "invalid" ; then
2162 { echo "configure: error: bad value $enableval for --enable-meta" 1>&2; exit 1; }
2164 ol_enable_meta="$ol_arg"
2170 # OpenLDAP --with-meta_module
2171 # Check whether --with-meta_module or --without-meta_module was given.
2172 if test "${with_meta_module+set}" = set; then
2173 withval="$with_meta_module"
2176 for ol_val in static dynamic ; do
2177 if test "$withval" = "$ol_val" ; then
2181 if test "$ol_arg" = "invalid" ; then
2182 { echo "configure: error: bad value $withval for --with-meta_module" 1>&2; exit 1; }
2184 ol_with_meta_module="$ol_arg"
2187 ol_with_meta_module="static"
2189 # end --with-meta_module
2191 # OpenLDAP --enable-monitor
2192 # Check whether --enable-monitor or --disable-monitor was given.
2193 if test "${enable_monitor+set}" = set; then
2194 enableval="$enable_monitor"
2197 for ol_val in auto yes no ; do
2198 if test "$enableval" = "$ol_val" ; then
2202 if test "$ol_arg" = "invalid" ; then
2203 { echo "configure: error: bad value $enableval for --enable-monitor" 1>&2; exit 1; }
2205 ol_enable_monitor="$ol_arg"
2208 ol_enable_monitor="yes"
2210 # end --enable-monitor
2211 # OpenLDAP --with-monitor_module
2212 # Check whether --with-monitor_module or --without-monitor_module was given.
2213 if test "${with_monitor_module+set}" = set; then
2214 withval="$with_monitor_module"
2217 for ol_val in static dynamic ; do
2218 if test "$withval" = "$ol_val" ; then
2222 if test "$ol_arg" = "invalid" ; then
2223 { echo "configure: error: bad value $withval for --with-monitor_module" 1>&2; exit 1; }
2225 ol_with_monitor_module="$ol_arg"
2228 ol_with_monitor_module="static"
2230 # end --with-monitor_module
2232 # OpenLDAP --enable-null
2233 # Check whether --enable-null or --disable-null was given.
2234 if test "${enable_null+set}" = set; then
2235 enableval="$enable_null"
2238 for ol_val in auto yes no ; do
2239 if test "$enableval" = "$ol_val" ; then
2243 if test "$ol_arg" = "invalid" ; then
2244 { echo "configure: error: bad value $enableval for --enable-null" 1>&2; exit 1; }
2246 ol_enable_null="$ol_arg"
2252 # OpenLDAP --with-null_module
2253 # Check whether --with-null_module or --without-null_module was given.
2254 if test "${with_null_module+set}" = set; then
2255 withval="$with_null_module"
2258 for ol_val in static dynamic ; do
2259 if test "$withval" = "$ol_val" ; then
2263 if test "$ol_arg" = "invalid" ; then
2264 { echo "configure: error: bad value $withval for --with-null_module" 1>&2; exit 1; }
2266 ol_with_null_module="$ol_arg"
2269 ol_with_null_module="static"
2271 # end --with-null_module
2273 # OpenLDAP --enable-passwd
2274 # Check whether --enable-passwd or --disable-passwd was given.
2275 if test "${enable_passwd+set}" = set; then
2276 enableval="$enable_passwd"
2279 for ol_val in auto yes no ; do
2280 if test "$enableval" = "$ol_val" ; then
2284 if test "$ol_arg" = "invalid" ; then
2285 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
2287 ol_enable_passwd="$ol_arg"
2290 ol_enable_passwd="no"
2292 # end --enable-passwd
2293 # OpenLDAP --with-passwd_module
2294 # Check whether --with-passwd_module or --without-passwd_module was given.
2295 if test "${with_passwd_module+set}" = set; then
2296 withval="$with_passwd_module"
2299 for ol_val in static dynamic ; do
2300 if test "$withval" = "$ol_val" ; then
2304 if test "$ol_arg" = "invalid" ; then
2305 { echo "configure: error: bad value $withval for --with-passwd_module" 1>&2; exit 1; }
2307 ol_with_passwd_module="$ol_arg"
2310 ol_with_passwd_module="static"
2312 # end --with-passwd_module
2314 # OpenLDAP --enable-perl
2315 # Check whether --enable-perl or --disable-perl was given.
2316 if test "${enable_perl+set}" = set; then
2317 enableval="$enable_perl"
2320 for ol_val in auto yes no ; do
2321 if test "$enableval" = "$ol_val" ; then
2325 if test "$ol_arg" = "invalid" ; then
2326 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
2328 ol_enable_perl="$ol_arg"
2334 # OpenLDAP --with-perl_module
2335 # Check whether --with-perl_module or --without-perl_module was given.
2336 if test "${with_perl_module+set}" = set; then
2337 withval="$with_perl_module"
2340 for ol_val in static dynamic ; do
2341 if test "$withval" = "$ol_val" ; then
2345 if test "$ol_arg" = "invalid" ; then
2346 { echo "configure: error: bad value $withval for --with-perl_module" 1>&2; exit 1; }
2348 ol_with_perl_module="$ol_arg"
2351 ol_with_perl_module="static"
2353 # end --with-perl_module
2355 # OpenLDAP --enable-shell
2356 # Check whether --enable-shell or --disable-shell was given.
2357 if test "${enable_shell+set}" = set; then
2358 enableval="$enable_shell"
2361 for ol_val in auto yes no ; do
2362 if test "$enableval" = "$ol_val" ; then
2366 if test "$ol_arg" = "invalid" ; then
2367 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
2369 ol_enable_shell="$ol_arg"
2372 ol_enable_shell="no"
2374 # end --enable-shell
2375 # OpenLDAP --with-shell_module
2376 # Check whether --with-shell_module or --without-shell_module was given.
2377 if test "${with_shell_module+set}" = set; then
2378 withval="$with_shell_module"
2381 for ol_val in static dynamic ; do
2382 if test "$withval" = "$ol_val" ; then
2386 if test "$ol_arg" = "invalid" ; then
2387 { echo "configure: error: bad value $withval for --with-shell_module" 1>&2; exit 1; }
2389 ol_with_shell_module="$ol_arg"
2392 ol_with_shell_module="static"
2394 # end --with-shell_module
2396 # OpenLDAP --enable-sql
2397 # Check whether --enable-sql or --disable-sql was given.
2398 if test "${enable_sql+set}" = set; then
2399 enableval="$enable_sql"
2402 for ol_val in auto yes no ; do
2403 if test "$enableval" = "$ol_val" ; then
2407 if test "$ol_arg" = "invalid" ; then
2408 { echo "configure: error: bad value $enableval for --enable-sql" 1>&2; exit 1; }
2410 ol_enable_sql="$ol_arg"
2416 # OpenLDAP --with-sql_module
2417 # Check whether --with-sql_module or --without-sql_module was given.
2418 if test "${with_sql_module+set}" = set; then
2419 withval="$with_sql_module"
2422 for ol_val in static dynamic ; do
2423 if test "$withval" = "$ol_val" ; then
2427 if test "$ol_arg" = "invalid" ; then
2428 { echo "configure: error: bad value $withval for --with-sql_module" 1>&2; exit 1; }
2430 ol_with_sql_module="$ol_arg"
2433 ol_with_sql_module="static"
2435 # end --with-sql_module
2438 # Check whether --with-xxslapoverlays or --without-xxslapoverlays was given.
2439 if test "${with_xxslapoverlays+set}" = set; then
2440 withval="$with_xxslapoverlays"
2444 # OpenLDAP --with-dyngroup
2445 # Check whether --with-dyngroup or --without-dyngroup was given.
2446 if test "${with_dyngroup+set}" = set; then
2447 withval="$with_dyngroup"
2450 for ol_val in no yes mod ; do
2451 if test "$withval" = "$ol_val" ; then
2455 if test "$ol_arg" = "invalid" ; then
2456 { echo "configure: error: bad value $withval for --with-dyngroup" 1>&2; exit 1; }
2458 ol_with_dyngroup="$ol_arg"
2461 ol_with_dyngroup="no"
2463 # end --with-dyngroup
2465 # OpenLDAP --with-proxycache
2466 # Check whether --with-proxycache or --without-proxycache was given.
2467 if test "${with_proxycache+set}" = set; then
2468 withval="$with_proxycache"
2471 for ol_val in no yes mod ; do
2472 if test "$withval" = "$ol_val" ; then
2476 if test "$ol_arg" = "invalid" ; then
2477 { echo "configure: error: bad value $withval for --with-proxycache" 1>&2; exit 1; }
2479 ol_with_proxycache="$ol_arg"
2482 ol_with_proxycache="no"
2484 # end --with-proxycache
2487 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
2488 if test "${with_xxslurpdoptions+set}" = set; then
2489 withval="$with_xxslurpdoptions"
2493 # OpenLDAP --enable-slurpd
2494 # Check whether --enable-slurpd or --disable-slurpd was given.
2495 if test "${enable_slurpd+set}" = set; then
2496 enableval="$enable_slurpd"
2499 for ol_val in auto yes no ; do
2500 if test "$enableval" = "$ol_val" ; then
2504 if test "$ol_arg" = "invalid" ; then
2505 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
2507 ol_enable_slurpd="$ol_arg"
2510 ol_enable_slurpd="auto"
2512 # end --enable-slurpd
2514 # Check whether --with-xxliboptions or --without-xxliboptions was given.
2515 if test "${with_xxliboptions+set}" = set; then
2516 withval="$with_xxliboptions"
2520 # Check whether --enable-static or --disable-static was given.
2521 if test "${enable_static+set}" = set; then
2522 enableval="$enable_static"
2523 p=${PACKAGE-default}
2525 yes) enable_static=yes ;;
2526 no) enable_static=no ;;
2529 # Look at the argument we got. We use all the common list separators.
2530 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2531 for pkg in $enableval; do
2532 if test "X$pkg" = "X$p"; then
2543 # Check whether --enable-shared or --disable-shared was given.
2544 if test "${enable_shared+set}" = set; then
2545 enableval="$enable_shared"
2546 p=${PACKAGE-default}
2548 yes) enable_shared=yes ;;
2549 no) enable_shared=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
2569 if test $ol_enable_slapd = no ; then
2570 if test $ol_enable_slapi = yes ; then
2571 echo "configure: warning: slapd disabled, ignoring --enable-slapi argument" 1>&2
2573 if test $ol_enable_bdb = yes ; then
2574 echo "configure: warning: slapd disabled, ignoring --enable-bdb argument" 1>&2
2576 if test $ol_enable_dnssrv = yes ; then
2577 echo "configure: warning: slapd disabled, ignoring --enable-dnssrv argument" 1>&2
2579 if test $ol_enable_hdb = yes ; then
2580 echo "configure: warning: slapd disabled, ignoring --enable-hdb argument" 1>&2
2582 if test $ol_enable_ldap = yes ; then
2583 echo "configure: warning: slapd disabled, ignoring --enable-ldap argument" 1>&2
2585 if test $ol_enable_ldbm = yes ; then
2586 echo "configure: warning: slapd disabled, ignoring --enable-ldbm argument" 1>&2
2588 if test $ol_enable_meta = yes ; then
2589 echo "configure: warning: slapd disabled, ignoring --enable-meta argument" 1>&2
2591 if test $ol_enable_monitor = yes ; then
2592 echo "configure: warning: slapd disabled, ignoring --enable-monitor argument" 1>&2
2594 if test $ol_enable_null = yes ; then
2595 echo "configure: warning: slapd disabled, ignoring --enable-null argument" 1>&2
2597 if test $ol_enable_passwd = yes ; then
2598 echo "configure: warning: slapd disabled, ignoring --enable-passwd argument" 1>&2
2600 if test $ol_enable_perl = yes ; then
2601 echo "configure: warning: slapd disabled, ignoring --enable-perl argument" 1>&2
2603 if test $ol_enable_shell = yes ; then
2604 echo "configure: warning: slapd disabled, ignoring --enable-shell argument" 1>&2
2606 if test $ol_enable_sql = yes ; then
2607 echo "configure: warning: slapd disabled, ignoring --enable-sql argument" 1>&2
2609 if test $ol_enable_modules = yes ; then
2610 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2612 if test $ol_enable_multimaster = yes ; then
2613 echo "configure: warning: slapd disabled, ignoring --enable-multimaster argument" 1>&2
2615 if test $ol_enable_wrappers = yes ; then
2616 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2618 if test $ol_enable_rlookups = yes ; then
2619 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2621 if test $ol_enable_aci = yes ; then
2622 echo "configure: warning: slapd disabled, ignoring --enable-aci argument" 1>&2
2624 if test $ol_with_ldbm_api != auto ; then
2625 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2627 if test $ol_with_ldbm_type != auto ; then
2628 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2630 if test $ol_with_bdb_module != static ; then
2631 echo "configure: warning: slapd disabled, ignoring --with-bdb-module argument" 1>&2
2633 if test $ol_with_dnssrv_module != static ; then
2634 echo "configure: warning: slapd disabled, ignoring --with-dnssrv-module argument" 1>&2
2636 if test $ol_with_hdb_module != static ; then
2637 echo "configure: warning: slapd disabled, ignoring --with-hdb-module argument" 1>&2
2639 if test $ol_with_ldap_module != static ; then
2640 echo "configure: warning: slapd disabled, ignoring --with-ldap-module argument" 1>&2
2642 if test $ol_with_ldbm_module != static ; then
2643 echo "configure: warning: slapd disabled, ignoring --with-ldbm-module argument" 1>&2
2645 if test $ol_with_meta_module != static ; then
2646 echo "configure: warning: slapd disabled, ignoring --with-meta-module argument" 1>&2
2648 if test $ol_with_monitor_module != static ; then
2649 echo "configure: warning: slapd disabled, ignoring --with-monitor-module argument" 1>&2
2651 if test $ol_with_null_module != static ; then
2652 echo "configure: warning: slapd disabled, ignoring --with-null-module argument" 1>&2
2654 if test $ol_with_passwd_module != static ; then
2655 echo "configure: warning: slapd disabled, ignoring --with-passwd-module argument" 1>&2
2657 if test $ol_with_perl_module != static ; then
2658 echo "configure: warning: slapd disabled, ignoring --with-perl-module argument" 1>&2
2660 if test $ol_with_shell_module != static ; then
2661 echo "configure: warning: slapd disabled, ignoring --with-shell-module argument" 1>&2
2663 if test $ol_with_sql_module != static ; then
2664 echo "configure: warning: slapd disabled, ignoring --with-sql-module argument" 1>&2
2666 if test $ol_enable_slurpd = yes ; then
2667 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2669 if test $ol_enable_rewrite = yes ; then
2670 echo "configure: warning: slapd disabled, ignoring --enable-rewrite argument" 1>&2
2672 if test $ol_with_dyngroup != no ; then
2673 echo "configure: warning: slapd disabled, ignoring --with-dyngroup argument" 1>&2
2675 if test $ol_with_proxycache != no ; then
2676 echo "configure: warning: slapd disabled, ignoring --with-proxycache argument" 1>&2
2679 # force settings to no
2687 ol_enable_monitor=no
2694 ol_enable_modules=no
2695 ol_enable_multimaster=no
2696 ol_enable_rlookups=no
2698 ol_enable_wrappers=no
2701 ol_with_ldbm_type=no
2703 ol_with_bdb_module=static
2704 ol_with_dnssrv_module=static
2705 ol_with_hdb_module=static
2706 ol_with_ldap_module=static
2707 ol_with_ldbm_module=static
2708 ol_with_meta_module=static
2709 ol_with_monitor_module=static
2710 ol_with_null_module=static
2711 ol_with_passwd_module=static
2712 ol_with_perl_module=static
2713 ol_with_shell_module=static
2714 ol_with_sql_module=static
2718 ol_enable_rewrite=no
2721 ol_with_proxycache=no
2723 elif test $ol_enable_ldbm = no ; then
2725 if test $ol_with_ldbm_api != auto ; then
2726 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2729 if test $ol_with_ldbm_type != auto ; then
2730 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2733 if test $ol_with_ldbm_module != static ; then
2734 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-module argument" 1>&2
2737 if test $ol_enable_modules != yes -a \
2738 $ol_enable_bdb = no -a \
2739 $ol_enable_dnssrv = no -a \
2740 $ol_enable_hdb = no -a \
2741 $ol_enable_ldap = no -a \
2742 $ol_enable_meta = no -a \
2743 $ol_enable_monitor = no -a \
2744 $ol_enable_null = no -a \
2745 $ol_enable_passwd = no -a \
2746 $ol_enable_perl = no -a \
2747 $ol_enable_shell = no -a \
2748 $ol_enable_sql = no ; then
2750 if test $ol_enable_slapd = yes ; then
2751 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2753 echo "configure: warning: skipping slapd, no backend specified" 1>&2
2759 ol_with_ldbm_type=no
2760 ol_with_ldbm_module=static
2762 if test $ol_enable_bdb != no -o $ol_enable_hdb != no; then
2763 ol_with_ldbm_api=berkeley
2767 if test $ol_with_ldbm_api = gdbm -a \
2768 $ol_with_ldbm_type = btree ; then
2769 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2771 if test $ol_with_ldbm_api = mdbm -a \
2772 $ol_with_ldbm_type = btree ; then
2773 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2775 if test $ol_with_ldbm_api = ndbm -a \
2776 $ol_with_ldbm_type = btree ; then
2777 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2780 if test $ol_enable_bdb = yes -o $ol_enable_hdb = yes ; then
2781 if test $ol_with_ldbm_api = auto ; then
2782 ol_with_ldbm_api=berkeley
2783 elif test $ol_with_ldbm_api != berkeley ; then
2784 { echo "configure: error: LDBM API not compatible with BDB/HDB" 1>&2; exit 1; }
2787 elif test $ol_enable_bdb = auto ; then
2788 if test $ol_with_ldbm_api != berkeley \
2789 -o $ol_with_ldbm_api != auto ; then
2790 echo "configure: warning: LDBM API not compatible with BDB, disabling BDB" 1>&2
2796 if test $ol_enable_slurpd = yes ; then
2797 if test $ol_with_threads = no ; then
2798 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2802 if test $ol_enable_lmpasswd = yes ; then
2803 if test $ol_with_tls = no ; then
2804 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
2808 if test $ol_enable_kbind = yes -o $ol_enable_kpasswd = yes ; then
2809 if test $ol_with_kerberos = no ; then
2810 { echo "configure: error: options require --with-kerberos" 1>&2; exit 1; }
2811 elif test $ol_with_kerberos = auto ; then
2812 ol_with_kerberos=yes
2815 elif test $ol_enable_kbind = no -o $ol_enable_kpasswd = no ; then
2816 if test $ol_with_kerberos = auto ; then
2818 elif test $ol_with_kerberos != no ; then
2819 echo "configure: warning: Kerberos detection enabled unnecessarily" 1>&2;
2824 if test $ol_enable_spasswd = yes ; then
2825 if test $ol_with_cyrus_sasl = no ; then
2826 { echo "configure: error: options require --with-cyrus-sasl" 1>&2; exit 1; }
2828 ol_with_cyrus_sasl=yes
2831 echo "$ac_t""done" 1>&6
2862 BUILD_BDB_DYNAMIC=static
2863 BUILD_DNSSRV_DYNAMIC=static
2864 BUILD_HDB_DYNAMIC=static
2865 BUILD_LDAP_DYNAMIC=static
2866 BUILD_LDBM_DYNAMIC=static
2867 BUILD_META_DYNAMIC=static
2868 BUILD_MONITOR_DYNAMIC=static
2869 BUILD_NULL_DYNAMIC=static
2870 BUILD_PASSWD_DYNAMIC=static
2871 BUILD_PERL_DYNAMIC=static
2872 BUILD_SHELL_DYNAMIC=static
2873 BUILD_SQL_DYNAMIC=static
2878 SLAPD_DYNAMIC_OVERLAYS=
2880 SLAPD_MODULES_LDFLAGS=
2881 SLAPD_MODULES_CPPFLAGS=
2883 SLAPD_STATIC_BACKENDS=
2884 SLAPD_DYNAMIC_BACKENDS=
2907 # Find a good install program. We prefer a C program (faster),
2908 # so one script is as good as another. But avoid the broken or
2909 # incompatible versions:
2910 # SysV /etc/install, /usr/sbin/install
2911 # SunOS /usr/etc/install
2912 # IRIX /sbin/install
2914 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2915 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2916 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2917 # ./install, which can be erroneously created by make from ./install.sh.
2918 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2919 echo "configure:2920: checking for a BSD compatible install" >&5
2920 if test -z "$INSTALL"; then
2921 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
2922 echo $ac_n "(cached) $ac_c" 1>&6
2924 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2925 for ac_dir in $PATH; do
2926 # Account for people who put trailing slashes in PATH elements.
2928 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2930 # OSF1 and SCO ODT 3.0 have their own names for install.
2931 # Don't use installbsd from OSF since it installs stuff as root
2933 for ac_prog in ginstall scoinst install; do
2934 if test -f $ac_dir/$ac_prog; then
2935 if test $ac_prog = install &&
2936 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2937 # AIX install. It has an incompatible calling convention.
2939 elif test $ac_prog = install &&
2940 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
2941 # program-specific install script used by HP pwplus--don't use.
2944 ac_cv_path_install="$ac_dir/$ac_prog -c"
2955 if test "${ac_cv_path_install+set}" = set; then
2956 INSTALL="$ac_cv_path_install"
2958 # As a last resort, use the slow shell script. We don't cache a
2959 # path for INSTALL within a source directory, because that will
2960 # break other packages using the cache if that directory is
2961 # removed, or if the path is relative.
2962 INSTALL="$ac_install_sh"
2965 echo "$ac_t""$INSTALL" 1>&6
2967 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2968 # It thinks the first close brace ends the variable substitution.
2969 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2971 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2973 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2976 cat >> confdefs.h <<\EOF
2977 #define HAVE_MKVERSION 1
2985 *-*-aix*) if test -z "$CC" ; then
2986 case "$ol_with_threads" in
2987 auto | yes | posix) ol_aix_threads=yes ;;
2993 if test $ol_aix_threads = yes ; then
2994 if test -z "${CC}" ; then
2995 for ac_prog in cc_r xlc_r cc
2997 # Extract the first word of "$ac_prog", so it can be a program name with args.
2998 set dummy $ac_prog; ac_word=$2
2999 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3000 echo "configure:3001: checking for $ac_word" >&5
3001 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3002 echo $ac_n "(cached) $ac_c" 1>&6
3004 if test -n "$CC"; then
3005 ac_cv_prog_CC="$CC" # Let the user override the test.
3007 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3009 for ac_dir in $ac_dummy; do
3010 test -z "$ac_dir" && ac_dir=.
3011 if test -f $ac_dir/$ac_word; then
3012 ac_cv_prog_CC="$ac_prog"
3020 if test -n "$CC"; then
3021 echo "$ac_t""$CC" 1>&6
3023 echo "$ac_t""no" 1>&6
3026 test -n "$CC" && break
3030 if test "$CC" = cc ; then
3031 if test $ol_with_threads != auto ; then
3032 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
3034 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
3040 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
3041 ol_with_threads=posix
3042 ol_cv_pthread_create=yes
3046 if test -z "${CC}"; then
3047 for ac_prog in cc gcc
3049 # Extract the first word of "$ac_prog", so it can be a program name with args.
3050 set dummy $ac_prog; ac_word=$2
3051 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3052 echo "configure:3053: checking for $ac_word" >&5
3053 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3054 echo $ac_n "(cached) $ac_c" 1>&6
3056 if test -n "$CC"; then
3057 ac_cv_prog_CC="$CC" # Let the user override the test.
3059 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3061 for ac_dir in $ac_dummy; do
3062 test -z "$ac_dir" && ac_dir=.
3063 if test -f $ac_dir/$ac_word; then
3064 ac_cv_prog_CC="$ac_prog"
3072 if test -n "$CC"; then
3073 echo "$ac_t""$CC" 1>&6
3075 echo "$ac_t""no" 1>&6
3078 test -n "$CC" && break
3080 test -n "$CC" || CC="missing"
3083 if test "${CC}" = "missing" ; then
3084 { echo "configure: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." 1>&2; exit 1; }
3088 if test -z "${AR}"; then
3089 for ac_prog in ar gar
3091 # Extract the first word of "$ac_prog", so it can be a program name with args.
3092 set dummy $ac_prog; ac_word=$2
3093 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3094 echo "configure:3095: checking for $ac_word" >&5
3095 if eval "test \"\${ac_cv_prog_AR+set}\" = set"; then
3096 echo $ac_n "(cached) $ac_c" 1>&6
3098 if test -n "$AR"; then
3099 ac_cv_prog_AR="$AR" # Let the user override the test.
3101 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3103 for ac_dir in $ac_dummy; do
3104 test -z "$ac_dir" && ac_dir=.
3105 if test -f $ac_dir/$ac_word; then
3106 ac_cv_prog_AR="$ac_prog"
3114 if test -n "$AR"; then
3115 echo "$ac_t""$AR" 1>&6
3117 echo "$ac_t""no" 1>&6
3120 test -n "$AR" && break
3122 test -n "$AR" || AR="missing"
3125 if test "${AR}" = "missing" ; then
3126 { echo "configure: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." 1>&2; exit 1; }
3132 # Find the correct PATH separator. Usually this is `:', but
3133 # DJGPP uses `;' like DOS.
3134 if test "X${PATH_SEPARATOR+set}" != Xset; then
3135 UNAME=${UNAME-`uname 2>/dev/null`}
3137 *-DOS) lt_cv_sys_path_separator=';' ;;
3138 *) lt_cv_sys_path_separator=':' ;;
3140 PATH_SEPARATOR=$lt_cv_sys_path_separator
3143 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3144 echo "configure:3145: checking for Cygwin environment" >&5
3145 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
3146 echo $ac_n "(cached) $ac_c" 1>&6
3148 cat > conftest.$ac_ext <<EOF
3149 #line 3150 "configure"
3150 #include "confdefs.h"
3155 #define __CYGWIN__ __CYGWIN32__
3160 if { (eval echo configure:3161: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3164 echo "configure: failed program was:" >&5
3165 cat conftest.$ac_ext >&5
3172 echo "$ac_t""$ac_cv_cygwin" 1>&6
3174 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3175 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3176 echo "configure:3177: checking for mingw32 environment" >&5
3177 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
3178 echo $ac_n "(cached) $ac_c" 1>&6
3180 cat > conftest.$ac_ext <<EOF
3181 #line 3182 "configure"
3182 #include "confdefs.h"
3188 if { (eval echo configure:3189: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3192 echo "configure: failed program was:" >&5
3193 cat conftest.$ac_ext >&5
3200 echo "$ac_t""$ac_cv_mingw32" 1>&6
3202 test "$ac_cv_mingw32" = yes && MINGW32=yes
3203 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
3204 echo "configure:3205: checking for EMX OS/2 environment" >&5
3205 if eval "test \"\${ac_cv_emxos2+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_emxos2" 1>&6
3230 test "$ac_cv_emxos2" = yes && EMXOS2=yes
3231 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3232 echo "configure:3233: checking how to run the C preprocessor" >&5
3233 # On Suns, sometimes $CPP names a directory.
3234 if test -n "$CPP" && test -d "$CPP"; then
3237 if test -z "$CPP"; then
3238 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
3239 echo $ac_n "(cached) $ac_c" 1>&6
3241 # This must be in double quotes, not single quotes, because CPP may get
3242 # substituted into the Makefile and "${CC-cc}" will confuse make.
3244 # On the NeXT, cc -E runs the code through the compiler's parser,
3245 # not just through cpp.
3246 cat > conftest.$ac_ext <<EOF
3247 #line 3248 "configure"
3248 #include "confdefs.h"
3252 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3253 { (eval echo configure:3254: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3254 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3255 if test -z "$ac_err"; then
3259 echo "configure: failed program was:" >&5
3260 cat conftest.$ac_ext >&5
3262 CPP="${CC-cc} -E -traditional-cpp"
3263 cat > conftest.$ac_ext <<EOF
3264 #line 3265 "configure"
3265 #include "confdefs.h"
3269 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3270 { (eval echo configure:3271: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3271 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3272 if test -z "$ac_err"; then
3276 echo "configure: failed program was:" >&5
3277 cat conftest.$ac_ext >&5
3279 CPP="${CC-cc} -nologo -E"
3280 cat > conftest.$ac_ext <<EOF
3281 #line 3282 "configure"
3282 #include "confdefs.h"
3286 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3287 { (eval echo configure:3288: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3288 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3289 if test -z "$ac_err"; then
3293 echo "configure: failed program was:" >&5
3294 cat conftest.$ac_ext >&5
3303 ac_cv_prog_CPP="$CPP"
3305 CPP="$ac_cv_prog_CPP"
3307 ac_cv_prog_CPP="$CPP"
3309 echo "$ac_t""$CPP" 1>&6
3311 # Check whether --enable-fast-install or --disable-fast-install was given.
3312 if test "${enable_fast_install+set}" = set; then
3313 enableval="$enable_fast_install"
3314 p=${PACKAGE-default}
3316 yes) enable_fast_install=yes ;;
3317 no) enable_fast_install=no ;;
3319 enable_fast_install=no
3320 # Look at the argument we got. We use all the common list separators.
3321 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3322 for pkg in $enableval; do
3323 if test "X$pkg" = "X$p"; then
3324 enable_fast_install=yes
3331 enable_fast_install=yes
3334 # Extract the first word of "gcc", so it can be a program name with args.
3335 set dummy gcc; ac_word=$2
3336 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3337 echo "configure:3338: checking for $ac_word" >&5
3338 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3339 echo $ac_n "(cached) $ac_c" 1>&6
3341 if test -n "$CC"; then
3342 ac_cv_prog_CC="$CC" # Let the user override the test.
3344 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3346 for ac_dir in $ac_dummy; do
3347 test -z "$ac_dir" && ac_dir=.
3348 if test -f $ac_dir/$ac_word; then
3357 if test -n "$CC"; then
3358 echo "$ac_t""$CC" 1>&6
3360 echo "$ac_t""no" 1>&6
3363 if test -z "$CC"; then
3364 # Extract the first word of "cc", so it can be a program name with args.
3365 set dummy cc; ac_word=$2
3366 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3367 echo "configure:3368: checking for $ac_word" >&5
3368 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3369 echo $ac_n "(cached) $ac_c" 1>&6
3371 if test -n "$CC"; then
3372 ac_cv_prog_CC="$CC" # Let the user override the test.
3374 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3377 for ac_dir in $ac_dummy; do
3378 test -z "$ac_dir" && ac_dir=.
3379 if test -f $ac_dir/$ac_word; then
3380 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
3381 ac_prog_rejected=yes
3389 if test $ac_prog_rejected = yes; then
3390 # We found a bogon in the path, so make sure we never use it.
3391 set dummy $ac_cv_prog_CC
3393 if test $# -gt 0; then
3394 # We chose a different compiler from the bogus one.
3395 # However, it has the same basename, so the bogon will be chosen
3396 # first if we set CC to just the basename; use the full file name.
3398 set dummy "$ac_dir/$ac_word" "$@"
3406 if test -n "$CC"; then
3407 echo "$ac_t""$CC" 1>&6
3409 echo "$ac_t""no" 1>&6
3412 if test -z "$CC"; then
3413 case "`uname -s`" in
3414 *win32* | *WIN32* | *CYGWIN*)
3415 # Extract the first word of "cl", so it can be a program name with args.
3416 set dummy cl; ac_word=$2
3417 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3418 echo "configure:3419: checking for $ac_word" >&5
3419 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3420 echo $ac_n "(cached) $ac_c" 1>&6
3422 if test -n "$CC"; then
3423 ac_cv_prog_CC="$CC" # Let the user override the test.
3425 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3427 for ac_dir in $ac_dummy; do
3428 test -z "$ac_dir" && ac_dir=.
3429 if test -f $ac_dir/$ac_word; then
3438 if test -n "$CC"; then
3439 echo "$ac_t""$CC" 1>&6
3441 echo "$ac_t""no" 1>&6
3446 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
3449 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
3450 echo "configure:3451: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
3453 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3454 ac_cpp='$CPP $CPPFLAGS'
3455 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3456 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3457 cross_compiling=$ac_cv_prog_cc_cross
3459 cat > conftest.$ac_ext << EOF
3461 #line 3462 "configure"
3462 #include "confdefs.h"
3466 if { (eval echo configure:3467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3467 ac_cv_prog_cc_works=yes
3468 # If we can't run a trivial program, we are probably using a cross compiler.
3469 if (./conftest; exit) 2>/dev/null; then
3470 ac_cv_prog_cc_cross=no
3472 ac_cv_prog_cc_cross=yes
3475 echo "configure: failed program was:" >&5
3476 cat conftest.$ac_ext >&5
3477 ac_cv_prog_cc_works=no
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 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
3488 if test $ac_cv_prog_cc_works = no; then
3489 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
3491 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
3492 echo "configure:3493: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
3493 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
3494 cross_compiling=$ac_cv_prog_cc_cross
3496 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
3497 echo "configure:3498: checking whether we are using GNU C" >&5
3498 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
3499 echo $ac_n "(cached) $ac_c" 1>&6
3501 cat > conftest.c <<EOF
3506 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:3507: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
3513 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
3515 if test $ac_cv_prog_gcc = yes; then
3521 ac_test_CFLAGS="${CFLAGS+set}"
3522 ac_save_CFLAGS="$CFLAGS"
3524 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
3525 echo "configure:3526: checking whether ${CC-cc} accepts -g" >&5
3526 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
3527 echo $ac_n "(cached) $ac_c" 1>&6
3529 echo 'void f(){}' > conftest.c
3530 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
3539 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
3540 if test "$ac_test_CFLAGS" = set; then
3541 CFLAGS="$ac_save_CFLAGS"
3542 elif test $ac_cv_prog_cc_g = yes; then
3543 if test "$GCC" = yes; then
3549 if test "$GCC" = yes; then
3556 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3557 if test "${with_gnu_ld+set}" = set; then
3558 withval="$with_gnu_ld"
3559 test "$withval" = no || with_gnu_ld=yes
3565 if test "$GCC" = yes; then
3566 # Check if gcc -print-prog-name=ld gives a path.
3567 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
3568 echo "configure:3569: checking for ld used by GCC" >&5
3571 # gcc leaves a trailing carriage return which upsets mingw
3572 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3574 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3577 # Accept absolute paths.
3578 [\\/]* | [A-Za-z]:[\\/]*)
3579 re_direlt='/[^/][^/]*/\.\./'
3580 # Canonicalize the path of ld
3581 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3582 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3583 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3585 test -z "$LD" && LD="$ac_prog"
3588 # If it fails, then pretend we aren't using GCC.
3592 # If it is relative, then search for the first ld in PATH.
3596 elif test "$with_gnu_ld" = yes; then
3597 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
3598 echo "configure:3599: checking for GNU ld" >&5
3600 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
3601 echo "configure:3602: checking for non-GNU ld" >&5
3603 if eval "test \"\${lt_cv_path_LD+set}\" = set"; then
3604 echo $ac_n "(cached) $ac_c" 1>&6
3606 if test -z "$LD"; then
3607 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3608 for ac_dir in $PATH; do
3609 test -z "$ac_dir" && ac_dir=.
3610 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3611 lt_cv_path_LD="$ac_dir/$ac_prog"
3612 # Check to see if the program is GNU ld. I'd rather use --version,
3613 # but apparently some GNU ld's only accept -v.
3614 # Break only if it was the GNU/non-GNU ld that we prefer.
3615 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3616 test "$with_gnu_ld" != no && break
3618 test "$with_gnu_ld" != yes && break
3624 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3629 if test -n "$LD"; then
3630 echo "$ac_t""$LD" 1>&6
3632 echo "$ac_t""no" 1>&6
3634 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
3635 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
3636 echo "configure:3637: checking if the linker ($LD) is GNU ld" >&5
3637 if eval "test \"\${lt_cv_prog_gnu_ld+set}\" = set"; then
3638 echo $ac_n "(cached) $ac_c" 1>&6
3640 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3641 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3642 lt_cv_prog_gnu_ld=yes
3644 lt_cv_prog_gnu_ld=no
3648 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
3649 with_gnu_ld=$lt_cv_prog_gnu_ld
3652 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
3653 echo "configure:3654: checking for $LD option to reload object files" >&5
3654 if eval "test \"\${lt_cv_ld_reload_flag+set}\" = set"; then
3655 echo $ac_n "(cached) $ac_c" 1>&6
3657 lt_cv_ld_reload_flag='-r'
3660 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
3661 reload_flag=$lt_cv_ld_reload_flag
3662 test -n "$reload_flag" && reload_flag=" $reload_flag"
3664 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
3665 echo "configure:3666: checking for BSD-compatible nm" >&5
3666 if eval "test \"\${lt_cv_path_NM+set}\" = set"; then
3667 echo $ac_n "(cached) $ac_c" 1>&6
3669 if test -n "$NM"; then
3670 # Let the user override the test.
3673 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3674 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3675 test -z "$ac_dir" && ac_dir=.
3676 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3677 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3678 # Check to see if the nm accepts a BSD-compat flag.
3679 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3680 # nm: unknown option "B" ignored
3681 # Tru64's nm complains that /dev/null is an invalid object file
3682 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3683 lt_cv_path_NM="$tmp_nm -B"
3685 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3686 lt_cv_path_NM="$tmp_nm -p"
3689 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3690 continue # so that we can try to find one that supports BSD flags
3695 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3700 echo "$ac_t""$NM" 1>&6
3702 echo $ac_n "checking for a sed that does not truncate output""... $ac_c" 1>&6
3703 echo "configure:3704: checking for a sed that does not truncate output" >&5
3704 if eval "test \"\${lt_cv_path_SED+set}\" = set"; then
3705 echo $ac_n "(cached) $ac_c" 1>&6
3707 # Loop through the user's path and test for sed and gsed.
3708 # Then use that list of sed's as ones to test for truncation.
3709 as_executable_p="test -f"
3710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3714 test -z "$as_dir" && as_dir=.
3715 for ac_prog in sed gsed; do
3716 for ac_exec_ext in '' $ac_executable_extensions; do
3717 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3718 _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3724 # Create a temporary directory, and hook for its removal unless debugging.
3727 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3728 trap '{ (exit 1); exit 1; }' 1 2 13 15
3731 # Create a (secure) tmp directory for tmp files.
3734 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3735 test -n "$tmp" && test -d "$tmp"
3738 tmp=$TMPDIR/sed$$-$RANDOM
3739 (umask 077 && mkdir $tmp)
3742 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3743 { (exit 1); exit 1; }
3747 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3748 # along with /bin/sed that truncates output.
3749 for _sed in $_sed_list /usr/xpg4/bin/sed; do
3750 test ! -f ${_sed} && break
3751 cat /dev/null > "$tmp/sed.in"
3753 echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
3754 # Check for GNU sed and select it if it is found.
3755 if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
3756 lt_cv_path_SED=${_sed}
3760 cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3761 mv "$tmp/sed.tmp" "$tmp/sed.in"
3762 cp "$tmp/sed.in" "$tmp/sed.nl"
3763 echo >>"$tmp/sed.nl"
3764 ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
3765 cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
3766 # 40000 chars as input seems more than enough
3767 test $_count -gt 10 && break
3768 _count=`expr $_count + 1`
3769 if test $_count -gt $_max; then
3771 lt_cv_path_SED=$_sed
3779 if test "X$SED" != "X"; then
3784 echo "$ac_t""$SED" 1>&6
3786 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3787 echo "configure:3788: checking whether ln -s works" >&5
3788 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3789 echo $ac_n "(cached) $ac_c" 1>&6
3792 if ln -s X conftestdata 2>/dev/null
3795 ac_cv_prog_LN_S="ln -s"
3800 LN_S="$ac_cv_prog_LN_S"
3801 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3802 echo "$ac_t""yes" 1>&6
3804 echo "$ac_t""no" 1>&6
3807 echo $ac_n "checking how to recognise dependent libraries""... $ac_c" 1>&6
3808 echo "configure:3809: checking how to recognise dependent libraries" >&5
3809 if eval "test \"\${lt_cv_deplibs_check_method+set}\" = set"; then
3810 echo $ac_n "(cached) $ac_c" 1>&6
3812 lt_cv_file_magic_cmd='$MAGIC_CMD'
3813 lt_cv_file_magic_test_file=
3814 lt_cv_deplibs_check_method='unknown'
3815 # Need to set the preceding variable on all platforms that support
3816 # interlibrary dependencies.
3817 # 'none' -- dependencies not supported.
3818 # `unknown' -- same as none, but documents that we really don't know.
3819 # 'pass_all' -- all dependencies passed with no checks.
3820 # 'test_compile' -- check by making test program.
3821 # 'file_magic [[regex]]' -- check by looking for files in library path
3822 # which responds to the $file_magic_cmd with a given egrep regex.
3823 # If you have `file' or equivalent on your system and you're not sure
3824 # whether `pass_all' will *always* work, you probably want this one.
3828 lt_cv_deplibs_check_method=pass_all
3832 lt_cv_deplibs_check_method=pass_all
3836 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3837 lt_cv_file_magic_cmd='/usr/bin/file -L'
3838 lt_cv_file_magic_test_file=/shlib/libc.so
3841 cygwin* | mingw* | pw32*)
3842 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3843 lt_cv_file_magic_cmd='$OBJDUMP -f'
3846 darwin* | rhapsody*)
3847 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3848 lt_cv_file_magic_cmd='/usr/bin/file -L'
3850 rhapsody* | darwin1.[012])
3851 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3854 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3860 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3863 # Not sure whether the presence of OpenBSD here was a mistake.
3864 # Let's accept both of them until this is cleared up.
3865 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3866 lt_cv_file_magic_cmd=/usr/bin/file
3867 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3871 lt_cv_deplibs_check_method=pass_all
3876 lt_cv_deplibs_check_method=pass_all
3880 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3881 lt_cv_file_magic_cmd=/usr/bin/file
3882 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3885 irix5* | irix6* | nonstopux*)
3887 irix5* | nonstopux*)
3888 # this will be overridden with pass_all, but let us keep it just in case
3889 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3893 *-32|*"-32 ") libmagic=32-bit;;
3894 *-n32|*"-n32 ") libmagic=N32;;
3895 *-64|*"-64 ") libmagic=64-bit;;
3896 *) libmagic=never-match;;
3898 # this will be overridden with pass_all, but let us keep it just in case
3899 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3902 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3903 lt_cv_deplibs_check_method=pass_all
3906 # This must be Linux ELF.
3909 alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64*)
3910 lt_cv_deplibs_check_method=pass_all ;;
3912 # glibc up to 2.1.1 does not perform some relocations on ARM
3913 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3915 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3919 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3920 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3922 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3927 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3928 lt_cv_file_magic_cmd=/usr/bin/file
3929 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3933 lt_cv_file_magic_cmd=/usr/bin/file
3934 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3935 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3936 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3938 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3942 osf3* | osf4* | osf5*)
3943 # this will be overridden with pass_all, but let us keep it just in case
3944 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3945 lt_cv_file_magic_test_file=/shlib/libc.so
3946 lt_cv_deplibs_check_method=pass_all
3950 lt_cv_deplibs_check_method=pass_all
3954 lt_cv_deplibs_check_method=pass_all
3955 lt_cv_file_magic_test_file=/lib/libc.so
3958 sysv5uw[78]* | sysv4*uw2*)
3959 lt_cv_deplibs_check_method=pass_all
3962 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3963 case $host_vendor in
3965 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]'
3966 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3969 lt_cv_deplibs_check_method=pass_all
3972 lt_cv_file_magic_cmd='/bin/file'
3973 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3976 lt_cv_file_magic_cmd='/bin/file'
3977 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3978 lt_cv_file_magic_test_file=/lib/libc.so
3981 lt_cv_deplibs_check_method=pass_all
3989 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
3990 file_magic_cmd=$lt_cv_file_magic_cmd
3991 deplibs_check_method=$lt_cv_deplibs_check_method
3993 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
3994 echo "configure:3995: checking for object suffix" >&5
3995 if eval "test \"\${ac_cv_objext+set}\" = set"; then
3996 echo $ac_n "(cached) $ac_c" 1>&6
3999 echo 'int i = 1;' > conftest.$ac_ext
4000 if { (eval echo configure:4001: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4001 for ac_file in conftest.*; do
4004 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
4008 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
4013 echo "$ac_t""$ac_cv_objext" 1>&6
4014 OBJEXT=$ac_cv_objext
4015 ac_objext=$ac_cv_objext
4020 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
4021 echo "configure:4022: checking for executable suffix" >&5
4022 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
4023 echo $ac_n "(cached) $ac_c" 1>&6
4025 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
4029 echo 'int main () { return 0; }' > conftest.$ac_ext
4031 if { (eval echo configure:4032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
4032 for file in conftest.*; do
4034 *.c | *.C | *.o | *.obj | *.xcoff) ;;
4035 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
4039 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
4042 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
4047 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
4048 echo "$ac_t""${ac_cv_exeext}" 1>&6
4051 if test $host != $build; then
4052 ac_tool_prefix=${host_alias}-
4060 # Check for command to grab the raw symbol name followed by C symbol from nm.
4061 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
4062 echo "configure:4063: checking command to parse $NM output" >&5
4063 if eval "test \"\${lt_cv_sys_global_symbol_pipe+set}\" = set"; then
4064 echo $ac_n "(cached) $ac_c" 1>&6
4067 # These are sane defaults that work on at least a few old systems.
4068 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4070 # Character class describing NM global symbol codes.
4071 symcode='[BCDEGRST]'
4073 # Regexp to match symbols that can be accessed directly from C.
4074 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4076 # Transform the above into a raw symbol and a C symbol.
4077 symxfrm='\1 \2\3 \3'
4079 # Transform an extracted symbol line into a proper C declaration
4080 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
4082 # Transform an extracted symbol line into symbol name and symbol address
4083 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
4085 # Define system-specific variables.
4090 cygwin* | mingw* | pw32*)
4091 symcode='[ABCDGISTW]'
4093 hpux*) # Its linker distinguishes data from code symbols
4094 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4095 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'"
4098 symcode='[BCDEGRST]'
4101 symcode='[BCDEGQRST]'
4111 # Handle CRLF in mingw tool chain
4115 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4119 # If we're using GNU nm, then use its standard symbol codes.
4120 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
4121 symcode='[ABCDGISTW]'
4124 # Try without a prefix undercore, then with it.
4125 for ac_symprfx in "" "_"; do
4127 # Write the raw and C identifiers.
4128 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4130 # Check to see that the pipe works correctly.
4133 cat > conftest.$ac_ext <<EOF
4138 void nm_test_func(){}
4142 int main(){nm_test_var='a';nm_test_func();return(0);}
4145 if { (eval echo configure:4146: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4146 # Now try to grab the symbols.
4148 if { (eval echo configure:4149: \"$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
4149 # Try sorting and uniquifying the output.
4150 if sort "$nlist" | uniq > "$nlist"T; then
4151 mv -f "$nlist"T "$nlist"
4156 # Make sure that we snagged all the symbols we need.
4157 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4158 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4159 cat <<EOF > conftest.$ac_ext
4165 # Now generate the symbol file.
4166 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4168 cat <<EOF >> conftest.$ac_ext
4169 #if defined (__STDC__) && __STDC__
4170 # define lt_ptr void *
4172 # define lt_ptr char *
4176 /* The mapping between symbol names and symbols. */
4181 lt_preloaded_symbols[] =
4184 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4185 cat <<\EOF >> conftest.$ac_ext
4193 # Now try linking the two files.
4194 mv conftest.$ac_objext conftstm.$ac_objext
4196 save_CFLAGS="$CFLAGS"
4197 LIBS="conftstm.$ac_objext"
4198 CFLAGS="$CFLAGS$no_builtin_flag"
4199 if { (eval echo configure:4200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
4203 CFLAGS="$save_CFLAGS"
4205 echo "cannot find nm_test_func in $nlist" >&5
4208 echo "cannot find nm_test_var in $nlist" >&5
4211 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4214 echo "$progname: failed program was:" >&5
4215 cat conftest.$ac_ext >&5
4217 rm -f conftest* conftst*
4219 # Do not use the global_symbol_pipe unless it works.
4220 if test "$pipe_works" = yes; then
4223 lt_cv_sys_global_symbol_pipe=
4229 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4230 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4231 global_symbol_to_cdecl=
4232 global_symbol_to_c_name_address=
4234 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4235 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4237 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4239 echo "$ac_t""failed" 1>&6
4241 echo "$ac_t""ok" 1>&6
4244 for ac_hdr in dlfcn.h
4246 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4247 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4248 echo "configure:4249: checking for $ac_hdr" >&5
4249 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4250 echo $ac_n "(cached) $ac_c" 1>&6
4252 cat > conftest.$ac_ext <<EOF
4253 #line 4254 "configure"
4254 #include "confdefs.h"
4257 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4258 { (eval echo configure:4259: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4259 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4260 if test -z "$ac_err"; then
4262 eval "ac_cv_header_$ac_safe=yes"
4265 echo "configure: failed program was:" >&5
4266 cat conftest.$ac_ext >&5
4268 eval "ac_cv_header_$ac_safe=no"
4272 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4273 echo "$ac_t""yes" 1>&6
4274 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4275 cat >> confdefs.h <<EOF
4276 #define $ac_tr_hdr 1
4280 echo "$ac_t""no" 1>&6
4289 # Only perform the check for file, if the check method requires it
4290 case $deplibs_check_method in
4292 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4293 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
4294 echo "configure:4295: checking for ${ac_tool_prefix}file" >&5
4295 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
4296 echo $ac_n "(cached) $ac_c" 1>&6
4300 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4303 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4306 ac_save_MAGIC_CMD="$MAGIC_CMD"
4307 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4308 ac_dummy="/usr/bin:$PATH"
4309 for ac_dir in $ac_dummy; do
4310 test -z "$ac_dir" && ac_dir=.
4311 if test -f $ac_dir/${ac_tool_prefix}file; then
4312 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4313 if test -n "$file_magic_test_file"; then
4314 case $deplibs_check_method in
4316 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4317 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4318 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4319 egrep "$file_magic_regex" > /dev/null; then
4324 *** Warning: the command libtool uses to detect shared libraries,
4325 *** $file_magic_cmd, produces output that libtool cannot recognize.
4326 *** The result is that libtool may fail to recognize shared libraries
4327 *** as such. This will affect the creation of libtool libraries that
4328 *** depend on shared libraries, but programs linked with such libtool
4329 *** libraries will work regardless of this problem. Nevertheless, you
4330 *** may want to report the problem to your system manager and/or to
4331 *** bug-libtool@gnu.org
4341 MAGIC_CMD="$ac_save_MAGIC_CMD"
4346 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4347 if test -n "$MAGIC_CMD"; then
4348 echo "$ac_t""$MAGIC_CMD" 1>&6
4350 echo "$ac_t""no" 1>&6
4353 if test -z "$lt_cv_path_MAGIC_CMD"; then
4354 if test -n "$ac_tool_prefix"; then
4355 echo $ac_n "checking for file""... $ac_c" 1>&6
4356 echo "configure:4357: checking for file" >&5
4357 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
4358 echo $ac_n "(cached) $ac_c" 1>&6
4362 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4365 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4368 ac_save_MAGIC_CMD="$MAGIC_CMD"
4369 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4370 ac_dummy="/usr/bin:$PATH"
4371 for ac_dir in $ac_dummy; do
4372 test -z "$ac_dir" && ac_dir=.
4373 if test -f $ac_dir/file; then
4374 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4375 if test -n "$file_magic_test_file"; then
4376 case $deplibs_check_method in
4378 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4379 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4380 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4381 egrep "$file_magic_regex" > /dev/null; then
4386 *** Warning: the command libtool uses to detect shared libraries,
4387 *** $file_magic_cmd, produces output that libtool cannot recognize.
4388 *** The result is that libtool may fail to recognize shared libraries
4389 *** as such. This will affect the creation of libtool libraries that
4390 *** depend on shared libraries, but programs linked with such libtool
4391 *** libraries will work regardless of this problem. Nevertheless, you
4392 *** may want to report the problem to your system manager and/or to
4393 *** bug-libtool@gnu.org
4403 MAGIC_CMD="$ac_save_MAGIC_CMD"
4408 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4409 if test -n "$MAGIC_CMD"; then
4410 echo "$ac_t""$MAGIC_CMD" 1>&6
4412 echo "$ac_t""no" 1>&6
4424 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4425 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4426 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4427 echo "configure:4428: checking for $ac_word" >&5
4428 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
4429 echo $ac_n "(cached) $ac_c" 1>&6
4431 if test -n "$RANLIB"; then
4432 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4434 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4436 for ac_dir in $ac_dummy; do
4437 test -z "$ac_dir" && ac_dir=.
4438 if test -f $ac_dir/$ac_word; then
4439 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4446 RANLIB="$ac_cv_prog_RANLIB"
4447 if test -n "$RANLIB"; then
4448 echo "$ac_t""$RANLIB" 1>&6
4450 echo "$ac_t""no" 1>&6
4454 if test -z "$ac_cv_prog_RANLIB"; then
4455 if test -n "$ac_tool_prefix"; then
4456 # Extract the first word of "ranlib", so it can be a program name with args.
4457 set dummy ranlib; ac_word=$2
4458 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4459 echo "configure:4460: checking for $ac_word" >&5
4460 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
4461 echo $ac_n "(cached) $ac_c" 1>&6
4463 if test -n "$RANLIB"; then
4464 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4466 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4468 for ac_dir in $ac_dummy; do
4469 test -z "$ac_dir" && ac_dir=.
4470 if test -f $ac_dir/$ac_word; then
4471 ac_cv_prog_RANLIB="ranlib"
4476 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
4479 RANLIB="$ac_cv_prog_RANLIB"
4480 if test -n "$RANLIB"; then
4481 echo "$ac_t""$RANLIB" 1>&6
4483 echo "$ac_t""no" 1>&6
4491 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4492 set dummy ${ac_tool_prefix}strip; ac_word=$2
4493 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4494 echo "configure:4495: checking for $ac_word" >&5
4495 if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then
4496 echo $ac_n "(cached) $ac_c" 1>&6
4498 if test -n "$STRIP"; then
4499 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4501 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4503 for ac_dir in $ac_dummy; do
4504 test -z "$ac_dir" && ac_dir=.
4505 if test -f $ac_dir/$ac_word; then
4506 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4513 STRIP="$ac_cv_prog_STRIP"
4514 if test -n "$STRIP"; then
4515 echo "$ac_t""$STRIP" 1>&6
4517 echo "$ac_t""no" 1>&6
4521 if test -z "$ac_cv_prog_STRIP"; then
4522 if test -n "$ac_tool_prefix"; then
4523 # Extract the first word of "strip", so it can be a program name with args.
4524 set dummy strip; ac_word=$2
4525 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4526 echo "configure:4527: checking for $ac_word" >&5
4527 if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then
4528 echo $ac_n "(cached) $ac_c" 1>&6
4530 if test -n "$STRIP"; then
4531 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4533 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4535 for ac_dir in $ac_dummy; do
4536 test -z "$ac_dir" && ac_dir=.
4537 if test -f $ac_dir/$ac_word; then
4538 ac_cv_prog_STRIP="strip"
4543 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
4546 STRIP="$ac_cv_prog_STRIP"
4547 if test -n "$STRIP"; then
4548 echo "$ac_t""$STRIP" 1>&6
4550 echo "$ac_t""no" 1>&6
4560 enable_win32_dll=yes
4562 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4563 if test "${enable_libtool_lock+set}" = set; then
4564 enableval="$enable_libtool_lock"
4568 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4570 # Some flags need to be propagated to the compiler or linker for good
4574 # Find out which ABI we are using.
4575 echo '#line 4576 "configure"' > conftest.$ac_ext
4576 if { (eval echo configure:4577: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4577 case `/usr/bin/file conftest.$ac_objext` in
4593 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4594 SAVE_CFLAGS="$CFLAGS"
4595 CFLAGS="$CFLAGS -belf"
4596 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
4597 echo "configure:4598: checking whether the C compiler needs -belf" >&5
4598 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
4599 echo $ac_n "(cached) $ac_c" 1>&6
4603 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4604 ac_cpp='$CPP $CPPFLAGS'
4605 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4606 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4607 cross_compiling=$ac_cv_prog_cc_cross
4609 cat > conftest.$ac_ext <<EOF
4610 #line 4611 "configure"
4611 #include "confdefs.h"
4617 if { (eval echo configure:4618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4619 lt_cv_cc_needs_belf=yes
4621 echo "configure: failed program was:" >&5
4622 cat conftest.$ac_ext >&5
4624 lt_cv_cc_needs_belf=no
4628 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4629 ac_cpp='$CPP $CPPFLAGS'
4630 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4631 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4632 cross_compiling=$ac_cv_prog_cc_cross
4636 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
4637 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4638 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4639 CFLAGS="$SAVE_CFLAGS"
4643 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4644 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4645 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4646 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4647 echo "configure:4648: checking for $ac_word" >&5
4648 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
4649 echo $ac_n "(cached) $ac_c" 1>&6
4651 if test -n "$DLLTOOL"; then
4652 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4654 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4656 for ac_dir in $ac_dummy; do
4657 test -z "$ac_dir" && ac_dir=.
4658 if test -f $ac_dir/$ac_word; then
4659 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4666 DLLTOOL="$ac_cv_prog_DLLTOOL"
4667 if test -n "$DLLTOOL"; then
4668 echo "$ac_t""$DLLTOOL" 1>&6
4670 echo "$ac_t""no" 1>&6
4674 if test -z "$ac_cv_prog_DLLTOOL"; then
4675 if test -n "$ac_tool_prefix"; then
4676 # Extract the first word of "dlltool", so it can be a program name with args.
4677 set dummy dlltool; ac_word=$2
4678 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4679 echo "configure:4680: checking for $ac_word" >&5
4680 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
4681 echo $ac_n "(cached) $ac_c" 1>&6
4683 if test -n "$DLLTOOL"; then
4684 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4686 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4688 for ac_dir in $ac_dummy; do
4689 test -z "$ac_dir" && ac_dir=.
4690 if test -f $ac_dir/$ac_word; then
4691 ac_cv_prog_DLLTOOL="dlltool"
4696 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
4699 DLLTOOL="$ac_cv_prog_DLLTOOL"
4700 if test -n "$DLLTOOL"; then
4701 echo "$ac_t""$DLLTOOL" 1>&6
4703 echo "$ac_t""no" 1>&6
4711 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4712 set dummy ${ac_tool_prefix}as; ac_word=$2
4713 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4714 echo "configure:4715: checking for $ac_word" >&5
4715 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
4716 echo $ac_n "(cached) $ac_c" 1>&6
4718 if test -n "$AS"; then
4719 ac_cv_prog_AS="$AS" # Let the user override the test.
4721 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4723 for ac_dir in $ac_dummy; do
4724 test -z "$ac_dir" && ac_dir=.
4725 if test -f $ac_dir/$ac_word; then
4726 ac_cv_prog_AS="${ac_tool_prefix}as"
4734 if test -n "$AS"; then
4735 echo "$ac_t""$AS" 1>&6
4737 echo "$ac_t""no" 1>&6
4741 if test -z "$ac_cv_prog_AS"; then
4742 if test -n "$ac_tool_prefix"; then
4743 # Extract the first word of "as", so it can be a program name with args.
4744 set dummy as; ac_word=$2
4745 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4746 echo "configure:4747: checking for $ac_word" >&5
4747 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
4748 echo $ac_n "(cached) $ac_c" 1>&6
4750 if test -n "$AS"; then
4751 ac_cv_prog_AS="$AS" # Let the user override the test.
4753 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4755 for ac_dir in $ac_dummy; do
4756 test -z "$ac_dir" && ac_dir=.
4757 if test -f $ac_dir/$ac_word; then
4763 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
4767 if test -n "$AS"; then
4768 echo "$ac_t""$AS" 1>&6
4770 echo "$ac_t""no" 1>&6
4778 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4779 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4780 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4781 echo "configure:4782: checking for $ac_word" >&5
4782 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
4783 echo $ac_n "(cached) $ac_c" 1>&6
4785 if test -n "$OBJDUMP"; then
4786 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4788 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4790 for ac_dir in $ac_dummy; do
4791 test -z "$ac_dir" && ac_dir=.
4792 if test -f $ac_dir/$ac_word; then
4793 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4800 OBJDUMP="$ac_cv_prog_OBJDUMP"
4801 if test -n "$OBJDUMP"; then
4802 echo "$ac_t""$OBJDUMP" 1>&6
4804 echo "$ac_t""no" 1>&6
4808 if test -z "$ac_cv_prog_OBJDUMP"; then
4809 if test -n "$ac_tool_prefix"; then
4810 # Extract the first word of "objdump", so it can be a program name with args.
4811 set dummy objdump; ac_word=$2
4812 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4813 echo "configure:4814: checking for $ac_word" >&5
4814 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
4815 echo $ac_n "(cached) $ac_c" 1>&6
4817 if test -n "$OBJDUMP"; then
4818 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4820 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4822 for ac_dir in $ac_dummy; do
4823 test -z "$ac_dir" && ac_dir=.
4824 if test -f $ac_dir/$ac_word; then
4825 ac_cv_prog_OBJDUMP="objdump"
4830 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
4833 OBJDUMP="$ac_cv_prog_OBJDUMP"
4834 if test -n "$OBJDUMP"; then
4835 echo "$ac_t""$OBJDUMP" 1>&6
4837 echo "$ac_t""no" 1>&6
4846 # recent cygwin and mingw systems supply a stub DllMain which the user
4847 # can override, but on older systems we have to supply one
4848 echo $ac_n "checking if libtool should supply DllMain function""... $ac_c" 1>&6
4849 echo "configure:4850: checking if libtool should supply DllMain function" >&5
4850 if eval "test \"\${lt_cv_need_dllmain+set}\" = set"; then
4851 echo $ac_n "(cached) $ac_c" 1>&6
4853 cat > conftest.$ac_ext <<EOF
4854 #line 4855 "configure"
4855 #include "confdefs.h"
4858 extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
4862 if { (eval echo configure:4863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4864 lt_cv_need_dllmain=no
4866 echo "configure: failed program was:" >&5
4867 cat conftest.$ac_ext >&5
4869 lt_cv_need_dllmain=yes
4874 echo "$ac_t""$lt_cv_need_dllmain" 1>&6
4877 *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
4878 # old mingw systems require "-dll" to link a DLL, while more recent ones
4880 SAVE_CFLAGS="$CFLAGS"
4881 CFLAGS="$CFLAGS -mdll"
4882 echo $ac_n "checking how to link DLLs""... $ac_c" 1>&6
4883 echo "configure:4884: checking how to link DLLs" >&5
4884 if eval "test \"\${lt_cv_cc_dll_switch+set}\" = set"; then
4885 echo $ac_n "(cached) $ac_c" 1>&6
4887 cat > conftest.$ac_ext <<EOF
4888 #line 4889 "configure"
4889 #include "confdefs.h"
4895 if { (eval echo configure:4896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4897 lt_cv_cc_dll_switch=-mdll
4899 echo "configure: failed program was:" >&5
4900 cat conftest.$ac_ext >&5
4902 lt_cv_cc_dll_switch=-dll
4907 echo "$ac_t""$lt_cv_cc_dll_switch" 1>&6
4908 CFLAGS="$SAVE_CFLAGS" ;;
4909 *-*-cygwin* | *-*-pw32*)
4910 # cygwin systems need to pass --dll to the linker, and not link
4911 # crt.o which will require a WinMain@16 definition.
4912 lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
4918 # Sed substitution that helps us do robust quoting. It backslashifies
4919 # metacharacters that are still active within double-quoted strings.
4920 Xsed='sed -e s/^X//'
4921 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4923 # Same as above, but do not quote variable references.
4924 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4926 # Sed substitution to delay expansion of an escaped shell variable in a
4927 # double_quote_subst'ed string.
4928 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4934 default_ofile=libtool
4935 can_build_shared=yes
4937 # All known linkers require a `.a' archive for static linking (except M$VC,
4938 # which needs '.lib').
4940 ltmain="$ac_aux_dir/ltmain.sh"
4941 ofile="$default_ofile"
4942 with_gnu_ld="$lt_cv_prog_gnu_ld"
4943 need_locks="$enable_libtool_lock"
4946 old_CFLAGS="$CFLAGS"
4948 # Set sane defaults for various variables
4949 test -z "$AR" && AR=ar
4950 test -z "$AR_FLAGS" && AR_FLAGS=cru
4951 test -z "$AS" && AS=as
4952 test -z "$CC" && CC=cc
4953 test -z "$DLLTOOL" && DLLTOOL=dlltool
4954 test -z "$LD" && LD=ld
4955 test -z "$LN_S" && LN_S="ln -s"
4956 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4957 test -z "$NM" && NM=nm
4958 test -z "$OBJDUMP" && OBJDUMP=objdump
4959 test -z "$RANLIB" && RANLIB=:
4960 test -z "$STRIP" && STRIP=:
4961 test -z "$ac_objext" && ac_objext=o
4963 if test x"$host" != x"$build"; then
4964 ac_tool_prefix=${host_alias}-
4969 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4972 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4977 # AIX sometimes has problems with the GCC collect2 program. For some
4978 # reason, if we set the COLLECT_NAMES environment variable, the problems
4979 # vanish in a puff of smoke.
4980 if test "X${COLLECT_NAMES+set}" != Xset; then
4982 export COLLECT_NAMES
4987 # Determine commands to create old-style static archives.
4988 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4989 old_postinstall_cmds='chmod 644 $oldlib'
4990 old_postuninstall_cmds=
4992 if test -n "$RANLIB"; then
4995 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4998 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5001 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5004 # Allow CC to be a program name with arguments.
5008 echo $ac_n "checking for objdir""... $ac_c" 1>&6
5009 echo "configure:5010: checking for objdir" >&5
5010 rm -f .libs 2>/dev/null
5011 mkdir .libs 2>/dev/null
5012 if test -d .libs; then
5015 # MS-DOS does not allow filenames that begin with a dot.
5018 rmdir .libs 2>/dev/null
5019 echo "$ac_t""$objdir" 1>&6
5022 # Check whether --with-pic or --without-pic was given.
5023 if test "${with_pic+set}" = set; then
5030 test -z "$pic_mode" && pic_mode=default
5032 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
5033 # in isolation, and that seeing it set (from the cache) indicates that
5034 # the associated values are set (in the cache) correctly too.
5035 echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6
5036 echo "configure:5037: checking for $compiler option to produce PIC" >&5
5037 if eval "test \"\${lt_cv_prog_cc_pic+set}\" = set"; then
5038 echo $ac_n "(cached) $ac_c" 1>&6
5041 lt_cv_prog_cc_shlib=
5043 lt_cv_prog_cc_static=
5044 lt_cv_prog_cc_no_builtin=
5045 lt_cv_prog_cc_can_build_shared=$can_build_shared
5047 if test "$GCC" = yes; then
5048 lt_cv_prog_cc_wl='-Wl,'
5049 lt_cv_prog_cc_static='-static'
5053 # Below there is a dirty hack to force normal static linking with -ldl
5054 # The problem is because libdl dynamically linked with both libc and
5055 # libC (AIX C++ library), which obviously doesn't included in libraries
5056 # list by gcc. This cause undefined symbols with -static flags.
5057 # This hack allows C programs to be linked with "-static -ldl", but
5058 # not sure about C++ programs.
5059 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5062 # FIXME: we need at least 68020 code to build shared libraries, but
5063 # adding the `-m68020' flag to GCC prevents building anything better,
5065 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5067 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5068 # PIC is the default for these OSes.
5070 darwin* | rhapsody*)
5071 # PIC is the default on this platform
5072 # Common symbols not allowed in MH_DYLIB files
5073 lt_cv_prog_cc_pic='-fno-common'
5075 cygwin* | mingw* | pw32* | os2*)
5076 # This hack is so that the source file can tell whether it is being
5077 # built for inclusion in a dll (and should export symbols for example).
5078 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5081 if test -d /usr/nec; then
5082 lt_cv_prog_cc_pic=-Kconform_pic
5086 lt_cv_prog_cc_pic='-fPIC'
5090 # PORTME Check for PIC flags for the system compiler.
5092 aix3* | aix4* | aix5*)
5093 lt_cv_prog_cc_wl='-Wl,'
5094 # All AIX code is PIC.
5095 if test "$host_cpu" = ia64; then
5096 # AIX 5 now supports IA64 processor
5097 lt_cv_prog_cc_static='-Bstatic'
5099 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5103 hpux9* | hpux10* | hpux11*)
5104 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5105 lt_cv_prog_cc_wl='-Wl,'
5106 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5107 lt_cv_prog_cc_pic='+Z'
5110 irix5* | irix6* | nonstopux*)
5111 lt_cv_prog_cc_wl='-Wl,'
5112 lt_cv_prog_cc_static='-non_shared'
5113 # PIC (with -KPIC) is the default.
5116 cygwin* | mingw* | pw32* | os2*)
5117 # This hack is so that the source file can tell whether it is being
5118 # built for inclusion in a dll (and should export symbols for example).
5119 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5123 lt_cv_prog_cc_pic='-KPIC'
5124 lt_cv_prog_cc_static='-Bstatic'
5127 osf3* | osf4* | osf5*)
5128 # All OSF/1 code is PIC.
5129 lt_cv_prog_cc_wl='-Wl,'
5130 lt_cv_prog_cc_static='-non_shared'
5134 lt_cv_prog_cc_pic='-Kpic'
5135 lt_cv_prog_cc_static='-dn'
5136 lt_cv_prog_cc_shlib='-belf'
5140 lt_cv_prog_cc_pic='-KPIC'
5141 lt_cv_prog_cc_static='-Bstatic'
5142 lt_cv_prog_cc_wl='-Wl,'
5146 lt_cv_prog_cc_pic='-PIC'
5147 lt_cv_prog_cc_static='-Bstatic'
5148 lt_cv_prog_cc_wl='-Qoption ld '
5151 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5152 lt_cv_prog_cc_pic='-KPIC'
5153 lt_cv_prog_cc_static='-Bstatic'
5154 lt_cv_prog_cc_wl='-Wl,'
5158 lt_cv_prog_cc_pic='-pic'
5159 lt_cv_prog_cc_static='-Bstatic'
5163 if test -d /usr/nec ;then
5164 lt_cv_prog_cc_pic='-Kconform_pic'
5165 lt_cv_prog_cc_static='-Bstatic'
5170 lt_cv_prog_cc_can_build_shared=no
5177 if test -z "$lt_cv_prog_cc_pic"; then
5178 echo "$ac_t""none" 1>&6
5180 echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6
5182 # Check to make sure the pic_flag actually works.
5183 echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6
5184 echo "configure:5185: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5185 if eval "test \"\${lt_cv_prog_cc_pic_works+set}\" = set"; then
5186 echo $ac_n "(cached) $ac_c" 1>&6
5188 save_CFLAGS="$CFLAGS"
5189 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5190 cat > conftest.$ac_ext <<EOF
5191 #line 5192 "configure"
5192 #include "confdefs.h"
5198 if { (eval echo configure:5199: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5201 hpux9* | hpux10* | hpux11*)
5202 # On HP-UX, both CC and GCC only warn that PIC is supported... then
5203 # they create non-PIC objects. So, if there were any warnings, we
5204 # assume that PIC is not supported.
5205 if test -s conftest.err; then
5206 lt_cv_prog_cc_pic_works=no
5208 lt_cv_prog_cc_pic_works=yes
5212 lt_cv_prog_cc_pic_works=yes
5217 echo "configure: failed program was:" >&5
5218 cat conftest.$ac_ext >&5
5220 lt_cv_prog_cc_pic_works=no
5224 CFLAGS="$save_CFLAGS"
5229 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5231 lt_cv_prog_cc_can_build_shared=no
5233 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5236 echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6
5239 # Check for any special shared library compilation flags.
5240 if test -n "$lt_cv_prog_cc_shlib"; then
5241 echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2
5242 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5244 echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2
5245 lt_cv_prog_cc_can_build_shared=no
5249 echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6
5250 echo "configure:5251: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5251 if eval "test \"\${lt_cv_prog_cc_static_works+set}\" = set"; then
5252 echo $ac_n "(cached) $ac_c" 1>&6
5254 lt_cv_prog_cc_static_works=no
5255 save_LDFLAGS="$LDFLAGS"
5256 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5257 cat > conftest.$ac_ext <<EOF
5258 #line 5259 "configure"
5259 #include "confdefs.h"
5265 if { (eval echo configure:5266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5267 lt_cv_prog_cc_static_works=yes
5269 echo "configure: failed program was:" >&5
5270 cat conftest.$ac_ext >&5
5273 LDFLAGS="$save_LDFLAGS"
5278 # Belt *and* braces to stop my trousers falling down:
5279 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5280 echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6
5282 pic_flag="$lt_cv_prog_cc_pic"
5283 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5284 wl="$lt_cv_prog_cc_wl"
5285 link_static_flag="$lt_cv_prog_cc_static"
5286 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5287 can_build_shared="$lt_cv_prog_cc_can_build_shared"
5290 # Check to see if options -o and -c are simultaneously supported by compiler
5291 echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6
5292 echo "configure:5293: checking if $compiler supports -c -o file.$ac_objext" >&5
5293 if eval "test \"\${lt_cv_compiler_c_o+set}\" = set"; then
5294 echo $ac_n "(cached) $ac_c" 1>&6
5297 $rm -r conftest 2>/dev/null
5300 echo "int some_variable = 0;" > conftest.$ac_ext
5302 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5303 # that will create temporary files in the current directory regardless of
5304 # the output directory. Thus, making CWD read-only will cause this test
5305 # to fail, enabling locking or at least warning the user not to do parallel
5308 save_CFLAGS="$CFLAGS"
5309 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5311 if { (eval echo configure:5312: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5312 # The compiler can only warn and ignore the option if not recognized
5313 # So say no if there are warnings
5314 if test -s out/conftest.err; then
5315 lt_cv_compiler_c_o=no
5317 lt_cv_compiler_c_o=yes
5320 # Append any errors to the config.log.
5321 cat out/conftest.err 1>&5
5322 lt_cv_compiler_c_o=no
5324 CFLAGS="$save_CFLAGS"
5330 $rm -r conftest 2>/dev/null
5334 compiler_c_o=$lt_cv_compiler_c_o
5335 echo "$ac_t""$compiler_c_o" 1>&6
5337 if test x"$compiler_c_o" = x"yes"; then
5338 # Check to see if we can write to a .lo
5339 echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6
5340 echo "configure:5341: checking if $compiler supports -c -o file.lo" >&5
5341 if eval "test \"\${lt_cv_compiler_o_lo+set}\" = set"; then
5342 echo $ac_n "(cached) $ac_c" 1>&6
5345 lt_cv_compiler_o_lo=no
5346 save_CFLAGS="$CFLAGS"
5347 CFLAGS="$CFLAGS -c -o conftest.lo"
5348 save_objext="$ac_objext"
5350 cat > conftest.$ac_ext <<EOF
5351 #line 5352 "configure"
5352 #include "confdefs.h"
5355 int some_variable = 0;
5358 if { (eval echo configure:5359: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5360 # The compiler can only warn and ignore the option if not recognized
5361 # So say no if there are warnings
5362 if test -s conftest.err; then
5363 lt_cv_compiler_o_lo=no
5365 lt_cv_compiler_o_lo=yes
5369 echo "configure: failed program was:" >&5
5370 cat conftest.$ac_ext >&5
5373 ac_objext="$save_objext"
5374 CFLAGS="$save_CFLAGS"
5378 compiler_o_lo=$lt_cv_compiler_o_lo
5379 echo "$ac_t""$compiler_o_lo" 1>&6
5384 # Check to see if we can do hard links to lock some files if needed
5385 hard_links="nottested"
5386 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5387 # do not overwrite the value of need_locks provided by the user
5388 echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6
5389 echo "configure:5390: checking if we can lock with hard links" >&5
5392 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5394 ln conftest.a conftest.b 2>&5 || hard_links=no
5395 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5396 echo "$ac_t""$hard_links" 1>&6
5397 if test "$hard_links" = no; then
5398 echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2
5405 if test "$GCC" = yes; then
5406 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5407 echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6
5408 echo "configure:5409: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5409 echo "int some_variable = 0;" > conftest.$ac_ext
5410 save_CFLAGS="$CFLAGS"
5411 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5412 compiler_rtti_exceptions=no
5413 cat > conftest.$ac_ext <<EOF
5414 #line 5415 "configure"
5415 #include "confdefs.h"
5418 int some_variable = 0;
5421 if { (eval echo configure:5422: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5423 # The compiler can only warn and ignore the option if not recognized
5424 # So say no if there are warnings
5425 if test -s conftest.err; then
5426 compiler_rtti_exceptions=no
5428 compiler_rtti_exceptions=yes
5432 echo "configure: failed program was:" >&5
5433 cat conftest.$ac_ext >&5
5436 CFLAGS="$save_CFLAGS"
5437 echo "$ac_t""$compiler_rtti_exceptions" 1>&6
5439 if test "$compiler_rtti_exceptions" = "yes"; then
5440 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5442 no_builtin_flag=' -fno-builtin'
5446 # See if the linker supports building shared libraries.
5447 echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6
5448 echo "configure:5449: checking whether the linker ($LD) supports shared libraries" >&5
5450 allow_undefined_flag=
5452 need_lib_prefix=unknown
5453 need_version=unknown
5454 # when you set need_version to no, make sure it does not cause -set_version
5455 # flags to be left without arguments
5457 archive_expsym_cmds=
5458 old_archive_from_new_cmds=
5459 old_archive_from_expsyms_cmds=
5460 export_dynamic_flag_spec=
5461 whole_archive_flag_spec=
5462 thread_safe_flag_spec=
5463 hardcode_into_libs=no
5464 hardcode_libdir_flag_spec=
5465 hardcode_libdir_separator=
5468 hardcode_shlibpath_var=unsupported
5470 link_all_deplibs=unknown
5471 always_export_symbols=no
5472 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5473 # include_expsyms should be a list of space-separated symbols to be *always*
5474 # included in the symbol list
5476 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5477 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5478 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5479 # as well as any symbol that contains `d'.
5480 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5481 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5482 # platforms (ab)use it in PIC code, but their linkers get confused if
5483 # the symbol is explicitly referenced. Since portable code cannot
5484 # rely on this symbol name, it's probably fine to never include it in
5485 # preloaded symbol tables.
5486 extract_expsyms_cmds=
5489 cygwin* | mingw* | pw32*)
5490 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5491 # When not using gcc, we currently assume that we are using
5492 # Microsoft Visual C++.
5493 if test "$GCC" != yes; then
5503 if test "$with_gnu_ld" = yes; then
5504 # If archive_cmds runs LD, not CC, wlarc should be empty
5507 # See if GNU ld supports shared libraries.
5509 aix3* | aix4* | aix5*)
5510 # On AIX, the GNU linker is very broken
5511 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5515 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5516 *** to be unable to reliably create shared libraries on AIX.
5517 *** Therefore, libtool is disabling shared libraries support. If you
5518 *** really care for shared libraries, you may want to modify your PATH
5519 *** so that a non-GNU linker is found, and then restart.
5525 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)'
5526 hardcode_libdir_flag_spec='-L$libdir'
5527 hardcode_minus_L=yes
5529 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5530 # that the semantics of dynamic libraries on AmigaOS, at least up
5531 # to version 4, is to share data among multiple programs linked
5532 # with the same dynamic library. Since this doesn't match the
5533 # behavior of shared libraries on other platforms, we can use
5539 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5540 allow_undefined_flag=unsupported
5541 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5542 # support --undefined. This deserves some investigation. FIXME
5543 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5549 cygwin* | mingw* | pw32*)
5550 # hardcode_libdir_flag_spec is actually meaningless, as there is
5551 # no search path for DLLs.
5552 hardcode_libdir_flag_spec='-L$libdir'
5553 allow_undefined_flag=unsupported
5554 always_export_symbols=yes
5556 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5557 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5558 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5559 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5560 else $CC -o impgen impgen.c ; fi)~
5561 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5563 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5565 # cygwin and mingw dlls have different entry points and sets of symbols
5567 # FIXME: what about values for MSVC?
5568 dll_entry=__cygwin_dll_entry@12
5569 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5573 dll_entry=_DllMainCRTStartup@12
5574 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5578 # mingw and cygwin differ, and it's simplest to just exclude the union
5579 # of the two symbol sets.
5580 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5582 # recent cygwin and mingw systems supply a stub DllMain which the user
5583 # can override, but on older systems we have to supply one (in ltdll.c)
5584 if test "x$lt_cv_need_dllmain" = "xyes"; then
5585 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5586 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~
5587 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5593 # Extract the symbol export list from an `--export-all' def file,
5594 # then regenerate the def file from the symbol export list, so that
5595 # the compiled dll only exports the symbol export list.
5596 # Be careful not to strip the DATA tag left be newer dlltools.
5597 export_symbols_cmds="$ltdll_cmds"'
5598 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5599 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5601 # If the export-symbols file already is a .def file (1st line
5602 # is EXPORTS), use it as is.
5603 # If DATA tags from a recent dlltool are present, honour them!
5604 archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
5605 cp $export_symbols $output_objdir/$soname-def;
5607 echo EXPORTS > $output_objdir/$soname-def;
5609 cat $export_symbols | while read symbol; do
5612 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5613 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
5614 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5616 _lt_hint=`expr 1 + \$_lt_hint`;
5620 $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~
5621 $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~
5622 $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~
5623 $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~
5624 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5628 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5629 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5632 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5633 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5638 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5642 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5643 *** create shared libraries on Solaris systems. Therefore, libtool
5644 *** is disabling shared libraries support. We urge you to upgrade GNU
5645 *** binutils to release 2.9.1 or newer. Another option is to modify
5646 *** your PATH or compiler configuration so that the native linker is
5647 *** used, and then restart.
5650 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5651 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5652 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5659 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5662 hardcode_shlibpath_var=no
5666 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5667 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5668 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5675 if test "$ld_shlibs" = yes; then
5676 runpath_var=LD_RUN_PATH
5677 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5678 export_dynamic_flag_spec='${wl}--export-dynamic'
5680 cygwin* | mingw* | pw32*)
5681 # dlltool doesn't understand --whole-archive et. al.
5682 whole_archive_flag_spec=
5685 # ancient GNU ld didn't support --whole-archive et. al.
5686 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5687 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5689 whole_archive_flag_spec=
5695 # PORTME fill in a description of your system's linker (not GNU ld)
5698 allow_undefined_flag=unsupported
5699 always_export_symbols=yes
5700 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'
5701 # Note: this linker hardcodes the directories in LIBPATH if there
5702 # are no directories specified by -L.
5703 hardcode_minus_L=yes
5704 if test "$GCC" = yes && test -z "$link_static_flag"; then
5705 # Neither direct hardcoding nor static linking is supported with a
5707 hardcode_direct=unsupported
5712 if test "$host_cpu" = ia64; then
5713 # On IA64, the linker does run time linking by default, so we don't
5714 # have to do anything special.
5715 aix_use_runtimelinking=no
5716 exp_sym_flag='-Bexport'
5719 aix_use_runtimelinking=no
5721 # Test if we are trying to use run time linking or normal
5722 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5723 # need to do runtime linking.
5724 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5725 for ld_flag in $LDFLAGS; do
5728 aix_use_runtimelinking=yes
5735 exp_sym_flag='-bexport'
5736 no_entry_flag='-bnoentry'
5739 # When large executables or shared objects are built, AIX ld can
5740 # have problems creating the table of contents. If linking a library
5741 # or program results in "error TOC overflow" add -mminimal-toc to
5742 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5743 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5747 hardcode_libdir_separator=':'
5748 if test "$GCC" = yes; then
5749 case $host_os in aix4.[012]|aix4.[012].*)
5750 collect2name=`${CC} -print-prog-name=collect2`
5751 if test -f "$collect2name" && \
5752 strings "$collect2name" | grep resolve_lib_name >/dev/null
5754 # We have reworked collect2
5757 # We have old collect2
5758 hardcode_direct=unsupported
5759 # It fails to find uninstalled libraries when the uninstalled
5760 # path is not listed in the libpath. Setting hardcode_minus_L
5761 # to unsupported forces relinking
5762 hardcode_minus_L=yes
5763 hardcode_libdir_flag_spec='-L$libdir'
5764 hardcode_libdir_separator=
5768 shared_flag='-shared'
5771 if test "$host_cpu" = ia64; then
5772 shared_flag='${wl}-G'
5774 if test "$aix_use_runtimelinking" = yes; then
5775 shared_flag='${wl}-G'
5777 shared_flag='${wl}-bM:SRE'
5782 # It seems that -bexpall can do strange things, so it is better to
5783 # generate a list of symbols to export.
5784 always_export_symbols=yes
5785 if test "$aix_use_runtimelinking" = yes; then
5786 # Warning - without using the other runtime loading flags (-brtl),
5787 # -berok will link without error, but may produce a broken library.
5788 allow_undefined_flag='-berok'
5789 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5790 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"
5792 if test "$host_cpu" = ia64; then
5793 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5794 allow_undefined_flag="-z nodefs"
5795 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"
5797 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5798 # Warning - without using the other run time loading flags,
5799 # -berok will link without error, but may produce a broken library.
5800 allow_undefined_flag='${wl}-berok'
5801 # This is a bit strange, but is similar to how AIX traditionally builds
5802 # it's shared libraries.
5803 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'
5809 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)'
5810 hardcode_libdir_flag_spec='-L$libdir'
5811 hardcode_minus_L=yes
5812 # see comment about different semantics on the GNU ld section
5816 cygwin* | mingw* | pw32*)
5817 # When not using gcc, we currently assume that we are using
5818 # Microsoft Visual C++.
5819 # hardcode_libdir_flag_spec is actually meaningless, as there is
5820 # no search path for DLLs.
5821 hardcode_libdir_flag_spec=' '
5822 allow_undefined_flag=unsupported
5823 # Tell ltmain to make .lib files, not .a files.
5825 # FIXME: Setting linknames here is a bad hack.
5826 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5827 # The linker will automatically build a .lib file if we build a DLL.
5828 old_archive_from_new_cmds='true'
5829 # FIXME: Should let the user specify the lib program.
5830 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5831 fix_srcfile_path='`cygpath -w "$srcfile"`'
5834 darwin* | rhapsody*)
5836 rhapsody* | darwin1.[012])
5837 allow_undefined_flag='-undefined suppress'
5840 allow_undefined_flag='-flat_namespace -undefined suppress'
5843 # FIXME: Relying on posixy $() will cause problems for
5844 # cross-compilation, but unfortunately the echo tests do not
5845 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
5846 # `"' quotes if we put them in here... so don't!
5847 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)'
5848 # We need to add '_' to the symbols in $export_symbols first
5849 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5851 hardcode_shlibpath_var=no
5852 whole_archive_flag_spec='-all_load $convenience'
5859 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5860 # support. Future versions do this automatically, but an explicit c++rt0.o
5861 # does not break anything, and helps significantly (at the cost of a little
5864 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5865 hardcode_libdir_flag_spec='-R$libdir'
5867 hardcode_shlibpath_var=no
5870 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5872 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5874 hardcode_minus_L=yes
5875 hardcode_shlibpath_var=no
5878 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5880 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5881 hardcode_libdir_flag_spec='-R$libdir'
5883 hardcode_shlibpath_var=no
5886 hpux9* | hpux10* | hpux11*)
5888 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' ;;
5889 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5891 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5892 hardcode_libdir_separator=:
5894 hardcode_minus_L=yes # Not in the search PATH, but as the default
5895 # location of the library.
5896 export_dynamic_flag_spec='${wl}-E'
5899 irix5* | irix6* | nonstopux*)
5900 if test "$GCC" = yes; then
5901 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'
5902 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5904 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'
5905 hardcode_libdir_flag_spec='-rpath $libdir'
5907 hardcode_libdir_separator=:
5908 link_all_deplibs=yes
5912 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5913 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5915 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5917 hardcode_libdir_flag_spec='-R$libdir'
5919 hardcode_shlibpath_var=no
5923 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5925 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5926 hardcode_libdir_separator=:
5927 hardcode_shlibpath_var=no
5932 hardcode_shlibpath_var=no
5933 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5934 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5935 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5936 export_dynamic_flag_spec='${wl}-E'
5939 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5940 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5941 hardcode_libdir_flag_spec='-R$libdir'
5944 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5945 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5952 hardcode_libdir_flag_spec='-L$libdir'
5953 hardcode_minus_L=yes
5954 allow_undefined_flag=unsupported
5955 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'
5956 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5960 if test "$GCC" = yes; then
5961 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5962 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5964 allow_undefined_flag=' -expect_unresolved \*'
5965 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'
5967 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5968 hardcode_libdir_separator=:
5971 osf4* | osf5*) # as osf3* with the addition of -msym flag
5972 if test "$GCC" = yes; then
5973 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5974 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'
5975 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5977 allow_undefined_flag=' -expect_unresolved \*'
5978 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'
5979 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5980 $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'
5982 #Both c and cxx compiler support -rpath directly
5983 hardcode_libdir_flag_spec='-rpath $libdir'
5985 hardcode_libdir_separator=:
5989 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5990 hardcode_shlibpath_var=no
5991 runpath_var=LD_RUN_PATH
5992 hardcode_runpath_var=yes
5993 export_dynamic_flag_spec='${wl}-Bexport'
5997 # gcc --version < 3.0 without binutils cannot create self contained
5998 # shared libraries reliably, requiring libgcc.a to resolve some of
5999 # the object symbols generated in some cases. Libraries that use
6000 # assert need libgcc.a to resolve __eprintf, for example. Linking
6001 # a copy of libgcc.a into every shared library to guarantee resolving
6002 # such symbols causes other problems: According to Tim Van Holder
6003 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
6004 # (to the application) exception stack for one thing.
6005 no_undefined_flag=' -z defs'
6006 if test "$GCC" = yes; then
6007 case `$CC --version 2>/dev/null` in
6011 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
6012 *** create self contained shared libraries on Solaris systems, without
6013 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
6014 *** -no-undefined support, which will at least allow you to build shared
6015 *** libraries. However, you may find that when you link such libraries
6016 *** into an application without using GCC, you have to manually add
6017 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
6018 *** upgrade to a newer version of GCC. Another option is to rebuild your
6019 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
6026 # $CC -shared without GNU ld will not create a library from C++
6027 # object files and a static libstdc++, better avoid it by now
6028 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6029 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6030 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6031 hardcode_libdir_flag_spec='-R$libdir'
6032 hardcode_shlibpath_var=no
6034 solaris2.[0-5] | solaris2.[0-5].*) ;;
6035 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6036 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6038 link_all_deplibs=yes
6042 if test "x$host_vendor" = xsequent; then
6043 # Use $CC to link under sequent, because it throws in some extra .o
6044 # files that make .init and .fini sections work.
6045 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6047 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6049 hardcode_libdir_flag_spec='-L$libdir'
6051 hardcode_minus_L=yes
6052 hardcode_shlibpath_var=no
6056 case $host_vendor in
6058 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6059 hardcode_direct=yes # is this really true???
6062 ## LD is ld it makes a PLAMLIB
6063 ## CC just makes a GrossModule.
6064 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6065 reload_cmds='$CC -r -o $output$reload_objs'
6069 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6070 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6073 runpath_var='LD_RUN_PATH'
6074 hardcode_shlibpath_var=no
6078 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6079 hardcode_shlibpath_var=no
6080 export_dynamic_flag_spec='-Bexport'
6084 no_undefined_flag=' -z text'
6085 # $CC -shared without GNU ld will not create a library from C++
6086 # object files and a static libstdc++, better avoid it by now
6087 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6088 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6089 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6090 hardcode_libdir_flag_spec=
6091 hardcode_shlibpath_var=no
6092 runpath_var='LD_RUN_PATH'
6096 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6097 hardcode_libdir_flag_spec='-L$libdir'
6098 hardcode_shlibpath_var=no
6102 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6103 hardcode_libdir_flag_spec='-L$libdir'
6104 hardcode_shlibpath_var=no
6108 if test -d /usr/nec; then
6109 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6110 hardcode_shlibpath_var=no
6111 runpath_var=LD_RUN_PATH
6112 hardcode_runpath_var=yes
6118 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6121 hardcode_shlibpath_var=no
6122 hardcode_runpath_var=yes
6123 runpath_var=LD_RUN_PATH
6126 sysv5uw7* | unixware7*)
6127 no_undefined_flag='${wl}-z ${wl}text'
6128 if test "$GCC" = yes; then
6129 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6131 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6133 runpath_var='LD_RUN_PATH'
6134 hardcode_shlibpath_var=no
6142 echo "$ac_t""$ld_shlibs" 1>&6
6143 test "$ld_shlibs" = no && can_build_shared=no
6145 # Check hardcoding attributes.
6146 echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6
6147 echo "configure:6148: checking how to hardcode library paths into programs" >&5
6149 if test -n "$hardcode_libdir_flag_spec" || \
6150 test -n "$runpath_var"; then
6152 # We can hardcode non-existant directories.
6153 if test "$hardcode_direct" != no &&
6154 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6155 # have to relink, otherwise we might link with an installed library
6156 # when we should be linking with a yet-to-be-installed one
6157 ## test "$hardcode_shlibpath_var" != no &&
6158 test "$hardcode_minus_L" != no; then
6159 # Linking always hardcodes the temporary library directory.
6160 hardcode_action=relink
6162 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6163 hardcode_action=immediate
6166 # We cannot hardcode anything, or else we can only hardcode existing
6168 hardcode_action=unsupported
6170 echo "$ac_t""$hardcode_action" 1>&6
6174 echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6
6175 echo "configure:6176: checking whether stripping libraries is possible" >&5
6176 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6177 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6178 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6179 echo "$ac_t""yes" 1>&6
6181 echo "$ac_t""no" 1>&6
6184 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6185 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6187 # PORTME Fill in your ld.so characteristics
6188 echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6
6189 echo "configure:6190: checking dynamic linker characteristics" >&5
6191 libname_spec='lib$name'
6198 shlibpath_overrides_runpath=unknown
6200 dynamic_linker="$host_os ld.so"
6201 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6202 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6207 library_names_spec='${libname}${release}.so$versuffix $libname.a'
6208 shlibpath_var=LIBPATH
6210 # AIX has no versioning support, so we append a major version to the name.
6211 soname_spec='${libname}${release}.so$major'
6218 hardcode_into_libs=yes
6219 if test "$host_cpu" = ia64; then
6220 # AIX 5 supports IA64
6221 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6222 shlibpath_var=LD_LIBRARY_PATH
6224 # With GCC up to 2.95.x, collect2 would create an import file
6225 # for dependence libraries. The import file would start with
6226 # the line `#! .'. This would cause the generated library to
6227 # depend on `.', always an invalid library. This was fixed in
6228 # development snapshots of GCC prior to 3.0.
6230 aix4 | aix4.[01] | aix4.[01].*)
6231 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6233 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6240 # AIX (on Power*) has no versioning support, so currently we can
6241 # not hardcode correct soname into executable. Probably we can
6242 # add versioning support to collect2, so additional links can
6243 # be useful in future.
6244 if test "$aix_use_runtimelinking" = yes; then
6245 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6246 # instead of lib<name>.a to let people know that these are not
6247 # typical AIX shared libraries.
6248 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6250 # We preserve .a as extension for shared libraries through AIX4.2
6251 # and later when we are not doing run time linking.
6252 library_names_spec='${libname}${release}.a $libname.a'
6253 soname_spec='${libname}${release}.so$major'
6255 shlibpath_var=LIBPATH
6257 hardcode_into_libs=yes
6261 library_names_spec='$libname.ixlibrary $libname.a'
6262 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6263 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'
6267 library_names_spec='${libname}.so'
6268 dynamic_linker="$host_os ld.so"
6269 shlibpath_var=LIBRARY_PATH
6275 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6276 soname_spec='${libname}${release}.so$major'
6277 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6278 shlibpath_var=LD_LIBRARY_PATH
6279 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6280 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6281 export_dynamic_flag_spec=-rdynamic
6282 # the default ld.so.conf also contains /usr/contrib/lib and
6283 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6284 # libtool to hard-code these into programs
6287 cygwin* | mingw* | pw32*)
6288 version_type=windows
6291 case $GCC,$host_os in
6293 library_names_spec='$libname.dll.a'
6294 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6295 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6296 dldir=$destdir/`dirname \$dlpath`~
6297 test -d \$dldir || mkdir -p \$dldir~
6298 $install_prog .libs/$dlname \$dldir/$dlname'
6299 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6300 dlpath=$dir/\$dldll~
6304 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6305 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
6308 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6311 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6314 dynamic_linker='Win32 ld.exe'
6315 # FIXME: first we should search . and the directory the executable is in
6319 darwin* | rhapsody*)
6320 dynamic_linker="$host_os dyld"
6324 # FIXME: Relying on posixy $() will cause problems for
6325 # cross-compilation, but unfortunately the echo tests do not
6326 # yet detect zsh echo's removal of \ escapes.
6327 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)'
6328 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6329 shlibpath_overrides_runpath=yes
6330 shlibpath_var=DYLD_LIBRARY_PATH
6338 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6339 version_type=freebsd-$objformat
6340 case $version_type in
6342 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6347 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6351 shlibpath_var=LD_LIBRARY_PATH
6354 shlibpath_overrides_runpath=yes
6357 shlibpath_overrides_runpath=no
6358 hardcode_into_libs=yes
6367 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6368 soname_spec='${libname}${release}.so$major'
6369 shlibpath_var=LD_LIBRARY_PATH
6370 hardcode_into_libs=yes
6373 hpux9* | hpux10* | hpux11*)
6374 # Give a soname corresponding to the major version so that dld.sl refuses to
6375 # link against other versions.
6376 dynamic_linker="$host_os dld.sl"
6380 shlibpath_var=SHLIB_PATH
6381 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6382 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6383 soname_spec='${libname}${release}.sl$major'
6384 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6385 postinstall_cmds='chmod 555 $lib'
6388 irix5* | irix6* | nonstopux*)
6390 nonstopux*) version_type=nonstopux ;;
6391 *) version_type=irix ;;
6395 soname_spec='${libname}${release}.so$major'
6396 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6398 irix5* | nonstopux*)
6402 case $LD in # libtool.m4 will add one of these switches to LD
6403 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6404 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6405 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6406 *) libsuff= shlibsuff= libmagic=never-match;;
6410 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6411 shlibpath_overrides_runpath=no
6412 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6413 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6416 # No shared lib support for Linux oldld, aout, or coff.
6417 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6421 # This must be Linux ELF.
6426 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6427 soname_spec='${libname}${release}.so$major'
6428 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6429 shlibpath_var=LD_LIBRARY_PATH
6430 shlibpath_overrides_runpath=no
6431 # This implies no fast_install, which is unacceptable.
6432 # Some rework will be needed to allow for fast_install
6433 # before this can be enabled.
6434 hardcode_into_libs=yes
6436 # We used to test for /lib/ld.so.1 and disable shared libraries on
6437 # powerpc, because MkLinux only supported shared libraries with the
6438 # GNU dynamic linker. Since this was broken with cross compilers,
6439 # most powerpc-linux boxes support dynamic linking these days and
6440 # people can always --disable-shared, the test was removed, and we
6441 # assume the GNU/Linux dynamic linker is in use.
6442 dynamic_linker='GNU/Linux ld.so'
6449 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6450 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6451 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6452 dynamic_linker='NetBSD (a.out) ld.so'
6454 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6455 soname_spec='${libname}${release}.so$major'
6456 dynamic_linker='NetBSD ld.elf_so'
6458 shlibpath_var=LD_LIBRARY_PATH
6459 shlibpath_overrides_runpath=yes
6460 hardcode_into_libs=yes
6465 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6466 shlibpath_var=LD_LIBRARY_PATH
6467 shlibpath_overrides_runpath=yes
6474 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6476 openbsd2.[89] | openbsd2.[89].*)
6477 shlibpath_overrides_runpath=no
6480 shlibpath_overrides_runpath=yes
6484 shlibpath_overrides_runpath=yes
6486 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6487 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6488 shlibpath_var=LD_LIBRARY_PATH
6492 libname_spec='$name'
6494 library_names_spec='$libname.dll $libname.a'
6495 dynamic_linker='OS/2 ld.exe'
6496 shlibpath_var=LIBPATH
6499 osf3* | osf4* | osf5*)
6502 soname_spec='${libname}${release}.so$major'
6503 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6504 shlibpath_var=LD_LIBRARY_PATH
6505 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6506 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6507 hardcode_into_libs=yes
6512 soname_spec='${libname}${release}.so$major'
6513 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6514 shlibpath_var=LD_LIBRARY_PATH
6521 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6522 soname_spec='${libname}${release}.so$major'
6523 shlibpath_var=LD_LIBRARY_PATH
6524 shlibpath_overrides_runpath=yes
6525 hardcode_into_libs=yes
6526 # ldd complains unless libraries are executable
6527 postinstall_cmds='chmod +x $lib'
6532 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6533 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6534 shlibpath_var=LD_LIBRARY_PATH
6535 shlibpath_overrides_runpath=yes
6536 if test "$with_gnu_ld" = yes; then
6542 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6544 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6545 soname_spec='${libname}${release}.so$major'
6546 shlibpath_var=LD_LIBRARY_PATH
6547 case $host_vendor in
6549 shlibpath_overrides_runpath=no
6551 export_dynamic_flag_spec='${wl}-Blargedynsym'
6552 runpath_var=LD_RUN_PATH
6560 shlibpath_overrides_runpath=no
6561 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6568 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6569 soname_spec='${libname}${release}.so$major'
6570 shlibpath_var=LD_LIBRARY_PATH
6577 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6578 soname_spec='${libname}${release}.so$major'
6579 shlibpath_var=LD_LIBRARY_PATH
6583 if test -d /usr/nec ;then
6585 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6586 soname_spec='$libname.so.$major'
6587 shlibpath_var=LD_LIBRARY_PATH
6595 echo "$ac_t""$dynamic_linker" 1>&6
6596 test "$dynamic_linker" = no && can_build_shared=no
6598 # Report the final consequences.
6599 echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6
6600 echo "configure:6601: checking if libtool supports shared libraries" >&5
6601 echo "$ac_t""$can_build_shared" 1>&6
6603 echo $ac_n "checking whether to build shared libraries""... $ac_c" 1>&6
6604 echo "configure:6605: checking whether to build shared libraries" >&5
6605 test "$can_build_shared" = "no" && enable_shared=no
6607 # On AIX, shared libraries and static libraries use the same namespace, and
6608 # are all built from PIC.
6611 test "$enable_shared" = yes && enable_static=no
6612 if test -n "$RANLIB"; then
6613 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6614 postinstall_cmds='$RANLIB $lib'
6619 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6620 test "$enable_shared" = yes && enable_static=no
6624 echo "$ac_t""$enable_shared" 1>&6
6626 echo $ac_n "checking whether to build static libraries""... $ac_c" 1>&6
6627 echo "configure:6628: checking whether to build static libraries" >&5
6628 # Make sure either enable_shared or enable_static is yes.
6629 test "$enable_shared" = yes || enable_static=yes
6630 echo "$ac_t""$enable_static" 1>&6
6632 if test "$hardcode_action" = relink; then
6633 # Fast installation is not supported
6634 enable_fast_install=no
6635 elif test "$shlibpath_overrides_runpath" = yes ||
6636 test "$enable_shared" = no; then
6637 # Fast installation is not necessary
6638 enable_fast_install=needless
6641 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6642 if test "$GCC" = yes; then
6643 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6646 if test "x$enable_dlopen" != xyes; then
6647 enable_dlopen=unknown
6648 enable_dlopen_self=unknown
6649 enable_dlopen_self_static=unknown
6656 lt_cv_dlopen="load_add_on"
6658 lt_cv_dlopen_self=yes
6661 cygwin* | mingw* | pw32*)
6662 lt_cv_dlopen="LoadLibrary"
6667 echo $ac_n "checking for shl_load""... $ac_c" 1>&6
6668 echo "configure:6669: checking for shl_load" >&5
6669 if eval "test \"\${ac_cv_func_shl_load+set}\" = set"; then
6670 echo $ac_n "(cached) $ac_c" 1>&6
6672 cat > conftest.$ac_ext <<EOF
6673 #line 6674 "configure"
6674 #include "confdefs.h"
6675 /* System header to define __stub macros and hopefully few prototypes,
6676 which can conflict with char shl_load(); below. */
6678 /* Override any gcc2 internal prototype to avoid an error. */
6679 /* We use char because int might match the return type of a gcc2
6680 builtin and then its argument prototype would still apply. */
6686 /* The GNU C library defines this for functions which it implements
6687 to always fail with ENOSYS. Some functions are actually named
6688 something starting with __ and the normal name is an alias. */
6689 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6697 if { (eval echo configure:6698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6699 eval "ac_cv_func_shl_load=yes"
6701 echo "configure: failed program was:" >&5
6702 cat conftest.$ac_ext >&5
6704 eval "ac_cv_func_shl_load=no"
6709 if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
6710 echo "$ac_t""yes" 1>&6
6711 lt_cv_dlopen="shl_load"
6713 echo "$ac_t""no" 1>&6
6714 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
6715 echo "configure:6716: checking for shl_load in -ldld" >&5
6716 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-:%__p__%'`
6717 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6718 echo $ac_n "(cached) $ac_c" 1>&6
6720 ac_save_LIBS="$LIBS"
6722 cat > conftest.$ac_ext <<EOF
6723 #line 6724 "configure"
6724 #include "confdefs.h"
6725 /* Override any gcc2 internal prototype to avoid an error. */
6726 /* We use char because int might match the return type of a gcc2
6727 builtin and then its argument prototype would still apply. */
6734 if { (eval echo configure:6735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6736 eval "ac_cv_lib_$ac_lib_var=yes"
6738 echo "configure: failed program was:" >&5
6739 cat conftest.$ac_ext >&5
6741 eval "ac_cv_lib_$ac_lib_var=no"
6744 LIBS="$ac_save_LIBS"
6747 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6748 echo "$ac_t""yes" 1>&6
6749 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6751 echo "$ac_t""no" 1>&6
6752 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
6753 echo "configure:6754: checking for dlopen" >&5
6754 if eval "test \"\${ac_cv_func_dlopen+set}\" = set"; then
6755 echo $ac_n "(cached) $ac_c" 1>&6
6757 cat > conftest.$ac_ext <<EOF
6758 #line 6759 "configure"
6759 #include "confdefs.h"
6760 /* System header to define __stub macros and hopefully few prototypes,
6761 which can conflict with char dlopen(); below. */
6763 /* Override any gcc2 internal prototype to avoid an error. */
6764 /* We use char because int might match the return type of a gcc2
6765 builtin and then its argument prototype would still apply. */
6771 /* The GNU C library defines this for functions which it implements
6772 to always fail with ENOSYS. Some functions are actually named
6773 something starting with __ and the normal name is an alias. */
6774 #if defined (__stub_dlopen) || defined (__stub___dlopen)
6782 if { (eval echo configure:6783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6784 eval "ac_cv_func_dlopen=yes"
6786 echo "configure: failed program was:" >&5
6787 cat conftest.$ac_ext >&5
6789 eval "ac_cv_func_dlopen=no"
6794 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
6795 echo "$ac_t""yes" 1>&6
6796 lt_cv_dlopen="dlopen"
6798 echo "$ac_t""no" 1>&6
6799 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
6800 echo "configure:6801: checking for dlopen in -ldl" >&5
6801 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-:%__p__%'`
6802 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6803 echo $ac_n "(cached) $ac_c" 1>&6
6805 ac_save_LIBS="$LIBS"
6807 cat > conftest.$ac_ext <<EOF
6808 #line 6809 "configure"
6809 #include "confdefs.h"
6810 /* Override any gcc2 internal prototype to avoid an error. */
6811 /* We use char because int might match the return type of a gcc2
6812 builtin and then its argument prototype would still apply. */
6819 if { (eval echo configure:6820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6821 eval "ac_cv_lib_$ac_lib_var=yes"
6823 echo "configure: failed program was:" >&5
6824 cat conftest.$ac_ext >&5
6826 eval "ac_cv_lib_$ac_lib_var=no"
6829 LIBS="$ac_save_LIBS"
6832 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6833 echo "$ac_t""yes" 1>&6
6834 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6836 echo "$ac_t""no" 1>&6
6837 echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
6838 echo "configure:6839: checking for dlopen in -lsvld" >&5
6839 ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-:%__p__%'`
6840 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6841 echo $ac_n "(cached) $ac_c" 1>&6
6843 ac_save_LIBS="$LIBS"
6845 cat > conftest.$ac_ext <<EOF
6846 #line 6847 "configure"
6847 #include "confdefs.h"
6848 /* Override any gcc2 internal prototype to avoid an error. */
6849 /* We use char because int might match the return type of a gcc2
6850 builtin and then its argument prototype would still apply. */
6857 if { (eval echo configure:6858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6859 eval "ac_cv_lib_$ac_lib_var=yes"
6861 echo "configure: failed program was:" >&5
6862 cat conftest.$ac_ext >&5
6864 eval "ac_cv_lib_$ac_lib_var=no"
6867 LIBS="$ac_save_LIBS"
6870 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6871 echo "$ac_t""yes" 1>&6
6872 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6874 echo "$ac_t""no" 1>&6
6875 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
6876 echo "configure:6877: checking for dld_link in -ldld" >&5
6877 ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-:%__p__%'`
6878 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6879 echo $ac_n "(cached) $ac_c" 1>&6
6881 ac_save_LIBS="$LIBS"
6883 cat > conftest.$ac_ext <<EOF
6884 #line 6885 "configure"
6885 #include "confdefs.h"
6886 /* Override any gcc2 internal prototype to avoid an error. */
6887 /* We use char because int might match the return type of a gcc2
6888 builtin and then its argument prototype would still apply. */
6895 if { (eval echo configure:6896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6897 eval "ac_cv_lib_$ac_lib_var=yes"
6899 echo "configure: failed program was:" >&5
6900 cat conftest.$ac_ext >&5
6902 eval "ac_cv_lib_$ac_lib_var=no"
6905 LIBS="$ac_save_LIBS"
6908 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6909 echo "$ac_t""yes" 1>&6
6910 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6912 echo "$ac_t""no" 1>&6
6933 if test "x$lt_cv_dlopen" != xno; then
6939 case $lt_cv_dlopen in
6941 save_CPPFLAGS="$CPPFLAGS"
6942 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6944 save_LDFLAGS="$LDFLAGS"
6945 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6948 LIBS="$lt_cv_dlopen_libs $LIBS"
6950 echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
6951 echo "configure:6952: checking whether a program can dlopen itself" >&5
6952 if eval "test \"\${lt_cv_dlopen_self+set}\" = set"; then
6953 echo $ac_n "(cached) $ac_c" 1>&6
6955 if test "$cross_compiling" = yes; then :
6956 lt_cv_dlopen_self=cross
6958 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6959 lt_status=$lt_dlunknown
6960 cat > conftest.$ac_ext <<EOF
6961 #line 6962 "configure"
6962 #include "confdefs.h"
6971 # define LT_DLGLOBAL RTLD_GLOBAL
6974 # define LT_DLGLOBAL DL_GLOBAL
6976 # define LT_DLGLOBAL 0
6980 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6981 find out it does not work in some platform. */
6982 #ifndef LT_DLLAZY_OR_NOW
6984 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6987 # define LT_DLLAZY_OR_NOW DL_LAZY
6990 # define LT_DLLAZY_OR_NOW RTLD_NOW
6993 # define LT_DLLAZY_OR_NOW DL_NOW
6995 # define LT_DLLAZY_OR_NOW 0
7003 extern "C" void exit (int);
7006 void fnord() { int i=42;}
7009 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7010 int status = $lt_dlunknown;
7014 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7015 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7016 /* dlclose (self); */
7022 if { (eval echo configure:7023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
7023 (./conftest; exit; ) 2>/dev/null
7026 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7027 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7028 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7031 # compilation failed
7032 lt_cv_dlopen_self=no
7040 echo "$ac_t""$lt_cv_dlopen_self" 1>&6
7042 if test "x$lt_cv_dlopen_self" = xyes; then
7043 LDFLAGS="$LDFLAGS $link_static_flag"
7044 echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
7045 echo "configure:7046: checking whether a statically linked program can dlopen itself" >&5
7046 if eval "test \"\${lt_cv_dlopen_self_static+set}\" = set"; then
7047 echo $ac_n "(cached) $ac_c" 1>&6
7049 if test "$cross_compiling" = yes; then :
7050 lt_cv_dlopen_self_static=cross
7052 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7053 lt_status=$lt_dlunknown
7054 cat > conftest.$ac_ext <<EOF
7055 #line 7056 "configure"
7056 #include "confdefs.h"
7065 # define LT_DLGLOBAL RTLD_GLOBAL
7068 # define LT_DLGLOBAL DL_GLOBAL
7070 # define LT_DLGLOBAL 0
7074 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7075 find out it does not work in some platform. */
7076 #ifndef LT_DLLAZY_OR_NOW
7078 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7081 # define LT_DLLAZY_OR_NOW DL_LAZY
7084 # define LT_DLLAZY_OR_NOW RTLD_NOW
7087 # define LT_DLLAZY_OR_NOW DL_NOW
7089 # define LT_DLLAZY_OR_NOW 0
7097 extern "C" void exit (int);
7100 void fnord() { int i=42;}
7103 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7104 int status = $lt_dlunknown;
7108 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7109 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7110 /* dlclose (self); */
7116 if { (eval echo configure:7117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
7117 (./conftest; exit; ) 2>/dev/null
7120 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7121 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7122 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7125 # compilation failed
7126 lt_cv_dlopen_self_static=no
7134 echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6
7137 CPPFLAGS="$save_CPPFLAGS"
7138 LDFLAGS="$save_LDFLAGS"
7143 case $lt_cv_dlopen_self in
7144 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7145 *) enable_dlopen_self=unknown ;;
7148 case $lt_cv_dlopen_self_static in
7149 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7150 *) enable_dlopen_self_static=unknown ;;
7155 if test "$enable_shared" = yes && test "$GCC" = yes; then
7156 case $archive_cmds in
7158 # FIXME: we may have to deal with multi-command sequences.
7161 # Test whether the compiler implicitly links with -lc since on some
7162 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7163 # to ld, don't add -lc before -lgcc.
7164 echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6
7165 echo "configure:7166: checking whether -lc should be explicitly linked in" >&5
7166 if eval "test \"\${lt_cv_archive_cmds_need_lc+set}\" = set"; then
7167 echo $ac_n "(cached) $ac_c" 1>&6
7170 echo 'static int dummy;' > conftest.$ac_ext
7172 if { (eval echo configure:7173: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7175 libobjs=conftest.$ac_objext
7177 wl=$lt_cv_prog_cc_wl
7183 save_allow_undefined_flag=$allow_undefined_flag
7184 allow_undefined_flag=
7185 if { (eval echo configure:7186: \"$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; }
7187 lt_cv_archive_cmds_need_lc=no
7189 lt_cv_archive_cmds_need_lc=yes
7191 allow_undefined_flag=$save_allow_undefined_flag
7193 cat conftest.err 1>&5
7197 echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6
7201 need_lc=${lt_cv_archive_cmds_need_lc-yes}
7203 # The second clause should only fire when bootstrapping the
7204 # libtool distribution, otherwise you forgot to ship ltmain.sh
7205 # with your package, and you will get complaints that there are
7206 # no rules to generate ltmain.sh.
7207 if test -f "$ltmain"; then
7210 # If there is no Makefile yet, we rely on a make rule to execute
7211 # `config.status --recheck' to rerun these tests and create the
7212 # libtool script then.
7213 test -f Makefile && make "$ltmain"
7216 if test -f "$ltmain"; then
7217 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7220 echo creating $ofile
7222 # Now quote all the things that may contain metacharacters while being
7223 # careful not to overquote the AC_SUBSTed values. We take copies of the
7224 # variables and quote the copies for generation of the libtool script.
7225 for var in echo old_CC old_CFLAGS SED \
7226 AR AR_FLAGS CC LD LN_S NM SHELL \
7227 reload_flag reload_cmds wl \
7228 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7229 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7230 library_names_spec soname_spec \
7231 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7232 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7233 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7234 old_striplib striplib file_magic_cmd export_symbols_cmds \
7235 deplibs_check_method allow_undefined_flag no_undefined_flag \
7236 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7237 global_symbol_to_c_name_address \
7238 hardcode_libdir_flag_spec hardcode_libdir_separator \
7239 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7240 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7243 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7244 old_postinstall_cmds | old_postuninstall_cmds | \
7245 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7246 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7247 postinstall_cmds | postuninstall_cmds | \
7248 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7249 # Double-quote double-evaled strings.
7250 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7253 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7258 cat <<__EOF__ > "${ofile}T"
7261 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7262 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7263 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7265 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7266 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7268 # This program is free software; you can redistribute it and/or modify
7269 # it under the terms of the GNU General Public License as published by
7270 # the Free Software Foundation; either version 2 of the License, or
7271 # (at your option) any later version.
7273 # This program is distributed in the hope that it will be useful, but
7274 # WITHOUT ANY WARRANTY; without even the implied warranty of
7275 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7276 # General Public License for more details.
7278 # You should have received a copy of the GNU General Public License
7279 # along with this program; if not, write to the Free Software
7280 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7282 # As a special exception to the GNU General Public License, if you
7283 # distribute this file as part of a program that contains a
7284 # configuration script generated by Autoconf, you may include it under
7285 # the same distribution terms that you use for the rest of that program.
7287 # A sed that does not truncate output.
7290 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7291 Xsed="${SED} -e s/^X//"
7293 # The HP-UX ksh and POSIX shell print the target directory to stdout
7295 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7297 # ### BEGIN LIBTOOL CONFIG
7299 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7301 # Shell to use when invoking shell scripts.
7304 # Whether or not to build shared libraries.
7305 build_libtool_libs=$enable_shared
7307 # Whether or not to build static libraries.
7308 build_old_libs=$enable_static
7310 # Whether or not to add -lc for building shared libraries.
7311 build_libtool_need_lc=$need_lc
7313 # Whether or not to optimize for fast installation.
7314 fast_install=$enable_fast_install
7317 host_alias=$host_alias
7320 # An echo program that does not interpret backslashes.
7325 AR_FLAGS=$lt_AR_FLAGS
7327 # The default C compiler.
7330 # Is the compiler the GNU C compiler?
7333 # The linker used to build libraries.
7336 # Whether we need hard or soft links.
7339 # A BSD-compatible nm program.
7342 # A symbol stripping program
7345 # Used to examine libraries when file_magic_cmd begins "file"
7346 MAGIC_CMD=$MAGIC_CMD
7348 # Used on cygwin: DLL creation program.
7351 # Used on cygwin: object dumper.
7354 # Used on cygwin: assembler.
7357 # The name of the directory that contains temporary libtool files.
7360 # How to create reloadable object files.
7361 reload_flag=$lt_reload_flag
7362 reload_cmds=$lt_reload_cmds
7364 # How to pass a linker flag through the compiler.
7367 # Object file suffix (normally "o").
7370 # Old archive suffix (normally "a").
7373 # Executable file suffix (normally "").
7376 # Additional compiler flags for building library objects.
7377 pic_flag=$lt_pic_flag
7380 # Does compiler simultaneously support -c and -o options?
7381 compiler_c_o=$lt_compiler_c_o
7383 # Can we write directly to a .lo ?
7384 compiler_o_lo=$lt_compiler_o_lo
7386 # Must we lock files when doing compilation ?
7387 need_locks=$lt_need_locks
7389 # Do we need the lib prefix for modules?
7390 need_lib_prefix=$need_lib_prefix
7392 # Do we need a version for libraries?
7393 need_version=$need_version
7395 # Whether dlopen is supported.
7396 dlopen_support=$enable_dlopen
7398 # Whether dlopen of programs is supported.
7399 dlopen_self=$enable_dlopen_self
7401 # Whether dlopen of statically linked programs is supported.
7402 dlopen_self_static=$enable_dlopen_self_static
7404 # Compiler flag to prevent dynamic linking.
7405 link_static_flag=$lt_link_static_flag
7407 # Compiler flag to turn off builtin functions.
7408 no_builtin_flag=$lt_no_builtin_flag
7410 # Compiler flag to allow reflexive dlopens.
7411 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7413 # Compiler flag to generate shared objects directly from archives.
7414 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7416 # Compiler flag to generate thread-safe objects.
7417 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7419 # Library versioning type.
7420 version_type=$version_type
7422 # Format of library name prefix.
7423 libname_spec=$lt_libname_spec
7425 # List of archive names. First name is the real one, the rest are links.
7426 # The last name is the one that the linker finds with -lNAME.
7427 library_names_spec=$lt_library_names_spec
7429 # The coded name of the library, if different from the real name.
7430 soname_spec=$lt_soname_spec
7432 # Commands used to build and install an old-style archive.
7434 old_archive_cmds=$lt_old_archive_cmds
7435 old_postinstall_cmds=$lt_old_postinstall_cmds
7436 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7438 # Create an old-style archive from a shared archive.
7439 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7441 # Create a temporary old-style archive to link instead of a shared archive.
7442 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7444 # Commands used to build and install a shared archive.
7445 archive_cmds=$lt_archive_cmds
7446 archive_expsym_cmds=$lt_archive_expsym_cmds
7447 postinstall_cmds=$lt_postinstall_cmds
7448 postuninstall_cmds=$lt_postuninstall_cmds
7450 # Commands to strip libraries.
7451 old_striplib=$lt_old_striplib
7452 striplib=$lt_striplib
7454 # Method to check whether dependent libraries are shared objects.
7455 deplibs_check_method=$lt_deplibs_check_method
7457 # Command to use when deplibs_check_method == file_magic.
7458 file_magic_cmd=$lt_file_magic_cmd
7460 # Flag that allows shared libraries with undefined symbols to be built.
7461 allow_undefined_flag=$lt_allow_undefined_flag
7463 # Flag that forces no undefined symbols.
7464 no_undefined_flag=$lt_no_undefined_flag
7466 # Commands used to finish a libtool library installation in a directory.
7467 finish_cmds=$lt_finish_cmds
7469 # Same as above, but a single script fragment to be evaled but not shown.
7470 finish_eval=$lt_finish_eval
7472 # Take the output of nm and produce a listing of raw symbols and C names.
7473 global_symbol_pipe=$lt_global_symbol_pipe
7475 # Transform the output of nm in a proper C declaration
7476 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7478 # Transform the output of nm in a C name address pair
7479 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7481 # This is the shared library runtime path variable.
7482 runpath_var=$runpath_var
7484 # This is the shared library path variable.
7485 shlibpath_var=$shlibpath_var
7487 # Is shlibpath searched before the hard-coded library search path?
7488 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7490 # How to hardcode a shared library path into an executable.
7491 hardcode_action=$hardcode_action
7493 # Whether we should hardcode library paths into libraries.
7494 hardcode_into_libs=$hardcode_into_libs
7496 # Flag to hardcode \$libdir into a binary during linking.
7497 # This must work even if \$libdir does not exist.
7498 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7500 # Whether we need a single -rpath flag with a separated argument.
7501 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7503 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7505 hardcode_direct=$hardcode_direct
7507 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7509 hardcode_minus_L=$hardcode_minus_L
7511 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7512 # the resulting binary.
7513 hardcode_shlibpath_var=$hardcode_shlibpath_var
7515 # Variables whose values should be saved in libtool wrapper scripts and
7516 # restored at relink time.
7517 variables_saved_for_relink="$variables_saved_for_relink"
7519 # Whether libtool must link a program against all its dependency libraries.
7520 link_all_deplibs=$link_all_deplibs
7522 # Compile-time system search path for libraries
7523 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7525 # Run-time system search path for libraries
7526 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7528 # Fix the shell variable \$srcfile for the compiler.
7529 fix_srcfile_path="$fix_srcfile_path"
7531 # Set to yes if exported symbols are required.
7532 always_export_symbols=$always_export_symbols
7534 # The commands to list exported symbols.
7535 export_symbols_cmds=$lt_export_symbols_cmds
7537 # The commands to extract the exported symbol list from a shared archive.
7538 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7540 # Symbols that should not be listed in the preloaded symbols.
7541 exclude_expsyms=$lt_exclude_expsyms
7543 # Symbols that must always be exported.
7544 include_expsyms=$lt_include_expsyms
7546 # ### END LIBTOOL CONFIG
7552 cat <<\EOF >> "${ofile}T"
7554 # AIX sometimes has problems with the GCC collect2 program. For some
7555 # reason, if we set the COLLECT_NAMES environment variable, the problems
7556 # vanish in a puff of smoke.
7557 if test "X${COLLECT_NAMES+set}" != Xset; then
7559 export COLLECT_NAMES
7566 cygwin* | mingw* | pw32* | os2*)
7567 cat <<'EOF' >> "${ofile}T"
7568 # This is a source program that is used to create dlls on Windows
7569 # Don't remove nor modify the starting and closing comments
7570 # /* ltdll.c starts here */
7571 # #define WIN32_LEAN_AND_MEAN
7572 # #include <windows.h>
7573 # #undef WIN32_LEAN_AND_MEAN
7574 # #include <stdio.h>
7576 # #ifndef __CYGWIN__
7577 # # ifdef __CYGWIN32__
7578 # # define __CYGWIN__ __CYGWIN32__
7582 # #ifdef __cplusplus
7585 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7586 # #ifdef __cplusplus
7591 # #include <cygwin/cygwin_dll.h>
7592 # DECLARE_CYGWIN_DLL( DllMain );
7594 # HINSTANCE __hDllInstance_base;
7597 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7599 # __hDllInstance_base = hInst;
7602 # /* ltdll.c ends here */
7603 # This is a source program that is used to create import libraries
7604 # on Windows for dlls which lack them. Don't remove nor modify the
7605 # starting and closing comments
7606 # /* impgen.c starts here */
7607 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7609 # This file is part of GNU libtool.
7611 # This program is free software; you can redistribute it and/or modify
7612 # it under the terms of the GNU General Public License as published by
7613 # the Free Software Foundation; either version 2 of the License, or
7614 # (at your option) any later version.
7616 # This program is distributed in the hope that it will be useful,
7617 # but WITHOUT ANY WARRANTY; without even the implied warranty of
7618 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7619 # GNU General Public License for more details.
7621 # You should have received a copy of the GNU General Public License
7622 # along with this program; if not, write to the Free Software
7623 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7626 # #include <stdio.h> /* for printf() */
7627 # #include <unistd.h> /* for open(), lseek(), read() */
7628 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7629 # #include <string.h> /* for strdup() */
7631 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
7633 # #define O_BINARY 0
7636 # static unsigned int
7637 # pe_get16 (fd, offset)
7641 # unsigned char b[2];
7642 # lseek (fd, offset, SEEK_SET);
7644 # return b[0] + (b[1]<<8);
7647 # static unsigned int
7648 # pe_get32 (fd, offset)
7652 # unsigned char b[4];
7653 # lseek (fd, offset, SEEK_SET);
7655 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7658 # static unsigned int
7662 # unsigned char *b = ptr;
7663 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7672 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7673 # unsigned long export_rva, export_size, nsections, secptr, expptr;
7674 # unsigned long name_rvas, nexp;
7675 # unsigned char *expdata, *erva;
7676 # char *filename, *dll_name;
7678 # filename = argv[1];
7680 # dll = open(filename, O_RDONLY|O_BINARY);
7684 # dll_name = filename;
7686 # for (i=0; filename[i]; i++)
7687 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7688 # dll_name = filename + i +1;
7690 # pe_header_offset = pe_get32 (dll, 0x3c);
7691 # opthdr_ofs = pe_header_offset + 4 + 20;
7692 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
7694 # if (num_entries < 1) /* no exports */
7697 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
7698 # export_size = pe_get32 (dll, opthdr_ofs + 100);
7699 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7700 # secptr = (pe_header_offset + 4 + 20 +
7701 # pe_get16 (dll, pe_header_offset + 4 + 16));
7704 # for (i = 0; i < nsections; i++)
7707 # unsigned long secptr1 = secptr + 40 * i;
7708 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7709 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7710 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7711 # lseek(dll, secptr1, SEEK_SET);
7712 # read(dll, sname, 8);
7713 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
7715 # expptr = fptr + (export_rva - vaddr);
7716 # if (export_rva + export_size > vaddr + vsize)
7717 # export_size = vsize - (export_rva - vaddr);
7722 # expdata = (unsigned char*)malloc(export_size);
7723 # lseek (dll, expptr, SEEK_SET);
7724 # read (dll, expdata, export_size);
7725 # erva = expdata - export_rva;
7727 # nexp = pe_as32 (expdata+24);
7728 # name_rvas = pe_as32 (expdata+32);
7730 # printf ("EXPORTS\n");
7731 # for (i = 0; i<nexp; i++)
7733 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7734 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7739 # /* impgen.c ends here */
7745 # We use sed instead of cat because bash on DJGPP gets confused if
7746 # if finds mixed CR/LF and LF-only lines. Since sed operates in
7747 # text mode, it properly converts lines to CR/LF. This bash problem
7748 # is reportedly fixed, but why not run on old versions too?
7749 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7751 mv -f "${ofile}T" "$ofile" || \
7752 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7760 # This can be used to rebuild libtool when needed
7761 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7763 # Always use our own libtool.
7764 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7766 # Prevent multiple expansion
7770 # test for ln hardlink support
7771 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
7772 echo "configure:7773: checking whether ln works" >&5
7773 if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then
7774 echo $ac_n "(cached) $ac_c" 1>&6
7776 rm -f conftest.src conftest.dst
7777 echo "conftest" > conftest.src
7778 if ln conftest.src conftest.dst 2>/dev/null
7780 ol_cv_prog_LN_H="ln"
7782 ol_cv_prog_LN_H="cp"
7784 rm -f conftest.src conftest.dst
7787 LN_H="$ol_cv_prog_LN_H"
7788 if test "$ol_cv_prog_LN_H" = "ln"; then
7789 echo "$ac_t""yes" 1>&6
7791 echo "$ac_t""no" 1>&6
7794 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
7795 echo "configure:7796: checking whether ln -s works" >&5
7796 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
7797 echo $ac_n "(cached) $ac_c" 1>&6
7800 if ln -s X conftestdata 2>/dev/null
7803 ac_cv_prog_LN_S="ln -s"
7808 LN_S="$ac_cv_prog_LN_S"
7809 if test "$ac_cv_prog_LN_S" = "ln -s"; then
7810 echo "$ac_t""yes" 1>&6
7812 echo "$ac_t""no" 1>&6
7817 if test $ol_enable_perl != no ; then
7818 # Extract the first word of "perl", so it can be a program name with args.
7819 set dummy perl; ac_word=$2
7820 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7821 echo "configure:7822: checking for $ac_word" >&5
7822 if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then
7823 echo $ac_n "(cached) $ac_c" 1>&6
7827 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
7830 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
7833 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7835 for ac_dir in $ac_dummy; do
7836 test -z "$ac_dir" && ac_dir=.
7837 if test -f $ac_dir/$ac_word; then
7838 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
7843 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
7847 PERLBIN="$ac_cv_path_PERLBIN"
7848 if test -n "$PERLBIN"; then
7849 echo "$ac_t""$PERLBIN" 1>&6
7851 echo "$ac_t""no" 1>&6
7855 if test "no$PERLBIN" = "no" ; then
7856 if test $ol_enable_perl = yes ; then
7857 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
7861 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
7862 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
7864 if test x"$ol_with_perl_module" = "xstatic" ; then
7865 SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
7867 MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
7873 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
7874 echo "configure:7875: checking how to run the C preprocessor" >&5
7875 # On Suns, sometimes $CPP names a directory.
7876 if test -n "$CPP" && test -d "$CPP"; then
7879 if test -z "$CPP"; then
7880 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
7881 echo $ac_n "(cached) $ac_c" 1>&6
7883 # This must be in double quotes, not single quotes, because CPP may get
7884 # substituted into the Makefile and "${CC-cc}" will confuse make.
7886 # On the NeXT, cc -E runs the code through the compiler's parser,
7887 # not just through cpp.
7888 cat > conftest.$ac_ext <<EOF
7889 #line 7890 "configure"
7890 #include "confdefs.h"
7894 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7895 { (eval echo configure:7896: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7896 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7897 if test -z "$ac_err"; then
7901 echo "configure: failed program was:" >&5
7902 cat conftest.$ac_ext >&5
7904 CPP="${CC-cc} -E -traditional-cpp"
7905 cat > conftest.$ac_ext <<EOF
7906 #line 7907 "configure"
7907 #include "confdefs.h"
7911 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7912 { (eval echo configure:7913: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7913 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7914 if test -z "$ac_err"; then
7918 echo "configure: failed program was:" >&5
7919 cat conftest.$ac_ext >&5
7921 CPP="${CC-cc} -nologo -E"
7922 cat > conftest.$ac_ext <<EOF
7923 #line 7924 "configure"
7924 #include "confdefs.h"
7928 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7929 { (eval echo configure:7930: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7930 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7931 if test -z "$ac_err"; then
7935 echo "configure: failed program was:" >&5
7936 cat conftest.$ac_ext >&5
7945 ac_cv_prog_CPP="$CPP"
7947 CPP="$ac_cv_prog_CPP"
7949 ac_cv_prog_CPP="$CPP"
7951 echo "$ac_t""$CPP" 1>&6
7954 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
7955 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
7957 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
7958 echo "configure: warning: programs compiled here do run here..." 1>&2
7959 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
7961 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
7962 echo "configure: warning: programs compiled here do not run here..." 1>&2
7963 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
7967 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
7968 echo "configure:7969: checking for Cygwin environment" >&5
7969 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
7970 echo $ac_n "(cached) $ac_c" 1>&6
7972 cat > conftest.$ac_ext <<EOF
7973 #line 7974 "configure"
7974 #include "confdefs.h"
7979 #define __CYGWIN__ __CYGWIN32__
7984 if { (eval echo configure:7985: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7988 echo "configure: failed program was:" >&5
7989 cat conftest.$ac_ext >&5
7996 echo "$ac_t""$ac_cv_cygwin" 1>&6
7998 test "$ac_cv_cygwin" = yes && CYGWIN=yes
7999 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
8000 echo "configure:8001: checking for mingw32 environment" >&5
8001 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
8002 echo $ac_n "(cached) $ac_c" 1>&6
8004 cat > conftest.$ac_ext <<EOF
8005 #line 8006 "configure"
8006 #include "confdefs.h"
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_mingw32" 1>&6
8026 test "$ac_cv_mingw32" = yes && MINGW32=yes
8030 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
8031 echo "configure:8032: checking for executable suffix" >&5
8032 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
8033 echo $ac_n "(cached) $ac_c" 1>&6
8035 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
8039 echo 'int main () { return 0; }' > conftest.$ac_ext
8041 if { (eval echo configure:8042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
8042 for file in conftest.*; do
8044 *.c | *.C | *.o | *.obj | *.xcoff) ;;
8045 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
8049 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
8052 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
8057 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
8058 echo "$ac_t""${ac_cv_exeext}" 1>&6
8061 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
8062 echo "configure:8063: checking for object suffix" >&5
8063 if eval "test \"\${ac_cv_objext+set}\" = set"; then
8064 echo $ac_n "(cached) $ac_c" 1>&6
8067 echo 'int i = 1;' > conftest.$ac_ext
8068 if { (eval echo configure:8069: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8069 for ac_file in conftest.*; do
8072 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
8076 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
8081 echo "$ac_t""$ac_cv_objext" 1>&6
8082 OBJEXT=$ac_cv_objext
8083 ac_objext=$ac_cv_objext
8086 cat >> confdefs.h <<EOF
8087 #define EXEEXT "${EXEEXT}"
8091 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
8092 echo "configure:8093: checking for be_app in -lbe" >&5
8093 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
8094 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8095 echo $ac_n "(cached) $ac_c" 1>&6
8097 ac_save_LIBS="$LIBS"
8098 LIBS="-lbe -lroot -lnet $LIBS"
8099 cat > conftest.$ac_ext <<EOF
8100 #line 8101 "configure"
8101 #include "confdefs.h"
8102 /* Override any gcc2 internal prototype to avoid an error. */
8103 /* We use char because int might match the return type of a gcc2
8104 builtin and then its argument prototype would still apply. */
8111 if { (eval echo configure:8112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8113 eval "ac_cv_lib_$ac_lib_var=yes"
8115 echo "configure: failed program was:" >&5
8116 cat conftest.$ac_ext >&5
8118 eval "ac_cv_lib_$ac_lib_var=no"
8121 LIBS="$ac_save_LIBS"
8124 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8125 echo "$ac_t""yes" 1>&6
8126 LIBS="$LIBS -lbe -lroot -lnet"
8128 echo "$ac_t""no" 1>&6
8136 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
8137 echo "configure:8138: checking for ${CC-cc} option to accept ANSI C" >&5
8138 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
8139 echo $ac_n "(cached) $ac_c" 1>&6
8141 am_cv_prog_cc_stdc=no
8143 # Don't try gcc -ansi; that turns off useful extensions and
8144 # breaks some systems' header files.
8145 # AIX -qlanglvl=ansi
8146 # Ultrix and OSF/1 -std1
8147 # HP-UX 10.20 and later -Ae
8148 # HP-UX older versions -Aa -D_HPUX_SOURCE
8149 # SVR4 -Xc -D__EXTENSIONS__
8150 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
8152 CC="$ac_save_CC $ac_arg"
8153 cat > conftest.$ac_ext <<EOF
8154 #line 8155 "configure"
8155 #include "confdefs.h"
8158 #include <sys/types.h>
8159 #include <sys/stat.h>
8160 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
8161 struct buf { int x; };
8162 FILE * (*rcsopen) (struct buf *, struct stat *, int);
8163 static char *e (p, i)
8169 static char *f (char * (*g) (char **, int), char **p, ...)
8174 s = g (p, va_arg (v,int));
8178 int test (int i, double x);
8179 struct s1 {int (*f) (int a);};
8180 struct s2 {int (*f) (double a);};
8181 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
8187 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
8191 if { (eval echo configure:8192: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8193 am_cv_prog_cc_stdc="$ac_arg"; break
8195 echo "configure: failed program was:" >&5
8196 cat conftest.$ac_ext >&5
8204 if test -z "$am_cv_prog_cc_stdc"; then
8205 echo "$ac_t""none needed" 1>&6
8207 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
8209 case "x$am_cv_prog_cc_stdc" in
8211 *) CC="$CC $am_cv_prog_cc_stdc" ;;
8214 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
8215 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
8218 # test for make depend flag
8221 if test -z "${MKDEP}"; then
8223 if test -z "${MKDEP_FLAGS}"; then
8224 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
8225 echo "configure:8226: checking for ${OL_MKDEP} depend flag" >&5
8226 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
8227 echo $ac_n "(cached) $ac_c" 1>&6
8231 for flag in "-M" "-xM"; do
8232 cat > conftest.c <<EOF
8235 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:8236: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
8236 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
8238 if test ! -f conftest."${ac_object}" ; then
8240 OL_MKDEP_FLAGS="$flag"
8249 echo "$ac_t""$ol_cv_mkdep" 1>&6
8252 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
8257 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
8262 if test "${ol_cv_mkdep}" = no ; then
8263 # this will soon become an error
8264 echo "configure: warning: do not know how to generate dependencies" 1>&2
8267 echo $ac_n "checking for afopen in -ls""... $ac_c" 1>&6
8268 echo "configure:8269: checking for afopen in -ls" >&5
8269 ac_lib_var=`echo s'_'afopen | sed 'y%./+-:%__p__%'`
8270 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8271 echo $ac_n "(cached) $ac_c" 1>&6
8273 ac_save_LIBS="$LIBS"
8275 cat > conftest.$ac_ext <<EOF
8276 #line 8277 "configure"
8277 #include "confdefs.h"
8278 /* Override any gcc2 internal prototype to avoid an error. */
8279 /* We use char because int might match the return type of a gcc2
8280 builtin and then its argument prototype would still apply. */
8287 if { (eval echo configure:8288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8289 eval "ac_cv_lib_$ac_lib_var=yes"
8291 echo "configure: failed program was:" >&5
8292 cat conftest.$ac_ext >&5
8294 eval "ac_cv_lib_$ac_lib_var=no"
8297 LIBS="$ac_save_LIBS"
8300 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8301 echo "$ac_t""yes" 1>&6
8304 cat >> confdefs.h <<\EOF
8305 #define HAVE_AIX_SECURITY 1
8310 echo "$ac_t""no" 1>&6
8316 ac_cv_func_getopt=no
8317 cat >> confdefs.h <<\EOF
8318 #define BOTH_STRINGS_H 1
8325 if test $ol_enable_modules != no ; then
8326 for ac_hdr in ltdl.h
8328 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8329 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8330 echo "configure:8331: checking for $ac_hdr" >&5
8331 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8332 echo $ac_n "(cached) $ac_c" 1>&6
8334 cat > conftest.$ac_ext <<EOF
8335 #line 8336 "configure"
8336 #include "confdefs.h"
8339 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8340 { (eval echo configure:8341: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8341 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8342 if test -z "$ac_err"; then
8344 eval "ac_cv_header_$ac_safe=yes"
8347 echo "configure: failed program was:" >&5
8348 cat conftest.$ac_ext >&5
8350 eval "ac_cv_header_$ac_safe=no"
8354 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8355 echo "$ac_t""yes" 1>&6
8356 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8357 cat >> confdefs.h <<EOF
8358 #define $ac_tr_hdr 1
8362 echo "$ac_t""no" 1>&6
8367 if test $ac_cv_header_ltdl_h = no ; then
8368 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
8371 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
8372 echo "configure:8373: checking for lt_dlinit in -lltdl" >&5
8373 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
8374 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8375 echo $ac_n "(cached) $ac_c" 1>&6
8377 ac_save_LIBS="$LIBS"
8379 cat > conftest.$ac_ext <<EOF
8380 #line 8381 "configure"
8381 #include "confdefs.h"
8382 /* Override any gcc2 internal prototype to avoid an error. */
8383 /* We use char because int might match the return type of a gcc2
8384 builtin and then its argument prototype would still apply. */
8391 if { (eval echo configure:8392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8393 eval "ac_cv_lib_$ac_lib_var=yes"
8395 echo "configure: failed program was:" >&5
8396 cat conftest.$ac_ext >&5
8398 eval "ac_cv_lib_$ac_lib_var=no"
8401 LIBS="$ac_save_LIBS"
8404 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8405 echo "$ac_t""yes" 1>&6
8408 cat >> confdefs.h <<\EOF
8409 #define HAVE_LIBLTDL 1
8414 echo "$ac_t""no" 1>&6
8418 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
8419 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
8423 ol_with_bdb_module=static
8424 ol_with_dnssrv_module=static
8425 ol_with_hdb_module=static
8426 ol_with_ldap_module=static
8427 ol_with_ldbm_module=static
8428 ol_with_meta_module=static
8429 ol_with_monitor_module=static
8430 ol_with_null_module=static
8431 ol_with_passwd_module=static
8432 ol_with_perl_module=static
8433 ol_with_shell_module=static
8434 ol_with_sql_module=static
8435 if test $ol_with_dyngroup = mod ; then
8436 echo "configure: warning: building static dyngroup overlay" 1>&2
8437 ol_with_dyngroup = yes
8439 if test $ol_with_proxycache = mod ; then
8440 echo "configure: warning: building static proxycache overlay" 1>&2
8441 ol_with_proxycache = yes
8446 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
8447 echo "configure:8448: checking for EBCDIC" >&5
8448 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
8449 echo $ac_n "(cached) $ac_c" 1>&6
8452 cat > conftest.$ac_ext <<EOF
8453 #line 8454 "configure"
8454 #include "confdefs.h"
8457 #include <__ASCII__/generate_error.h>
8461 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8462 { (eval echo configure:8463: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8463 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8464 if test -z "$ac_err"; then
8466 ol_cv_cpp_ebcdic=yes
8469 echo "configure: failed program was:" >&5
8470 cat conftest.$ac_ext >&5
8477 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
8478 if test $ol_cv_cpp_ebcdic = yes ; then
8479 cat >> confdefs.h <<\EOF
8480 #define HAVE_EBCDIC 1
8485 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
8486 echo "configure:8487: checking for ANSI C header files" >&5
8487 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
8488 echo $ac_n "(cached) $ac_c" 1>&6
8490 cat > conftest.$ac_ext <<EOF
8491 #line 8492 "configure"
8492 #include "confdefs.h"
8498 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8499 { (eval echo configure:8500: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8500 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8501 if test -z "$ac_err"; then
8503 ol_cv_header_stdc=yes
8506 echo "configure: failed program was:" >&5
8507 cat conftest.$ac_ext >&5
8509 ol_cv_header_stdc=no
8513 if test $ol_cv_header_stdc = yes; then
8514 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8515 cat > conftest.$ac_ext <<EOF
8516 #line 8517 "configure"
8517 #include "confdefs.h"
8520 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8521 egrep "memchr" >/dev/null 2>&1; then
8525 ol_cv_header_stdc=no
8531 if test $ol_cv_header_stdc = yes; then
8532 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8533 cat > conftest.$ac_ext <<EOF
8534 #line 8535 "configure"
8535 #include "confdefs.h"
8538 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8539 egrep "free" >/dev/null 2>&1; then
8543 ol_cv_header_stdc=no
8549 if test $ol_cv_header_stdc = yes; then
8550 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8551 if test "$cross_compiling" = yes; then
8554 cat > conftest.$ac_ext <<EOF
8555 #line 8556 "configure"
8556 #include "confdefs.h"
8559 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8560 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8562 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
8563 || ('j' <= (c) && (c) <= 'r') \
8564 || ('s' <= (c) && (c) <= 'z'))
8565 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8567 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8568 int main () { int i; for (i = 0; i < 256; i++)
8569 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
8573 if { (eval echo configure:8574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8577 echo "configure: failed program was:" >&5
8578 cat conftest.$ac_ext >&5
8580 ol_cv_header_stdc=no
8588 echo "$ac_t""$ol_cv_header_stdc" 1>&6
8589 if test $ol_cv_header_stdc = yes; then
8590 cat >> confdefs.h <<\EOF
8591 #define STDC_HEADERS 1
8595 ac_cv_header_stdc=disable
8598 if test $ol_cv_header_stdc != yes; then
8599 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
8603 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
8605 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8606 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
8607 echo "configure:8608: checking for $ac_hdr that defines DIR" >&5
8608 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
8609 echo $ac_n "(cached) $ac_c" 1>&6
8611 cat > conftest.$ac_ext <<EOF
8612 #line 8613 "configure"
8613 #include "confdefs.h"
8614 #include <sys/types.h>
8620 if { (eval echo configure:8621: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8622 eval "ac_cv_header_dirent_$ac_safe=yes"
8624 echo "configure: failed program was:" >&5
8625 cat conftest.$ac_ext >&5
8627 eval "ac_cv_header_dirent_$ac_safe=no"
8631 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
8632 echo "$ac_t""yes" 1>&6
8633 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8634 cat >> confdefs.h <<EOF
8635 #define $ac_tr_hdr 1
8637 ac_header_dirent=$ac_hdr; break
8639 echo "$ac_t""no" 1>&6
8642 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8643 if test $ac_header_dirent = dirent.h; then
8644 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
8645 echo "configure:8646: checking for opendir in -ldir" >&5
8646 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
8647 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8648 echo $ac_n "(cached) $ac_c" 1>&6
8650 ac_save_LIBS="$LIBS"
8652 cat > conftest.$ac_ext <<EOF
8653 #line 8654 "configure"
8654 #include "confdefs.h"
8655 /* Override any gcc2 internal prototype to avoid an error. */
8656 /* We use char because int might match the return type of a gcc2
8657 builtin and then its argument prototype would still apply. */
8664 if { (eval echo configure:8665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8666 eval "ac_cv_lib_$ac_lib_var=yes"
8668 echo "configure: failed program was:" >&5
8669 cat conftest.$ac_ext >&5
8671 eval "ac_cv_lib_$ac_lib_var=no"
8674 LIBS="$ac_save_LIBS"
8677 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8678 echo "$ac_t""yes" 1>&6
8681 echo "$ac_t""no" 1>&6
8685 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
8686 echo "configure:8687: checking for opendir in -lx" >&5
8687 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
8688 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8689 echo $ac_n "(cached) $ac_c" 1>&6
8691 ac_save_LIBS="$LIBS"
8693 cat > conftest.$ac_ext <<EOF
8694 #line 8695 "configure"
8695 #include "confdefs.h"
8696 /* Override any gcc2 internal prototype to avoid an error. */
8697 /* We use char because int might match the return type of a gcc2
8698 builtin and then its argument prototype would still apply. */
8705 if { (eval echo configure:8706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8707 eval "ac_cv_lib_$ac_lib_var=yes"
8709 echo "configure: failed program was:" >&5
8710 cat conftest.$ac_ext >&5
8712 eval "ac_cv_lib_$ac_lib_var=no"
8715 LIBS="$ac_save_LIBS"
8718 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8719 echo "$ac_t""yes" 1>&6
8722 echo "$ac_t""no" 1>&6
8727 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
8728 echo "configure:8729: checking for sys/wait.h that is POSIX.1 compatible" >&5
8729 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
8730 echo $ac_n "(cached) $ac_c" 1>&6
8732 cat > conftest.$ac_ext <<EOF
8733 #line 8734 "configure"
8734 #include "confdefs.h"
8735 #include <sys/types.h>
8736 #include <sys/wait.h>
8738 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8741 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8746 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8749 if { (eval echo configure:8750: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8751 ac_cv_header_sys_wait_h=yes
8753 echo "configure: failed program was:" >&5
8754 cat conftest.$ac_ext >&5
8756 ac_cv_header_sys_wait_h=no
8761 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
8762 if test $ac_cv_header_sys_wait_h = yes; then
8763 cat >> confdefs.h <<\EOF
8764 #define HAVE_SYS_WAIT_H 1
8769 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
8770 echo "configure:8771: checking POSIX termios" >&5
8771 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
8772 echo $ac_n "(cached) $ac_c" 1>&6
8774 cat > conftest.$ac_ext <<EOF
8775 #line 8776 "configure"
8776 #include "confdefs.h"
8777 #include <sys/types.h>
8779 #include <termios.h>
8781 /* SunOS 4.0.3 has termios.h but not the library calls. */
8785 if { (eval echo configure:8786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8787 am_cv_sys_posix_termios=yes
8789 echo "configure: failed program was:" >&5
8790 cat conftest.$ac_ext >&5
8792 am_cv_sys_posix_termios=no
8797 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
8800 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
8801 echo "configure:8802: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
8802 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
8803 echo $ac_n "(cached) $ac_c" 1>&6
8805 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
8807 gwinsz_in_termios_h=no
8808 if test $am_cv_sys_posix_termios = yes; then
8809 cat > conftest.$ac_ext <<EOF
8810 #line 8811 "configure"
8811 #include "confdefs.h"
8812 #include <sys/types.h>
8813 # include <termios.h>
8819 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8820 egrep "yes" >/dev/null 2>&1; then
8822 gwinsz_in_termios_h=yes
8828 if test $gwinsz_in_termios_h = no; then
8829 cat > conftest.$ac_ext <<EOF
8830 #line 8831 "configure"
8831 #include "confdefs.h"
8832 #include <sys/types.h>
8833 # include <sys/ioctl.h>
8839 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8840 egrep "yes" >/dev/null 2>&1; then
8842 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
8850 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
8851 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
8852 cat >> confdefs.h <<\EOF
8853 #define GWINSZ_IN_SYS_IOCTL 1
8858 if test $am_cv_sys_posix_termios = yes ; then
8859 cat >> confdefs.h <<\EOF
8860 #define HAVE_POSIX_TERMIOS 1
8916 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8917 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8918 echo "configure:8919: checking for $ac_hdr" >&5
8919 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8920 echo $ac_n "(cached) $ac_c" 1>&6
8922 cat > conftest.$ac_ext <<EOF
8923 #line 8924 "configure"
8924 #include "confdefs.h"
8927 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8928 { (eval echo configure:8929: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8929 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8930 if test -z "$ac_err"; then
8932 eval "ac_cv_header_$ac_safe=yes"
8935 echo "configure: failed program was:" >&5
8936 cat conftest.$ac_ext >&5
8938 eval "ac_cv_header_$ac_safe=no"
8942 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8943 echo "$ac_t""yes" 1>&6
8944 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8945 cat >> confdefs.h <<EOF
8946 #define $ac_tr_hdr 1
8950 echo "$ac_t""no" 1>&6
8957 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
8958 echo "configure:8959: checking for dlopen" >&5
8959 if eval "test \"\${ac_cv_func_dlopen+set}\" = set"; then
8960 echo $ac_n "(cached) $ac_c" 1>&6
8962 cat > conftest.$ac_ext <<EOF
8963 #line 8964 "configure"
8964 #include "confdefs.h"
8965 /* System header to define __stub macros and hopefully few prototypes,
8966 which can conflict with char dlopen(); below. */
8968 /* Override any gcc2 internal prototype to avoid an error. */
8969 /* We use char because int might match the return type of a gcc2
8970 builtin and then its argument prototype would still apply. */
8976 /* The GNU C library defines this for functions which it implements
8977 to always fail with ENOSYS. Some functions are actually named
8978 something starting with __ and the normal name is an alias. */
8979 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8987 if { (eval echo configure:8988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8989 eval "ac_cv_func_dlopen=yes"
8991 echo "configure: failed program was:" >&5
8992 cat conftest.$ac_ext >&5
8994 eval "ac_cv_func_dlopen=no"
8999 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
9000 echo "$ac_t""yes" 1>&6
9003 echo "$ac_t""no" 1>&6
9004 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
9005 echo "configure:9006: checking for dlopen in -ldl" >&5
9006 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-:%__p__%'`
9007 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9008 echo $ac_n "(cached) $ac_c" 1>&6
9010 ac_save_LIBS="$LIBS"
9012 cat > conftest.$ac_ext <<EOF
9013 #line 9014 "configure"
9014 #include "confdefs.h"
9015 /* Override any gcc2 internal prototype to avoid an error. */
9016 /* We use char because int might match the return type of a gcc2
9017 builtin and then its argument prototype would still apply. */
9024 if { (eval echo configure:9025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9026 eval "ac_cv_lib_$ac_lib_var=yes"
9028 echo "configure: failed program was:" >&5
9029 cat conftest.$ac_ext >&5
9031 eval "ac_cv_lib_$ac_lib_var=no"
9034 LIBS="$ac_save_LIBS"
9037 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9038 echo "$ac_t""yes" 1>&6
9039 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9040 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9041 cat >> confdefs.h <<EOF
9042 #define $ac_tr_lib 1
9048 echo "$ac_t""no" 1>&6
9054 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
9055 echo "configure:9056: checking for sigset in -lV3" >&5
9056 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
9057 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9058 echo $ac_n "(cached) $ac_c" 1>&6
9060 ac_save_LIBS="$LIBS"
9062 cat > conftest.$ac_ext <<EOF
9063 #line 9064 "configure"
9064 #include "confdefs.h"
9065 /* Override any gcc2 internal prototype to avoid an error. */
9066 /* We use char because int might match the return type of a gcc2
9067 builtin and then its argument prototype would still apply. */
9074 if { (eval echo configure:9075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9076 eval "ac_cv_lib_$ac_lib_var=yes"
9078 echo "configure: failed program was:" >&5
9079 cat conftest.$ac_ext >&5
9081 eval "ac_cv_lib_$ac_lib_var=no"
9084 LIBS="$ac_save_LIBS"
9087 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9088 echo "$ac_t""yes" 1>&6
9089 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9090 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9091 cat >> confdefs.h <<EOF
9092 #define $ac_tr_lib 1
9098 echo "$ac_t""no" 1>&6
9102 echo $ac_n "checking for winsock""... $ac_c" 1>&6
9103 echo "configure:9104: checking for winsock" >&5
9105 for curlib in ws2_32 wsock32; do
9106 LIBS="$LIBS -l$curlib"
9107 cat > conftest.$ac_ext <<EOF
9108 #line 9109 "configure"
9109 #include "confdefs.h"
9113 char closesocket@4();
9114 char gethostname@8();
9125 if { (eval echo configure:9126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9129 echo "configure: failed program was:" >&5
9130 cat conftest.$ac_ext >&5
9136 if test $have_winsock = yes; then
9137 cat >> confdefs.h <<\EOF
9138 #define HAVE_WINSOCK 1
9141 ac_cv_func_socket=yes
9142 ac_cv_func_select=yes
9143 ac_cv_func_closesocket=yes
9144 ac_cv_func_gethostname=yes
9145 if test $curlib = ws2_32; then
9146 have_winsock=winsock2
9147 cat >> confdefs.h <<\EOF
9148 #define HAVE_WINSOCK2 1
9156 echo "$ac_t""$have_winsock" 1>&6
9159 echo $ac_n "checking for socket""... $ac_c" 1>&6
9160 echo "configure:9161: checking for socket" >&5
9161 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
9162 echo $ac_n "(cached) $ac_c" 1>&6
9164 cat > conftest.$ac_ext <<EOF
9165 #line 9166 "configure"
9166 #include "confdefs.h"
9167 /* System header to define __stub macros and hopefully few prototypes,
9168 which can conflict with char socket(); below. */
9170 /* Override any gcc2 internal prototype to avoid an error. */
9171 /* We use char because int might match the return type of a gcc2
9172 builtin and then its argument prototype would still apply. */
9178 /* The GNU C library defines this for functions which it implements
9179 to always fail with ENOSYS. Some functions are actually named
9180 something starting with __ and the normal name is an alias. */
9181 #if defined (__stub_socket) || defined (__stub___socket)
9189 if { (eval echo configure:9190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9191 eval "ac_cv_func_socket=yes"
9193 echo "configure: failed program was:" >&5
9194 cat conftest.$ac_ext >&5
9196 eval "ac_cv_func_socket=no"
9201 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
9202 echo "$ac_t""yes" 1>&6
9205 echo "$ac_t""no" 1>&6
9207 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
9208 echo "configure:9209: checking for main in -lsocket" >&5
9209 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
9210 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9211 echo $ac_n "(cached) $ac_c" 1>&6
9213 ac_save_LIBS="$LIBS"
9214 LIBS="-lsocket $LIBS"
9215 cat > conftest.$ac_ext <<EOF
9216 #line 9217 "configure"
9217 #include "confdefs.h"
9223 if { (eval echo configure:9224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9225 eval "ac_cv_lib_$ac_lib_var=yes"
9227 echo "configure: failed program was:" >&5
9228 cat conftest.$ac_ext >&5
9230 eval "ac_cv_lib_$ac_lib_var=no"
9233 LIBS="$ac_save_LIBS"
9236 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9237 echo "$ac_t""yes" 1>&6
9238 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9239 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9240 cat >> confdefs.h <<EOF
9241 #define $ac_tr_lib 1
9244 LIBS="-lsocket $LIBS"
9247 echo "$ac_t""no" 1>&6
9250 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
9251 echo "configure:9252: checking for main in -lnet" >&5
9252 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
9253 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9254 echo $ac_n "(cached) $ac_c" 1>&6
9256 ac_save_LIBS="$LIBS"
9258 cat > conftest.$ac_ext <<EOF
9259 #line 9260 "configure"
9260 #include "confdefs.h"
9266 if { (eval echo configure:9267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9268 eval "ac_cv_lib_$ac_lib_var=yes"
9270 echo "configure: failed program was:" >&5
9271 cat conftest.$ac_ext >&5
9273 eval "ac_cv_lib_$ac_lib_var=no"
9276 LIBS="$ac_save_LIBS"
9279 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9280 echo "$ac_t""yes" 1>&6
9281 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9282 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9283 cat >> confdefs.h <<EOF
9284 #define $ac_tr_lib 1
9290 echo "$ac_t""no" 1>&6
9293 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
9294 echo "configure:9295: checking for main in -lnsl_s" >&5
9295 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
9296 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9297 echo $ac_n "(cached) $ac_c" 1>&6
9299 ac_save_LIBS="$LIBS"
9300 LIBS="-lnsl_s $LIBS"
9301 cat > conftest.$ac_ext <<EOF
9302 #line 9303 "configure"
9303 #include "confdefs.h"
9309 if { (eval echo configure:9310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9311 eval "ac_cv_lib_$ac_lib_var=yes"
9313 echo "configure: failed program was:" >&5
9314 cat conftest.$ac_ext >&5
9316 eval "ac_cv_lib_$ac_lib_var=no"
9319 LIBS="$ac_save_LIBS"
9322 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9323 echo "$ac_t""yes" 1>&6
9324 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9325 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9326 cat >> confdefs.h <<EOF
9327 #define $ac_tr_lib 1
9330 LIBS="-lnsl_s $LIBS"
9333 echo "$ac_t""no" 1>&6
9336 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
9337 echo "configure:9338: checking for main in -lnsl" >&5
9338 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
9339 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9340 echo $ac_n "(cached) $ac_c" 1>&6
9342 ac_save_LIBS="$LIBS"
9344 cat > conftest.$ac_ext <<EOF
9345 #line 9346 "configure"
9346 #include "confdefs.h"
9352 if { (eval echo configure:9353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9354 eval "ac_cv_lib_$ac_lib_var=yes"
9356 echo "configure: failed program was:" >&5
9357 cat conftest.$ac_ext >&5
9359 eval "ac_cv_lib_$ac_lib_var=no"
9362 LIBS="$ac_save_LIBS"
9365 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9366 echo "$ac_t""yes" 1>&6
9367 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9368 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9369 cat >> confdefs.h <<EOF
9370 #define $ac_tr_lib 1
9376 echo "$ac_t""no" 1>&6
9379 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
9380 echo "configure:9381: checking for socket in -linet" >&5
9381 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
9382 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9383 echo $ac_n "(cached) $ac_c" 1>&6
9385 ac_save_LIBS="$LIBS"
9387 cat > conftest.$ac_ext <<EOF
9388 #line 9389 "configure"
9389 #include "confdefs.h"
9390 /* Override any gcc2 internal prototype to avoid an error. */
9391 /* We use char because int might match the return type of a gcc2
9392 builtin and then its argument prototype would still apply. */
9399 if { (eval echo configure:9400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9401 eval "ac_cv_lib_$ac_lib_var=yes"
9403 echo "configure: failed program was:" >&5
9404 cat conftest.$ac_ext >&5
9406 eval "ac_cv_lib_$ac_lib_var=no"
9409 LIBS="$ac_save_LIBS"
9412 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9413 echo "$ac_t""yes" 1>&6
9414 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9415 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9416 cat >> confdefs.h <<EOF
9417 #define $ac_tr_lib 1
9423 echo "$ac_t""no" 1>&6
9426 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
9427 echo "configure:9428: checking for main in -lgen" >&5
9428 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
9429 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9430 echo $ac_n "(cached) $ac_c" 1>&6
9432 ac_save_LIBS="$LIBS"
9434 cat > conftest.$ac_ext <<EOF
9435 #line 9436 "configure"
9436 #include "confdefs.h"
9442 if { (eval echo configure:9443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9444 eval "ac_cv_lib_$ac_lib_var=yes"
9446 echo "configure: failed program was:" >&5
9447 cat conftest.$ac_ext >&5
9449 eval "ac_cv_lib_$ac_lib_var=no"
9452 LIBS="$ac_save_LIBS"
9455 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9456 echo "$ac_t""yes" 1>&6
9457 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9458 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9459 cat >> confdefs.h <<EOF
9460 #define $ac_tr_lib 1
9466 echo "$ac_t""no" 1>&6
9473 echo $ac_n "checking for select""... $ac_c" 1>&6
9474 echo "configure:9475: checking for select" >&5
9475 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
9476 echo $ac_n "(cached) $ac_c" 1>&6
9478 cat > conftest.$ac_ext <<EOF
9479 #line 9480 "configure"
9480 #include "confdefs.h"
9481 /* System header to define __stub macros and hopefully few prototypes,
9482 which can conflict with char select(); below. */
9484 /* Override any gcc2 internal prototype to avoid an error. */
9485 /* We use char because int might match the return type of a gcc2
9486 builtin and then its argument prototype would still apply. */
9492 /* The GNU C library defines this for functions which it implements
9493 to always fail with ENOSYS. Some functions are actually named
9494 something starting with __ and the normal name is an alias. */
9495 #if defined (__stub_select) || defined (__stub___select)
9503 if { (eval echo configure:9504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9505 eval "ac_cv_func_select=yes"
9507 echo "configure: failed program was:" >&5
9508 cat conftest.$ac_ext >&5
9510 eval "ac_cv_func_select=no"
9515 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
9516 echo "$ac_t""yes" 1>&6
9519 echo "$ac_t""no" 1>&6
9520 { echo "configure: error: select() required." 1>&2; exit 1; }
9524 if test "${ac_cv_header_winsock_h}" != yes; then
9525 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
9526 echo "configure:9527: checking types of arguments for select()" >&5
9527 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
9528 echo $ac_n "(cached) $ac_c" 1>&6
9530 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
9531 echo $ac_n "(cached) $ac_c" 1>&6
9533 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
9534 echo $ac_n "(cached) $ac_c" 1>&6
9536 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
9537 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
9538 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
9539 cat > conftest.$ac_ext <<EOF
9540 #line 9541 "configure"
9541 #include "confdefs.h"
9542 #ifdef HAVE_SYS_TYPES_H
9543 #include <sys/types.h>
9545 #ifdef HAVE_SYS_TIME_H
9546 #include <sys/time.h>
9548 #ifdef HAVE_SYS_SELECT_H
9549 #include <sys/select.h>
9551 #ifdef HAVE_SYS_SOCKET_H
9552 #include <sys/socket.h>
9554 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);
9559 if { (eval echo configure:9560: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9561 ac_not_found=no ; break 3
9563 echo "configure: failed program was:" >&5
9564 cat conftest.$ac_ext >&5
9578 if test "$ac_not_found" = yes; then
9579 ac_cv_func_select_arg1=int
9580 ac_cv_func_select_arg234='int *'
9581 ac_cv_func_select_arg5='struct timeval *'
9583 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
9584 cat >> confdefs.h <<EOF
9585 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
9588 cat >> confdefs.h <<EOF
9589 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
9592 cat >> confdefs.h <<EOF
9593 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
9600 for ac_hdr in regex.h
9602 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9603 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9604 echo "configure:9605: checking for $ac_hdr" >&5
9605 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9606 echo $ac_n "(cached) $ac_c" 1>&6
9608 cat > conftest.$ac_ext <<EOF
9609 #line 9610 "configure"
9610 #include "confdefs.h"
9613 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9614 { (eval echo configure:9615: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9615 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9616 if test -z "$ac_err"; then
9618 eval "ac_cv_header_$ac_safe=yes"
9621 echo "configure: failed program was:" >&5
9622 cat conftest.$ac_ext >&5
9624 eval "ac_cv_header_$ac_safe=no"
9628 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9629 echo "$ac_t""yes" 1>&6
9630 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9631 cat >> confdefs.h <<EOF
9632 #define $ac_tr_hdr 1
9636 echo "$ac_t""no" 1>&6
9640 if test "$ac_cv_header_regex_h" != yes ; then
9641 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
9644 echo $ac_n "checking for library containing regfree""... $ac_c" 1>&6
9645 echo "configure:9646: checking for library containing regfree" >&5
9646 if eval "test \"\${ac_cv_search_regfree+set}\" = set"; then
9647 echo $ac_n "(cached) $ac_c" 1>&6
9649 ac_func_search_save_LIBS="$LIBS"
9650 ac_cv_search_regfree="no"
9651 cat > conftest.$ac_ext <<EOF
9652 #line 9653 "configure"
9653 #include "confdefs.h"
9654 /* Override any gcc2 internal prototype to avoid an error. */
9655 /* We use char because int might match the return type of a gcc2
9656 builtin and then its argument prototype would still apply. */
9663 if { (eval echo configure:9664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9665 ac_cv_search_regfree="none required"
9667 echo "configure: failed program was:" >&5
9668 cat conftest.$ac_ext >&5
9671 test "$ac_cv_search_regfree" = "no" && for ac_lib in regex gnuregex; do
9672 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9673 cat > conftest.$ac_ext <<EOF
9674 #line 9675 "configure"
9675 #include "confdefs.h"
9676 /* Override any gcc2 internal prototype to avoid an error. */
9677 /* We use char because int might match the return type of a gcc2
9678 builtin and then its argument prototype would still apply. */
9685 if { (eval echo configure:9686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9687 ac_cv_search_regfree="-l$ac_lib"
9690 echo "configure: failed program was:" >&5
9691 cat conftest.$ac_ext >&5
9695 LIBS="$ac_func_search_save_LIBS"
9698 echo "$ac_t""$ac_cv_search_regfree" 1>&6
9699 if test "$ac_cv_search_regfree" != "no"; then
9700 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
9703 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
9707 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
9708 echo "configure:9709: checking for compatible POSIX regex" >&5
9709 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
9710 echo $ac_n "(cached) $ac_c" 1>&6
9713 if test "$cross_compiling" = yes; then
9714 ol_cv_c_posix_regex=cross
9716 cat > conftest.$ac_ext <<EOF
9717 #line 9718 "configure"
9718 #include "confdefs.h"
9720 #include <sys/types.h>
9722 static char *pattern, *string;
9730 if(regcomp(&re, pattern, 0)) {
9734 string = "ALL MATCH";
9736 rc = regexec(&re, string, 0, (void*)0, 0);
9743 if { (eval echo configure:9744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9745 ol_cv_c_posix_regex=yes
9747 echo "configure: failed program was:" >&5
9748 cat conftest.$ac_ext >&5
9750 ol_cv_c_posix_regex=no
9757 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
9759 if test "$ol_cv_c_posix_regex" = no ; then
9760 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
9765 for ac_hdr in sys/uuid.h
9767 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9768 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9769 echo "configure:9770: checking for $ac_hdr" >&5
9770 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9771 echo $ac_n "(cached) $ac_c" 1>&6
9773 cat > conftest.$ac_ext <<EOF
9774 #line 9775 "configure"
9775 #include "confdefs.h"
9778 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9779 { (eval echo configure:9780: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9780 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9781 if test -z "$ac_err"; then
9783 eval "ac_cv_header_$ac_safe=yes"
9786 echo "configure: failed program was:" >&5
9787 cat conftest.$ac_ext >&5
9789 eval "ac_cv_header_$ac_safe=no"
9793 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9794 echo "$ac_t""yes" 1>&6
9795 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9796 cat >> confdefs.h <<EOF
9797 #define $ac_tr_hdr 1
9801 echo "$ac_t""no" 1>&6
9805 if test $ac_cv_header_sys_uuid_h = yes ; then
9808 echo $ac_n "checking for library containing uuid_to_str""... $ac_c" 1>&6
9809 echo "configure:9810: checking for library containing uuid_to_str" >&5
9810 if eval "test \"\${ac_cv_search_uuid_to_str+set}\" = set"; then
9811 echo $ac_n "(cached) $ac_c" 1>&6
9813 ac_func_search_save_LIBS="$LIBS"
9814 ac_cv_search_uuid_to_str="no"
9815 cat > conftest.$ac_ext <<EOF
9816 #line 9817 "configure"
9817 #include "confdefs.h"
9818 /* Override any gcc2 internal prototype to avoid an error. */
9819 /* We use char because int might match the return type of a gcc2
9820 builtin and then its argument prototype would still apply. */
9827 if { (eval echo configure:9828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9829 ac_cv_search_uuid_to_str="none required"
9831 echo "configure: failed program was:" >&5
9832 cat conftest.$ac_ext >&5
9835 test "$ac_cv_search_uuid_to_str" = "no" && for ac_lib in uuid; do
9836 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9837 cat > conftest.$ac_ext <<EOF
9838 #line 9839 "configure"
9839 #include "confdefs.h"
9840 /* Override any gcc2 internal prototype to avoid an error. */
9841 /* We use char because int might match the return type of a gcc2
9842 builtin and then its argument prototype would still apply. */
9849 if { (eval echo configure:9850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9851 ac_cv_search_uuid_to_str="-l$ac_lib"
9854 echo "configure: failed program was:" >&5
9855 cat conftest.$ac_ext >&5
9859 LIBS="$ac_func_search_save_LIBS"
9862 echo "$ac_t""$ac_cv_search_uuid_to_str" 1>&6
9863 if test "$ac_cv_search_uuid_to_str" != "no"; then
9864 test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
9871 if test have_uuid = yes ; then
9872 cat >> confdefs.h <<\EOF
9873 #define HAVE_UUID_TO_STR 1
9877 test "$ac_cv_search_uuid_to_str" = "none required" || \
9878 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
9882 if test $have_uuid = no ; then
9883 echo $ac_n "checking to see if -lrpcrt4 is needed for win32 UUID support""... $ac_c" 1>&6
9884 echo "configure:9885: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
9886 LIBS="$LIBS -lrpcrt4"
9887 cat > conftest.$ac_ext <<EOF
9888 #line 9889 "configure"
9889 #include "confdefs.h"
9891 char UuidCreate@4();
9892 char UuidToStringA@8();
9901 if { (eval echo configure:9902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9905 echo "configure: failed program was:" >&5
9906 cat conftest.$ac_ext >&5
9911 if test $need_rpcrt = yes; then
9912 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
9915 echo "$ac_t""$need_rpcrt" 1>&6
9919 echo $ac_n "checking for res_query""... $ac_c" 1>&6
9920 echo "configure:9921: checking for res_query" >&5
9921 if eval "test \"\${ac_cv_func_res_query+set}\" = set"; then
9922 echo $ac_n "(cached) $ac_c" 1>&6
9924 cat > conftest.$ac_ext <<EOF
9925 #line 9926 "configure"
9926 #include "confdefs.h"
9927 /* System header to define __stub macros and hopefully few prototypes,
9928 which can conflict with char res_query(); below. */
9930 /* Override any gcc2 internal prototype to avoid an error. */
9931 /* We use char because int might match the return type of a gcc2
9932 builtin and then its argument prototype would still apply. */
9938 /* The GNU C library defines this for functions which it implements
9939 to always fail with ENOSYS. Some functions are actually named
9940 something starting with __ and the normal name is an alias. */
9941 #if defined (__stub_res_query) || defined (__stub___res_query)
9949 if { (eval echo configure:9950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9951 eval "ac_cv_func_res_query=yes"
9953 echo "configure: failed program was:" >&5
9954 cat conftest.$ac_ext >&5
9956 eval "ac_cv_func_res_query=no"
9961 if eval "test \"`echo '$ac_cv_func_'res_query`\" = yes"; then
9962 echo "$ac_t""yes" 1>&6
9965 echo "$ac_t""no" 1>&6
9968 if test $ac_cv_func_res_query = no ; then
9969 echo $ac_n "checking for __res_query""... $ac_c" 1>&6
9970 echo "configure:9971: checking for __res_query" >&5
9971 if eval "test \"\${ac_cv_func___res_query+set}\" = set"; then
9972 echo $ac_n "(cached) $ac_c" 1>&6
9974 cat > conftest.$ac_ext <<EOF
9975 #line 9976 "configure"
9976 #include "confdefs.h"
9977 /* System header to define __stub macros and hopefully few prototypes,
9978 which can conflict with char __res_query(); below. */
9980 /* Override any gcc2 internal prototype to avoid an error. */
9981 /* We use char because int might match the return type of a gcc2
9982 builtin and then its argument prototype would still apply. */
9988 /* The GNU C library defines this for functions which it implements
9989 to always fail with ENOSYS. Some functions are actually named
9990 something starting with __ and the normal name is an alias. */
9991 #if defined (__stub___res_query) || defined (__stub_____res_query)
9999 if { (eval echo configure:10000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10001 eval "ac_cv_func___res_query=yes"
10003 echo "configure: failed program was:" >&5
10004 cat conftest.$ac_ext >&5
10006 eval "ac_cv_func___res_query=no"
10011 if eval "test \"`echo '$ac_cv_func_'__res_query`\" = yes"; then
10012 echo "$ac_t""yes" 1>&6
10015 echo "$ac_t""no" 1>&6
10018 ac_cv_func_res_query=$ac_cv_func___res_query
10021 if test $ac_cv_func_res_query = no ; then
10022 echo $ac_n "checking for res_query in -lbind""... $ac_c" 1>&6
10023 echo "configure:10024: checking for res_query in -lbind" >&5
10024 ac_lib_var=`echo bind'_'res_query | sed 'y%./+-:%__p__%'`
10025 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10026 echo $ac_n "(cached) $ac_c" 1>&6
10028 ac_save_LIBS="$LIBS"
10029 LIBS="-lbind $LIBS"
10030 cat > conftest.$ac_ext <<EOF
10031 #line 10032 "configure"
10032 #include "confdefs.h"
10033 /* Override any gcc2 internal prototype to avoid an error. */
10034 /* We use char because int might match the return type of a gcc2
10035 builtin and then its argument prototype would still apply. */
10042 if { (eval echo configure:10043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10044 eval "ac_cv_lib_$ac_lib_var=yes"
10046 echo "configure: failed program was:" >&5
10047 cat conftest.$ac_ext >&5
10049 eval "ac_cv_lib_$ac_lib_var=no"
10052 LIBS="$ac_save_LIBS"
10055 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10056 echo "$ac_t""yes" 1>&6
10057 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10058 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10059 cat >> confdefs.h <<EOF
10060 #define $ac_tr_lib 1
10063 LIBS="-lbind $LIBS"
10066 echo "$ac_t""no" 1>&6
10069 ac_cv_func_res_query=$ac_cv_lib_bind_res_query
10072 if test $ac_cv_func_res_query = no ; then
10073 echo $ac_n "checking for __res_query in -lbind""... $ac_c" 1>&6
10074 echo "configure:10075: checking for __res_query in -lbind" >&5
10075 ac_lib_var=`echo bind'_'__res_query | sed 'y%./+-:%__p__%'`
10076 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10077 echo $ac_n "(cached) $ac_c" 1>&6
10079 ac_save_LIBS="$LIBS"
10080 LIBS="-lbind $LIBS"
10081 cat > conftest.$ac_ext <<EOF
10082 #line 10083 "configure"
10083 #include "confdefs.h"
10084 /* Override any gcc2 internal prototype to avoid an error. */
10085 /* We use char because int might match the return type of a gcc2
10086 builtin and then its argument prototype would still apply. */
10087 char __res_query();
10093 if { (eval echo configure:10094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10095 eval "ac_cv_lib_$ac_lib_var=yes"
10097 echo "configure: failed program was:" >&5
10098 cat conftest.$ac_ext >&5
10100 eval "ac_cv_lib_$ac_lib_var=no"
10103 LIBS="$ac_save_LIBS"
10106 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10107 echo "$ac_t""yes" 1>&6
10108 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10109 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10110 cat >> confdefs.h <<EOF
10111 #define $ac_tr_lib 1
10114 LIBS="-lbind $LIBS"
10117 echo "$ac_t""no" 1>&6
10120 ac_cv_func_res_query=$ac_cv_lib_bind___res_query
10123 if test $ac_cv_func_res_query = no ; then
10124 echo $ac_n "checking for res_query in -lresolv""... $ac_c" 1>&6
10125 echo "configure:10126: checking for res_query in -lresolv" >&5
10126 ac_lib_var=`echo resolv'_'res_query | sed 'y%./+-:%__p__%'`
10127 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10128 echo $ac_n "(cached) $ac_c" 1>&6
10130 ac_save_LIBS="$LIBS"
10131 LIBS="-lresolv $LIBS"
10132 cat > conftest.$ac_ext <<EOF
10133 #line 10134 "configure"
10134 #include "confdefs.h"
10135 /* Override any gcc2 internal prototype to avoid an error. */
10136 /* We use char because int might match the return type of a gcc2
10137 builtin and then its argument prototype would still apply. */
10144 if { (eval echo configure:10145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10146 eval "ac_cv_lib_$ac_lib_var=yes"
10148 echo "configure: failed program was:" >&5
10149 cat conftest.$ac_ext >&5
10151 eval "ac_cv_lib_$ac_lib_var=no"
10154 LIBS="$ac_save_LIBS"
10157 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10158 echo "$ac_t""yes" 1>&6
10159 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10160 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10161 cat >> confdefs.h <<EOF
10162 #define $ac_tr_lib 1
10165 LIBS="-lresolv $LIBS"
10168 echo "$ac_t""no" 1>&6
10171 ac_cv_func_res_query=$ac_cv_lib_resolv_res_query
10174 if test $ac_cv_func_res_query = no ; then
10175 echo $ac_n "checking for __res_query in -lresolv""... $ac_c" 1>&6
10176 echo "configure:10177: checking for __res_query in -lresolv" >&5
10177 ac_lib_var=`echo resolv'_'__res_query | sed 'y%./+-:%__p__%'`
10178 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10179 echo $ac_n "(cached) $ac_c" 1>&6
10181 ac_save_LIBS="$LIBS"
10182 LIBS="-lresolv $LIBS"
10183 cat > conftest.$ac_ext <<EOF
10184 #line 10185 "configure"
10185 #include "confdefs.h"
10186 /* Override any gcc2 internal prototype to avoid an error. */
10187 /* We use char because int might match the return type of a gcc2
10188 builtin and then its argument prototype would still apply. */
10189 char __res_query();
10195 if { (eval echo configure:10196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10197 eval "ac_cv_lib_$ac_lib_var=yes"
10199 echo "configure: failed program was:" >&5
10200 cat conftest.$ac_ext >&5
10202 eval "ac_cv_lib_$ac_lib_var=no"
10205 LIBS="$ac_save_LIBS"
10208 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10209 echo "$ac_t""yes" 1>&6
10210 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10211 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10212 cat >> confdefs.h <<EOF
10213 #define $ac_tr_lib 1
10216 LIBS="-lresolv $LIBS"
10219 echo "$ac_t""no" 1>&6
10222 ac_cv_func_res_query=$ac_cv_lib_resolv___res_query
10225 if test "$ac_cv_func_res_query" = yes ; then
10226 cat >> confdefs.h <<\EOF
10227 #define HAVE_RES_QUERY 1
10231 if test $ol_enable_dnssrv != no ; then
10236 if test "$ol_enable_dnssrv" = yes -a "$ol_link_dnssrv" = no ; then
10237 { echo "configure: error: DNSSRV requires res_query()" 1>&2; exit 1; }
10240 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
10242 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10243 echo "configure:10244: checking for $ac_func" >&5
10244 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10245 echo $ac_n "(cached) $ac_c" 1>&6
10247 cat > conftest.$ac_ext <<EOF
10248 #line 10249 "configure"
10249 #include "confdefs.h"
10250 /* System header to define __stub macros and hopefully few prototypes,
10251 which can conflict with char $ac_func(); below. */
10252 #include <assert.h>
10253 /* Override any gcc2 internal prototype to avoid an error. */
10254 /* We use char because int might match the return type of a gcc2
10255 builtin and then its argument prototype would still apply. */
10261 /* The GNU C library defines this for functions which it implements
10262 to always fail with ENOSYS. Some functions are actually named
10263 something starting with __ and the normal name is an alias. */
10264 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10272 if { (eval echo configure:10273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10274 eval "ac_cv_func_$ac_func=yes"
10276 echo "configure: failed program was:" >&5
10277 cat conftest.$ac_ext >&5
10279 eval "ac_cv_func_$ac_func=no"
10284 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10285 echo "$ac_t""yes" 1>&6
10286 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10287 cat >> confdefs.h <<EOF
10288 #define $ac_tr_func 1
10292 echo "$ac_t""no" 1>&6
10298 if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then
10299 if test $ol_enable_ipv6 = yes ; then
10300 { echo "configure: error: IPv6 support requires getaddrinfo() and inet_ntop()" 1>&2; exit 1; }
10302 elif test $ol_enable_ipv6 != no ; then
10303 echo $ac_n "checking INET6_ADDRSTRLEN""... $ac_c" 1>&6
10304 echo "configure:10305: checking INET6_ADDRSTRLEN" >&5
10305 if eval "test \"\${ol_cv_inet6_addrstrlen+set}\" = set"; then
10306 echo $ac_n "(cached) $ac_c" 1>&6
10309 cat > conftest.$ac_ext <<EOF
10310 #line 10311 "configure"
10311 #include "confdefs.h"
10313 # include <netinet/in.h>
10314 # ifdef INET6_ADDRSTRLEN
10315 __has_inet6_addrstrlen__;
10319 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10320 egrep "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
10322 ol_cv_inet6_addrstrlen=yes
10325 ol_cv_inet6_addrstrlen=no
10331 echo "$ac_t""$ol_cv_inet6_addrstrlen" 1>&6
10334 echo $ac_n "checking struct sockaddr_storage""... $ac_c" 1>&6
10335 echo "configure:10336: checking struct sockaddr_storage" >&5
10336 if eval "test \"\${ol_cv_struct_sockaddr_storage+set}\" = set"; then
10337 echo $ac_n "(cached) $ac_c" 1>&6
10340 cat > conftest.$ac_ext <<EOF
10341 #line 10342 "configure"
10342 #include "confdefs.h"
10344 #include <sys/types.h>
10345 #include <sys/socket.h>
10349 struct sockaddr_storage ss;
10353 if { (eval echo configure:10354: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10355 ol_cv_struct_sockaddr_storage=yes
10357 echo "configure: failed program was:" >&5
10358 cat conftest.$ac_ext >&5
10360 ol_cv_struct_sockaddr_storage=no
10365 echo "$ac_t""$ol_cv_struct_sockaddr_storage" 1>&6
10367 if test $ol_cv_inet6_addrstrlen = yes \
10368 -a $ol_cv_struct_sockaddr_storage = yes ; then
10370 elif test $ol_enable_ipv6 = yes \
10371 -a $ol_cv_inet6_addrstrlen = no ; then
10372 { echo "configure: error: IPv6 support requires INET6_ADDRSTRLEN" 1>&2; exit 1; }
10373 elif test $ol_enable_ipv6 = yes \
10374 -a $ol_cv_struct_sockaddr_storage = no ; then
10375 { echo "configure: error: IPv6 support requires struct sockaddr_storage" 1>&2; exit 1; }
10379 if test $ol_enable_local != no ; then
10380 for ac_hdr in sys/un.h
10382 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10383 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10384 echo "configure:10385: checking for $ac_hdr" >&5
10385 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10386 echo $ac_n "(cached) $ac_c" 1>&6
10388 cat > conftest.$ac_ext <<EOF
10389 #line 10390 "configure"
10390 #include "confdefs.h"
10393 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10394 { (eval echo configure:10395: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10395 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10396 if test -z "$ac_err"; then
10398 eval "ac_cv_header_$ac_safe=yes"
10401 echo "configure: failed program was:" >&5
10402 cat conftest.$ac_ext >&5
10404 eval "ac_cv_header_$ac_safe=no"
10408 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10409 echo "$ac_t""yes" 1>&6
10410 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10411 cat >> confdefs.h <<EOF
10412 #define $ac_tr_hdr 1
10416 echo "$ac_t""no" 1>&6
10421 if test $ol_enable_local = auto ; then
10422 ol_enable_local=$ac_cv_header_sys_un_h
10423 elif test $ac_cv_header_sys_un_h = no ; then
10424 { echo "configure: error: AF_LOCAL domain support requires sys/un.h" 1>&2; exit 1; }
10433 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
10434 -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
10435 -o $ol_with_kerberos = k425 ; then
10437 for ac_hdr in krb5.h
10439 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10440 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10441 echo "configure:10442: checking for $ac_hdr" >&5
10442 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10443 echo $ac_n "(cached) $ac_c" 1>&6
10445 cat > conftest.$ac_ext <<EOF
10446 #line 10447 "configure"
10447 #include "confdefs.h"
10450 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10451 { (eval echo configure:10452: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10452 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10453 if test -z "$ac_err"; then
10455 eval "ac_cv_header_$ac_safe=yes"
10458 echo "configure: failed program was:" >&5
10459 cat conftest.$ac_ext >&5
10461 eval "ac_cv_header_$ac_safe=no"
10465 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10466 echo "$ac_t""yes" 1>&6
10467 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10468 cat >> confdefs.h <<EOF
10469 #define $ac_tr_hdr 1
10473 echo "$ac_t""no" 1>&6
10478 if test $ac_cv_header_krb5_h = yes ; then
10479 for ac_hdr in heim_err.h
10481 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10482 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10483 echo "configure:10484: checking for $ac_hdr" >&5
10484 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10485 echo $ac_n "(cached) $ac_c" 1>&6
10487 cat > conftest.$ac_ext <<EOF
10488 #line 10489 "configure"
10489 #include "confdefs.h"
10492 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10493 { (eval echo configure:10494: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10494 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10495 if test -z "$ac_err"; then
10497 eval "ac_cv_header_$ac_safe=yes"
10500 echo "configure: failed program was:" >&5
10501 cat conftest.$ac_ext >&5
10503 eval "ac_cv_header_$ac_safe=no"
10507 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10508 echo "$ac_t""yes" 1>&6
10509 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10510 cat >> confdefs.h <<EOF
10511 #define $ac_tr_hdr 1
10515 echo "$ac_t""no" 1>&6
10519 if test $ac_cv_header_heim_err_h = yes ; then
10525 if test $krb5_impl = mit; then
10526 echo $ac_n "checking for main in -lk5crypto""... $ac_c" 1>&6
10527 echo "configure:10528: checking for main in -lk5crypto" >&5
10528 ac_lib_var=`echo k5crypto'_'main | sed 'y%./+-:%__p__%'`
10529 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10530 echo $ac_n "(cached) $ac_c" 1>&6
10532 ac_save_LIBS="$LIBS"
10533 LIBS="-lk5crypto $LIBS"
10534 cat > conftest.$ac_ext <<EOF
10535 #line 10536 "configure"
10536 #include "confdefs.h"
10542 if { (eval echo configure:10543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10544 eval "ac_cv_lib_$ac_lib_var=yes"
10546 echo "configure: failed program was:" >&5
10547 cat conftest.$ac_ext >&5
10549 eval "ac_cv_lib_$ac_lib_var=no"
10552 LIBS="$ac_save_LIBS"
10555 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10556 echo "$ac_t""yes" 1>&6
10557 krb5crypto=k5crypto
10559 echo "$ac_t""no" 1>&6
10564 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
10565 echo "configure:10566: checking for main in -lkrb5" >&5
10566 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
10567 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10568 echo $ac_n "(cached) $ac_c" 1>&6
10570 ac_save_LIBS="$LIBS"
10571 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
10572 cat > conftest.$ac_ext <<EOF
10573 #line 10574 "configure"
10574 #include "confdefs.h"
10580 if { (eval echo configure:10581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10582 eval "ac_cv_lib_$ac_lib_var=yes"
10584 echo "configure: failed program was:" >&5
10585 cat conftest.$ac_ext >&5
10587 eval "ac_cv_lib_$ac_lib_var=no"
10590 LIBS="$ac_save_LIBS"
10593 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10594 echo "$ac_t""yes" 1>&6
10596 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
10598 echo "$ac_t""no" 1>&6
10603 elif test $krb5_impl = heimdal; then
10604 echo $ac_n "checking for main in -ldes""... $ac_c" 1>&6
10605 echo "configure:10606: checking for main in -ldes" >&5
10606 ac_lib_var=`echo des'_'main | sed 'y%./+-:%__p__%'`
10607 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10608 echo $ac_n "(cached) $ac_c" 1>&6
10610 ac_save_LIBS="$LIBS"
10612 cat > conftest.$ac_ext <<EOF
10613 #line 10614 "configure"
10614 #include "confdefs.h"
10620 if { (eval echo configure:10621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10622 eval "ac_cv_lib_$ac_lib_var=yes"
10624 echo "configure: failed program was:" >&5
10625 cat conftest.$ac_ext >&5
10627 eval "ac_cv_lib_$ac_lib_var=no"
10630 LIBS="$ac_save_LIBS"
10633 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10634 echo "$ac_t""yes" 1>&6
10637 echo "$ac_t""no" 1>&6
10642 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
10643 echo "configure:10644: checking for main in -lkrb5" >&5
10644 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
10645 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10646 echo $ac_n "(cached) $ac_c" 1>&6
10648 ac_save_LIBS="$LIBS"
10649 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
10650 cat > conftest.$ac_ext <<EOF
10651 #line 10652 "configure"
10652 #include "confdefs.h"
10658 if { (eval echo configure:10659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10660 eval "ac_cv_lib_$ac_lib_var=yes"
10662 echo "configure: failed program was:" >&5
10663 cat conftest.$ac_ext >&5
10665 eval "ac_cv_lib_$ac_lib_var=no"
10668 LIBS="$ac_save_LIBS"
10671 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10672 echo "$ac_t""yes" 1>&6
10674 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
10676 echo "$ac_t""no" 1>&6
10681 cat >> confdefs.h <<\EOF
10682 #define HAVE_HEIMDAL_KERBEROS 1
10688 echo "configure: warning: Unrecognized Kerberos5 Implementation" 1>&2
10691 if test $have_krb5 = yes ; then
10694 cat >> confdefs.h <<\EOF
10695 #define HAVE_KRB5 1
10699 if test $ol_enable_kpasswd != no ; then
10700 ol_link_kpasswd=yes;
10703 if test $ol_with_kerberos = k5only ; then
10704 ol_with_kerberos=found
10707 elif test $ol_with_kerberos != auto ; then
10708 { echo "configure: error: Required Kerberos 5 support not available" 1>&2; exit 1; }
10714 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
10715 $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
10717 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
10719 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10720 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10721 echo "configure:10722: checking for $ac_hdr" >&5
10722 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10723 echo $ac_n "(cached) $ac_c" 1>&6
10725 cat > conftest.$ac_ext <<EOF
10726 #line 10727 "configure"
10727 #include "confdefs.h"
10730 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10731 { (eval echo configure:10732: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10732 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10733 if test -z "$ac_err"; then
10735 eval "ac_cv_header_$ac_safe=yes"
10738 echo "configure: failed program was:" >&5
10739 cat conftest.$ac_ext >&5
10741 eval "ac_cv_header_$ac_safe=no"
10745 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10746 echo "$ac_t""yes" 1>&6
10747 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10748 cat >> confdefs.h <<EOF
10749 #define $ac_tr_hdr 1
10753 echo "$ac_t""no" 1>&6
10758 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
10759 if test $krb5_impl = mit; then
10760 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
10761 echo "configure:10762: checking for main in -lkrb4" >&5
10762 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
10763 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10764 echo $ac_n "(cached) $ac_c" 1>&6
10766 ac_save_LIBS="$LIBS"
10767 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
10768 cat > conftest.$ac_ext <<EOF
10769 #line 10770 "configure"
10770 #include "confdefs.h"
10776 if { (eval echo configure:10777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10778 eval "ac_cv_lib_$ac_lib_var=yes"
10780 echo "configure: failed program was:" >&5
10781 cat conftest.$ac_ext >&5
10783 eval "ac_cv_lib_$ac_lib_var=no"
10786 LIBS="$ac_save_LIBS"
10789 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10790 echo "$ac_t""yes" 1>&6
10792 KRB4_LIBS="-lkrb4 -ldes425"
10794 echo "$ac_t""no" 1>&6
10799 elif test $krb5_impl = heimdal; then
10800 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
10801 echo "configure:10802: checking for main in -lkrb4" >&5
10802 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
10803 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10804 echo $ac_n "(cached) $ac_c" 1>&6
10806 ac_save_LIBS="$LIBS"
10807 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
10808 cat > conftest.$ac_ext <<EOF
10809 #line 10810 "configure"
10810 #include "confdefs.h"
10816 if { (eval echo configure:10817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10818 eval "ac_cv_lib_$ac_lib_var=yes"
10820 echo "configure: failed program was:" >&5
10821 cat conftest.$ac_ext >&5
10823 eval "ac_cv_lib_$ac_lib_var=no"
10826 LIBS="$ac_save_LIBS"
10829 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10830 echo "$ac_t""yes" 1>&6
10834 echo "$ac_t""no" 1>&6
10841 echo "configure: warning: Unrecongized Kerberos V Implementation" 1>&2
10844 if test $have_k425 = yes ; then
10845 ol_with_kerberos=found
10848 cat >> confdefs.h <<\EOF
10849 #define HAVE_KRB425 1
10852 cat >> confdefs.h <<\EOF
10853 #define HAVE_KRB4 1
10857 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
10858 echo "configure:10859: checking for des_debug in Kerberos libraries" >&5
10859 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
10860 echo $ac_n "(cached) $ac_c" 1>&6
10864 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
10865 cat > conftest.$ac_ext <<EOF
10866 #line 10867 "configure"
10867 #include "confdefs.h"
10869 #include <kerberosIV/krb.h>
10870 #include <kerberosIV/des.h>
10871 extern int des_debug;
10879 if { (eval echo configure:10880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10881 ol_cv_var_des_debug=yes
10883 echo "configure: failed program was:" >&5
10884 cat conftest.$ac_ext >&5
10886 ol_cv_var_des_debug=no
10893 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
10895 if test $ol_cv_var_des_debug = yes ; then
10896 cat >> confdefs.h <<\EOF
10897 #define HAVE_DES_DEBUG 1
10907 if test $ol_link_krb5 = yes ; then
10908 ol_with_kerberos=found
10911 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
10912 -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
10914 for ac_hdr in krb.h des.h krb-archaeology.h
10916 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10917 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10918 echo "configure:10919: checking for $ac_hdr" >&5
10919 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10920 echo $ac_n "(cached) $ac_c" 1>&6
10922 cat > conftest.$ac_ext <<EOF
10923 #line 10924 "configure"
10924 #include "confdefs.h"
10927 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10928 { (eval echo configure:10929: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10929 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10930 if test -z "$ac_err"; then
10932 eval "ac_cv_header_$ac_safe=yes"
10935 echo "configure: failed program was:" >&5
10936 cat conftest.$ac_ext >&5
10938 eval "ac_cv_header_$ac_safe=no"
10942 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10943 echo "$ac_t""yes" 1>&6
10944 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10945 cat >> confdefs.h <<EOF
10946 #define $ac_tr_hdr 1
10950 echo "$ac_t""no" 1>&6
10955 if test $ac_cv_header_krb_h = yes ; then
10956 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
10957 echo "configure:10958: checking for main in -lkrb" >&5
10958 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
10959 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10960 echo $ac_n "(cached) $ac_c" 1>&6
10962 ac_save_LIBS="$LIBS"
10963 LIBS="-lkrb -ldes $LIBS"
10964 cat > conftest.$ac_ext <<EOF
10965 #line 10966 "configure"
10966 #include "confdefs.h"
10972 if { (eval echo configure:10973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10974 eval "ac_cv_lib_$ac_lib_var=yes"
10976 echo "configure: failed program was:" >&5
10977 cat conftest.$ac_ext >&5
10979 eval "ac_cv_lib_$ac_lib_var=no"
10982 LIBS="$ac_save_LIBS"
10985 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10986 echo "$ac_t""yes" 1>&6
10989 echo "$ac_t""no" 1>&6
10994 if test $have_k4 = yes ; then
10995 ol_with_kerberos=found
10998 cat >> confdefs.h <<\EOF
10999 #define HAVE_KRB4 1
11003 KRB4_LIBS="-lkrb -ldes"
11005 if test $ac_cv_header_krb_archaeology_h = yes ; then
11006 cat >> confdefs.h <<\EOF
11007 #define HAVE_KTH_KERBEROS 1
11015 if test $ol_link_krb4 = yes -a $ol_enable_kpasswd != no ; then
11016 ol_link_kpasswd=yes
11019 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
11022 elif test $ol_enable_kbind = yes ; then
11023 { echo "configure: error: Kerberos IV detection failed" 1>&2; exit 1; }
11026 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
11027 cat >> confdefs.h <<\EOF
11028 #define HAVE_KERBEROS 1
11032 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
11033 { echo "configure: error: Kerberos detection failed" 1>&2; exit 1; }
11037 if test $ol_with_tls != no ; then
11038 for ac_hdr in openssl/ssl.h ssl.h
11040 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11041 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11042 echo "configure:11043: checking for $ac_hdr" >&5
11043 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11044 echo $ac_n "(cached) $ac_c" 1>&6
11046 cat > conftest.$ac_ext <<EOF
11047 #line 11048 "configure"
11048 #include "confdefs.h"
11051 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11052 { (eval echo configure:11053: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11053 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11054 if test -z "$ac_err"; then
11056 eval "ac_cv_header_$ac_safe=yes"
11059 echo "configure: failed program was:" >&5
11060 cat conftest.$ac_ext >&5
11062 eval "ac_cv_header_$ac_safe=no"
11066 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11067 echo "$ac_t""yes" 1>&6
11068 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11069 cat >> confdefs.h <<EOF
11070 #define $ac_tr_hdr 1
11074 echo "$ac_t""no" 1>&6
11079 if test $ac_cv_header_openssl_ssl_h = yes \
11080 -o $ac_cv_header_ssl_h = yes ; then
11081 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
11082 echo "configure:11083: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
11083 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
11084 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11085 echo $ac_n "(cached) $ac_c" 1>&6
11087 ac_save_LIBS="$LIBS"
11088 LIBS="-lssl -lcrypto $LIBS"
11089 cat > conftest.$ac_ext <<EOF
11090 #line 11091 "configure"
11091 #include "confdefs.h"
11092 /* Override any gcc2 internal prototype to avoid an error. */
11093 /* We use char because int might match the return type of a gcc2
11094 builtin and then its argument prototype would still apply. */
11095 char SSLeay_add_ssl_algorithms();
11098 SSLeay_add_ssl_algorithms()
11101 if { (eval echo configure:11102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11103 eval "ac_cv_lib_$ac_lib_var=yes"
11105 echo "configure: failed program was:" >&5
11106 cat conftest.$ac_ext >&5
11108 eval "ac_cv_lib_$ac_lib_var=no"
11111 LIBS="$ac_save_LIBS"
11114 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11115 echo "$ac_t""yes" 1>&6
11119 echo "$ac_t""no" 1>&6
11124 if test $have_ssleay = no ; then
11125 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
11126 echo "configure:11127: checking for SSL_library_init in -lssl" >&5
11127 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
11128 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11129 echo $ac_n "(cached) $ac_c" 1>&6
11131 ac_save_LIBS="$LIBS"
11132 LIBS="-lssl -lcrypto $LIBS"
11133 cat > conftest.$ac_ext <<EOF
11134 #line 11135 "configure"
11135 #include "confdefs.h"
11136 /* Override any gcc2 internal prototype to avoid an error. */
11137 /* We use char because int might match the return type of a gcc2
11138 builtin and then its argument prototype would still apply. */
11139 char SSL_library_init();
11145 if { (eval echo configure:11146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11147 eval "ac_cv_lib_$ac_lib_var=yes"
11149 echo "configure: failed program was:" >&5
11150 cat conftest.$ac_ext >&5
11152 eval "ac_cv_lib_$ac_lib_var=no"
11155 LIBS="$ac_save_LIBS"
11158 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11159 echo "$ac_t""yes" 1>&6
11163 echo "$ac_t""no" 1>&6
11169 if test $have_ssleay = no ; then
11170 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
11171 echo "configure:11172: checking for ssl3_accept in -lssl" >&5
11172 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
11173 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11174 echo $ac_n "(cached) $ac_c" 1>&6
11176 ac_save_LIBS="$LIBS"
11177 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
11178 cat > conftest.$ac_ext <<EOF
11179 #line 11180 "configure"
11180 #include "confdefs.h"
11181 /* Override any gcc2 internal prototype to avoid an error. */
11182 /* We use char because int might match the return type of a gcc2
11183 builtin and then its argument prototype would still apply. */
11184 char ssl3_accept();
11190 if { (eval echo configure:11191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11192 eval "ac_cv_lib_$ac_lib_var=yes"
11194 echo "configure: failed program was:" >&5
11195 cat conftest.$ac_ext >&5
11197 eval "ac_cv_lib_$ac_lib_var=no"
11200 LIBS="$ac_save_LIBS"
11203 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11204 echo "$ac_t""yes" 1>&6
11208 echo "$ac_t""no" 1>&6
11214 if test $have_ssleay = yes ; then
11218 cat >> confdefs.h <<\EOF
11219 #define HAVE_SSLEAY 1
11223 if test $need_rsaref = yes; then
11224 cat >> confdefs.h <<\EOF
11225 #define HAVE_RSAREF 1
11229 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
11231 TLS_LIBS="-lssl -lcrypto"
11237 echo "configure: warning: TLS data protection not supported!" 1>&2
11241 if test $ol_link_tls = yes ; then
11242 cat >> confdefs.h <<\EOF
11248 elif test $ol_with_tls = auto ; then
11249 echo "configure: warning: Could not locate TLS/SSL package" 1>&2
11250 echo "configure: warning: TLS data protection not supported!" 1>&2
11252 elif test $ol_with_tls != no ; then
11253 { echo "configure: error: Could not locate TLS/SSL package" 1>&2; exit 1; }
11256 if test $ol_enable_lmpasswd != no; then
11257 if test $ol_link_tls != yes ; then
11258 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
11261 cat >> confdefs.h <<\EOF
11262 #define SLAPD_LMHASH 1
11269 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11270 -o $ol_with_threads = nt ; then
11273 echo $ac_n "checking for _beginthread""... $ac_c" 1>&6
11274 echo "configure:11275: checking for _beginthread" >&5
11275 if eval "test \"\${ac_cv_func__beginthread+set}\" = set"; then
11276 echo $ac_n "(cached) $ac_c" 1>&6
11278 cat > conftest.$ac_ext <<EOF
11279 #line 11280 "configure"
11280 #include "confdefs.h"
11281 /* System header to define __stub macros and hopefully few prototypes,
11282 which can conflict with char _beginthread(); below. */
11283 #include <assert.h>
11284 /* Override any gcc2 internal prototype to avoid an error. */
11285 /* We use char because int might match the return type of a gcc2
11286 builtin and then its argument prototype would still apply. */
11287 char _beginthread();
11292 /* The GNU C library defines this for functions which it implements
11293 to always fail with ENOSYS. Some functions are actually named
11294 something starting with __ and the normal name is an alias. */
11295 #if defined (__stub__beginthread) || defined (__stub____beginthread)
11303 if { (eval echo configure:11304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11305 eval "ac_cv_func__beginthread=yes"
11307 echo "configure: failed program was:" >&5
11308 cat conftest.$ac_ext >&5
11310 eval "ac_cv_func__beginthread=no"
11315 if eval "test \"`echo '$ac_cv_func_'_beginthread`\" = yes"; then
11316 echo "$ac_t""yes" 1>&6
11319 echo "$ac_t""no" 1>&6
11323 if test $ac_cv_func__beginthread = yes ; then
11324 cat >> confdefs.h <<\EOF
11325 #define HAVE_NT_THREADS 1
11328 ol_cv_nt_threads=yes
11332 if test "$ol_cv_nt_threads" = yes ; then
11334 ol_with_threads=found
11335 ol_with_yielding_select=yes
11337 cat >> confdefs.h <<\EOF
11338 #define HAVE_NT_SERVICE_MANAGER 1
11341 cat >> confdefs.h <<\EOF
11342 #define HAVE_NT_EVENT_LOG 1
11347 if test $ol_with_threads = nt ; then
11348 { echo "configure: error: could not locate NT Threads" 1>&2; exit 1; }
11352 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11353 -o $ol_with_threads = posix ; then
11355 for ac_hdr in pthread.h
11357 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11358 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11359 echo "configure:11360: checking for $ac_hdr" >&5
11360 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11361 echo $ac_n "(cached) $ac_c" 1>&6
11363 cat > conftest.$ac_ext <<EOF
11364 #line 11365 "configure"
11365 #include "confdefs.h"
11368 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11369 { (eval echo configure:11370: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11370 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11371 if test -z "$ac_err"; then
11373 eval "ac_cv_header_$ac_safe=yes"
11376 echo "configure: failed program was:" >&5
11377 cat conftest.$ac_ext >&5
11379 eval "ac_cv_header_$ac_safe=no"
11383 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11384 echo "$ac_t""yes" 1>&6
11385 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11386 cat >> confdefs.h <<EOF
11387 #define $ac_tr_hdr 1
11391 echo "$ac_t""no" 1>&6
11396 if test $ac_cv_header_pthread_h = yes ; then
11397 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
11398 echo "configure:11399: checking POSIX thread version" >&5
11399 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
11400 echo $ac_n "(cached) $ac_c" 1>&6
11403 cat > conftest.$ac_ext <<EOF
11404 #line 11405 "configure"
11405 #include "confdefs.h"
11407 # include <pthread.h>
11411 int i = PTHREAD_CREATE_JOINABLE;
11415 if { (eval echo configure:11416: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11418 cat > conftest.$ac_ext <<EOF
11419 #line 11420 "configure"
11420 #include "confdefs.h"
11421 #include <pthread.h>
11423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11424 egrep "pthread_detach" >/dev/null 2>&1; then
11426 ol_cv_pthread_version=10
11429 ol_cv_pthread_version=8
11434 echo "configure: failed program was:" >&5
11435 cat conftest.$ac_ext >&5
11438 cat > conftest.$ac_ext <<EOF
11439 #line 11440 "configure"
11440 #include "confdefs.h"
11442 # include <pthread.h>
11443 # ifdef PTHREAD_CREATE_UNDETACHED
11448 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11449 egrep "draft7" >/dev/null 2>&1; then
11451 ol_cv_pthread_version=7
11455 cat > conftest.$ac_ext <<EOF
11456 #line 11457 "configure"
11457 #include "confdefs.h"
11458 #include <pthread.h>
11460 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11461 egrep "pthread_attr_init" >/dev/null 2>&1; then
11463 ol_cv_pthread_version=6
11467 cat > conftest.$ac_ext <<EOF
11468 #line 11469 "configure"
11469 #include "confdefs.h"
11471 # include <pthread.h>
11472 #ifdef PTHREAD_MUTEX_INITIALIZER
11477 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11478 egrep "draft5" >/dev/null 2>&1; then
11480 ol_cv_pthread_version=5
11483 ol_cv_pthread_version=4
11498 echo "$ac_t""$ol_cv_pthread_version" 1>&6
11501 if test $ol_cv_pthread_version != 0 ; then
11502 cat >> confdefs.h <<EOF
11503 #define HAVE_PTHREADS $ol_cv_pthread_version
11507 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
11510 # consider threads found
11511 ol_with_threads=found
11514 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
11515 echo "configure:11516: checking for LinuxThreads pthread.h" >&5
11516 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
11517 echo $ac_n "(cached) $ac_c" 1>&6
11519 cat > conftest.$ac_ext <<EOF
11520 #line 11521 "configure"
11521 #include "confdefs.h"
11522 #include <pthread.h>
11524 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11525 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
11527 ol_cv_header_linux_threads=yes
11530 ol_cv_header_linux_threads=no
11537 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
11538 if test $ol_cv_header_linux_threads = yes; then
11539 cat >> confdefs.h <<\EOF
11540 #define HAVE_LINUX_THREADS 1
11546 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
11547 echo "configure:11548: checking for GNU Pth pthread.h" >&5
11548 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
11549 echo $ac_n "(cached) $ac_c" 1>&6
11551 cat > conftest.$ac_ext <<EOF
11552 #line 11553 "configure"
11553 #include "confdefs.h"
11554 #include <pthread.h>
11555 #ifdef _POSIX_THREAD_IS_GNU_PTH
11560 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11561 egrep "__gnu_pth__" >/dev/null 2>&1; then
11563 ol_cv_header_gnu_pth_pthread_h=yes
11566 ol_cv_header_gnu_pth_pthread_h=no
11573 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
11576 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
11577 for ac_hdr in sched.h
11579 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11580 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11581 echo "configure:11582: checking for $ac_hdr" >&5
11582 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11583 echo $ac_n "(cached) $ac_c" 1>&6
11585 cat > conftest.$ac_ext <<EOF
11586 #line 11587 "configure"
11587 #include "confdefs.h"
11590 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11591 { (eval echo configure:11592: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11592 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11593 if test -z "$ac_err"; then
11595 eval "ac_cv_header_$ac_safe=yes"
11598 echo "configure: failed program was:" >&5
11599 cat conftest.$ac_ext >&5
11601 eval "ac_cv_header_$ac_safe=no"
11605 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11606 echo "$ac_t""yes" 1>&6
11607 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11608 cat >> confdefs.h <<EOF
11609 #define $ac_tr_hdr 1
11613 echo "$ac_t""no" 1>&6
11620 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
11621 echo "configure:11622: checking for pthread_create in default libraries" >&5
11622 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
11623 echo $ac_n "(cached) $ac_c" 1>&6
11626 if test "$cross_compiling" = yes; then
11627 cat > conftest.$ac_ext <<EOF
11628 #line 11629 "configure"
11629 #include "confdefs.h"
11630 /* pthread test headers */
11631 #include <pthread.h>
11632 #if HAVE_PTHREADS < 7
11636 #define NULL (void*)0
11639 static void *task(p)
11642 return (void *) (p == NULL);
11647 /* pthread test function */
11648 #ifndef PTHREAD_CREATE_DETACHED
11649 #define PTHREAD_CREATE_DETACHED 1
11653 int detach = PTHREAD_CREATE_DETACHED;
11655 #if HAVE_PTHREADS > 4
11656 /* Final pthreads */
11657 pthread_attr_t attr;
11659 status = pthread_attr_init(&attr);
11660 if( status ) return status;
11662 #if HAVE_PTHREADS < 7
11663 status = pthread_attr_setdetachstate(&attr, &detach);
11664 if( status < 0 ) status = errno;
11666 status = pthread_attr_setdetachstate(&attr, detach);
11668 if( status ) return status;
11669 status = pthread_create( &t, &attr, task, NULL );
11670 #if HAVE_PTHREADS < 7
11671 if( status < 0 ) status = errno;
11673 if( status ) return status;
11675 /* Draft 4 pthreads */
11676 status = pthread_create( &t, pthread_attr_default, task, NULL );
11677 if( status ) return errno;
11679 /* give thread a chance to complete */
11680 /* it should remain joinable and hence detachable */
11683 status = pthread_detach( &t );
11684 if( status ) return errno;
11687 #ifdef HAVE_LINUX_THREADS
11688 pthread_kill_other_threads_np();
11695 if { (eval echo configure:11696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11697 ol_cv_pthread_create=yes
11699 echo "configure: failed program was:" >&5
11700 cat conftest.$ac_ext >&5
11702 ol_cv_pthread_create=no
11706 cat > conftest.$ac_ext <<EOF
11707 #line 11708 "configure"
11708 #include "confdefs.h"
11709 /* pthread test headers */
11710 #include <pthread.h>
11711 #if HAVE_PTHREADS < 7
11715 #define NULL (void*)0
11718 static void *task(p)
11721 return (void *) (p == NULL);
11725 int main(argc, argv)
11730 /* pthread test function */
11731 #ifndef PTHREAD_CREATE_DETACHED
11732 #define PTHREAD_CREATE_DETACHED 1
11736 int detach = PTHREAD_CREATE_DETACHED;
11738 #if HAVE_PTHREADS > 4
11739 /* Final pthreads */
11740 pthread_attr_t attr;
11742 status = pthread_attr_init(&attr);
11743 if( status ) return status;
11745 #if HAVE_PTHREADS < 7
11746 status = pthread_attr_setdetachstate(&attr, &detach);
11747 if( status < 0 ) status = errno;
11749 status = pthread_attr_setdetachstate(&attr, detach);
11751 if( status ) return status;
11752 status = pthread_create( &t, &attr, task, NULL );
11753 #if HAVE_PTHREADS < 7
11754 if( status < 0 ) status = errno;
11756 if( status ) return status;
11758 /* Draft 4 pthreads */
11759 status = pthread_create( &t, pthread_attr_default, task, NULL );
11760 if( status ) return errno;
11762 /* give thread a chance to complete */
11763 /* it should remain joinable and hence detachable */
11766 status = pthread_detach( &t );
11767 if( status ) return errno;
11770 #ifdef HAVE_LINUX_THREADS
11771 pthread_kill_other_threads_np();
11779 if { (eval echo configure:11780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11781 ol_cv_pthread_create=yes
11783 echo "configure: failed program was:" >&5
11784 cat conftest.$ac_ext >&5
11786 ol_cv_pthread_create=no
11793 echo "$ac_t""$ol_cv_pthread_create" 1>&6
11795 if test $ol_cv_pthread_create != no ; then
11796 ol_link_threads=posix
11797 ol_link_pthreads=""
11800 # Pthread try link: -kthread (ol_cv_pthread_kthread)
11801 if test "$ol_link_threads" = no ; then
11803 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
11804 echo "configure:11805: checking for pthread link with -kthread" >&5
11805 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
11806 echo $ac_n "(cached) $ac_c" 1>&6
11811 LIBS="-kthread $LIBS"
11813 if test "$cross_compiling" = yes; then
11814 cat > conftest.$ac_ext <<EOF
11815 #line 11816 "configure"
11816 #include "confdefs.h"
11817 /* pthread test headers */
11818 #include <pthread.h>
11819 #if HAVE_PTHREADS < 7
11823 #define NULL (void*)0
11826 static void *task(p)
11829 return (void *) (p == NULL);
11834 /* pthread test function */
11835 #ifndef PTHREAD_CREATE_DETACHED
11836 #define PTHREAD_CREATE_DETACHED 1
11840 int detach = PTHREAD_CREATE_DETACHED;
11842 #if HAVE_PTHREADS > 4
11843 /* Final pthreads */
11844 pthread_attr_t attr;
11846 status = pthread_attr_init(&attr);
11847 if( status ) return status;
11849 #if HAVE_PTHREADS < 7
11850 status = pthread_attr_setdetachstate(&attr, &detach);
11851 if( status < 0 ) status = errno;
11853 status = pthread_attr_setdetachstate(&attr, detach);
11855 if( status ) return status;
11856 status = pthread_create( &t, &attr, task, NULL );
11857 #if HAVE_PTHREADS < 7
11858 if( status < 0 ) status = errno;
11860 if( status ) return status;
11862 /* Draft 4 pthreads */
11863 status = pthread_create( &t, pthread_attr_default, task, NULL );
11864 if( status ) return errno;
11866 /* give thread a chance to complete */
11867 /* it should remain joinable and hence detachable */
11870 status = pthread_detach( &t );
11871 if( status ) return errno;
11874 #ifdef HAVE_LINUX_THREADS
11875 pthread_kill_other_threads_np();
11882 if { (eval echo configure:11883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11884 ol_cv_pthread_kthread=yes
11886 echo "configure: failed program was:" >&5
11887 cat conftest.$ac_ext >&5
11889 ol_cv_pthread_kthread=no
11893 cat > conftest.$ac_ext <<EOF
11894 #line 11895 "configure"
11895 #include "confdefs.h"
11896 /* pthread test headers */
11897 #include <pthread.h>
11898 #if HAVE_PTHREADS < 7
11902 #define NULL (void*)0
11905 static void *task(p)
11908 return (void *) (p == NULL);
11912 int main(argc, argv)
11917 /* pthread test function */
11918 #ifndef PTHREAD_CREATE_DETACHED
11919 #define PTHREAD_CREATE_DETACHED 1
11923 int detach = PTHREAD_CREATE_DETACHED;
11925 #if HAVE_PTHREADS > 4
11926 /* Final pthreads */
11927 pthread_attr_t attr;
11929 status = pthread_attr_init(&attr);
11930 if( status ) return status;
11932 #if HAVE_PTHREADS < 7
11933 status = pthread_attr_setdetachstate(&attr, &detach);
11934 if( status < 0 ) status = errno;
11936 status = pthread_attr_setdetachstate(&attr, detach);
11938 if( status ) return status;
11939 status = pthread_create( &t, &attr, task, NULL );
11940 #if HAVE_PTHREADS < 7
11941 if( status < 0 ) status = errno;
11943 if( status ) return status;
11945 /* Draft 4 pthreads */
11946 status = pthread_create( &t, pthread_attr_default, task, NULL );
11947 if( status ) return errno;
11949 /* give thread a chance to complete */
11950 /* it should remain joinable and hence detachable */
11953 status = pthread_detach( &t );
11954 if( status ) return errno;
11957 #ifdef HAVE_LINUX_THREADS
11958 pthread_kill_other_threads_np();
11966 if { (eval echo configure:11967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11968 ol_cv_pthread_kthread=yes
11970 echo "configure: failed program was:" >&5
11971 cat conftest.$ac_ext >&5
11973 ol_cv_pthread_kthread=no
11984 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
11986 if test $ol_cv_pthread_kthread = yes ; then
11987 ol_link_pthreads="-kthread"
11988 ol_link_threads=posix
11992 # Pthread try link: -pthread (ol_cv_pthread_pthread)
11993 if test "$ol_link_threads" = no ; then
11995 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
11996 echo "configure:11997: checking for pthread link with -pthread" >&5
11997 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
11998 echo $ac_n "(cached) $ac_c" 1>&6
12003 LIBS="-pthread $LIBS"
12005 if test "$cross_compiling" = yes; then
12006 cat > conftest.$ac_ext <<EOF
12007 #line 12008 "configure"
12008 #include "confdefs.h"
12009 /* pthread test headers */
12010 #include <pthread.h>
12011 #if HAVE_PTHREADS < 7
12015 #define NULL (void*)0
12018 static void *task(p)
12021 return (void *) (p == NULL);
12026 /* pthread test function */
12027 #ifndef PTHREAD_CREATE_DETACHED
12028 #define PTHREAD_CREATE_DETACHED 1
12032 int detach = PTHREAD_CREATE_DETACHED;
12034 #if HAVE_PTHREADS > 4
12035 /* Final pthreads */
12036 pthread_attr_t attr;
12038 status = pthread_attr_init(&attr);
12039 if( status ) return status;
12041 #if HAVE_PTHREADS < 7
12042 status = pthread_attr_setdetachstate(&attr, &detach);
12043 if( status < 0 ) status = errno;
12045 status = pthread_attr_setdetachstate(&attr, detach);
12047 if( status ) return status;
12048 status = pthread_create( &t, &attr, task, NULL );
12049 #if HAVE_PTHREADS < 7
12050 if( status < 0 ) status = errno;
12052 if( status ) return status;
12054 /* Draft 4 pthreads */
12055 status = pthread_create( &t, pthread_attr_default, task, NULL );
12056 if( status ) return errno;
12058 /* give thread a chance to complete */
12059 /* it should remain joinable and hence detachable */
12062 status = pthread_detach( &t );
12063 if( status ) return errno;
12066 #ifdef HAVE_LINUX_THREADS
12067 pthread_kill_other_threads_np();
12074 if { (eval echo configure:12075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12076 ol_cv_pthread_pthread=yes
12078 echo "configure: failed program was:" >&5
12079 cat conftest.$ac_ext >&5
12081 ol_cv_pthread_pthread=no
12085 cat > conftest.$ac_ext <<EOF
12086 #line 12087 "configure"
12087 #include "confdefs.h"
12088 /* pthread test headers */
12089 #include <pthread.h>
12090 #if HAVE_PTHREADS < 7
12094 #define NULL (void*)0
12097 static void *task(p)
12100 return (void *) (p == NULL);
12104 int main(argc, argv)
12109 /* pthread test function */
12110 #ifndef PTHREAD_CREATE_DETACHED
12111 #define PTHREAD_CREATE_DETACHED 1
12115 int detach = PTHREAD_CREATE_DETACHED;
12117 #if HAVE_PTHREADS > 4
12118 /* Final pthreads */
12119 pthread_attr_t attr;
12121 status = pthread_attr_init(&attr);
12122 if( status ) return status;
12124 #if HAVE_PTHREADS < 7
12125 status = pthread_attr_setdetachstate(&attr, &detach);
12126 if( status < 0 ) status = errno;
12128 status = pthread_attr_setdetachstate(&attr, detach);
12130 if( status ) return status;
12131 status = pthread_create( &t, &attr, task, NULL );
12132 #if HAVE_PTHREADS < 7
12133 if( status < 0 ) status = errno;
12135 if( status ) return status;
12137 /* Draft 4 pthreads */
12138 status = pthread_create( &t, pthread_attr_default, task, NULL );
12139 if( status ) return errno;
12141 /* give thread a chance to complete */
12142 /* it should remain joinable and hence detachable */
12145 status = pthread_detach( &t );
12146 if( status ) return errno;
12149 #ifdef HAVE_LINUX_THREADS
12150 pthread_kill_other_threads_np();
12158 if { (eval echo configure:12159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12160 ol_cv_pthread_pthread=yes
12162 echo "configure: failed program was:" >&5
12163 cat conftest.$ac_ext >&5
12165 ol_cv_pthread_pthread=no
12176 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
12178 if test $ol_cv_pthread_pthread = yes ; then
12179 ol_link_pthreads="-pthread"
12180 ol_link_threads=posix
12184 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
12185 if test "$ol_link_threads" = no ; then
12187 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
12188 echo "configure:12189: checking for pthread link with -pthreads" >&5
12189 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
12190 echo $ac_n "(cached) $ac_c" 1>&6
12195 LIBS="-pthreads $LIBS"
12197 if test "$cross_compiling" = yes; then
12198 cat > conftest.$ac_ext <<EOF
12199 #line 12200 "configure"
12200 #include "confdefs.h"
12201 /* pthread test headers */
12202 #include <pthread.h>
12203 #if HAVE_PTHREADS < 7
12207 #define NULL (void*)0
12210 static void *task(p)
12213 return (void *) (p == NULL);
12218 /* pthread test function */
12219 #ifndef PTHREAD_CREATE_DETACHED
12220 #define PTHREAD_CREATE_DETACHED 1
12224 int detach = PTHREAD_CREATE_DETACHED;
12226 #if HAVE_PTHREADS > 4
12227 /* Final pthreads */
12228 pthread_attr_t attr;
12230 status = pthread_attr_init(&attr);
12231 if( status ) return status;
12233 #if HAVE_PTHREADS < 7
12234 status = pthread_attr_setdetachstate(&attr, &detach);
12235 if( status < 0 ) status = errno;
12237 status = pthread_attr_setdetachstate(&attr, detach);
12239 if( status ) return status;
12240 status = pthread_create( &t, &attr, task, NULL );
12241 #if HAVE_PTHREADS < 7
12242 if( status < 0 ) status = errno;
12244 if( status ) return status;
12246 /* Draft 4 pthreads */
12247 status = pthread_create( &t, pthread_attr_default, task, NULL );
12248 if( status ) return errno;
12250 /* give thread a chance to complete */
12251 /* it should remain joinable and hence detachable */
12254 status = pthread_detach( &t );
12255 if( status ) return errno;
12258 #ifdef HAVE_LINUX_THREADS
12259 pthread_kill_other_threads_np();
12266 if { (eval echo configure:12267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12268 ol_cv_pthread_pthreads=yes
12270 echo "configure: failed program was:" >&5
12271 cat conftest.$ac_ext >&5
12273 ol_cv_pthread_pthreads=no
12277 cat > conftest.$ac_ext <<EOF
12278 #line 12279 "configure"
12279 #include "confdefs.h"
12280 /* pthread test headers */
12281 #include <pthread.h>
12282 #if HAVE_PTHREADS < 7
12286 #define NULL (void*)0
12289 static void *task(p)
12292 return (void *) (p == NULL);
12296 int main(argc, argv)
12301 /* pthread test function */
12302 #ifndef PTHREAD_CREATE_DETACHED
12303 #define PTHREAD_CREATE_DETACHED 1
12307 int detach = PTHREAD_CREATE_DETACHED;
12309 #if HAVE_PTHREADS > 4
12310 /* Final pthreads */
12311 pthread_attr_t attr;
12313 status = pthread_attr_init(&attr);
12314 if( status ) return status;
12316 #if HAVE_PTHREADS < 7
12317 status = pthread_attr_setdetachstate(&attr, &detach);
12318 if( status < 0 ) status = errno;
12320 status = pthread_attr_setdetachstate(&attr, detach);
12322 if( status ) return status;
12323 status = pthread_create( &t, &attr, task, NULL );
12324 #if HAVE_PTHREADS < 7
12325 if( status < 0 ) status = errno;
12327 if( status ) return status;
12329 /* Draft 4 pthreads */
12330 status = pthread_create( &t, pthread_attr_default, task, NULL );
12331 if( status ) return errno;
12333 /* give thread a chance to complete */
12334 /* it should remain joinable and hence detachable */
12337 status = pthread_detach( &t );
12338 if( status ) return errno;
12341 #ifdef HAVE_LINUX_THREADS
12342 pthread_kill_other_threads_np();
12350 if { (eval echo configure:12351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12352 ol_cv_pthread_pthreads=yes
12354 echo "configure: failed program was:" >&5
12355 cat conftest.$ac_ext >&5
12357 ol_cv_pthread_pthreads=no
12368 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
12370 if test $ol_cv_pthread_pthreads = yes ; then
12371 ol_link_pthreads="-pthreads"
12372 ol_link_threads=posix
12376 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
12377 if test "$ol_link_threads" = no ; then
12379 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
12380 echo "configure:12381: checking for pthread link with -mthreads" >&5
12381 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
12382 echo $ac_n "(cached) $ac_c" 1>&6
12387 LIBS="-mthreads $LIBS"
12389 if test "$cross_compiling" = yes; then
12390 cat > conftest.$ac_ext <<EOF
12391 #line 12392 "configure"
12392 #include "confdefs.h"
12393 /* pthread test headers */
12394 #include <pthread.h>
12395 #if HAVE_PTHREADS < 7
12399 #define NULL (void*)0
12402 static void *task(p)
12405 return (void *) (p == NULL);
12410 /* pthread test function */
12411 #ifndef PTHREAD_CREATE_DETACHED
12412 #define PTHREAD_CREATE_DETACHED 1
12416 int detach = PTHREAD_CREATE_DETACHED;
12418 #if HAVE_PTHREADS > 4
12419 /* Final pthreads */
12420 pthread_attr_t attr;
12422 status = pthread_attr_init(&attr);
12423 if( status ) return status;
12425 #if HAVE_PTHREADS < 7
12426 status = pthread_attr_setdetachstate(&attr, &detach);
12427 if( status < 0 ) status = errno;
12429 status = pthread_attr_setdetachstate(&attr, detach);
12431 if( status ) return status;
12432 status = pthread_create( &t, &attr, task, NULL );
12433 #if HAVE_PTHREADS < 7
12434 if( status < 0 ) status = errno;
12436 if( status ) return status;
12438 /* Draft 4 pthreads */
12439 status = pthread_create( &t, pthread_attr_default, task, NULL );
12440 if( status ) return errno;
12442 /* give thread a chance to complete */
12443 /* it should remain joinable and hence detachable */
12446 status = pthread_detach( &t );
12447 if( status ) return errno;
12450 #ifdef HAVE_LINUX_THREADS
12451 pthread_kill_other_threads_np();
12458 if { (eval echo configure:12459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12460 ol_cv_pthread_mthreads=yes
12462 echo "configure: failed program was:" >&5
12463 cat conftest.$ac_ext >&5
12465 ol_cv_pthread_mthreads=no
12469 cat > conftest.$ac_ext <<EOF
12470 #line 12471 "configure"
12471 #include "confdefs.h"
12472 /* pthread test headers */
12473 #include <pthread.h>
12474 #if HAVE_PTHREADS < 7
12478 #define NULL (void*)0
12481 static void *task(p)
12484 return (void *) (p == NULL);
12488 int main(argc, argv)
12493 /* pthread test function */
12494 #ifndef PTHREAD_CREATE_DETACHED
12495 #define PTHREAD_CREATE_DETACHED 1
12499 int detach = PTHREAD_CREATE_DETACHED;
12501 #if HAVE_PTHREADS > 4
12502 /* Final pthreads */
12503 pthread_attr_t attr;
12505 status = pthread_attr_init(&attr);
12506 if( status ) return status;
12508 #if HAVE_PTHREADS < 7
12509 status = pthread_attr_setdetachstate(&attr, &detach);
12510 if( status < 0 ) status = errno;
12512 status = pthread_attr_setdetachstate(&attr, detach);
12514 if( status ) return status;
12515 status = pthread_create( &t, &attr, task, NULL );
12516 #if HAVE_PTHREADS < 7
12517 if( status < 0 ) status = errno;
12519 if( status ) return status;
12521 /* Draft 4 pthreads */
12522 status = pthread_create( &t, pthread_attr_default, task, NULL );
12523 if( status ) return errno;
12525 /* give thread a chance to complete */
12526 /* it should remain joinable and hence detachable */
12529 status = pthread_detach( &t );
12530 if( status ) return errno;
12533 #ifdef HAVE_LINUX_THREADS
12534 pthread_kill_other_threads_np();
12542 if { (eval echo configure:12543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12544 ol_cv_pthread_mthreads=yes
12546 echo "configure: failed program was:" >&5
12547 cat conftest.$ac_ext >&5
12549 ol_cv_pthread_mthreads=no
12560 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
12562 if test $ol_cv_pthread_mthreads = yes ; then
12563 ol_link_pthreads="-mthreads"
12564 ol_link_threads=posix
12568 # Pthread try link: -thread (ol_cv_pthread_thread)
12569 if test "$ol_link_threads" = no ; then
12571 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
12572 echo "configure:12573: checking for pthread link with -thread" >&5
12573 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
12574 echo $ac_n "(cached) $ac_c" 1>&6
12579 LIBS="-thread $LIBS"
12581 if test "$cross_compiling" = yes; then
12582 cat > conftest.$ac_ext <<EOF
12583 #line 12584 "configure"
12584 #include "confdefs.h"
12585 /* pthread test headers */
12586 #include <pthread.h>
12587 #if HAVE_PTHREADS < 7
12591 #define NULL (void*)0
12594 static void *task(p)
12597 return (void *) (p == NULL);
12602 /* pthread test function */
12603 #ifndef PTHREAD_CREATE_DETACHED
12604 #define PTHREAD_CREATE_DETACHED 1
12608 int detach = PTHREAD_CREATE_DETACHED;
12610 #if HAVE_PTHREADS > 4
12611 /* Final pthreads */
12612 pthread_attr_t attr;
12614 status = pthread_attr_init(&attr);
12615 if( status ) return status;
12617 #if HAVE_PTHREADS < 7
12618 status = pthread_attr_setdetachstate(&attr, &detach);
12619 if( status < 0 ) status = errno;
12621 status = pthread_attr_setdetachstate(&attr, detach);
12623 if( status ) return status;
12624 status = pthread_create( &t, &attr, task, NULL );
12625 #if HAVE_PTHREADS < 7
12626 if( status < 0 ) status = errno;
12628 if( status ) return status;
12630 /* Draft 4 pthreads */
12631 status = pthread_create( &t, pthread_attr_default, task, NULL );
12632 if( status ) return errno;
12634 /* give thread a chance to complete */
12635 /* it should remain joinable and hence detachable */
12638 status = pthread_detach( &t );
12639 if( status ) return errno;
12642 #ifdef HAVE_LINUX_THREADS
12643 pthread_kill_other_threads_np();
12650 if { (eval echo configure:12651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12652 ol_cv_pthread_thread=yes
12654 echo "configure: failed program was:" >&5
12655 cat conftest.$ac_ext >&5
12657 ol_cv_pthread_thread=no
12661 cat > conftest.$ac_ext <<EOF
12662 #line 12663 "configure"
12663 #include "confdefs.h"
12664 /* pthread test headers */
12665 #include <pthread.h>
12666 #if HAVE_PTHREADS < 7
12670 #define NULL (void*)0
12673 static void *task(p)
12676 return (void *) (p == NULL);
12680 int main(argc, argv)
12685 /* pthread test function */
12686 #ifndef PTHREAD_CREATE_DETACHED
12687 #define PTHREAD_CREATE_DETACHED 1
12691 int detach = PTHREAD_CREATE_DETACHED;
12693 #if HAVE_PTHREADS > 4
12694 /* Final pthreads */
12695 pthread_attr_t attr;
12697 status = pthread_attr_init(&attr);
12698 if( status ) return status;
12700 #if HAVE_PTHREADS < 7
12701 status = pthread_attr_setdetachstate(&attr, &detach);
12702 if( status < 0 ) status = errno;
12704 status = pthread_attr_setdetachstate(&attr, detach);
12706 if( status ) return status;
12707 status = pthread_create( &t, &attr, task, NULL );
12708 #if HAVE_PTHREADS < 7
12709 if( status < 0 ) status = errno;
12711 if( status ) return status;
12713 /* Draft 4 pthreads */
12714 status = pthread_create( &t, pthread_attr_default, task, NULL );
12715 if( status ) return errno;
12717 /* give thread a chance to complete */
12718 /* it should remain joinable and hence detachable */
12721 status = pthread_detach( &t );
12722 if( status ) return errno;
12725 #ifdef HAVE_LINUX_THREADS
12726 pthread_kill_other_threads_np();
12734 if { (eval echo configure:12735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12736 ol_cv_pthread_thread=yes
12738 echo "configure: failed program was:" >&5
12739 cat conftest.$ac_ext >&5
12741 ol_cv_pthread_thread=no
12752 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
12754 if test $ol_cv_pthread_thread = yes ; then
12755 ol_link_pthreads="-thread"
12756 ol_link_threads=posix
12761 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
12762 if test "$ol_link_threads" = no ; then
12763 # try -lpthread -lmach -lexc -lc_r
12764 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
12765 echo "configure:12766: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
12766 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
12767 echo $ac_n "(cached) $ac_c" 1>&6
12772 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
12774 if test "$cross_compiling" = yes; then
12775 cat > conftest.$ac_ext <<EOF
12776 #line 12777 "configure"
12777 #include "confdefs.h"
12778 /* pthread test headers */
12779 #include <pthread.h>
12780 #if HAVE_PTHREADS < 7
12784 #define NULL (void*)0
12787 static void *task(p)
12790 return (void *) (p == NULL);
12795 /* pthread test function */
12796 #ifndef PTHREAD_CREATE_DETACHED
12797 #define PTHREAD_CREATE_DETACHED 1
12801 int detach = PTHREAD_CREATE_DETACHED;
12803 #if HAVE_PTHREADS > 4
12804 /* Final pthreads */
12805 pthread_attr_t attr;
12807 status = pthread_attr_init(&attr);
12808 if( status ) return status;
12810 #if HAVE_PTHREADS < 7
12811 status = pthread_attr_setdetachstate(&attr, &detach);
12812 if( status < 0 ) status = errno;
12814 status = pthread_attr_setdetachstate(&attr, detach);
12816 if( status ) return status;
12817 status = pthread_create( &t, &attr, task, NULL );
12818 #if HAVE_PTHREADS < 7
12819 if( status < 0 ) status = errno;
12821 if( status ) return status;
12823 /* Draft 4 pthreads */
12824 status = pthread_create( &t, pthread_attr_default, task, NULL );
12825 if( status ) return errno;
12827 /* give thread a chance to complete */
12828 /* it should remain joinable and hence detachable */
12831 status = pthread_detach( &t );
12832 if( status ) return errno;
12835 #ifdef HAVE_LINUX_THREADS
12836 pthread_kill_other_threads_np();
12843 if { (eval echo configure:12844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12845 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
12847 echo "configure: failed program was:" >&5
12848 cat conftest.$ac_ext >&5
12850 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
12854 cat > conftest.$ac_ext <<EOF
12855 #line 12856 "configure"
12856 #include "confdefs.h"
12857 /* pthread test headers */
12858 #include <pthread.h>
12859 #if HAVE_PTHREADS < 7
12863 #define NULL (void*)0
12866 static void *task(p)
12869 return (void *) (p == NULL);
12873 int main(argc, argv)
12878 /* pthread test function */
12879 #ifndef PTHREAD_CREATE_DETACHED
12880 #define PTHREAD_CREATE_DETACHED 1
12884 int detach = PTHREAD_CREATE_DETACHED;
12886 #if HAVE_PTHREADS > 4
12887 /* Final pthreads */
12888 pthread_attr_t attr;
12890 status = pthread_attr_init(&attr);
12891 if( status ) return status;
12893 #if HAVE_PTHREADS < 7
12894 status = pthread_attr_setdetachstate(&attr, &detach);
12895 if( status < 0 ) status = errno;
12897 status = pthread_attr_setdetachstate(&attr, detach);
12899 if( status ) return status;
12900 status = pthread_create( &t, &attr, task, NULL );
12901 #if HAVE_PTHREADS < 7
12902 if( status < 0 ) status = errno;
12904 if( status ) return status;
12906 /* Draft 4 pthreads */
12907 status = pthread_create( &t, pthread_attr_default, task, NULL );
12908 if( status ) return errno;
12910 /* give thread a chance to complete */
12911 /* it should remain joinable and hence detachable */
12914 status = pthread_detach( &t );
12915 if( status ) return errno;
12918 #ifdef HAVE_LINUX_THREADS
12919 pthread_kill_other_threads_np();
12927 if { (eval echo configure:12928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12929 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
12931 echo "configure: failed program was:" >&5
12932 cat conftest.$ac_ext >&5
12934 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
12945 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
12947 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
12948 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
12949 ol_link_threads=posix
12953 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
12954 if test "$ol_link_threads" = no ; then
12955 # try -lpthread -lmach -lexc
12956 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
12957 echo "configure:12958: checking for pthread link with -lpthread -lmach -lexc" >&5
12958 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
12959 echo $ac_n "(cached) $ac_c" 1>&6
12964 LIBS="-lpthread -lmach -lexc $LIBS"
12966 if test "$cross_compiling" = yes; then
12967 cat > conftest.$ac_ext <<EOF
12968 #line 12969 "configure"
12969 #include "confdefs.h"
12970 /* pthread test headers */
12971 #include <pthread.h>
12972 #if HAVE_PTHREADS < 7
12976 #define NULL (void*)0
12979 static void *task(p)
12982 return (void *) (p == NULL);
12987 /* pthread test function */
12988 #ifndef PTHREAD_CREATE_DETACHED
12989 #define PTHREAD_CREATE_DETACHED 1
12993 int detach = PTHREAD_CREATE_DETACHED;
12995 #if HAVE_PTHREADS > 4
12996 /* Final pthreads */
12997 pthread_attr_t attr;
12999 status = pthread_attr_init(&attr);
13000 if( status ) return status;
13002 #if HAVE_PTHREADS < 7
13003 status = pthread_attr_setdetachstate(&attr, &detach);
13004 if( status < 0 ) status = errno;
13006 status = pthread_attr_setdetachstate(&attr, detach);
13008 if( status ) return status;
13009 status = pthread_create( &t, &attr, task, NULL );
13010 #if HAVE_PTHREADS < 7
13011 if( status < 0 ) status = errno;
13013 if( status ) return status;
13015 /* Draft 4 pthreads */
13016 status = pthread_create( &t, pthread_attr_default, task, NULL );
13017 if( status ) return errno;
13019 /* give thread a chance to complete */
13020 /* it should remain joinable and hence detachable */
13023 status = pthread_detach( &t );
13024 if( status ) return errno;
13027 #ifdef HAVE_LINUX_THREADS
13028 pthread_kill_other_threads_np();
13035 if { (eval echo configure:13036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13037 ol_cv_pthread_lpthread_lmach_lexc=yes
13039 echo "configure: failed program was:" >&5
13040 cat conftest.$ac_ext >&5
13042 ol_cv_pthread_lpthread_lmach_lexc=no
13046 cat > conftest.$ac_ext <<EOF
13047 #line 13048 "configure"
13048 #include "confdefs.h"
13049 /* pthread test headers */
13050 #include <pthread.h>
13051 #if HAVE_PTHREADS < 7
13055 #define NULL (void*)0
13058 static void *task(p)
13061 return (void *) (p == NULL);
13065 int main(argc, argv)
13070 /* pthread test function */
13071 #ifndef PTHREAD_CREATE_DETACHED
13072 #define PTHREAD_CREATE_DETACHED 1
13076 int detach = PTHREAD_CREATE_DETACHED;
13078 #if HAVE_PTHREADS > 4
13079 /* Final pthreads */
13080 pthread_attr_t attr;
13082 status = pthread_attr_init(&attr);
13083 if( status ) return status;
13085 #if HAVE_PTHREADS < 7
13086 status = pthread_attr_setdetachstate(&attr, &detach);
13087 if( status < 0 ) status = errno;
13089 status = pthread_attr_setdetachstate(&attr, detach);
13091 if( status ) return status;
13092 status = pthread_create( &t, &attr, task, NULL );
13093 #if HAVE_PTHREADS < 7
13094 if( status < 0 ) status = errno;
13096 if( status ) return status;
13098 /* Draft 4 pthreads */
13099 status = pthread_create( &t, pthread_attr_default, task, NULL );
13100 if( status ) return errno;
13102 /* give thread a chance to complete */
13103 /* it should remain joinable and hence detachable */
13106 status = pthread_detach( &t );
13107 if( status ) return errno;
13110 #ifdef HAVE_LINUX_THREADS
13111 pthread_kill_other_threads_np();
13119 if { (eval echo configure:13120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13121 ol_cv_pthread_lpthread_lmach_lexc=yes
13123 echo "configure: failed program was:" >&5
13124 cat conftest.$ac_ext >&5
13126 ol_cv_pthread_lpthread_lmach_lexc=no
13137 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
13139 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
13140 ol_link_pthreads="-lpthread -lmach -lexc"
13141 ol_link_threads=posix
13146 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
13147 if test "$ol_link_threads" = no ; then
13148 # try -lpthread -Wl,-woff,85
13149 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
13150 echo "configure:13151: checking for pthread link with -lpthread -Wl,-woff,85" >&5
13151 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
13152 echo $ac_n "(cached) $ac_c" 1>&6
13157 LIBS="-lpthread -Wl,-woff,85 $LIBS"
13159 if test "$cross_compiling" = yes; then
13160 cat > conftest.$ac_ext <<EOF
13161 #line 13162 "configure"
13162 #include "confdefs.h"
13163 /* pthread test headers */
13164 #include <pthread.h>
13165 #if HAVE_PTHREADS < 7
13169 #define NULL (void*)0
13172 static void *task(p)
13175 return (void *) (p == NULL);
13180 /* pthread test function */
13181 #ifndef PTHREAD_CREATE_DETACHED
13182 #define PTHREAD_CREATE_DETACHED 1
13186 int detach = PTHREAD_CREATE_DETACHED;
13188 #if HAVE_PTHREADS > 4
13189 /* Final pthreads */
13190 pthread_attr_t attr;
13192 status = pthread_attr_init(&attr);
13193 if( status ) return status;
13195 #if HAVE_PTHREADS < 7
13196 status = pthread_attr_setdetachstate(&attr, &detach);
13197 if( status < 0 ) status = errno;
13199 status = pthread_attr_setdetachstate(&attr, detach);
13201 if( status ) return status;
13202 status = pthread_create( &t, &attr, task, NULL );
13203 #if HAVE_PTHREADS < 7
13204 if( status < 0 ) status = errno;
13206 if( status ) return status;
13208 /* Draft 4 pthreads */
13209 status = pthread_create( &t, pthread_attr_default, task, NULL );
13210 if( status ) return errno;
13212 /* give thread a chance to complete */
13213 /* it should remain joinable and hence detachable */
13216 status = pthread_detach( &t );
13217 if( status ) return errno;
13220 #ifdef HAVE_LINUX_THREADS
13221 pthread_kill_other_threads_np();
13228 if { (eval echo configure:13229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13230 ol_cv_pthread_lib_lpthread_woff=yes
13232 echo "configure: failed program was:" >&5
13233 cat conftest.$ac_ext >&5
13235 ol_cv_pthread_lib_lpthread_woff=no
13239 cat > conftest.$ac_ext <<EOF
13240 #line 13241 "configure"
13241 #include "confdefs.h"
13242 /* pthread test headers */
13243 #include <pthread.h>
13244 #if HAVE_PTHREADS < 7
13248 #define NULL (void*)0
13251 static void *task(p)
13254 return (void *) (p == NULL);
13258 int main(argc, argv)
13263 /* pthread test function */
13264 #ifndef PTHREAD_CREATE_DETACHED
13265 #define PTHREAD_CREATE_DETACHED 1
13269 int detach = PTHREAD_CREATE_DETACHED;
13271 #if HAVE_PTHREADS > 4
13272 /* Final pthreads */
13273 pthread_attr_t attr;
13275 status = pthread_attr_init(&attr);
13276 if( status ) return status;
13278 #if HAVE_PTHREADS < 7
13279 status = pthread_attr_setdetachstate(&attr, &detach);
13280 if( status < 0 ) status = errno;
13282 status = pthread_attr_setdetachstate(&attr, detach);
13284 if( status ) return status;
13285 status = pthread_create( &t, &attr, task, NULL );
13286 #if HAVE_PTHREADS < 7
13287 if( status < 0 ) status = errno;
13289 if( status ) return status;
13291 /* Draft 4 pthreads */
13292 status = pthread_create( &t, pthread_attr_default, task, NULL );
13293 if( status ) return errno;
13295 /* give thread a chance to complete */
13296 /* it should remain joinable and hence detachable */
13299 status = pthread_detach( &t );
13300 if( status ) return errno;
13303 #ifdef HAVE_LINUX_THREADS
13304 pthread_kill_other_threads_np();
13312 if { (eval echo configure:13313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13314 ol_cv_pthread_lib_lpthread_woff=yes
13316 echo "configure: failed program was:" >&5
13317 cat conftest.$ac_ext >&5
13319 ol_cv_pthread_lib_lpthread_woff=no
13330 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
13332 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
13333 ol_link_pthreads="-lpthread -Wl,-woff,85"
13334 ol_link_threads=posix
13339 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
13340 if test "$ol_link_threads" = no ; then
13342 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
13343 echo "configure:13344: checking for pthread link with -lpthread" >&5
13344 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
13345 echo $ac_n "(cached) $ac_c" 1>&6
13350 LIBS="-lpthread $LIBS"
13352 if test "$cross_compiling" = yes; then
13353 cat > conftest.$ac_ext <<EOF
13354 #line 13355 "configure"
13355 #include "confdefs.h"
13356 /* pthread test headers */
13357 #include <pthread.h>
13358 #if HAVE_PTHREADS < 7
13362 #define NULL (void*)0
13365 static void *task(p)
13368 return (void *) (p == NULL);
13373 /* pthread test function */
13374 #ifndef PTHREAD_CREATE_DETACHED
13375 #define PTHREAD_CREATE_DETACHED 1
13379 int detach = PTHREAD_CREATE_DETACHED;
13381 #if HAVE_PTHREADS > 4
13382 /* Final pthreads */
13383 pthread_attr_t attr;
13385 status = pthread_attr_init(&attr);
13386 if( status ) return status;
13388 #if HAVE_PTHREADS < 7
13389 status = pthread_attr_setdetachstate(&attr, &detach);
13390 if( status < 0 ) status = errno;
13392 status = pthread_attr_setdetachstate(&attr, detach);
13394 if( status ) return status;
13395 status = pthread_create( &t, &attr, task, NULL );
13396 #if HAVE_PTHREADS < 7
13397 if( status < 0 ) status = errno;
13399 if( status ) return status;
13401 /* Draft 4 pthreads */
13402 status = pthread_create( &t, pthread_attr_default, task, NULL );
13403 if( status ) return errno;
13405 /* give thread a chance to complete */
13406 /* it should remain joinable and hence detachable */
13409 status = pthread_detach( &t );
13410 if( status ) return errno;
13413 #ifdef HAVE_LINUX_THREADS
13414 pthread_kill_other_threads_np();
13421 if { (eval echo configure:13422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13423 ol_cv_pthread_lpthread=yes
13425 echo "configure: failed program was:" >&5
13426 cat conftest.$ac_ext >&5
13428 ol_cv_pthread_lpthread=no
13432 cat > conftest.$ac_ext <<EOF
13433 #line 13434 "configure"
13434 #include "confdefs.h"
13435 /* pthread test headers */
13436 #include <pthread.h>
13437 #if HAVE_PTHREADS < 7
13441 #define NULL (void*)0
13444 static void *task(p)
13447 return (void *) (p == NULL);
13451 int main(argc, argv)
13456 /* pthread test function */
13457 #ifndef PTHREAD_CREATE_DETACHED
13458 #define PTHREAD_CREATE_DETACHED 1
13462 int detach = PTHREAD_CREATE_DETACHED;
13464 #if HAVE_PTHREADS > 4
13465 /* Final pthreads */
13466 pthread_attr_t attr;
13468 status = pthread_attr_init(&attr);
13469 if( status ) return status;
13471 #if HAVE_PTHREADS < 7
13472 status = pthread_attr_setdetachstate(&attr, &detach);
13473 if( status < 0 ) status = errno;
13475 status = pthread_attr_setdetachstate(&attr, detach);
13477 if( status ) return status;
13478 status = pthread_create( &t, &attr, task, NULL );
13479 #if HAVE_PTHREADS < 7
13480 if( status < 0 ) status = errno;
13482 if( status ) return status;
13484 /* Draft 4 pthreads */
13485 status = pthread_create( &t, pthread_attr_default, task, NULL );
13486 if( status ) return errno;
13488 /* give thread a chance to complete */
13489 /* it should remain joinable and hence detachable */
13492 status = pthread_detach( &t );
13493 if( status ) return errno;
13496 #ifdef HAVE_LINUX_THREADS
13497 pthread_kill_other_threads_np();
13505 if { (eval echo configure:13506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13507 ol_cv_pthread_lpthread=yes
13509 echo "configure: failed program was:" >&5
13510 cat conftest.$ac_ext >&5
13512 ol_cv_pthread_lpthread=no
13523 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
13525 if test $ol_cv_pthread_lpthread = yes ; then
13526 ol_link_pthreads="-lpthread"
13527 ol_link_threads=posix
13531 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
13532 if test "$ol_link_threads" = no ; then
13534 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
13535 echo "configure:13536: checking for pthread link with -lc_r" >&5
13536 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
13537 echo $ac_n "(cached) $ac_c" 1>&6
13544 if test "$cross_compiling" = yes; then
13545 cat > conftest.$ac_ext <<EOF
13546 #line 13547 "configure"
13547 #include "confdefs.h"
13548 /* pthread test headers */
13549 #include <pthread.h>
13550 #if HAVE_PTHREADS < 7
13554 #define NULL (void*)0
13557 static void *task(p)
13560 return (void *) (p == NULL);
13565 /* pthread test function */
13566 #ifndef PTHREAD_CREATE_DETACHED
13567 #define PTHREAD_CREATE_DETACHED 1
13571 int detach = PTHREAD_CREATE_DETACHED;
13573 #if HAVE_PTHREADS > 4
13574 /* Final pthreads */
13575 pthread_attr_t attr;
13577 status = pthread_attr_init(&attr);
13578 if( status ) return status;
13580 #if HAVE_PTHREADS < 7
13581 status = pthread_attr_setdetachstate(&attr, &detach);
13582 if( status < 0 ) status = errno;
13584 status = pthread_attr_setdetachstate(&attr, detach);
13586 if( status ) return status;
13587 status = pthread_create( &t, &attr, task, NULL );
13588 #if HAVE_PTHREADS < 7
13589 if( status < 0 ) status = errno;
13591 if( status ) return status;
13593 /* Draft 4 pthreads */
13594 status = pthread_create( &t, pthread_attr_default, task, NULL );
13595 if( status ) return errno;
13597 /* give thread a chance to complete */
13598 /* it should remain joinable and hence detachable */
13601 status = pthread_detach( &t );
13602 if( status ) return errno;
13605 #ifdef HAVE_LINUX_THREADS
13606 pthread_kill_other_threads_np();
13613 if { (eval echo configure:13614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13615 ol_cv_pthread_lc_r=yes
13617 echo "configure: failed program was:" >&5
13618 cat conftest.$ac_ext >&5
13620 ol_cv_pthread_lc_r=no
13624 cat > conftest.$ac_ext <<EOF
13625 #line 13626 "configure"
13626 #include "confdefs.h"
13627 /* pthread test headers */
13628 #include <pthread.h>
13629 #if HAVE_PTHREADS < 7
13633 #define NULL (void*)0
13636 static void *task(p)
13639 return (void *) (p == NULL);
13643 int main(argc, argv)
13648 /* pthread test function */
13649 #ifndef PTHREAD_CREATE_DETACHED
13650 #define PTHREAD_CREATE_DETACHED 1
13654 int detach = PTHREAD_CREATE_DETACHED;
13656 #if HAVE_PTHREADS > 4
13657 /* Final pthreads */
13658 pthread_attr_t attr;
13660 status = pthread_attr_init(&attr);
13661 if( status ) return status;
13663 #if HAVE_PTHREADS < 7
13664 status = pthread_attr_setdetachstate(&attr, &detach);
13665 if( status < 0 ) status = errno;
13667 status = pthread_attr_setdetachstate(&attr, detach);
13669 if( status ) return status;
13670 status = pthread_create( &t, &attr, task, NULL );
13671 #if HAVE_PTHREADS < 7
13672 if( status < 0 ) status = errno;
13674 if( status ) return status;
13676 /* Draft 4 pthreads */
13677 status = pthread_create( &t, pthread_attr_default, task, NULL );
13678 if( status ) return errno;
13680 /* give thread a chance to complete */
13681 /* it should remain joinable and hence detachable */
13684 status = pthread_detach( &t );
13685 if( status ) return errno;
13688 #ifdef HAVE_LINUX_THREADS
13689 pthread_kill_other_threads_np();
13697 if { (eval echo configure:13698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13699 ol_cv_pthread_lc_r=yes
13701 echo "configure: failed program was:" >&5
13702 cat conftest.$ac_ext >&5
13704 ol_cv_pthread_lc_r=no
13715 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
13717 if test $ol_cv_pthread_lc_r = yes ; then
13718 ol_link_pthreads="-lc_r"
13719 ol_link_threads=posix
13724 # Pthread try link: -threads (ol_cv_pthread_threads)
13725 if test "$ol_link_threads" = no ; then
13727 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
13728 echo "configure:13729: checking for pthread link with -threads" >&5
13729 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
13730 echo $ac_n "(cached) $ac_c" 1>&6
13735 LIBS="-threads $LIBS"
13737 if test "$cross_compiling" = yes; then
13738 cat > conftest.$ac_ext <<EOF
13739 #line 13740 "configure"
13740 #include "confdefs.h"
13741 /* pthread test headers */
13742 #include <pthread.h>
13743 #if HAVE_PTHREADS < 7
13747 #define NULL (void*)0
13750 static void *task(p)
13753 return (void *) (p == NULL);
13758 /* pthread test function */
13759 #ifndef PTHREAD_CREATE_DETACHED
13760 #define PTHREAD_CREATE_DETACHED 1
13764 int detach = PTHREAD_CREATE_DETACHED;
13766 #if HAVE_PTHREADS > 4
13767 /* Final pthreads */
13768 pthread_attr_t attr;
13770 status = pthread_attr_init(&attr);
13771 if( status ) return status;
13773 #if HAVE_PTHREADS < 7
13774 status = pthread_attr_setdetachstate(&attr, &detach);
13775 if( status < 0 ) status = errno;
13777 status = pthread_attr_setdetachstate(&attr, detach);
13779 if( status ) return status;
13780 status = pthread_create( &t, &attr, task, NULL );
13781 #if HAVE_PTHREADS < 7
13782 if( status < 0 ) status = errno;
13784 if( status ) return status;
13786 /* Draft 4 pthreads */
13787 status = pthread_create( &t, pthread_attr_default, task, NULL );
13788 if( status ) return errno;
13790 /* give thread a chance to complete */
13791 /* it should remain joinable and hence detachable */
13794 status = pthread_detach( &t );
13795 if( status ) return errno;
13798 #ifdef HAVE_LINUX_THREADS
13799 pthread_kill_other_threads_np();
13806 if { (eval echo configure:13807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13808 ol_cv_pthread_threads=yes
13810 echo "configure: failed program was:" >&5
13811 cat conftest.$ac_ext >&5
13813 ol_cv_pthread_threads=no
13817 cat > conftest.$ac_ext <<EOF
13818 #line 13819 "configure"
13819 #include "confdefs.h"
13820 /* pthread test headers */
13821 #include <pthread.h>
13822 #if HAVE_PTHREADS < 7
13826 #define NULL (void*)0
13829 static void *task(p)
13832 return (void *) (p == NULL);
13836 int main(argc, argv)
13841 /* pthread test function */
13842 #ifndef PTHREAD_CREATE_DETACHED
13843 #define PTHREAD_CREATE_DETACHED 1
13847 int detach = PTHREAD_CREATE_DETACHED;
13849 #if HAVE_PTHREADS > 4
13850 /* Final pthreads */
13851 pthread_attr_t attr;
13853 status = pthread_attr_init(&attr);
13854 if( status ) return status;
13856 #if HAVE_PTHREADS < 7
13857 status = pthread_attr_setdetachstate(&attr, &detach);
13858 if( status < 0 ) status = errno;
13860 status = pthread_attr_setdetachstate(&attr, detach);
13862 if( status ) return status;
13863 status = pthread_create( &t, &attr, task, NULL );
13864 #if HAVE_PTHREADS < 7
13865 if( status < 0 ) status = errno;
13867 if( status ) return status;
13869 /* Draft 4 pthreads */
13870 status = pthread_create( &t, pthread_attr_default, task, NULL );
13871 if( status ) return errno;
13873 /* give thread a chance to complete */
13874 /* it should remain joinable and hence detachable */
13877 status = pthread_detach( &t );
13878 if( status ) return errno;
13881 #ifdef HAVE_LINUX_THREADS
13882 pthread_kill_other_threads_np();
13890 if { (eval echo configure:13891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13892 ol_cv_pthread_threads=yes
13894 echo "configure: failed program was:" >&5
13895 cat conftest.$ac_ext >&5
13897 ol_cv_pthread_threads=no
13908 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
13910 if test $ol_cv_pthread_threads = yes ; then
13911 ol_link_pthreads="-threads"
13912 ol_link_threads=posix
13917 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
13918 if test "$ol_link_threads" = no ; then
13919 # try -lpthreads -lmach -lexc -lc_r
13920 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
13921 echo "configure:13922: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
13922 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
13923 echo $ac_n "(cached) $ac_c" 1>&6
13928 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
13930 if test "$cross_compiling" = yes; then
13931 cat > conftest.$ac_ext <<EOF
13932 #line 13933 "configure"
13933 #include "confdefs.h"
13934 /* pthread test headers */
13935 #include <pthread.h>
13936 #if HAVE_PTHREADS < 7
13940 #define NULL (void*)0
13943 static void *task(p)
13946 return (void *) (p == NULL);
13951 /* pthread test function */
13952 #ifndef PTHREAD_CREATE_DETACHED
13953 #define PTHREAD_CREATE_DETACHED 1
13957 int detach = PTHREAD_CREATE_DETACHED;
13959 #if HAVE_PTHREADS > 4
13960 /* Final pthreads */
13961 pthread_attr_t attr;
13963 status = pthread_attr_init(&attr);
13964 if( status ) return status;
13966 #if HAVE_PTHREADS < 7
13967 status = pthread_attr_setdetachstate(&attr, &detach);
13968 if( status < 0 ) status = errno;
13970 status = pthread_attr_setdetachstate(&attr, detach);
13972 if( status ) return status;
13973 status = pthread_create( &t, &attr, task, NULL );
13974 #if HAVE_PTHREADS < 7
13975 if( status < 0 ) status = errno;
13977 if( status ) return status;
13979 /* Draft 4 pthreads */
13980 status = pthread_create( &t, pthread_attr_default, task, NULL );
13981 if( status ) return errno;
13983 /* give thread a chance to complete */
13984 /* it should remain joinable and hence detachable */
13987 status = pthread_detach( &t );
13988 if( status ) return errno;
13991 #ifdef HAVE_LINUX_THREADS
13992 pthread_kill_other_threads_np();
13999 if { (eval echo configure:14000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14001 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
14003 echo "configure: failed program was:" >&5
14004 cat conftest.$ac_ext >&5
14006 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
14010 cat > conftest.$ac_ext <<EOF
14011 #line 14012 "configure"
14012 #include "confdefs.h"
14013 /* pthread test headers */
14014 #include <pthread.h>
14015 #if HAVE_PTHREADS < 7
14019 #define NULL (void*)0
14022 static void *task(p)
14025 return (void *) (p == NULL);
14029 int main(argc, argv)
14034 /* pthread test function */
14035 #ifndef PTHREAD_CREATE_DETACHED
14036 #define PTHREAD_CREATE_DETACHED 1
14040 int detach = PTHREAD_CREATE_DETACHED;
14042 #if HAVE_PTHREADS > 4
14043 /* Final pthreads */
14044 pthread_attr_t attr;
14046 status = pthread_attr_init(&attr);
14047 if( status ) return status;
14049 #if HAVE_PTHREADS < 7
14050 status = pthread_attr_setdetachstate(&attr, &detach);
14051 if( status < 0 ) status = errno;
14053 status = pthread_attr_setdetachstate(&attr, detach);
14055 if( status ) return status;
14056 status = pthread_create( &t, &attr, task, NULL );
14057 #if HAVE_PTHREADS < 7
14058 if( status < 0 ) status = errno;
14060 if( status ) return status;
14062 /* Draft 4 pthreads */
14063 status = pthread_create( &t, pthread_attr_default, task, NULL );
14064 if( status ) return errno;
14066 /* give thread a chance to complete */
14067 /* it should remain joinable and hence detachable */
14070 status = pthread_detach( &t );
14071 if( status ) return errno;
14074 #ifdef HAVE_LINUX_THREADS
14075 pthread_kill_other_threads_np();
14083 if { (eval echo configure:14084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14085 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
14087 echo "configure: failed program was:" >&5
14088 cat conftest.$ac_ext >&5
14090 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
14101 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
14103 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
14104 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
14105 ol_link_threads=posix
14109 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
14110 if test "$ol_link_threads" = no ; then
14111 # try -lpthreads -lmach -lexc
14112 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
14113 echo "configure:14114: checking for pthread link with -lpthreads -lmach -lexc" >&5
14114 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
14115 echo $ac_n "(cached) $ac_c" 1>&6
14120 LIBS="-lpthreads -lmach -lexc $LIBS"
14122 if test "$cross_compiling" = yes; then
14123 cat > conftest.$ac_ext <<EOF
14124 #line 14125 "configure"
14125 #include "confdefs.h"
14126 /* pthread test headers */
14127 #include <pthread.h>
14128 #if HAVE_PTHREADS < 7
14132 #define NULL (void*)0
14135 static void *task(p)
14138 return (void *) (p == NULL);
14143 /* pthread test function */
14144 #ifndef PTHREAD_CREATE_DETACHED
14145 #define PTHREAD_CREATE_DETACHED 1
14149 int detach = PTHREAD_CREATE_DETACHED;
14151 #if HAVE_PTHREADS > 4
14152 /* Final pthreads */
14153 pthread_attr_t attr;
14155 status = pthread_attr_init(&attr);
14156 if( status ) return status;
14158 #if HAVE_PTHREADS < 7
14159 status = pthread_attr_setdetachstate(&attr, &detach);
14160 if( status < 0 ) status = errno;
14162 status = pthread_attr_setdetachstate(&attr, detach);
14164 if( status ) return status;
14165 status = pthread_create( &t, &attr, task, NULL );
14166 #if HAVE_PTHREADS < 7
14167 if( status < 0 ) status = errno;
14169 if( status ) return status;
14171 /* Draft 4 pthreads */
14172 status = pthread_create( &t, pthread_attr_default, task, NULL );
14173 if( status ) return errno;
14175 /* give thread a chance to complete */
14176 /* it should remain joinable and hence detachable */
14179 status = pthread_detach( &t );
14180 if( status ) return errno;
14183 #ifdef HAVE_LINUX_THREADS
14184 pthread_kill_other_threads_np();
14191 if { (eval echo configure:14192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14193 ol_cv_pthread_lpthreads_lmach_lexc=yes
14195 echo "configure: failed program was:" >&5
14196 cat conftest.$ac_ext >&5
14198 ol_cv_pthread_lpthreads_lmach_lexc=no
14202 cat > conftest.$ac_ext <<EOF
14203 #line 14204 "configure"
14204 #include "confdefs.h"
14205 /* pthread test headers */
14206 #include <pthread.h>
14207 #if HAVE_PTHREADS < 7
14211 #define NULL (void*)0
14214 static void *task(p)
14217 return (void *) (p == NULL);
14221 int main(argc, argv)
14226 /* pthread test function */
14227 #ifndef PTHREAD_CREATE_DETACHED
14228 #define PTHREAD_CREATE_DETACHED 1
14232 int detach = PTHREAD_CREATE_DETACHED;
14234 #if HAVE_PTHREADS > 4
14235 /* Final pthreads */
14236 pthread_attr_t attr;
14238 status = pthread_attr_init(&attr);
14239 if( status ) return status;
14241 #if HAVE_PTHREADS < 7
14242 status = pthread_attr_setdetachstate(&attr, &detach);
14243 if( status < 0 ) status = errno;
14245 status = pthread_attr_setdetachstate(&attr, detach);
14247 if( status ) return status;
14248 status = pthread_create( &t, &attr, task, NULL );
14249 #if HAVE_PTHREADS < 7
14250 if( status < 0 ) status = errno;
14252 if( status ) return status;
14254 /* Draft 4 pthreads */
14255 status = pthread_create( &t, pthread_attr_default, task, NULL );
14256 if( status ) return errno;
14258 /* give thread a chance to complete */
14259 /* it should remain joinable and hence detachable */
14262 status = pthread_detach( &t );
14263 if( status ) return errno;
14266 #ifdef HAVE_LINUX_THREADS
14267 pthread_kill_other_threads_np();
14275 if { (eval echo configure:14276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14277 ol_cv_pthread_lpthreads_lmach_lexc=yes
14279 echo "configure: failed program was:" >&5
14280 cat conftest.$ac_ext >&5
14282 ol_cv_pthread_lpthreads_lmach_lexc=no
14293 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
14295 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
14296 ol_link_pthreads="-lpthreads -lmach -lexc"
14297 ol_link_threads=posix
14301 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
14302 if test "$ol_link_threads" = no ; then
14303 # try -lpthreads -lexc
14304 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
14305 echo "configure:14306: checking for pthread link with -lpthreads -lexc" >&5
14306 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
14307 echo $ac_n "(cached) $ac_c" 1>&6
14312 LIBS="-lpthreads -lexc $LIBS"
14314 if test "$cross_compiling" = yes; then
14315 cat > conftest.$ac_ext <<EOF
14316 #line 14317 "configure"
14317 #include "confdefs.h"
14318 /* pthread test headers */
14319 #include <pthread.h>
14320 #if HAVE_PTHREADS < 7
14324 #define NULL (void*)0
14327 static void *task(p)
14330 return (void *) (p == NULL);
14335 /* pthread test function */
14336 #ifndef PTHREAD_CREATE_DETACHED
14337 #define PTHREAD_CREATE_DETACHED 1
14341 int detach = PTHREAD_CREATE_DETACHED;
14343 #if HAVE_PTHREADS > 4
14344 /* Final pthreads */
14345 pthread_attr_t attr;
14347 status = pthread_attr_init(&attr);
14348 if( status ) return status;
14350 #if HAVE_PTHREADS < 7
14351 status = pthread_attr_setdetachstate(&attr, &detach);
14352 if( status < 0 ) status = errno;
14354 status = pthread_attr_setdetachstate(&attr, detach);
14356 if( status ) return status;
14357 status = pthread_create( &t, &attr, task, NULL );
14358 #if HAVE_PTHREADS < 7
14359 if( status < 0 ) status = errno;
14361 if( status ) return status;
14363 /* Draft 4 pthreads */
14364 status = pthread_create( &t, pthread_attr_default, task, NULL );
14365 if( status ) return errno;
14367 /* give thread a chance to complete */
14368 /* it should remain joinable and hence detachable */
14371 status = pthread_detach( &t );
14372 if( status ) return errno;
14375 #ifdef HAVE_LINUX_THREADS
14376 pthread_kill_other_threads_np();
14383 if { (eval echo configure:14384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14385 ol_cv_pthread_lpthreads_lexc=yes
14387 echo "configure: failed program was:" >&5
14388 cat conftest.$ac_ext >&5
14390 ol_cv_pthread_lpthreads_lexc=no
14394 cat > conftest.$ac_ext <<EOF
14395 #line 14396 "configure"
14396 #include "confdefs.h"
14397 /* pthread test headers */
14398 #include <pthread.h>
14399 #if HAVE_PTHREADS < 7
14403 #define NULL (void*)0
14406 static void *task(p)
14409 return (void *) (p == NULL);
14413 int main(argc, argv)
14418 /* pthread test function */
14419 #ifndef PTHREAD_CREATE_DETACHED
14420 #define PTHREAD_CREATE_DETACHED 1
14424 int detach = PTHREAD_CREATE_DETACHED;
14426 #if HAVE_PTHREADS > 4
14427 /* Final pthreads */
14428 pthread_attr_t attr;
14430 status = pthread_attr_init(&attr);
14431 if( status ) return status;
14433 #if HAVE_PTHREADS < 7
14434 status = pthread_attr_setdetachstate(&attr, &detach);
14435 if( status < 0 ) status = errno;
14437 status = pthread_attr_setdetachstate(&attr, detach);
14439 if( status ) return status;
14440 status = pthread_create( &t, &attr, task, NULL );
14441 #if HAVE_PTHREADS < 7
14442 if( status < 0 ) status = errno;
14444 if( status ) return status;
14446 /* Draft 4 pthreads */
14447 status = pthread_create( &t, pthread_attr_default, task, NULL );
14448 if( status ) return errno;
14450 /* give thread a chance to complete */
14451 /* it should remain joinable and hence detachable */
14454 status = pthread_detach( &t );
14455 if( status ) return errno;
14458 #ifdef HAVE_LINUX_THREADS
14459 pthread_kill_other_threads_np();
14467 if { (eval echo configure:14468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14469 ol_cv_pthread_lpthreads_lexc=yes
14471 echo "configure: failed program was:" >&5
14472 cat conftest.$ac_ext >&5
14474 ol_cv_pthread_lpthreads_lexc=no
14485 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
14487 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
14488 ol_link_pthreads="-lpthreads -lexc"
14489 ol_link_threads=posix
14494 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
14495 if test "$ol_link_threads" = no ; then
14497 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
14498 echo "configure:14499: checking for pthread link with -lpthreads" >&5
14499 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
14500 echo $ac_n "(cached) $ac_c" 1>&6
14505 LIBS="-lpthreads $LIBS"
14507 if test "$cross_compiling" = yes; then
14508 cat > conftest.$ac_ext <<EOF
14509 #line 14510 "configure"
14510 #include "confdefs.h"
14511 /* pthread test headers */
14512 #include <pthread.h>
14513 #if HAVE_PTHREADS < 7
14517 #define NULL (void*)0
14520 static void *task(p)
14523 return (void *) (p == NULL);
14528 /* pthread test function */
14529 #ifndef PTHREAD_CREATE_DETACHED
14530 #define PTHREAD_CREATE_DETACHED 1
14534 int detach = PTHREAD_CREATE_DETACHED;
14536 #if HAVE_PTHREADS > 4
14537 /* Final pthreads */
14538 pthread_attr_t attr;
14540 status = pthread_attr_init(&attr);
14541 if( status ) return status;
14543 #if HAVE_PTHREADS < 7
14544 status = pthread_attr_setdetachstate(&attr, &detach);
14545 if( status < 0 ) status = errno;
14547 status = pthread_attr_setdetachstate(&attr, detach);
14549 if( status ) return status;
14550 status = pthread_create( &t, &attr, task, NULL );
14551 #if HAVE_PTHREADS < 7
14552 if( status < 0 ) status = errno;
14554 if( status ) return status;
14556 /* Draft 4 pthreads */
14557 status = pthread_create( &t, pthread_attr_default, task, NULL );
14558 if( status ) return errno;
14560 /* give thread a chance to complete */
14561 /* it should remain joinable and hence detachable */
14564 status = pthread_detach( &t );
14565 if( status ) return errno;
14568 #ifdef HAVE_LINUX_THREADS
14569 pthread_kill_other_threads_np();
14576 if { (eval echo configure:14577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14578 ol_cv_pthread_lib_lpthreads=yes
14580 echo "configure: failed program was:" >&5
14581 cat conftest.$ac_ext >&5
14583 ol_cv_pthread_lib_lpthreads=no
14587 cat > conftest.$ac_ext <<EOF
14588 #line 14589 "configure"
14589 #include "confdefs.h"
14590 /* pthread test headers */
14591 #include <pthread.h>
14592 #if HAVE_PTHREADS < 7
14596 #define NULL (void*)0
14599 static void *task(p)
14602 return (void *) (p == NULL);
14606 int main(argc, argv)
14611 /* pthread test function */
14612 #ifndef PTHREAD_CREATE_DETACHED
14613 #define PTHREAD_CREATE_DETACHED 1
14617 int detach = PTHREAD_CREATE_DETACHED;
14619 #if HAVE_PTHREADS > 4
14620 /* Final pthreads */
14621 pthread_attr_t attr;
14623 status = pthread_attr_init(&attr);
14624 if( status ) return status;
14626 #if HAVE_PTHREADS < 7
14627 status = pthread_attr_setdetachstate(&attr, &detach);
14628 if( status < 0 ) status = errno;
14630 status = pthread_attr_setdetachstate(&attr, detach);
14632 if( status ) return status;
14633 status = pthread_create( &t, &attr, task, NULL );
14634 #if HAVE_PTHREADS < 7
14635 if( status < 0 ) status = errno;
14637 if( status ) return status;
14639 /* Draft 4 pthreads */
14640 status = pthread_create( &t, pthread_attr_default, task, NULL );
14641 if( status ) return errno;
14643 /* give thread a chance to complete */
14644 /* it should remain joinable and hence detachable */
14647 status = pthread_detach( &t );
14648 if( status ) return errno;
14651 #ifdef HAVE_LINUX_THREADS
14652 pthread_kill_other_threads_np();
14660 if { (eval echo configure:14661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14662 ol_cv_pthread_lib_lpthreads=yes
14664 echo "configure: failed program was:" >&5
14665 cat conftest.$ac_ext >&5
14667 ol_cv_pthread_lib_lpthreads=no
14678 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
14680 if test $ol_cv_pthread_lib_lpthreads = yes ; then
14681 ol_link_pthreads="-lpthreads"
14682 ol_link_threads=posix
14687 if test $ol_link_threads != no ; then
14688 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
14690 save_CPPFLAGS="$CPPFLAGS"
14692 LIBS="$LTHREAD_LIBS $LIBS"
14694 for ac_func in sched_yield pthread_yield thr_yield
14696 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14697 echo "configure:14698: checking for $ac_func" >&5
14698 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14699 echo $ac_n "(cached) $ac_c" 1>&6
14701 cat > conftest.$ac_ext <<EOF
14702 #line 14703 "configure"
14703 #include "confdefs.h"
14704 /* System header to define __stub macros and hopefully few prototypes,
14705 which can conflict with char $ac_func(); below. */
14706 #include <assert.h>
14707 /* Override any gcc2 internal prototype to avoid an error. */
14708 /* We use char because int might match the return type of a gcc2
14709 builtin and then its argument prototype would still apply. */
14715 /* The GNU C library defines this for functions which it implements
14716 to always fail with ENOSYS. Some functions are actually named
14717 something starting with __ and the normal name is an alias. */
14718 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14726 if { (eval echo configure:14727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14728 eval "ac_cv_func_$ac_func=yes"
14730 echo "configure: failed program was:" >&5
14731 cat conftest.$ac_ext >&5
14733 eval "ac_cv_func_$ac_func=no"
14738 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14739 echo "$ac_t""yes" 1>&6
14740 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14741 cat >> confdefs.h <<EOF
14742 #define $ac_tr_func 1
14746 echo "$ac_t""no" 1>&6
14751 if test $ac_cv_func_sched_yield = no -a \
14752 $ac_cv_func_pthread_yield = no -a \
14753 $ac_cv_func_thr_yield = no ; then
14754 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
14755 echo "configure:14756: checking for sched_yield in -lrt" >&5
14756 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
14757 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14758 echo $ac_n "(cached) $ac_c" 1>&6
14760 ac_save_LIBS="$LIBS"
14762 cat > conftest.$ac_ext <<EOF
14763 #line 14764 "configure"
14764 #include "confdefs.h"
14765 /* Override any gcc2 internal prototype to avoid an error. */
14766 /* We use char because int might match the return type of a gcc2
14767 builtin and then its argument prototype would still apply. */
14768 char sched_yield();
14774 if { (eval echo configure:14775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14776 eval "ac_cv_lib_$ac_lib_var=yes"
14778 echo "configure: failed program was:" >&5
14779 cat conftest.$ac_ext >&5
14781 eval "ac_cv_lib_$ac_lib_var=no"
14784 LIBS="$ac_save_LIBS"
14787 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14788 echo "$ac_t""yes" 1>&6
14789 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
14790 cat >> confdefs.h <<\EOF
14791 #define HAVE_SCHED_YIELD 1
14794 ac_cv_func_sched_yield=yes
14796 echo "$ac_t""no" 1>&6
14797 ac_cv_func_sched_yield=no
14801 if test $ac_cv_func_sched_yield = no -a \
14802 $ac_cv_func_pthread_yield = no -a \
14803 "$ac_cv_func_thr_yield" = no ; then
14804 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
14807 for ac_func in pthread_kill pthread_rwlock_destroy
14809 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14810 echo "configure:14811: checking for $ac_func" >&5
14811 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14812 echo $ac_n "(cached) $ac_c" 1>&6
14814 cat > conftest.$ac_ext <<EOF
14815 #line 14816 "configure"
14816 #include "confdefs.h"
14817 /* System header to define __stub macros and hopefully few prototypes,
14818 which can conflict with char $ac_func(); below. */
14819 #include <assert.h>
14820 /* Override any gcc2 internal prototype to avoid an error. */
14821 /* We use char because int might match the return type of a gcc2
14822 builtin and then its argument prototype would still apply. */
14828 /* The GNU C library defines this for functions which it implements
14829 to always fail with ENOSYS. Some functions are actually named
14830 something starting with __ and the normal name is an alias. */
14831 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14839 if { (eval echo configure:14840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14841 eval "ac_cv_func_$ac_func=yes"
14843 echo "configure: failed program was:" >&5
14844 cat conftest.$ac_ext >&5
14846 eval "ac_cv_func_$ac_func=no"
14851 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14852 echo "$ac_t""yes" 1>&6
14853 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14854 cat >> confdefs.h <<EOF
14855 #define $ac_tr_func 1
14859 echo "$ac_t""no" 1>&6
14864 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
14865 echo "configure:14866: checking for pthread_detach with <pthread.h>" >&5
14866 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
14867 echo $ac_n "(cached) $ac_c" 1>&6
14870 cat > conftest.$ac_ext <<EOF
14871 #line 14872 "configure"
14872 #include "confdefs.h"
14874 #include <pthread.h>
14876 #define NULL (void*)0
14880 pthread_detach(NULL);
14883 if { (eval echo configure:14884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14885 ol_cv_func_pthread_detach=yes
14887 echo "configure: failed program was:" >&5
14888 cat conftest.$ac_ext >&5
14890 ol_cv_func_pthread_detach=no
14896 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
14898 if test $ol_cv_func_pthread_detach = no ; then
14899 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
14902 cat >> confdefs.h <<\EOF
14903 #define HAVE_PTHREAD_DETACH 1
14908 pthread_setconcurrency \
14909 pthread_getconcurrency \
14910 thr_setconcurrency \
14911 thr_getconcurrency \
14914 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14915 echo "configure:14916: checking for $ac_func" >&5
14916 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14917 echo $ac_n "(cached) $ac_c" 1>&6
14919 cat > conftest.$ac_ext <<EOF
14920 #line 14921 "configure"
14921 #include "confdefs.h"
14922 /* System header to define __stub macros and hopefully few prototypes,
14923 which can conflict with char $ac_func(); below. */
14924 #include <assert.h>
14925 /* Override any gcc2 internal prototype to avoid an error. */
14926 /* We use char because int might match the return type of a gcc2
14927 builtin and then its argument prototype would still apply. */
14933 /* The GNU C library defines this for functions which it implements
14934 to always fail with ENOSYS. Some functions are actually named
14935 something starting with __ and the normal name is an alias. */
14936 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14944 if { (eval echo configure:14945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14946 eval "ac_cv_func_$ac_func=yes"
14948 echo "configure: failed program was:" >&5
14949 cat conftest.$ac_ext >&5
14951 eval "ac_cv_func_$ac_func=no"
14956 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14957 echo "$ac_t""yes" 1>&6
14958 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14959 cat >> confdefs.h <<EOF
14960 #define $ac_tr_func 1
14964 echo "$ac_t""no" 1>&6
14970 for ac_func in pthread_kill_other_threads_np
14972 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14973 echo "configure:14974: checking for $ac_func" >&5
14974 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14975 echo $ac_n "(cached) $ac_c" 1>&6
14977 cat > conftest.$ac_ext <<EOF
14978 #line 14979 "configure"
14979 #include "confdefs.h"
14980 /* System header to define __stub macros and hopefully few prototypes,
14981 which can conflict with char $ac_func(); below. */
14982 #include <assert.h>
14983 /* Override any gcc2 internal prototype to avoid an error. */
14984 /* We use char because int might match the return type of a gcc2
14985 builtin and then its argument prototype would still apply. */
14991 /* The GNU C library defines this for functions which it implements
14992 to always fail with ENOSYS. Some functions are actually named
14993 something starting with __ and the normal name is an alias. */
14994 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15002 if { (eval echo configure:15003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15004 eval "ac_cv_func_$ac_func=yes"
15006 echo "configure: failed program was:" >&5
15007 cat conftest.$ac_ext >&5
15009 eval "ac_cv_func_$ac_func=no"
15014 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15015 echo "$ac_t""yes" 1>&6
15016 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15017 cat >> confdefs.h <<EOF
15018 #define $ac_tr_func 1
15022 echo "$ac_t""no" 1>&6
15026 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
15027 echo "configure:15028: checking for LinuxThreads implementation" >&5
15028 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
15029 echo $ac_n "(cached) $ac_c" 1>&6
15031 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
15034 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
15039 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
15040 echo "configure:15041: checking for LinuxThreads consistency" >&5
15041 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
15042 echo $ac_n "(cached) $ac_c" 1>&6
15045 if test $ol_cv_header_linux_threads = yes -a \
15046 $ol_cv_sys_linux_threads = yes; then
15047 ol_cv_linux_threads=yes
15048 elif test $ol_cv_header_linux_threads = no -a \
15049 $ol_cv_sys_linux_threads = no; then
15050 ol_cv_linux_threads=no
15052 ol_cv_linux_threads=error
15057 echo "$ac_t""$ol_cv_linux_threads" 1>&6
15060 if test $ol_cv_linux_threads = error; then
15061 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
15064 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
15065 echo "configure:15066: checking if pthread_create() works" >&5
15066 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
15067 echo $ac_n "(cached) $ac_c" 1>&6
15070 if test "$cross_compiling" = yes; then
15071 ol_cv_pthread_create_works=yes
15073 cat > conftest.$ac_ext <<EOF
15074 #line 15075 "configure"
15075 #include "confdefs.h"
15076 /* pthread test headers */
15077 #include <pthread.h>
15078 #if HAVE_PTHREADS < 7
15082 #define NULL (void*)0
15085 static void *task(p)
15088 return (void *) (p == NULL);
15092 int main(argc, argv)
15097 /* pthread test function */
15098 #ifndef PTHREAD_CREATE_DETACHED
15099 #define PTHREAD_CREATE_DETACHED 1
15103 int detach = PTHREAD_CREATE_DETACHED;
15105 #if HAVE_PTHREADS > 4
15106 /* Final pthreads */
15107 pthread_attr_t attr;
15109 status = pthread_attr_init(&attr);
15110 if( status ) return status;
15112 #if HAVE_PTHREADS < 7
15113 status = pthread_attr_setdetachstate(&attr, &detach);
15114 if( status < 0 ) status = errno;
15116 status = pthread_attr_setdetachstate(&attr, detach);
15118 if( status ) return status;
15119 status = pthread_create( &t, &attr, task, NULL );
15120 #if HAVE_PTHREADS < 7
15121 if( status < 0 ) status = errno;
15123 if( status ) return status;
15125 /* Draft 4 pthreads */
15126 status = pthread_create( &t, pthread_attr_default, task, NULL );
15127 if( status ) return errno;
15129 /* give thread a chance to complete */
15130 /* it should remain joinable and hence detachable */
15133 status = pthread_detach( &t );
15134 if( status ) return errno;
15137 #ifdef HAVE_LINUX_THREADS
15138 pthread_kill_other_threads_np();
15146 if { (eval echo configure:15147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15148 ol_cv_pthread_create_works=yes
15150 echo "configure: failed program was:" >&5
15151 cat conftest.$ac_ext >&5
15153 ol_cv_pthread_create_works=no
15160 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
15162 if test $ol_cv_pthread_create_works = no ; then
15163 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
15166 if test $ol_with_yielding_select = auto ; then
15167 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
15168 echo "configure:15169: checking if select yields when using pthreads" >&5
15169 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
15170 echo $ac_n "(cached) $ac_c" 1>&6
15173 if test "$cross_compiling" = yes; then
15174 ol_cv_pthread_select_yields=cross
15176 cat > conftest.$ac_ext <<EOF
15177 #line 15178 "configure"
15178 #include "confdefs.h"
15180 #include <sys/types.h>
15181 #include <sys/time.h>
15182 #include <unistd.h>
15183 #include <pthread.h>
15185 #define NULL (void*) 0
15188 static int fildes[2];
15190 static void *task(p)
15202 FD_SET(fildes[0], &rfds);
15204 /* we're not interested in any fds */
15205 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
15212 exit(0); /* if we exit here, the select blocked the whole process */
15215 int main(argc, argv)
15221 /* create a pipe to select */
15222 if(pipe(&fildes[0])) {
15227 #ifdef HAVE_PTHREAD_SETCONCURRENCY
15228 (void) pthread_setconcurrency(2);
15230 #ifdef HAVE_THR_SETCONCURRENCY
15231 /* Set Solaris LWP concurrency to 2 */
15232 thr_setconcurrency(2);
15236 #if HAVE_PTHREADS < 6
15237 pthread_create(&t, pthread_attr_default, task, NULL);
15239 pthread_create(&t, NULL, task, NULL);
15242 /* make sure task runs first */
15245 #elif defined( HAVE_SCHED_YIELD )
15247 #elif defined( HAVE_PTHREAD_YIELD )
15254 if { (eval echo configure:15255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15256 ol_cv_pthread_select_yields=no
15258 echo "configure: failed program was:" >&5
15259 cat conftest.$ac_ext >&5
15261 ol_cv_pthread_select_yields=yes
15268 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
15270 if test $ol_cv_pthread_select_yields = cross ; then
15271 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
15274 if test $ol_cv_pthread_select_yields = yes ; then
15275 ol_with_yielding_select=yes
15279 CPPFLAGS="$save_CPPFLAGS"
15282 { echo "configure: error: could not locate usable POSIX Threads" 1>&2; exit 1; }
15286 if test $ol_with_threads = posix ; then
15287 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
15291 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15292 -o $ol_with_threads = mach ; then
15294 for ac_hdr in mach/cthreads.h cthreads.h
15296 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15297 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15298 echo "configure:15299: checking for $ac_hdr" >&5
15299 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15300 echo $ac_n "(cached) $ac_c" 1>&6
15302 cat > conftest.$ac_ext <<EOF
15303 #line 15304 "configure"
15304 #include "confdefs.h"
15307 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15308 { (eval echo configure:15309: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15309 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15310 if test -z "$ac_err"; then
15312 eval "ac_cv_header_$ac_safe=yes"
15315 echo "configure: failed program was:" >&5
15316 cat conftest.$ac_ext >&5
15318 eval "ac_cv_header_$ac_safe=no"
15322 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15323 echo "$ac_t""yes" 1>&6
15324 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15325 cat >> confdefs.h <<EOF
15326 #define $ac_tr_hdr 1
15330 echo "$ac_t""no" 1>&6
15334 if test $ac_cv_header_mach_cthreads_h = yes ; then
15335 ol_with_threads=found
15337 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
15338 echo "configure:15339: checking for cthread_fork" >&5
15339 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
15340 echo $ac_n "(cached) $ac_c" 1>&6
15342 cat > conftest.$ac_ext <<EOF
15343 #line 15344 "configure"
15344 #include "confdefs.h"
15345 /* System header to define __stub macros and hopefully few prototypes,
15346 which can conflict with char cthread_fork(); below. */
15347 #include <assert.h>
15348 /* Override any gcc2 internal prototype to avoid an error. */
15349 /* We use char because int might match the return type of a gcc2
15350 builtin and then its argument prototype would still apply. */
15351 char cthread_fork();
15356 /* The GNU C library defines this for functions which it implements
15357 to always fail with ENOSYS. Some functions are actually named
15358 something starting with __ and the normal name is an alias. */
15359 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
15367 if { (eval echo configure:15368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15369 eval "ac_cv_func_cthread_fork=yes"
15371 echo "configure: failed program was:" >&5
15372 cat conftest.$ac_ext >&5
15374 eval "ac_cv_func_cthread_fork=no"
15379 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
15380 echo "$ac_t""yes" 1>&6
15381 ol_link_threads=yes
15383 echo "$ac_t""no" 1>&6
15387 if test $ol_link_threads = no ; then
15388 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
15389 echo "configure:15390: checking for cthread_fork with -all_load" >&5
15390 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
15391 echo $ac_n "(cached) $ac_c" 1>&6
15395 LIBS="-all_load $LIBS"
15396 cat > conftest.$ac_ext <<EOF
15397 #line 15398 "configure"
15398 #include "confdefs.h"
15399 #include <mach/cthreads.h>
15402 cthread_fork((void *)0, (void *)0);
15406 if { (eval echo configure:15407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15408 ol_cv_cthread_all_load=yes
15410 echo "configure: failed program was:" >&5
15411 cat conftest.$ac_ext >&5
15413 ol_cv_cthread_all_load=no
15420 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
15422 if test $ol_cv_cthread_all_load = yes ; then
15423 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
15424 ol_link_threads=mach
15425 ol_with_threads=found
15429 elif test $ac_cv_header_cthreads_h = yes ; then
15431 ol_with_threads=found
15434 LIBS="$LIBS -lthreads"
15435 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
15436 echo "configure:15437: checking for cthread_fork" >&5
15437 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
15438 echo $ac_n "(cached) $ac_c" 1>&6
15440 cat > conftest.$ac_ext <<EOF
15441 #line 15442 "configure"
15442 #include "confdefs.h"
15443 /* System header to define __stub macros and hopefully few prototypes,
15444 which can conflict with char cthread_fork(); below. */
15445 #include <assert.h>
15446 /* Override any gcc2 internal prototype to avoid an error. */
15447 /* We use char because int might match the return type of a gcc2
15448 builtin and then its argument prototype would still apply. */
15449 char cthread_fork();
15454 /* The GNU C library defines this for functions which it implements
15455 to always fail with ENOSYS. Some functions are actually named
15456 something starting with __ and the normal name is an alias. */
15457 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
15465 if { (eval echo configure:15466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15467 eval "ac_cv_func_cthread_fork=yes"
15469 echo "configure: failed program was:" >&5
15470 cat conftest.$ac_ext >&5
15472 eval "ac_cv_func_cthread_fork=no"
15477 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
15478 echo "$ac_t""yes" 1>&6
15479 ol_link_threads=yes
15481 echo "$ac_t""no" 1>&6
15486 if test $ol_link_threads = yes ; then
15487 LTHREAD_LIBS="-lthreads"
15488 ol_link_threads=mach
15489 ol_with_threads=found
15491 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
15494 elif test $ol_with_threads = mach ; then
15495 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
15498 if test $ol_link_threads = mach ; then
15499 cat >> confdefs.h <<\EOF
15500 #define HAVE_MACH_CTHREADS 1
15503 elif test $ol_with_threads = found ; then
15504 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
15508 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15509 -o $ol_with_threads = pth ; then
15511 for ac_hdr in pth.h
15513 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15514 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15515 echo "configure:15516: checking for $ac_hdr" >&5
15516 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15517 echo $ac_n "(cached) $ac_c" 1>&6
15519 cat > conftest.$ac_ext <<EOF
15520 #line 15521 "configure"
15521 #include "confdefs.h"
15524 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15525 { (eval echo configure:15526: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15526 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15527 if test -z "$ac_err"; then
15529 eval "ac_cv_header_$ac_safe=yes"
15532 echo "configure: failed program was:" >&5
15533 cat conftest.$ac_ext >&5
15535 eval "ac_cv_header_$ac_safe=no"
15539 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15540 echo "$ac_t""yes" 1>&6
15541 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15542 cat >> confdefs.h <<EOF
15543 #define $ac_tr_hdr 1
15547 echo "$ac_t""no" 1>&6
15552 if test $ac_cv_header_pth_h = yes ; then
15553 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
15554 echo "configure:15555: checking for pth_version in -lpth" >&5
15555 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
15556 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15557 echo $ac_n "(cached) $ac_c" 1>&6
15559 ac_save_LIBS="$LIBS"
15561 cat > conftest.$ac_ext <<EOF
15562 #line 15563 "configure"
15563 #include "confdefs.h"
15564 /* Override any gcc2 internal prototype to avoid an error. */
15565 /* We use char because int might match the return type of a gcc2
15566 builtin and then its argument prototype would still apply. */
15567 char pth_version();
15573 if { (eval echo configure:15574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15575 eval "ac_cv_lib_$ac_lib_var=yes"
15577 echo "configure: failed program was:" >&5
15578 cat conftest.$ac_ext >&5
15580 eval "ac_cv_lib_$ac_lib_var=no"
15583 LIBS="$ac_save_LIBS"
15586 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15587 echo "$ac_t""yes" 1>&6
15590 echo "$ac_t""no" 1>&6
15595 if test $have_pth = yes ; then
15596 cat >> confdefs.h <<\EOF
15597 #define HAVE_GNU_PTH 1
15600 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
15601 ol_link_threads=pth
15602 ol_with_threads=found
15604 if test $ol_with_yielding_select = auto ; then
15605 ol_with_yielding_select=yes
15611 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15612 -o $ol_with_threads = lwp ; then
15614 for ac_hdr in thread.h synch.h
15616 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15617 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15618 echo "configure:15619: checking for $ac_hdr" >&5
15619 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15620 echo $ac_n "(cached) $ac_c" 1>&6
15622 cat > conftest.$ac_ext <<EOF
15623 #line 15624 "configure"
15624 #include "confdefs.h"
15627 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15628 { (eval echo configure:15629: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15629 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15630 if test -z "$ac_err"; then
15632 eval "ac_cv_header_$ac_safe=yes"
15635 echo "configure: failed program was:" >&5
15636 cat conftest.$ac_ext >&5
15638 eval "ac_cv_header_$ac_safe=no"
15642 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15643 echo "$ac_t""yes" 1>&6
15644 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15645 cat >> confdefs.h <<EOF
15646 #define $ac_tr_hdr 1
15650 echo "$ac_t""no" 1>&6
15654 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
15655 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
15656 echo "configure:15657: checking for thr_create in -lthread" >&5
15657 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
15658 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15659 echo $ac_n "(cached) $ac_c" 1>&6
15661 ac_save_LIBS="$LIBS"
15662 LIBS="-lthread $LIBS"
15663 cat > conftest.$ac_ext <<EOF
15664 #line 15665 "configure"
15665 #include "confdefs.h"
15666 /* Override any gcc2 internal prototype to avoid an error. */
15667 /* We use char because int might match the return type of a gcc2
15668 builtin and then its argument prototype would still apply. */
15675 if { (eval echo configure:15676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15677 eval "ac_cv_lib_$ac_lib_var=yes"
15679 echo "configure: failed program was:" >&5
15680 cat conftest.$ac_ext >&5
15682 eval "ac_cv_lib_$ac_lib_var=no"
15685 LIBS="$ac_save_LIBS"
15688 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15689 echo "$ac_t""yes" 1>&6
15692 echo "$ac_t""no" 1>&6
15697 if test $have_thr = yes ; then
15698 cat >> confdefs.h <<\EOF
15702 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
15703 ol_link_threads=thr
15705 if test $ol_with_yielding_select = auto ; then
15706 ol_with_yielding_select=yes
15710 thr_setconcurrency \
15711 thr_getconcurrency \
15714 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15715 echo "configure:15716: checking for $ac_func" >&5
15716 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15717 echo $ac_n "(cached) $ac_c" 1>&6
15719 cat > conftest.$ac_ext <<EOF
15720 #line 15721 "configure"
15721 #include "confdefs.h"
15722 /* System header to define __stub macros and hopefully few prototypes,
15723 which can conflict with char $ac_func(); below. */
15724 #include <assert.h>
15725 /* Override any gcc2 internal prototype to avoid an error. */
15726 /* We use char because int might match the return type of a gcc2
15727 builtin and then its argument prototype would still apply. */
15733 /* The GNU C library defines this for functions which it implements
15734 to always fail with ENOSYS. Some functions are actually named
15735 something starting with __ and the normal name is an alias. */
15736 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15744 if { (eval echo configure:15745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15746 eval "ac_cv_func_$ac_func=yes"
15748 echo "configure: failed program was:" >&5
15749 cat conftest.$ac_ext >&5
15751 eval "ac_cv_func_$ac_func=no"
15756 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15757 echo "$ac_t""yes" 1>&6
15758 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15759 cat >> confdefs.h <<EOF
15760 #define $ac_tr_func 1
15764 echo "$ac_t""no" 1>&6
15771 for ac_hdr in lwp/lwp.h
15773 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15774 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15775 echo "configure:15776: checking for $ac_hdr" >&5
15776 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15777 echo $ac_n "(cached) $ac_c" 1>&6
15779 cat > conftest.$ac_ext <<EOF
15780 #line 15781 "configure"
15781 #include "confdefs.h"
15784 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15785 { (eval echo configure:15786: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15786 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15787 if test -z "$ac_err"; then
15789 eval "ac_cv_header_$ac_safe=yes"
15792 echo "configure: failed program was:" >&5
15793 cat conftest.$ac_ext >&5
15795 eval "ac_cv_header_$ac_safe=no"
15799 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15800 echo "$ac_t""yes" 1>&6
15801 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15802 cat >> confdefs.h <<EOF
15803 #define $ac_tr_hdr 1
15807 echo "$ac_t""no" 1>&6
15811 if test $ac_cv_header_lwp_lwp_h = yes ; then
15812 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
15813 echo "configure:15814: checking for lwp_create in -llwp" >&5
15814 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
15815 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15816 echo $ac_n "(cached) $ac_c" 1>&6
15818 ac_save_LIBS="$LIBS"
15820 cat > conftest.$ac_ext <<EOF
15821 #line 15822 "configure"
15822 #include "confdefs.h"
15823 /* Override any gcc2 internal prototype to avoid an error. */
15824 /* We use char because int might match the return type of a gcc2
15825 builtin and then its argument prototype would still apply. */
15832 if { (eval echo configure:15833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15834 eval "ac_cv_lib_$ac_lib_var=yes"
15836 echo "configure: failed program was:" >&5
15837 cat conftest.$ac_ext >&5
15839 eval "ac_cv_lib_$ac_lib_var=no"
15842 LIBS="$ac_save_LIBS"
15845 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15846 echo "$ac_t""yes" 1>&6
15849 echo "$ac_t""no" 1>&6
15854 if test $have_lwp = yes ; then
15855 cat >> confdefs.h <<\EOF
15859 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
15860 ol_link_threads=lwp
15862 if test $ol_with_yielding_select = auto ; then
15863 ol_with_yielding_select=no
15869 if test $ol_with_yielding_select = yes ; then
15870 cat >> confdefs.h <<\EOF
15871 #define HAVE_YIELDING_SELECT 1
15876 if test $ol_with_threads = manual ; then
15877 ol_link_threads=yes
15879 echo "configure: warning: thread defines and link options must be set manually" 1>&2
15881 for ac_hdr in pthread.h sched.h
15883 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15884 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15885 echo "configure:15886: checking for $ac_hdr" >&5
15886 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15887 echo $ac_n "(cached) $ac_c" 1>&6
15889 cat > conftest.$ac_ext <<EOF
15890 #line 15891 "configure"
15891 #include "confdefs.h"
15894 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15895 { (eval echo configure:15896: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15896 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15897 if test -z "$ac_err"; then
15899 eval "ac_cv_header_$ac_safe=yes"
15902 echo "configure: failed program was:" >&5
15903 cat conftest.$ac_ext >&5
15905 eval "ac_cv_header_$ac_safe=no"
15909 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15910 echo "$ac_t""yes" 1>&6
15911 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15912 cat >> confdefs.h <<EOF
15913 #define $ac_tr_hdr 1
15917 echo "$ac_t""no" 1>&6
15921 for ac_func in sched_yield pthread_yield
15923 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15924 echo "configure:15925: checking for $ac_func" >&5
15925 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15926 echo $ac_n "(cached) $ac_c" 1>&6
15928 cat > conftest.$ac_ext <<EOF
15929 #line 15930 "configure"
15930 #include "confdefs.h"
15931 /* System header to define __stub macros and hopefully few prototypes,
15932 which can conflict with char $ac_func(); below. */
15933 #include <assert.h>
15934 /* Override any gcc2 internal prototype to avoid an error. */
15935 /* We use char because int might match the return type of a gcc2
15936 builtin and then its argument prototype would still apply. */
15942 /* The GNU C library defines this for functions which it implements
15943 to always fail with ENOSYS. Some functions are actually named
15944 something starting with __ and the normal name is an alias. */
15945 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15953 if { (eval echo configure:15954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15955 eval "ac_cv_func_$ac_func=yes"
15957 echo "configure: failed program was:" >&5
15958 cat conftest.$ac_ext >&5
15960 eval "ac_cv_func_$ac_func=no"
15965 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15966 echo "$ac_t""yes" 1>&6
15967 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15968 cat >> confdefs.h <<EOF
15969 #define $ac_tr_func 1
15973 echo "$ac_t""no" 1>&6
15978 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
15979 echo "configure:15980: checking for LinuxThreads pthread.h" >&5
15980 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
15981 echo $ac_n "(cached) $ac_c" 1>&6
15983 cat > conftest.$ac_ext <<EOF
15984 #line 15985 "configure"
15985 #include "confdefs.h"
15986 #include <pthread.h>
15988 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15989 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
15991 ol_cv_header_linux_threads=yes
15994 ol_cv_header_linux_threads=no
16001 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
16002 if test $ol_cv_header_linux_threads = yes; then
16003 cat >> confdefs.h <<\EOF
16004 #define HAVE_LINUX_THREADS 1
16010 for ac_hdr in mach/cthreads.h
16012 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16013 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16014 echo "configure:16015: checking for $ac_hdr" >&5
16015 if eval "test \"\${ac_cv_header_$ac_safe+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"
16023 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16024 { (eval echo configure:16025: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16025 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16026 if test -z "$ac_err"; then
16028 eval "ac_cv_header_$ac_safe=yes"
16031 echo "configure: failed program was:" >&5
16032 cat conftest.$ac_ext >&5
16034 eval "ac_cv_header_$ac_safe=no"
16038 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16039 echo "$ac_t""yes" 1>&6
16040 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16041 cat >> confdefs.h <<EOF
16042 #define $ac_tr_hdr 1
16046 echo "$ac_t""no" 1>&6
16050 for ac_hdr in lwp/lwp.h
16052 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16053 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16054 echo "configure:16055: checking for $ac_hdr" >&5
16055 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16056 echo $ac_n "(cached) $ac_c" 1>&6
16058 cat > conftest.$ac_ext <<EOF
16059 #line 16060 "configure"
16060 #include "confdefs.h"
16063 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16064 { (eval echo configure:16065: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16065 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16066 if test -z "$ac_err"; then
16068 eval "ac_cv_header_$ac_safe=yes"
16071 echo "configure: failed program was:" >&5
16072 cat conftest.$ac_ext >&5
16074 eval "ac_cv_header_$ac_safe=no"
16078 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16079 echo "$ac_t""yes" 1>&6
16080 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16081 cat >> confdefs.h <<EOF
16082 #define $ac_tr_hdr 1
16086 echo "$ac_t""no" 1>&6
16090 for ac_hdr in thread.h synch.h
16092 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16093 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16094 echo "configure:16095: checking for $ac_hdr" >&5
16095 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16096 echo $ac_n "(cached) $ac_c" 1>&6
16098 cat > conftest.$ac_ext <<EOF
16099 #line 16100 "configure"
16100 #include "confdefs.h"
16103 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16104 { (eval echo configure:16105: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16105 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16106 if test -z "$ac_err"; then
16108 eval "ac_cv_header_$ac_safe=yes"
16111 echo "configure: failed program was:" >&5
16112 cat conftest.$ac_ext >&5
16114 eval "ac_cv_header_$ac_safe=no"
16118 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16119 echo "$ac_t""yes" 1>&6
16120 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16121 cat >> confdefs.h <<EOF
16122 #define $ac_tr_hdr 1
16126 echo "$ac_t""no" 1>&6
16132 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
16133 cat >> confdefs.h <<\EOF
16134 #define REENTRANT 1
16137 cat >> confdefs.h <<\EOF
16138 #define _REENTRANT 1
16141 cat >> confdefs.h <<\EOF
16142 #define THREAD_SAFE 1
16145 cat >> confdefs.h <<\EOF
16146 #define _THREAD_SAFE 1
16149 cat >> confdefs.h <<\EOF
16150 #define THREADSAFE 1
16153 cat >> confdefs.h <<\EOF
16154 #define _THREADSAFE 1
16157 cat >> confdefs.h <<\EOF
16158 #define _SGI_MP_SOURCE 1
16162 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
16163 echo "configure:16164: checking for thread specific errno" >&5
16164 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
16165 echo $ac_n "(cached) $ac_c" 1>&6
16168 cat > conftest.$ac_ext <<EOF
16169 #line 16170 "configure"
16170 #include "confdefs.h"
16176 if { (eval echo configure:16177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16178 ol_cv_errno_thread_specific=yes
16180 echo "configure: failed program was:" >&5
16181 cat conftest.$ac_ext >&5
16183 ol_cv_errno_thread_specific=no
16189 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
16191 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
16192 echo "configure:16193: checking for thread specific h_errno" >&5
16193 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
16194 echo $ac_n "(cached) $ac_c" 1>&6
16197 cat > conftest.$ac_ext <<EOF
16198 #line 16199 "configure"
16199 #include "confdefs.h"
16205 if { (eval echo configure:16206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16207 ol_cv_h_errno_thread_specific=yes
16209 echo "configure: failed program was:" >&5
16210 cat conftest.$ac_ext >&5
16212 ol_cv_h_errno_thread_specific=no
16218 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
16220 if test $ol_cv_errno_thread_specific != yes \
16221 -o $ol_cv_h_errno_thread_specific != yes ; then
16222 LIBS="$LTHREAD_LIBS $LIBS"
16228 if test $ol_link_threads = no ; then
16229 if test $ol_with_threads = yes ; then
16230 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
16233 if test $ol_with_threads = auto ; then
16234 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
16238 cat >> confdefs.h <<\EOF
16239 #define NO_THREADS 1
16245 if test $ol_link_threads != no ; then
16246 cat >> confdefs.h <<\EOF
16247 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
16254 gethostbyname_r gethostbyaddr_r \
16257 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16258 echo "configure:16259: checking for $ac_func" >&5
16259 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
16260 echo $ac_n "(cached) $ac_c" 1>&6
16262 cat > conftest.$ac_ext <<EOF
16263 #line 16264 "configure"
16264 #include "confdefs.h"
16265 /* System header to define __stub macros and hopefully few prototypes,
16266 which can conflict with char $ac_func(); below. */
16267 #include <assert.h>
16268 /* Override any gcc2 internal prototype to avoid an error. */
16269 /* We use char because int might match the return type of a gcc2
16270 builtin and then its argument prototype would still apply. */
16276 /* The GNU C library defines this for functions which it implements
16277 to always fail with ENOSYS. Some functions are actually named
16278 something starting with __ and the normal name is an alias. */
16279 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16287 if { (eval echo configure:16288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16289 eval "ac_cv_func_$ac_func=yes"
16291 echo "configure: failed program was:" >&5
16292 cat conftest.$ac_ext >&5
16294 eval "ac_cv_func_$ac_func=no"
16299 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16300 echo "$ac_t""yes" 1>&6
16301 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16302 cat >> confdefs.h <<EOF
16303 #define $ac_tr_func 1
16307 echo "$ac_t""no" 1>&6
16312 if test "$ac_cv_func_ctime_r" = no ; then
16313 ol_cv_func_ctime_r_nargs=0
16315 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
16316 echo "configure:16317: checking number of arguments of ctime_r" >&5
16317 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
16318 echo $ac_n "(cached) $ac_c" 1>&6
16320 cat > conftest.$ac_ext <<EOF
16321 #line 16322 "configure"
16322 #include "confdefs.h"
16325 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
16328 if { (eval echo configure:16329: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16330 ol_cv_func_ctime_r_nargs3=yes
16332 echo "configure: failed program was:" >&5
16333 cat conftest.$ac_ext >&5
16335 ol_cv_func_ctime_r_nargs3=no
16339 cat > conftest.$ac_ext <<EOF
16340 #line 16341 "configure"
16341 #include "confdefs.h"
16344 time_t ti; char *buffer; ctime_r(&ti,buffer);
16347 if { (eval echo configure:16348: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16349 ol_cv_func_ctime_r_nargs2=yes
16351 echo "configure: failed program was:" >&5
16352 cat conftest.$ac_ext >&5
16354 ol_cv_func_ctime_r_nargs2=no
16358 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
16359 $ol_cv_func_ctime_r_nargs2 = no ; then
16361 ol_cv_func_ctime_r_nargs=3
16363 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
16364 $ol_cv_func_ctime_r_nargs2 = yes ; then
16366 ol_cv_func_ctime_r_nargs=2
16369 ol_cv_func_ctime_r_nargs=0
16374 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
16376 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
16377 cat >> confdefs.h <<EOF
16378 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
16385 if test "$ac_cv_func_gethostbyname_r" = yes ; then
16386 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
16387 echo "configure:16388: checking number of arguments of gethostbyname_r" >&5
16388 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
16389 echo $ac_n "(cached) $ac_c" 1>&6
16391 cat > conftest.$ac_ext <<EOF
16392 #line 16393 "configure"
16393 #include "confdefs.h"
16394 #include <sys/types.h>
16395 #include <sys/socket.h>
16396 #include <netinet/in.h>
16398 #define BUFSIZE (sizeof(struct hostent)+10)
16400 struct hostent hent; char buffer[BUFSIZE];
16401 int bufsize=BUFSIZE;int h_errno;
16402 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
16403 buffer, bufsize, &h_errno);
16406 if { (eval echo configure:16407: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16408 ol_cv_func_gethostbyname_r_nargs5=yes
16410 echo "configure: failed program was:" >&5
16411 cat conftest.$ac_ext >&5
16413 ol_cv_func_gethostbyname_r_nargs5=no
16417 cat > conftest.$ac_ext <<EOF
16418 #line 16419 "configure"
16419 #include "confdefs.h"
16420 #include <sys/types.h>
16421 #include <sys/socket.h>
16422 #include <netinet/in.h>
16424 #define BUFSIZE (sizeof(struct hostent)+10)
16426 struct hostent hent;struct hostent *rhent;
16427 char buffer[BUFSIZE];
16428 int bufsize=BUFSIZE;int h_errno;
16429 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
16433 if { (eval echo configure:16434: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16435 ol_cv_func_gethostbyname_r_nargs6=yes
16437 echo "configure: failed program was:" >&5
16438 cat conftest.$ac_ext >&5
16440 ol_cv_func_gethostbyname_r_nargs6=no
16444 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
16445 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
16447 ol_cv_func_gethostbyname_r_nargs=5
16449 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
16450 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
16452 ol_cv_func_gethostbyname_r_nargs=6
16455 ol_cv_func_gethostbyname_r_nargs=0
16460 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
16461 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
16462 cat >> confdefs.h <<EOF
16463 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
16469 ol_cv_func_gethostbyname_r_nargs=0
16472 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
16473 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
16474 echo "configure:16475: checking number of arguments of gethostbyaddr_r" >&5
16475 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
16476 echo $ac_n "(cached) $ac_c" 1>&6
16478 cat > conftest.$ac_ext <<EOF
16479 #line 16480 "configure"
16480 #include "confdefs.h"
16481 #include <sys/types.h>
16482 #include <sys/socket.h>
16483 #include <netinet/in.h>
16485 #define BUFSIZE (sizeof(struct hostent)+10)
16487 struct hostent hent; char buffer[BUFSIZE];
16488 struct in_addr add;
16489 size_t alen=sizeof(struct in_addr);
16490 int bufsize=BUFSIZE;int h_errno;
16491 (void)gethostbyaddr_r( (void *)&(add.s_addr),
16492 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
16495 if { (eval echo configure:16496: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16497 ol_cv_func_gethostbyaddr_r_nargs7=yes
16499 echo "configure: failed program was:" >&5
16500 cat conftest.$ac_ext >&5
16502 ol_cv_func_gethostbyaddr_r_nargs7=no
16506 cat > conftest.$ac_ext <<EOF
16507 #line 16508 "configure"
16508 #include "confdefs.h"
16509 #include <sys/types.h>
16510 #include <sys/socket.h>
16511 #include <netinet/in.h>
16513 #define BUFSIZE (sizeof(struct hostent)+10)
16515 struct hostent hent;
16516 struct hostent *rhent; char buffer[BUFSIZE];
16517 struct in_addr add;
16518 size_t alen=sizeof(struct in_addr);
16519 int bufsize=BUFSIZE;int h_errno;
16520 (void)gethostbyaddr_r( (void *)&(add.s_addr),
16521 alen, AF_INET, &hent, buffer, bufsize,
16525 if { (eval echo configure:16526: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16527 ol_cv_func_gethostbyaddr_r_nargs8=yes
16529 echo "configure: failed program was:" >&5
16530 cat conftest.$ac_ext >&5
16532 ol_cv_func_gethostbyaddr_r_nargs8=no
16536 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
16537 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
16539 ol_cv_func_gethostbyaddr_r_nargs=7
16541 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
16542 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
16544 ol_cv_func_gethostbyaddr_r_nargs=8
16547 ol_cv_func_gethostbyaddr_r_nargs=0
16552 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
16553 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
16554 cat >> confdefs.h <<EOF
16555 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
16561 ol_cv_func_gethostbyaddr_r_nargs=0
16566 if test $ol_with_ldbm_api = auto \
16567 -o $ol_with_ldbm_api = berkeley \
16568 -o $ol_with_ldbm_api = bcompat ; then
16570 if test $ol_with_ldbm_api = bcompat; then \
16571 for ac_hdr in db_185.h db.h
16573 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16574 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16575 echo "configure:16576: checking for $ac_hdr" >&5
16576 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16577 echo $ac_n "(cached) $ac_c" 1>&6
16579 cat > conftest.$ac_ext <<EOF
16580 #line 16581 "configure"
16581 #include "confdefs.h"
16584 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16585 { (eval echo configure:16586: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16586 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16587 if test -z "$ac_err"; then
16589 eval "ac_cv_header_$ac_safe=yes"
16592 echo "configure: failed program was:" >&5
16593 cat conftest.$ac_ext >&5
16595 eval "ac_cv_header_$ac_safe=no"
16599 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16600 echo "$ac_t""yes" 1>&6
16601 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16602 cat >> confdefs.h <<EOF
16603 #define $ac_tr_hdr 1
16607 echo "$ac_t""no" 1>&6
16611 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
16612 echo $ac_n "checking if Berkeley DB header compatibility""... $ac_c" 1>&6
16613 echo "configure:16614: checking if Berkeley DB header compatibility" >&5
16614 if eval "test \"\${ol_cv_header_db1+set}\" = set"; then
16615 echo $ac_n "(cached) $ac_c" 1>&6
16618 cat > conftest.$ac_ext <<EOF
16619 #line 16620 "configure"
16620 #include "confdefs.h"
16623 # include <db_185.h>
16628 /* this check could be improved */
16629 #ifndef DB_VERSION_MAJOR
16630 # define DB_VERSION_MAJOR 1
16633 #if DB_VERSION_MAJOR == 1
16638 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16639 egrep "__db_version_1" >/dev/null 2>&1; then
16641 ol_cv_header_db1=yes
16644 ol_cv_header_db1=no
16650 echo "$ac_t""$ol_cv_header_db1" 1>&6
16652 if test $ol_cv_header_db1 = yes ; then
16654 if test $ol_cv_lib_db = no ; then
16655 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
16656 echo "configure:16657: checking for Berkeley DB link (default)" >&5
16657 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
16658 echo $ac_n "(cached) $ac_c" 1>&6
16663 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16665 cat > conftest.$ac_ext <<EOF
16666 #line 16667 "configure"
16667 #include "confdefs.h"
16669 #ifdef HAVE_DB_185_H
16670 # include <db_185.h>
16675 #ifndef DB_VERSION_MAJOR
16676 # define DB_VERSION_MAJOR 1
16680 #define NULL ((void*)0)
16685 #if DB_VERSION_MAJOR > 1
16688 int major, minor, patch;
16690 version = db_version( &major, &minor, &patch );
16692 if( major != DB_VERSION_MAJOR ||
16693 minor < DB_VERSION_MINOR )
16695 printf("Berkeley DB version mismatch\n"
16696 "\texpected: %s\n\tgot: %s\n",
16697 DB_VERSION_STRING, version);
16703 #if DB_VERSION_MAJOR > 2
16704 db_env_create( NULL, 0 );
16705 #elif DB_VERSION_MAJOR > 1
16706 db_appexit( NULL );
16708 (void) dbopen( NULL, 0, 0, 0, NULL);
16713 if { (eval echo configure:16714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16717 echo "configure: failed program was:" >&5
16718 cat conftest.$ac_ext >&5
16728 echo "$ac_t""$ol_cv_db_none" 1>&6
16730 if test $ol_cv_db_none = yes ; then
16735 if test $ol_cv_lib_db = no ; then
16736 echo $ac_n "checking for Berkeley DB link (-ldb42)""... $ac_c" 1>&6
16737 echo "configure:16738: checking for Berkeley DB link (-ldb42)" >&5
16738 if eval "test \"\${ol_cv_db_db42+set}\" = set"; then
16739 echo $ac_n "(cached) $ac_c" 1>&6
16744 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16746 cat > conftest.$ac_ext <<EOF
16747 #line 16748 "configure"
16748 #include "confdefs.h"
16750 #ifdef HAVE_DB_185_H
16751 # include <db_185.h>
16756 #ifndef DB_VERSION_MAJOR
16757 # define DB_VERSION_MAJOR 1
16761 #define NULL ((void*)0)
16766 #if DB_VERSION_MAJOR > 1
16769 int major, minor, patch;
16771 version = db_version( &major, &minor, &patch );
16773 if( major != DB_VERSION_MAJOR ||
16774 minor < DB_VERSION_MINOR )
16776 printf("Berkeley DB version mismatch\n"
16777 "\texpected: %s\n\tgot: %s\n",
16778 DB_VERSION_STRING, version);
16784 #if DB_VERSION_MAJOR > 2
16785 db_env_create( NULL, 0 );
16786 #elif DB_VERSION_MAJOR > 1
16787 db_appexit( NULL );
16789 (void) dbopen( NULL, 0, 0, 0, NULL);
16794 if { (eval echo configure:16795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16798 echo "configure: failed program was:" >&5
16799 cat conftest.$ac_ext >&5
16809 echo "$ac_t""$ol_cv_db_db42" 1>&6
16811 if test $ol_cv_db_db42 = yes ; then
16812 ol_cv_lib_db=-ldb42
16816 if test $ol_cv_lib_db = no ; then
16817 echo $ac_n "checking for Berkeley DB link (-ldb-42)""... $ac_c" 1>&6
16818 echo "configure:16819: checking for Berkeley DB link (-ldb-42)" >&5
16819 if eval "test \"\${ol_cv_db_db_42+set}\" = set"; then
16820 echo $ac_n "(cached) $ac_c" 1>&6
16825 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16827 cat > conftest.$ac_ext <<EOF
16828 #line 16829 "configure"
16829 #include "confdefs.h"
16831 #ifdef HAVE_DB_185_H
16832 # include <db_185.h>
16837 #ifndef DB_VERSION_MAJOR
16838 # define DB_VERSION_MAJOR 1
16842 #define NULL ((void*)0)
16847 #if DB_VERSION_MAJOR > 1
16850 int major, minor, patch;
16852 version = db_version( &major, &minor, &patch );
16854 if( major != DB_VERSION_MAJOR ||
16855 minor < DB_VERSION_MINOR )
16857 printf("Berkeley DB version mismatch\n"
16858 "\texpected: %s\n\tgot: %s\n",
16859 DB_VERSION_STRING, version);
16865 #if DB_VERSION_MAJOR > 2
16866 db_env_create( NULL, 0 );
16867 #elif DB_VERSION_MAJOR > 1
16868 db_appexit( NULL );
16870 (void) dbopen( NULL, 0, 0, 0, NULL);
16875 if { (eval echo configure:16876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16879 echo "configure: failed program was:" >&5
16880 cat conftest.$ac_ext >&5
16890 echo "$ac_t""$ol_cv_db_db_42" 1>&6
16892 if test $ol_cv_db_db_42 = yes ; then
16893 ol_cv_lib_db=-ldb-42
16897 if test $ol_cv_lib_db = no ; then
16898 echo $ac_n "checking for Berkeley DB link (-ldb-4.2)""... $ac_c" 1>&6
16899 echo "configure:16900: checking for Berkeley DB link (-ldb-4.2)" >&5
16900 if eval "test \"\${ol_cv_db_db_4_dot_2+set}\" = set"; then
16901 echo $ac_n "(cached) $ac_c" 1>&6
16906 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16908 cat > conftest.$ac_ext <<EOF
16909 #line 16910 "configure"
16910 #include "confdefs.h"
16912 #ifdef HAVE_DB_185_H
16913 # include <db_185.h>
16918 #ifndef DB_VERSION_MAJOR
16919 # define DB_VERSION_MAJOR 1
16923 #define NULL ((void*)0)
16928 #if DB_VERSION_MAJOR > 1
16931 int major, minor, patch;
16933 version = db_version( &major, &minor, &patch );
16935 if( major != DB_VERSION_MAJOR ||
16936 minor < DB_VERSION_MINOR )
16938 printf("Berkeley DB version mismatch\n"
16939 "\texpected: %s\n\tgot: %s\n",
16940 DB_VERSION_STRING, version);
16946 #if DB_VERSION_MAJOR > 2
16947 db_env_create( NULL, 0 );
16948 #elif DB_VERSION_MAJOR > 1
16949 db_appexit( NULL );
16951 (void) dbopen( NULL, 0, 0, 0, NULL);
16956 if { (eval echo configure:16957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16958 ol_cv_db_db_4_dot_2=yes
16960 echo "configure: failed program was:" >&5
16961 cat conftest.$ac_ext >&5
16963 ol_cv_db_db_4_dot_2=no
16971 echo "$ac_t""$ol_cv_db_db_4_dot_2" 1>&6
16973 if test $ol_cv_db_db_4_dot_2 = yes ; then
16974 ol_cv_lib_db=-ldb-4.2
16978 if test $ol_cv_lib_db = no ; then
16979 echo $ac_n "checking for Berkeley DB link (-ldb-4-2)""... $ac_c" 1>&6
16980 echo "configure:16981: checking for Berkeley DB link (-ldb-4-2)" >&5
16981 if eval "test \"\${ol_cv_db_db_4_2+set}\" = set"; then
16982 echo $ac_n "(cached) $ac_c" 1>&6
16987 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16989 cat > conftest.$ac_ext <<EOF
16990 #line 16991 "configure"
16991 #include "confdefs.h"
16993 #ifdef HAVE_DB_185_H
16994 # include <db_185.h>
16999 #ifndef DB_VERSION_MAJOR
17000 # define DB_VERSION_MAJOR 1
17004 #define NULL ((void*)0)
17009 #if DB_VERSION_MAJOR > 1
17012 int major, minor, patch;
17014 version = db_version( &major, &minor, &patch );
17016 if( major != DB_VERSION_MAJOR ||
17017 minor < DB_VERSION_MINOR )
17019 printf("Berkeley DB version mismatch\n"
17020 "\texpected: %s\n\tgot: %s\n",
17021 DB_VERSION_STRING, version);
17027 #if DB_VERSION_MAJOR > 2
17028 db_env_create( NULL, 0 );
17029 #elif DB_VERSION_MAJOR > 1
17030 db_appexit( NULL );
17032 (void) dbopen( NULL, 0, 0, 0, NULL);
17037 if { (eval echo configure:17038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17039 ol_cv_db_db_4_2=yes
17041 echo "configure: failed program was:" >&5
17042 cat conftest.$ac_ext >&5
17052 echo "$ac_t""$ol_cv_db_db_4_2" 1>&6
17054 if test $ol_cv_db_db_4_2 = yes ; then
17055 ol_cv_lib_db=-ldb-4-2
17059 if test $ol_cv_lib_db = no ; then
17060 echo $ac_n "checking for Berkeley DB link (-ldb-4)""... $ac_c" 1>&6
17061 echo "configure:17062: checking for Berkeley DB link (-ldb-4)" >&5
17062 if eval "test \"\${ol_cv_db_db_4+set}\" = set"; then
17063 echo $ac_n "(cached) $ac_c" 1>&6
17068 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17070 cat > conftest.$ac_ext <<EOF
17071 #line 17072 "configure"
17072 #include "confdefs.h"
17074 #ifdef HAVE_DB_185_H
17075 # include <db_185.h>
17080 #ifndef DB_VERSION_MAJOR
17081 # define DB_VERSION_MAJOR 1
17085 #define NULL ((void*)0)
17090 #if DB_VERSION_MAJOR > 1
17093 int major, minor, patch;
17095 version = db_version( &major, &minor, &patch );
17097 if( major != DB_VERSION_MAJOR ||
17098 minor < DB_VERSION_MINOR )
17100 printf("Berkeley DB version mismatch\n"
17101 "\texpected: %s\n\tgot: %s\n",
17102 DB_VERSION_STRING, version);
17108 #if DB_VERSION_MAJOR > 2
17109 db_env_create( NULL, 0 );
17110 #elif DB_VERSION_MAJOR > 1
17111 db_appexit( NULL );
17113 (void) dbopen( NULL, 0, 0, 0, NULL);
17118 if { (eval echo configure:17119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17122 echo "configure: failed program was:" >&5
17123 cat conftest.$ac_ext >&5
17133 echo "$ac_t""$ol_cv_db_db_4" 1>&6
17135 if test $ol_cv_db_db_4 = yes ; then
17136 ol_cv_lib_db=-ldb-4
17140 if test $ol_cv_lib_db = no ; then
17141 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
17142 echo "configure:17143: checking for Berkeley DB link (-ldb4)" >&5
17143 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
17144 echo $ac_n "(cached) $ac_c" 1>&6
17149 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17151 cat > conftest.$ac_ext <<EOF
17152 #line 17153 "configure"
17153 #include "confdefs.h"
17155 #ifdef HAVE_DB_185_H
17156 # include <db_185.h>
17161 #ifndef DB_VERSION_MAJOR
17162 # define DB_VERSION_MAJOR 1
17166 #define NULL ((void*)0)
17171 #if DB_VERSION_MAJOR > 1
17174 int major, minor, patch;
17176 version = db_version( &major, &minor, &patch );
17178 if( major != DB_VERSION_MAJOR ||
17179 minor < DB_VERSION_MINOR )
17181 printf("Berkeley DB version mismatch\n"
17182 "\texpected: %s\n\tgot: %s\n",
17183 DB_VERSION_STRING, version);
17189 #if DB_VERSION_MAJOR > 2
17190 db_env_create( NULL, 0 );
17191 #elif DB_VERSION_MAJOR > 1
17192 db_appexit( NULL );
17194 (void) dbopen( NULL, 0, 0, 0, NULL);
17199 if { (eval echo configure:17200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17203 echo "configure: failed program was:" >&5
17204 cat conftest.$ac_ext >&5
17214 echo "$ac_t""$ol_cv_db_db4" 1>&6
17216 if test $ol_cv_db_db4 = yes ; then
17221 if test $ol_cv_lib_db = no ; then
17222 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
17223 echo "configure:17224: checking for Berkeley DB link (-ldb)" >&5
17224 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
17225 echo $ac_n "(cached) $ac_c" 1>&6
17230 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17232 cat > conftest.$ac_ext <<EOF
17233 #line 17234 "configure"
17234 #include "confdefs.h"
17236 #ifdef HAVE_DB_185_H
17237 # include <db_185.h>
17242 #ifndef DB_VERSION_MAJOR
17243 # define DB_VERSION_MAJOR 1
17247 #define NULL ((void*)0)
17252 #if DB_VERSION_MAJOR > 1
17255 int major, minor, patch;
17257 version = db_version( &major, &minor, &patch );
17259 if( major != DB_VERSION_MAJOR ||
17260 minor < DB_VERSION_MINOR )
17262 printf("Berkeley DB version mismatch\n"
17263 "\texpected: %s\n\tgot: %s\n",
17264 DB_VERSION_STRING, version);
17270 #if DB_VERSION_MAJOR > 2
17271 db_env_create( NULL, 0 );
17272 #elif DB_VERSION_MAJOR > 1
17273 db_appexit( NULL );
17275 (void) dbopen( NULL, 0, 0, 0, NULL);
17280 if { (eval echo configure:17281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17284 echo "configure: failed program was:" >&5
17285 cat conftest.$ac_ext >&5
17295 echo "$ac_t""$ol_cv_db_db" 1>&6
17297 if test $ol_cv_db_db = yes ; then
17302 if test $ol_cv_lib_db = no ; then
17303 echo $ac_n "checking for Berkeley DB link (-ldb41)""... $ac_c" 1>&6
17304 echo "configure:17305: checking for Berkeley DB link (-ldb41)" >&5
17305 if eval "test \"\${ol_cv_db_db41+set}\" = set"; then
17306 echo $ac_n "(cached) $ac_c" 1>&6
17311 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17313 cat > conftest.$ac_ext <<EOF
17314 #line 17315 "configure"
17315 #include "confdefs.h"
17317 #ifdef HAVE_DB_185_H
17318 # include <db_185.h>
17323 #ifndef DB_VERSION_MAJOR
17324 # define DB_VERSION_MAJOR 1
17328 #define NULL ((void*)0)
17333 #if DB_VERSION_MAJOR > 1
17336 int major, minor, patch;
17338 version = db_version( &major, &minor, &patch );
17340 if( major != DB_VERSION_MAJOR ||
17341 minor < DB_VERSION_MINOR )
17343 printf("Berkeley DB version mismatch\n"
17344 "\texpected: %s\n\tgot: %s\n",
17345 DB_VERSION_STRING, version);
17351 #if DB_VERSION_MAJOR > 2
17352 db_env_create( NULL, 0 );
17353 #elif DB_VERSION_MAJOR > 1
17354 db_appexit( NULL );
17356 (void) dbopen( NULL, 0, 0, 0, NULL);
17361 if { (eval echo configure:17362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17365 echo "configure: failed program was:" >&5
17366 cat conftest.$ac_ext >&5
17376 echo "$ac_t""$ol_cv_db_db41" 1>&6
17378 if test $ol_cv_db_db41 = yes ; then
17379 ol_cv_lib_db=-ldb41
17383 if test $ol_cv_lib_db = no ; then
17384 echo $ac_n "checking for Berkeley DB link (-ldb-41)""... $ac_c" 1>&6
17385 echo "configure:17386: checking for Berkeley DB link (-ldb-41)" >&5
17386 if eval "test \"\${ol_cv_db_db_41+set}\" = set"; then
17387 echo $ac_n "(cached) $ac_c" 1>&6
17392 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17394 cat > conftest.$ac_ext <<EOF
17395 #line 17396 "configure"
17396 #include "confdefs.h"
17398 #ifdef HAVE_DB_185_H
17399 # include <db_185.h>
17404 #ifndef DB_VERSION_MAJOR
17405 # define DB_VERSION_MAJOR 1
17409 #define NULL ((void*)0)
17414 #if DB_VERSION_MAJOR > 1
17417 int major, minor, patch;
17419 version = db_version( &major, &minor, &patch );
17421 if( major != DB_VERSION_MAJOR ||
17422 minor < DB_VERSION_MINOR )
17424 printf("Berkeley DB version mismatch\n"
17425 "\texpected: %s\n\tgot: %s\n",
17426 DB_VERSION_STRING, version);
17432 #if DB_VERSION_MAJOR > 2
17433 db_env_create( NULL, 0 );
17434 #elif DB_VERSION_MAJOR > 1
17435 db_appexit( NULL );
17437 (void) dbopen( NULL, 0, 0, 0, NULL);
17442 if { (eval echo configure:17443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17446 echo "configure: failed program was:" >&5
17447 cat conftest.$ac_ext >&5
17457 echo "$ac_t""$ol_cv_db_db_41" 1>&6
17459 if test $ol_cv_db_db_41 = yes ; then
17460 ol_cv_lib_db=-ldb-41
17464 if test $ol_cv_lib_db = no ; then
17465 echo $ac_n "checking for Berkeley DB link (-ldb-4.1)""... $ac_c" 1>&6
17466 echo "configure:17467: checking for Berkeley DB link (-ldb-4.1)" >&5
17467 if eval "test \"\${ol_cv_db_db_4_dot_1+set}\" = set"; then
17468 echo $ac_n "(cached) $ac_c" 1>&6
17473 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17475 cat > conftest.$ac_ext <<EOF
17476 #line 17477 "configure"
17477 #include "confdefs.h"
17479 #ifdef HAVE_DB_185_H
17480 # include <db_185.h>
17485 #ifndef DB_VERSION_MAJOR
17486 # define DB_VERSION_MAJOR 1
17490 #define NULL ((void*)0)
17495 #if DB_VERSION_MAJOR > 1
17498 int major, minor, patch;
17500 version = db_version( &major, &minor, &patch );
17502 if( major != DB_VERSION_MAJOR ||
17503 minor < DB_VERSION_MINOR )
17505 printf("Berkeley DB version mismatch\n"
17506 "\texpected: %s\n\tgot: %s\n",
17507 DB_VERSION_STRING, version);
17513 #if DB_VERSION_MAJOR > 2
17514 db_env_create( NULL, 0 );
17515 #elif DB_VERSION_MAJOR > 1
17516 db_appexit( NULL );
17518 (void) dbopen( NULL, 0, 0, 0, NULL);
17523 if { (eval echo configure:17524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17525 ol_cv_db_db_4_dot_1=yes
17527 echo "configure: failed program was:" >&5
17528 cat conftest.$ac_ext >&5
17530 ol_cv_db_db_4_dot_1=no
17538 echo "$ac_t""$ol_cv_db_db_4_dot_1" 1>&6
17540 if test $ol_cv_db_db_4_dot_1 = yes ; then
17541 ol_cv_lib_db=-ldb-4.1
17545 if test $ol_cv_lib_db = no ; then
17546 echo $ac_n "checking for Berkeley DB link (-ldb-4-1)""... $ac_c" 1>&6
17547 echo "configure:17548: checking for Berkeley DB link (-ldb-4-1)" >&5
17548 if eval "test \"\${ol_cv_db_db_4_1+set}\" = set"; then
17549 echo $ac_n "(cached) $ac_c" 1>&6
17554 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17556 cat > conftest.$ac_ext <<EOF
17557 #line 17558 "configure"
17558 #include "confdefs.h"
17560 #ifdef HAVE_DB_185_H
17561 # include <db_185.h>
17566 #ifndef DB_VERSION_MAJOR
17567 # define DB_VERSION_MAJOR 1
17571 #define NULL ((void*)0)
17576 #if DB_VERSION_MAJOR > 1
17579 int major, minor, patch;
17581 version = db_version( &major, &minor, &patch );
17583 if( major != DB_VERSION_MAJOR ||
17584 minor < DB_VERSION_MINOR )
17586 printf("Berkeley DB version mismatch\n"
17587 "\texpected: %s\n\tgot: %s\n",
17588 DB_VERSION_STRING, version);
17594 #if DB_VERSION_MAJOR > 2
17595 db_env_create( NULL, 0 );
17596 #elif DB_VERSION_MAJOR > 1
17597 db_appexit( NULL );
17599 (void) dbopen( NULL, 0, 0, 0, NULL);
17604 if { (eval echo configure:17605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17606 ol_cv_db_db_4_1=yes
17608 echo "configure: failed program was:" >&5
17609 cat conftest.$ac_ext >&5
17619 echo "$ac_t""$ol_cv_db_db_4_1" 1>&6
17621 if test $ol_cv_db_db_4_1 = yes ; then
17622 ol_cv_lib_db=-ldb-4-1
17626 if test $ol_cv_lib_db = no ; then
17627 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
17628 echo "configure:17629: checking for Berkeley DB link (-ldb3)" >&5
17629 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
17630 echo $ac_n "(cached) $ac_c" 1>&6
17635 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17637 cat > conftest.$ac_ext <<EOF
17638 #line 17639 "configure"
17639 #include "confdefs.h"
17641 #ifdef HAVE_DB_185_H
17642 # include <db_185.h>
17647 #ifndef DB_VERSION_MAJOR
17648 # define DB_VERSION_MAJOR 1
17652 #define NULL ((void*)0)
17657 #if DB_VERSION_MAJOR > 1
17660 int major, minor, patch;
17662 version = db_version( &major, &minor, &patch );
17664 if( major != DB_VERSION_MAJOR ||
17665 minor < DB_VERSION_MINOR )
17667 printf("Berkeley DB version mismatch\n"
17668 "\texpected: %s\n\tgot: %s\n",
17669 DB_VERSION_STRING, version);
17675 #if DB_VERSION_MAJOR > 2
17676 db_env_create( NULL, 0 );
17677 #elif DB_VERSION_MAJOR > 1
17678 db_appexit( NULL );
17680 (void) dbopen( NULL, 0, 0, 0, NULL);
17685 if { (eval echo configure:17686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17689 echo "configure: failed program was:" >&5
17690 cat conftest.$ac_ext >&5
17700 echo "$ac_t""$ol_cv_db_db3" 1>&6
17702 if test $ol_cv_db_db3 = yes ; then
17707 if test $ol_cv_lib_db = no ; then
17708 echo $ac_n "checking for Berkeley DB link (-ldb-3)""... $ac_c" 1>&6
17709 echo "configure:17710: checking for Berkeley DB link (-ldb-3)" >&5
17710 if eval "test \"\${ol_cv_db_db_3+set}\" = set"; then
17711 echo $ac_n "(cached) $ac_c" 1>&6
17716 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17718 cat > conftest.$ac_ext <<EOF
17719 #line 17720 "configure"
17720 #include "confdefs.h"
17722 #ifdef HAVE_DB_185_H
17723 # include <db_185.h>
17728 #ifndef DB_VERSION_MAJOR
17729 # define DB_VERSION_MAJOR 1
17733 #define NULL ((void*)0)
17738 #if DB_VERSION_MAJOR > 1
17741 int major, minor, patch;
17743 version = db_version( &major, &minor, &patch );
17745 if( major != DB_VERSION_MAJOR ||
17746 minor < DB_VERSION_MINOR )
17748 printf("Berkeley DB version mismatch\n"
17749 "\texpected: %s\n\tgot: %s\n",
17750 DB_VERSION_STRING, version);
17756 #if DB_VERSION_MAJOR > 2
17757 db_env_create( NULL, 0 );
17758 #elif DB_VERSION_MAJOR > 1
17759 db_appexit( NULL );
17761 (void) dbopen( NULL, 0, 0, 0, NULL);
17766 if { (eval echo configure:17767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17770 echo "configure: failed program was:" >&5
17771 cat conftest.$ac_ext >&5
17781 echo "$ac_t""$ol_cv_db_db_3" 1>&6
17783 if test $ol_cv_db_db_3 = yes ; then
17784 ol_cv_lib_db=-ldb-3
17788 if test $ol_cv_lib_db = no ; then
17789 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
17790 echo "configure:17791: checking for Berkeley DB link (-ldb2)" >&5
17791 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
17792 echo $ac_n "(cached) $ac_c" 1>&6
17797 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17799 cat > conftest.$ac_ext <<EOF
17800 #line 17801 "configure"
17801 #include "confdefs.h"
17803 #ifdef HAVE_DB_185_H
17804 # include <db_185.h>
17809 #ifndef DB_VERSION_MAJOR
17810 # define DB_VERSION_MAJOR 1
17814 #define NULL ((void*)0)
17819 #if DB_VERSION_MAJOR > 1
17822 int major, minor, patch;
17824 version = db_version( &major, &minor, &patch );
17826 if( major != DB_VERSION_MAJOR ||
17827 minor < DB_VERSION_MINOR )
17829 printf("Berkeley DB version mismatch\n"
17830 "\texpected: %s\n\tgot: %s\n",
17831 DB_VERSION_STRING, version);
17837 #if DB_VERSION_MAJOR > 2
17838 db_env_create( NULL, 0 );
17839 #elif DB_VERSION_MAJOR > 1
17840 db_appexit( NULL );
17842 (void) dbopen( NULL, 0, 0, 0, NULL);
17847 if { (eval echo configure:17848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17851 echo "configure: failed program was:" >&5
17852 cat conftest.$ac_ext >&5
17862 echo "$ac_t""$ol_cv_db_db2" 1>&6
17864 if test $ol_cv_db_db2 = yes ; then
17869 if test $ol_cv_lib_db = no ; then
17870 echo $ac_n "checking for Berkeley DB link (-ldb-2)""... $ac_c" 1>&6
17871 echo "configure:17872: checking for Berkeley DB link (-ldb-2)" >&5
17872 if eval "test \"\${ol_cv_db_db_2+set}\" = set"; then
17873 echo $ac_n "(cached) $ac_c" 1>&6
17878 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17880 cat > conftest.$ac_ext <<EOF
17881 #line 17882 "configure"
17882 #include "confdefs.h"
17884 #ifdef HAVE_DB_185_H
17885 # include <db_185.h>
17890 #ifndef DB_VERSION_MAJOR
17891 # define DB_VERSION_MAJOR 1
17895 #define NULL ((void*)0)
17900 #if DB_VERSION_MAJOR > 1
17903 int major, minor, patch;
17905 version = db_version( &major, &minor, &patch );
17907 if( major != DB_VERSION_MAJOR ||
17908 minor < DB_VERSION_MINOR )
17910 printf("Berkeley DB version mismatch\n"
17911 "\texpected: %s\n\tgot: %s\n",
17912 DB_VERSION_STRING, version);
17918 #if DB_VERSION_MAJOR > 2
17919 db_env_create( NULL, 0 );
17920 #elif DB_VERSION_MAJOR > 1
17921 db_appexit( NULL );
17923 (void) dbopen( NULL, 0, 0, 0, NULL);
17928 if { (eval echo configure:17929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17932 echo "configure: failed program was:" >&5
17933 cat conftest.$ac_ext >&5
17943 echo "$ac_t""$ol_cv_db_db_2" 1>&6
17945 if test $ol_cv_db_db_2 = yes ; then
17946 ol_cv_lib_db=-ldb-2
17950 if test $ol_cv_lib_db = no ; then
17951 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
17952 echo "configure:17953: checking for Berkeley DB link (-ldb1)" >&5
17953 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
17954 echo $ac_n "(cached) $ac_c" 1>&6
17959 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17961 cat > conftest.$ac_ext <<EOF
17962 #line 17963 "configure"
17963 #include "confdefs.h"
17965 #ifdef HAVE_DB_185_H
17966 # include <db_185.h>
17971 #ifndef DB_VERSION_MAJOR
17972 # define DB_VERSION_MAJOR 1
17976 #define NULL ((void*)0)
17981 #if DB_VERSION_MAJOR > 1
17984 int major, minor, patch;
17986 version = db_version( &major, &minor, &patch );
17988 if( major != DB_VERSION_MAJOR ||
17989 minor < DB_VERSION_MINOR )
17991 printf("Berkeley DB version mismatch\n"
17992 "\texpected: %s\n\tgot: %s\n",
17993 DB_VERSION_STRING, version);
17999 #if DB_VERSION_MAJOR > 2
18000 db_env_create( NULL, 0 );
18001 #elif DB_VERSION_MAJOR > 1
18002 db_appexit( NULL );
18004 (void) dbopen( NULL, 0, 0, 0, NULL);
18009 if { (eval echo configure:18010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18013 echo "configure: failed program was:" >&5
18014 cat conftest.$ac_ext >&5
18024 echo "$ac_t""$ol_cv_db_db1" 1>&6
18026 if test $ol_cv_db_db1 = yes ; then
18031 if test $ol_cv_lib_db = no ; then
18032 echo $ac_n "checking for Berkeley DB link (-ldb-1)""... $ac_c" 1>&6
18033 echo "configure:18034: checking for Berkeley DB link (-ldb-1)" >&5
18034 if eval "test \"\${ol_cv_db_db_1+set}\" = set"; then
18035 echo $ac_n "(cached) $ac_c" 1>&6
18040 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18042 cat > conftest.$ac_ext <<EOF
18043 #line 18044 "configure"
18044 #include "confdefs.h"
18046 #ifdef HAVE_DB_185_H
18047 # include <db_185.h>
18052 #ifndef DB_VERSION_MAJOR
18053 # define DB_VERSION_MAJOR 1
18057 #define NULL ((void*)0)
18062 #if DB_VERSION_MAJOR > 1
18065 int major, minor, patch;
18067 version = db_version( &major, &minor, &patch );
18069 if( major != DB_VERSION_MAJOR ||
18070 minor < DB_VERSION_MINOR )
18072 printf("Berkeley DB version mismatch\n"
18073 "\texpected: %s\n\tgot: %s\n",
18074 DB_VERSION_STRING, version);
18080 #if DB_VERSION_MAJOR > 2
18081 db_env_create( NULL, 0 );
18082 #elif DB_VERSION_MAJOR > 1
18083 db_appexit( NULL );
18085 (void) dbopen( NULL, 0, 0, 0, NULL);
18090 if { (eval echo configure:18091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18094 echo "configure: failed program was:" >&5
18095 cat conftest.$ac_ext >&5
18105 echo "$ac_t""$ol_cv_db_db_1" 1>&6
18107 if test $ol_cv_db_db_1 = yes ; then
18108 ol_cv_lib_db=-ldb-1
18113 if test "$ol_cv_lib_db" != no ; then
18114 ol_cv_berkeley_db=yes
18120 ol_cv_berkeley_db=no
18123 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18124 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18125 echo "configure:18126: checking for $ac_hdr" >&5
18126 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
18127 echo $ac_n "(cached) $ac_c" 1>&6
18129 cat > conftest.$ac_ext <<EOF
18130 #line 18131 "configure"
18131 #include "confdefs.h"
18134 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18135 { (eval echo configure:18136: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18136 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18137 if test -z "$ac_err"; then
18139 eval "ac_cv_header_$ac_safe=yes"
18142 echo "configure: failed program was:" >&5
18143 cat conftest.$ac_ext >&5
18145 eval "ac_cv_header_$ac_safe=no"
18149 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18150 echo "$ac_t""yes" 1>&6
18151 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18152 cat >> confdefs.h <<EOF
18153 #define $ac_tr_hdr 1
18157 echo "$ac_t""no" 1>&6
18161 if test $ac_cv_header_db_h = yes; then
18163 if test $ol_cv_lib_db = no ; then
18164 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
18165 echo "configure:18166: checking for Berkeley DB link (default)" >&5
18166 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
18167 echo $ac_n "(cached) $ac_c" 1>&6
18172 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18174 cat > conftest.$ac_ext <<EOF
18175 #line 18176 "configure"
18176 #include "confdefs.h"
18178 #ifdef HAVE_DB_185_H
18179 # include <db_185.h>
18184 #ifndef DB_VERSION_MAJOR
18185 # define DB_VERSION_MAJOR 1
18189 #define NULL ((void*)0)
18194 #if DB_VERSION_MAJOR > 1
18197 int major, minor, patch;
18199 version = db_version( &major, &minor, &patch );
18201 if( major != DB_VERSION_MAJOR ||
18202 minor < DB_VERSION_MINOR )
18204 printf("Berkeley DB version mismatch\n"
18205 "\texpected: %s\n\tgot: %s\n",
18206 DB_VERSION_STRING, version);
18212 #if DB_VERSION_MAJOR > 2
18213 db_env_create( NULL, 0 );
18214 #elif DB_VERSION_MAJOR > 1
18215 db_appexit( NULL );
18217 (void) dbopen( NULL, 0, 0, 0, NULL);
18222 if { (eval echo configure:18223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18226 echo "configure: failed program was:" >&5
18227 cat conftest.$ac_ext >&5
18237 echo "$ac_t""$ol_cv_db_none" 1>&6
18239 if test $ol_cv_db_none = yes ; then
18244 if test $ol_cv_lib_db = no ; then
18245 echo $ac_n "checking for Berkeley DB link (-ldb42)""... $ac_c" 1>&6
18246 echo "configure:18247: checking for Berkeley DB link (-ldb42)" >&5
18247 if eval "test \"\${ol_cv_db_db42+set}\" = set"; then
18248 echo $ac_n "(cached) $ac_c" 1>&6
18253 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18255 cat > conftest.$ac_ext <<EOF
18256 #line 18257 "configure"
18257 #include "confdefs.h"
18259 #ifdef HAVE_DB_185_H
18260 # include <db_185.h>
18265 #ifndef DB_VERSION_MAJOR
18266 # define DB_VERSION_MAJOR 1
18270 #define NULL ((void*)0)
18275 #if DB_VERSION_MAJOR > 1
18278 int major, minor, patch;
18280 version = db_version( &major, &minor, &patch );
18282 if( major != DB_VERSION_MAJOR ||
18283 minor < DB_VERSION_MINOR )
18285 printf("Berkeley DB version mismatch\n"
18286 "\texpected: %s\n\tgot: %s\n",
18287 DB_VERSION_STRING, version);
18293 #if DB_VERSION_MAJOR > 2
18294 db_env_create( NULL, 0 );
18295 #elif DB_VERSION_MAJOR > 1
18296 db_appexit( NULL );
18298 (void) dbopen( NULL, 0, 0, 0, NULL);
18303 if { (eval echo configure:18304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18307 echo "configure: failed program was:" >&5
18308 cat conftest.$ac_ext >&5
18318 echo "$ac_t""$ol_cv_db_db42" 1>&6
18320 if test $ol_cv_db_db42 = yes ; then
18321 ol_cv_lib_db=-ldb42
18325 if test $ol_cv_lib_db = no ; then
18326 echo $ac_n "checking for Berkeley DB link (-ldb-42)""... $ac_c" 1>&6
18327 echo "configure:18328: checking for Berkeley DB link (-ldb-42)" >&5
18328 if eval "test \"\${ol_cv_db_db_42+set}\" = set"; then
18329 echo $ac_n "(cached) $ac_c" 1>&6
18334 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18336 cat > conftest.$ac_ext <<EOF
18337 #line 18338 "configure"
18338 #include "confdefs.h"
18340 #ifdef HAVE_DB_185_H
18341 # include <db_185.h>
18346 #ifndef DB_VERSION_MAJOR
18347 # define DB_VERSION_MAJOR 1
18351 #define NULL ((void*)0)
18356 #if DB_VERSION_MAJOR > 1
18359 int major, minor, patch;
18361 version = db_version( &major, &minor, &patch );
18363 if( major != DB_VERSION_MAJOR ||
18364 minor < DB_VERSION_MINOR )
18366 printf("Berkeley DB version mismatch\n"
18367 "\texpected: %s\n\tgot: %s\n",
18368 DB_VERSION_STRING, version);
18374 #if DB_VERSION_MAJOR > 2
18375 db_env_create( NULL, 0 );
18376 #elif DB_VERSION_MAJOR > 1
18377 db_appexit( NULL );
18379 (void) dbopen( NULL, 0, 0, 0, NULL);
18384 if { (eval echo configure:18385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18388 echo "configure: failed program was:" >&5
18389 cat conftest.$ac_ext >&5
18399 echo "$ac_t""$ol_cv_db_db_42" 1>&6
18401 if test $ol_cv_db_db_42 = yes ; then
18402 ol_cv_lib_db=-ldb-42
18406 if test $ol_cv_lib_db = no ; then
18407 echo $ac_n "checking for Berkeley DB link (-ldb-4.2)""... $ac_c" 1>&6
18408 echo "configure:18409: checking for Berkeley DB link (-ldb-4.2)" >&5
18409 if eval "test \"\${ol_cv_db_db_4_dot_2+set}\" = set"; then
18410 echo $ac_n "(cached) $ac_c" 1>&6
18415 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18417 cat > conftest.$ac_ext <<EOF
18418 #line 18419 "configure"
18419 #include "confdefs.h"
18421 #ifdef HAVE_DB_185_H
18422 # include <db_185.h>
18427 #ifndef DB_VERSION_MAJOR
18428 # define DB_VERSION_MAJOR 1
18432 #define NULL ((void*)0)
18437 #if DB_VERSION_MAJOR > 1
18440 int major, minor, patch;
18442 version = db_version( &major, &minor, &patch );
18444 if( major != DB_VERSION_MAJOR ||
18445 minor < DB_VERSION_MINOR )
18447 printf("Berkeley DB version mismatch\n"
18448 "\texpected: %s\n\tgot: %s\n",
18449 DB_VERSION_STRING, version);
18455 #if DB_VERSION_MAJOR > 2
18456 db_env_create( NULL, 0 );
18457 #elif DB_VERSION_MAJOR > 1
18458 db_appexit( NULL );
18460 (void) dbopen( NULL, 0, 0, 0, NULL);
18465 if { (eval echo configure:18466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18467 ol_cv_db_db_4_dot_2=yes
18469 echo "configure: failed program was:" >&5
18470 cat conftest.$ac_ext >&5
18472 ol_cv_db_db_4_dot_2=no
18480 echo "$ac_t""$ol_cv_db_db_4_dot_2" 1>&6
18482 if test $ol_cv_db_db_4_dot_2 = yes ; then
18483 ol_cv_lib_db=-ldb-4.2
18487 if test $ol_cv_lib_db = no ; then
18488 echo $ac_n "checking for Berkeley DB link (-ldb-4-2)""... $ac_c" 1>&6
18489 echo "configure:18490: checking for Berkeley DB link (-ldb-4-2)" >&5
18490 if eval "test \"\${ol_cv_db_db_4_2+set}\" = set"; then
18491 echo $ac_n "(cached) $ac_c" 1>&6
18496 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18498 cat > conftest.$ac_ext <<EOF
18499 #line 18500 "configure"
18500 #include "confdefs.h"
18502 #ifdef HAVE_DB_185_H
18503 # include <db_185.h>
18508 #ifndef DB_VERSION_MAJOR
18509 # define DB_VERSION_MAJOR 1
18513 #define NULL ((void*)0)
18518 #if DB_VERSION_MAJOR > 1
18521 int major, minor, patch;
18523 version = db_version( &major, &minor, &patch );
18525 if( major != DB_VERSION_MAJOR ||
18526 minor < DB_VERSION_MINOR )
18528 printf("Berkeley DB version mismatch\n"
18529 "\texpected: %s\n\tgot: %s\n",
18530 DB_VERSION_STRING, version);
18536 #if DB_VERSION_MAJOR > 2
18537 db_env_create( NULL, 0 );
18538 #elif DB_VERSION_MAJOR > 1
18539 db_appexit( NULL );
18541 (void) dbopen( NULL, 0, 0, 0, NULL);
18546 if { (eval echo configure:18547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18548 ol_cv_db_db_4_2=yes
18550 echo "configure: failed program was:" >&5
18551 cat conftest.$ac_ext >&5
18561 echo "$ac_t""$ol_cv_db_db_4_2" 1>&6
18563 if test $ol_cv_db_db_4_2 = yes ; then
18564 ol_cv_lib_db=-ldb-4-2
18568 if test $ol_cv_lib_db = no ; then
18569 echo $ac_n "checking for Berkeley DB link (-ldb-4)""... $ac_c" 1>&6
18570 echo "configure:18571: checking for Berkeley DB link (-ldb-4)" >&5
18571 if eval "test \"\${ol_cv_db_db_4+set}\" = set"; then
18572 echo $ac_n "(cached) $ac_c" 1>&6
18577 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18579 cat > conftest.$ac_ext <<EOF
18580 #line 18581 "configure"
18581 #include "confdefs.h"
18583 #ifdef HAVE_DB_185_H
18584 # include <db_185.h>
18589 #ifndef DB_VERSION_MAJOR
18590 # define DB_VERSION_MAJOR 1
18594 #define NULL ((void*)0)
18599 #if DB_VERSION_MAJOR > 1
18602 int major, minor, patch;
18604 version = db_version( &major, &minor, &patch );
18606 if( major != DB_VERSION_MAJOR ||
18607 minor < DB_VERSION_MINOR )
18609 printf("Berkeley DB version mismatch\n"
18610 "\texpected: %s\n\tgot: %s\n",
18611 DB_VERSION_STRING, version);
18617 #if DB_VERSION_MAJOR > 2
18618 db_env_create( NULL, 0 );
18619 #elif DB_VERSION_MAJOR > 1
18620 db_appexit( NULL );
18622 (void) dbopen( NULL, 0, 0, 0, NULL);
18627 if { (eval echo configure:18628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18631 echo "configure: failed program was:" >&5
18632 cat conftest.$ac_ext >&5
18642 echo "$ac_t""$ol_cv_db_db_4" 1>&6
18644 if test $ol_cv_db_db_4 = yes ; then
18645 ol_cv_lib_db=-ldb-4
18649 if test $ol_cv_lib_db = no ; then
18650 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
18651 echo "configure:18652: checking for Berkeley DB link (-ldb4)" >&5
18652 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
18653 echo $ac_n "(cached) $ac_c" 1>&6
18658 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18660 cat > conftest.$ac_ext <<EOF
18661 #line 18662 "configure"
18662 #include "confdefs.h"
18664 #ifdef HAVE_DB_185_H
18665 # include <db_185.h>
18670 #ifndef DB_VERSION_MAJOR
18671 # define DB_VERSION_MAJOR 1
18675 #define NULL ((void*)0)
18680 #if DB_VERSION_MAJOR > 1
18683 int major, minor, patch;
18685 version = db_version( &major, &minor, &patch );
18687 if( major != DB_VERSION_MAJOR ||
18688 minor < DB_VERSION_MINOR )
18690 printf("Berkeley DB version mismatch\n"
18691 "\texpected: %s\n\tgot: %s\n",
18692 DB_VERSION_STRING, version);
18698 #if DB_VERSION_MAJOR > 2
18699 db_env_create( NULL, 0 );
18700 #elif DB_VERSION_MAJOR > 1
18701 db_appexit( NULL );
18703 (void) dbopen( NULL, 0, 0, 0, NULL);
18708 if { (eval echo configure:18709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18712 echo "configure: failed program was:" >&5
18713 cat conftest.$ac_ext >&5
18723 echo "$ac_t""$ol_cv_db_db4" 1>&6
18725 if test $ol_cv_db_db4 = yes ; then
18730 if test $ol_cv_lib_db = no ; then
18731 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
18732 echo "configure:18733: checking for Berkeley DB link (-ldb)" >&5
18733 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
18734 echo $ac_n "(cached) $ac_c" 1>&6
18739 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18741 cat > conftest.$ac_ext <<EOF
18742 #line 18743 "configure"
18743 #include "confdefs.h"
18745 #ifdef HAVE_DB_185_H
18746 # include <db_185.h>
18751 #ifndef DB_VERSION_MAJOR
18752 # define DB_VERSION_MAJOR 1
18756 #define NULL ((void*)0)
18761 #if DB_VERSION_MAJOR > 1
18764 int major, minor, patch;
18766 version = db_version( &major, &minor, &patch );
18768 if( major != DB_VERSION_MAJOR ||
18769 minor < DB_VERSION_MINOR )
18771 printf("Berkeley DB version mismatch\n"
18772 "\texpected: %s\n\tgot: %s\n",
18773 DB_VERSION_STRING, version);
18779 #if DB_VERSION_MAJOR > 2
18780 db_env_create( NULL, 0 );
18781 #elif DB_VERSION_MAJOR > 1
18782 db_appexit( NULL );
18784 (void) dbopen( NULL, 0, 0, 0, NULL);
18789 if { (eval echo configure:18790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18793 echo "configure: failed program was:" >&5
18794 cat conftest.$ac_ext >&5
18804 echo "$ac_t""$ol_cv_db_db" 1>&6
18806 if test $ol_cv_db_db = yes ; then
18811 if test $ol_cv_lib_db = no ; then
18812 echo $ac_n "checking for Berkeley DB link (-ldb41)""... $ac_c" 1>&6
18813 echo "configure:18814: checking for Berkeley DB link (-ldb41)" >&5
18814 if eval "test \"\${ol_cv_db_db41+set}\" = set"; then
18815 echo $ac_n "(cached) $ac_c" 1>&6
18820 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18822 cat > conftest.$ac_ext <<EOF
18823 #line 18824 "configure"
18824 #include "confdefs.h"
18826 #ifdef HAVE_DB_185_H
18827 # include <db_185.h>
18832 #ifndef DB_VERSION_MAJOR
18833 # define DB_VERSION_MAJOR 1
18837 #define NULL ((void*)0)
18842 #if DB_VERSION_MAJOR > 1
18845 int major, minor, patch;
18847 version = db_version( &major, &minor, &patch );
18849 if( major != DB_VERSION_MAJOR ||
18850 minor < DB_VERSION_MINOR )
18852 printf("Berkeley DB version mismatch\n"
18853 "\texpected: %s\n\tgot: %s\n",
18854 DB_VERSION_STRING, version);
18860 #if DB_VERSION_MAJOR > 2
18861 db_env_create( NULL, 0 );
18862 #elif DB_VERSION_MAJOR > 1
18863 db_appexit( NULL );
18865 (void) dbopen( NULL, 0, 0, 0, NULL);
18870 if { (eval echo configure:18871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18874 echo "configure: failed program was:" >&5
18875 cat conftest.$ac_ext >&5
18885 echo "$ac_t""$ol_cv_db_db41" 1>&6
18887 if test $ol_cv_db_db41 = yes ; then
18888 ol_cv_lib_db=-ldb41
18892 if test $ol_cv_lib_db = no ; then
18893 echo $ac_n "checking for Berkeley DB link (-ldb-41)""... $ac_c" 1>&6
18894 echo "configure:18895: checking for Berkeley DB link (-ldb-41)" >&5
18895 if eval "test \"\${ol_cv_db_db_41+set}\" = set"; then
18896 echo $ac_n "(cached) $ac_c" 1>&6
18901 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18903 cat > conftest.$ac_ext <<EOF
18904 #line 18905 "configure"
18905 #include "confdefs.h"
18907 #ifdef HAVE_DB_185_H
18908 # include <db_185.h>
18913 #ifndef DB_VERSION_MAJOR
18914 # define DB_VERSION_MAJOR 1
18918 #define NULL ((void*)0)
18923 #if DB_VERSION_MAJOR > 1
18926 int major, minor, patch;
18928 version = db_version( &major, &minor, &patch );
18930 if( major != DB_VERSION_MAJOR ||
18931 minor < DB_VERSION_MINOR )
18933 printf("Berkeley DB version mismatch\n"
18934 "\texpected: %s\n\tgot: %s\n",
18935 DB_VERSION_STRING, version);
18941 #if DB_VERSION_MAJOR > 2
18942 db_env_create( NULL, 0 );
18943 #elif DB_VERSION_MAJOR > 1
18944 db_appexit( NULL );
18946 (void) dbopen( NULL, 0, 0, 0, NULL);
18951 if { (eval echo configure:18952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18955 echo "configure: failed program was:" >&5
18956 cat conftest.$ac_ext >&5
18966 echo "$ac_t""$ol_cv_db_db_41" 1>&6
18968 if test $ol_cv_db_db_41 = yes ; then
18969 ol_cv_lib_db=-ldb-41
18973 if test $ol_cv_lib_db = no ; then
18974 echo $ac_n "checking for Berkeley DB link (-ldb-4.1)""... $ac_c" 1>&6
18975 echo "configure:18976: checking for Berkeley DB link (-ldb-4.1)" >&5
18976 if eval "test \"\${ol_cv_db_db_4_dot_1+set}\" = set"; then
18977 echo $ac_n "(cached) $ac_c" 1>&6
18982 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18984 cat > conftest.$ac_ext <<EOF
18985 #line 18986 "configure"
18986 #include "confdefs.h"
18988 #ifdef HAVE_DB_185_H
18989 # include <db_185.h>
18994 #ifndef DB_VERSION_MAJOR
18995 # define DB_VERSION_MAJOR 1
18999 #define NULL ((void*)0)
19004 #if DB_VERSION_MAJOR > 1
19007 int major, minor, patch;
19009 version = db_version( &major, &minor, &patch );
19011 if( major != DB_VERSION_MAJOR ||
19012 minor < DB_VERSION_MINOR )
19014 printf("Berkeley DB version mismatch\n"
19015 "\texpected: %s\n\tgot: %s\n",
19016 DB_VERSION_STRING, version);
19022 #if DB_VERSION_MAJOR > 2
19023 db_env_create( NULL, 0 );
19024 #elif DB_VERSION_MAJOR > 1
19025 db_appexit( NULL );
19027 (void) dbopen( NULL, 0, 0, 0, NULL);
19032 if { (eval echo configure:19033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19034 ol_cv_db_db_4_dot_1=yes
19036 echo "configure: failed program was:" >&5
19037 cat conftest.$ac_ext >&5
19039 ol_cv_db_db_4_dot_1=no
19047 echo "$ac_t""$ol_cv_db_db_4_dot_1" 1>&6
19049 if test $ol_cv_db_db_4_dot_1 = yes ; then
19050 ol_cv_lib_db=-ldb-4.1
19054 if test $ol_cv_lib_db = no ; then
19055 echo $ac_n "checking for Berkeley DB link (-ldb-4-1)""... $ac_c" 1>&6
19056 echo "configure:19057: checking for Berkeley DB link (-ldb-4-1)" >&5
19057 if eval "test \"\${ol_cv_db_db_4_1+set}\" = set"; then
19058 echo $ac_n "(cached) $ac_c" 1>&6
19063 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19065 cat > conftest.$ac_ext <<EOF
19066 #line 19067 "configure"
19067 #include "confdefs.h"
19069 #ifdef HAVE_DB_185_H
19070 # include <db_185.h>
19075 #ifndef DB_VERSION_MAJOR
19076 # define DB_VERSION_MAJOR 1
19080 #define NULL ((void*)0)
19085 #if DB_VERSION_MAJOR > 1
19088 int major, minor, patch;
19090 version = db_version( &major, &minor, &patch );
19092 if( major != DB_VERSION_MAJOR ||
19093 minor < DB_VERSION_MINOR )
19095 printf("Berkeley DB version mismatch\n"
19096 "\texpected: %s\n\tgot: %s\n",
19097 DB_VERSION_STRING, version);
19103 #if DB_VERSION_MAJOR > 2
19104 db_env_create( NULL, 0 );
19105 #elif DB_VERSION_MAJOR > 1
19106 db_appexit( NULL );
19108 (void) dbopen( NULL, 0, 0, 0, NULL);
19113 if { (eval echo configure:19114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19115 ol_cv_db_db_4_1=yes
19117 echo "configure: failed program was:" >&5
19118 cat conftest.$ac_ext >&5
19128 echo "$ac_t""$ol_cv_db_db_4_1" 1>&6
19130 if test $ol_cv_db_db_4_1 = yes ; then
19131 ol_cv_lib_db=-ldb-4-1
19135 if test $ol_cv_lib_db = no ; then
19136 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
19137 echo "configure:19138: checking for Berkeley DB link (-ldb3)" >&5
19138 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
19139 echo $ac_n "(cached) $ac_c" 1>&6
19144 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19146 cat > conftest.$ac_ext <<EOF
19147 #line 19148 "configure"
19148 #include "confdefs.h"
19150 #ifdef HAVE_DB_185_H
19151 # include <db_185.h>
19156 #ifndef DB_VERSION_MAJOR
19157 # define DB_VERSION_MAJOR 1
19161 #define NULL ((void*)0)
19166 #if DB_VERSION_MAJOR > 1
19169 int major, minor, patch;
19171 version = db_version( &major, &minor, &patch );
19173 if( major != DB_VERSION_MAJOR ||
19174 minor < DB_VERSION_MINOR )
19176 printf("Berkeley DB version mismatch\n"
19177 "\texpected: %s\n\tgot: %s\n",
19178 DB_VERSION_STRING, version);
19184 #if DB_VERSION_MAJOR > 2
19185 db_env_create( NULL, 0 );
19186 #elif DB_VERSION_MAJOR > 1
19187 db_appexit( NULL );
19189 (void) dbopen( NULL, 0, 0, 0, NULL);
19194 if { (eval echo configure:19195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19198 echo "configure: failed program was:" >&5
19199 cat conftest.$ac_ext >&5
19209 echo "$ac_t""$ol_cv_db_db3" 1>&6
19211 if test $ol_cv_db_db3 = yes ; then
19216 if test $ol_cv_lib_db = no ; then
19217 echo $ac_n "checking for Berkeley DB link (-ldb-3)""... $ac_c" 1>&6
19218 echo "configure:19219: checking for Berkeley DB link (-ldb-3)" >&5
19219 if eval "test \"\${ol_cv_db_db_3+set}\" = set"; then
19220 echo $ac_n "(cached) $ac_c" 1>&6
19225 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19227 cat > conftest.$ac_ext <<EOF
19228 #line 19229 "configure"
19229 #include "confdefs.h"
19231 #ifdef HAVE_DB_185_H
19232 # include <db_185.h>
19237 #ifndef DB_VERSION_MAJOR
19238 # define DB_VERSION_MAJOR 1
19242 #define NULL ((void*)0)
19247 #if DB_VERSION_MAJOR > 1
19250 int major, minor, patch;
19252 version = db_version( &major, &minor, &patch );
19254 if( major != DB_VERSION_MAJOR ||
19255 minor < DB_VERSION_MINOR )
19257 printf("Berkeley DB version mismatch\n"
19258 "\texpected: %s\n\tgot: %s\n",
19259 DB_VERSION_STRING, version);
19265 #if DB_VERSION_MAJOR > 2
19266 db_env_create( NULL, 0 );
19267 #elif DB_VERSION_MAJOR > 1
19268 db_appexit( NULL );
19270 (void) dbopen( NULL, 0, 0, 0, NULL);
19275 if { (eval echo configure:19276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19279 echo "configure: failed program was:" >&5
19280 cat conftest.$ac_ext >&5
19290 echo "$ac_t""$ol_cv_db_db_3" 1>&6
19292 if test $ol_cv_db_db_3 = yes ; then
19293 ol_cv_lib_db=-ldb-3
19297 if test $ol_cv_lib_db = no ; then
19298 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
19299 echo "configure:19300: checking for Berkeley DB link (-ldb2)" >&5
19300 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
19301 echo $ac_n "(cached) $ac_c" 1>&6
19306 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19308 cat > conftest.$ac_ext <<EOF
19309 #line 19310 "configure"
19310 #include "confdefs.h"
19312 #ifdef HAVE_DB_185_H
19313 # include <db_185.h>
19318 #ifndef DB_VERSION_MAJOR
19319 # define DB_VERSION_MAJOR 1
19323 #define NULL ((void*)0)
19328 #if DB_VERSION_MAJOR > 1
19331 int major, minor, patch;
19333 version = db_version( &major, &minor, &patch );
19335 if( major != DB_VERSION_MAJOR ||
19336 minor < DB_VERSION_MINOR )
19338 printf("Berkeley DB version mismatch\n"
19339 "\texpected: %s\n\tgot: %s\n",
19340 DB_VERSION_STRING, version);
19346 #if DB_VERSION_MAJOR > 2
19347 db_env_create( NULL, 0 );
19348 #elif DB_VERSION_MAJOR > 1
19349 db_appexit( NULL );
19351 (void) dbopen( NULL, 0, 0, 0, NULL);
19356 if { (eval echo configure:19357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19360 echo "configure: failed program was:" >&5
19361 cat conftest.$ac_ext >&5
19371 echo "$ac_t""$ol_cv_db_db2" 1>&6
19373 if test $ol_cv_db_db2 = yes ; then
19378 if test $ol_cv_lib_db = no ; then
19379 echo $ac_n "checking for Berkeley DB link (-ldb-2)""... $ac_c" 1>&6
19380 echo "configure:19381: checking for Berkeley DB link (-ldb-2)" >&5
19381 if eval "test \"\${ol_cv_db_db_2+set}\" = set"; then
19382 echo $ac_n "(cached) $ac_c" 1>&6
19387 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19389 cat > conftest.$ac_ext <<EOF
19390 #line 19391 "configure"
19391 #include "confdefs.h"
19393 #ifdef HAVE_DB_185_H
19394 # include <db_185.h>
19399 #ifndef DB_VERSION_MAJOR
19400 # define DB_VERSION_MAJOR 1
19404 #define NULL ((void*)0)
19409 #if DB_VERSION_MAJOR > 1
19412 int major, minor, patch;
19414 version = db_version( &major, &minor, &patch );
19416 if( major != DB_VERSION_MAJOR ||
19417 minor < DB_VERSION_MINOR )
19419 printf("Berkeley DB version mismatch\n"
19420 "\texpected: %s\n\tgot: %s\n",
19421 DB_VERSION_STRING, version);
19427 #if DB_VERSION_MAJOR > 2
19428 db_env_create( NULL, 0 );
19429 #elif DB_VERSION_MAJOR > 1
19430 db_appexit( NULL );
19432 (void) dbopen( NULL, 0, 0, 0, NULL);
19437 if { (eval echo configure:19438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19441 echo "configure: failed program was:" >&5
19442 cat conftest.$ac_ext >&5
19452 echo "$ac_t""$ol_cv_db_db_2" 1>&6
19454 if test $ol_cv_db_db_2 = yes ; then
19455 ol_cv_lib_db=-ldb-2
19459 if test $ol_cv_lib_db = no ; then
19460 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
19461 echo "configure:19462: checking for Berkeley DB link (-ldb1)" >&5
19462 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
19463 echo $ac_n "(cached) $ac_c" 1>&6
19468 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19470 cat > conftest.$ac_ext <<EOF
19471 #line 19472 "configure"
19472 #include "confdefs.h"
19474 #ifdef HAVE_DB_185_H
19475 # include <db_185.h>
19480 #ifndef DB_VERSION_MAJOR
19481 # define DB_VERSION_MAJOR 1
19485 #define NULL ((void*)0)
19490 #if DB_VERSION_MAJOR > 1
19493 int major, minor, patch;
19495 version = db_version( &major, &minor, &patch );
19497 if( major != DB_VERSION_MAJOR ||
19498 minor < DB_VERSION_MINOR )
19500 printf("Berkeley DB version mismatch\n"
19501 "\texpected: %s\n\tgot: %s\n",
19502 DB_VERSION_STRING, version);
19508 #if DB_VERSION_MAJOR > 2
19509 db_env_create( NULL, 0 );
19510 #elif DB_VERSION_MAJOR > 1
19511 db_appexit( NULL );
19513 (void) dbopen( NULL, 0, 0, 0, NULL);
19518 if { (eval echo configure:19519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19522 echo "configure: failed program was:" >&5
19523 cat conftest.$ac_ext >&5
19533 echo "$ac_t""$ol_cv_db_db1" 1>&6
19535 if test $ol_cv_db_db1 = yes ; then
19540 if test $ol_cv_lib_db = no ; then
19541 echo $ac_n "checking for Berkeley DB link (-ldb-1)""... $ac_c" 1>&6
19542 echo "configure:19543: checking for Berkeley DB link (-ldb-1)" >&5
19543 if eval "test \"\${ol_cv_db_db_1+set}\" = set"; then
19544 echo $ac_n "(cached) $ac_c" 1>&6
19549 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19551 cat > conftest.$ac_ext <<EOF
19552 #line 19553 "configure"
19553 #include "confdefs.h"
19555 #ifdef HAVE_DB_185_H
19556 # include <db_185.h>
19561 #ifndef DB_VERSION_MAJOR
19562 # define DB_VERSION_MAJOR 1
19566 #define NULL ((void*)0)
19571 #if DB_VERSION_MAJOR > 1
19574 int major, minor, patch;
19576 version = db_version( &major, &minor, &patch );
19578 if( major != DB_VERSION_MAJOR ||
19579 minor < DB_VERSION_MINOR )
19581 printf("Berkeley DB version mismatch\n"
19582 "\texpected: %s\n\tgot: %s\n",
19583 DB_VERSION_STRING, version);
19589 #if DB_VERSION_MAJOR > 2
19590 db_env_create( NULL, 0 );
19591 #elif DB_VERSION_MAJOR > 1
19592 db_appexit( NULL );
19594 (void) dbopen( NULL, 0, 0, 0, NULL);
19599 if { (eval echo configure:19600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19603 echo "configure: failed program was:" >&5
19604 cat conftest.$ac_ext >&5
19614 echo "$ac_t""$ol_cv_db_db_1" 1>&6
19616 if test $ol_cv_db_db_1 = yes ; then
19617 ol_cv_lib_db=-ldb-1
19622 if test "$ol_cv_lib_db" != no ; then
19623 ol_cv_berkeley_db=yes
19624 echo $ac_n "checking for Berkeley DB thread support""... $ac_c" 1>&6
19625 echo "configure:19626: checking for Berkeley DB thread support" >&5
19626 if eval "test \"\${ol_cv_berkeley_db_thread+set}\" = set"; then
19627 echo $ac_n "(cached) $ac_c" 1>&6
19631 LIBS="$LTHREAD_LIBS $LIBS"
19632 if test $ol_cv_lib_db != yes ; then
19633 LIBS="$ol_cv_lib_db $LIBS"
19636 if test "$cross_compiling" = yes; then
19637 ol_cv_berkeley_db_thread=cross
19639 cat > conftest.$ac_ext <<EOF
19640 #line 19641 "configure"
19641 #include "confdefs.h"
19643 #ifdef HAVE_DB_185_H
19649 #define NULL ((void *)0)
19654 u_int32_t flags = DB_CREATE |
19660 #if DB_VERSION_MAJOR > 2
19661 DB_ENV *env = NULL;
19663 rc = db_env_create( &env, 0 );
19665 flags |= DB_INIT_MPOOL;
19666 #ifdef DB_MPOOL_PRIVATE
19667 flags |= DB_MPOOL_PRIVATE;
19671 printf("BerkeleyDB: %s\n", db_strerror(rc) );
19675 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
19676 rc = env->open( env, NULL, flags, 0 );
19678 rc = env->open( env, NULL, NULL, flags, 0 );
19682 rc = env->close( env, 0 );
19686 printf("BerkeleyDB: %s\n", db_strerror(rc) );
19692 memset( &env, '\0', sizeof(env) );
19694 rc = db_appinit( NULL, NULL, &env, flags );
19697 db_appexit( &env );
19700 unlink("__db_mpool.share");
19701 unlink("__db_lock.share");
19707 if { (eval echo configure:19708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
19709 ol_cv_berkeley_db_thread=yes
19711 echo "configure: failed program was:" >&5
19712 cat conftest.$ac_ext >&5
19714 ol_cv_berkeley_db_thread=no
19724 echo "$ac_t""$ol_cv_berkeley_db_thread" 1>&6
19726 if test $ol_cv_berkeley_db_thread != no ; then
19727 cat >> confdefs.h <<\EOF
19728 #define HAVE_BERKELEY_DB_THREAD 1
19738 if test $ol_cv_berkeley_db != no ; then
19739 cat >> confdefs.h <<\EOF
19740 #define HAVE_BERKELEY_DB 1
19744 ol_link_ldbm=berkeley
19745 ol_with_ldbm_api=berkeley
19747 if test $ol_with_ldbm_type = hash ; then
19748 cat >> confdefs.h <<\EOF
19749 #define LDBM_USE_DBHASH 1
19753 cat >> confdefs.h <<\EOF
19754 #define LDBM_USE_DBBTREE 1
19759 if test $ol_cv_lib_db != yes ; then
19760 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
19765 if test $ol_enable_bdb = yes -a $ol_link_ldbm != berkeley ; then
19766 { echo "configure: error: BDB: BerkeleyDB not available" 1>&2; exit 1; }
19767 elif test $ol_enable_bdb != no -a $ol_link_ldbm = berkeley ; then
19768 echo $ac_n "checking Berkeley DB version for BDB backend""... $ac_c" 1>&6
19769 echo "configure:19770: checking Berkeley DB version for BDB backend" >&5
19770 if eval "test \"\${ol_cv_bdb_compat+set}\" = set"; then
19771 echo $ac_n "(cached) $ac_c" 1>&6
19774 cat > conftest.$ac_ext <<EOF
19775 #line 19776 "configure"
19776 #include "confdefs.h"
19780 /* this check could be improved */
19781 #ifndef DB_VERSION_MAJOR
19782 # define DB_VERSION_MAJOR 1
19784 #ifndef DB_VERSION_MINOR
19785 # define DB_VERSION_MINOR 0
19788 /* require 4.2 or later */
19789 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2)
19790 __db_version_compat
19794 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19795 egrep "__db_version_compat" >/dev/null 2>&1; then
19797 ol_cv_bdb_compat=yes
19800 ol_cv_bdb_compat=no
19806 echo "$ac_t""$ol_cv_bdb_compat" 1>&6
19809 if test $ol_cv_bdb_compat = yes ; then
19811 elif test $ol_enable_bdb = yes ; then
19812 { echo "configure: error: BDB: BerkeleyDB version incompatible" 1>&2; exit 1; }
19817 if test $ol_enable_hdb = yes -a $ol_link_ldbm != berkeley ; then
19818 { echo "configure: error: HDB: BerkeleyDB not available" 1>&2; exit 1; }
19821 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
19822 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
19823 ol_with_ldbm_api=none
19826 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
19827 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
19828 echo "configure:19829: checking for MDBM library" >&5
19829 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
19830 echo $ac_n "(cached) $ac_c" 1>&6
19833 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
19834 echo "configure:19835: checking for mdbm_set_chain" >&5
19835 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
19836 echo $ac_n "(cached) $ac_c" 1>&6
19838 cat > conftest.$ac_ext <<EOF
19839 #line 19840 "configure"
19840 #include "confdefs.h"
19841 /* System header to define __stub macros and hopefully few prototypes,
19842 which can conflict with char mdbm_set_chain(); below. */
19843 #include <assert.h>
19844 /* Override any gcc2 internal prototype to avoid an error. */
19845 /* We use char because int might match the return type of a gcc2
19846 builtin and then its argument prototype would still apply. */
19847 char mdbm_set_chain();
19852 /* The GNU C library defines this for functions which it implements
19853 to always fail with ENOSYS. Some functions are actually named
19854 something starting with __ and the normal name is an alias. */
19855 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
19858 f = mdbm_set_chain;
19863 if { (eval echo configure:19864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19865 eval "ac_cv_func_mdbm_set_chain=yes"
19867 echo "configure: failed program was:" >&5
19868 cat conftest.$ac_ext >&5
19870 eval "ac_cv_func_mdbm_set_chain=no"
19875 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
19876 echo "$ac_t""yes" 1>&6
19879 echo "$ac_t""no" 1>&6
19881 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
19882 echo "configure:19883: checking for mdbm_set_chain in -lmdbm" >&5
19883 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
19884 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19885 echo $ac_n "(cached) $ac_c" 1>&6
19887 ac_save_LIBS="$LIBS"
19888 LIBS="-lmdbm $LIBS"
19889 cat > conftest.$ac_ext <<EOF
19890 #line 19891 "configure"
19891 #include "confdefs.h"
19892 /* Override any gcc2 internal prototype to avoid an error. */
19893 /* We use char because int might match the return type of a gcc2
19894 builtin and then its argument prototype would still apply. */
19895 char mdbm_set_chain();
19901 if { (eval echo configure:19902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19903 eval "ac_cv_lib_$ac_lib_var=yes"
19905 echo "configure: failed program was:" >&5
19906 cat conftest.$ac_ext >&5
19908 eval "ac_cv_lib_$ac_lib_var=no"
19911 LIBS="$ac_save_LIBS"
19914 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19915 echo "$ac_t""yes" 1>&6
19916 ol_cv_lib_mdbm=-lmdbm
19918 echo "$ac_t""no" 1>&6
19929 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
19932 for ac_hdr in mdbm.h
19934 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19935 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19936 echo "configure:19937: checking for $ac_hdr" >&5
19937 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19938 echo $ac_n "(cached) $ac_c" 1>&6
19940 cat > conftest.$ac_ext <<EOF
19941 #line 19942 "configure"
19942 #include "confdefs.h"
19945 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19946 { (eval echo configure:19947: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19947 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19948 if test -z "$ac_err"; then
19950 eval "ac_cv_header_$ac_safe=yes"
19953 echo "configure: failed program was:" >&5
19954 cat conftest.$ac_ext >&5
19956 eval "ac_cv_header_$ac_safe=no"
19960 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19961 echo "$ac_t""yes" 1>&6
19962 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19963 cat >> confdefs.h <<EOF
19964 #define $ac_tr_hdr 1
19968 echo "$ac_t""no" 1>&6
19972 echo $ac_n "checking for db""... $ac_c" 1>&6
19973 echo "configure:19974: checking for db" >&5
19974 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
19975 echo $ac_n "(cached) $ac_c" 1>&6
19978 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
19986 echo "$ac_t""$ol_cv_mdbm" 1>&6
19987 if test $ol_cv_mdbm = yes ; then
19988 cat >> confdefs.h <<\EOF
19989 #define HAVE_MDBM 1
19995 if test $ol_cv_mdbm = yes ; then
19997 ol_with_ldbm_api=mdbm
19998 if test $ol_cv_lib_mdbm != yes ; then
19999 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
20004 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
20005 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
20006 echo "configure:20007: checking for GDBM library" >&5
20007 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
20008 echo $ac_n "(cached) $ac_c" 1>&6
20011 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
20012 echo "configure:20013: checking for gdbm_open" >&5
20013 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
20014 echo $ac_n "(cached) $ac_c" 1>&6
20016 cat > conftest.$ac_ext <<EOF
20017 #line 20018 "configure"
20018 #include "confdefs.h"
20019 /* System header to define __stub macros and hopefully few prototypes,
20020 which can conflict with char gdbm_open(); below. */
20021 #include <assert.h>
20022 /* Override any gcc2 internal prototype to avoid an error. */
20023 /* We use char because int might match the return type of a gcc2
20024 builtin and then its argument prototype would still apply. */
20030 /* The GNU C library defines this for functions which it implements
20031 to always fail with ENOSYS. Some functions are actually named
20032 something starting with __ and the normal name is an alias. */
20033 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
20041 if { (eval echo configure:20042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20043 eval "ac_cv_func_gdbm_open=yes"
20045 echo "configure: failed program was:" >&5
20046 cat conftest.$ac_ext >&5
20048 eval "ac_cv_func_gdbm_open=no"
20053 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
20054 echo "$ac_t""yes" 1>&6
20057 echo "$ac_t""no" 1>&6
20059 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
20060 echo "configure:20061: checking for gdbm_open in -lgdbm" >&5
20061 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
20062 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20063 echo $ac_n "(cached) $ac_c" 1>&6
20065 ac_save_LIBS="$LIBS"
20066 LIBS="-lgdbm $LIBS"
20067 cat > conftest.$ac_ext <<EOF
20068 #line 20069 "configure"
20069 #include "confdefs.h"
20070 /* Override any gcc2 internal prototype to avoid an error. */
20071 /* We use char because int might match the return type of a gcc2
20072 builtin and then its argument prototype would still apply. */
20079 if { (eval echo configure:20080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20081 eval "ac_cv_lib_$ac_lib_var=yes"
20083 echo "configure: failed program was:" >&5
20084 cat conftest.$ac_ext >&5
20086 eval "ac_cv_lib_$ac_lib_var=no"
20089 LIBS="$ac_save_LIBS"
20092 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20093 echo "$ac_t""yes" 1>&6
20094 ol_cv_lib_gdbm=-lgdbm
20096 echo "$ac_t""no" 1>&6
20107 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
20110 for ac_hdr in gdbm.h
20112 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20113 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20114 echo "configure:20115: checking for $ac_hdr" >&5
20115 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20116 echo $ac_n "(cached) $ac_c" 1>&6
20118 cat > conftest.$ac_ext <<EOF
20119 #line 20120 "configure"
20120 #include "confdefs.h"
20123 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20124 { (eval echo configure:20125: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20125 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20126 if test -z "$ac_err"; then
20128 eval "ac_cv_header_$ac_safe=yes"
20131 echo "configure: failed program was:" >&5
20132 cat conftest.$ac_ext >&5
20134 eval "ac_cv_header_$ac_safe=no"
20138 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20139 echo "$ac_t""yes" 1>&6
20140 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20141 cat >> confdefs.h <<EOF
20142 #define $ac_tr_hdr 1
20146 echo "$ac_t""no" 1>&6
20150 echo $ac_n "checking for db""... $ac_c" 1>&6
20151 echo "configure:20152: checking for db" >&5
20152 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
20153 echo $ac_n "(cached) $ac_c" 1>&6
20156 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
20164 echo "$ac_t""$ol_cv_gdbm" 1>&6
20165 if test $ol_cv_gdbm = yes ; then
20166 cat >> confdefs.h <<\EOF
20167 #define HAVE_GDBM 1
20173 if test $ol_cv_gdbm = yes ; then
20175 ol_with_ldbm_api=gdbm
20177 if test $ol_cv_lib_gdbm != yes ; then
20178 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
20183 if test $ol_with_ldbm_api = ndbm ; then
20184 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
20185 echo "configure:20186: checking for NDBM library" >&5
20186 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
20187 echo $ac_n "(cached) $ac_c" 1>&6
20190 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
20191 echo "configure:20192: checking for dbm_open" >&5
20192 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
20193 echo $ac_n "(cached) $ac_c" 1>&6
20195 cat > conftest.$ac_ext <<EOF
20196 #line 20197 "configure"
20197 #include "confdefs.h"
20198 /* System header to define __stub macros and hopefully few prototypes,
20199 which can conflict with char dbm_open(); below. */
20200 #include <assert.h>
20201 /* Override any gcc2 internal prototype to avoid an error. */
20202 /* We use char because int might match the return type of a gcc2
20203 builtin and then its argument prototype would still apply. */
20209 /* The GNU C library defines this for functions which it implements
20210 to always fail with ENOSYS. Some functions are actually named
20211 something starting with __ and the normal name is an alias. */
20212 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
20220 if { (eval echo configure:20221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20222 eval "ac_cv_func_dbm_open=yes"
20224 echo "configure: failed program was:" >&5
20225 cat conftest.$ac_ext >&5
20227 eval "ac_cv_func_dbm_open=no"
20232 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
20233 echo "$ac_t""yes" 1>&6
20236 echo "$ac_t""no" 1>&6
20238 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
20239 echo "configure:20240: checking for dbm_open in -lndbm" >&5
20240 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
20241 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20242 echo $ac_n "(cached) $ac_c" 1>&6
20244 ac_save_LIBS="$LIBS"
20245 LIBS="-lndbm $LIBS"
20246 cat > conftest.$ac_ext <<EOF
20247 #line 20248 "configure"
20248 #include "confdefs.h"
20249 /* Override any gcc2 internal prototype to avoid an error. */
20250 /* We use char because int might match the return type of a gcc2
20251 builtin and then its argument prototype would still apply. */
20258 if { (eval echo configure:20259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20260 eval "ac_cv_lib_$ac_lib_var=yes"
20262 echo "configure: failed program was:" >&5
20263 cat conftest.$ac_ext >&5
20265 eval "ac_cv_lib_$ac_lib_var=no"
20268 LIBS="$ac_save_LIBS"
20271 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20272 echo "$ac_t""yes" 1>&6
20273 ol_cv_lib_ndbm=-lndbm
20275 echo "$ac_t""no" 1>&6
20277 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
20278 echo "configure:20279: checking for dbm_open in -ldbm" >&5
20279 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
20280 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20281 echo $ac_n "(cached) $ac_c" 1>&6
20283 ac_save_LIBS="$LIBS"
20285 cat > conftest.$ac_ext <<EOF
20286 #line 20287 "configure"
20287 #include "confdefs.h"
20288 /* Override any gcc2 internal prototype to avoid an error. */
20289 /* We use char because int might match the return type of a gcc2
20290 builtin and then its argument prototype would still apply. */
20297 if { (eval echo configure:20298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20299 eval "ac_cv_lib_$ac_lib_var=yes"
20301 echo "configure: failed program was:" >&5
20302 cat conftest.$ac_ext >&5
20304 eval "ac_cv_lib_$ac_lib_var=no"
20307 LIBS="$ac_save_LIBS"
20310 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20311 echo "$ac_t""yes" 1>&6
20312 ol_cv_lib_ndbm=-ldbm
20314 echo "$ac_t""no" 1>&6
20327 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
20330 for ac_hdr in ndbm.h
20332 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20333 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20334 echo "configure:20335: checking for $ac_hdr" >&5
20335 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20336 echo $ac_n "(cached) $ac_c" 1>&6
20338 cat > conftest.$ac_ext <<EOF
20339 #line 20340 "configure"
20340 #include "confdefs.h"
20343 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20344 { (eval echo configure:20345: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20345 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20346 if test -z "$ac_err"; then
20348 eval "ac_cv_header_$ac_safe=yes"
20351 echo "configure: failed program was:" >&5
20352 cat conftest.$ac_ext >&5
20354 eval "ac_cv_header_$ac_safe=no"
20358 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20359 echo "$ac_t""yes" 1>&6
20360 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20361 cat >> confdefs.h <<EOF
20362 #define $ac_tr_hdr 1
20366 echo "$ac_t""no" 1>&6
20370 echo $ac_n "checking for db""... $ac_c" 1>&6
20371 echo "configure:20372: checking for db" >&5
20372 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
20373 echo $ac_n "(cached) $ac_c" 1>&6
20376 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
20384 echo "$ac_t""$ol_cv_ndbm" 1>&6
20385 if test $ol_cv_ndbm = yes ; then
20386 cat >> confdefs.h <<\EOF
20387 #define HAVE_NDBM 1
20393 if test $ol_cv_ndbm = yes ; then
20395 ol_with_ldbm_api=ndbm
20397 if test $ol_cv_lib_ndbm != yes ; then
20398 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
20403 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
20404 echo "configure: warning: could not find suitable LDBM backend" 1>&2
20405 if test $ol_enable_ldbm = yes ; then
20406 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
20409 echo "configure: warning: disabling LDBM" 1>&2
20414 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
20415 BUILD_LIBS_DYNAMIC=shared
20416 cat >> confdefs.h <<\EOF
20417 #define LDAP_LIBS_DYNAMIC 1
20422 BUILD_LIBS_DYNAMIC=static
20426 if test $ol_enable_wrappers != no ; then
20427 for ac_hdr in tcpd.h
20429 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20430 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20431 echo "configure:20432: checking for $ac_hdr" >&5
20432 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20433 echo $ac_n "(cached) $ac_c" 1>&6
20435 cat > conftest.$ac_ext <<EOF
20436 #line 20437 "configure"
20437 #include "confdefs.h"
20440 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20441 { (eval echo configure:20442: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20442 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20443 if test -z "$ac_err"; then
20445 eval "ac_cv_header_$ac_safe=yes"
20448 echo "configure: failed program was:" >&5
20449 cat conftest.$ac_ext >&5
20451 eval "ac_cv_header_$ac_safe=no"
20455 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20456 echo "$ac_t""yes" 1>&6
20457 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20458 cat >> confdefs.h <<EOF
20459 #define $ac_tr_hdr 1
20462 echo $ac_n "checking for TCP wrappers library""... $ac_c" 1>&6
20463 echo "configure:20464: checking for TCP wrappers library" >&5
20465 LIBS="$LIBS -lwrap"
20466 cat > conftest.$ac_ext <<EOF
20467 #line 20468 "configure"
20468 #include "confdefs.h"
20471 int allow_severity = 0;
20472 int deny_severity = 0;
20474 struct request_info *req;
20482 if { (eval echo configure:20483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20484 echo "$ac_t""-lwrap" 1>&6
20488 echo "configure: failed program was:" >&5
20489 cat conftest.$ac_ext >&5
20493 cat > conftest.$ac_ext <<EOF
20494 #line 20495 "configure"
20495 #include "confdefs.h"
20498 int allow_severity = 0;
20499 int deny_severity = 0;
20501 struct request_info *req;
20509 if { (eval echo configure:20510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20511 echo "$ac_t""-lwrap -lnsl" 1>&6
20513 LIBS="$save_LIBS -lnsl"
20515 echo "configure: failed program was:" >&5
20516 cat conftest.$ac_ext >&5
20519 echo "$ac_t""no" 1>&6
20527 echo "$ac_t""no" 1>&6
20533 if test $have_wrappers = yes ; then
20534 cat >> confdefs.h <<\EOF
20535 #define HAVE_TCPD 1
20539 elif test $ol_enable_wrappers = yes ; then
20540 { echo "configure: error: could not find TCP wrappers, select apppropriate options or disable" 1>&2; exit 1; }
20542 echo "configure: warning: could not find TCP wrappers, support disabled" 1>&2
20547 if test $ol_enable_syslog != no ; then
20548 echo $ac_n "checking for openlog""... $ac_c" 1>&6
20549 echo "configure:20550: checking for openlog" >&5
20550 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
20551 echo $ac_n "(cached) $ac_c" 1>&6
20553 cat > conftest.$ac_ext <<EOF
20554 #line 20555 "configure"
20555 #include "confdefs.h"
20556 /* System header to define __stub macros and hopefully few prototypes,
20557 which can conflict with char openlog(); below. */
20558 #include <assert.h>
20559 /* Override any gcc2 internal prototype to avoid an error. */
20560 /* We use char because int might match the return type of a gcc2
20561 builtin and then its argument prototype would still apply. */
20567 /* The GNU C library defines this for functions which it implements
20568 to always fail with ENOSYS. Some functions are actually named
20569 something starting with __ and the normal name is an alias. */
20570 #if defined (__stub_openlog) || defined (__stub___openlog)
20578 if { (eval echo configure:20579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20580 eval "ac_cv_func_openlog=yes"
20582 echo "configure: failed program was:" >&5
20583 cat conftest.$ac_ext >&5
20585 eval "ac_cv_func_openlog=no"
20590 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
20591 echo "$ac_t""yes" 1>&6
20594 echo "$ac_t""no" 1>&6
20597 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
20598 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
20600 ol_enable_syslog=$ac_cv_func_openlog
20605 if test $ol_enable_sql != no ; then
20606 for ac_hdr in sql.h sqlext.h
20608 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20609 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20610 echo "configure:20611: checking for $ac_hdr" >&5
20611 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20612 echo $ac_n "(cached) $ac_c" 1>&6
20614 cat > conftest.$ac_ext <<EOF
20615 #line 20616 "configure"
20616 #include "confdefs.h"
20619 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20620 { (eval echo configure:20621: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20621 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20622 if test -z "$ac_err"; then
20624 eval "ac_cv_header_$ac_safe=yes"
20627 echo "configure: failed program was:" >&5
20628 cat conftest.$ac_ext >&5
20630 eval "ac_cv_header_$ac_safe=no"
20634 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20635 echo "$ac_t""yes" 1>&6
20636 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20637 cat >> confdefs.h <<EOF
20638 #define $ac_tr_hdr 1
20642 echo "$ac_t""no" 1>&6
20643 { echo "configure: error: could not locate SQL headers" 1>&2; exit 1; }
20649 echo $ac_n "checking for SQLDriverConnect in -liodbc""... $ac_c" 1>&6
20650 echo "configure:20651: checking for SQLDriverConnect in -liodbc" >&5
20651 ac_lib_var=`echo iodbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
20652 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20653 echo $ac_n "(cached) $ac_c" 1>&6
20655 ac_save_LIBS="$LIBS"
20656 LIBS="-liodbc $LIBS"
20657 cat > conftest.$ac_ext <<EOF
20658 #line 20659 "configure"
20659 #include "confdefs.h"
20660 /* Override any gcc2 internal prototype to avoid an error. */
20661 /* We use char because int might match the return type of a gcc2
20662 builtin and then its argument prototype would still apply. */
20663 char SQLDriverConnect();
20669 if { (eval echo configure:20670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20671 eval "ac_cv_lib_$ac_lib_var=yes"
20673 echo "configure: failed program was:" >&5
20674 cat conftest.$ac_ext >&5
20676 eval "ac_cv_lib_$ac_lib_var=no"
20679 LIBS="$ac_save_LIBS"
20682 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20683 echo "$ac_t""yes" 1>&6
20686 echo "$ac_t""no" 1>&6
20690 if test $have_iodbc = yes ; then
20691 ol_link_sql="-liodbc"
20693 echo $ac_n "checking for SQLDriverConnect in -lodbc""... $ac_c" 1>&6
20694 echo "configure:20695: checking for SQLDriverConnect in -lodbc" >&5
20695 ac_lib_var=`echo odbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
20696 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20697 echo $ac_n "(cached) $ac_c" 1>&6
20699 ac_save_LIBS="$LIBS"
20700 LIBS="-lodbc $LIBS"
20701 cat > conftest.$ac_ext <<EOF
20702 #line 20703 "configure"
20703 #include "confdefs.h"
20704 /* Override any gcc2 internal prototype to avoid an error. */
20705 /* We use char because int might match the return type of a gcc2
20706 builtin and then its argument prototype would still apply. */
20707 char SQLDriverConnect();
20713 if { (eval echo configure:20714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20715 eval "ac_cv_lib_$ac_lib_var=yes"
20717 echo "configure: failed program was:" >&5
20718 cat conftest.$ac_ext >&5
20720 eval "ac_cv_lib_$ac_lib_var=no"
20723 LIBS="$ac_save_LIBS"
20726 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20727 echo "$ac_t""yes" 1>&6
20730 echo "$ac_t""no" 1>&6
20734 if test $have_odbc = yes ; then
20735 ol_link_sql="-lodbc"
20739 if test $ol_link_sql != no ; then
20740 SLAPD_SQL_LIBS="$ol_link_sql"
20742 elif test $ol_enable_sql != auto ; then
20743 { echo "configure: error: could not locate suitable ODBC library" 1>&2; exit 1; }
20749 if test $ol_with_cyrus_sasl != no ; then
20750 for ac_hdr in sasl/sasl.h sasl.h
20752 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20753 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20754 echo "configure:20755: checking for $ac_hdr" >&5
20755 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20756 echo $ac_n "(cached) $ac_c" 1>&6
20758 cat > conftest.$ac_ext <<EOF
20759 #line 20760 "configure"
20760 #include "confdefs.h"
20763 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20764 { (eval echo configure:20765: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20765 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20766 if test -z "$ac_err"; then
20768 eval "ac_cv_header_$ac_safe=yes"
20771 echo "configure: failed program was:" >&5
20772 cat conftest.$ac_ext >&5
20774 eval "ac_cv_header_$ac_safe=no"
20778 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20779 echo "$ac_t""yes" 1>&6
20780 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20781 cat >> confdefs.h <<EOF
20782 #define $ac_tr_hdr 1
20786 echo "$ac_t""no" 1>&6
20791 if test $ac_cv_header_sasl_sasl_h = yes -o $ac_cv_header_sasl_h = yes; then
20792 echo $ac_n "checking for sasl_client_init in -lsasl2""... $ac_c" 1>&6
20793 echo "configure:20794: checking for sasl_client_init in -lsasl2" >&5
20794 ac_lib_var=`echo sasl2'_'sasl_client_init | sed 'y%./+-:%__p__%'`
20795 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20796 echo $ac_n "(cached) $ac_c" 1>&6
20798 ac_save_LIBS="$LIBS"
20799 LIBS="-lsasl2 $LIBS"
20800 cat > conftest.$ac_ext <<EOF
20801 #line 20802 "configure"
20802 #include "confdefs.h"
20803 /* Override any gcc2 internal prototype to avoid an error. */
20804 /* We use char because int might match the return type of a gcc2
20805 builtin and then its argument prototype would still apply. */
20806 char sasl_client_init();
20812 if { (eval echo configure:20813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20814 eval "ac_cv_lib_$ac_lib_var=yes"
20816 echo "configure: failed program was:" >&5
20817 cat conftest.$ac_ext >&5
20819 eval "ac_cv_lib_$ac_lib_var=no"
20822 LIBS="$ac_save_LIBS"
20825 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20826 echo "$ac_t""yes" 1>&6
20827 ol_link_sasl="-lsasl2"
20829 echo "$ac_t""no" 1>&6
20830 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
20831 echo "configure:20832: checking for sasl_client_init in -lsasl" >&5
20832 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
20833 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20834 echo $ac_n "(cached) $ac_c" 1>&6
20836 ac_save_LIBS="$LIBS"
20837 LIBS="-lsasl $LIBS"
20838 cat > conftest.$ac_ext <<EOF
20839 #line 20840 "configure"
20840 #include "confdefs.h"
20841 /* Override any gcc2 internal prototype to avoid an error. */
20842 /* We use char because int might match the return type of a gcc2
20843 builtin and then its argument prototype would still apply. */
20844 char sasl_client_init();
20850 if { (eval echo configure:20851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20852 eval "ac_cv_lib_$ac_lib_var=yes"
20854 echo "configure: failed program was:" >&5
20855 cat conftest.$ac_ext >&5
20857 eval "ac_cv_lib_$ac_lib_var=no"
20860 LIBS="$ac_save_LIBS"
20863 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20864 echo "$ac_t""yes" 1>&6
20865 ol_link_sasl="-lsasl"
20867 echo "$ac_t""no" 1>&6
20874 if test $ol_link_sasl = no ; then
20875 if test $ol_with_cyrus_sasl != auto ; then
20876 { echo "configure: error: Could not locate Cyrus SASL" 1>&2; exit 1; }
20878 echo "configure: warning: Could not locate Cyrus SASL" 1>&2
20879 echo "configure: warning: SASL authentication not supported!" 1>&2
20880 if test $ol_link_tls = no ; then
20881 echo "configure: warning: Strong authentication not supported!" 1>&2
20885 echo $ac_n "checking Cyrus SASL library version""... $ac_c" 1>&6
20886 echo "configure:20887: checking Cyrus SASL library version" >&5
20887 if eval "test \"\${ol_cv_sasl_compat+set}\" = set"; then
20888 echo $ac_n "(cached) $ac_c" 1>&6
20891 cat > conftest.$ac_ext <<EOF
20892 #line 20893 "configure"
20893 #include "confdefs.h"
20895 #ifdef HAVE_SASL_SASL_H
20896 #include <sasl/sasl.h>
20901 /* require 2.1.3 or later */
20902 #if SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
20903 char *__sasl_compat = "2.2+ or better okay (we guess)";
20904 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
20905 && SASL_VERSION_STEP >=3
20906 char *__sasl_compat = "2.1.3+ or better okay";
20910 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20911 egrep "__sasl_compat" >/dev/null 2>&1; then
20913 ol_cv_sasl_compat=yes
20916 ol_cv_sasl_compat=no
20922 echo "$ac_t""$ol_cv_sasl_compat" 1>&6
20924 if test $ol_cv_sasl_compat = no ; then
20926 { echo "configure: error: Cyrus SASL library located but incompatible" 1>&2; exit 1; }
20929 cat >> confdefs.h <<\EOF
20930 #define HAVE_CYRUS_SASL 1
20933 SASL_LIBS="$ol_link_sasl"
20934 if test $ol_enable_spasswd != no ; then
20935 ol_link_spasswd=yes
20938 ac_save_LIBS="$LIBS"
20939 LIBS="$LIBS $ol_link_sasl"
20940 echo $ac_n "checking for sasl_version""... $ac_c" 1>&6
20941 echo "configure:20942: checking for sasl_version" >&5
20942 if eval "test \"\${ac_cv_func_sasl_version+set}\" = set"; then
20943 echo $ac_n "(cached) $ac_c" 1>&6
20945 cat > conftest.$ac_ext <<EOF
20946 #line 20947 "configure"
20947 #include "confdefs.h"
20948 /* System header to define __stub macros and hopefully few prototypes,
20949 which can conflict with char sasl_version(); below. */
20950 #include <assert.h>
20951 /* Override any gcc2 internal prototype to avoid an error. */
20952 /* We use char because int might match the return type of a gcc2
20953 builtin and then its argument prototype would still apply. */
20954 char sasl_version();
20959 /* The GNU C library defines this for functions which it implements
20960 to always fail with ENOSYS. Some functions are actually named
20961 something starting with __ and the normal name is an alias. */
20962 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
20970 if { (eval echo configure:20971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20972 eval "ac_cv_func_sasl_version=yes"
20974 echo "configure: failed program was:" >&5
20975 cat conftest.$ac_ext >&5
20977 eval "ac_cv_func_sasl_version=no"
20982 if eval "test \"`echo '$ac_cv_func_'sasl_version`\" = yes"; then
20983 echo "$ac_t""yes" 1>&6
20984 cat >> confdefs.h <<\EOF
20985 #define HAVE_SASL_VERSION 1
20989 echo "$ac_t""no" 1>&6
20992 LIBS="$ac_save_LIBS"
20996 echo "configure: warning: SASL authentication not supported!" 1>&2
20997 if test $ol_link_tls = no ; then
20998 echo "configure: warning: Strong authentication not supported!" 1>&2
21002 if test $cross_compiling != yes -a "$ac_cv_mingw32" != yes ; then
21004 if test -r /dev/urandom ; then
21005 dev="/dev/urandom";
21006 elif test -r /idev/urandom ; then
21007 dev="/idev/urandom";
21008 elif test -r /dev/srandom ; then
21009 dev="/dev/srandom";
21010 elif test -r /dev/random ; then
21012 elif test -r /idev/random ; then
21013 dev="/idev/random";
21016 if test $dev != no ; then
21017 cat >> confdefs.h <<EOF
21018 #define URANDOM_DEVICE "$dev"
21025 if test $ol_with_fetch != no ; then
21027 LIBS="-lfetch -lcom_err $LIBS"
21028 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
21029 echo "configure:21030: checking fetch(3) library" >&5
21030 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
21031 echo $ac_n "(cached) $ac_c" 1>&6
21034 cat > conftest.$ac_ext <<EOF
21035 #line 21036 "configure"
21036 #include "confdefs.h"
21038 #include <sys/param.h>
21042 struct url *u = fetchParseURL("file:///");
21045 if { (eval echo configure:21046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21047 ol_cv_lib_fetch=yes
21049 echo "configure: failed program was:" >&5
21050 cat conftest.$ac_ext >&5
21057 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
21059 if test $ol_cv_lib_fetch != no ; then
21060 ol_link_fetch="-lfetch -lcom_err"
21061 cat >> confdefs.h <<\EOF
21062 #define HAVE_FETCH 1
21068 if test $ol_cv_lib_fetch != no ; then
21069 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
21070 ol_link_fetch=freebsd
21072 elif test $ol_with_fetch != auto ; then
21073 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
21077 if test $ol_enable_crypt != no ; then
21079 LIBS="$TLS_LIBS $LIBS"
21081 echo $ac_n "checking for crypt""... $ac_c" 1>&6
21082 echo "configure:21083: checking for crypt" >&5
21083 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
21084 echo $ac_n "(cached) $ac_c" 1>&6
21086 cat > conftest.$ac_ext <<EOF
21087 #line 21088 "configure"
21088 #include "confdefs.h"
21089 /* System header to define __stub macros and hopefully few prototypes,
21090 which can conflict with char crypt(); below. */
21091 #include <assert.h>
21092 /* Override any gcc2 internal prototype to avoid an error. */
21093 /* We use char because int might match the return type of a gcc2
21094 builtin and then its argument prototype would still apply. */
21100 /* The GNU C library defines this for functions which it implements
21101 to always fail with ENOSYS. Some functions are actually named
21102 something starting with __ and the normal name is an alias. */
21103 #if defined (__stub_crypt) || defined (__stub___crypt)
21111 if { (eval echo configure:21112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21113 eval "ac_cv_func_crypt=yes"
21115 echo "configure: failed program was:" >&5
21116 cat conftest.$ac_ext >&5
21118 eval "ac_cv_func_crypt=no"
21123 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
21124 echo "$ac_t""yes" 1>&6
21127 echo "$ac_t""no" 1>&6
21130 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
21131 echo "configure:21132: checking for crypt in -lcrypt" >&5
21132 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
21133 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21134 echo $ac_n "(cached) $ac_c" 1>&6
21136 ac_save_LIBS="$LIBS"
21137 LIBS="-lcrypt $LIBS"
21138 cat > conftest.$ac_ext <<EOF
21139 #line 21140 "configure"
21140 #include "confdefs.h"
21141 /* Override any gcc2 internal prototype to avoid an error. */
21142 /* We use char because int might match the return type of a gcc2
21143 builtin and then its argument prototype would still apply. */
21150 if { (eval echo configure:21151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21152 eval "ac_cv_lib_$ac_lib_var=yes"
21154 echo "configure: failed program was:" >&5
21155 cat conftest.$ac_ext >&5
21157 eval "ac_cv_lib_$ac_lib_var=no"
21160 LIBS="$ac_save_LIBS"
21163 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21164 echo "$ac_t""yes" 1>&6
21165 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
21168 echo "$ac_t""no" 1>&6
21177 if test $have_crypt = yes ; then
21178 cat >> confdefs.h <<\EOF
21179 #define HAVE_CRYPT 1
21183 echo "configure: warning: could not find crypt" 1>&2
21184 if test $ol_enable_crypt = yes ; then
21185 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
21188 echo "configure: warning: disabling crypt support" 1>&2
21193 if test $ol_enable_proctitle != no ; then
21194 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
21195 echo "configure:21196: checking for setproctitle" >&5
21196 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
21197 echo $ac_n "(cached) $ac_c" 1>&6
21199 cat > conftest.$ac_ext <<EOF
21200 #line 21201 "configure"
21201 #include "confdefs.h"
21202 /* System header to define __stub macros and hopefully few prototypes,
21203 which can conflict with char setproctitle(); below. */
21204 #include <assert.h>
21205 /* Override any gcc2 internal prototype to avoid an error. */
21206 /* We use char because int might match the return type of a gcc2
21207 builtin and then its argument prototype would still apply. */
21208 char setproctitle();
21213 /* The GNU C library defines this for functions which it implements
21214 to always fail with ENOSYS. Some functions are actually named
21215 something starting with __ and the normal name is an alias. */
21216 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
21224 if { (eval echo configure:21225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21226 eval "ac_cv_func_setproctitle=yes"
21228 echo "configure: failed program was:" >&5
21229 cat conftest.$ac_ext >&5
21231 eval "ac_cv_func_setproctitle=no"
21236 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
21237 echo "$ac_t""yes" 1>&6
21238 have_setproctitle=yes
21240 echo "$ac_t""no" 1>&6
21242 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
21243 echo "configure:21244: checking for setproctitle in -lutil" >&5
21244 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
21245 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21246 echo $ac_n "(cached) $ac_c" 1>&6
21248 ac_save_LIBS="$LIBS"
21249 LIBS="-lutil $LIBS"
21250 cat > conftest.$ac_ext <<EOF
21251 #line 21252 "configure"
21252 #include "confdefs.h"
21253 /* Override any gcc2 internal prototype to avoid an error. */
21254 /* We use char because int might match the return type of a gcc2
21255 builtin and then its argument prototype would still apply. */
21256 char setproctitle();
21262 if { (eval echo configure:21263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21264 eval "ac_cv_lib_$ac_lib_var=yes"
21266 echo "configure: failed program was:" >&5
21267 cat conftest.$ac_ext >&5
21269 eval "ac_cv_lib_$ac_lib_var=no"
21272 LIBS="$ac_save_LIBS"
21275 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21276 echo "$ac_t""yes" 1>&6
21277 have_setproctitle=yes
21278 LUTIL_LIBS="$LUTIL_LIBS -lutil"
21280 echo "$ac_t""no" 1>&6
21281 have_setproctitle=no
21282 LIBOBJS="$LIBOBJS setproctitle.o"
21283 LIBSRCS="$LIBSRCS setproctitle.c"
21289 if test $have_setproctitle = yes ; then
21290 cat >> confdefs.h <<\EOF
21291 #define HAVE_SETPROCTITLE 1
21297 if test $ol_enable_slp != no ; then
21298 for ac_hdr in slp.h
21300 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21301 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21302 echo "configure:21303: checking for $ac_hdr" >&5
21303 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
21304 echo $ac_n "(cached) $ac_c" 1>&6
21306 cat > conftest.$ac_ext <<EOF
21307 #line 21308 "configure"
21308 #include "confdefs.h"
21311 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21312 { (eval echo configure:21313: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21313 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21314 if test -z "$ac_err"; then
21316 eval "ac_cv_header_$ac_safe=yes"
21319 echo "configure: failed program was:" >&5
21320 cat conftest.$ac_ext >&5
21322 eval "ac_cv_header_$ac_safe=no"
21326 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21327 echo "$ac_t""yes" 1>&6
21328 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21329 cat >> confdefs.h <<EOF
21330 #define $ac_tr_hdr 1
21334 echo "$ac_t""no" 1>&6
21339 if test $ac_cv_header_slp_h = yes ; then
21340 echo $ac_n "checking for SLPOpen in -lslp""... $ac_c" 1>&6
21341 echo "configure:21342: checking for SLPOpen in -lslp" >&5
21342 ac_lib_var=`echo slp'_'SLPOpen | sed 'y%./+-:%__p__%'`
21343 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21344 echo $ac_n "(cached) $ac_c" 1>&6
21346 ac_save_LIBS="$LIBS"
21348 cat > conftest.$ac_ext <<EOF
21349 #line 21350 "configure"
21350 #include "confdefs.h"
21351 /* Override any gcc2 internal prototype to avoid an error. */
21352 /* We use char because int might match the return type of a gcc2
21353 builtin and then its argument prototype would still apply. */
21360 if { (eval echo configure:21361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21362 eval "ac_cv_lib_$ac_lib_var=yes"
21364 echo "configure: failed program was:" >&5
21365 cat conftest.$ac_ext >&5
21367 eval "ac_cv_lib_$ac_lib_var=no"
21370 LIBS="$ac_save_LIBS"
21373 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21374 echo "$ac_t""yes" 1>&6
21377 echo "$ac_t""no" 1>&6
21381 if test $have_slp = yes ; then
21382 cat >> confdefs.h <<\EOF
21386 SLAPD_SLP_LIBS=-lslp
21389 elif test $ol_enable_slp = yes ; then
21390 { echo "configure: error: SLP not found" 1>&2; exit 1; }
21395 echo $ac_n "checking long long""... $ac_c" 1>&6
21396 echo "configure:21397: checking long long" >&5
21397 if eval "test \"\${ol_cv_type_long_long+set}\" = set"; then
21398 echo $ac_n "(cached) $ac_c" 1>&6
21401 cat > conftest.$ac_ext <<EOF
21402 #line 21403 "configure"
21403 #include "confdefs.h"
21409 if { (eval echo configure:21410: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21411 ol_cv_type_long_long=yes
21413 echo "configure: failed program was:" >&5
21414 cat conftest.$ac_ext >&5
21416 ol_cv_type_long_long=no
21421 echo "$ac_t""$ol_cv_type_long_long" 1>&6
21422 if test $ol_cv_type_long_long = yes; then
21423 cat >> confdefs.h <<\EOF
21424 #define HAVE_LONG_LONG 1
21429 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
21430 echo "configure:21431: checking for ANSI C header files" >&5
21431 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
21432 echo $ac_n "(cached) $ac_c" 1>&6
21434 cat > conftest.$ac_ext <<EOF
21435 #line 21436 "configure"
21436 #include "confdefs.h"
21437 #include <stdlib.h>
21438 #include <stdarg.h>
21439 #include <string.h>
21442 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21443 { (eval echo configure:21444: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21444 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21445 if test -z "$ac_err"; then
21447 ac_cv_header_stdc=yes
21450 echo "configure: failed program was:" >&5
21451 cat conftest.$ac_ext >&5
21453 ac_cv_header_stdc=no
21457 if test $ac_cv_header_stdc = yes; then
21458 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21459 cat > conftest.$ac_ext <<EOF
21460 #line 21461 "configure"
21461 #include "confdefs.h"
21462 #include <string.h>
21464 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21465 egrep "memchr" >/dev/null 2>&1; then
21469 ac_cv_header_stdc=no
21475 if test $ac_cv_header_stdc = yes; then
21476 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21477 cat > conftest.$ac_ext <<EOF
21478 #line 21479 "configure"
21479 #include "confdefs.h"
21480 #include <stdlib.h>
21482 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21483 egrep "free" >/dev/null 2>&1; then
21487 ac_cv_header_stdc=no
21493 if test $ac_cv_header_stdc = yes; then
21494 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21495 if test "$cross_compiling" = yes; then
21498 cat > conftest.$ac_ext <<EOF
21499 #line 21500 "configure"
21500 #include "confdefs.h"
21502 #if ((' ' & 0x0FF) == 0x020)
21503 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21504 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21506 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
21507 || ('j' <= (c) && (c) <= 'r') \
21508 || ('s' <= (c) && (c) <= 'z'))
21509 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21511 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21512 int main () { int i; for (i = 0; i < 256; i++)
21513 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
21517 if { (eval echo configure:21518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21521 echo "configure: failed program was:" >&5
21522 cat conftest.$ac_ext >&5
21524 ac_cv_header_stdc=no
21532 echo "$ac_t""$ac_cv_header_stdc" 1>&6
21533 if test $ac_cv_header_stdc = yes; then
21534 cat >> confdefs.h <<\EOF
21535 #define STDC_HEADERS 1
21540 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
21541 echo "configure:21542: checking for mode_t" >&5
21542 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
21543 echo $ac_n "(cached) $ac_c" 1>&6
21545 cat > conftest.$ac_ext <<EOF
21546 #line 21547 "configure"
21547 #include "confdefs.h"
21548 #include <sys/types.h>
21550 #include <stdlib.h>
21551 #include <stddef.h>
21555 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21556 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21558 eval "ac_cv_type_mode_t=yes"
21561 eval "ac_cv_type_mode_t=no"
21566 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
21567 echo "$ac_t""yes" 1>&6
21569 echo "$ac_t""no" 1>&6
21570 cat >> confdefs.h <<EOF
21576 echo $ac_n "checking for off_t""... $ac_c" 1>&6
21577 echo "configure:21578: checking for off_t" >&5
21578 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
21579 echo $ac_n "(cached) $ac_c" 1>&6
21581 cat > conftest.$ac_ext <<EOF
21582 #line 21583 "configure"
21583 #include "confdefs.h"
21584 #include <sys/types.h>
21586 #include <stdlib.h>
21587 #include <stddef.h>
21591 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21592 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21594 eval "ac_cv_type_off_t=yes"
21597 eval "ac_cv_type_off_t=no"
21602 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
21603 echo "$ac_t""yes" 1>&6
21605 echo "$ac_t""no" 1>&6
21606 cat >> confdefs.h <<EOF
21612 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
21613 echo "configure:21614: checking for pid_t" >&5
21614 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
21615 echo $ac_n "(cached) $ac_c" 1>&6
21617 cat > conftest.$ac_ext <<EOF
21618 #line 21619 "configure"
21619 #include "confdefs.h"
21620 #include <sys/types.h>
21622 #include <stdlib.h>
21623 #include <stddef.h>
21627 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21628 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21630 eval "ac_cv_type_pid_t=yes"
21633 eval "ac_cv_type_pid_t=no"
21638 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
21639 echo "$ac_t""yes" 1>&6
21641 echo "$ac_t""no" 1>&6
21642 cat >> confdefs.h <<EOF
21648 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
21649 echo "configure:21650: checking for ptrdiff_t" >&5
21650 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
21651 echo $ac_n "(cached) $ac_c" 1>&6
21653 cat > conftest.$ac_ext <<EOF
21654 #line 21655 "configure"
21655 #include "confdefs.h"
21656 #include <stddef.h>
21661 if { (eval echo configure:21662: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21663 am_cv_type_ptrdiff_t=yes
21665 echo "configure: failed program was:" >&5
21666 cat conftest.$ac_ext >&5
21668 am_cv_type_ptrdiff_t=no
21673 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
21674 if test $am_cv_type_ptrdiff_t = yes; then
21675 cat >> confdefs.h <<\EOF
21676 #define HAVE_PTRDIFF_T 1
21681 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
21682 echo "configure:21683: checking return type of signal handlers" >&5
21683 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
21684 echo $ac_n "(cached) $ac_c" 1>&6
21686 cat > conftest.$ac_ext <<EOF
21687 #line 21688 "configure"
21688 #include "confdefs.h"
21689 #include <sys/types.h>
21690 #include <signal.h>
21695 extern "C" void (*signal (int, void (*)(int)))(int);
21697 void (*signal ()) ();
21704 if { (eval echo configure:21705: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21706 ac_cv_type_signal=void
21708 echo "configure: failed program was:" >&5
21709 cat conftest.$ac_ext >&5
21711 ac_cv_type_signal=int
21716 echo "$ac_t""$ac_cv_type_signal" 1>&6
21717 cat >> confdefs.h <<EOF
21718 #define RETSIGTYPE $ac_cv_type_signal
21722 echo $ac_n "checking for size_t""... $ac_c" 1>&6
21723 echo "configure:21724: checking for size_t" >&5
21724 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
21725 echo $ac_n "(cached) $ac_c" 1>&6
21727 cat > conftest.$ac_ext <<EOF
21728 #line 21729 "configure"
21729 #include "confdefs.h"
21730 #include <sys/types.h>
21732 #include <stdlib.h>
21733 #include <stddef.h>
21737 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21738 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21740 eval "ac_cv_type_size_t=yes"
21743 eval "ac_cv_type_size_t=no"
21748 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
21749 echo "$ac_t""yes" 1>&6
21751 echo "$ac_t""no" 1>&6
21752 cat >> confdefs.h <<EOF
21753 #define size_t unsigned
21759 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
21760 echo "configure:21761: checking for ssize_t" >&5
21761 if eval "test \"\${ac_cv_type_ssize_t+set}\" = set"; then
21762 echo $ac_n "(cached) $ac_c" 1>&6
21764 cat > conftest.$ac_ext <<EOF
21765 #line 21766 "configure"
21766 #include "confdefs.h"
21767 #include <sys/types.h>
21769 #include <stdlib.h>
21770 #include <stddef.h>
21774 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21775 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21777 eval "ac_cv_type_ssize_t=yes"
21780 eval "ac_cv_type_ssize_t=no"
21785 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
21786 echo "$ac_t""yes" 1>&6
21788 echo "$ac_t""no" 1>&6
21789 cat >> confdefs.h <<EOF
21790 #define ssize_t signed int
21795 echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
21796 echo "configure:21797: checking for caddr_t" >&5
21797 if eval "test \"\${ac_cv_type_caddr_t+set}\" = set"; then
21798 echo $ac_n "(cached) $ac_c" 1>&6
21800 cat > conftest.$ac_ext <<EOF
21801 #line 21802 "configure"
21802 #include "confdefs.h"
21803 #include <sys/types.h>
21805 #include <stdlib.h>
21806 #include <stddef.h>
21810 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21811 egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21813 eval "ac_cv_type_caddr_t=yes"
21816 eval "ac_cv_type_caddr_t=no"
21821 if eval "test \"`echo '$ac_cv_type_'caddr_t`\" = yes"; then
21822 echo "$ac_t""yes" 1>&6
21824 echo "$ac_t""no" 1>&6
21825 cat >> confdefs.h <<EOF
21826 #define caddr_t char *
21832 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
21833 echo "configure:21834: checking for socklen_t" >&5
21834 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
21835 echo $ac_n "(cached) $ac_c" 1>&6
21837 cat > conftest.$ac_ext <<EOF
21838 #line 21839 "configure"
21839 #include "confdefs.h"
21841 #ifdef HAVE_SYS_TYPES_H
21842 #include <sys/types.h>
21844 #ifdef HAVE_SYS_SOCKET_H
21845 #include <sys/socket.h>
21852 if { (eval echo configure:21853: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21854 ol_cv_type_socklen_t=yes
21856 echo "configure: failed program was:" >&5
21857 cat conftest.$ac_ext >&5
21859 ol_cv_type_socklen_t=no
21864 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
21865 if test $ol_cv_type_socklen_t = no; then
21866 cat >> confdefs.h <<\EOF
21867 #define socklen_t int
21872 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
21873 echo "configure:21874: checking for member st_blksize in aggregate type struct stat" >&5
21874 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
21875 echo $ac_n "(cached) $ac_c" 1>&6
21877 cat > conftest.$ac_ext <<EOF
21878 #line 21879 "configure"
21879 #include "confdefs.h"
21880 #include <sys/types.h>
21881 #include <sys/stat.h>
21883 struct stat foo; foo.st_blksize;
21886 if { (eval echo configure:21887: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21888 ac_cv_c_struct_member_st_blksize=yes
21890 echo "configure: failed program was:" >&5
21891 cat conftest.$ac_ext >&5
21893 ac_cv_c_struct_member_st_blksize=no
21898 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
21899 st_blksize="$ac_cv_c_struct_member_st_blksize"
21900 if test $ac_cv_c_struct_member_st_blksize = yes; then
21901 cat >> confdefs.h <<\EOF
21902 #define HAVE_ST_BLKSIZE 1
21907 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
21908 echo "configure:21909: checking whether time.h and sys/time.h may both be included" >&5
21909 if eval "test \"\${ac_cv_header_time+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/time.h>
21922 if { (eval echo configure:21923: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21924 ac_cv_header_time=yes
21926 echo "configure: failed program was:" >&5
21927 cat conftest.$ac_ext >&5
21929 ac_cv_header_time=no
21934 echo "$ac_t""$ac_cv_header_time" 1>&6
21935 if test $ac_cv_header_time = yes; then
21936 cat >> confdefs.h <<\EOF
21937 #define TIME_WITH_SYS_TIME 1
21942 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
21943 echo "configure:21944: checking whether struct tm is in sys/time.h or time.h" >&5
21944 if eval "test \"\${ac_cv_struct_tm+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>
21953 struct tm *tp; tp->tm_sec;
21956 if { (eval echo configure:21957: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21958 ac_cv_struct_tm=time.h
21960 echo "configure: failed program was:" >&5
21961 cat conftest.$ac_ext >&5
21963 ac_cv_struct_tm=sys/time.h
21968 echo "$ac_t""$ac_cv_struct_tm" 1>&6
21969 if test $ac_cv_struct_tm = sys/time.h; then
21970 cat >> confdefs.h <<\EOF
21971 #define TM_IN_SYS_TIME 1
21976 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
21977 echo "configure:21978: checking for uid_t in sys/types.h" >&5
21978 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
21979 echo $ac_n "(cached) $ac_c" 1>&6
21981 cat > conftest.$ac_ext <<EOF
21982 #line 21983 "configure"
21983 #include "confdefs.h"
21984 #include <sys/types.h>
21986 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21987 egrep "uid_t" >/dev/null 2>&1; then
21989 ac_cv_type_uid_t=yes
21992 ac_cv_type_uid_t=no
21998 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
21999 if test $ac_cv_type_uid_t = no; then
22000 cat >> confdefs.h <<\EOF
22004 cat >> confdefs.h <<\EOF
22010 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
22011 echo "configure:22012: checking for sig_atomic_t" >&5
22012 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
22013 echo $ac_n "(cached) $ac_c" 1>&6
22015 cat > conftest.$ac_ext <<EOF
22016 #line 22017 "configure"
22017 #include "confdefs.h"
22018 #include <signal.h>
22020 sig_atomic_t atomic;
22023 if { (eval echo configure:22024: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22025 ol_cv_type_sig_atomic_t=yes
22027 echo "configure: failed program was:" >&5
22028 cat conftest.$ac_ext >&5
22030 ol_cv_type_sig_atomic_t=no
22035 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
22036 if test $ol_cv_type_sig_atomic_t = no; then
22037 cat >> confdefs.h <<\EOF
22038 #define sig_atomic_t int
22045 # test for pw_gecos in struct passwd
22046 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
22047 echo "configure:22048: checking struct passwd for pw_gecos" >&5
22048 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
22049 echo $ac_n "(cached) $ac_c" 1>&6
22052 cat > conftest.$ac_ext <<EOF
22053 #line 22054 "configure"
22054 #include "confdefs.h"
22059 pwd.pw_gecos = pwd.pw_name;
22063 if { (eval echo configure:22064: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22065 ol_cv_struct_passwd_pw_gecos=yes
22067 echo "configure: failed program was:" >&5
22068 cat conftest.$ac_ext >&5
22070 ol_cv_struct_passwd_pw_gecos=no
22075 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
22076 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
22077 cat >> confdefs.h <<\EOF
22078 #define HAVE_PW_GECOS 1
22083 # test for pw_passwd in struct passwd
22084 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
22085 echo "configure:22086: checking struct passwd for pw_passwd" >&5
22086 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
22087 echo $ac_n "(cached) $ac_c" 1>&6
22090 cat > conftest.$ac_ext <<EOF
22091 #line 22092 "configure"
22092 #include "confdefs.h"
22097 pwd.pw_passwd = pwd.pw_name;
22101 if { (eval echo configure:22102: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22103 ol_cv_struct_passwd_pw_passwd=yes
22105 echo "configure: failed program was:" >&5
22106 cat conftest.$ac_ext >&5
22108 ol_cv_struct_passwd_pw_passwd=no
22113 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
22114 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
22115 cat >> confdefs.h <<\EOF
22116 #define HAVE_PW_PASSWD 1
22122 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
22123 echo "configure:22124: checking if toupper() requires islower()" >&5
22124 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
22125 echo $ac_n "(cached) $ac_c" 1>&6
22128 if test "$cross_compiling" = yes; then
22129 ol_cv_c_upper_lower=safe
22131 cat > conftest.$ac_ext <<EOF
22132 #line 22133 "configure"
22133 #include "confdefs.h"
22138 if ('C' == toupper('C'))
22144 if { (eval echo configure:22145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
22146 ol_cv_c_upper_lower=no
22148 echo "configure: failed program was:" >&5
22149 cat conftest.$ac_ext >&5
22151 ol_cv_c_upper_lower=yes
22158 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
22159 if test $ol_cv_c_upper_lower != no ; then
22160 cat >> confdefs.h <<\EOF
22161 #define C_UPPER_LOWER 1
22166 echo $ac_n "checking for working const""... $ac_c" 1>&6
22167 echo "configure:22168: checking for working const" >&5
22168 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
22169 echo $ac_n "(cached) $ac_c" 1>&6
22171 cat > conftest.$ac_ext <<EOF
22172 #line 22173 "configure"
22173 #include "confdefs.h"
22177 /* Ultrix mips cc rejects this. */
22178 typedef int charset[2]; const charset x;
22179 /* SunOS 4.1.1 cc rejects this. */
22180 char const *const *ccp;
22182 /* NEC SVR4.0.2 mips cc rejects this. */
22183 struct point {int x, y;};
22184 static struct point const zero = {0,0};
22185 /* AIX XL C 1.02.0.0 rejects this.
22186 It does not let you subtract one const X* pointer from another in an arm
22187 of an if-expression whose if-part is not a constant expression */
22188 const char *g = "string";
22189 ccp = &g + (g ? g-g : 0);
22190 /* HPUX 7.0 cc rejects these. */
22193 ccp = (char const *const *) p;
22194 { /* SCO 3.2v4 cc rejects this. */
22196 char const *s = 0 ? (char *) 0 : (char const *) 0;
22200 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22201 int x[] = {25, 17};
22202 const int *foo = &x[0];
22205 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22206 typedef const int *iptr;
22210 { /* AIX XL C 1.02.0.0 rejects this saying
22211 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22212 struct s { int j; const int *ap[3]; };
22213 struct s *b; b->j = 5;
22215 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22216 const int foo = 10;
22221 if { (eval echo configure:22222: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22225 echo "configure: failed program was:" >&5
22226 cat conftest.$ac_ext >&5
22233 echo "$ac_t""$ac_cv_c_const" 1>&6
22234 if test $ac_cv_c_const = no; then
22235 cat >> confdefs.h <<\EOF
22241 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
22242 echo "configure:22243: checking if compiler understands volatile" >&5
22243 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
22244 echo $ac_n "(cached) $ac_c" 1>&6
22246 cat > conftest.$ac_ext <<EOF
22247 #line 22248 "configure"
22248 #include "confdefs.h"
22251 volatile int a; int * volatile b = x ? &y : &z;
22252 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
22256 if { (eval echo configure:22257: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22258 ol_cv_c_volatile=yes
22260 echo "configure: failed program was:" >&5
22261 cat conftest.$ac_ext >&5
22263 ol_cv_c_volatile=no
22268 echo "$ac_t""$ol_cv_c_volatile" 1>&6
22269 if test $ol_cv_c_volatile = yes; then
22272 cat >> confdefs.h <<\EOF
22279 if test $cross_compiling = yes ; then
22280 cat >> confdefs.h <<\EOF
22281 #define CROSS_COMPILING 1
22285 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
22286 echo "configure:22287: checking whether byte ordering is bigendian" >&5
22287 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
22288 echo $ac_n "(cached) $ac_c" 1>&6
22290 ac_cv_c_bigendian=unknown
22291 # See if sys/param.h defines the BYTE_ORDER macro.
22292 cat > conftest.$ac_ext <<EOF
22293 #line 22294 "configure"
22294 #include "confdefs.h"
22295 #include <sys/types.h>
22296 #include <sys/param.h>
22299 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
22300 bogus endian macros
22304 if { (eval echo configure:22305: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22306 # It does; now see whether it defined to BIG_ENDIAN or not.
22307 cat > conftest.$ac_ext <<EOF
22308 #line 22309 "configure"
22309 #include "confdefs.h"
22310 #include <sys/types.h>
22311 #include <sys/param.h>
22314 #if BYTE_ORDER != BIG_ENDIAN
22319 if { (eval echo configure:22320: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22321 ac_cv_c_bigendian=yes
22323 echo "configure: failed program was:" >&5
22324 cat conftest.$ac_ext >&5
22326 ac_cv_c_bigendian=no
22330 echo "configure: failed program was:" >&5
22331 cat conftest.$ac_ext >&5
22334 if test $ac_cv_c_bigendian = unknown; then
22335 if test "$cross_compiling" = yes; then
22336 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
22338 cat > conftest.$ac_ext <<EOF
22339 #line 22340 "configure"
22340 #include "confdefs.h"
22342 /* Are we little or big endian? From Harbison&Steele. */
22346 char c[sizeof (long)];
22349 exit (u.c[sizeof (long) - 1] == 1);
22352 if { (eval echo configure:22353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
22354 ac_cv_c_bigendian=no
22356 echo "configure: failed program was:" >&5
22357 cat conftest.$ac_ext >&5
22359 ac_cv_c_bigendian=yes
22367 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
22368 if test $ac_cv_c_bigendian = yes; then
22369 cat >> confdefs.h <<\EOF
22370 #define WORDS_BIGENDIAN 1
22377 echo $ac_n "checking size of short""... $ac_c" 1>&6
22378 echo "configure:22379: checking size of short" >&5
22379 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
22380 echo $ac_n "(cached) $ac_c" 1>&6
22382 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22383 cat > conftest.$ac_ext <<EOF
22384 #line 22385 "configure"
22385 #include "confdefs.h"
22386 #include "confdefs.h"
22387 #include <sys/types.h>
22391 switch (0) case 0: case (sizeof (short) == $ac_size):;
22394 if { (eval echo configure:22395: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22396 ac_cv_sizeof_short=$ac_size
22398 echo "configure: failed program was:" >&5
22399 cat conftest.$ac_ext >&5
22402 if test x$ac_cv_sizeof_short != x ; then break; fi
22407 if test x$ac_cv_sizeof_short = x ; then
22408 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
22410 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
22411 cat >> confdefs.h <<EOF
22412 #define SIZEOF_SHORT $ac_cv_sizeof_short
22416 echo $ac_n "checking size of int""... $ac_c" 1>&6
22417 echo "configure:22418: checking size of int" >&5
22418 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
22419 echo $ac_n "(cached) $ac_c" 1>&6
22421 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22422 cat > conftest.$ac_ext <<EOF
22423 #line 22424 "configure"
22424 #include "confdefs.h"
22425 #include "confdefs.h"
22426 #include <sys/types.h>
22430 switch (0) case 0: case (sizeof (int) == $ac_size):;
22433 if { (eval echo configure:22434: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22435 ac_cv_sizeof_int=$ac_size
22437 echo "configure: failed program was:" >&5
22438 cat conftest.$ac_ext >&5
22441 if test x$ac_cv_sizeof_int != x ; then break; fi
22446 if test x$ac_cv_sizeof_int = x ; then
22447 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
22449 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
22450 cat >> confdefs.h <<EOF
22451 #define SIZEOF_INT $ac_cv_sizeof_int
22455 echo $ac_n "checking size of long""... $ac_c" 1>&6
22456 echo "configure:22457: checking size of long" >&5
22457 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
22458 echo $ac_n "(cached) $ac_c" 1>&6
22460 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22461 cat > conftest.$ac_ext <<EOF
22462 #line 22463 "configure"
22463 #include "confdefs.h"
22464 #include "confdefs.h"
22465 #include <sys/types.h>
22469 switch (0) case 0: case (sizeof (long) == $ac_size):;
22472 if { (eval echo configure:22473: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22474 ac_cv_sizeof_long=$ac_size
22476 echo "configure: failed program was:" >&5
22477 cat conftest.$ac_ext >&5
22480 if test x$ac_cv_sizeof_long != x ; then break; fi
22485 if test x$ac_cv_sizeof_long = x ; then
22486 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
22488 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
22489 cat >> confdefs.h <<EOF
22490 #define SIZEOF_LONG $ac_cv_sizeof_long
22495 if test "$ac_cv_sizeof_int" -lt 4 ; then
22496 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
22498 cat >> confdefs.h <<\EOF
22499 #define LBER_INT_T long
22503 cat >> confdefs.h <<\EOF
22504 #define LBER_INT_T int
22509 cat >> confdefs.h <<\EOF
22510 #define LBER_LEN_T long
22513 cat >> confdefs.h <<\EOF
22514 #define LBER_SOCKET_T int
22517 cat >> confdefs.h <<\EOF
22518 #define LBER_TAG_T long
22522 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
22523 echo "configure:22524: checking for 8-bit clean memcmp" >&5
22524 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
22525 echo $ac_n "(cached) $ac_c" 1>&6
22527 if test "$cross_compiling" = yes; then
22528 ac_cv_func_memcmp_clean=no
22530 cat > conftest.$ac_ext <<EOF
22531 #line 22532 "configure"
22532 #include "confdefs.h"
22536 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
22537 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
22541 if { (eval echo configure:22542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
22543 ac_cv_func_memcmp_clean=yes
22545 echo "configure: failed program was:" >&5
22546 cat conftest.$ac_ext >&5
22548 ac_cv_func_memcmp_clean=no
22555 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
22556 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
22558 echo $ac_n "checking for strftime""... $ac_c" 1>&6
22559 echo "configure:22560: checking for strftime" >&5
22560 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
22561 echo $ac_n "(cached) $ac_c" 1>&6
22563 cat > conftest.$ac_ext <<EOF
22564 #line 22565 "configure"
22565 #include "confdefs.h"
22566 /* System header to define __stub macros and hopefully few prototypes,
22567 which can conflict with char strftime(); below. */
22568 #include <assert.h>
22569 /* Override any gcc2 internal prototype to avoid an error. */
22570 /* We use char because int might match the return type of a gcc2
22571 builtin and then its argument prototype would still apply. */
22577 /* The GNU C library defines this for functions which it implements
22578 to always fail with ENOSYS. Some functions are actually named
22579 something starting with __ and the normal name is an alias. */
22580 #if defined (__stub_strftime) || defined (__stub___strftime)
22588 if { (eval echo configure:22589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22590 eval "ac_cv_func_strftime=yes"
22592 echo "configure: failed program was:" >&5
22593 cat conftest.$ac_ext >&5
22595 eval "ac_cv_func_strftime=no"
22600 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
22601 echo "$ac_t""yes" 1>&6
22602 cat >> confdefs.h <<\EOF
22603 #define HAVE_STRFTIME 1
22607 echo "$ac_t""no" 1>&6
22608 # strftime is in -lintl on SCO UNIX.
22609 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
22610 echo "configure:22611: checking for strftime in -lintl" >&5
22611 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
22612 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
22613 echo $ac_n "(cached) $ac_c" 1>&6
22615 ac_save_LIBS="$LIBS"
22616 LIBS="-lintl $LIBS"
22617 cat > conftest.$ac_ext <<EOF
22618 #line 22619 "configure"
22619 #include "confdefs.h"
22620 /* Override any gcc2 internal prototype to avoid an error. */
22621 /* We use char because int might match the return type of a gcc2
22622 builtin and then its argument prototype would still apply. */
22629 if { (eval echo configure:22630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22631 eval "ac_cv_lib_$ac_lib_var=yes"
22633 echo "configure: failed program was:" >&5
22634 cat conftest.$ac_ext >&5
22636 eval "ac_cv_lib_$ac_lib_var=no"
22639 LIBS="$ac_save_LIBS"
22642 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
22643 echo "$ac_t""yes" 1>&6
22644 cat >> confdefs.h <<\EOF
22645 #define HAVE_STRFTIME 1
22648 LIBS="-lintl $LIBS"
22650 echo "$ac_t""no" 1>&6
22656 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
22657 echo "configure:22658: checking for inet_aton()" >&5
22658 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
22659 echo $ac_n "(cached) $ac_c" 1>&6
22661 cat > conftest.$ac_ext <<EOF
22662 #line 22663 "configure"
22663 #include "confdefs.h"
22665 #ifdef HAVE_SYS_TYPES_H
22666 # include <sys/types.h>
22668 #ifdef HAVE_SYS_SOCKET_H
22669 # include <sys/socket.h>
22670 # ifdef HAVE_SYS_SELECT_H
22671 # include <sys/select.h>
22673 # include <netinet/in.h>
22674 # ifdef HAVE_ARPA_INET_H
22675 # include <arpa/inet.h>
22681 int rc = inet_aton( "255.255.255.255", &in );
22684 if { (eval echo configure:22685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22686 ol_cv_func_inet_aton=yes
22688 echo "configure: failed program was:" >&5
22689 cat conftest.$ac_ext >&5
22691 ol_cv_func_inet_aton=no
22696 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
22697 if test $ol_cv_func_inet_aton != no; then
22698 cat >> confdefs.h <<\EOF
22699 #define HAVE_INET_ATON 1
22705 echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
22706 echo "configure:22707: checking for _spawnlp" >&5
22707 if eval "test \"\${ac_cv_func__spawnlp+set}\" = set"; then
22708 echo $ac_n "(cached) $ac_c" 1>&6
22710 cat > conftest.$ac_ext <<EOF
22711 #line 22712 "configure"
22712 #include "confdefs.h"
22713 /* System header to define __stub macros and hopefully few prototypes,
22714 which can conflict with char _spawnlp(); below. */
22715 #include <assert.h>
22716 /* Override any gcc2 internal prototype to avoid an error. */
22717 /* We use char because int might match the return type of a gcc2
22718 builtin and then its argument prototype would still apply. */
22724 /* The GNU C library defines this for functions which it implements
22725 to always fail with ENOSYS. Some functions are actually named
22726 something starting with __ and the normal name is an alias. */
22727 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
22735 if { (eval echo configure:22736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22737 eval "ac_cv_func__spawnlp=yes"
22739 echo "configure: failed program was:" >&5
22740 cat conftest.$ac_ext >&5
22742 eval "ac_cv_func__spawnlp=no"
22747 if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
22748 echo "$ac_t""yes" 1>&6
22749 cat >> confdefs.h <<\EOF
22750 #define HAVE_SPAWNLP 1
22754 echo "$ac_t""no" 1>&6
22758 echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
22759 echo "configure:22760: checking for _snprintf" >&5
22760 if eval "test \"\${ac_cv_func__snprintf+set}\" = set"; then
22761 echo $ac_n "(cached) $ac_c" 1>&6
22763 cat > conftest.$ac_ext <<EOF
22764 #line 22765 "configure"
22765 #include "confdefs.h"
22766 /* System header to define __stub macros and hopefully few prototypes,
22767 which can conflict with char _snprintf(); below. */
22768 #include <assert.h>
22769 /* Override any gcc2 internal prototype to avoid an error. */
22770 /* We use char because int might match the return type of a gcc2
22771 builtin and then its argument prototype would still apply. */
22777 /* The GNU C library defines this for functions which it implements
22778 to always fail with ENOSYS. Some functions are actually named
22779 something starting with __ and the normal name is an alias. */
22780 #if defined (__stub__snprintf) || defined (__stub____snprintf)
22788 if { (eval echo configure:22789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22790 eval "ac_cv_func__snprintf=yes"
22792 echo "configure: failed program was:" >&5
22793 cat conftest.$ac_ext >&5
22795 eval "ac_cv_func__snprintf=no"
22800 if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
22801 echo "$ac_t""yes" 1>&6
22802 ac_cv_func_snprintf=yes
22803 cat >> confdefs.h <<\EOF
22804 #define snprintf _snprintf
22809 echo "$ac_t""no" 1>&6
22813 echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
22814 echo "configure:22815: checking for _vsnprintf" >&5
22815 if eval "test \"\${ac_cv_func__vsnprintf+set}\" = set"; then
22816 echo $ac_n "(cached) $ac_c" 1>&6
22818 cat > conftest.$ac_ext <<EOF
22819 #line 22820 "configure"
22820 #include "confdefs.h"
22821 /* System header to define __stub macros and hopefully few prototypes,
22822 which can conflict with char _vsnprintf(); below. */
22823 #include <assert.h>
22824 /* Override any gcc2 internal prototype to avoid an error. */
22825 /* We use char because int might match the return type of a gcc2
22826 builtin and then its argument prototype would still apply. */
22832 /* The GNU C library defines this for functions which it implements
22833 to always fail with ENOSYS. Some functions are actually named
22834 something starting with __ and the normal name is an alias. */
22835 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
22843 if { (eval echo configure:22844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22845 eval "ac_cv_func__vsnprintf=yes"
22847 echo "configure: failed program was:" >&5
22848 cat conftest.$ac_ext >&5
22850 eval "ac_cv_func__vsnprintf=no"
22855 if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
22856 echo "$ac_t""yes" 1>&6
22857 ac_cv_func_vsnprintf=yes
22858 cat >> confdefs.h <<\EOF
22859 #define vsnprintf _vsnprintf
22864 echo "$ac_t""no" 1>&6
22868 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
22869 echo "configure:22870: checking for vprintf" >&5
22870 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
22871 echo $ac_n "(cached) $ac_c" 1>&6
22873 cat > conftest.$ac_ext <<EOF
22874 #line 22875 "configure"
22875 #include "confdefs.h"
22876 /* System header to define __stub macros and hopefully few prototypes,
22877 which can conflict with char vprintf(); below. */
22878 #include <assert.h>
22879 /* Override any gcc2 internal prototype to avoid an error. */
22880 /* We use char because int might match the return type of a gcc2
22881 builtin and then its argument prototype would still apply. */
22887 /* The GNU C library defines this for functions which it implements
22888 to always fail with ENOSYS. Some functions are actually named
22889 something starting with __ and the normal name is an alias. */
22890 #if defined (__stub_vprintf) || defined (__stub___vprintf)
22898 if { (eval echo configure:22899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22900 eval "ac_cv_func_vprintf=yes"
22902 echo "configure: failed program was:" >&5
22903 cat conftest.$ac_ext >&5
22905 eval "ac_cv_func_vprintf=no"
22910 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
22911 echo "$ac_t""yes" 1>&6
22912 cat >> confdefs.h <<\EOF
22913 #define HAVE_VPRINTF 1
22917 echo "$ac_t""no" 1>&6
22920 if test "$ac_cv_func_vprintf" != yes; then
22921 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
22922 echo "configure:22923: checking for _doprnt" >&5
22923 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
22924 echo $ac_n "(cached) $ac_c" 1>&6
22926 cat > conftest.$ac_ext <<EOF
22927 #line 22928 "configure"
22928 #include "confdefs.h"
22929 /* System header to define __stub macros and hopefully few prototypes,
22930 which can conflict with char _doprnt(); below. */
22931 #include <assert.h>
22932 /* Override any gcc2 internal prototype to avoid an error. */
22933 /* We use char because int might match the return type of a gcc2
22934 builtin and then its argument prototype would still apply. */
22940 /* The GNU C library defines this for functions which it implements
22941 to always fail with ENOSYS. Some functions are actually named
22942 something starting with __ and the normal name is an alias. */
22943 #if defined (__stub__doprnt) || defined (__stub____doprnt)
22951 if { (eval echo configure:22952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22953 eval "ac_cv_func__doprnt=yes"
22955 echo "configure: failed program was:" >&5
22956 cat conftest.$ac_ext >&5
22958 eval "ac_cv_func__doprnt=no"
22963 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
22964 echo "$ac_t""yes" 1>&6
22965 cat >> confdefs.h <<\EOF
22966 #define HAVE_DOPRNT 1
22970 echo "$ac_t""no" 1>&6
22976 if test $ac_cv_func_vprintf = yes ; then
22977 for ac_func in snprintf vsnprintf
22979 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22980 echo "configure:22981: checking for $ac_func" >&5
22981 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
22982 echo $ac_n "(cached) $ac_c" 1>&6
22984 cat > conftest.$ac_ext <<EOF
22985 #line 22986 "configure"
22986 #include "confdefs.h"
22987 /* System header to define __stub macros and hopefully few prototypes,
22988 which can conflict with char $ac_func(); below. */
22989 #include <assert.h>
22990 /* Override any gcc2 internal prototype to avoid an error. */
22991 /* We use char because int might match the return type of a gcc2
22992 builtin and then its argument prototype would still apply. */
22998 /* The GNU C library defines this for functions which it implements
22999 to always fail with ENOSYS. Some functions are actually named
23000 something starting with __ and the normal name is an alias. */
23001 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23009 if { (eval echo configure:23010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23011 eval "ac_cv_func_$ac_func=yes"
23013 echo "configure: failed program was:" >&5
23014 cat conftest.$ac_ext >&5
23016 eval "ac_cv_func_$ac_func=no"
23021 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
23022 echo "$ac_t""yes" 1>&6
23023 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23024 cat >> confdefs.h <<EOF
23025 #define $ac_tr_func 1
23029 echo "$ac_t""no" 1>&6
23094 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
23095 echo "configure:23096: checking for $ac_func" >&5
23096 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
23097 echo $ac_n "(cached) $ac_c" 1>&6
23099 cat > conftest.$ac_ext <<EOF
23100 #line 23101 "configure"
23101 #include "confdefs.h"
23102 /* System header to define __stub macros and hopefully few prototypes,
23103 which can conflict with char $ac_func(); below. */
23104 #include <assert.h>
23105 /* Override any gcc2 internal prototype to avoid an error. */
23106 /* We use char because int might match the return type of a gcc2
23107 builtin and then its argument prototype would still apply. */
23113 /* The GNU C library defines this for functions which it implements
23114 to always fail with ENOSYS. Some functions are actually named
23115 something starting with __ and the normal name is an alias. */
23116 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23124 if { (eval echo configure:23125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23126 eval "ac_cv_func_$ac_func=yes"
23128 echo "configure: failed program was:" >&5
23129 cat conftest.$ac_ext >&5
23131 eval "ac_cv_func_$ac_func=no"
23136 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
23137 echo "$ac_t""yes" 1>&6
23138 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23139 cat >> confdefs.h <<EOF
23140 #define $ac_tr_func 1
23144 echo "$ac_t""no" 1>&6
23149 for ac_func in getopt getpeereid
23151 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
23152 echo "configure:23153: checking for $ac_func" >&5
23153 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
23154 echo $ac_n "(cached) $ac_c" 1>&6
23156 cat > conftest.$ac_ext <<EOF
23157 #line 23158 "configure"
23158 #include "confdefs.h"
23159 /* System header to define __stub macros and hopefully few prototypes,
23160 which can conflict with char $ac_func(); below. */
23161 #include <assert.h>
23162 /* Override any gcc2 internal prototype to avoid an error. */
23163 /* We use char because int might match the return type of a gcc2
23164 builtin and then its argument prototype would still apply. */
23170 /* The GNU C library defines this for functions which it implements
23171 to always fail with ENOSYS. Some functions are actually named
23172 something starting with __ and the normal name is an alias. */
23173 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23181 if { (eval echo configure:23182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23183 eval "ac_cv_func_$ac_func=yes"
23185 echo "configure: failed program was:" >&5
23186 cat conftest.$ac_ext >&5
23188 eval "ac_cv_func_$ac_func=no"
23193 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
23194 echo "$ac_t""yes" 1>&6
23195 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23196 cat >> confdefs.h <<EOF
23197 #define $ac_tr_func 1
23201 echo "$ac_t""no" 1>&6
23202 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
23208 if test "$ac_cv_func_getopt" != yes; then
23209 LIBSRCS="$LIBSRCS getopt.c"
23211 if test "$ac_cv_func_getpeereid" != yes; then
23212 echo $ac_n "checking for msg_accrights in msghdr""... $ac_c" 1>&6
23213 echo "configure:23214: checking for msg_accrights in msghdr" >&5
23214 if eval "test \"\${ol_cv_msghdr_msg_accrights+set}\" = set"; then
23215 echo $ac_n "(cached) $ac_c" 1>&6
23217 cat > conftest.$ac_ext <<EOF
23218 #line 23219 "configure"
23219 #include "confdefs.h"
23220 #include <sys/socket.h>
23222 struct msghdr m; m.msg_accrightslen=0
23225 if { (eval echo configure:23226: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23227 ol_cv_msghdr_msg_accrights=yes
23229 echo "configure: failed program was:" >&5
23230 cat conftest.$ac_ext >&5
23232 ol_cv_msghdr_msg_accrights=no
23238 echo "$ac_t""$ol_cv_msghdr_msg_accrights" 1>&6
23239 if test $ol_cv_msghdr_msg_accrights = "yes" ; then
23240 cat >> confdefs.h <<\EOF
23241 #define HAVE_MSGHDR_MSG_ACCRIGHTS 1
23246 LIBSRCS="$LIBSRCS getpeereid.c"
23248 if test "$ac_cv_func_snprintf" != yes -o "$ac_cv_func_vsnprintf" != yes; then
23249 if test "$ac_cv_func_snprintf" != yes; then
23250 cat >> confdefs.h <<\EOF
23251 #define snprintf ber_pvt_snprintf
23255 if test "$ac_cv_func_vsnprintf" != yes; then
23256 cat >> confdefs.h <<\EOF
23257 #define vsnprintf ber_pvt_vsnprintf
23263 # Check Configuration
23264 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
23265 echo "configure:23266: checking declaration of sys_errlist" >&5
23266 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
23267 echo $ac_n "(cached) $ac_c" 1>&6
23270 cat > conftest.$ac_ext <<EOF
23271 #line 23272 "configure"
23272 #include "confdefs.h"
23275 #include <sys/types.h>
23278 #include <stdlib.h>
23281 char *c = (char *) *sys_errlist
23284 if { (eval echo configure:23285: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23286 ol_cv_dcl_sys_errlist=yes
23287 ol_cv_have_sys_errlist=yes
23289 echo "configure: failed program was:" >&5
23290 cat conftest.$ac_ext >&5
23292 ol_cv_dcl_sys_errlist=no
23297 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
23299 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
23300 if test $ol_cv_dcl_sys_errlist = no ; then
23301 cat >> confdefs.h <<\EOF
23302 #define DECL_SYS_ERRLIST 1
23306 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
23307 echo "configure:23308: checking existence of sys_errlist" >&5
23308 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
23309 echo $ac_n "(cached) $ac_c" 1>&6
23312 cat > conftest.$ac_ext <<EOF
23313 #line 23314 "configure"
23314 #include "confdefs.h"
23317 char *c = (char *) *sys_errlist
23320 if { (eval echo configure:23321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23322 ol_cv_have_sys_errlist=yes
23324 echo "configure: failed program was:" >&5
23325 cat conftest.$ac_ext >&5
23327 ol_cv_have_sys_errlist=no
23332 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
23334 if test $ol_cv_have_sys_errlist = yes ; then
23335 cat >> confdefs.h <<\EOF
23336 #define HAVE_SYS_ERRLIST 1
23343 if test "$ol_enable_slapi" != no ; then
23344 for ac_hdr in ltdl.h
23346 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
23347 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
23348 echo "configure:23349: checking for $ac_hdr" >&5
23349 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
23350 echo $ac_n "(cached) $ac_c" 1>&6
23352 cat > conftest.$ac_ext <<EOF
23353 #line 23354 "configure"
23354 #include "confdefs.h"
23357 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
23358 { (eval echo configure:23359: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
23359 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
23360 if test -z "$ac_err"; then
23362 eval "ac_cv_header_$ac_safe=yes"
23365 echo "configure: failed program was:" >&5
23366 cat conftest.$ac_ext >&5
23368 eval "ac_cv_header_$ac_safe=no"
23372 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
23373 echo "$ac_t""yes" 1>&6
23374 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
23375 cat >> confdefs.h <<EOF
23376 #define $ac_tr_hdr 1
23380 echo "$ac_t""no" 1>&6
23385 if test $ac_cv_header_ltdl_h != yes ; then
23386 { echo "configure: error: could not locate <ltdl.h>" 1>&2; exit 1; }
23388 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
23389 echo "configure:23390: checking for lt_dlinit in -lltdl" >&5
23390 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
23391 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
23392 echo $ac_n "(cached) $ac_c" 1>&6
23394 ac_save_LIBS="$LIBS"
23395 LIBS="-lltdl $LIBS"
23396 cat > conftest.$ac_ext <<EOF
23397 #line 23398 "configure"
23398 #include "confdefs.h"
23399 /* Override any gcc2 internal prototype to avoid an error. */
23400 /* We use char because int might match the return type of a gcc2
23401 builtin and then its argument prototype would still apply. */
23408 if { (eval echo configure:23409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23410 eval "ac_cv_lib_$ac_lib_var=yes"
23412 echo "configure: failed program was:" >&5
23413 cat conftest.$ac_ext >&5
23415 eval "ac_cv_lib_$ac_lib_var=no"
23418 LIBS="$ac_save_LIBS"
23421 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
23422 echo "$ac_t""yes" 1>&6
23425 LIBSLAPI=libslapi.a
23426 LIBSLAPITOOLS=../libslapi.a
23427 cat >> confdefs.h <<\EOF
23428 #define HAVE_LIBLTDL 1
23433 echo "$ac_t""no" 1>&6
23434 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
23438 cat >> confdefs.h <<\EOF
23439 #define LDAP_SLAPI 1
23444 if test "$ol_enable_debug" != no ; then
23445 cat >> confdefs.h <<\EOF
23446 #define LDAP_DEBUG 1
23450 if test "$ol_enable_syslog" = yes ; then
23451 cat >> confdefs.h <<\EOF
23452 #define LDAP_SYSLOG 1
23456 if test "$ol_link_kbind" != no ; then
23457 cat >> confdefs.h <<\EOF
23458 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
23462 if test "$ol_enable_proctitle" != no ; then
23463 cat >> confdefs.h <<\EOF
23464 #define LDAP_PROCTITLE 1
23468 if test "$ol_enable_referrals" != no ; then
23469 cat >> confdefs.h <<\EOF
23470 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
23474 if test "$ol_enable_local" != no; then
23475 cat >> confdefs.h <<\EOF
23476 #define LDAP_PF_LOCAL 1
23480 if test "$ol_link_ipv6" != no; then
23481 cat >> confdefs.h <<\EOF
23482 #define LDAP_PF_INET6 1
23486 if test "$ol_enable_cleartext" != no ; then
23487 cat >> confdefs.h <<\EOF
23488 #define SLAPD_CLEARTEXT 1
23492 if test "$ol_enable_crypt" != no ; then
23493 cat >> confdefs.h <<\EOF
23494 #define SLAPD_CRYPT 1
23498 if test "$ol_link_kpasswd" != no ; then
23499 cat >> confdefs.h <<\EOF
23500 #define SLAPD_KPASSWD 1
23504 if test "$ol_link_spasswd" != no ; then
23505 cat >> confdefs.h <<\EOF
23506 #define SLAPD_SPASSWD 1
23510 if test "$ol_enable_multimaster" != no ; then
23511 cat >> confdefs.h <<\EOF
23512 #define SLAPD_MULTIMASTER 1
23516 if test "$ol_enable_rlookups" != no ; then
23517 cat >> confdefs.h <<\EOF
23518 #define SLAPD_RLOOKUPS 1
23522 if test "$ol_enable_aci" != no ; then
23523 cat >> confdefs.h <<\EOF
23524 #define SLAPD_ACI_ENABLED 1
23529 if test "$ol_link_modules" != no ; then
23530 cat >> confdefs.h <<\EOF
23531 #define SLAPD_MODULES 1
23535 SLAPD_MODULES_LDFLAGS="-dlopen self"
23538 cat >> confdefs.h <<\EOF
23539 #define SLAPD_MOD_STATIC 1
23542 cat >> confdefs.h <<\EOF
23543 #define SLAPD_MOD_DYNAMIC 2
23547 if test "$ol_enable_bdb" != no ; then
23548 cat >> confdefs.h <<\EOF
23549 #define SLAPD_BDB 1
23554 if test "$ol_with_bdb_module" != static ; then
23555 cat >> confdefs.h <<\EOF
23556 #define SLAPD_BDB_DYNAMIC 1
23560 BUILD_BDB_DYNAMIC=shared
23561 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
23563 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
23567 if test "$ol_link_dnssrv" != no ; then
23568 cat >> confdefs.h <<\EOF
23569 #define SLAPD_DNSSRV 1
23574 if test "$ol_with_dnssrv_module" != static ; then
23575 cat >> confdefs.h <<\EOF
23576 #define SLAPD_DNSSRV_DYNAMIC 1
23580 BUILD_DNSSRV_DYNAMIC=shared
23581 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
23583 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
23587 if test "$ol_enable_hdb" != no ; then
23588 cat >> confdefs.h <<\EOF
23589 #define SLAPD_HDB 1
23594 if test "$ol_with_hdb_module" != static ; then
23595 cat >> confdefs.h <<\EOF
23596 #define SLAPD_HDB_DYNAMIC 1
23600 BUILD_HDB_DYNAMIC=shared
23601 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
23603 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
23607 if test "$ol_enable_ldap" != no ; then
23608 cat >> confdefs.h <<\EOF
23609 #define SLAPD_LDAP 1
23614 if test "$ol_with_ldap_module" != static ; then
23615 cat >> confdefs.h <<\EOF
23616 #define SLAPD_LDAP_DYNAMIC 1
23620 BUILD_LDAP_DYNAMIC=shared
23621 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
23623 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
23627 if test "$ol_link_ldbm" != no -a $ol_enable_ldbm != no; then
23628 cat >> confdefs.h <<\EOF
23629 #define SLAPD_LDBM 1
23634 if test "$ol_with_ldbm_module" != static ; then
23635 cat >> confdefs.h <<\EOF
23636 #define SLAPD_LDBM_DYNAMIC 1
23640 BUILD_LDBM_DYNAMIC=shared
23641 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
23643 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
23647 if test "$ol_enable_meta" != no ; then
23648 if test "$ol_enable_ldap" = no ; then
23649 { echo "configure: error: need --enable-ldap to use --enable-meta" 1>&2; exit 1; }
23651 if test "$ol_enable_rewrite" = no ; then
23652 { echo "configure: error: need --enable-rewrite to use --enable-meta" 1>&2; exit 1; }
23654 cat >> confdefs.h <<\EOF
23655 #define SLAPD_META 1
23661 if test "$ol_with_meta_module" != static ; then
23662 cat >> confdefs.h <<\EOF
23663 #define SLAPD_META_DYNAMIC 1
23667 BUILD_META_DYNAMIC=shared
23668 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
23670 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
23674 if test "$ol_enable_monitor" != no ; then
23675 cat >> confdefs.h <<\EOF
23676 #define SLAPD_MONITOR 1
23681 if test "$ol_with_monitor_module" != static ; then
23682 cat >> confdefs.h <<\EOF
23683 #define SLAPD_MONITOR_DYNAMIC 1
23687 BUILD_MONITOR_DYNAMIC=shared
23688 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
23690 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
23694 if test "$ol_enable_null" != no ; then
23695 cat >> confdefs.h <<\EOF
23696 #define SLAPD_NULL 1
23701 if test "$ol_with_null_module" != static ; then
23702 cat >> confdefs.h <<\EOF
23703 #define SLAPD_NULL_DYNAMIC 1
23707 BUILD_NULL_DYNAMIC=shared
23708 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
23710 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
23714 if test "$ol_enable_passwd" != no ; then
23715 cat >> confdefs.h <<\EOF
23716 #define SLAPD_PASSWD 1
23721 if test "$ol_with_passwd_module" != static ; then
23722 cat >> confdefs.h <<\EOF
23723 #define SLAPD_PASSWD_DYNAMIC 1
23727 BUILD_PASSWD_DYNAMIC=shared
23728 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
23730 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
23734 if test "$ol_link_perl" != no ; then
23735 cat >> confdefs.h <<\EOF
23736 #define SLAPD_PERL 1
23741 if test "$ol_with_perl_module" != static ; then
23742 cat >> confdefs.h <<\EOF
23743 #define SLAPD_PERL_DYNAMIC 1
23747 BUILD_PERL_DYNAMIC=shared
23748 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
23750 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
23754 if test "$ol_enable_shell" != no ; then
23755 if test "$ol_link_thread" != no ; then
23756 echo "configure: warning: Use of --without-threads is recommended with back-shell" 1>&2
23758 cat >> confdefs.h <<\EOF
23759 #define SLAPD_SHELL 1
23764 if test "$ol_with_shell_module" != static ; then
23765 cat >> confdefs.h <<\EOF
23766 #define SLAPD_SHELL_DYNAMIC 1
23770 BUILD_SHELL_DYNAMIC=shared
23771 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
23773 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
23777 if test "$ol_link_sql" != no ; then
23778 cat >> confdefs.h <<\EOF
23779 #define SLAPD_SQL 1
23784 if test "$ol_with_sql_module" != static; then
23785 cat >> confdefs.h <<\EOF
23786 #define SLAPD_SQL_DYNAMIC 1
23790 BUILD_SQL_DYNAMIC=shared
23791 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
23793 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
23797 if test "$ol_with_dyngroup" != no ; then
23798 BUILD_DYNGROUP=$ol_with_dyngroup
23799 if test "$ol_with_dyngroup" = mod ; then
23800 MFLAG=SLAPD_MOD_DYNAMIC
23801 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
23803 MFLAG=SLAPD_MOD_STATIC
23805 cat >> confdefs.h <<EOF
23806 #define SLAPD_OVER_DYNGROUP $MFLAG
23811 if test "$ol_with_proxycache" != no ; then
23812 BUILD_PROXYCACHE=$ol_with_proxycache
23813 if test "$ol_with_proxycache" = mod ; then
23814 MFLAG=SLAPD_MOD_DYNAMIC
23815 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
23817 MFLAG=SLAPD_MOD_STATIC
23819 cat >> confdefs.h <<EOF
23820 #define SLAPD_OVER_PROXYCACHE $MFLAG
23825 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
23826 $BUILD_SLAPD = yes ; then
23830 if test "$ol_enable_rewrite" != no ; then
23831 cat >> confdefs.h <<\EOF
23832 #define ENABLE_REWRITE 1
23838 if test "$ol_enable_slapi" != no ; then
23839 cat >> confdefs.h <<\EOF
23840 #define ENABLE_SLAPI 1
23844 SLAPD_SLAPI_DEPEND=libslapi.a
23849 if test "$ac_cv_mingw32" = yes ; then
23851 SLAPD_MODULES_LDFLAGS=
23856 if test -z "$SLAPD_STATIC_BACKENDS"; then
23857 SLAPD_NO_STATIC='#'
23934 # Check whether --with-xxinstall or --without-xxinstall was given.
23935 if test "${with_xxinstall+set}" = set; then
23936 withval="$with_xxinstall"
23944 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
23946 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23947 # Let make expand exec_prefix.
23948 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23950 # Any assignment to VPATH causes Sun make to only execute
23951 # the first set of double-colon rules, so remove it if not needed.
23952 # If there is a colon in the path, we need to keep it.
23953 if test "x$srcdir" = x.; then
23954 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
23957 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
23959 DEFS=-DHAVE_CONFIG_H
23961 # Without the "./", some shells look in PATH for config.status.
23962 : ${CONFIG_STATUS=./config.status}
23964 echo creating $CONFIG_STATUS
23965 rm -f $CONFIG_STATUS
23966 cat > $CONFIG_STATUS <<EOF
23968 # Generated automatically by configure.
23969 # Run this file to recreate the current configuration.
23970 # This directory was configured as follows,
23971 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23973 # $0 $ac_configure_args
23975 # Compiler output produced by configure, useful for debugging
23976 # configure, is in ./config.log if it exists.
23978 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
23981 case "\$ac_option" in
23982 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23983 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
23984 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
23985 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
23986 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
23988 -help | --help | --hel | --he | --h)
23989 echo "\$ac_cs_usage"; exit 0 ;;
23990 *) echo "\$ac_cs_usage"; exit 1 ;;
23994 ac_given_srcdir=$srcdir
23995 ac_given_INSTALL="$INSTALL"
23997 trap 'rm -fr `echo "\
23998 Makefile:build/top.mk:Makefile.in:build/dir.mk \
23999 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
24000 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
24001 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
24002 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
24003 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
24004 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
24005 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
24006 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
24007 include/Makefile:build/top.mk:include/Makefile.in \
24008 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
24009 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
24010 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
24011 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
24012 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
24013 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
24014 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
24015 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
24016 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
24017 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
24018 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
24019 servers/slapd/back-hdb/Makefile:build/top.mk:servers/slapd/back-hdb/Makefile.in:build/mod.mk \
24020 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
24021 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
24022 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
24023 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
24024 servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk \
24025 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
24026 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
24027 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
24028 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
24029 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
24030 servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk \
24031 servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk \
24032 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
24033 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
24034 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
24036 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
24037 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
24039 cat >> $CONFIG_STATUS <<EOF
24041 # Protect against being on the right side of a sed subst in config.status.
24042 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
24043 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
24047 s%@CFLAGS@%$CFLAGS%g
24048 s%@CPPFLAGS@%$CPPFLAGS%g
24049 s%@CXXFLAGS@%$CXXFLAGS%g
24050 s%@FFLAGS@%$FFLAGS%g
24052 s%@LDFLAGS@%$LDFLAGS%g
24054 s%@exec_prefix@%$exec_prefix%g
24055 s%@prefix@%$prefix%g
24056 s%@program_transform_name@%$program_transform_name%g
24057 s%@bindir@%$bindir%g
24058 s%@sbindir@%$sbindir%g
24059 s%@libexecdir@%$libexecdir%g
24060 s%@datadir@%$datadir%g
24061 s%@sysconfdir@%$sysconfdir%g
24062 s%@sharedstatedir@%$sharedstatedir%g
24063 s%@localstatedir@%$localstatedir%g
24064 s%@libdir@%$libdir%g
24065 s%@includedir@%$includedir%g
24066 s%@oldincludedir@%$oldincludedir%g
24067 s%@infodir@%$infodir%g
24068 s%@mandir@%$mandir%g
24070 s%@host_alias@%$host_alias%g
24071 s%@host_cpu@%$host_cpu%g
24072 s%@host_vendor@%$host_vendor%g
24073 s%@host_os@%$host_os%g
24074 s%@target@%$target%g
24075 s%@target_alias@%$target_alias%g
24076 s%@target_cpu@%$target_cpu%g
24077 s%@target_vendor@%$target_vendor%g
24078 s%@target_os@%$target_os%g
24080 s%@build_alias@%$build_alias%g
24081 s%@build_cpu@%$build_cpu%g
24082 s%@build_vendor@%$build_vendor%g
24083 s%@build_os@%$build_os%g
24084 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
24085 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
24086 s%@INSTALL_DATA@%$INSTALL_DATA%g
24087 s%@PACKAGE@%$PACKAGE%g
24088 s%@VERSION@%$VERSION%g
24089 s%@ACLOCAL@%$ACLOCAL%g
24090 s%@AUTOCONF@%$AUTOCONF%g
24091 s%@AUTOMAKE@%$AUTOMAKE%g
24092 s%@AUTOHEADER@%$AUTOHEADER%g
24093 s%@MAKEINFO@%$MAKEINFO%g
24094 s%@install_sh@%$install_sh%g
24097 s%@AMTARFLAGS@%$AMTARFLAGS%g
24098 s%@SET_MAKE@%$SET_MAKE%g
24099 s%@OPENLDAP_LIBVERSION@%$OPENLDAP_LIBVERSION%g
24100 s%@OPENLDAP_RELEASE_DATE@%$OPENLDAP_RELEASE_DATE%g
24101 s%@top_builddir@%$top_builddir%g
24102 s%@ldap_subdir@%$ldap_subdir%g
24106 s%@OBJEXT@%$OBJEXT%g
24107 s%@EXEEXT@%$EXEEXT%g
24109 s%@RANLIB@%$RANLIB%g
24111 s%@DLLTOOL@%$DLLTOOL%g
24113 s%@OBJDUMP@%$OBJDUMP%g
24115 s%@LIBTOOL@%$LIBTOOL%g
24117 s%@PERLBIN@%$PERLBIN%g
24118 s%@OL_MKDEP@%$OL_MKDEP%g
24119 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
24120 s%@LTSTATIC@%$LTSTATIC%g
24121 s%@LIBOBJS@%$LIBOBJS%g
24122 s%@LIBSRCS@%$LIBSRCS%g
24124 s%@WITH_TLS@%$WITH_TLS%g
24125 s%@BUILD_LIBS_DYNAMIC@%$BUILD_LIBS_DYNAMIC%g
24126 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
24127 s%@BUILD_SLAPI@%$BUILD_SLAPI%g
24128 s%@SLAPD_SLAPI_DEPEND@%$SLAPD_SLAPI_DEPEND%g
24129 s%@BUILD_BDB@%$BUILD_BDB%g
24130 s%@BUILD_DNSSRV@%$BUILD_DNSSRV%g
24131 s%@BUILD_HDB@%$BUILD_HDB%g
24132 s%@BUILD_LDAP@%$BUILD_LDAP%g
24133 s%@BUILD_LDBM@%$BUILD_LDBM%g
24134 s%@BUILD_META@%$BUILD_META%g
24135 s%@BUILD_MONITOR@%$BUILD_MONITOR%g
24136 s%@BUILD_NULL@%$BUILD_NULL%g
24137 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
24138 s%@BUILD_PERL@%$BUILD_PERL%g
24139 s%@BUILD_SHELL@%$BUILD_SHELL%g
24140 s%@BUILD_SQL@%$BUILD_SQL%g
24141 s%@BUILD_BDB_DYNAMIC@%$BUILD_BDB_DYNAMIC%g
24142 s%@BUILD_DNSSRV_DYNAMIC@%$BUILD_DNSSRV_DYNAMIC%g
24143 s%@BUILD_HDB_DYNAMIC@%$BUILD_HDB_DYNAMIC%g
24144 s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
24145 s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
24146 s%@BUILD_META_DYNAMIC@%$BUILD_META_DYNAMIC%g
24147 s%@BUILD_MONITOR_DYNAMIC@%$BUILD_MONITOR_DYNAMIC%g
24148 s%@BUILD_NULL_DYNAMIC@%$BUILD_NULL_DYNAMIC%g
24149 s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
24150 s%@BUILD_PERL_DYNAMIC@%$BUILD_PERL_DYNAMIC%g
24151 s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
24152 s%@BUILD_SQL_DYNAMIC@%$BUILD_SQL_DYNAMIC%g
24153 s%@BUILD_DYNGROUP@%$BUILD_DYNGROUP%g
24154 s%@BUILD_PROXYCACHE@%$BUILD_PROXYCACHE%g
24155 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
24156 s%@LDAP_LIBS@%$LDAP_LIBS%g
24157 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
24158 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
24159 s%@LDBM_LIBS@%$LDBM_LIBS%g
24160 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
24161 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
24162 s%@WRAP_LIBS@%$WRAP_LIBS%g
24163 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
24164 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
24165 s%@SLAPD_NO_STATIC@%$SLAPD_NO_STATIC%g
24166 s%@SLAPD_STATIC_BACKENDS@%$SLAPD_STATIC_BACKENDS%g
24167 s%@SLAPD_DYNAMIC_BACKENDS@%$SLAPD_DYNAMIC_BACKENDS%g
24168 s%@SLAPD_DYNAMIC_OVERLAYS@%$SLAPD_DYNAMIC_OVERLAYS%g
24169 s%@PERL_CPPFLAGS@%$PERL_CPPFLAGS%g
24170 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
24171 s%@MOD_PERL_LDFLAGS@%$MOD_PERL_LDFLAGS%g
24172 s%@KRB4_LIBS@%$KRB4_LIBS%g
24173 s%@KRB5_LIBS@%$KRB5_LIBS%g
24174 s%@SASL_LIBS@%$SASL_LIBS%g
24175 s%@TLS_LIBS@%$TLS_LIBS%g
24176 s%@MODULES_LIBS@%$MODULES_LIBS%g
24177 s%@SLAPI_LIBS@%$SLAPI_LIBS%g
24178 s%@LIBSLAPI@%$LIBSLAPI%g
24179 s%@LIBSLAPITOOLS@%$LIBSLAPITOOLS%g
24180 s%@AUTH_LIBS@%$AUTH_LIBS%g
24181 s%@SLAPD_SLP_LIBS@%$SLAPD_SLP_LIBS%g
24182 s%@SLAPD_SQL_LDFLAGS@%$SLAPD_SQL_LDFLAGS%g
24183 s%@SLAPD_SQL_LIBS@%$SLAPD_SQL_LIBS%g
24184 s%@SLAPD_SQL_INCLUDES@%$SLAPD_SQL_INCLUDES%g
24189 cat >> $CONFIG_STATUS <<\EOF
24191 # Split the substitutions into bite-sized pieces for seds with
24192 # small command number limits, like on Digital OSF/1 and HP-UX.
24193 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
24194 ac_file=1 # Number of current file.
24195 ac_beg=1 # First line for current file.
24196 ac_end=$ac_max_sed_cmds # Line after last line for current file.
24199 while $ac_more_lines; do
24200 if test $ac_beg -gt 1; then
24201 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
24203 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
24205 if test ! -s conftest.s$ac_file; then
24206 ac_more_lines=false
24207 rm -f conftest.s$ac_file
24209 if test -z "$ac_sed_cmds"; then
24210 ac_sed_cmds="sed -f conftest.s$ac_file"
24212 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
24214 ac_file=`expr $ac_file + 1`
24216 ac_end=`expr $ac_end + $ac_max_sed_cmds`
24219 if test -z "$ac_sed_cmds"; then
24224 cat >> $CONFIG_STATUS <<EOF
24226 CONFIG_FILES=\${CONFIG_FILES-"\
24227 Makefile:build/top.mk:Makefile.in:build/dir.mk \
24228 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
24229 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
24230 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
24231 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
24232 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
24233 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
24234 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
24235 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
24236 include/Makefile:build/top.mk:include/Makefile.in \
24237 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
24238 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
24239 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
24240 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
24241 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
24242 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
24243 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
24244 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
24245 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
24246 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
24247 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
24248 servers/slapd/back-hdb/Makefile:build/top.mk:servers/slapd/back-hdb/Makefile.in:build/mod.mk \
24249 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
24250 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
24251 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
24252 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
24253 servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk \
24254 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
24255 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
24256 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
24257 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
24258 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
24259 servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk \
24260 servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk \
24261 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
24262 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
24263 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
24265 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
24268 cat >> $CONFIG_STATUS <<\EOF
24269 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
24270 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24272 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
24273 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24274 *) ac_file_in="${ac_file}.in" ;;
24277 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
24279 # Remove last slash and all that follows it. Not all systems have dirname.
24280 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
24281 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24282 # The file is in a subdirectory.
24283 test ! -d "$ac_dir" && mkdir "$ac_dir"
24284 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
24285 # A "../" for each directory in $ac_dir_suffix.
24286 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
24288 ac_dir_suffix= ac_dots=
24291 case "$ac_given_srcdir" in
24293 if test -z "$ac_dots"; then top_srcdir=.
24294 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
24295 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
24296 *) # Relative path.
24297 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
24298 top_srcdir="$ac_dots$ac_given_srcdir" ;;
24301 case "$ac_given_INSTALL" in
24302 [/$]*) INSTALL="$ac_given_INSTALL" ;;
24303 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
24306 echo creating "$ac_file"
24308 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
24310 *[Mm]akefile*) ac_comsub="1i\\
24311 # $configure_input" ;;
24315 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
24317 s%@configure_input@%$configure_input%g
24318 s%@srcdir@%$srcdir%g
24319 s%@top_srcdir@%$top_srcdir%g
24320 s%@INSTALL@%$INSTALL%g
24321 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
24325 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24326 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24328 # ac_d sets the value in "#define NAME VALUE" lines.
24329 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24330 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
24333 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
24334 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24335 ac_uB='\([ ]\)%\1#\2define\3'
24338 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24339 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24340 ac_eB='$%\1#\2define\3'
24344 if test "${CONFIG_HEADERS+set}" != set; then
24346 cat >> $CONFIG_STATUS <<EOF
24347 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
24349 cat >> $CONFIG_STATUS <<\EOF
24351 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
24352 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24354 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
24355 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24356 *) ac_file_in="${ac_file}.in" ;;
24359 echo creating $ac_file
24361 rm -f conftest.frag conftest.in conftest.out
24362 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
24363 cat $ac_file_inputs > conftest.in
24367 # Transform confdefs.h into a sed script conftest.vals that substitutes
24368 # the proper values into config.h.in to produce config.h. And first:
24369 # Protect against being on the right side of a sed subst in config.status.
24370 # Protect against being in an unquoted here document in config.status.
24371 rm -f conftest.vals
24372 cat > conftest.hdr <<\EOF
24375 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
24379 sed -n -f conftest.hdr confdefs.h > conftest.vals
24382 # This sed command replaces #undef with comments. This is necessary, for
24383 # example, in the case of _POSIX_SOURCE, which is predefined and required
24384 # on some systems where configure will not decide to define it.
24385 cat >> conftest.vals <<\EOF
24386 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
24389 # Break up conftest.vals because some shells have a limit on
24390 # the size of here documents, and old seds have small limits too.
24392 rm -f conftest.tail
24395 ac_lines=`grep -c . conftest.vals`
24396 # grep -c gives empty output for an empty file on some AIX systems.
24397 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
24398 # Write a limited-size here document to conftest.frag.
24399 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
24400 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
24402 sed -f conftest.frag conftest.in > conftest.out
24404 mv conftest.out conftest.in
24405 ' >> $CONFIG_STATUS
24406 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
24407 rm -f conftest.vals
24408 mv conftest.tail conftest.vals
24410 rm -f conftest.vals
24412 cat >> $CONFIG_STATUS <<\EOF
24413 rm -f conftest.frag conftest.h
24414 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
24415 cat conftest.in >> conftest.h
24417 if cmp -s $ac_file conftest.h 2>/dev/null; then
24418 echo "$ac_file is unchanged"
24421 # Remove last slash and all that follows it. Not all systems have dirname.
24422 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
24423 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24424 # The file is in a subdirectory.
24425 test ! -d "$ac_dir" && mkdir "$ac_dir"
24428 mv conftest.h $ac_file
24433 cat >> $CONFIG_STATUS <<EOF
24436 cat >> $CONFIG_STATUS <<\EOF
24440 echo Please run \"make depend\" to build dependencies
24444 chmod +x $CONFIG_STATUS
24445 rm -fr confdefs* $ac_clean_files
24446 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1