3 # from OpenLDAP: pkg/ldap/configure.in,v 1.574 2005/04/02 18:52:23 kurt Exp
5 # This work is part of OpenLDAP Software <http://www.openldap.org/>.
7 # Copyright 1998-2005 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-2005 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 --with-cyrus-sasl with Cyrus SASL support [auto]"
50 --with-fetch with fetch(3) URL support [auto]"
52 --with-threads with threads [auto]"
54 --with-tls with TLS/SSL support [auto]"
56 --with-yielding-select with implicitly yielding select [auto]"
58 --with-multiple-precision
59 multiple precision support for statistics
60 auto|bignum|gmp [auto]"
63 SLAPD (Standalone LDAP Daemon) Options:"
65 --enable-slapd enable building slapd [yes]"
67 --enable-aci enable per-object ACIs (experimental) [no]"
69 --enable-cleartext enable cleartext passwords [yes]"
71 --enable-crypt enable crypt(3) passwords [no]"
73 --enable-lmpasswd enable LAN Manager passwords [no]"
75 --enable-spasswd enable (Cyrus) SASL password verification [no]"
77 --enable-modules enable dynamic module support [no]"
79 --enable-rewrite enable DN rewriting in back-ldap and the rwm overlay [auto]"
81 --enable-rlookups enable reverse lookups of client hostnames [no]"
83 --enable-slapi enable SLAPI support (experimental) [no]"
85 --enable-slp enable SLPv2 support [no]"
87 --enable-wrappers enable tcp wrapper support [no]"
90 SLAPD Backend Options:"
92 --enable-backends enable all available backends no|yes|mod [no]"
94 --enable-bdb enable Berkeley DB backend no|yes|mod [yes]"
96 --enable-dnssrv enable dnssrv backend no|yes|mod [no]"
98 --enable-hdb enable Hierarchical DB backend no|yes|mod [yes]"
100 --enable-ldap enable ldap backend no|yes|mod [no]"
102 --enable-ldbm enable ldbm backend no|yes|mod [no]"
104 --with-ldbm-api with LDBM API auto|berkeley|bcompat|mdbm|gdbm [auto]"
106 --with-ldbm-type use LDBM type auto|btree|hash [auto]"
108 --enable-meta enable metadirectory backend no|yes|mod [no]"
110 --enable-monitor enable monitor backend no|yes|mod [yes]"
112 --enable-null enable null backend no|yes|mod [no]"
114 --enable-passwd enable passwd backend no|yes|mod [no]"
116 --enable-perl enable perl backend no|yes|mod [no]"
118 --enable-relay enable relay backend no|yes|mod [yes]"
120 --enable-shell enable shell backend no|yes|mod [no]"
122 --enable-sql enable sql backend no|yes|mod [no]"
125 SLAPD Overlay Options:"
127 --enable-overlays enable all available overlays no|yes|mod [no]"
129 --enable-denyop Deny Operation overlay no|yes|mod [no]"
131 --enable-dyngroup Dynamic Group overlay no|yes|mod [no]"
133 --enable-glue Backend Glue overlay no|yes|mod [yes]"
135 --enable-lastmod Last Modification overlay no|yes|mod [no]"
137 --enable-ppolicy Password Policy overlay no|yes|mod [no]"
139 --enable-proxycache Proxy Cache overlay no|yes|mod [no]"
141 --enable-refint Referential Integrity overlay no|yes|mod [no]"
143 --enable-rwm Rewrite/Remap overlay no|yes|mod [no]"
145 --enable-syncprov Syncrepl Provider overlay no|yes|mod [yes]"
147 --enable-translucent Translucent Proxy overlay no|yes|mod [no]"
149 --enable-unique Attribute Uniqueness overlay no|yes|mod [no]"
152 SLURPD (Replication Daemon) Options:"
154 --enable-slurpd enable building slurpd [auto]"
157 Library Generation & Linking Options"
159 --enable-static[=PKGS] build static libraries [default=yes]"
161 --enable-shared[=PKGS] build shared libraries [default=yes]"
163 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
165 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
167 # Find the correct PATH separator. Usually this is `:', but
168 # DJGPP uses `;' like DOS.
169 if test "X${PATH_SEPARATOR+set}" != Xset; then
170 UNAME=${UNAME-`uname 2>/dev/null`}
172 *-DOS) lt_cv_sys_path_separator=';' ;;
173 *) lt_cv_sys_path_separator=':' ;;
175 PATH_SEPARATOR=$lt_cv_sys_path_separator
179 # Check that we are running under the correct shell.
180 SHELL=${CONFIG_SHELL-/bin/sh}
184 # Remove one level of quotation (which was required for Make).
185 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
190 if test "X$1" = X--no-reexec; then
191 # Discard the --no-reexec flag, and continue.
193 elif test "X$1" = X--fallback-echo; then
194 # Avoid inline document here, it may be left over
196 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
197 # Yippee, $echo works!
200 # Restart under the correct shell.
201 exec $SHELL "$0" --no-reexec ${1+"$@"}
204 if test "X$1" = X--fallback-echo; then
205 # used as fallback echo
213 # The HP-UX ksh and POSIX shell print the target directory to stdout
215 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
217 if test -z "$ECHO"; then
218 if test "X${echo_test_string+set}" != Xset; then
219 # find a string as large as possible, as long as the shell can cope with it
220 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
221 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
222 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
223 echo_test_string="`eval $cmd`" &&
224 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
231 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
232 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
233 test "X$echo_testing_string" = "X$echo_test_string"; then
236 # The Solaris, AIX, and Digital Unix default echo programs unquote
237 # backslashes. This makes it impossible to quote backslashes using
238 # echo "$something" | sed 's/\\/\\\\/g'
240 # So, first we look for a working echo in the user's PATH.
242 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
243 for dir in $PATH /usr/ucb; do
244 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
245 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
246 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
247 test "X$echo_testing_string" = "X$echo_test_string"; then
254 if test "X$echo" = Xecho; then
255 # We didn't find a better echo, so look for alternatives.
256 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
257 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
258 test "X$echo_testing_string" = "X$echo_test_string"; then
259 # This shell has a builtin print -r that does the trick.
261 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
262 test "X$CONFIG_SHELL" != X/bin/ksh; then
263 # If we have ksh, try running configure again with it.
264 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
265 export ORIGINAL_CONFIG_SHELL
266 CONFIG_SHELL=/bin/ksh
268 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
272 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
273 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
274 test "X$echo_testing_string" = "X$echo_test_string"; then
277 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
278 test "X$echo_testing_string" = 'X\t' &&
279 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
280 test "X$echo_testing_string" = "X$echo_test_string"; then
281 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
283 SHELL="$CONFIG_SHELL"
285 echo="$CONFIG_SHELL $0 --fallback-echo"
286 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
287 test "X$echo_testing_string" = 'X\t' &&
288 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
289 test "X$echo_testing_string" = "X$echo_test_string"; then
290 echo="$CONFIG_SHELL $0 --fallback-echo"
292 # maybe with a smaller string...
295 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
296 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
303 if test "$prev" != 'sed 50q "$0"'; then
304 echo_test_string=`eval $prev`
305 export echo_test_string
306 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
308 # Oops. We lost completely, so just stick with echo.
317 # Copy echo and quote the copy suitably for passing to libtool from
318 # the Makefile, instead of quoting the original, which is used later.
320 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
321 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
326 --disable-libtool-lock avoid locking (might break parallel builds)"
328 --with-pic try to use only PIC/non-PIC objects [default=use both]"
331 See INSTALL file for further details."
333 # Initialize some variables set by options.
334 # The variables have the same names as the options, with
335 # dashes changed to underlines.
337 cache_file=./config.cache
346 program_transform_name=s,x,x,
354 bindir='${exec_prefix}/bin'
355 sbindir='${exec_prefix}/sbin'
356 libexecdir='${exec_prefix}/libexec'
357 datadir='${prefix}/share'
358 sysconfdir='${prefix}/etc'
359 sharedstatedir='${prefix}/com'
360 localstatedir='${prefix}/var'
361 libdir='${exec_prefix}/lib'
362 includedir='${prefix}/include'
363 oldincludedir='/usr/include'
364 infodir='${prefix}/info'
365 mandir='${prefix}/man'
367 # Initialize some other variables.
370 SHELL=${CONFIG_SHELL-/bin/sh}
371 # Maximum number of lines to put in a shell here document.
378 # If the previous option needs an argument, assign it.
379 if test -n "$ac_prev"; then
380 eval "$ac_prev=\$ac_option"
386 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
390 # Accept the important Cygnus configure options, so we can diagnose typos.
394 -bindir | --bindir | --bindi | --bind | --bin | --bi)
396 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
397 bindir="$ac_optarg" ;;
399 -build | --build | --buil | --bui | --bu)
401 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
402 build="$ac_optarg" ;;
404 -cache-file | --cache-file | --cache-fil | --cache-fi \
405 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
406 ac_prev=cache_file ;;
407 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
408 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
409 cache_file="$ac_optarg" ;;
411 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
413 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
415 datadir="$ac_optarg" ;;
417 -disable-* | --disable-*)
418 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
419 # Reject names that are not valid shell variable names.
420 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
421 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
423 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
424 eval "enable_${ac_feature}=no" ;;
426 -enable-* | --enable-*)
427 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
428 # Reject names that are not valid shell variable names.
429 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
430 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
432 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
437 eval "enable_${ac_feature}='$ac_optarg'" ;;
439 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
440 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
441 | --exec | --exe | --ex)
442 ac_prev=exec_prefix ;;
443 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
444 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
445 | --exec=* | --exe=* | --ex=*)
446 exec_prefix="$ac_optarg" ;;
448 -gas | --gas | --ga | --g)
449 # Obsolete; use --with-gas.
452 -help | --help | --hel | --he)
453 # Omit some internal or obsolete options to make the list less imposing.
454 # This message is too long to be a string in the A/UX 3.1 sh.
456 Usage: configure [options] [host]
457 Options: [defaults in brackets after descriptions]
459 --cache-file=FILE cache test results in FILE
460 --help print this message
461 --no-create do not create output files
462 --quiet, --silent do not print \`checking...' messages
463 --version print the version of autoconf that created configure
464 Directory and file names:
465 --prefix=PREFIX install architecture-independent files in PREFIX
467 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
469 --bindir=DIR user executables in DIR [EPREFIX/bin]
470 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
471 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
472 --datadir=DIR read-only architecture-independent data in DIR
474 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
475 --sharedstatedir=DIR modifiable architecture-independent data in DIR
477 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
478 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
479 --includedir=DIR C header files in DIR [PREFIX/include]
480 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
481 --infodir=DIR info documentation in DIR [PREFIX/info]
482 --mandir=DIR man documentation in DIR [PREFIX/man]
483 --srcdir=DIR find the sources in DIR [configure dir or ..]
484 --program-prefix=PREFIX prepend PREFIX to installed program names
485 --program-suffix=SUFFIX append SUFFIX to installed program names
486 --program-transform-name=PROGRAM
487 run sed PROGRAM on installed program names
491 --build=BUILD configure for building on BUILD [BUILD=HOST]
492 --host=HOST configure for HOST [guessed]
493 --target=TARGET configure for TARGET [TARGET=HOST]
494 Features and packages:
495 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
496 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
497 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
498 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
499 --x-includes=DIR X include files are in DIR
500 --x-libraries=DIR X library files are in DIR
502 if test -n "$ac_help"; then
503 echo "--enable and --with options recognized:$ac_help"
507 -host | --host | --hos | --ho)
509 -host=* | --host=* | --hos=* | --ho=*)
512 -includedir | --includedir | --includedi | --included | --include \
513 | --includ | --inclu | --incl | --inc)
514 ac_prev=includedir ;;
515 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
516 | --includ=* | --inclu=* | --incl=* | --inc=*)
517 includedir="$ac_optarg" ;;
519 -infodir | --infodir | --infodi | --infod | --info | --inf)
521 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
522 infodir="$ac_optarg" ;;
524 -libdir | --libdir | --libdi | --libd)
526 -libdir=* | --libdir=* | --libdi=* | --libd=*)
527 libdir="$ac_optarg" ;;
529 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
530 | --libexe | --libex | --libe)
531 ac_prev=libexecdir ;;
532 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
533 | --libexe=* | --libex=* | --libe=*)
534 libexecdir="$ac_optarg" ;;
536 -localstatedir | --localstatedir | --localstatedi | --localstated \
537 | --localstate | --localstat | --localsta | --localst \
538 | --locals | --local | --loca | --loc | --lo)
539 ac_prev=localstatedir ;;
540 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
541 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
542 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
543 localstatedir="$ac_optarg" ;;
545 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
547 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
548 mandir="$ac_optarg" ;;
551 # Obsolete; use --without-fp.
554 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
558 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
559 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
562 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
563 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
564 | --oldin | --oldi | --old | --ol | --o)
565 ac_prev=oldincludedir ;;
566 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
567 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
568 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
569 oldincludedir="$ac_optarg" ;;
571 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
573 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
574 prefix="$ac_optarg" ;;
576 -program-prefix | --program-prefix | --program-prefi | --program-pref \
577 | --program-pre | --program-pr | --program-p)
578 ac_prev=program_prefix ;;
579 -program-prefix=* | --program-prefix=* | --program-prefi=* \
580 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
581 program_prefix="$ac_optarg" ;;
583 -program-suffix | --program-suffix | --program-suffi | --program-suff \
584 | --program-suf | --program-su | --program-s)
585 ac_prev=program_suffix ;;
586 -program-suffix=* | --program-suffix=* | --program-suffi=* \
587 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
588 program_suffix="$ac_optarg" ;;
590 -program-transform-name | --program-transform-name \
591 | --program-transform-nam | --program-transform-na \
592 | --program-transform-n | --program-transform- \
593 | --program-transform | --program-transfor \
594 | --program-transfo | --program-transf \
595 | --program-trans | --program-tran \
596 | --progr-tra | --program-tr | --program-t)
597 ac_prev=program_transform_name ;;
598 -program-transform-name=* | --program-transform-name=* \
599 | --program-transform-nam=* | --program-transform-na=* \
600 | --program-transform-n=* | --program-transform-=* \
601 | --program-transform=* | --program-transfor=* \
602 | --program-transfo=* | --program-transf=* \
603 | --program-trans=* | --program-tran=* \
604 | --progr-tra=* | --program-tr=* | --program-t=*)
605 program_transform_name="$ac_optarg" ;;
607 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
608 | -silent | --silent | --silen | --sile | --sil)
611 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
613 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
615 sbindir="$ac_optarg" ;;
617 -sharedstatedir | --sharedstatedir | --sharedstatedi \
618 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
619 | --sharedst | --shareds | --shared | --share | --shar \
621 ac_prev=sharedstatedir ;;
622 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
623 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
624 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
626 sharedstatedir="$ac_optarg" ;;
628 -site | --site | --sit)
630 -site=* | --site=* | --sit=*)
633 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
635 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
636 srcdir="$ac_optarg" ;;
638 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
639 | --syscon | --sysco | --sysc | --sys | --sy)
640 ac_prev=sysconfdir ;;
641 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
642 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
643 sysconfdir="$ac_optarg" ;;
645 -target | --target | --targe | --targ | --tar | --ta | --t)
647 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
648 target="$ac_optarg" ;;
650 -v | -verbose | --verbose | --verbos | --verbo | --verb)
653 -version | --version | --versio | --versi | --vers)
654 echo "configure generated by autoconf version 2.13.1"
658 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
659 # Reject names that are not valid shell variable names.
660 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
661 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
663 ac_package=`echo $ac_package| sed 's/-/_/g'`
668 eval "with_${ac_package}='$ac_optarg'" ;;
670 -without-* | --without-*)
671 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
672 # Reject names that are not valid shell variable names.
673 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
674 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
676 ac_package=`echo $ac_package| sed 's/-/_/g'`
677 eval "with_${ac_package}=no" ;;
680 # Obsolete; use --with-x.
683 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
684 | --x-incl | --x-inc | --x-in | --x-i)
685 ac_prev=x_includes ;;
686 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
687 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
688 x_includes="$ac_optarg" ;;
690 -x-libraries | --x-libraries | --x-librarie | --x-librari \
691 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
692 ac_prev=x_libraries ;;
693 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
694 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
695 x_libraries="$ac_optarg" ;;
697 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
701 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
702 echo "configure: warning: $ac_option: invalid host type" 1>&2
704 if test "x$nonopt" != xNONE; then
705 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
713 if test -n "$ac_prev"; then
714 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
717 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
719 # File descriptor usage:
722 # 2 errors and warnings
723 # 3 some systems may open it to /dev/tty
724 # 4 used on the Kubota Titan
725 # 6 checking for... messages and results
726 # 5 compiler messages saved in config.log
727 if test "$silent" = yes; then
735 This file contains any messages produced by compilers while
736 running configure, to aid debugging if configure makes a mistake.
739 # Strip out --no-create and --no-recursion so they do not pile up.
740 # Also quote any args containing shell metacharacters.
745 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
746 | --no-cr | --no-c) ;;
747 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
748 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
749 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
750 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
751 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
756 # Only set these to C if already set. These must not be set unconditionally
757 # because not all systems understand e.g. LANG=C (notably SCO).
758 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
759 # Non-C LC_CTYPE values break the ctype check.
760 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
761 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
762 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
763 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
765 # confdefs.h avoids OS command line length limits that DEFS can exceed.
766 rm -rf conftest* confdefs.h
767 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
770 # A filename unique to this package, relative to the directory that
771 # configure is in, which we can look for to find out if srcdir is correct.
772 ac_unique_file=build/version.sh
774 # Find the source files, if location was not specified.
775 if test -z "$srcdir"; then
776 ac_srcdir_defaulted=yes
777 # Try the directory containing this script, then its parent.
779 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
780 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
782 if test ! -r $srcdir/$ac_unique_file; then
786 ac_srcdir_defaulted=no
788 if test ! -r $srcdir/$ac_unique_file; then
789 if test "$ac_srcdir_defaulted" = yes; then
790 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
792 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
795 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
797 # Prefer explicitly selected file to automatically selected ones.
798 if test -z "$CONFIG_SITE"; then
799 if test "x$prefix" != xNONE; then
800 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
802 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
805 for ac_site_file in $CONFIG_SITE; do
806 if test -r "$ac_site_file"; then
807 echo "loading site script $ac_site_file"
814 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
815 ac_cpp='$CPP $CPPFLAGS'
816 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
817 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
818 cross_compiling=$ac_cv_prog_cc_cross
822 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
823 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
824 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
831 ac_n= ac_c='\c' ac_t=
835 # set unset (borrowed from autoconf 2.49c)
836 if (OL_FOO=OL_FOO; unset OL_FOO) >/dev/null 2>&1; then
842 $ol_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
845 for ac_dir in build $srcdir/build; do
846 if test -f $ac_dir/install-sh; then
848 ac_install_sh="$ac_aux_dir/install-sh -c"
850 elif test -f $ac_dir/install.sh; then
852 ac_install_sh="$ac_aux_dir/install.sh -c"
854 elif test -f $ac_dir/shtool; then
856 ac_install_sh="$ac_aux_dir/shtool install -c"
860 if test -z "$ac_aux_dir"; then
861 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
863 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
864 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
865 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
867 eval `$ac_aux_dir/version.sh`
868 if test -z "$OL_STRING"; then
869 { echo "configure: error: could not determine version" 1>&2; exit 1; }
872 if test -f "$ac_aux_dir/shtool" -a ! -d $ac_aux_dir/shtool; then
873 ac_cv_shtool="$ac_aux_dir/shtool"
875 { echo "configure: error: no shtool found in $ac_aux_dir" 1>&2; exit 1; }
878 SHTOOL="$ac_cv_shtool"
880 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
881 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
884 if test -d $ac_aux_dir/CVS; then
885 OPENLDAP_CVS="(from CVS sources) "
888 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
891 echo $ac_n "checking host system type""... $ac_c" 1>&6
892 echo "configure:893: checking host system type" >&5
893 if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
895 # Make sure we can run config.sub.
896 if $ac_config_sub sun4 >/dev/null 2>&1; then :
897 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
900 ac_cv_host_alias=$host
901 case "$ac_cv_host_alias" in
905 if ac_cv_host_alias=`$ac_config_guess`; then :
906 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
908 *) ac_cv_host_alias=$nonopt ;;
912 ac_cv_host=`$ac_config_sub $ac_cv_host_alias`
913 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
914 ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
915 ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
917 echo $ac_n "(cached) $ac_c" 1>&6
920 echo "$ac_t""$ac_cv_host" 1>&6
923 host_alias=$ac_cv_host_alias
924 host_cpu=$ac_cv_host_cpu
925 host_vendor=$ac_cv_host_vendor
926 host_os=$ac_cv_host_os
932 echo $ac_n "checking target system type""... $ac_c" 1>&6
933 echo "configure:934: checking target system type" >&5
934 if test "x$ac_cv_target" = "x" || (test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
936 # Make sure we can run config.sub.
937 if $ac_config_sub sun4 >/dev/null 2>&1; then :
938 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
941 ac_cv_target_alias=$target
942 case "$ac_cv_target_alias" in
946 ac_cv_target_alias=$host_alias ;;
948 *) ac_cv_target_alias=$nonopt ;;
952 ac_cv_target=`$ac_config_sub $ac_cv_target_alias`
953 ac_cv_target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
954 ac_cv_target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
955 ac_cv_target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
957 echo $ac_n "(cached) $ac_c" 1>&6
960 echo "$ac_t""$ac_cv_target" 1>&6
963 target_alias=$ac_cv_target_alias
964 target_cpu=$ac_cv_target_cpu
965 target_vendor=$ac_cv_target_vendor
966 target_os=$ac_cv_target_os
972 echo $ac_n "checking build system type""... $ac_c" 1>&6
973 echo "configure:974: checking build system type" >&5
974 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
976 # Make sure we can run config.sub.
977 if $ac_config_sub sun4 >/dev/null 2>&1; then :
978 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
981 ac_cv_build_alias=$build
982 case "$ac_cv_build_alias" in
986 ac_cv_build_alias=$host_alias ;;
988 *) ac_cv_build_alias=$nonopt ;;
992 ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
993 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
994 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
995 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
997 echo $ac_n "(cached) $ac_c" 1>&6
1000 echo "$ac_t""$ac_cv_build" 1>&6
1003 build_alias=$ac_cv_build_alias
1004 build_cpu=$ac_cv_build_cpu
1005 build_vendor=$ac_cv_build_vendor
1006 build_os=$ac_cv_build_os
1012 # Do some error checking and defaulting for the host and target type.
1014 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1017 # 1. You are not allowed to specify --host, --target, and nonopt at the
1019 # 2. Host defaults to nonopt.
1020 # 3. If nonopt is not specified, then host defaults to the current host,
1021 # as determined by config.guess.
1022 # 4. Target and build default to nonopt.
1023 # 5. If nonopt is not specified, then target and build default to host.
1025 # The aliases save the names the user supplied, while $host etc.
1026 # will get canonicalized.
1027 case $host---$target---$nonopt in
1028 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1029 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1032 test "$host_alias" != "$target_alias" &&
1033 test "$program_prefix$program_suffix$program_transform_name" = \
1035 program_prefix=${target_alias}-
1038 # Find a good install program. We prefer a C program (faster),
1039 # so one script is as good as another. But avoid the broken or
1040 # incompatible versions:
1041 # SysV /etc/install, /usr/sbin/install
1042 # SunOS /usr/etc/install
1043 # IRIX /sbin/install
1045 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1046 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1047 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1048 # ./install, which can be erroneously created by make from ./install.sh.
1049 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1050 echo "configure:1051: checking for a BSD compatible install" >&5
1051 if test -z "$INSTALL"; then
1052 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
1053 echo $ac_n "(cached) $ac_c" 1>&6
1055 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1056 for ac_dir in $PATH; do
1057 # Account for people who put trailing slashes in PATH elements.
1059 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1061 # OSF1 and SCO ODT 3.0 have their own names for install.
1062 # Don't use installbsd from OSF since it installs stuff as root
1064 for ac_prog in ginstall scoinst install; do
1065 if test -f $ac_dir/$ac_prog; then
1066 if test $ac_prog = install &&
1067 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1068 # AIX install. It has an incompatible calling convention.
1070 elif test $ac_prog = install &&
1071 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
1072 # program-specific install script used by HP pwplus--don't use.
1075 ac_cv_path_install="$ac_dir/$ac_prog -c"
1086 if test "${ac_cv_path_install+set}" = set; then
1087 INSTALL="$ac_cv_path_install"
1089 # As a last resort, use the slow shell script. We don't cache a
1090 # path for INSTALL within a source directory, because that will
1091 # break other packages using the cache if that directory is
1092 # removed, or if the path is relative.
1093 INSTALL="$ac_install_sh"
1096 echo "$ac_t""$INSTALL" 1>&6
1098 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1099 # It thinks the first close brace ends the variable substitution.
1100 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1102 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1104 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1106 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1107 echo "configure:1108: checking whether build environment is sane" >&5
1110 echo timestamp > conftestfile
1111 # Do `set' in a subshell so we don't clobber the current shell's
1112 # arguments. Must try -L first in case configure is actually a
1113 # symlink; some systems play weird games with the mod time of symlinks
1114 # (eg FreeBSD returns the mod time of the symlink's containing
1117 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1118 if test "$*" = "X"; then
1120 set X `ls -t $srcdir/configure conftestfile`
1122 if test "$*" != "X $srcdir/configure conftestfile" \
1123 && test "$*" != "X conftestfile $srcdir/configure"; then
1125 # If neither matched, then we have a broken ls. This can happen
1126 # if, for instance, CONFIG_SHELL is bash and it inherits a
1127 # broken ls alias from the environment. This has actually
1128 # happened. Such a system could not be considered "sane".
1129 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1130 alias in your environment" 1>&2; exit 1; }
1133 test "$2" = conftestfile
1139 { echo "configure: error: newly created file is older than distributed files!
1140 Check your system clock" 1>&2; exit 1; }
1143 echo "$ac_t""yes" 1>&6
1144 if test "$program_transform_name" = s,x,x,; then
1145 program_transform_name=
1147 # Double any \ or $. echo might interpret backslashes.
1148 cat <<\EOF_SED > conftestsed
1149 s,\\,\\\\,g; s,\$,$$,g
1151 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1154 test "$program_prefix" != NONE &&
1155 program_transform_name="s,^,${program_prefix},;$program_transform_name"
1156 # Use a double $ so make ignores it.
1157 test "$program_suffix" != NONE &&
1158 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
1160 # sed with no file args requires a program.
1161 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1163 for ac_prog in mawk gawk nawk awk
1165 # Extract the first word of "$ac_prog", so it can be a program name with args.
1166 set dummy $ac_prog; ac_word=$2
1167 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1168 echo "configure:1169: checking for $ac_word" >&5
1169 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
1170 echo $ac_n "(cached) $ac_c" 1>&6
1172 if test -n "$AWK"; then
1173 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1175 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1177 for ac_dir in $ac_dummy; do
1178 test -z "$ac_dir" && ac_dir=.
1179 if test -f $ac_dir/$ac_word; then
1180 ac_cv_prog_AWK="$ac_prog"
1187 AWK="$ac_cv_prog_AWK"
1188 if test -n "$AWK"; then
1189 echo "$ac_t""$AWK" 1>&6
1191 echo "$ac_t""no" 1>&6
1194 test -n "$AWK" && break
1197 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1198 echo "configure:1199: checking whether ${MAKE-make} sets \${MAKE}" >&5
1199 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1200 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1201 echo $ac_n "(cached) $ac_c" 1>&6
1203 cat > conftestmake <<\EOF
1205 @echo 'ac_maketemp="${MAKE}"'
1207 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1208 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1209 if test -n "$ac_maketemp"; then
1210 eval ac_cv_prog_make_${ac_make}_set=yes
1212 eval ac_cv_prog_make_${ac_make}_set=no
1216 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1217 echo "$ac_t""yes" 1>&6
1220 echo "$ac_t""no" 1>&6
1221 SET_MAKE="MAKE=${MAKE-make}"
1230 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1231 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1236 missing_dir=`cd $ac_aux_dir && pwd`
1237 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1238 echo "configure:1239: checking for working aclocal" >&5
1239 # Run test in a subshell; some versions of sh will print an error if
1240 # an executable is not found, even if stderr is redirected.
1241 # Redirect stdin to placate older versions of autoconf. Sigh.
1242 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1244 echo "$ac_t""found" 1>&6
1246 ACLOCAL="$missing_dir/missing aclocal"
1247 echo "$ac_t""missing" 1>&6
1250 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1251 echo "configure:1252: checking for working autoconf" >&5
1252 # Run test in a subshell; some versions of sh will print an error if
1253 # an executable is not found, even if stderr is redirected.
1254 # Redirect stdin to placate older versions of autoconf. Sigh.
1255 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1257 echo "$ac_t""found" 1>&6
1259 AUTOCONF="$missing_dir/missing autoconf"
1260 echo "$ac_t""missing" 1>&6
1263 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1264 echo "configure:1265: checking for working automake" >&5
1265 # Run test in a subshell; some versions of sh will print an error if
1266 # an executable is not found, even if stderr is redirected.
1267 # Redirect stdin to placate older versions of autoconf. Sigh.
1268 if (automake --version) < /dev/null > /dev/null 2>&1; then
1270 echo "$ac_t""found" 1>&6
1272 AUTOMAKE="$missing_dir/missing automake"
1273 echo "$ac_t""missing" 1>&6
1276 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1277 echo "configure:1278: checking for working autoheader" >&5
1278 # Run test in a subshell; some versions of sh will print an error if
1279 # an executable is not found, even if stderr is redirected.
1280 # Redirect stdin to placate older versions of autoconf. Sigh.
1281 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1282 AUTOHEADER=autoheader
1283 echo "$ac_t""found" 1>&6
1285 AUTOHEADER="$missing_dir/missing autoheader"
1286 echo "$ac_t""missing" 1>&6
1289 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1290 echo "configure:1291: checking for working makeinfo" >&5
1291 # Run test in a subshell; some versions of sh will print an error if
1292 # an executable is not found, even if stderr is redirected.
1293 # Redirect stdin to placate older versions of autoconf. Sigh.
1294 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1296 echo "$ac_t""found" 1>&6
1298 MAKEINFO="$missing_dir/missing makeinfo"
1299 echo "$ac_t""missing" 1>&6
1302 install_sh="$missing_dir/install-sh"
1303 test -f "$install_sh" || install_sh="$missing_dir/install.sh"
1305 for ac_prog in gnutar gtar tar
1307 # Extract the first word of "$ac_prog", so it can be a program name with args.
1308 set dummy $ac_prog; ac_word=$2
1309 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1310 echo "configure:1311: checking for $ac_word" >&5
1311 if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then
1312 echo $ac_n "(cached) $ac_c" 1>&6
1314 if test -n "$AMTAR"; then
1315 ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
1317 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1319 for ac_dir in $ac_dummy; do
1320 test -z "$ac_dir" && ac_dir=.
1321 if test -f $ac_dir/$ac_word; then
1322 ac_cv_prog_AMTAR="$ac_prog"
1329 AMTAR="$ac_cv_prog_AMTAR"
1330 if test -n "$AMTAR"; then
1331 echo "$ac_t""$AMTAR" 1>&6
1333 echo "$ac_t""no" 1>&6
1336 test -n "$AMTAR" && break
1341 if test -n "$AMTAR"; then
1342 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
1347 cat >> confdefs.h <<EOF
1348 #define OPENLDAP_PACKAGE "$PACKAGE"
1351 cat >> confdefs.h <<EOF
1352 #define OPENLDAP_VERSION "$VERSION"
1356 cat >> confdefs.h <<EOF
1357 #define LDAP_VENDOR_VERSION $OL_API_INC
1360 cat >> confdefs.h <<EOF
1361 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
1364 cat >> confdefs.h <<EOF
1365 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
1368 cat >> confdefs.h <<EOF
1369 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
1373 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
1375 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
1377 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
1381 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
1382 echo "configure:1383: checking configure arguments" >&5
1387 ldap_subdir="/openldap"
1389 # Check whether --with-subdir or --without-subdir was given.
1390 if test "${with_subdir+set}" = set; then
1391 withval="$with_subdir"
1398 ldap_subdir="$withval"
1401 ldap_subdir="/$withval"
1408 # OpenLDAP --enable-debug
1409 # Check whether --enable-debug or --disable-debug was given.
1410 if test "${enable_debug+set}" = set; then
1411 enableval="$enable_debug"
1414 for ol_val in auto yes no ; do
1415 if test "$enableval" = "$ol_val" ; then
1419 if test "$ol_arg" = "invalid" ; then
1420 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
1422 ol_enable_debug="$ol_arg"
1425 ol_enable_debug="yes"
1427 # end --enable-debug
1428 # OpenLDAP --enable-dynamic
1429 # Check whether --enable-dynamic or --disable-dynamic was given.
1430 if test "${enable_dynamic+set}" = set; then
1431 enableval="$enable_dynamic"
1434 for ol_val in auto yes no ; do
1435 if test "$enableval" = "$ol_val" ; then
1439 if test "$ol_arg" = "invalid" ; then
1440 { echo "configure: error: bad value $enableval for --enable-dynamic" 1>&2; exit 1; }
1442 ol_enable_dynamic="$ol_arg"
1445 ol_enable_dynamic="no"
1447 # end --enable-dynamic
1448 # OpenLDAP --enable-syslog
1449 # Check whether --enable-syslog or --disable-syslog was given.
1450 if test "${enable_syslog+set}" = set; then
1451 enableval="$enable_syslog"
1454 for ol_val in auto yes no ; do
1455 if test "$enableval" = "$ol_val" ; then
1459 if test "$ol_arg" = "invalid" ; then
1460 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
1462 ol_enable_syslog="$ol_arg"
1465 ol_enable_syslog="auto"
1467 # end --enable-syslog
1468 # OpenLDAP --enable-proctitle
1469 # Check whether --enable-proctitle or --disable-proctitle was given.
1470 if test "${enable_proctitle+set}" = set; then
1471 enableval="$enable_proctitle"
1474 for ol_val in auto yes no ; do
1475 if test "$enableval" = "$ol_val" ; then
1479 if test "$ol_arg" = "invalid" ; then
1480 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
1482 ol_enable_proctitle="$ol_arg"
1485 ol_enable_proctitle="yes"
1487 # end --enable-proctitle
1488 ol_enable_referrals=${ol_enable_referrals-no}
1489 ol_enable_kbind=${ol_enable_kbind-no}
1490 # OpenLDAP --enable-ipv6
1491 # Check whether --enable-ipv6 or --disable-ipv6 was given.
1492 if test "${enable_ipv6+set}" = set; then
1493 enableval="$enable_ipv6"
1496 for ol_val in auto yes no ; do
1497 if test "$enableval" = "$ol_val" ; then
1501 if test "$ol_arg" = "invalid" ; then
1502 { echo "configure: error: bad value $enableval for --enable-ipv6" 1>&2; exit 1; }
1504 ol_enable_ipv6="$ol_arg"
1507 ol_enable_ipv6="auto"
1510 # OpenLDAP --enable-local
1511 # Check whether --enable-local or --disable-local was given.
1512 if test "${enable_local+set}" = set; then
1513 enableval="$enable_local"
1516 for ol_val in auto yes no ; do
1517 if test "$enableval" = "$ol_val" ; then
1521 if test "$ol_arg" = "invalid" ; then
1522 { echo "configure: error: bad value $enableval for --enable-local" 1>&2; exit 1; }
1524 ol_enable_local="$ol_arg"
1527 ol_enable_local="auto"
1529 # end --enable-local
1532 # OpenLDAP --with-cyrus_sasl
1533 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
1534 if test "${with_cyrus_sasl+set}" = set; then
1535 withval="$with_cyrus_sasl"
1538 for ol_val in auto yes no ; do
1539 if test "$withval" = "$ol_val" ; then
1543 if test "$ol_arg" = "invalid" ; then
1544 { echo "configure: error: bad value $withval for --with-cyrus_sasl" 1>&2; exit 1; }
1546 ol_with_cyrus_sasl="$ol_arg"
1549 ol_with_cyrus_sasl="auto"
1551 # end --with-cyrus_sasl
1553 # OpenLDAP --with-fetch
1554 # Check whether --with-fetch or --without-fetch was given.
1555 if test "${with_fetch+set}" = set; then
1556 withval="$with_fetch"
1559 for ol_val in auto yes no ; do
1560 if test "$withval" = "$ol_val" ; then
1564 if test "$ol_arg" = "invalid" ; then
1565 { echo "configure: error: bad value $withval for --with-fetch" 1>&2; exit 1; }
1567 ol_with_fetch="$ol_arg"
1570 ol_with_fetch="auto"
1574 ol_with_kerberos=${ol_with_kerberos-auto}
1575 # OpenLDAP --with-threads
1576 # Check whether --with-threads or --without-threads was given.
1577 if test "${with_threads+set}" = set; then
1578 withval="$with_threads"
1581 for ol_val in auto nt posix mach pth lwp yes no manual ; do
1582 if test "$withval" = "$ol_val" ; then
1586 if test "$ol_arg" = "invalid" ; then
1587 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1589 ol_with_threads="$ol_arg"
1592 ol_with_threads="auto"
1594 # end --with-threads
1596 # OpenLDAP --with-tls
1597 # Check whether --with-tls or --without-tls was given.
1598 if test "${with_tls+set}" = set; then
1602 for ol_val in auto ssleay openssl yes no ; do
1603 if test "$withval" = "$ol_val" ; then
1607 if test "$ol_arg" = "invalid" ; then
1608 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1610 ol_with_tls="$ol_arg"
1617 # OpenLDAP --with-yielding_select
1618 # Check whether --with-yielding_select or --without-yielding_select was given.
1619 if test "${with_yielding_select+set}" = set; then
1620 withval="$with_yielding_select"
1623 for ol_val in auto yes no manual ; do
1624 if test "$withval" = "$ol_val" ; then
1628 if test "$ol_arg" = "invalid" ; then
1629 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1631 ol_with_yielding_select="$ol_arg"
1634 ol_with_yielding_select="auto"
1636 # end --with-yielding_select
1638 # OpenLDAP --with-multiple_precision
1639 # Check whether --with-multiple_precision or --without-multiple_precision was given.
1640 if test "${with_multiple_precision+set}" = set; then
1641 withval="$with_multiple_precision"
1644 for ol_val in auto bignum gmp yes no ; do
1645 if test "$withval" = "$ol_val" ; then
1649 if test "$ol_arg" = "invalid" ; then
1650 { echo "configure: error: bad value $withval for --with-multiple_precision" 1>&2; exit 1; }
1652 ol_with_multiple_precision="$ol_arg"
1655 ol_with_multiple_precision="auto"
1657 # end --with-multiple_precision
1661 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1662 if test "${with_xxslapdoptions+set}" = set; then
1663 withval="$with_xxslapdoptions"
1667 # OpenLDAP --enable-slapd
1668 # Check whether --enable-slapd or --disable-slapd was given.
1669 if test "${enable_slapd+set}" = set; then
1670 enableval="$enable_slapd"
1673 for ol_val in auto yes no ; do
1674 if test "$enableval" = "$ol_val" ; then
1678 if test "$ol_arg" = "invalid" ; then
1679 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1681 ol_enable_slapd="$ol_arg"
1684 ol_enable_slapd="yes"
1686 # end --enable-slapd
1687 # OpenLDAP --enable-aci
1688 # Check whether --enable-aci or --disable-aci was given.
1689 if test "${enable_aci+set}" = set; then
1690 enableval="$enable_aci"
1693 for ol_val in auto yes no ; do
1694 if test "$enableval" = "$ol_val" ; then
1698 if test "$ol_arg" = "invalid" ; then
1699 { echo "configure: error: bad value $enableval for --enable-aci" 1>&2; exit 1; }
1701 ol_enable_aci="$ol_arg"
1707 # OpenLDAP --enable-cleartext
1708 # Check whether --enable-cleartext or --disable-cleartext was given.
1709 if test "${enable_cleartext+set}" = set; then
1710 enableval="$enable_cleartext"
1713 for ol_val in auto yes no ; do
1714 if test "$enableval" = "$ol_val" ; then
1718 if test "$ol_arg" = "invalid" ; then
1719 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1721 ol_enable_cleartext="$ol_arg"
1724 ol_enable_cleartext="yes"
1726 # end --enable-cleartext
1727 # OpenLDAP --enable-crypt
1728 # Check whether --enable-crypt or --disable-crypt was given.
1729 if test "${enable_crypt+set}" = set; then
1730 enableval="$enable_crypt"
1733 for ol_val in auto yes no ; do
1734 if test "$enableval" = "$ol_val" ; then
1738 if test "$ol_arg" = "invalid" ; then
1739 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1741 ol_enable_crypt="$ol_arg"
1744 ol_enable_crypt="no"
1746 # end --enable-crypt
1747 # OpenLDAP --enable-lmpasswd
1748 # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
1749 if test "${enable_lmpasswd+set}" = set; then
1750 enableval="$enable_lmpasswd"
1753 for ol_val in auto yes no ; do
1754 if test "$enableval" = "$ol_val" ; then
1758 if test "$ol_arg" = "invalid" ; then
1759 { echo "configure: error: bad value $enableval for --enable-lmpasswd" 1>&2; exit 1; }
1761 ol_enable_lmpasswd="$ol_arg"
1764 ol_enable_lmpasswd="no"
1766 # end --enable-lmpasswd
1767 # OpenLDAP --enable-spasswd
1768 # Check whether --enable-spasswd or --disable-spasswd was given.
1769 if test "${enable_spasswd+set}" = set; then
1770 enableval="$enable_spasswd"
1773 for ol_val in auto yes no ; do
1774 if test "$enableval" = "$ol_val" ; then
1778 if test "$ol_arg" = "invalid" ; then
1779 { echo "configure: error: bad value $enableval for --enable-spasswd" 1>&2; exit 1; }
1781 ol_enable_spasswd="$ol_arg"
1784 ol_enable_spasswd="no"
1786 # end --enable-spasswd
1787 # OpenLDAP --enable-modules
1788 # Check whether --enable-modules or --disable-modules was given.
1789 if test "${enable_modules+set}" = set; then
1790 enableval="$enable_modules"
1793 for ol_val in auto yes no ; do
1794 if test "$enableval" = "$ol_val" ; then
1798 if test "$ol_arg" = "invalid" ; then
1799 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1801 ol_enable_modules="$ol_arg"
1804 ol_enable_modules="no"
1806 # end --enable-modules
1807 ol_enable_multimaster=${ol_enable_multimaster-no}
1808 # OpenLDAP --enable-rewrite
1809 # Check whether --enable-rewrite or --disable-rewrite was given.
1810 if test "${enable_rewrite+set}" = set; then
1811 enableval="$enable_rewrite"
1814 for ol_val in auto yes no ; do
1815 if test "$enableval" = "$ol_val" ; then
1819 if test "$ol_arg" = "invalid" ; then
1820 { echo "configure: error: bad value $enableval for --enable-rewrite" 1>&2; exit 1; }
1822 ol_enable_rewrite="$ol_arg"
1825 ol_enable_rewrite="auto"
1827 # end --enable-rewrite
1828 # OpenLDAP --enable-rlookups
1829 # Check whether --enable-rlookups or --disable-rlookups was given.
1830 if test "${enable_rlookups+set}" = set; then
1831 enableval="$enable_rlookups"
1834 for ol_val in auto yes no ; do
1835 if test "$enableval" = "$ol_val" ; then
1839 if test "$ol_arg" = "invalid" ; then
1840 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1842 ol_enable_rlookups="$ol_arg"
1845 ol_enable_rlookups="no"
1847 # end --enable-rlookups
1848 # OpenLDAP --enable-slapi
1849 # Check whether --enable-slapi or --disable-slapi was given.
1850 if test "${enable_slapi+set}" = set; then
1851 enableval="$enable_slapi"
1854 for ol_val in auto yes no ; do
1855 if test "$enableval" = "$ol_val" ; then
1859 if test "$ol_arg" = "invalid" ; then
1860 { echo "configure: error: bad value $enableval for --enable-slapi" 1>&2; exit 1; }
1862 ol_enable_slapi="$ol_arg"
1865 ol_enable_slapi="no"
1867 # end --enable-slapi
1868 # OpenLDAP --enable-slp
1869 # Check whether --enable-slp or --disable-slp was given.
1870 if test "${enable_slp+set}" = set; then
1871 enableval="$enable_slp"
1874 for ol_val in auto yes no ; do
1875 if test "$enableval" = "$ol_val" ; then
1879 if test "$ol_arg" = "invalid" ; then
1880 { echo "configure: error: bad value $enableval for --enable-slp" 1>&2; exit 1; }
1882 ol_enable_slp="$ol_arg"
1888 # OpenLDAP --enable-wrappers
1889 # Check whether --enable-wrappers or --disable-wrappers was given.
1890 if test "${enable_wrappers+set}" = set; then
1891 enableval="$enable_wrappers"
1894 for ol_val in auto yes no ; do
1895 if test "$enableval" = "$ol_val" ; then
1899 if test "$ol_arg" = "invalid" ; then
1900 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1902 ol_enable_wrappers="$ol_arg"
1905 ol_enable_wrappers="no"
1907 # end --enable-wrappers
1909 Backends="bdb dnssrv hdb ldap ldbm meta monitor null \
1910 passwd perl relay shell sql"
1912 # Check whether --with-xxslapbackends or --without-xxslapbackends was given.
1913 if test "${with_xxslapbackends+set}" = set; then
1914 withval="$with_xxslapbackends"
1919 # OpenLDAP --enable-backends
1920 # Check whether --enable-backends or --disable-backends was given.
1921 if test "${enable_backends+set}" = set; then
1922 enableval="$enable_backends"
1925 for ol_val in no yes mod ; do
1926 if test "$enableval" = "$ol_val" ; then
1930 if test "$ol_arg" = "invalid" ; then
1931 { echo "configure: error: bad value $enableval for --enable-backends" 1>&2; exit 1; }
1933 ol_enable_backends="$ol_arg"
1936 ol_enable_backends="no"
1938 # end --enable-backends
1939 # OpenLDAP --enable-bdb
1940 # Check whether --enable-bdb or --disable-bdb was given.
1941 if test "${enable_bdb+set}" = set; then
1942 enableval="$enable_bdb"
1945 for ol_val in no yes mod ; do
1946 if test "$enableval" = "$ol_val" ; then
1950 if test "$ol_arg" = "invalid" ; then
1951 { echo "configure: error: bad value $enableval for --enable-bdb" 1>&2; exit 1; }
1953 ol_enable_bdb="$ol_arg"
1959 # OpenLDAP --enable-dnssrv
1960 # Check whether --enable-dnssrv or --disable-dnssrv was given.
1961 if test "${enable_dnssrv+set}" = set; then
1962 enableval="$enable_dnssrv"
1965 for ol_val in no yes mod ; do
1966 if test "$enableval" = "$ol_val" ; then
1970 if test "$ol_arg" = "invalid" ; then
1971 { echo "configure: error: bad value $enableval for --enable-dnssrv" 1>&2; exit 1; }
1973 ol_enable_dnssrv="$ol_arg"
1976 ol_enable_dnssrv="no"
1978 # end --enable-dnssrv
1979 # OpenLDAP --enable-hdb
1980 # Check whether --enable-hdb or --disable-hdb was given.
1981 if test "${enable_hdb+set}" = set; then
1982 enableval="$enable_hdb"
1985 for ol_val in no yes mod ; do
1986 if test "$enableval" = "$ol_val" ; then
1990 if test "$ol_arg" = "invalid" ; then
1991 { echo "configure: error: bad value $enableval for --enable-hdb" 1>&2; exit 1; }
1993 ol_enable_hdb="$ol_arg"
1999 # OpenLDAP --enable-ldap
2000 # Check whether --enable-ldap or --disable-ldap was given.
2001 if test "${enable_ldap+set}" = set; then
2002 enableval="$enable_ldap"
2005 for ol_val in no yes mod ; do
2006 if test "$enableval" = "$ol_val" ; then
2010 if test "$ol_arg" = "invalid" ; then
2011 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
2013 ol_enable_ldap="$ol_arg"
2019 # OpenLDAP --enable-ldbm
2020 # Check whether --enable-ldbm or --disable-ldbm was given.
2021 if test "${enable_ldbm+set}" = set; then
2022 enableval="$enable_ldbm"
2025 for ol_val in no yes mod ; do
2026 if test "$enableval" = "$ol_val" ; then
2030 if test "$ol_arg" = "invalid" ; then
2031 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
2033 ol_enable_ldbm="$ol_arg"
2039 # OpenLDAP --with-ldbm_api
2040 # Check whether --with-ldbm_api or --without-ldbm_api was given.
2041 if test "${with_ldbm_api+set}" = set; then
2042 withval="$with_ldbm_api"
2045 for ol_val in auto berkeley bcompat mdbm gdbm ; do
2046 if test "$withval" = "$ol_val" ; then
2050 if test "$ol_arg" = "invalid" ; then
2051 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
2053 ol_with_ldbm_api="$ol_arg"
2056 ol_with_ldbm_api="auto"
2058 # end --with-ldbm_api
2060 # OpenLDAP --with-ldbm_type
2061 # Check whether --with-ldbm_type or --without-ldbm_type was given.
2062 if test "${with_ldbm_type+set}" = set; then
2063 withval="$with_ldbm_type"
2066 for ol_val in auto btree hash ; do
2067 if test "$withval" = "$ol_val" ; then
2071 if test "$ol_arg" = "invalid" ; then
2072 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
2074 ol_with_ldbm_type="$ol_arg"
2077 ol_with_ldbm_type="auto"
2079 # end --with-ldbm_type
2081 # OpenLDAP --enable-meta
2082 # Check whether --enable-meta or --disable-meta was given.
2083 if test "${enable_meta+set}" = set; then
2084 enableval="$enable_meta"
2087 for ol_val in no yes mod ; do
2088 if test "$enableval" = "$ol_val" ; then
2092 if test "$ol_arg" = "invalid" ; then
2093 { echo "configure: error: bad value $enableval for --enable-meta" 1>&2; exit 1; }
2095 ol_enable_meta="$ol_arg"
2101 # OpenLDAP --enable-monitor
2102 # Check whether --enable-monitor or --disable-monitor was given.
2103 if test "${enable_monitor+set}" = set; then
2104 enableval="$enable_monitor"
2107 for ol_val in no yes mod ; do
2108 if test "$enableval" = "$ol_val" ; then
2112 if test "$ol_arg" = "invalid" ; then
2113 { echo "configure: error: bad value $enableval for --enable-monitor" 1>&2; exit 1; }
2115 ol_enable_monitor="$ol_arg"
2118 ol_enable_monitor="yes"
2120 # end --enable-monitor
2121 # OpenLDAP --enable-null
2122 # Check whether --enable-null or --disable-null was given.
2123 if test "${enable_null+set}" = set; then
2124 enableval="$enable_null"
2127 for ol_val in no yes mod ; do
2128 if test "$enableval" = "$ol_val" ; then
2132 if test "$ol_arg" = "invalid" ; then
2133 { echo "configure: error: bad value $enableval for --enable-null" 1>&2; exit 1; }
2135 ol_enable_null="$ol_arg"
2141 # OpenLDAP --enable-passwd
2142 # Check whether --enable-passwd or --disable-passwd was given.
2143 if test "${enable_passwd+set}" = set; then
2144 enableval="$enable_passwd"
2147 for ol_val in no yes mod ; do
2148 if test "$enableval" = "$ol_val" ; then
2152 if test "$ol_arg" = "invalid" ; then
2153 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
2155 ol_enable_passwd="$ol_arg"
2158 ol_enable_passwd="no"
2160 # end --enable-passwd
2161 # OpenLDAP --enable-perl
2162 # Check whether --enable-perl or --disable-perl was given.
2163 if test "${enable_perl+set}" = set; then
2164 enableval="$enable_perl"
2167 for ol_val in no yes mod ; do
2168 if test "$enableval" = "$ol_val" ; then
2172 if test "$ol_arg" = "invalid" ; then
2173 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
2175 ol_enable_perl="$ol_arg"
2181 # OpenLDAP --enable-relay
2182 # Check whether --enable-relay or --disable-relay was given.
2183 if test "${enable_relay+set}" = set; then
2184 enableval="$enable_relay"
2187 for ol_val in no yes mod ; do
2188 if test "$enableval" = "$ol_val" ; then
2192 if test "$ol_arg" = "invalid" ; then
2193 { echo "configure: error: bad value $enableval for --enable-relay" 1>&2; exit 1; }
2195 ol_enable_relay="$ol_arg"
2198 ol_enable_relay="yes"
2200 # end --enable-relay
2201 # OpenLDAP --enable-shell
2202 # Check whether --enable-shell or --disable-shell was given.
2203 if test "${enable_shell+set}" = set; then
2204 enableval="$enable_shell"
2207 for ol_val in no yes mod ; do
2208 if test "$enableval" = "$ol_val" ; then
2212 if test "$ol_arg" = "invalid" ; then
2213 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
2215 ol_enable_shell="$ol_arg"
2218 ol_enable_shell="no"
2220 # end --enable-shell
2221 # OpenLDAP --enable-sql
2222 # Check whether --enable-sql or --disable-sql was given.
2223 if test "${enable_sql+set}" = set; then
2224 enableval="$enable_sql"
2227 for ol_val in no yes mod ; do
2228 if test "$enableval" = "$ol_val" ; then
2232 if test "$ol_arg" = "invalid" ; then
2233 { echo "configure: error: bad value $enableval for --enable-sql" 1>&2; exit 1; }
2235 ol_enable_sql="$ol_arg"
2242 Overlays="denyop dyngroup glue lastmod ppolicy proxycache rwm \
2243 refint syncprov translucent unique"
2245 # Check whether --with-xxslapoverlays or --without-xxslapoverlays was given.
2246 if test "${with_xxslapoverlays+set}" = set; then
2247 withval="$with_xxslapoverlays"
2252 # OpenLDAP --enable-overlays
2253 # Check whether --enable-overlays or --disable-overlays was given.
2254 if test "${enable_overlays+set}" = set; then
2255 enableval="$enable_overlays"
2258 for ol_val in no yes mod ; do
2259 if test "$enableval" = "$ol_val" ; then
2263 if test "$ol_arg" = "invalid" ; then
2264 { echo "configure: error: bad value $enableval for --enable-overlays" 1>&2; exit 1; }
2266 ol_enable_overlays="$ol_arg"
2269 ol_enable_overlays="no"
2271 # end --enable-overlays
2272 # OpenLDAP --enable-denyop
2273 # Check whether --enable-denyop or --disable-denyop was given.
2274 if test "${enable_denyop+set}" = set; then
2275 enableval="$enable_denyop"
2278 for ol_val in no yes mod ; do
2279 if test "$enableval" = "$ol_val" ; then
2283 if test "$ol_arg" = "invalid" ; then
2284 { echo "configure: error: bad value $enableval for --enable-denyop" 1>&2; exit 1; }
2286 ol_enable_denyop="$ol_arg"
2289 ol_enable_denyop="no"
2291 # end --enable-denyop
2293 # OpenLDAP --enable-dyngroup
2294 # Check whether --enable-dyngroup or --disable-dyngroup was given.
2295 if test "${enable_dyngroup+set}" = set; then
2296 enableval="$enable_dyngroup"
2299 for ol_val in no yes mod ; do
2300 if test "$enableval" = "$ol_val" ; then
2304 if test "$ol_arg" = "invalid" ; then
2305 { echo "configure: error: bad value $enableval for --enable-dyngroup" 1>&2; exit 1; }
2307 ol_enable_dyngroup="$ol_arg"
2310 ol_enable_dyngroup="no"
2312 # end --enable-dyngroup
2314 # OpenLDAP --enable-glue
2315 # Check whether --enable-glue or --disable-glue was given.
2316 if test "${enable_glue+set}" = set; then
2317 enableval="$enable_glue"
2320 for ol_val in no yes mod ; do
2321 if test "$enableval" = "$ol_val" ; then
2325 if test "$ol_arg" = "invalid" ; then
2326 { echo "configure: error: bad value $enableval for --enable-glue" 1>&2; exit 1; }
2328 ol_enable_glue="$ol_arg"
2331 ol_enable_glue="yes"
2335 # OpenLDAP --enable-lastmod
2336 # Check whether --enable-lastmod or --disable-lastmod was given.
2337 if test "${enable_lastmod+set}" = set; then
2338 enableval="$enable_lastmod"
2341 for ol_val in no yes mod ; do
2342 if test "$enableval" = "$ol_val" ; then
2346 if test "$ol_arg" = "invalid" ; then
2347 { echo "configure: error: bad value $enableval for --enable-lastmod" 1>&2; exit 1; }
2349 ol_enable_lastmod="$ol_arg"
2352 ol_enable_lastmod="no"
2354 # end --enable-lastmod
2356 # OpenLDAP --enable-ppolicy
2357 # Check whether --enable-ppolicy or --disable-ppolicy was given.
2358 if test "${enable_ppolicy+set}" = set; then
2359 enableval="$enable_ppolicy"
2362 for ol_val in no yes mod ; do
2363 if test "$enableval" = "$ol_val" ; then
2367 if test "$ol_arg" = "invalid" ; then
2368 { echo "configure: error: bad value $enableval for --enable-ppolicy" 1>&2; exit 1; }
2370 ol_enable_ppolicy="$ol_arg"
2373 ol_enable_ppolicy="no"
2375 # end --enable-ppolicy
2377 # OpenLDAP --enable-proxycache
2378 # Check whether --enable-proxycache or --disable-proxycache was given.
2379 if test "${enable_proxycache+set}" = set; then
2380 enableval="$enable_proxycache"
2383 for ol_val in no yes mod ; do
2384 if test "$enableval" = "$ol_val" ; then
2388 if test "$ol_arg" = "invalid" ; then
2389 { echo "configure: error: bad value $enableval for --enable-proxycache" 1>&2; exit 1; }
2391 ol_enable_proxycache="$ol_arg"
2394 ol_enable_proxycache="no"
2396 # end --enable-proxycache
2398 # OpenLDAP --enable-refint
2399 # Check whether --enable-refint or --disable-refint was given.
2400 if test "${enable_refint+set}" = set; then
2401 enableval="$enable_refint"
2404 for ol_val in no yes mod ; do
2405 if test "$enableval" = "$ol_val" ; then
2409 if test "$ol_arg" = "invalid" ; then
2410 { echo "configure: error: bad value $enableval for --enable-refint" 1>&2; exit 1; }
2412 ol_enable_refint="$ol_arg"
2415 ol_enable_refint="no"
2417 # end --enable-refint
2419 # OpenLDAP --enable-rwm
2420 # Check whether --enable-rwm or --disable-rwm was given.
2421 if test "${enable_rwm+set}" = set; then
2422 enableval="$enable_rwm"
2425 for ol_val in no yes mod ; do
2426 if test "$enableval" = "$ol_val" ; then
2430 if test "$ol_arg" = "invalid" ; then
2431 { echo "configure: error: bad value $enableval for --enable-rwm" 1>&2; exit 1; }
2433 ol_enable_rwm="$ol_arg"
2440 # OpenLDAP --enable-syncprov
2441 # Check whether --enable-syncprov or --disable-syncprov was given.
2442 if test "${enable_syncprov+set}" = set; then
2443 enableval="$enable_syncprov"
2446 for ol_val in no yes mod ; do
2447 if test "$enableval" = "$ol_val" ; then
2451 if test "$ol_arg" = "invalid" ; then
2452 { echo "configure: error: bad value $enableval for --enable-syncprov" 1>&2; exit 1; }
2454 ol_enable_syncprov="$ol_arg"
2457 ol_enable_syncprov="yes"
2459 # end --enable-syncprov
2461 # OpenLDAP --enable-translucent
2462 # Check whether --enable-translucent or --disable-translucent was given.
2463 if test "${enable_translucent+set}" = set; then
2464 enableval="$enable_translucent"
2467 for ol_val in no yes mod ; do
2468 if test "$enableval" = "$ol_val" ; then
2472 if test "$ol_arg" = "invalid" ; then
2473 { echo "configure: error: bad value $enableval for --enable-translucent" 1>&2; exit 1; }
2475 ol_enable_translucent="$ol_arg"
2478 ol_enable_translucent="no"
2480 # end --enable-translucent
2482 # OpenLDAP --enable-unique
2483 # Check whether --enable-unique or --disable-unique was given.
2484 if test "${enable_unique+set}" = set; then
2485 enableval="$enable_unique"
2488 for ol_val in no yes mod ; do
2489 if test "$enableval" = "$ol_val" ; then
2493 if test "$ol_arg" = "invalid" ; then
2494 { echo "configure: error: bad value $enableval for --enable-unique" 1>&2; exit 1; }
2496 ol_enable_unique="$ol_arg"
2499 ol_enable_unique="no"
2501 # end --enable-unique
2505 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
2506 if test "${with_xxslurpdoptions+set}" = set; then
2507 withval="$with_xxslurpdoptions"
2511 # OpenLDAP --enable-slurpd
2512 # Check whether --enable-slurpd or --disable-slurpd was given.
2513 if test "${enable_slurpd+set}" = set; then
2514 enableval="$enable_slurpd"
2517 for ol_val in auto yes no ; do
2518 if test "$enableval" = "$ol_val" ; then
2522 if test "$ol_arg" = "invalid" ; then
2523 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
2525 ol_enable_slurpd="$ol_arg"
2528 ol_enable_slurpd="auto"
2530 # end --enable-slurpd
2532 # Check whether --with-xxliboptions or --without-xxliboptions was given.
2533 if test "${with_xxliboptions+set}" = set; then
2534 withval="$with_xxliboptions"
2538 # Check whether --enable-static or --disable-static was given.
2539 if test "${enable_static+set}" = set; then
2540 enableval="$enable_static"
2541 p=${PACKAGE-default}
2543 yes) enable_static=yes ;;
2544 no) enable_static=no ;;
2547 # Look at the argument we got. We use all the common list separators.
2548 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2549 for pkg in $enableval; do
2550 if test "X$pkg" = "X$p"; then
2561 # Check whether --enable-shared or --disable-shared was given.
2562 if test "${enable_shared+set}" = set; then
2563 enableval="$enable_shared"
2564 p=${PACKAGE-default}
2566 yes) enable_shared=yes ;;
2567 no) enable_shared=no ;;
2570 # Look at the argument we got. We use all the common list separators.
2571 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2572 for pkg in $enableval; do
2573 if test "X$pkg" = "X$p"; then
2586 # Activate any backends that were not explicitly enabled.
2587 # Note that back_bdb defaults to "yes" so this loop won't touch it.
2588 if test $ol_enable_backends != no ; then
2589 for i in $Backends; do
2590 eval "ol_tmp=\$ol_enable_$i"
2591 if test $ol_tmp = no ; then
2592 eval "ol_enable_$i=$ol_enable_backends"
2596 # Activate the overlays
2597 if test $ol_enable_overlays != no ; then
2598 for i in $Overlays; do
2599 eval "ol_tmp=\$ol_enable_$i"
2600 if test $ol_tmp = no ; then
2601 eval "ol_enable_$i=$ol_enable_overlays"
2607 if test $ol_enable_slapd = no ; then
2608 if test $ol_enable_slapi = yes ; then
2609 echo "configure: warning: slapd disabled, ignoring --enable-slapi argument" 1>&2
2611 if test $ol_enable_backends != no ; then
2612 echo "configure: warning: slapd disabled, ignoring --enable-backends argument" 1>&2
2614 for i in $Backends; do
2615 eval "ol_tmp=\$ol_enable_$i"
2616 if test $ol_tmp != no ; then
2617 echo "configure: warning: slapd disabled, ignoring --enable-$i argument" 1>&2
2618 eval "ol_enable_$i=no"
2621 if test $ol_enable_modules = yes ; then
2622 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2624 if test $ol_enable_multimaster = yes ; then
2625 echo "configure: warning: slapd disabled, ignoring --enable-multimaster argument" 1>&2
2627 if test $ol_enable_wrappers = yes ; then
2628 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2630 if test $ol_enable_rlookups = yes ; then
2631 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2633 if test $ol_enable_aci = yes ; then
2634 echo "configure: warning: slapd disabled, ignoring --enable-aci argument" 1>&2
2636 if test $ol_with_ldbm_api != auto ; then
2637 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2639 if test $ol_with_ldbm_type != auto ; then
2640 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2642 if test $ol_enable_slurpd = yes ; then
2643 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2645 if test $ol_enable_rewrite = yes ; then
2646 echo "configure: warning: slapd disabled, ignoring --enable-rewrite argument" 1>&2
2648 if test $ol_enable_overlays != no ; then
2649 echo "configure: warning: slapd disabled, ignoring --enable-overlays argument" 1>&2
2651 for i in $Overlays; do
2652 eval "ol_tmp=\$ol_enable_$i"
2653 if test $ol_tmp != no ; then
2654 echo "configure: warning: slapd disabled, ignoring --enable-$i argument" 1>&2
2655 eval "ol_enable_$i=no"
2659 # force settings to no
2662 ol_enable_backends=no
2663 ol_enable_overlays=no
2664 ol_enable_modules=no
2665 ol_enable_multimaster=no
2666 ol_enable_rlookups=no
2668 ol_enable_wrappers=no
2671 ol_with_ldbm_type=no
2675 ol_enable_rewrite=no
2677 elif test $ol_enable_ldbm = no ; then
2679 if test $ol_with_ldbm_api != auto ; then
2680 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2683 if test $ol_with_ldbm_type != auto ; then
2684 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2687 if test $ol_enable_modules != yes -a \
2688 $ol_enable_bdb = no -a \
2689 $ol_enable_dnssrv = no -a \
2690 $ol_enable_hdb = no -a \
2691 $ol_enable_ldap = no -a \
2692 $ol_enable_meta = no -a \
2693 $ol_enable_monitor = no -a \
2694 $ol_enable_null = no -a \
2695 $ol_enable_passwd = no -a \
2696 $ol_enable_perl = no -a \
2697 $ol_enable_relay = no -a \
2698 $ol_enable_shell = no -a \
2699 $ol_enable_sql = no ; then
2701 if test $ol_enable_slapd = yes ; then
2702 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2704 echo "configure: warning: skipping slapd, no backend specified" 1>&2
2710 ol_with_ldbm_type=no
2712 if test $ol_enable_bdb != no -o $ol_enable_hdb != no; then
2713 ol_with_ldbm_api=berkeley
2717 if test $ol_with_ldbm_api = gdbm -a \
2718 $ol_with_ldbm_type = btree ; then
2719 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2721 if test $ol_with_ldbm_api = mdbm -a \
2722 $ol_with_ldbm_type = btree ; then
2723 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2725 if test $ol_with_ldbm_api = ndbm -a \
2726 $ol_with_ldbm_type = btree ; then
2727 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2730 if test $ol_enable_bdb != no -o $ol_enable_hdb != no ; then
2731 if test $ol_with_ldbm_api = auto ; then
2732 ol_with_ldbm_api=berkeley
2733 elif test $ol_with_ldbm_api != berkeley ; then
2734 { echo "configure: error: LDBM API not compatible with BDB/HDB" 1>&2; exit 1; }
2739 if test $ol_enable_meta = yes -a $ol_enable_ldap = no ; then
2740 { echo "configure: error: --enable-meta requires --enable-ldap" 1>&2; exit 1; }
2743 if test $ol_enable_slurpd = yes ; then
2744 if test $ol_with_threads = no ; then
2745 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2749 if test $ol_enable_lmpasswd = yes ; then
2750 if test $ol_with_tls = no ; then
2751 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
2755 if test $ol_enable_kbind = yes ; then
2756 if test $ol_with_kerberos = no ; then
2757 { echo "configure: error: options require --with-kerberos" 1>&2; exit 1; }
2758 elif test $ol_with_kerberos = auto ; then
2759 ol_with_kerberos=yes
2762 elif test $ol_enable_kbind = no ; then
2763 if test $ol_with_kerberos = auto ; then
2765 elif test $ol_with_kerberos != no ; then
2766 echo "configure: warning: Kerberos detection enabled unnecessarily" 1>&2;
2771 if test $ol_enable_spasswd = yes ; then
2772 if test $ol_with_cyrus_sasl = no ; then
2773 { echo "configure: error: options require --with-cyrus-sasl" 1>&2; exit 1; }
2775 ol_with_cyrus_sasl=yes
2778 echo "$ac_t""done" 1>&6
2820 BUILD_TRANSLUCENT=no
2823 SLAPD_DYNAMIC_OVERLAYS=
2825 SLAPD_MODULES_LDFLAGS=
2826 SLAPD_MODULES_CPPFLAGS=
2828 SLAPD_STATIC_BACKENDS=back-ldif
2829 SLAPD_DYNAMIC_BACKENDS=
2853 cat >> confdefs.h <<\EOF
2854 #define HAVE_MKVERSION 1
2862 *-*-aix*) if test -z "$CC" ; then
2863 case "$ol_with_threads" in
2864 auto | yes | posix) ol_aix_threads=yes ;;
2870 if test $ol_aix_threads = yes ; then
2871 if test -z "${CC}" ; then
2872 for ac_prog in cc_r xlc_r cc
2874 # Extract the first word of "$ac_prog", so it can be a program name with args.
2875 set dummy $ac_prog; ac_word=$2
2876 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2877 echo "configure:2878: checking for $ac_word" >&5
2878 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2879 echo $ac_n "(cached) $ac_c" 1>&6
2881 if test -n "$CC"; then
2882 ac_cv_prog_CC="$CC" # Let the user override the test.
2884 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2886 for ac_dir in $ac_dummy; do
2887 test -z "$ac_dir" && ac_dir=.
2888 if test -f $ac_dir/$ac_word; then
2889 ac_cv_prog_CC="$ac_prog"
2897 if test -n "$CC"; then
2898 echo "$ac_t""$CC" 1>&6
2900 echo "$ac_t""no" 1>&6
2903 test -n "$CC" && break
2907 if test "$CC" = cc ; then
2908 if test $ol_with_threads != auto ; then
2909 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
2911 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
2917 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
2918 ol_with_threads=posix
2919 ol_cv_pthread_create=yes
2923 if test -z "${CC}"; then
2924 for ac_prog in cc gcc
2926 # Extract the first word of "$ac_prog", so it can be a program name with args.
2927 set dummy $ac_prog; ac_word=$2
2928 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2929 echo "configure:2930: checking for $ac_word" >&5
2930 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2931 echo $ac_n "(cached) $ac_c" 1>&6
2933 if test -n "$CC"; then
2934 ac_cv_prog_CC="$CC" # Let the user override the test.
2936 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2938 for ac_dir in $ac_dummy; do
2939 test -z "$ac_dir" && ac_dir=.
2940 if test -f $ac_dir/$ac_word; then
2941 ac_cv_prog_CC="$ac_prog"
2949 if test -n "$CC"; then
2950 echo "$ac_t""$CC" 1>&6
2952 echo "$ac_t""no" 1>&6
2955 test -n "$CC" && break
2957 test -n "$CC" || CC="missing"
2960 if test "${CC}" = "missing" ; then
2961 { echo "configure: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." 1>&2; exit 1; }
2965 if test -z "${AR}"; then
2966 for ac_prog in ar gar
2968 # Extract the first word of "$ac_prog", so it can be a program name with args.
2969 set dummy $ac_prog; ac_word=$2
2970 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2971 echo "configure:2972: checking for $ac_word" >&5
2972 if eval "test \"\${ac_cv_prog_AR+set}\" = set"; then
2973 echo $ac_n "(cached) $ac_c" 1>&6
2975 if test -n "$AR"; then
2976 ac_cv_prog_AR="$AR" # Let the user override the test.
2978 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2980 for ac_dir in $ac_dummy; do
2981 test -z "$ac_dir" && ac_dir=.
2982 if test -f $ac_dir/$ac_word; then
2983 ac_cv_prog_AR="$ac_prog"
2991 if test -n "$AR"; then
2992 echo "$ac_t""$AR" 1>&6
2994 echo "$ac_t""no" 1>&6
2997 test -n "$AR" && break
2999 test -n "$AR" || AR="missing"
3002 if test "${AR}" = "missing" ; then
3003 { echo "configure: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." 1>&2; exit 1; }
3009 # Find the correct PATH separator. Usually this is `:', but
3010 # DJGPP uses `;' like DOS.
3011 if test "X${PATH_SEPARATOR+set}" != Xset; then
3012 UNAME=${UNAME-`uname 2>/dev/null`}
3014 *-DOS) lt_cv_sys_path_separator=';' ;;
3015 *) lt_cv_sys_path_separator=':' ;;
3017 PATH_SEPARATOR=$lt_cv_sys_path_separator
3020 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3021 echo "configure:3022: checking for Cygwin environment" >&5
3022 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
3023 echo $ac_n "(cached) $ac_c" 1>&6
3025 cat > conftest.$ac_ext <<EOF
3026 #line 3027 "configure"
3027 #include "confdefs.h"
3032 #define __CYGWIN__ __CYGWIN32__
3037 if { (eval echo configure:3038: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3041 echo "configure: failed program was:" >&5
3042 cat conftest.$ac_ext >&5
3049 echo "$ac_t""$ac_cv_cygwin" 1>&6
3051 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3052 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3053 echo "configure:3054: checking for mingw32 environment" >&5
3054 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
3055 echo $ac_n "(cached) $ac_c" 1>&6
3057 cat > conftest.$ac_ext <<EOF
3058 #line 3059 "configure"
3059 #include "confdefs.h"
3065 if { (eval echo configure:3066: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3069 echo "configure: failed program was:" >&5
3070 cat conftest.$ac_ext >&5
3077 echo "$ac_t""$ac_cv_mingw32" 1>&6
3079 test "$ac_cv_mingw32" = yes && MINGW32=yes
3080 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
3081 echo "configure:3082: checking for EMX OS/2 environment" >&5
3082 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
3083 echo $ac_n "(cached) $ac_c" 1>&6
3085 cat > conftest.$ac_ext <<EOF
3086 #line 3087 "configure"
3087 #include "confdefs.h"
3093 if { (eval echo configure:3094: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3097 echo "configure: failed program was:" >&5
3098 cat conftest.$ac_ext >&5
3105 echo "$ac_t""$ac_cv_emxos2" 1>&6
3107 test "$ac_cv_emxos2" = yes && EMXOS2=yes
3108 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3109 echo "configure:3110: checking how to run the C preprocessor" >&5
3110 # On Suns, sometimes $CPP names a directory.
3111 if test -n "$CPP" && test -d "$CPP"; then
3114 if test -z "$CPP"; then
3115 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
3116 echo $ac_n "(cached) $ac_c" 1>&6
3118 # This must be in double quotes, not single quotes, because CPP may get
3119 # substituted into the Makefile and "${CC-cc}" will confuse make.
3121 # On the NeXT, cc -E runs the code through the compiler's parser,
3122 # not just through cpp.
3123 cat > conftest.$ac_ext <<EOF
3124 #line 3125 "configure"
3125 #include "confdefs.h"
3129 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3130 { (eval echo configure:3131: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3131 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3132 if test -z "$ac_err"; then
3136 echo "configure: failed program was:" >&5
3137 cat conftest.$ac_ext >&5
3139 CPP="${CC-cc} -E -traditional-cpp"
3140 cat > conftest.$ac_ext <<EOF
3141 #line 3142 "configure"
3142 #include "confdefs.h"
3146 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3147 { (eval echo configure:3148: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3148 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3149 if test -z "$ac_err"; then
3153 echo "configure: failed program was:" >&5
3154 cat conftest.$ac_ext >&5
3156 CPP="${CC-cc} -nologo -E"
3157 cat > conftest.$ac_ext <<EOF
3158 #line 3159 "configure"
3159 #include "confdefs.h"
3163 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3164 { (eval echo configure:3165: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3165 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3166 if test -z "$ac_err"; then
3170 echo "configure: failed program was:" >&5
3171 cat conftest.$ac_ext >&5
3180 ac_cv_prog_CPP="$CPP"
3182 CPP="$ac_cv_prog_CPP"
3184 ac_cv_prog_CPP="$CPP"
3186 echo "$ac_t""$CPP" 1>&6
3188 # Check whether --enable-fast-install or --disable-fast-install was given.
3189 if test "${enable_fast_install+set}" = set; then
3190 enableval="$enable_fast_install"
3191 p=${PACKAGE-default}
3193 yes) enable_fast_install=yes ;;
3194 no) enable_fast_install=no ;;
3196 enable_fast_install=no
3197 # Look at the argument we got. We use all the common list separators.
3198 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3199 for pkg in $enableval; do
3200 if test "X$pkg" = "X$p"; then
3201 enable_fast_install=yes
3208 enable_fast_install=yes
3211 # Extract the first word of "gcc", so it can be a program name with args.
3212 set dummy gcc; ac_word=$2
3213 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3214 echo "configure:3215: checking for $ac_word" >&5
3215 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3216 echo $ac_n "(cached) $ac_c" 1>&6
3218 if test -n "$CC"; then
3219 ac_cv_prog_CC="$CC" # Let the user override the test.
3221 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3223 for ac_dir in $ac_dummy; do
3224 test -z "$ac_dir" && ac_dir=.
3225 if test -f $ac_dir/$ac_word; then
3234 if test -n "$CC"; then
3235 echo "$ac_t""$CC" 1>&6
3237 echo "$ac_t""no" 1>&6
3240 if test -z "$CC"; then
3241 # Extract the first word of "cc", so it can be a program name with args.
3242 set dummy cc; ac_word=$2
3243 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3244 echo "configure:3245: checking for $ac_word" >&5
3245 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3246 echo $ac_n "(cached) $ac_c" 1>&6
3248 if test -n "$CC"; then
3249 ac_cv_prog_CC="$CC" # Let the user override the test.
3251 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3254 for ac_dir in $ac_dummy; do
3255 test -z "$ac_dir" && ac_dir=.
3256 if test -f $ac_dir/$ac_word; then
3257 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
3258 ac_prog_rejected=yes
3266 if test $ac_prog_rejected = yes; then
3267 # We found a bogon in the path, so make sure we never use it.
3268 set dummy $ac_cv_prog_CC
3270 if test $# -gt 0; then
3271 # We chose a different compiler from the bogus one.
3272 # However, it has the same basename, so the bogon will be chosen
3273 # first if we set CC to just the basename; use the full file name.
3275 set dummy "$ac_dir/$ac_word" "$@"
3283 if test -n "$CC"; then
3284 echo "$ac_t""$CC" 1>&6
3286 echo "$ac_t""no" 1>&6
3289 if test -z "$CC"; then
3290 case "`uname -s`" in
3291 *win32* | *WIN32* | *CYGWIN*)
3292 # Extract the first word of "cl", so it can be a program name with args.
3293 set dummy cl; ac_word=$2
3294 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3295 echo "configure:3296: checking for $ac_word" >&5
3296 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3297 echo $ac_n "(cached) $ac_c" 1>&6
3299 if test -n "$CC"; then
3300 ac_cv_prog_CC="$CC" # Let the user override the test.
3302 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3304 for ac_dir in $ac_dummy; do
3305 test -z "$ac_dir" && ac_dir=.
3306 if test -f $ac_dir/$ac_word; then
3315 if test -n "$CC"; then
3316 echo "$ac_t""$CC" 1>&6
3318 echo "$ac_t""no" 1>&6
3323 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
3326 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
3327 echo "configure:3328: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
3330 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3331 ac_cpp='$CPP $CPPFLAGS'
3332 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3333 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3334 cross_compiling=$ac_cv_prog_cc_cross
3336 cat > conftest.$ac_ext << EOF
3338 #line 3339 "configure"
3339 #include "confdefs.h"
3343 if { (eval echo configure:3344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3344 ac_cv_prog_cc_works=yes
3345 # If we can't run a trivial program, we are probably using a cross compiler.
3346 if (./conftest; exit) 2>/dev/null; then
3347 ac_cv_prog_cc_cross=no
3349 ac_cv_prog_cc_cross=yes
3352 echo "configure: failed program was:" >&5
3353 cat conftest.$ac_ext >&5
3354 ac_cv_prog_cc_works=no
3358 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3359 ac_cpp='$CPP $CPPFLAGS'
3360 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3361 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3362 cross_compiling=$ac_cv_prog_cc_cross
3364 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
3365 if test $ac_cv_prog_cc_works = no; then
3366 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
3368 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
3369 echo "configure:3370: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
3370 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
3371 cross_compiling=$ac_cv_prog_cc_cross
3373 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
3374 echo "configure:3375: checking whether we are using GNU C" >&5
3375 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
3376 echo $ac_n "(cached) $ac_c" 1>&6
3378 cat > conftest.c <<EOF
3383 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:3384: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
3390 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
3392 if test $ac_cv_prog_gcc = yes; then
3398 ac_test_CFLAGS="${CFLAGS+set}"
3399 ac_save_CFLAGS="$CFLAGS"
3401 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
3402 echo "configure:3403: checking whether ${CC-cc} accepts -g" >&5
3403 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
3404 echo $ac_n "(cached) $ac_c" 1>&6
3406 echo 'void f(){}' > conftest.c
3407 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
3416 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
3417 if test "$ac_test_CFLAGS" = set; then
3418 CFLAGS="$ac_save_CFLAGS"
3419 elif test $ac_cv_prog_cc_g = yes; then
3420 if test "$GCC" = yes; then
3426 if test "$GCC" = yes; then
3433 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3434 if test "${with_gnu_ld+set}" = set; then
3435 withval="$with_gnu_ld"
3436 test "$withval" = no || with_gnu_ld=yes
3442 if test "$GCC" = yes; then
3443 # Check if gcc -print-prog-name=ld gives a path.
3444 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
3445 echo "configure:3446: checking for ld used by GCC" >&5
3448 # gcc leaves a trailing carriage return which upsets mingw
3449 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3451 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3454 # Accept absolute paths.
3455 [\\/]* | [A-Za-z]:[\\/]*)
3456 re_direlt='/[^/][^/]*/\.\./'
3457 # Canonicalize the path of ld
3458 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3459 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3460 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3462 test -z "$LD" && LD="$ac_prog"
3465 # If it fails, then pretend we aren't using GCC.
3469 # If it is relative, then search for the first ld in PATH.
3473 elif test "$with_gnu_ld" = yes; then
3474 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
3475 echo "configure:3476: checking for GNU ld" >&5
3477 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
3478 echo "configure:3479: checking for non-GNU ld" >&5
3480 if eval "test \"\${lt_cv_path_LD+set}\" = set"; then
3481 echo $ac_n "(cached) $ac_c" 1>&6
3483 if test -z "$LD"; then
3484 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3485 for ac_dir in $PATH; do
3486 test -z "$ac_dir" && ac_dir=.
3487 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3488 lt_cv_path_LD="$ac_dir/$ac_prog"
3489 # Check to see if the program is GNU ld. I'd rather use --version,
3490 # but apparently some GNU ld's only accept -v.
3491 # Break only if it was the GNU/non-GNU ld that we prefer.
3492 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3493 test "$with_gnu_ld" != no && break
3495 test "$with_gnu_ld" != yes && break
3501 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3506 if test -n "$LD"; then
3507 echo "$ac_t""$LD" 1>&6
3509 echo "$ac_t""no" 1>&6
3511 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
3512 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
3513 echo "configure:3514: checking if the linker ($LD) is GNU ld" >&5
3514 if eval "test \"\${lt_cv_prog_gnu_ld+set}\" = set"; then
3515 echo $ac_n "(cached) $ac_c" 1>&6
3517 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3518 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3519 lt_cv_prog_gnu_ld=yes
3521 lt_cv_prog_gnu_ld=no
3525 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
3526 with_gnu_ld=$lt_cv_prog_gnu_ld
3529 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
3530 echo "configure:3531: checking for $LD option to reload object files" >&5
3531 if eval "test \"\${lt_cv_ld_reload_flag+set}\" = set"; then
3532 echo $ac_n "(cached) $ac_c" 1>&6
3534 lt_cv_ld_reload_flag='-r'
3537 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
3538 reload_flag=$lt_cv_ld_reload_flag
3539 test -n "$reload_flag" && reload_flag=" $reload_flag"
3541 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
3542 echo "configure:3543: checking for BSD-compatible nm" >&5
3543 if eval "test \"\${lt_cv_path_NM+set}\" = set"; then
3544 echo $ac_n "(cached) $ac_c" 1>&6
3546 if test -n "$NM"; then
3547 # Let the user override the test.
3550 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3551 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3552 test -z "$ac_dir" && ac_dir=.
3553 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3554 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3555 # Check to see if the nm accepts a BSD-compat flag.
3556 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3557 # nm: unknown option "B" ignored
3558 # Tru64's nm complains that /dev/null is an invalid object file
3559 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3560 lt_cv_path_NM="$tmp_nm -B"
3562 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3563 lt_cv_path_NM="$tmp_nm -p"
3566 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3567 continue # so that we can try to find one that supports BSD flags
3572 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3577 echo "$ac_t""$NM" 1>&6
3579 echo $ac_n "checking for a sed that does not truncate output""... $ac_c" 1>&6
3580 echo "configure:3581: checking for a sed that does not truncate output" >&5
3581 if eval "test \"\${lt_cv_path_SED+set}\" = set"; then
3582 echo $ac_n "(cached) $ac_c" 1>&6
3584 # Loop through the user's path and test for sed and gsed.
3585 # Then use that list of sed's as ones to test for truncation.
3586 as_executable_p="test -f"
3587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3591 test -z "$as_dir" && as_dir=.
3592 for ac_prog in sed gsed; do
3593 for ac_exec_ext in '' $ac_executable_extensions; do
3594 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3595 _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3601 # Create a temporary directory, and hook for its removal unless debugging.
3604 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3605 trap '{ (exit 1); exit 1; }' 1 2 13 15
3608 # Create a (secure) tmp directory for tmp files.
3611 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3612 test -n "$tmp" && test -d "$tmp"
3615 tmp=$TMPDIR/sed$$-$RANDOM
3616 (umask 077 && mkdir $tmp)
3619 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3620 { (exit 1); exit 1; }
3624 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3625 # along with /bin/sed that truncates output.
3626 for _sed in $_sed_list /usr/xpg4/bin/sed; do
3627 test ! -f ${_sed} && break
3628 cat /dev/null > "$tmp/sed.in"
3630 echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
3631 # Check for GNU sed and select it if it is found.
3632 if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
3633 lt_cv_path_SED=${_sed}
3637 cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3638 mv "$tmp/sed.tmp" "$tmp/sed.in"
3639 cp "$tmp/sed.in" "$tmp/sed.nl"
3640 echo >>"$tmp/sed.nl"
3641 ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
3642 cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
3643 # 40000 chars as input seems more than enough
3644 test $_count -gt 10 && break
3645 _count=`expr $_count + 1`
3646 if test $_count -gt $_max; then
3648 lt_cv_path_SED=$_sed
3656 if test "X$SED" != "X"; then
3661 echo "$ac_t""$SED" 1>&6
3663 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3664 echo "configure:3665: checking whether ln -s works" >&5
3665 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3666 echo $ac_n "(cached) $ac_c" 1>&6
3669 if ln -s X conftestdata 2>/dev/null
3672 ac_cv_prog_LN_S="ln -s"
3677 LN_S="$ac_cv_prog_LN_S"
3678 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3679 echo "$ac_t""yes" 1>&6
3681 echo "$ac_t""no" 1>&6
3684 echo $ac_n "checking how to recognise dependent libraries""... $ac_c" 1>&6
3685 echo "configure:3686: checking how to recognise dependent libraries" >&5
3686 if eval "test \"\${lt_cv_deplibs_check_method+set}\" = set"; then
3687 echo $ac_n "(cached) $ac_c" 1>&6
3689 lt_cv_file_magic_cmd='$MAGIC_CMD'
3690 lt_cv_file_magic_test_file=
3691 lt_cv_deplibs_check_method='unknown'
3692 # Need to set the preceding variable on all platforms that support
3693 # interlibrary dependencies.
3694 # 'none' -- dependencies not supported.
3695 # `unknown' -- same as none, but documents that we really don't know.
3696 # 'pass_all' -- all dependencies passed with no checks.
3697 # 'test_compile' -- check by making test program.
3698 # 'file_magic [[regex]]' -- check by looking for files in library path
3699 # which responds to the $file_magic_cmd with a given egrep regex.
3700 # If you have `file' or equivalent on your system and you're not sure
3701 # whether `pass_all' will *always* work, you probably want this one.
3705 lt_cv_deplibs_check_method=pass_all
3709 lt_cv_deplibs_check_method=pass_all
3713 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3714 lt_cv_file_magic_cmd='/usr/bin/file -L'
3715 lt_cv_file_magic_test_file=/shlib/libc.so
3718 cygwin* | mingw* | pw32*)
3719 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3720 lt_cv_file_magic_cmd='$OBJDUMP -f'
3723 darwin* | rhapsody*)
3724 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3725 lt_cv_file_magic_cmd='/usr/bin/file -L'
3727 rhapsody* | darwin1.[012])
3728 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3731 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3737 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3740 # Not sure whether the presence of OpenBSD here was a mistake.
3741 # Let's accept both of them until this is cleared up.
3742 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3743 lt_cv_file_magic_cmd=/usr/bin/file
3744 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3748 lt_cv_deplibs_check_method=pass_all
3753 lt_cv_deplibs_check_method=pass_all
3757 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3758 lt_cv_file_magic_cmd=/usr/bin/file
3759 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3762 irix5* | irix6* | nonstopux*)
3764 irix5* | nonstopux*)
3765 # this will be overridden with pass_all, but let us keep it just in case
3766 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3770 *-32|*"-32 ") libmagic=32-bit;;
3771 *-n32|*"-n32 ") libmagic=N32;;
3772 *-64|*"-64 ") libmagic=64-bit;;
3773 *) libmagic=never-match;;
3775 # this will be overridden with pass_all, but let us keep it just in case
3776 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3779 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3780 lt_cv_deplibs_check_method=pass_all
3783 # This must be Linux ELF.
3786 alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64*)
3787 lt_cv_deplibs_check_method=pass_all ;;
3789 # glibc up to 2.1.1 does not perform some relocations on ARM
3790 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3792 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3796 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3797 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3799 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3804 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3805 lt_cv_file_magic_cmd=/usr/bin/file
3806 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3810 lt_cv_file_magic_cmd=/usr/bin/file
3811 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3812 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3813 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3815 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3820 lt_cv_deplibs_check_method=pass_all
3823 osf3* | osf4* | osf5*)
3824 # this will be overridden with pass_all, but let us keep it just in case
3825 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3826 lt_cv_file_magic_test_file=/shlib/libc.so
3827 lt_cv_deplibs_check_method=pass_all
3831 lt_cv_deplibs_check_method=pass_all
3835 lt_cv_deplibs_check_method=pass_all
3836 lt_cv_file_magic_test_file=/lib/libc.so
3839 sysv5uw[78]* | sysv4*uw2*)
3840 lt_cv_deplibs_check_method=pass_all
3843 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3844 case $host_vendor in
3846 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]'
3847 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3850 lt_cv_deplibs_check_method=pass_all
3853 lt_cv_file_magic_cmd='/bin/file'
3854 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3857 lt_cv_file_magic_cmd='/bin/file'
3858 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3859 lt_cv_file_magic_test_file=/lib/libc.so
3862 lt_cv_deplibs_check_method=pass_all
3870 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
3871 file_magic_cmd=$lt_cv_file_magic_cmd
3872 deplibs_check_method=$lt_cv_deplibs_check_method
3874 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
3875 echo "configure:3876: checking for object suffix" >&5
3876 if eval "test \"\${ac_cv_objext+set}\" = set"; then
3877 echo $ac_n "(cached) $ac_c" 1>&6
3880 echo 'int i = 1;' > conftest.$ac_ext
3881 if { (eval echo configure:3882: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3882 for ac_file in conftest.*; do
3885 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
3889 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
3894 echo "$ac_t""$ac_cv_objext" 1>&6
3895 OBJEXT=$ac_cv_objext
3896 ac_objext=$ac_cv_objext
3901 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3902 echo "configure:3903: checking for executable suffix" >&5
3903 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
3904 echo $ac_n "(cached) $ac_c" 1>&6
3906 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
3910 echo 'int main () { return 0; }' > conftest.$ac_ext
3912 if { (eval echo configure:3913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3913 for file in conftest.*; do
3915 *.c | *.C | *.o | *.obj | *.xcoff) ;;
3916 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3920 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3923 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3928 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3929 echo "$ac_t""${ac_cv_exeext}" 1>&6
3932 if test $host != $build; then
3933 ac_tool_prefix=${host_alias}-
3941 # Check for command to grab the raw symbol name followed by C symbol from nm.
3942 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
3943 echo "configure:3944: checking command to parse $NM output" >&5
3944 if eval "test \"\${lt_cv_sys_global_symbol_pipe+set}\" = set"; then
3945 echo $ac_n "(cached) $ac_c" 1>&6
3948 # These are sane defaults that work on at least a few old systems.
3949 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
3951 # Character class describing NM global symbol codes.
3952 symcode='[BCDEGRST]'
3954 # Regexp to match symbols that can be accessed directly from C.
3955 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3957 # Transform the above into a raw symbol and a C symbol.
3958 symxfrm='\1 \2\3 \3'
3960 # Transform an extracted symbol line into a proper C declaration
3961 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3963 # Transform an extracted symbol line into symbol name and symbol address
3964 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'"
3966 # Define system-specific variables.
3971 cygwin* | mingw* | pw32*)
3972 symcode='[ABCDGISTW]'
3974 hpux*) # Its linker distinguishes data from code symbols
3975 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3976 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'"
3979 symcode='[BCDEGRST]'
3982 symcode='[BCDEGQRST]'
3992 # Handle CRLF in mingw tool chain
3996 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4000 # If we're using GNU nm, then use its standard symbol codes.
4001 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
4002 symcode='[ABCDGISTW]'
4005 # Try without a prefix undercore, then with it.
4006 for ac_symprfx in "" "_"; do
4008 # Write the raw and C identifiers.
4009 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4011 # Check to see that the pipe works correctly.
4014 cat > conftest.$ac_ext <<EOF
4019 void nm_test_func(){}
4023 int main(){nm_test_var='a';nm_test_func();return(0);}
4026 if { (eval echo configure:4027: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4027 # Now try to grab the symbols.
4029 if { (eval echo configure:4030: \"$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
4030 # Try sorting and uniquifying the output.
4031 if sort "$nlist" | uniq > "$nlist"T; then
4032 mv -f "$nlist"T "$nlist"
4037 # Make sure that we snagged all the symbols we need.
4038 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4039 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4040 cat <<EOF > conftest.$ac_ext
4046 # Now generate the symbol file.
4047 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4049 cat <<EOF >> conftest.$ac_ext
4050 #if defined (__STDC__) && __STDC__
4051 # define lt_ptr void *
4053 # define lt_ptr char *
4057 /* The mapping between symbol names and symbols. */
4062 lt_preloaded_symbols[] =
4065 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4066 cat <<\EOF >> conftest.$ac_ext
4074 # Now try linking the two files.
4075 mv conftest.$ac_objext conftstm.$ac_objext
4077 save_CFLAGS="$CFLAGS"
4078 LIBS="conftstm.$ac_objext"
4079 CFLAGS="$CFLAGS$no_builtin_flag"
4080 if { (eval echo configure:4081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
4084 CFLAGS="$save_CFLAGS"
4086 echo "cannot find nm_test_func in $nlist" >&5
4089 echo "cannot find nm_test_var in $nlist" >&5
4092 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4095 echo "$progname: failed program was:" >&5
4096 cat conftest.$ac_ext >&5
4098 rm -f conftest* conftst*
4100 # Do not use the global_symbol_pipe unless it works.
4101 if test "$pipe_works" = yes; then
4104 lt_cv_sys_global_symbol_pipe=
4110 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4111 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4112 global_symbol_to_cdecl=
4113 global_symbol_to_c_name_address=
4115 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4116 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4118 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4120 echo "$ac_t""failed" 1>&6
4122 echo "$ac_t""ok" 1>&6
4125 for ac_hdr in dlfcn.h
4127 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4128 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4129 echo "configure:4130: checking for $ac_hdr" >&5
4130 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4131 echo $ac_n "(cached) $ac_c" 1>&6
4133 cat > conftest.$ac_ext <<EOF
4134 #line 4135 "configure"
4135 #include "confdefs.h"
4138 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4139 { (eval echo configure:4140: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4140 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4141 if test -z "$ac_err"; then
4143 eval "ac_cv_header_$ac_safe=yes"
4146 echo "configure: failed program was:" >&5
4147 cat conftest.$ac_ext >&5
4149 eval "ac_cv_header_$ac_safe=no"
4153 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4154 echo "$ac_t""yes" 1>&6
4155 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4156 cat >> confdefs.h <<EOF
4157 #define $ac_tr_hdr 1
4161 echo "$ac_t""no" 1>&6
4170 # Only perform the check for file, if the check method requires it
4171 case $deplibs_check_method in
4173 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4174 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
4175 echo "configure:4176: checking for ${ac_tool_prefix}file" >&5
4176 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
4177 echo $ac_n "(cached) $ac_c" 1>&6
4181 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4184 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4187 ac_save_MAGIC_CMD="$MAGIC_CMD"
4188 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4189 ac_dummy="/usr/bin:$PATH"
4190 for ac_dir in $ac_dummy; do
4191 test -z "$ac_dir" && ac_dir=.
4192 if test -f $ac_dir/${ac_tool_prefix}file; then
4193 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4194 if test -n "$file_magic_test_file"; then
4195 case $deplibs_check_method in
4197 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4198 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4199 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4200 egrep "$file_magic_regex" > /dev/null; then
4205 *** Warning: the command libtool uses to detect shared libraries,
4206 *** $file_magic_cmd, produces output that libtool cannot recognize.
4207 *** The result is that libtool may fail to recognize shared libraries
4208 *** as such. This will affect the creation of libtool libraries that
4209 *** depend on shared libraries, but programs linked with such libtool
4210 *** libraries will work regardless of this problem. Nevertheless, you
4211 *** may want to report the problem to your system manager and/or to
4212 *** bug-libtool@gnu.org
4222 MAGIC_CMD="$ac_save_MAGIC_CMD"
4227 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4228 if test -n "$MAGIC_CMD"; then
4229 echo "$ac_t""$MAGIC_CMD" 1>&6
4231 echo "$ac_t""no" 1>&6
4234 if test -z "$lt_cv_path_MAGIC_CMD"; then
4235 if test -n "$ac_tool_prefix"; then
4236 echo $ac_n "checking for file""... $ac_c" 1>&6
4237 echo "configure:4238: checking for file" >&5
4238 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
4239 echo $ac_n "(cached) $ac_c" 1>&6
4243 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4246 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4249 ac_save_MAGIC_CMD="$MAGIC_CMD"
4250 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4251 ac_dummy="/usr/bin:$PATH"
4252 for ac_dir in $ac_dummy; do
4253 test -z "$ac_dir" && ac_dir=.
4254 if test -f $ac_dir/file; then
4255 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4256 if test -n "$file_magic_test_file"; then
4257 case $deplibs_check_method in
4259 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4260 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4261 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4262 egrep "$file_magic_regex" > /dev/null; then
4267 *** Warning: the command libtool uses to detect shared libraries,
4268 *** $file_magic_cmd, produces output that libtool cannot recognize.
4269 *** The result is that libtool may fail to recognize shared libraries
4270 *** as such. This will affect the creation of libtool libraries that
4271 *** depend on shared libraries, but programs linked with such libtool
4272 *** libraries will work regardless of this problem. Nevertheless, you
4273 *** may want to report the problem to your system manager and/or to
4274 *** bug-libtool@gnu.org
4284 MAGIC_CMD="$ac_save_MAGIC_CMD"
4289 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4290 if test -n "$MAGIC_CMD"; then
4291 echo "$ac_t""$MAGIC_CMD" 1>&6
4293 echo "$ac_t""no" 1>&6
4305 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4306 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4307 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4308 echo "configure:4309: checking for $ac_word" >&5
4309 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
4310 echo $ac_n "(cached) $ac_c" 1>&6
4312 if test -n "$RANLIB"; then
4313 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4315 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4317 for ac_dir in $ac_dummy; do
4318 test -z "$ac_dir" && ac_dir=.
4319 if test -f $ac_dir/$ac_word; then
4320 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4327 RANLIB="$ac_cv_prog_RANLIB"
4328 if test -n "$RANLIB"; then
4329 echo "$ac_t""$RANLIB" 1>&6
4331 echo "$ac_t""no" 1>&6
4335 if test -z "$ac_cv_prog_RANLIB"; then
4336 if test -n "$ac_tool_prefix"; then
4337 # Extract the first word of "ranlib", so it can be a program name with args.
4338 set dummy ranlib; ac_word=$2
4339 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4340 echo "configure:4341: checking for $ac_word" >&5
4341 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
4342 echo $ac_n "(cached) $ac_c" 1>&6
4344 if test -n "$RANLIB"; then
4345 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4347 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4349 for ac_dir in $ac_dummy; do
4350 test -z "$ac_dir" && ac_dir=.
4351 if test -f $ac_dir/$ac_word; then
4352 ac_cv_prog_RANLIB="ranlib"
4357 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
4360 RANLIB="$ac_cv_prog_RANLIB"
4361 if test -n "$RANLIB"; then
4362 echo "$ac_t""$RANLIB" 1>&6
4364 echo "$ac_t""no" 1>&6
4372 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4373 set dummy ${ac_tool_prefix}strip; ac_word=$2
4374 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4375 echo "configure:4376: checking for $ac_word" >&5
4376 if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then
4377 echo $ac_n "(cached) $ac_c" 1>&6
4379 if test -n "$STRIP"; then
4380 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4382 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4384 for ac_dir in $ac_dummy; do
4385 test -z "$ac_dir" && ac_dir=.
4386 if test -f $ac_dir/$ac_word; then
4387 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4394 STRIP="$ac_cv_prog_STRIP"
4395 if test -n "$STRIP"; then
4396 echo "$ac_t""$STRIP" 1>&6
4398 echo "$ac_t""no" 1>&6
4402 if test -z "$ac_cv_prog_STRIP"; then
4403 if test -n "$ac_tool_prefix"; then
4404 # Extract the first word of "strip", so it can be a program name with args.
4405 set dummy strip; ac_word=$2
4406 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4407 echo "configure:4408: checking for $ac_word" >&5
4408 if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then
4409 echo $ac_n "(cached) $ac_c" 1>&6
4411 if test -n "$STRIP"; then
4412 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4414 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4416 for ac_dir in $ac_dummy; do
4417 test -z "$ac_dir" && ac_dir=.
4418 if test -f $ac_dir/$ac_word; then
4419 ac_cv_prog_STRIP="strip"
4424 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
4427 STRIP="$ac_cv_prog_STRIP"
4428 if test -n "$STRIP"; then
4429 echo "$ac_t""$STRIP" 1>&6
4431 echo "$ac_t""no" 1>&6
4441 enable_win32_dll=yes
4443 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4444 if test "${enable_libtool_lock+set}" = set; then
4445 enableval="$enable_libtool_lock"
4449 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4451 # Some flags need to be propagated to the compiler or linker for good
4455 # Find out which ABI we are using.
4456 echo '#line 4457 "configure"' > conftest.$ac_ext
4457 if { (eval echo configure:4458: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4458 case `/usr/bin/file conftest.$ac_objext` in
4474 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4475 SAVE_CFLAGS="$CFLAGS"
4476 CFLAGS="$CFLAGS -belf"
4477 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
4478 echo "configure:4479: checking whether the C compiler needs -belf" >&5
4479 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
4480 echo $ac_n "(cached) $ac_c" 1>&6
4484 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4485 ac_cpp='$CPP $CPPFLAGS'
4486 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4487 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4488 cross_compiling=$ac_cv_prog_cc_cross
4490 cat > conftest.$ac_ext <<EOF
4491 #line 4492 "configure"
4492 #include "confdefs.h"
4498 if { (eval echo configure:4499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4500 lt_cv_cc_needs_belf=yes
4502 echo "configure: failed program was:" >&5
4503 cat conftest.$ac_ext >&5
4505 lt_cv_cc_needs_belf=no
4509 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4510 ac_cpp='$CPP $CPPFLAGS'
4511 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4512 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4513 cross_compiling=$ac_cv_prog_cc_cross
4517 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
4518 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4519 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4520 CFLAGS="$SAVE_CFLAGS"
4524 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4525 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4526 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4527 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4528 echo "configure:4529: checking for $ac_word" >&5
4529 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
4530 echo $ac_n "(cached) $ac_c" 1>&6
4532 if test -n "$DLLTOOL"; then
4533 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4535 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4537 for ac_dir in $ac_dummy; do
4538 test -z "$ac_dir" && ac_dir=.
4539 if test -f $ac_dir/$ac_word; then
4540 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4547 DLLTOOL="$ac_cv_prog_DLLTOOL"
4548 if test -n "$DLLTOOL"; then
4549 echo "$ac_t""$DLLTOOL" 1>&6
4551 echo "$ac_t""no" 1>&6
4555 if test -z "$ac_cv_prog_DLLTOOL"; then
4556 if test -n "$ac_tool_prefix"; then
4557 # Extract the first word of "dlltool", so it can be a program name with args.
4558 set dummy dlltool; ac_word=$2
4559 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4560 echo "configure:4561: checking for $ac_word" >&5
4561 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
4562 echo $ac_n "(cached) $ac_c" 1>&6
4564 if test -n "$DLLTOOL"; then
4565 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4567 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4569 for ac_dir in $ac_dummy; do
4570 test -z "$ac_dir" && ac_dir=.
4571 if test -f $ac_dir/$ac_word; then
4572 ac_cv_prog_DLLTOOL="dlltool"
4577 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
4580 DLLTOOL="$ac_cv_prog_DLLTOOL"
4581 if test -n "$DLLTOOL"; then
4582 echo "$ac_t""$DLLTOOL" 1>&6
4584 echo "$ac_t""no" 1>&6
4592 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4593 set dummy ${ac_tool_prefix}as; ac_word=$2
4594 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4595 echo "configure:4596: checking for $ac_word" >&5
4596 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
4597 echo $ac_n "(cached) $ac_c" 1>&6
4599 if test -n "$AS"; then
4600 ac_cv_prog_AS="$AS" # Let the user override the test.
4602 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4604 for ac_dir in $ac_dummy; do
4605 test -z "$ac_dir" && ac_dir=.
4606 if test -f $ac_dir/$ac_word; then
4607 ac_cv_prog_AS="${ac_tool_prefix}as"
4615 if test -n "$AS"; then
4616 echo "$ac_t""$AS" 1>&6
4618 echo "$ac_t""no" 1>&6
4622 if test -z "$ac_cv_prog_AS"; then
4623 if test -n "$ac_tool_prefix"; then
4624 # Extract the first word of "as", so it can be a program name with args.
4625 set dummy as; ac_word=$2
4626 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4627 echo "configure:4628: checking for $ac_word" >&5
4628 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
4629 echo $ac_n "(cached) $ac_c" 1>&6
4631 if test -n "$AS"; then
4632 ac_cv_prog_AS="$AS" # Let the user override the test.
4634 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4636 for ac_dir in $ac_dummy; do
4637 test -z "$ac_dir" && ac_dir=.
4638 if test -f $ac_dir/$ac_word; then
4644 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
4648 if test -n "$AS"; then
4649 echo "$ac_t""$AS" 1>&6
4651 echo "$ac_t""no" 1>&6
4659 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4660 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4661 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4662 echo "configure:4663: checking for $ac_word" >&5
4663 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
4664 echo $ac_n "(cached) $ac_c" 1>&6
4666 if test -n "$OBJDUMP"; then
4667 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4669 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4671 for ac_dir in $ac_dummy; do
4672 test -z "$ac_dir" && ac_dir=.
4673 if test -f $ac_dir/$ac_word; then
4674 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4681 OBJDUMP="$ac_cv_prog_OBJDUMP"
4682 if test -n "$OBJDUMP"; then
4683 echo "$ac_t""$OBJDUMP" 1>&6
4685 echo "$ac_t""no" 1>&6
4689 if test -z "$ac_cv_prog_OBJDUMP"; then
4690 if test -n "$ac_tool_prefix"; then
4691 # Extract the first word of "objdump", so it can be a program name with args.
4692 set dummy objdump; ac_word=$2
4693 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4694 echo "configure:4695: checking for $ac_word" >&5
4695 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
4696 echo $ac_n "(cached) $ac_c" 1>&6
4698 if test -n "$OBJDUMP"; then
4699 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4701 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4703 for ac_dir in $ac_dummy; do
4704 test -z "$ac_dir" && ac_dir=.
4705 if test -f $ac_dir/$ac_word; then
4706 ac_cv_prog_OBJDUMP="objdump"
4711 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
4714 OBJDUMP="$ac_cv_prog_OBJDUMP"
4715 if test -n "$OBJDUMP"; then
4716 echo "$ac_t""$OBJDUMP" 1>&6
4718 echo "$ac_t""no" 1>&6
4727 # recent cygwin and mingw systems supply a stub DllMain which the user
4728 # can override, but on older systems we have to supply one
4729 echo $ac_n "checking if libtool should supply DllMain function""... $ac_c" 1>&6
4730 echo "configure:4731: checking if libtool should supply DllMain function" >&5
4731 if eval "test \"\${lt_cv_need_dllmain+set}\" = set"; then
4732 echo $ac_n "(cached) $ac_c" 1>&6
4734 cat > conftest.$ac_ext <<EOF
4735 #line 4736 "configure"
4736 #include "confdefs.h"
4739 extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
4743 if { (eval echo configure:4744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4745 lt_cv_need_dllmain=no
4747 echo "configure: failed program was:" >&5
4748 cat conftest.$ac_ext >&5
4750 lt_cv_need_dllmain=yes
4755 echo "$ac_t""$lt_cv_need_dllmain" 1>&6
4758 *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
4759 # old mingw systems require "-dll" to link a DLL, while more recent ones
4761 SAVE_CFLAGS="$CFLAGS"
4762 CFLAGS="$CFLAGS -mdll"
4763 echo $ac_n "checking how to link DLLs""... $ac_c" 1>&6
4764 echo "configure:4765: checking how to link DLLs" >&5
4765 if eval "test \"\${lt_cv_cc_dll_switch+set}\" = set"; then
4766 echo $ac_n "(cached) $ac_c" 1>&6
4768 cat > conftest.$ac_ext <<EOF
4769 #line 4770 "configure"
4770 #include "confdefs.h"
4776 if { (eval echo configure:4777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4778 lt_cv_cc_dll_switch=-mdll
4780 echo "configure: failed program was:" >&5
4781 cat conftest.$ac_ext >&5
4783 lt_cv_cc_dll_switch=-dll
4788 echo "$ac_t""$lt_cv_cc_dll_switch" 1>&6
4789 CFLAGS="$SAVE_CFLAGS" ;;
4790 *-*-cygwin* | *-*-pw32*)
4791 # cygwin systems need to pass --dll to the linker, and not link
4792 # crt.o which will require a WinMain@16 definition.
4793 lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
4799 # Sed substitution that helps us do robust quoting. It backslashifies
4800 # metacharacters that are still active within double-quoted strings.
4801 Xsed='sed -e s/^X//'
4802 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4804 # Same as above, but do not quote variable references.
4805 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4807 # Sed substitution to delay expansion of an escaped shell variable in a
4808 # double_quote_subst'ed string.
4809 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4815 default_ofile=libtool
4816 can_build_shared=yes
4818 # All known linkers require a `.a' archive for static linking (except M$VC,
4819 # which needs '.lib').
4821 ltmain="$ac_aux_dir/ltmain.sh"
4822 ofile="$default_ofile"
4823 with_gnu_ld="$lt_cv_prog_gnu_ld"
4824 need_locks="$enable_libtool_lock"
4827 old_CFLAGS="$CFLAGS"
4829 # Set sane defaults for various variables
4830 test -z "$AR" && AR=ar
4831 test -z "$AR_FLAGS" && AR_FLAGS=cru
4832 test -z "$AS" && AS=as
4833 test -z "$CC" && CC=cc
4834 test -z "$DLLTOOL" && DLLTOOL=dlltool
4835 test -z "$LD" && LD=ld
4836 test -z "$LN_S" && LN_S="ln -s"
4837 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4838 test -z "$NM" && NM=nm
4839 test -z "$OBJDUMP" && OBJDUMP=objdump
4840 test -z "$RANLIB" && RANLIB=:
4841 test -z "$STRIP" && STRIP=:
4842 test -z "$ac_objext" && ac_objext=o
4844 if test x"$host" != x"$build"; then
4845 ac_tool_prefix=${host_alias}-
4850 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4853 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4858 # AIX sometimes has problems with the GCC collect2 program. For some
4859 # reason, if we set the COLLECT_NAMES environment variable, the problems
4860 # vanish in a puff of smoke.
4861 if test "X${COLLECT_NAMES+set}" != Xset; then
4863 export COLLECT_NAMES
4868 # Determine commands to create old-style static archives.
4869 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4870 old_postinstall_cmds='chmod 644 $oldlib'
4871 old_postuninstall_cmds=
4873 if test -n "$RANLIB"; then
4876 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4879 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4882 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4885 # Allow CC to be a program name with arguments.
4889 echo $ac_n "checking for objdir""... $ac_c" 1>&6
4890 echo "configure:4891: checking for objdir" >&5
4891 rm -f .libs 2>/dev/null
4892 mkdir .libs 2>/dev/null
4893 if test -d .libs; then
4896 # MS-DOS does not allow filenames that begin with a dot.
4899 rmdir .libs 2>/dev/null
4900 echo "$ac_t""$objdir" 1>&6
4903 # Check whether --with-pic or --without-pic was given.
4904 if test "${with_pic+set}" = set; then
4911 test -z "$pic_mode" && pic_mode=default
4913 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
4914 # in isolation, and that seeing it set (from the cache) indicates that
4915 # the associated values are set (in the cache) correctly too.
4916 echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6
4917 echo "configure:4918: checking for $compiler option to produce PIC" >&5
4918 if eval "test \"\${lt_cv_prog_cc_pic+set}\" = set"; then
4919 echo $ac_n "(cached) $ac_c" 1>&6
4922 lt_cv_prog_cc_shlib=
4924 lt_cv_prog_cc_static=
4925 lt_cv_prog_cc_no_builtin=
4926 lt_cv_prog_cc_can_build_shared=$can_build_shared
4928 if test "$GCC" = yes; then
4929 lt_cv_prog_cc_wl='-Wl,'
4930 lt_cv_prog_cc_static='-static'
4934 # Below there is a dirty hack to force normal static linking with -ldl
4935 # The problem is because libdl dynamically linked with both libc and
4936 # libC (AIX C++ library), which obviously doesn't included in libraries
4937 # list by gcc. This cause undefined symbols with -static flags.
4938 # This hack allows C programs to be linked with "-static -ldl", but
4939 # not sure about C++ programs.
4940 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
4943 # FIXME: we need at least 68020 code to build shared libraries, but
4944 # adding the `-m68020' flag to GCC prevents building anything better,
4946 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
4948 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4949 # PIC is the default for these OSes.
4951 darwin* | rhapsody*)
4952 # PIC is the default on this platform
4953 # Common symbols not allowed in MH_DYLIB files
4954 lt_cv_prog_cc_pic='-fno-common'
4956 cygwin* | mingw* | pw32* | os2*)
4957 # This hack is so that the source file can tell whether it is being
4958 # built for inclusion in a dll (and should export symbols for example).
4959 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4962 if test -d /usr/nec; then
4963 lt_cv_prog_cc_pic=-Kconform_pic
4967 lt_cv_prog_cc_pic='-fPIC'
4971 # PORTME Check for PIC flags for the system compiler.
4973 aix3* | aix4* | aix5*)
4974 lt_cv_prog_cc_wl='-Wl,'
4975 # All AIX code is PIC.
4976 if test "$host_cpu" = ia64; then
4977 # AIX 5 now supports IA64 processor
4978 lt_cv_prog_cc_static='-Bstatic'
4980 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
4984 hpux9* | hpux10* | hpux11*)
4985 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
4986 lt_cv_prog_cc_wl='-Wl,'
4987 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
4988 lt_cv_prog_cc_pic='+Z'
4991 irix5* | irix6* | nonstopux*)
4992 lt_cv_prog_cc_wl='-Wl,'
4993 lt_cv_prog_cc_static='-non_shared'
4994 # PIC (with -KPIC) is the default.
4997 cygwin* | mingw* | pw32* | os2*)
4998 # This hack is so that the source file can tell whether it is being
4999 # built for inclusion in a dll (and should export symbols for example).
5000 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5004 lt_cv_prog_cc_pic='-KPIC'
5005 lt_cv_prog_cc_static='-Bstatic'
5009 # XPLINK code is PIC by default
5012 osf3* | osf4* | osf5*)
5013 # All OSF/1 code is PIC.
5014 lt_cv_prog_cc_wl='-Wl,'
5015 lt_cv_prog_cc_static='-non_shared'
5019 lt_cv_prog_cc_pic='-Kpic'
5020 lt_cv_prog_cc_static='-dn'
5021 lt_cv_prog_cc_shlib='-belf'
5025 lt_cv_prog_cc_pic='-KPIC'
5026 lt_cv_prog_cc_static='-Bstatic'
5027 lt_cv_prog_cc_wl='-Wl,'
5031 lt_cv_prog_cc_pic='-PIC'
5032 lt_cv_prog_cc_static='-Bstatic'
5033 lt_cv_prog_cc_wl='-Qoption ld '
5036 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5037 lt_cv_prog_cc_pic='-KPIC'
5038 lt_cv_prog_cc_static='-Bstatic'
5039 lt_cv_prog_cc_wl='-Wl,'
5043 lt_cv_prog_cc_pic='-pic'
5044 lt_cv_prog_cc_static='-Bstatic'
5048 if test -d /usr/nec ;then
5049 lt_cv_prog_cc_pic='-Kconform_pic'
5050 lt_cv_prog_cc_static='-Bstatic'
5055 lt_cv_prog_cc_can_build_shared=no
5062 if test -z "$lt_cv_prog_cc_pic"; then
5063 echo "$ac_t""none" 1>&6
5065 echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6
5067 # Check to make sure the pic_flag actually works.
5068 echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6
5069 echo "configure:5070: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5070 if eval "test \"\${lt_cv_prog_cc_pic_works+set}\" = set"; then
5071 echo $ac_n "(cached) $ac_c" 1>&6
5073 save_CFLAGS="$CFLAGS"
5074 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5075 cat > conftest.$ac_ext <<EOF
5076 #line 5077 "configure"
5077 #include "confdefs.h"
5083 if { (eval echo configure:5084: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5086 hpux9* | hpux10* | hpux11*)
5087 # On HP-UX, both CC and GCC only warn that PIC is supported... then
5088 # they create non-PIC objects. So, if there were any warnings, we
5089 # assume that PIC is not supported.
5090 if test -s conftest.err; then
5091 lt_cv_prog_cc_pic_works=no
5093 lt_cv_prog_cc_pic_works=yes
5097 lt_cv_prog_cc_pic_works=yes
5102 echo "configure: failed program was:" >&5
5103 cat conftest.$ac_ext >&5
5105 lt_cv_prog_cc_pic_works=no
5109 CFLAGS="$save_CFLAGS"
5114 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5116 lt_cv_prog_cc_can_build_shared=no
5118 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5121 echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6
5124 # Check for any special shared library compilation flags.
5125 if test -n "$lt_cv_prog_cc_shlib"; then
5126 echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2
5127 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5129 echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2
5130 lt_cv_prog_cc_can_build_shared=no
5134 echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6
5135 echo "configure:5136: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5136 if eval "test \"\${lt_cv_prog_cc_static_works+set}\" = set"; then
5137 echo $ac_n "(cached) $ac_c" 1>&6
5139 lt_cv_prog_cc_static_works=no
5140 save_LDFLAGS="$LDFLAGS"
5141 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5142 cat > conftest.$ac_ext <<EOF
5143 #line 5144 "configure"
5144 #include "confdefs.h"
5150 if { (eval echo configure:5151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5152 lt_cv_prog_cc_static_works=yes
5154 echo "configure: failed program was:" >&5
5155 cat conftest.$ac_ext >&5
5158 LDFLAGS="$save_LDFLAGS"
5163 # Belt *and* braces to stop my trousers falling down:
5164 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5165 echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6
5167 pic_flag="$lt_cv_prog_cc_pic"
5168 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5169 wl="$lt_cv_prog_cc_wl"
5170 link_static_flag="$lt_cv_prog_cc_static"
5171 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5172 can_build_shared="$lt_cv_prog_cc_can_build_shared"
5175 # Check to see if options -o and -c are simultaneously supported by compiler
5176 echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6
5177 echo "configure:5178: checking if $compiler supports -c -o file.$ac_objext" >&5
5178 if eval "test \"\${lt_cv_compiler_c_o+set}\" = set"; then
5179 echo $ac_n "(cached) $ac_c" 1>&6
5182 $rm -r conftest 2>/dev/null
5185 echo "int some_variable = 0;" > conftest.$ac_ext
5187 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5188 # that will create temporary files in the current directory regardless of
5189 # the output directory. Thus, making CWD read-only will cause this test
5190 # to fail, enabling locking or at least warning the user not to do parallel
5193 save_CFLAGS="$CFLAGS"
5194 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5196 if { (eval echo configure:5197: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5197 # The compiler can only warn and ignore the option if not recognized
5198 # So say no if there are warnings
5199 if test -s out/conftest.err; then
5200 lt_cv_compiler_c_o=no
5202 lt_cv_compiler_c_o=yes
5205 # Append any errors to the config.log.
5206 cat out/conftest.err 1>&5
5207 lt_cv_compiler_c_o=no
5209 CFLAGS="$save_CFLAGS"
5215 $rm -r conftest 2>/dev/null
5219 compiler_c_o=$lt_cv_compiler_c_o
5220 echo "$ac_t""$compiler_c_o" 1>&6
5222 if test x"$compiler_c_o" = x"yes"; then
5223 # Check to see if we can write to a .lo
5224 echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6
5225 echo "configure:5226: checking if $compiler supports -c -o file.lo" >&5
5226 if eval "test \"\${lt_cv_compiler_o_lo+set}\" = set"; then
5227 echo $ac_n "(cached) $ac_c" 1>&6
5230 lt_cv_compiler_o_lo=no
5231 save_CFLAGS="$CFLAGS"
5232 CFLAGS="$CFLAGS -c -o conftest.lo"
5233 save_objext="$ac_objext"
5235 cat > conftest.$ac_ext <<EOF
5236 #line 5237 "configure"
5237 #include "confdefs.h"
5240 int some_variable = 0;
5243 if { (eval echo configure:5244: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5245 # The compiler can only warn and ignore the option if not recognized
5246 # So say no if there are warnings
5247 if test -s conftest.err; then
5248 lt_cv_compiler_o_lo=no
5250 lt_cv_compiler_o_lo=yes
5254 echo "configure: failed program was:" >&5
5255 cat conftest.$ac_ext >&5
5258 ac_objext="$save_objext"
5259 CFLAGS="$save_CFLAGS"
5263 compiler_o_lo=$lt_cv_compiler_o_lo
5264 echo "$ac_t""$compiler_o_lo" 1>&6
5269 # Check to see if we can do hard links to lock some files if needed
5270 hard_links="nottested"
5271 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5272 # do not overwrite the value of need_locks provided by the user
5273 echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6
5274 echo "configure:5275: checking if we can lock with hard links" >&5
5277 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5279 ln conftest.a conftest.b 2>&5 || hard_links=no
5280 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5281 echo "$ac_t""$hard_links" 1>&6
5282 if test "$hard_links" = no; then
5283 echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2
5290 if test "$GCC" = yes; then
5291 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5292 echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6
5293 echo "configure:5294: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5294 echo "int some_variable = 0;" > conftest.$ac_ext
5295 save_CFLAGS="$CFLAGS"
5296 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5297 compiler_rtti_exceptions=no
5298 cat > conftest.$ac_ext <<EOF
5299 #line 5300 "configure"
5300 #include "confdefs.h"
5303 int some_variable = 0;
5306 if { (eval echo configure:5307: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5308 # The compiler can only warn and ignore the option if not recognized
5309 # So say no if there are warnings
5310 if test -s conftest.err; then
5311 compiler_rtti_exceptions=no
5313 compiler_rtti_exceptions=yes
5317 echo "configure: failed program was:" >&5
5318 cat conftest.$ac_ext >&5
5321 CFLAGS="$save_CFLAGS"
5322 echo "$ac_t""$compiler_rtti_exceptions" 1>&6
5324 if test "$compiler_rtti_exceptions" = "yes"; then
5325 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5327 no_builtin_flag=' -fno-builtin'
5331 # See if the linker supports building shared libraries.
5332 echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6
5333 echo "configure:5334: checking whether the linker ($LD) supports shared libraries" >&5
5335 allow_undefined_flag=
5337 need_lib_prefix=unknown
5338 need_version=unknown
5339 # when you set need_version to no, make sure it does not cause -set_version
5340 # flags to be left without arguments
5342 archive_expsym_cmds=
5343 old_archive_from_new_cmds=
5344 old_archive_from_expsyms_cmds=
5345 export_dynamic_flag_spec=
5346 whole_archive_flag_spec=
5347 thread_safe_flag_spec=
5348 hardcode_into_libs=no
5349 hardcode_libdir_flag_spec=
5350 hardcode_libdir_separator=
5353 hardcode_shlibpath_var=unsupported
5355 link_all_deplibs=unknown
5356 always_export_symbols=no
5357 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5358 # include_expsyms should be a list of space-separated symbols to be *always*
5359 # included in the symbol list
5361 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5362 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5363 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5364 # as well as any symbol that contains `d'.
5365 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5366 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5367 # platforms (ab)use it in PIC code, but their linkers get confused if
5368 # the symbol is explicitly referenced. Since portable code cannot
5369 # rely on this symbol name, it's probably fine to never include it in
5370 # preloaded symbol tables.
5371 extract_expsyms_cmds=
5374 cygwin* | mingw* | pw32*)
5375 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5376 # When not using gcc, we currently assume that we are using
5377 # Microsoft Visual C++.
5378 if test "$GCC" != yes; then
5388 if test "$with_gnu_ld" = yes; then
5389 # If archive_cmds runs LD, not CC, wlarc should be empty
5392 # See if GNU ld supports shared libraries.
5394 aix3* | aix4* | aix5*)
5395 # On AIX, the GNU linker is very broken
5396 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5400 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5401 *** to be unable to reliably create shared libraries on AIX.
5402 *** Therefore, libtool is disabling shared libraries support. If you
5403 *** really care for shared libraries, you may want to modify your PATH
5404 *** so that a non-GNU linker is found, and then restart.
5410 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
5411 hardcode_libdir_flag_spec='-L$libdir'
5412 hardcode_minus_L=yes
5414 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5415 # that the semantics of dynamic libraries on AmigaOS, at least up
5416 # to version 4, is to share data among multiple programs linked
5417 # with the same dynamic library. Since this doesn't match the
5418 # behavior of shared libraries on other platforms, we can use
5424 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5425 allow_undefined_flag=unsupported
5426 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5427 # support --undefined. This deserves some investigation. FIXME
5428 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5434 cygwin* | mingw* | pw32*)
5435 # hardcode_libdir_flag_spec is actually meaningless, as there is
5436 # no search path for DLLs.
5437 hardcode_libdir_flag_spec='-L$libdir'
5438 allow_undefined_flag=unsupported
5439 always_export_symbols=yes
5441 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5442 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5443 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5444 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5445 else $CC -o impgen impgen.c ; fi)~
5446 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5448 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5450 # cygwin and mingw dlls have different entry points and sets of symbols
5452 # FIXME: what about values for MSVC?
5453 dll_entry=__cygwin_dll_entry@12
5454 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5458 dll_entry=_DllMainCRTStartup@12
5459 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5463 # mingw and cygwin differ, and it's simplest to just exclude the union
5464 # of the two symbol sets.
5465 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5467 # recent cygwin and mingw systems supply a stub DllMain which the user
5468 # can override, but on older systems we have to supply one (in ltdll.c)
5469 if test "x$lt_cv_need_dllmain" = "xyes"; then
5470 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5471 ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
5472 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5478 # Extract the symbol export list from an `--export-all' def file,
5479 # then regenerate the def file from the symbol export list, so that
5480 # the compiled dll only exports the symbol export list.
5481 # Be careful not to strip the DATA tag left be newer dlltools.
5482 export_symbols_cmds="$ltdll_cmds"'
5483 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5484 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5486 # If the export-symbols file already is a .def file (1st line
5487 # is EXPORTS), use it as is.
5488 # If DATA tags from a recent dlltool are present, honour them!
5489 archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
5490 cp $export_symbols $output_objdir/$soname-def;
5492 echo EXPORTS > $output_objdir/$soname-def;
5494 cat $export_symbols | while read symbol; do
5497 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5498 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
5499 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5501 _lt_hint=`expr 1 + \$_lt_hint`;
5505 $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~
5506 $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~
5507 $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~
5508 $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~
5509 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5513 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5514 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5517 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5518 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5523 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5527 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5528 *** create shared libraries on Solaris systems. Therefore, libtool
5529 *** is disabling shared libraries support. We urge you to upgrade GNU
5530 *** binutils to release 2.9.1 or newer. Another option is to modify
5531 *** your PATH or compiler configuration so that the native linker is
5532 *** used, and then restart.
5535 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5536 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5537 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5544 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5547 hardcode_shlibpath_var=no
5551 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5552 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5553 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5560 if test "$ld_shlibs" = yes; then
5561 runpath_var=LD_RUN_PATH
5562 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5563 export_dynamic_flag_spec='${wl}--export-dynamic'
5565 cygwin* | mingw* | pw32*)
5566 # dlltool doesn't understand --whole-archive et. al.
5567 whole_archive_flag_spec=
5570 # ancient GNU ld didn't support --whole-archive et. al.
5571 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5572 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5574 whole_archive_flag_spec=
5580 # PORTME fill in a description of your system's linker (not GNU ld)
5583 allow_undefined_flag=unsupported
5584 always_export_symbols=yes
5585 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'
5586 # Note: this linker hardcodes the directories in LIBPATH if there
5587 # are no directories specified by -L.
5588 hardcode_minus_L=yes
5589 if test "$GCC" = yes && test -z "$link_static_flag"; then
5590 # Neither direct hardcoding nor static linking is supported with a
5592 hardcode_direct=unsupported
5597 if test "$host_cpu" = ia64; then
5598 # On IA64, the linker does run time linking by default, so we don't
5599 # have to do anything special.
5600 aix_use_runtimelinking=no
5601 exp_sym_flag='-Bexport'
5604 aix_use_runtimelinking=no
5606 # Test if we are trying to use run time linking or normal
5607 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5608 # need to do runtime linking.
5609 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5610 for ld_flag in $LDFLAGS; do
5613 aix_use_runtimelinking=yes
5620 exp_sym_flag='-bexport'
5621 no_entry_flag='-bnoentry'
5624 # When large executables or shared objects are built, AIX ld can
5625 # have problems creating the table of contents. If linking a library
5626 # or program results in "error TOC overflow" add -mminimal-toc to
5627 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5628 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5632 hardcode_libdir_separator=':'
5633 if test "$GCC" = yes; then
5634 case $host_os in aix4.[012]|aix4.[012].*)
5635 collect2name=`${CC} -print-prog-name=collect2`
5636 if test -f "$collect2name" && \
5637 strings "$collect2name" | grep resolve_lib_name >/dev/null
5639 # We have reworked collect2
5642 # We have old collect2
5643 hardcode_direct=unsupported
5644 # It fails to find uninstalled libraries when the uninstalled
5645 # path is not listed in the libpath. Setting hardcode_minus_L
5646 # to unsupported forces relinking
5647 hardcode_minus_L=yes
5648 hardcode_libdir_flag_spec='-L$libdir'
5649 hardcode_libdir_separator=
5653 shared_flag='-shared'
5656 if test "$host_cpu" = ia64; then
5657 shared_flag='${wl}-G'
5659 if test "$aix_use_runtimelinking" = yes; then
5660 shared_flag='${wl}-G'
5662 shared_flag='${wl}-bM:SRE'
5667 # It seems that -bexpall can do strange things, so it is better to
5668 # generate a list of symbols to export.
5669 always_export_symbols=yes
5670 if test "$aix_use_runtimelinking" = yes; then
5671 # Warning - without using the other runtime loading flags (-brtl),
5672 # -berok will link without error, but may produce a broken library.
5673 allow_undefined_flag='-berok'
5674 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5675 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"
5677 if test "$host_cpu" = ia64; then
5678 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5679 allow_undefined_flag="-z nodefs"
5680 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"
5682 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5683 # Warning - without using the other run time loading flags,
5684 # -berok will link without error, but may produce a broken library.
5685 allow_undefined_flag='${wl}-berok'
5686 # This is a bit strange, but is similar to how AIX traditionally builds
5687 # it's shared libraries.
5688 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'
5694 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)'
5695 hardcode_libdir_flag_spec='-L$libdir'
5696 hardcode_minus_L=yes
5697 # see comment about different semantics on the GNU ld section
5701 cygwin* | mingw* | pw32*)
5702 # When not using gcc, we currently assume that we are using
5703 # Microsoft Visual C++.
5704 # hardcode_libdir_flag_spec is actually meaningless, as there is
5705 # no search path for DLLs.
5706 hardcode_libdir_flag_spec=' '
5707 allow_undefined_flag=unsupported
5708 # Tell ltmain to make .lib files, not .a files.
5710 # FIXME: Setting linknames here is a bad hack.
5711 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5712 # The linker will automatically build a .lib file if we build a DLL.
5713 old_archive_from_new_cmds='true'
5714 # FIXME: Should let the user specify the lib program.
5715 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5716 fix_srcfile_path='`cygpath -w "$srcfile"`'
5719 darwin* | rhapsody*)
5721 rhapsody* | darwin1.[012])
5722 allow_undefined_flag='-undefined suppress'
5725 allow_undefined_flag='-flat_namespace -undefined suppress'
5728 # FIXME: Relying on posixy $() will cause problems for
5729 # cross-compilation, but unfortunately the echo tests do not
5730 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
5731 # `"' quotes if we put them in here... so don't!
5732 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)'
5733 # We need to add '_' to the symbols in $export_symbols first
5734 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5736 hardcode_shlibpath_var=no
5737 whole_archive_flag_spec='-all_load $convenience'
5744 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5745 # support. Future versions do this automatically, but an explicit c++rt0.o
5746 # does not break anything, and helps significantly (at the cost of a little
5749 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5750 hardcode_libdir_flag_spec='-R$libdir'
5752 hardcode_shlibpath_var=no
5755 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5757 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5759 hardcode_minus_L=yes
5760 hardcode_shlibpath_var=no
5763 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5765 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5766 hardcode_libdir_flag_spec='-R$libdir'
5768 hardcode_shlibpath_var=no
5771 hpux9* | hpux10* | hpux11*)
5773 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' ;;
5774 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5776 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5777 hardcode_libdir_separator=:
5779 hardcode_minus_L=yes # Not in the search PATH, but as the default
5780 # location of the library.
5781 export_dynamic_flag_spec='${wl}-E'
5784 irix5* | irix6* | nonstopux*)
5785 if test "$GCC" = yes; then
5786 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'
5787 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5789 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'
5790 hardcode_libdir_flag_spec='-rpath $libdir'
5792 hardcode_libdir_separator=:
5793 link_all_deplibs=yes
5797 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5798 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5800 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5802 hardcode_libdir_flag_spec='-R$libdir'
5804 hardcode_shlibpath_var=no
5808 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5810 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5811 hardcode_libdir_separator=:
5812 hardcode_shlibpath_var=no
5817 hardcode_shlibpath_var=no
5818 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5819 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5820 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5821 export_dynamic_flag_spec='${wl}-E'
5824 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5825 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5826 hardcode_libdir_flag_spec='-R$libdir'
5829 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5830 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5837 archive_cmds="\$CC -Wl,DLL \$libobjs \$deplibs \$compiler_flags -o \$lib &&
5838 cp \$linknames \$output_objdir && linknames=''"
5839 export_dynamic_flag_spec="-Wl,DLL"
5843 hardcode_libdir_flag_spec='-L$libdir'
5844 hardcode_minus_L=yes
5845 allow_undefined_flag=unsupported
5846 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'
5847 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5851 if test "$GCC" = yes; then
5852 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5853 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'
5855 allow_undefined_flag=' -expect_unresolved \*'
5856 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'
5858 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5859 hardcode_libdir_separator=:
5862 osf4* | osf5*) # as osf3* with the addition of -msym flag
5863 if test "$GCC" = yes; then
5864 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5865 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'
5866 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5868 allow_undefined_flag=' -expect_unresolved \*'
5869 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'
5870 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5871 $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'
5873 #Both c and cxx compiler support -rpath directly
5874 hardcode_libdir_flag_spec='-rpath $libdir'
5876 hardcode_libdir_separator=:
5880 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5881 hardcode_shlibpath_var=no
5882 runpath_var=LD_RUN_PATH
5883 hardcode_runpath_var=yes
5884 export_dynamic_flag_spec='${wl}-Bexport'
5888 # gcc --version < 3.0 without binutils cannot create self contained
5889 # shared libraries reliably, requiring libgcc.a to resolve some of
5890 # the object symbols generated in some cases. Libraries that use
5891 # assert need libgcc.a to resolve __eprintf, for example. Linking
5892 # a copy of libgcc.a into every shared library to guarantee resolving
5893 # such symbols causes other problems: According to Tim Van Holder
5894 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
5895 # (to the application) exception stack for one thing.
5896 no_undefined_flag=' -z defs'
5897 if test "$GCC" = yes; then
5898 case `$CC --version 2>/dev/null` in
5902 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5903 *** create self contained shared libraries on Solaris systems, without
5904 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
5905 *** -no-undefined support, which will at least allow you to build shared
5906 *** libraries. However, you may find that when you link such libraries
5907 *** into an application without using GCC, you have to manually add
5908 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
5909 *** upgrade to a newer version of GCC. Another option is to rebuild your
5910 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
5917 # $CC -shared without GNU ld will not create a library from C++
5918 # object files and a static libstdc++, better avoid it by now
5919 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5920 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5921 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5922 hardcode_libdir_flag_spec='-R$libdir'
5923 hardcode_shlibpath_var=no
5925 solaris2.[0-5] | solaris2.[0-5].*) ;;
5926 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5927 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5929 link_all_deplibs=yes
5933 if test "x$host_vendor" = xsequent; then
5934 # Use $CC to link under sequent, because it throws in some extra .o
5935 # files that make .init and .fini sections work.
5936 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5938 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5940 hardcode_libdir_flag_spec='-L$libdir'
5942 hardcode_minus_L=yes
5943 hardcode_shlibpath_var=no
5947 case $host_vendor in
5949 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5950 hardcode_direct=yes # is this really true???
5953 ## LD is ld it makes a PLAMLIB
5954 ## CC just makes a GrossModule.
5955 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5956 reload_cmds='$CC -r -o $output$reload_objs'
5960 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5961 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5964 runpath_var='LD_RUN_PATH'
5965 hardcode_shlibpath_var=no
5969 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5970 hardcode_shlibpath_var=no
5971 export_dynamic_flag_spec='-Bexport'
5975 no_undefined_flag=' -z text'
5976 # $CC -shared without GNU ld will not create a library from C++
5977 # object files and a static libstdc++, better avoid it by now
5978 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5979 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5980 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5981 hardcode_libdir_flag_spec=
5982 hardcode_shlibpath_var=no
5983 runpath_var='LD_RUN_PATH'
5987 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5988 hardcode_libdir_flag_spec='-L$libdir'
5989 hardcode_shlibpath_var=no
5993 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5994 hardcode_libdir_flag_spec='-L$libdir'
5995 hardcode_shlibpath_var=no
5999 if test -d /usr/nec; then
6000 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6001 hardcode_shlibpath_var=no
6002 runpath_var=LD_RUN_PATH
6003 hardcode_runpath_var=yes
6009 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6012 hardcode_shlibpath_var=no
6013 hardcode_runpath_var=yes
6014 runpath_var=LD_RUN_PATH
6017 sysv5uw7* | unixware7*)
6018 no_undefined_flag='${wl}-z ${wl}text'
6019 if test "$GCC" = yes; then
6020 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6022 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6024 runpath_var='LD_RUN_PATH'
6025 hardcode_shlibpath_var=no
6033 echo "$ac_t""$ld_shlibs" 1>&6
6034 test "$ld_shlibs" = no && can_build_shared=no
6036 # Check hardcoding attributes.
6037 echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6
6038 echo "configure:6039: checking how to hardcode library paths into programs" >&5
6040 if test -n "$hardcode_libdir_flag_spec" || \
6041 test -n "$runpath_var"; then
6043 # We can hardcode non-existant directories.
6044 if test "$hardcode_direct" != no &&
6045 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6046 # have to relink, otherwise we might link with an installed library
6047 # when we should be linking with a yet-to-be-installed one
6048 ## test "$hardcode_shlibpath_var" != no &&
6049 test "$hardcode_minus_L" != no; then
6050 # Linking always hardcodes the temporary library directory.
6051 hardcode_action=relink
6053 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6054 hardcode_action=immediate
6057 # We cannot hardcode anything, or else we can only hardcode existing
6059 hardcode_action=unsupported
6061 echo "$ac_t""$hardcode_action" 1>&6
6065 echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6
6066 echo "configure:6067: checking whether stripping libraries is possible" >&5
6067 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6068 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6069 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6070 echo "$ac_t""yes" 1>&6
6072 echo "$ac_t""no" 1>&6
6075 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6076 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6078 # PORTME Fill in your ld.so characteristics
6079 echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6
6080 echo "configure:6081: checking dynamic linker characteristics" >&5
6082 libname_spec='lib$name'
6089 shlibpath_overrides_runpath=unknown
6091 dynamic_linker="$host_os ld.so"
6092 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6093 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6098 library_names_spec='${libname}${release}.so$versuffix $libname.a'
6099 shlibpath_var=LIBPATH
6101 # AIX has no versioning support, so we append a major version to the name.
6102 soname_spec='${libname}${release}.so$major'
6109 hardcode_into_libs=yes
6110 if test "$host_cpu" = ia64; then
6111 # AIX 5 supports IA64
6112 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6113 shlibpath_var=LD_LIBRARY_PATH
6115 # With GCC up to 2.95.x, collect2 would create an import file
6116 # for dependence libraries. The import file would start with
6117 # the line `#! .'. This would cause the generated library to
6118 # depend on `.', always an invalid library. This was fixed in
6119 # development snapshots of GCC prior to 3.0.
6121 aix4 | aix4.[01] | aix4.[01].*)
6122 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6124 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6131 # AIX (on Power*) has no versioning support, so currently we can
6132 # not hardcode correct soname into executable. Probably we can
6133 # add versioning support to collect2, so additional links can
6134 # be useful in future.
6135 if test "$aix_use_runtimelinking" = yes; then
6136 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6137 # instead of lib<name>.a to let people know that these are not
6138 # typical AIX shared libraries.
6139 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6141 # We preserve .a as extension for shared libraries through AIX4.2
6142 # and later when we are not doing run time linking.
6143 library_names_spec='${libname}${release}.a $libname.a'
6144 soname_spec='${libname}${release}.so$major'
6146 shlibpath_var=LIBPATH
6148 hardcode_into_libs=yes
6152 library_names_spec='$libname.ixlibrary $libname.a'
6153 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6154 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'
6158 library_names_spec='${libname}.so'
6159 dynamic_linker="$host_os ld.so"
6160 shlibpath_var=LIBRARY_PATH
6166 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6167 soname_spec='${libname}${release}.so$major'
6168 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6169 shlibpath_var=LD_LIBRARY_PATH
6170 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6171 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6172 export_dynamic_flag_spec=-rdynamic
6173 # the default ld.so.conf also contains /usr/contrib/lib and
6174 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6175 # libtool to hard-code these into programs
6178 cygwin* | mingw* | pw32*)
6179 version_type=windows
6182 case $GCC,$host_os in
6184 library_names_spec='$libname.dll.a'
6185 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6186 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6187 dldir=$destdir/`dirname \$dlpath`~
6188 test -d \$dldir || mkdir -p \$dldir~
6189 $install_prog .libs/$dlname \$dldir/$dlname'
6190 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6191 dlpath=$dir/\$dldll~
6195 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6196 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
6199 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6202 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6205 dynamic_linker='Win32 ld.exe'
6206 # FIXME: first we should search . and the directory the executable is in
6210 darwin* | rhapsody*)
6211 dynamic_linker="$host_os dyld"
6215 # FIXME: Relying on posixy $() will cause problems for
6216 # cross-compilation, but unfortunately the echo tests do not
6217 # yet detect zsh echo's removal of \ escapes.
6218 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)'
6219 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6220 shlibpath_overrides_runpath=yes
6221 shlibpath_var=DYLD_LIBRARY_PATH
6229 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6230 version_type=freebsd-$objformat
6231 case $version_type in
6233 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6238 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6242 shlibpath_var=LD_LIBRARY_PATH
6245 shlibpath_overrides_runpath=yes
6248 shlibpath_overrides_runpath=no
6249 hardcode_into_libs=yes
6258 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6259 soname_spec='${libname}${release}.so$major'
6260 shlibpath_var=LD_LIBRARY_PATH
6261 hardcode_into_libs=yes
6264 hpux9* | hpux10* | hpux11*)
6265 # Give a soname corresponding to the major version so that dld.sl refuses to
6266 # link against other versions.
6267 dynamic_linker="$host_os dld.sl"
6271 shlibpath_var=SHLIB_PATH
6272 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6273 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6274 soname_spec='${libname}${release}.sl$major'
6275 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6276 postinstall_cmds='chmod 555 $lib'
6279 irix5* | irix6* | nonstopux*)
6281 nonstopux*) version_type=nonstopux ;;
6282 *) version_type=irix ;;
6286 soname_spec='${libname}${release}.so$major'
6287 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6289 irix5* | nonstopux*)
6293 case $LD in # libtool.m4 will add one of these switches to LD
6294 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6295 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6296 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6297 *) libsuff= shlibsuff= libmagic=never-match;;
6301 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6302 shlibpath_overrides_runpath=no
6303 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6304 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6307 # No shared lib support for Linux oldld, aout, or coff.
6308 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6312 # This must be Linux ELF.
6317 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6318 soname_spec='${libname}${release}.so$major'
6319 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6320 shlibpath_var=LD_LIBRARY_PATH
6321 shlibpath_overrides_runpath=no
6322 # This implies no fast_install, which is unacceptable.
6323 # Some rework will be needed to allow for fast_install
6324 # before this can be enabled.
6325 hardcode_into_libs=yes
6327 # We used to test for /lib/ld.so.1 and disable shared libraries on
6328 # powerpc, because MkLinux only supported shared libraries with the
6329 # GNU dynamic linker. Since this was broken with cross compilers,
6330 # most powerpc-linux boxes support dynamic linking these days and
6331 # people can always --disable-shared, the test was removed, and we
6332 # assume the GNU/Linux dynamic linker is in use.
6333 dynamic_linker='GNU/Linux ld.so'
6340 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6341 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6342 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6343 dynamic_linker='NetBSD (a.out) ld.so'
6345 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6346 soname_spec='${libname}${release}.so$major'
6347 dynamic_linker='NetBSD ld.elf_so'
6349 shlibpath_var=LD_LIBRARY_PATH
6350 shlibpath_overrides_runpath=yes
6351 hardcode_into_libs=yes
6356 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6357 shlibpath_var=LD_LIBRARY_PATH
6358 shlibpath_overrides_runpath=yes
6365 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6367 openbsd2.[89] | openbsd2.[89].*)
6368 shlibpath_overrides_runpath=no
6371 shlibpath_overrides_runpath=yes
6375 shlibpath_overrides_runpath=yes
6377 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6378 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6379 shlibpath_var=LD_LIBRARY_PATH
6385 shlibpath_overrides_runpath=yes
6386 shlibpath_var=LIBPATH
6387 postinstall_cmds="rm \$destdir/\$linkname; cp \$linkname \$destdir; chmod a+x \$lib"
6388 # the library's exports are in libname.x; this is the file that must
6389 # actually be linked with to use a DLL.
6390 library_names_spec="\${libname}\${release}.so\$versuffix \${libname}.x"
6394 libname_spec='$name'
6396 library_names_spec='$libname.dll $libname.a'
6397 dynamic_linker='OS/2 ld.exe'
6398 shlibpath_var=LIBPATH
6401 osf3* | osf4* | osf5*)
6404 soname_spec='${libname}${release}.so$major'
6405 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6406 shlibpath_var=LD_LIBRARY_PATH
6407 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6408 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6409 hardcode_into_libs=yes
6414 soname_spec='${libname}${release}.so$major'
6415 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6416 shlibpath_var=LD_LIBRARY_PATH
6423 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6424 soname_spec='${libname}${release}.so$major'
6425 shlibpath_var=LD_LIBRARY_PATH
6426 shlibpath_overrides_runpath=yes
6427 hardcode_into_libs=yes
6428 # ldd complains unless libraries are executable
6429 postinstall_cmds='chmod +x $lib'
6434 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6435 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6436 shlibpath_var=LD_LIBRARY_PATH
6437 shlibpath_overrides_runpath=yes
6438 if test "$with_gnu_ld" = yes; then
6444 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6446 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6447 soname_spec='${libname}${release}.so$major'
6448 shlibpath_var=LD_LIBRARY_PATH
6449 case $host_vendor in
6451 shlibpath_overrides_runpath=no
6453 export_dynamic_flag_spec='${wl}-Blargedynsym'
6454 runpath_var=LD_RUN_PATH
6462 shlibpath_overrides_runpath=no
6463 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6470 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6471 soname_spec='${libname}${release}.so$major'
6472 shlibpath_var=LD_LIBRARY_PATH
6479 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6480 soname_spec='${libname}${release}.so$major'
6481 shlibpath_var=LD_LIBRARY_PATH
6485 if test -d /usr/nec ;then
6487 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6488 soname_spec='$libname.so.$major'
6489 shlibpath_var=LD_LIBRARY_PATH
6497 echo "$ac_t""$dynamic_linker" 1>&6
6498 test "$dynamic_linker" = no && can_build_shared=no
6500 # Report the final consequences.
6501 echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6
6502 echo "configure:6503: checking if libtool supports shared libraries" >&5
6503 echo "$ac_t""$can_build_shared" 1>&6
6505 echo $ac_n "checking whether to build shared libraries""... $ac_c" 1>&6
6506 echo "configure:6507: checking whether to build shared libraries" >&5
6507 test "$can_build_shared" = "no" && enable_shared=no
6509 # On AIX, shared libraries and static libraries use the same namespace, and
6510 # are all built from PIC.
6513 test "$enable_shared" = yes && enable_static=no
6514 if test -n "$RANLIB"; then
6515 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6516 postinstall_cmds='$RANLIB $lib'
6521 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6522 test "$enable_shared" = yes && enable_static=no
6526 echo "$ac_t""$enable_shared" 1>&6
6528 echo $ac_n "checking whether to build static libraries""... $ac_c" 1>&6
6529 echo "configure:6530: checking whether to build static libraries" >&5
6530 # Make sure either enable_shared or enable_static is yes.
6531 test "$enable_shared" = yes || enable_static=yes
6532 echo "$ac_t""$enable_static" 1>&6
6534 if test "$hardcode_action" = relink; then
6535 # Fast installation is not supported
6536 enable_fast_install=no
6537 elif test "$shlibpath_overrides_runpath" = yes ||
6538 test "$enable_shared" = no; then
6539 # Fast installation is not necessary
6540 enable_fast_install=needless
6543 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6544 if test "$GCC" = yes; then
6545 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6548 if test "x$enable_dlopen" != xyes; then
6549 enable_dlopen=unknown
6550 enable_dlopen_self=unknown
6551 enable_dlopen_self_static=unknown
6558 lt_cv_dlopen="load_add_on"
6560 lt_cv_dlopen_self=yes
6563 cygwin* | mingw* | pw32*)
6564 lt_cv_dlopen="LoadLibrary"
6569 echo $ac_n "checking for dllload""... $ac_c" 1>&6
6570 echo "configure:6571: checking for dllload" >&5
6571 if eval "test \"\${ac_cv_func_dllload+set}\" = set"; then
6572 echo $ac_n "(cached) $ac_c" 1>&6
6574 cat > conftest.$ac_ext <<EOF
6575 #line 6576 "configure"
6576 #include "confdefs.h"
6577 /* System header to define __stub macros and hopefully few prototypes,
6578 which can conflict with char dllload(); below. */
6580 /* Override any gcc2 internal prototype to avoid an error. */
6581 /* We use char because int might match the return type of a gcc2
6582 builtin and then its argument prototype would still apply. */
6588 /* The GNU C library defines this for functions which it implements
6589 to always fail with ENOSYS. Some functions are actually named
6590 something starting with __ and the normal name is an alias. */
6591 #if defined (__stub_dllload) || defined (__stub___dllload)
6599 if { (eval echo configure:6600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6601 eval "ac_cv_func_dllload=yes"
6603 echo "configure: failed program was:" >&5
6604 cat conftest.$ac_ext >&5
6606 eval "ac_cv_func_dllload=no"
6611 if eval "test \"`echo '$ac_cv_func_'dllload`\" = yes"; then
6612 echo "$ac_t""yes" 1>&6
6613 lt_cv_dlopen="dllload"
6615 echo "$ac_t""no" 1>&6
6616 echo $ac_n "checking for shl_load""... $ac_c" 1>&6
6617 echo "configure:6618: checking for shl_load" >&5
6618 if eval "test \"\${ac_cv_func_shl_load+set}\" = set"; then
6619 echo $ac_n "(cached) $ac_c" 1>&6
6621 cat > conftest.$ac_ext <<EOF
6622 #line 6623 "configure"
6623 #include "confdefs.h"
6624 /* System header to define __stub macros and hopefully few prototypes,
6625 which can conflict with char shl_load(); below. */
6627 /* Override any gcc2 internal prototype to avoid an error. */
6628 /* We use char because int might match the return type of a gcc2
6629 builtin and then its argument prototype would still apply. */
6635 /* The GNU C library defines this for functions which it implements
6636 to always fail with ENOSYS. Some functions are actually named
6637 something starting with __ and the normal name is an alias. */
6638 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6646 if { (eval echo configure:6647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6648 eval "ac_cv_func_shl_load=yes"
6650 echo "configure: failed program was:" >&5
6651 cat conftest.$ac_ext >&5
6653 eval "ac_cv_func_shl_load=no"
6658 if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
6659 echo "$ac_t""yes" 1>&6
6660 lt_cv_dlopen="shl_load"
6662 echo "$ac_t""no" 1>&6
6663 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
6664 echo "configure:6665: checking for shl_load in -ldld" >&5
6665 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-:%__p__%'`
6666 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6667 echo $ac_n "(cached) $ac_c" 1>&6
6669 ac_save_LIBS="$LIBS"
6671 cat > conftest.$ac_ext <<EOF
6672 #line 6673 "configure"
6673 #include "confdefs.h"
6674 /* Override any gcc2 internal prototype to avoid an error. */
6675 /* We use char because int might match the return type of a gcc2
6676 builtin and then its argument prototype would still apply. */
6683 if { (eval echo configure:6684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6685 eval "ac_cv_lib_$ac_lib_var=yes"
6687 echo "configure: failed program was:" >&5
6688 cat conftest.$ac_ext >&5
6690 eval "ac_cv_lib_$ac_lib_var=no"
6693 LIBS="$ac_save_LIBS"
6696 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6697 echo "$ac_t""yes" 1>&6
6698 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6700 echo "$ac_t""no" 1>&6
6701 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
6702 echo "configure:6703: checking for dlopen" >&5
6703 if eval "test \"\${ac_cv_func_dlopen+set}\" = set"; then
6704 echo $ac_n "(cached) $ac_c" 1>&6
6706 cat > conftest.$ac_ext <<EOF
6707 #line 6708 "configure"
6708 #include "confdefs.h"
6709 /* System header to define __stub macros and hopefully few prototypes,
6710 which can conflict with char dlopen(); below. */
6712 /* Override any gcc2 internal prototype to avoid an error. */
6713 /* We use char because int might match the return type of a gcc2
6714 builtin and then its argument prototype would still apply. */
6720 /* The GNU C library defines this for functions which it implements
6721 to always fail with ENOSYS. Some functions are actually named
6722 something starting with __ and the normal name is an alias. */
6723 #if defined (__stub_dlopen) || defined (__stub___dlopen)
6731 if { (eval echo configure:6732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6733 eval "ac_cv_func_dlopen=yes"
6735 echo "configure: failed program was:" >&5
6736 cat conftest.$ac_ext >&5
6738 eval "ac_cv_func_dlopen=no"
6743 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
6744 echo "$ac_t""yes" 1>&6
6745 lt_cv_dlopen="dlopen"
6747 echo "$ac_t""no" 1>&6
6748 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
6749 echo "configure:6750: checking for dlopen in -ldl" >&5
6750 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-:%__p__%'`
6751 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6752 echo $ac_n "(cached) $ac_c" 1>&6
6754 ac_save_LIBS="$LIBS"
6756 cat > conftest.$ac_ext <<EOF
6757 #line 6758 "configure"
6758 #include "confdefs.h"
6759 /* Override any gcc2 internal prototype to avoid an error. */
6760 /* We use char because int might match the return type of a gcc2
6761 builtin and then its argument prototype would still apply. */
6768 if { (eval echo configure:6769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6770 eval "ac_cv_lib_$ac_lib_var=yes"
6772 echo "configure: failed program was:" >&5
6773 cat conftest.$ac_ext >&5
6775 eval "ac_cv_lib_$ac_lib_var=no"
6778 LIBS="$ac_save_LIBS"
6781 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6782 echo "$ac_t""yes" 1>&6
6783 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6785 echo "$ac_t""no" 1>&6
6786 echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
6787 echo "configure:6788: checking for dlopen in -lsvld" >&5
6788 ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-:%__p__%'`
6789 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6790 echo $ac_n "(cached) $ac_c" 1>&6
6792 ac_save_LIBS="$LIBS"
6794 cat > conftest.$ac_ext <<EOF
6795 #line 6796 "configure"
6796 #include "confdefs.h"
6797 /* Override any gcc2 internal prototype to avoid an error. */
6798 /* We use char because int might match the return type of a gcc2
6799 builtin and then its argument prototype would still apply. */
6806 if { (eval echo configure:6807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6808 eval "ac_cv_lib_$ac_lib_var=yes"
6810 echo "configure: failed program was:" >&5
6811 cat conftest.$ac_ext >&5
6813 eval "ac_cv_lib_$ac_lib_var=no"
6816 LIBS="$ac_save_LIBS"
6819 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6820 echo "$ac_t""yes" 1>&6
6821 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6823 echo "$ac_t""no" 1>&6
6824 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
6825 echo "configure:6826: checking for dld_link in -ldld" >&5
6826 ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-:%__p__%'`
6827 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6828 echo $ac_n "(cached) $ac_c" 1>&6
6830 ac_save_LIBS="$LIBS"
6832 cat > conftest.$ac_ext <<EOF
6833 #line 6834 "configure"
6834 #include "confdefs.h"
6835 /* Override any gcc2 internal prototype to avoid an error. */
6836 /* We use char because int might match the return type of a gcc2
6837 builtin and then its argument prototype would still apply. */
6844 if { (eval echo configure:6845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6846 eval "ac_cv_lib_$ac_lib_var=yes"
6848 echo "configure: failed program was:" >&5
6849 cat conftest.$ac_ext >&5
6851 eval "ac_cv_lib_$ac_lib_var=no"
6854 LIBS="$ac_save_LIBS"
6857 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6858 echo "$ac_t""yes" 1>&6
6859 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6861 echo "$ac_t""no" 1>&6
6885 if test "x$lt_cv_dlopen" != xno; then
6891 case $lt_cv_dlopen in
6893 save_CPPFLAGS="$CPPFLAGS"
6894 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6896 save_LDFLAGS="$LDFLAGS"
6897 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6900 LIBS="$lt_cv_dlopen_libs $LIBS"
6902 echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
6903 echo "configure:6904: checking whether a program can dlopen itself" >&5
6904 if eval "test \"\${lt_cv_dlopen_self+set}\" = set"; then
6905 echo $ac_n "(cached) $ac_c" 1>&6
6907 if test "$cross_compiling" = yes; then :
6908 lt_cv_dlopen_self=cross
6910 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6911 lt_status=$lt_dlunknown
6912 cat > conftest.$ac_ext <<EOF
6913 #line 6914 "configure"
6914 #include "confdefs.h"
6923 # define LT_DLGLOBAL RTLD_GLOBAL
6926 # define LT_DLGLOBAL DL_GLOBAL
6928 # define LT_DLGLOBAL 0
6932 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6933 find out it does not work in some platform. */
6934 #ifndef LT_DLLAZY_OR_NOW
6936 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6939 # define LT_DLLAZY_OR_NOW DL_LAZY
6942 # define LT_DLLAZY_OR_NOW RTLD_NOW
6945 # define LT_DLLAZY_OR_NOW DL_NOW
6947 # define LT_DLLAZY_OR_NOW 0
6955 extern "C" void exit (int);
6958 void fnord() { int i=42;}
6961 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6962 int status = $lt_dlunknown;
6966 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6967 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6968 /* dlclose (self); */
6974 if { (eval echo configure:6975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
6975 (./conftest; exit; ) 2>/dev/null
6978 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
6979 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
6980 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
6983 # compilation failed
6984 lt_cv_dlopen_self=no
6992 echo "$ac_t""$lt_cv_dlopen_self" 1>&6
6994 if test "x$lt_cv_dlopen_self" = xyes; then
6995 LDFLAGS="$LDFLAGS $link_static_flag"
6996 echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
6997 echo "configure:6998: checking whether a statically linked program can dlopen itself" >&5
6998 if eval "test \"\${lt_cv_dlopen_self_static+set}\" = set"; then
6999 echo $ac_n "(cached) $ac_c" 1>&6
7001 if test "$cross_compiling" = yes; then :
7002 lt_cv_dlopen_self_static=cross
7004 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7005 lt_status=$lt_dlunknown
7006 cat > conftest.$ac_ext <<EOF
7007 #line 7008 "configure"
7008 #include "confdefs.h"
7017 # define LT_DLGLOBAL RTLD_GLOBAL
7020 # define LT_DLGLOBAL DL_GLOBAL
7022 # define LT_DLGLOBAL 0
7026 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7027 find out it does not work in some platform. */
7028 #ifndef LT_DLLAZY_OR_NOW
7030 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7033 # define LT_DLLAZY_OR_NOW DL_LAZY
7036 # define LT_DLLAZY_OR_NOW RTLD_NOW
7039 # define LT_DLLAZY_OR_NOW DL_NOW
7041 # define LT_DLLAZY_OR_NOW 0
7049 extern "C" void exit (int);
7052 void fnord() { int i=42;}
7055 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7056 int status = $lt_dlunknown;
7060 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7061 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7062 /* dlclose (self); */
7068 if { (eval echo configure:7069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
7069 (./conftest; exit; ) 2>/dev/null
7072 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7073 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7074 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7077 # compilation failed
7078 lt_cv_dlopen_self_static=no
7086 echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6
7089 CPPFLAGS="$save_CPPFLAGS"
7090 LDFLAGS="$save_LDFLAGS"
7095 case $lt_cv_dlopen_self in
7096 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7097 *) enable_dlopen_self=unknown ;;
7100 case $lt_cv_dlopen_self_static in
7101 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7102 *) enable_dlopen_self_static=unknown ;;
7107 if test "$enable_shared" = yes && test "$GCC" = yes; then
7108 case $archive_cmds in
7110 # FIXME: we may have to deal with multi-command sequences.
7113 # Test whether the compiler implicitly links with -lc since on some
7114 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7115 # to ld, don't add -lc before -lgcc.
7116 echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6
7117 echo "configure:7118: checking whether -lc should be explicitly linked in" >&5
7118 if eval "test \"\${lt_cv_archive_cmds_need_lc+set}\" = set"; then
7119 echo $ac_n "(cached) $ac_c" 1>&6
7122 echo 'static int dummy;' > conftest.$ac_ext
7124 if { (eval echo configure:7125: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7127 libobjs=conftest.$ac_objext
7129 wl=$lt_cv_prog_cc_wl
7135 save_allow_undefined_flag=$allow_undefined_flag
7136 allow_undefined_flag=
7137 if { (eval echo configure:7138: \"$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; }
7139 lt_cv_archive_cmds_need_lc=no
7141 lt_cv_archive_cmds_need_lc=yes
7143 allow_undefined_flag=$save_allow_undefined_flag
7145 cat conftest.err 1>&5
7149 echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6
7153 need_lc=${lt_cv_archive_cmds_need_lc-yes}
7155 # The second clause should only fire when bootstrapping the
7156 # libtool distribution, otherwise you forgot to ship ltmain.sh
7157 # with your package, and you will get complaints that there are
7158 # no rules to generate ltmain.sh.
7159 if test -f "$ltmain"; then
7162 # If there is no Makefile yet, we rely on a make rule to execute
7163 # `config.status --recheck' to rerun these tests and create the
7164 # libtool script then.
7165 test -f Makefile && make "$ltmain"
7168 if test -f "$ltmain"; then
7169 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7172 echo creating $ofile
7174 # Now quote all the things that may contain metacharacters while being
7175 # careful not to overquote the AC_SUBSTed values. We take copies of the
7176 # variables and quote the copies for generation of the libtool script.
7177 for var in echo old_CC old_CFLAGS SED \
7178 AR AR_FLAGS CC LD LN_S NM SHELL \
7179 reload_flag reload_cmds wl \
7180 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7181 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7182 library_names_spec soname_spec \
7183 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7184 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7185 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7186 old_striplib striplib file_magic_cmd export_symbols_cmds \
7187 deplibs_check_method allow_undefined_flag no_undefined_flag \
7188 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7189 global_symbol_to_c_name_address \
7190 hardcode_libdir_flag_spec hardcode_libdir_separator \
7191 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7192 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7195 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7196 old_postinstall_cmds | old_postuninstall_cmds | \
7197 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7198 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7199 postinstall_cmds | postuninstall_cmds | \
7200 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7201 # Double-quote double-evaled strings.
7202 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7205 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7210 cat <<__EOF__ > "${ofile}T"
7213 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7214 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7215 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7217 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7218 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7220 # This program is free software; you can redistribute it and/or modify
7221 # it under the terms of the GNU General Public License as published by
7222 # the Free Software Foundation; either version 2 of the License, or
7223 # (at your option) any later version.
7225 # This program is distributed in the hope that it will be useful, but
7226 # WITHOUT ANY WARRANTY; without even the implied warranty of
7227 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7228 # General Public License for more details.
7230 # You should have received a copy of the GNU General Public License
7231 # along with this program; if not, write to the Free Software
7232 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7234 # As a special exception to the GNU General Public License, if you
7235 # distribute this file as part of a program that contains a
7236 # configuration script generated by Autoconf, you may include it under
7237 # the same distribution terms that you use for the rest of that program.
7239 # A sed that does not truncate output.
7242 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7243 Xsed="${SED} -e s/^X//"
7245 # The HP-UX ksh and POSIX shell print the target directory to stdout
7247 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7249 # ### BEGIN LIBTOOL CONFIG
7251 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7253 # Shell to use when invoking shell scripts.
7256 # Whether or not to build shared libraries.
7257 build_libtool_libs=$enable_shared
7259 # Whether or not to build static libraries.
7260 build_old_libs=$enable_static
7262 # Whether or not to add -lc for building shared libraries.
7263 build_libtool_need_lc=$need_lc
7265 # Whether or not to optimize for fast installation.
7266 fast_install=$enable_fast_install
7269 host_alias=$host_alias
7272 # An echo program that does not interpret backslashes.
7277 AR_FLAGS=$lt_AR_FLAGS
7279 # The default C compiler.
7282 # Is the compiler the GNU C compiler?
7285 # The linker used to build libraries.
7288 # Whether we need hard or soft links.
7291 # A BSD-compatible nm program.
7294 # A symbol stripping program
7297 # Used to examine libraries when file_magic_cmd begins "file"
7298 MAGIC_CMD=$MAGIC_CMD
7300 # Used on cygwin: DLL creation program.
7303 # Used on cygwin: object dumper.
7306 # Used on cygwin: assembler.
7309 # The name of the directory that contains temporary libtool files.
7312 # How to create reloadable object files.
7313 reload_flag=$lt_reload_flag
7314 reload_cmds=$lt_reload_cmds
7316 # How to pass a linker flag through the compiler.
7319 # Object file suffix (normally "o").
7322 # Old archive suffix (normally "a").
7325 # Executable file suffix (normally "").
7328 # Additional compiler flags for building library objects.
7329 pic_flag=$lt_pic_flag
7332 # Does compiler simultaneously support -c and -o options?
7333 compiler_c_o=$lt_compiler_c_o
7335 # Can we write directly to a .lo ?
7336 compiler_o_lo=$lt_compiler_o_lo
7338 # Must we lock files when doing compilation ?
7339 need_locks=$lt_need_locks
7341 # Do we need the lib prefix for modules?
7342 need_lib_prefix=$need_lib_prefix
7344 # Do we need a version for libraries?
7345 need_version=$need_version
7347 # Whether dlopen is supported.
7348 dlopen_support=$enable_dlopen
7350 # Whether dlopen of programs is supported.
7351 dlopen_self=$enable_dlopen_self
7353 # Whether dlopen of statically linked programs is supported.
7354 dlopen_self_static=$enable_dlopen_self_static
7356 # Compiler flag to prevent dynamic linking.
7357 link_static_flag=$lt_link_static_flag
7359 # Compiler flag to turn off builtin functions.
7360 no_builtin_flag=$lt_no_builtin_flag
7362 # Compiler flag to allow reflexive dlopens.
7363 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7365 # Compiler flag to generate shared objects directly from archives.
7366 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7368 # Compiler flag to generate thread-safe objects.
7369 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7371 # Library versioning type.
7372 version_type=$version_type
7374 # Format of library name prefix.
7375 libname_spec=$lt_libname_spec
7377 # List of archive names. First name is the real one, the rest are links.
7378 # The last name is the one that the linker finds with -lNAME.
7379 library_names_spec=$lt_library_names_spec
7381 # The coded name of the library, if different from the real name.
7382 soname_spec=$lt_soname_spec
7384 # Commands used to build and install an old-style archive.
7386 old_archive_cmds=$lt_old_archive_cmds
7387 old_postinstall_cmds=$lt_old_postinstall_cmds
7388 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7390 # Create an old-style archive from a shared archive.
7391 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7393 # Create a temporary old-style archive to link instead of a shared archive.
7394 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7396 # Commands used to build and install a shared archive.
7397 archive_cmds=$lt_archive_cmds
7398 archive_expsym_cmds=$lt_archive_expsym_cmds
7399 postinstall_cmds=$lt_postinstall_cmds
7400 postuninstall_cmds=$lt_postuninstall_cmds
7402 # Commands to strip libraries.
7403 old_striplib=$lt_old_striplib
7404 striplib=$lt_striplib
7406 # Method to check whether dependent libraries are shared objects.
7407 deplibs_check_method=$lt_deplibs_check_method
7409 # Command to use when deplibs_check_method == file_magic.
7410 file_magic_cmd=$lt_file_magic_cmd
7412 # Flag that allows shared libraries with undefined symbols to be built.
7413 allow_undefined_flag=$lt_allow_undefined_flag
7415 # Flag that forces no undefined symbols.
7416 no_undefined_flag=$lt_no_undefined_flag
7418 # Commands used to finish a libtool library installation in a directory.
7419 finish_cmds=$lt_finish_cmds
7421 # Same as above, but a single script fragment to be evaled but not shown.
7422 finish_eval=$lt_finish_eval
7424 # Take the output of nm and produce a listing of raw symbols and C names.
7425 global_symbol_pipe=$lt_global_symbol_pipe
7427 # Transform the output of nm in a proper C declaration
7428 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7430 # Transform the output of nm in a C name address pair
7431 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7433 # This is the shared library runtime path variable.
7434 runpath_var=$runpath_var
7436 # This is the shared library path variable.
7437 shlibpath_var=$shlibpath_var
7439 # Is shlibpath searched before the hard-coded library search path?
7440 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7442 # How to hardcode a shared library path into an executable.
7443 hardcode_action=$hardcode_action
7445 # Whether we should hardcode library paths into libraries.
7446 hardcode_into_libs=$hardcode_into_libs
7448 # Flag to hardcode \$libdir into a binary during linking.
7449 # This must work even if \$libdir does not exist.
7450 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7452 # Whether we need a single -rpath flag with a separated argument.
7453 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7455 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7457 hardcode_direct=$hardcode_direct
7459 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7461 hardcode_minus_L=$hardcode_minus_L
7463 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7464 # the resulting binary.
7465 hardcode_shlibpath_var=$hardcode_shlibpath_var
7467 # Variables whose values should be saved in libtool wrapper scripts and
7468 # restored at relink time.
7469 variables_saved_for_relink="$variables_saved_for_relink"
7471 # Whether libtool must link a program against all its dependency libraries.
7472 link_all_deplibs=$link_all_deplibs
7474 # Compile-time system search path for libraries
7475 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7477 # Run-time system search path for libraries
7478 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7480 # Fix the shell variable \$srcfile for the compiler.
7481 fix_srcfile_path="$fix_srcfile_path"
7483 # Set to yes if exported symbols are required.
7484 always_export_symbols=$always_export_symbols
7486 # The commands to list exported symbols.
7487 export_symbols_cmds=$lt_export_symbols_cmds
7489 # The commands to extract the exported symbol list from a shared archive.
7490 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7492 # Symbols that should not be listed in the preloaded symbols.
7493 exclude_expsyms=$lt_exclude_expsyms
7495 # Symbols that must always be exported.
7496 include_expsyms=$lt_include_expsyms
7498 # ### END LIBTOOL CONFIG
7504 cat <<\EOF >> "${ofile}T"
7506 # AIX sometimes has problems with the GCC collect2 program. For some
7507 # reason, if we set the COLLECT_NAMES environment variable, the problems
7508 # vanish in a puff of smoke.
7509 if test "X${COLLECT_NAMES+set}" != Xset; then
7511 export COLLECT_NAMES
7518 cygwin* | mingw* | pw32* | os2*)
7519 cat <<'EOF' >> "${ofile}T"
7520 # This is a source program that is used to create dlls on Windows
7521 # Don't remove nor modify the starting and closing comments
7522 # /* ltdll.c starts here */
7523 # #define WIN32_LEAN_AND_MEAN
7524 # #include <windows.h>
7525 # #undef WIN32_LEAN_AND_MEAN
7526 # #include <stdio.h>
7528 # #ifndef __CYGWIN__
7529 # # ifdef __CYGWIN32__
7530 # # define __CYGWIN__ __CYGWIN32__
7534 # #ifdef __cplusplus
7537 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7538 # #ifdef __cplusplus
7543 # #include <cygwin/cygwin_dll.h>
7544 # DECLARE_CYGWIN_DLL( DllMain );
7546 # HINSTANCE __hDllInstance_base;
7549 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7551 # __hDllInstance_base = hInst;
7554 # /* ltdll.c ends here */
7555 # This is a source program that is used to create import libraries
7556 # on Windows for dlls which lack them. Don't remove nor modify the
7557 # starting and closing comments
7558 # /* impgen.c starts here */
7559 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7561 # This file is part of GNU libtool.
7563 # This program is free software; you can redistribute it and/or modify
7564 # it under the terms of the GNU General Public License as published by
7565 # the Free Software Foundation; either version 2 of the License, or
7566 # (at your option) any later version.
7568 # This program is distributed in the hope that it will be useful,
7569 # but WITHOUT ANY WARRANTY; without even the implied warranty of
7570 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7571 # GNU General Public License for more details.
7573 # You should have received a copy of the GNU General Public License
7574 # along with this program; if not, write to the Free Software
7575 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7578 # #include <stdio.h> /* for printf() */
7579 # #include <unistd.h> /* for open(), lseek(), read() */
7580 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7581 # #include <string.h> /* for strdup() */
7583 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
7585 # #define O_BINARY 0
7588 # static unsigned int
7589 # pe_get16 (fd, offset)
7593 # unsigned char b[2];
7594 # lseek (fd, offset, SEEK_SET);
7596 # return b[0] + (b[1]<<8);
7599 # static unsigned int
7600 # pe_get32 (fd, offset)
7604 # unsigned char b[4];
7605 # lseek (fd, offset, SEEK_SET);
7607 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7610 # static unsigned int
7614 # unsigned char *b = ptr;
7615 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7624 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7625 # unsigned long export_rva, export_size, nsections, secptr, expptr;
7626 # unsigned long name_rvas, nexp;
7627 # unsigned char *expdata, *erva;
7628 # char *filename, *dll_name;
7630 # filename = argv[1];
7632 # dll = open(filename, O_RDONLY|O_BINARY);
7636 # dll_name = filename;
7638 # for (i=0; filename[i]; i++)
7639 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7640 # dll_name = filename + i +1;
7642 # pe_header_offset = pe_get32 (dll, 0x3c);
7643 # opthdr_ofs = pe_header_offset + 4 + 20;
7644 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
7646 # if (num_entries < 1) /* no exports */
7649 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
7650 # export_size = pe_get32 (dll, opthdr_ofs + 100);
7651 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7652 # secptr = (pe_header_offset + 4 + 20 +
7653 # pe_get16 (dll, pe_header_offset + 4 + 16));
7656 # for (i = 0; i < nsections; i++)
7659 # unsigned long secptr1 = secptr + 40 * i;
7660 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7661 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7662 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7663 # lseek(dll, secptr1, SEEK_SET);
7664 # read(dll, sname, 8);
7665 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
7667 # expptr = fptr + (export_rva - vaddr);
7668 # if (export_rva + export_size > vaddr + vsize)
7669 # export_size = vsize - (export_rva - vaddr);
7674 # expdata = (unsigned char*)malloc(export_size);
7675 # lseek (dll, expptr, SEEK_SET);
7676 # read (dll, expdata, export_size);
7677 # erva = expdata - export_rva;
7679 # nexp = pe_as32 (expdata+24);
7680 # name_rvas = pe_as32 (expdata+32);
7682 # printf ("EXPORTS\n");
7683 # for (i = 0; i<nexp; i++)
7685 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7686 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7691 # /* impgen.c ends here */
7697 # We use sed instead of cat because bash on DJGPP gets confused if
7698 # if finds mixed CR/LF and LF-only lines. Since sed operates in
7699 # text mode, it properly converts lines to CR/LF. This bash problem
7700 # is reportedly fixed, but why not run on old versions too?
7701 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7703 mv -f "${ofile}T" "$ofile" || \
7704 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7712 # This can be used to rebuild libtool when needed
7713 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7715 # Always use our own libtool.
7716 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7718 # Prevent multiple expansion
7723 if test $ol_enable_perl != no ; then
7724 # Extract the first word of "perl", so it can be a program name with args.
7725 set dummy perl; ac_word=$2
7726 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7727 echo "configure:7728: checking for $ac_word" >&5
7728 if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then
7729 echo $ac_n "(cached) $ac_c" 1>&6
7733 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
7736 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
7739 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7741 for ac_dir in $ac_dummy; do
7742 test -z "$ac_dir" && ac_dir=.
7743 if test -f $ac_dir/$ac_word; then
7744 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
7749 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
7753 PERLBIN="$ac_cv_path_PERLBIN"
7754 if test -n "$PERLBIN"; then
7755 echo "$ac_t""$PERLBIN" 1>&6
7757 echo "$ac_t""no" 1>&6
7761 if test "no$PERLBIN" = "no" ; then
7762 if test $ol_enable_perl = yes ; then
7763 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
7767 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
7768 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
7770 if test x"$ol_enable_perl" = "xyes" ; then
7771 SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
7773 MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
7779 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
7780 echo "configure:7781: checking how to run the C preprocessor" >&5
7781 # On Suns, sometimes $CPP names a directory.
7782 if test -n "$CPP" && test -d "$CPP"; then
7785 if test -z "$CPP"; then
7786 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
7787 echo $ac_n "(cached) $ac_c" 1>&6
7789 # This must be in double quotes, not single quotes, because CPP may get
7790 # substituted into the Makefile and "${CC-cc}" will confuse make.
7792 # On the NeXT, cc -E runs the code through the compiler's parser,
7793 # not just through cpp.
7794 cat > conftest.$ac_ext <<EOF
7795 #line 7796 "configure"
7796 #include "confdefs.h"
7800 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7801 { (eval echo configure:7802: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7802 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7803 if test -z "$ac_err"; then
7807 echo "configure: failed program was:" >&5
7808 cat conftest.$ac_ext >&5
7810 CPP="${CC-cc} -E -traditional-cpp"
7811 cat > conftest.$ac_ext <<EOF
7812 #line 7813 "configure"
7813 #include "confdefs.h"
7817 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7818 { (eval echo configure:7819: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7819 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7820 if test -z "$ac_err"; then
7824 echo "configure: failed program was:" >&5
7825 cat conftest.$ac_ext >&5
7827 CPP="${CC-cc} -nologo -E"
7828 cat > conftest.$ac_ext <<EOF
7829 #line 7830 "configure"
7830 #include "confdefs.h"
7834 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7835 { (eval echo configure:7836: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7836 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7837 if test -z "$ac_err"; then
7841 echo "configure: failed program was:" >&5
7842 cat conftest.$ac_ext >&5
7851 ac_cv_prog_CPP="$CPP"
7853 CPP="$ac_cv_prog_CPP"
7855 ac_cv_prog_CPP="$CPP"
7857 echo "$ac_t""$CPP" 1>&6
7861 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
7862 echo "configure:7863: checking for Cygwin environment" >&5
7863 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
7864 echo $ac_n "(cached) $ac_c" 1>&6
7866 cat > conftest.$ac_ext <<EOF
7867 #line 7868 "configure"
7868 #include "confdefs.h"
7873 #define __CYGWIN__ __CYGWIN32__
7878 if { (eval echo configure:7879: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7882 echo "configure: failed program was:" >&5
7883 cat conftest.$ac_ext >&5
7890 echo "$ac_t""$ac_cv_cygwin" 1>&6
7892 test "$ac_cv_cygwin" = yes && CYGWIN=yes
7893 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
7894 echo "configure:7895: checking for mingw32 environment" >&5
7895 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
7896 echo $ac_n "(cached) $ac_c" 1>&6
7898 cat > conftest.$ac_ext <<EOF
7899 #line 7900 "configure"
7900 #include "confdefs.h"
7906 if { (eval echo configure:7907: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7910 echo "configure: failed program was:" >&5
7911 cat conftest.$ac_ext >&5
7918 echo "$ac_t""$ac_cv_mingw32" 1>&6
7920 test "$ac_cv_mingw32" = yes && MINGW32=yes
7924 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
7925 echo "configure:7926: checking for executable suffix" >&5
7926 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
7927 echo $ac_n "(cached) $ac_c" 1>&6
7929 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
7933 echo 'int main () { return 0; }' > conftest.$ac_ext
7935 if { (eval echo configure:7936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
7936 for file in conftest.*; do
7938 *.c | *.C | *.o | *.obj | *.xcoff) ;;
7939 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
7943 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
7946 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
7951 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
7952 echo "$ac_t""${ac_cv_exeext}" 1>&6
7955 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
7956 echo "configure:7957: checking for object suffix" >&5
7957 if eval "test \"\${ac_cv_objext+set}\" = set"; then
7958 echo $ac_n "(cached) $ac_c" 1>&6
7961 echo 'int i = 1;' > conftest.$ac_ext
7962 if { (eval echo configure:7963: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7963 for ac_file in conftest.*; do
7966 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
7970 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
7975 echo "$ac_t""$ac_cv_objext" 1>&6
7976 OBJEXT=$ac_cv_objext
7977 ac_objext=$ac_cv_objext
7980 cat >> confdefs.h <<EOF
7981 #define EXEEXT "${EXEEXT}"
7985 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
7986 echo "configure:7987: checking for be_app in -lbe" >&5
7987 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
7988 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
7989 echo $ac_n "(cached) $ac_c" 1>&6
7991 ac_save_LIBS="$LIBS"
7992 LIBS="-lbe -lroot -lnet $LIBS"
7993 cat > conftest.$ac_ext <<EOF
7994 #line 7995 "configure"
7995 #include "confdefs.h"
7996 /* Override any gcc2 internal prototype to avoid an error. */
7997 /* We use char because int might match the return type of a gcc2
7998 builtin and then its argument prototype would still apply. */
8005 if { (eval echo configure:8006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8007 eval "ac_cv_lib_$ac_lib_var=yes"
8009 echo "configure: failed program was:" >&5
8010 cat conftest.$ac_ext >&5
8012 eval "ac_cv_lib_$ac_lib_var=no"
8015 LIBS="$ac_save_LIBS"
8018 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8019 echo "$ac_t""yes" 1>&6
8020 LIBS="$LIBS -lbe -lroot -lnet"
8022 echo "$ac_t""no" 1>&6
8030 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
8031 echo "configure:8032: checking for ${CC-cc} option to accept ANSI C" >&5
8032 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
8033 echo $ac_n "(cached) $ac_c" 1>&6
8035 am_cv_prog_cc_stdc=no
8037 # Don't try gcc -ansi; that turns off useful extensions and
8038 # breaks some systems' header files.
8039 # AIX -qlanglvl=ansi
8040 # Ultrix and OSF/1 -std1
8041 # HP-UX 10.20 and later -Ae
8042 # HP-UX older versions -Aa -D_HPUX_SOURCE
8043 # SVR4 -Xc -D__EXTENSIONS__
8044 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
8046 CC="$ac_save_CC $ac_arg"
8047 cat > conftest.$ac_ext <<EOF
8048 #line 8049 "configure"
8049 #include "confdefs.h"
8052 #include <sys/types.h>
8053 #include <sys/stat.h>
8054 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
8055 struct buf { int x; };
8056 FILE * (*rcsopen) (struct buf *, struct stat *, int);
8057 static char *e (p, i)
8063 static char *f (char * (*g) (char **, int), char **p, ...)
8068 s = g (p, va_arg (v,int));
8072 int test (int i, double x);
8073 struct s1 {int (*f) (int a);};
8074 struct s2 {int (*f) (double a);};
8075 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
8081 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
8085 if { (eval echo configure:8086: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8087 am_cv_prog_cc_stdc="$ac_arg"; break
8089 echo "configure: failed program was:" >&5
8090 cat conftest.$ac_ext >&5
8098 if test -z "$am_cv_prog_cc_stdc"; then
8099 echo "$ac_t""none needed" 1>&6
8101 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
8103 case "x$am_cv_prog_cc_stdc" in
8105 *) CC="$CC $am_cv_prog_cc_stdc" ;;
8108 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
8109 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
8112 # test for make depend flag
8115 if test -z "${MKDEP}"; then
8117 if test -z "${MKDEP_FLAGS}"; then
8118 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
8119 echo "configure:8120: checking for ${OL_MKDEP} depend flag" >&5
8120 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
8121 echo $ac_n "(cached) $ac_c" 1>&6
8125 for flag in "-M" "-xM"; do
8126 cat > conftest.c <<EOF
8129 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:8130: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
8130 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
8132 if test ! -f conftest."${ac_object}" ; then
8134 OL_MKDEP_FLAGS="$flag"
8143 echo "$ac_t""$ol_cv_mkdep" 1>&6
8146 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
8151 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
8156 if test "${ol_cv_mkdep}" = no ; then
8157 # this will soon become an error
8158 echo "configure: warning: do not know how to generate dependencies" 1>&2
8161 echo $ac_n "checking for afopen in -ls""... $ac_c" 1>&6
8162 echo "configure:8163: checking for afopen in -ls" >&5
8163 ac_lib_var=`echo s'_'afopen | sed 'y%./+-:%__p__%'`
8164 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8165 echo $ac_n "(cached) $ac_c" 1>&6
8167 ac_save_LIBS="$LIBS"
8169 cat > conftest.$ac_ext <<EOF
8170 #line 8171 "configure"
8171 #include "confdefs.h"
8172 /* Override any gcc2 internal prototype to avoid an error. */
8173 /* We use char because int might match the return type of a gcc2
8174 builtin and then its argument prototype would still apply. */
8181 if { (eval echo configure:8182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8183 eval "ac_cv_lib_$ac_lib_var=yes"
8185 echo "configure: failed program was:" >&5
8186 cat conftest.$ac_ext >&5
8188 eval "ac_cv_lib_$ac_lib_var=no"
8191 LIBS="$ac_save_LIBS"
8194 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8195 echo "$ac_t""yes" 1>&6
8198 cat >> confdefs.h <<\EOF
8199 #define HAVE_AIX_SECURITY 1
8204 echo "$ac_t""no" 1>&6
8210 ac_cv_func_getopt=no
8211 cat >> confdefs.h <<\EOF
8212 #define BOTH_STRINGS_H 1
8219 WITH_MODULES_ENABLED=no
8220 if test $ol_enable_modules != no ; then
8221 for ac_hdr in ltdl.h
8223 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8224 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8225 echo "configure:8226: checking for $ac_hdr" >&5
8226 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8227 echo $ac_n "(cached) $ac_c" 1>&6
8229 cat > conftest.$ac_ext <<EOF
8230 #line 8231 "configure"
8231 #include "confdefs.h"
8234 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8235 { (eval echo configure:8236: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8236 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8237 if test -z "$ac_err"; then
8239 eval "ac_cv_header_$ac_safe=yes"
8242 echo "configure: failed program was:" >&5
8243 cat conftest.$ac_ext >&5
8245 eval "ac_cv_header_$ac_safe=no"
8249 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8250 echo "$ac_t""yes" 1>&6
8251 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8252 cat >> confdefs.h <<EOF
8253 #define $ac_tr_hdr 1
8257 echo "$ac_t""no" 1>&6
8262 if test $ac_cv_header_ltdl_h = no ; then
8263 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
8266 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
8267 echo "configure:8268: checking for lt_dlinit in -lltdl" >&5
8268 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
8269 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8270 echo $ac_n "(cached) $ac_c" 1>&6
8272 ac_save_LIBS="$LIBS"
8274 cat > conftest.$ac_ext <<EOF
8275 #line 8276 "configure"
8276 #include "confdefs.h"
8277 /* Override any gcc2 internal prototype to avoid an error. */
8278 /* We use char because int might match the return type of a gcc2
8279 builtin and then its argument prototype would still apply. */
8286 if { (eval echo configure:8287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8288 eval "ac_cv_lib_$ac_lib_var=yes"
8290 echo "configure: failed program was:" >&5
8291 cat conftest.$ac_ext >&5
8293 eval "ac_cv_lib_$ac_lib_var=no"
8296 LIBS="$ac_save_LIBS"
8299 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8300 echo "$ac_t""yes" 1>&6
8303 cat >> confdefs.h <<\EOF
8304 #define HAVE_LIBLTDL 1
8309 echo "$ac_t""no" 1>&6
8313 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
8314 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
8317 WITH_MODULES_ENABLED=yes
8320 for i in $Backends; do
8321 eval "ol_tmp=\$ol_enable_$i"
8322 if test $ol_tmp = mod ; then
8323 echo "configure: warning: building static $i backend" 1>&2
8324 eval "ol_enable_$i=yes"
8327 for i in $Overlays; do
8328 eval "ol_tmp=\$ol_enable_$i"
8329 if test $ol_tmp = mod ; then
8330 echo "configure: warning: building static $i overlay" 1>&2
8331 eval "ol_enable_$i=yes"
8337 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
8338 echo "configure:8339: checking for EBCDIC" >&5
8339 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
8340 echo $ac_n "(cached) $ac_c" 1>&6
8343 cat > conftest.$ac_ext <<EOF
8344 #line 8345 "configure"
8345 #include "confdefs.h"
8348 #include <__ASCII__/generate_error.h>
8352 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8353 { (eval echo configure:8354: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8354 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8355 if test -z "$ac_err"; then
8357 ol_cv_cpp_ebcdic=yes
8360 echo "configure: failed program was:" >&5
8361 cat conftest.$ac_ext >&5
8368 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
8369 if test $ol_cv_cpp_ebcdic = yes ; then
8370 cat >> confdefs.h <<\EOF
8371 #define HAVE_EBCDIC 1
8376 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
8377 echo "configure:8378: checking for ANSI C header files" >&5
8378 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
8379 echo $ac_n "(cached) $ac_c" 1>&6
8381 cat > conftest.$ac_ext <<EOF
8382 #line 8383 "configure"
8383 #include "confdefs.h"
8389 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8390 { (eval echo configure:8391: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8391 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8392 if test -z "$ac_err"; then
8394 ol_cv_header_stdc=yes
8397 echo "configure: failed program was:" >&5
8398 cat conftest.$ac_ext >&5
8400 ol_cv_header_stdc=no
8404 if test $ol_cv_header_stdc = yes; then
8405 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8406 cat > conftest.$ac_ext <<EOF
8407 #line 8408 "configure"
8408 #include "confdefs.h"
8411 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8412 egrep "memchr" >/dev/null 2>&1; then
8416 ol_cv_header_stdc=no
8422 if test $ol_cv_header_stdc = yes; then
8423 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8424 cat > conftest.$ac_ext <<EOF
8425 #line 8426 "configure"
8426 #include "confdefs.h"
8429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8430 egrep "free" >/dev/null 2>&1; then
8434 ol_cv_header_stdc=no
8440 if test $ol_cv_header_stdc = yes; then
8441 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8442 if test "$cross_compiling" = yes; then
8445 cat > conftest.$ac_ext <<EOF
8446 #line 8447 "configure"
8447 #include "confdefs.h"
8450 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8451 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8453 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
8454 || ('j' <= (c) && (c) <= 'r') \
8455 || ('s' <= (c) && (c) <= 'z'))
8456 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8458 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8459 int main () { int i; for (i = 0; i < 256; i++)
8460 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
8464 if { (eval echo configure:8465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
8468 echo "configure: failed program was:" >&5
8469 cat conftest.$ac_ext >&5
8471 ol_cv_header_stdc=no
8479 echo "$ac_t""$ol_cv_header_stdc" 1>&6
8480 if test $ol_cv_header_stdc = yes; then
8481 cat >> confdefs.h <<\EOF
8482 #define STDC_HEADERS 1
8486 ac_cv_header_stdc=disable
8489 if test $ol_cv_header_stdc != yes; then
8490 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
8494 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
8496 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8497 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
8498 echo "configure:8499: checking for $ac_hdr that defines DIR" >&5
8499 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
8500 echo $ac_n "(cached) $ac_c" 1>&6
8502 cat > conftest.$ac_ext <<EOF
8503 #line 8504 "configure"
8504 #include "confdefs.h"
8505 #include <sys/types.h>
8511 if { (eval echo configure:8512: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8513 eval "ac_cv_header_dirent_$ac_safe=yes"
8515 echo "configure: failed program was:" >&5
8516 cat conftest.$ac_ext >&5
8518 eval "ac_cv_header_dirent_$ac_safe=no"
8522 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
8523 echo "$ac_t""yes" 1>&6
8524 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8525 cat >> confdefs.h <<EOF
8526 #define $ac_tr_hdr 1
8528 ac_header_dirent=$ac_hdr; break
8530 echo "$ac_t""no" 1>&6
8533 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8534 if test $ac_header_dirent = dirent.h; then
8535 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
8536 echo "configure:8537: checking for opendir in -ldir" >&5
8537 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
8538 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8539 echo $ac_n "(cached) $ac_c" 1>&6
8541 ac_save_LIBS="$LIBS"
8543 cat > conftest.$ac_ext <<EOF
8544 #line 8545 "configure"
8545 #include "confdefs.h"
8546 /* Override any gcc2 internal prototype to avoid an error. */
8547 /* We use char because int might match the return type of a gcc2
8548 builtin and then its argument prototype would still apply. */
8555 if { (eval echo configure:8556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8557 eval "ac_cv_lib_$ac_lib_var=yes"
8559 echo "configure: failed program was:" >&5
8560 cat conftest.$ac_ext >&5
8562 eval "ac_cv_lib_$ac_lib_var=no"
8565 LIBS="$ac_save_LIBS"
8568 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8569 echo "$ac_t""yes" 1>&6
8572 echo "$ac_t""no" 1>&6
8576 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
8577 echo "configure:8578: checking for opendir in -lx" >&5
8578 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
8579 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8580 echo $ac_n "(cached) $ac_c" 1>&6
8582 ac_save_LIBS="$LIBS"
8584 cat > conftest.$ac_ext <<EOF
8585 #line 8586 "configure"
8586 #include "confdefs.h"
8587 /* Override any gcc2 internal prototype to avoid an error. */
8588 /* We use char because int might match the return type of a gcc2
8589 builtin and then its argument prototype would still apply. */
8596 if { (eval echo configure:8597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8598 eval "ac_cv_lib_$ac_lib_var=yes"
8600 echo "configure: failed program was:" >&5
8601 cat conftest.$ac_ext >&5
8603 eval "ac_cv_lib_$ac_lib_var=no"
8606 LIBS="$ac_save_LIBS"
8609 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8610 echo "$ac_t""yes" 1>&6
8613 echo "$ac_t""no" 1>&6
8618 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
8619 echo "configure:8620: checking for sys/wait.h that is POSIX.1 compatible" >&5
8620 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
8621 echo $ac_n "(cached) $ac_c" 1>&6
8623 cat > conftest.$ac_ext <<EOF
8624 #line 8625 "configure"
8625 #include "confdefs.h"
8626 #include <sys/types.h>
8627 #include <sys/wait.h>
8629 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8632 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8637 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8640 if { (eval echo configure:8641: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8642 ac_cv_header_sys_wait_h=yes
8644 echo "configure: failed program was:" >&5
8645 cat conftest.$ac_ext >&5
8647 ac_cv_header_sys_wait_h=no
8652 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
8653 if test $ac_cv_header_sys_wait_h = yes; then
8654 cat >> confdefs.h <<\EOF
8655 #define HAVE_SYS_WAIT_H 1
8660 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
8661 echo "configure:8662: checking POSIX termios" >&5
8662 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
8663 echo $ac_n "(cached) $ac_c" 1>&6
8665 cat > conftest.$ac_ext <<EOF
8666 #line 8667 "configure"
8667 #include "confdefs.h"
8668 #include <sys/types.h>
8670 #include <termios.h>
8672 /* SunOS 4.0.3 has termios.h but not the library calls. */
8676 if { (eval echo configure:8677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8678 am_cv_sys_posix_termios=yes
8680 echo "configure: failed program was:" >&5
8681 cat conftest.$ac_ext >&5
8683 am_cv_sys_posix_termios=no
8688 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
8691 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
8692 echo "configure:8693: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
8693 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
8694 echo $ac_n "(cached) $ac_c" 1>&6
8696 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
8698 gwinsz_in_termios_h=no
8699 if test $am_cv_sys_posix_termios = yes; then
8700 cat > conftest.$ac_ext <<EOF
8701 #line 8702 "configure"
8702 #include "confdefs.h"
8703 #include <sys/types.h>
8704 # include <termios.h>
8710 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8711 egrep "yes" >/dev/null 2>&1; then
8713 gwinsz_in_termios_h=yes
8719 if test $gwinsz_in_termios_h = no; then
8720 cat > conftest.$ac_ext <<EOF
8721 #line 8722 "configure"
8722 #include "confdefs.h"
8723 #include <sys/types.h>
8724 # include <sys/ioctl.h>
8730 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8731 egrep "yes" >/dev/null 2>&1; then
8733 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
8741 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
8742 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
8743 cat >> confdefs.h <<\EOF
8744 #define GWINSZ_IN_SYS_IOCTL 1
8749 if test $am_cv_sys_posix_termios = yes ; then
8750 cat >> confdefs.h <<\EOF
8751 #define HAVE_POSIX_TERMIOS 1
8807 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8808 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8809 echo "configure:8810: checking for $ac_hdr" >&5
8810 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8811 echo $ac_n "(cached) $ac_c" 1>&6
8813 cat > conftest.$ac_ext <<EOF
8814 #line 8815 "configure"
8815 #include "confdefs.h"
8818 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8819 { (eval echo configure:8820: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8820 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8821 if test -z "$ac_err"; then
8823 eval "ac_cv_header_$ac_safe=yes"
8826 echo "configure: failed program was:" >&5
8827 cat conftest.$ac_ext >&5
8829 eval "ac_cv_header_$ac_safe=no"
8833 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8834 echo "$ac_t""yes" 1>&6
8835 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8836 cat >> confdefs.h <<EOF
8837 #define $ac_tr_hdr 1
8841 echo "$ac_t""no" 1>&6
8847 for ac_func in sigaction sigset
8849 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8850 echo "configure:8851: checking for $ac_func" >&5
8851 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
8852 echo $ac_n "(cached) $ac_c" 1>&6
8854 cat > conftest.$ac_ext <<EOF
8855 #line 8856 "configure"
8856 #include "confdefs.h"
8857 /* System header to define __stub macros and hopefully few prototypes,
8858 which can conflict with char $ac_func(); below. */
8860 /* Override any gcc2 internal prototype to avoid an error. */
8861 /* We use char because int might match the return type of a gcc2
8862 builtin and then its argument prototype would still apply. */
8868 /* The GNU C library defines this for functions which it implements
8869 to always fail with ENOSYS. Some functions are actually named
8870 something starting with __ and the normal name is an alias. */
8871 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8879 if { (eval echo configure:8880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8881 eval "ac_cv_func_$ac_func=yes"
8883 echo "configure: failed program was:" >&5
8884 cat conftest.$ac_ext >&5
8886 eval "ac_cv_func_$ac_func=no"
8891 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8892 echo "$ac_t""yes" 1>&6
8893 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8894 cat >> confdefs.h <<EOF
8895 #define $ac_tr_func 1
8899 echo "$ac_t""no" 1>&6
8904 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
8905 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
8906 echo "configure:8907: checking for sigset in -lV3" >&5
8907 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
8908 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8909 echo $ac_n "(cached) $ac_c" 1>&6
8911 ac_save_LIBS="$LIBS"
8913 cat > conftest.$ac_ext <<EOF
8914 #line 8915 "configure"
8915 #include "confdefs.h"
8916 /* Override any gcc2 internal prototype to avoid an error. */
8917 /* We use char because int might match the return type of a gcc2
8918 builtin and then its argument prototype would still apply. */
8925 if { (eval echo configure:8926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8927 eval "ac_cv_lib_$ac_lib_var=yes"
8929 echo "configure: failed program was:" >&5
8930 cat conftest.$ac_ext >&5
8932 eval "ac_cv_lib_$ac_lib_var=no"
8935 LIBS="$ac_save_LIBS"
8938 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8939 echo "$ac_t""yes" 1>&6
8940 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8941 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8942 cat >> confdefs.h <<EOF
8943 #define $ac_tr_lib 1
8949 echo "$ac_t""no" 1>&6
8954 if test "$ac_cv_header_winsock_h" = yes; then
8955 echo $ac_n "checking for winsock""... $ac_c" 1>&6
8956 echo "configure:8957: checking for winsock" >&5
8957 if eval "test \"\${ol_cv_winsock+set}\" = set"; then
8958 echo $ac_n "(cached) $ac_c" 1>&6
8961 for curlib in ws2_32 wsock32; do
8962 LIBS="$LIBS -l$curlib"
8963 cat > conftest.$ac_ext <<EOF
8964 #line 8965 "configure"
8965 #include "confdefs.h"
8966 #include <winsock.h>
8971 select(0,NULL,NULL,NULL,NULL);
8973 gethostname(NULL,0);
8977 if { (eval echo configure:8978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8981 echo "configure: failed program was:" >&5
8982 cat conftest.$ac_ext >&5
8988 if test $ol_cv_winsock = yes; then
8989 cat >> confdefs.h <<\EOF
8990 #define HAVE_WINSOCK 1
8993 ac_cv_func_socket=yes
8994 ac_cv_func_select=yes
8995 ac_cv_func_closesocket=yes
8996 ac_cv_func_gethostname=yes
8997 if test $curlib = ws2_32; then
8998 ol_cv_winsock=winsock2
8999 cat >> confdefs.h <<\EOF
9000 #define HAVE_WINSOCK2 1
9010 echo "$ac_t""$ol_cv_winsock" 1>&6
9014 echo $ac_n "checking for socket""... $ac_c" 1>&6
9015 echo "configure:9016: checking for socket" >&5
9016 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
9017 echo $ac_n "(cached) $ac_c" 1>&6
9019 cat > conftest.$ac_ext <<EOF
9020 #line 9021 "configure"
9021 #include "confdefs.h"
9022 /* System header to define __stub macros and hopefully few prototypes,
9023 which can conflict with char socket(); below. */
9025 /* Override any gcc2 internal prototype to avoid an error. */
9026 /* We use char because int might match the return type of a gcc2
9027 builtin and then its argument prototype would still apply. */
9033 /* The GNU C library defines this for functions which it implements
9034 to always fail with ENOSYS. Some functions are actually named
9035 something starting with __ and the normal name is an alias. */
9036 #if defined (__stub_socket) || defined (__stub___socket)
9044 if { (eval echo configure:9045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9046 eval "ac_cv_func_socket=yes"
9048 echo "configure: failed program was:" >&5
9049 cat conftest.$ac_ext >&5
9051 eval "ac_cv_func_socket=no"
9056 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
9057 echo "$ac_t""yes" 1>&6
9060 echo "$ac_t""no" 1>&6
9062 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
9063 echo "configure:9064: checking for main in -lsocket" >&5
9064 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
9065 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9066 echo $ac_n "(cached) $ac_c" 1>&6
9068 ac_save_LIBS="$LIBS"
9069 LIBS="-lsocket $LIBS"
9070 cat > conftest.$ac_ext <<EOF
9071 #line 9072 "configure"
9072 #include "confdefs.h"
9078 if { (eval echo configure:9079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9080 eval "ac_cv_lib_$ac_lib_var=yes"
9082 echo "configure: failed program was:" >&5
9083 cat conftest.$ac_ext >&5
9085 eval "ac_cv_lib_$ac_lib_var=no"
9088 LIBS="$ac_save_LIBS"
9091 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9092 echo "$ac_t""yes" 1>&6
9093 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9094 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9095 cat >> confdefs.h <<EOF
9096 #define $ac_tr_lib 1
9099 LIBS="-lsocket $LIBS"
9102 echo "$ac_t""no" 1>&6
9105 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
9106 echo "configure:9107: checking for main in -lnet" >&5
9107 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
9108 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9109 echo $ac_n "(cached) $ac_c" 1>&6
9111 ac_save_LIBS="$LIBS"
9113 cat > conftest.$ac_ext <<EOF
9114 #line 9115 "configure"
9115 #include "confdefs.h"
9121 if { (eval echo configure:9122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9123 eval "ac_cv_lib_$ac_lib_var=yes"
9125 echo "configure: failed program was:" >&5
9126 cat conftest.$ac_ext >&5
9128 eval "ac_cv_lib_$ac_lib_var=no"
9131 LIBS="$ac_save_LIBS"
9134 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9135 echo "$ac_t""yes" 1>&6
9136 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9137 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9138 cat >> confdefs.h <<EOF
9139 #define $ac_tr_lib 1
9145 echo "$ac_t""no" 1>&6
9148 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
9149 echo "configure:9150: checking for main in -lnsl_s" >&5
9150 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
9151 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9152 echo $ac_n "(cached) $ac_c" 1>&6
9154 ac_save_LIBS="$LIBS"
9155 LIBS="-lnsl_s $LIBS"
9156 cat > conftest.$ac_ext <<EOF
9157 #line 9158 "configure"
9158 #include "confdefs.h"
9164 if { (eval echo configure:9165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9166 eval "ac_cv_lib_$ac_lib_var=yes"
9168 echo "configure: failed program was:" >&5
9169 cat conftest.$ac_ext >&5
9171 eval "ac_cv_lib_$ac_lib_var=no"
9174 LIBS="$ac_save_LIBS"
9177 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9178 echo "$ac_t""yes" 1>&6
9179 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9180 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9181 cat >> confdefs.h <<EOF
9182 #define $ac_tr_lib 1
9185 LIBS="-lnsl_s $LIBS"
9188 echo "$ac_t""no" 1>&6
9191 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
9192 echo "configure:9193: checking for main in -lnsl" >&5
9193 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
9194 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9195 echo $ac_n "(cached) $ac_c" 1>&6
9197 ac_save_LIBS="$LIBS"
9199 cat > conftest.$ac_ext <<EOF
9200 #line 9201 "configure"
9201 #include "confdefs.h"
9207 if { (eval echo configure:9208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9209 eval "ac_cv_lib_$ac_lib_var=yes"
9211 echo "configure: failed program was:" >&5
9212 cat conftest.$ac_ext >&5
9214 eval "ac_cv_lib_$ac_lib_var=no"
9217 LIBS="$ac_save_LIBS"
9220 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9221 echo "$ac_t""yes" 1>&6
9222 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9223 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9224 cat >> confdefs.h <<EOF
9225 #define $ac_tr_lib 1
9231 echo "$ac_t""no" 1>&6
9234 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
9235 echo "configure:9236: checking for socket in -linet" >&5
9236 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
9237 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9238 echo $ac_n "(cached) $ac_c" 1>&6
9240 ac_save_LIBS="$LIBS"
9242 cat > conftest.$ac_ext <<EOF
9243 #line 9244 "configure"
9244 #include "confdefs.h"
9245 /* Override any gcc2 internal prototype to avoid an error. */
9246 /* We use char because int might match the return type of a gcc2
9247 builtin and then its argument prototype would still apply. */
9254 if { (eval echo configure:9255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9256 eval "ac_cv_lib_$ac_lib_var=yes"
9258 echo "configure: failed program was:" >&5
9259 cat conftest.$ac_ext >&5
9261 eval "ac_cv_lib_$ac_lib_var=no"
9264 LIBS="$ac_save_LIBS"
9267 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9268 echo "$ac_t""yes" 1>&6
9269 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9270 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9271 cat >> confdefs.h <<EOF
9272 #define $ac_tr_lib 1
9278 echo "$ac_t""no" 1>&6
9281 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
9282 echo "configure:9283: checking for main in -lgen" >&5
9283 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
9284 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9285 echo $ac_n "(cached) $ac_c" 1>&6
9287 ac_save_LIBS="$LIBS"
9289 cat > conftest.$ac_ext <<EOF
9290 #line 9291 "configure"
9291 #include "confdefs.h"
9297 if { (eval echo configure:9298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9299 eval "ac_cv_lib_$ac_lib_var=yes"
9301 echo "configure: failed program was:" >&5
9302 cat conftest.$ac_ext >&5
9304 eval "ac_cv_lib_$ac_lib_var=no"
9307 LIBS="$ac_save_LIBS"
9310 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9311 echo "$ac_t""yes" 1>&6
9312 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9313 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9314 cat >> confdefs.h <<EOF
9315 #define $ac_tr_lib 1
9321 echo "$ac_t""no" 1>&6
9328 echo $ac_n "checking for select""... $ac_c" 1>&6
9329 echo "configure:9330: checking for select" >&5
9330 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
9331 echo $ac_n "(cached) $ac_c" 1>&6
9333 cat > conftest.$ac_ext <<EOF
9334 #line 9335 "configure"
9335 #include "confdefs.h"
9336 /* System header to define __stub macros and hopefully few prototypes,
9337 which can conflict with char select(); below. */
9339 /* Override any gcc2 internal prototype to avoid an error. */
9340 /* We use char because int might match the return type of a gcc2
9341 builtin and then its argument prototype would still apply. */
9347 /* The GNU C library defines this for functions which it implements
9348 to always fail with ENOSYS. Some functions are actually named
9349 something starting with __ and the normal name is an alias. */
9350 #if defined (__stub_select) || defined (__stub___select)
9358 if { (eval echo configure:9359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9360 eval "ac_cv_func_select=yes"
9362 echo "configure: failed program was:" >&5
9363 cat conftest.$ac_ext >&5
9365 eval "ac_cv_func_select=no"
9370 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
9371 echo "$ac_t""yes" 1>&6
9374 echo "$ac_t""no" 1>&6
9375 { echo "configure: error: select() required." 1>&2; exit 1; }
9379 if test "${ac_cv_header_winsock_h}" != yes; then
9380 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
9381 echo "configure:9382: checking types of arguments for select()" >&5
9382 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
9383 echo $ac_n "(cached) $ac_c" 1>&6
9385 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
9386 echo $ac_n "(cached) $ac_c" 1>&6
9388 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
9389 echo $ac_n "(cached) $ac_c" 1>&6
9391 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
9392 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
9393 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
9394 cat > conftest.$ac_ext <<EOF
9395 #line 9396 "configure"
9396 #include "confdefs.h"
9397 #ifdef HAVE_SYS_TYPES_H
9398 #include <sys/types.h>
9400 #ifdef HAVE_SYS_TIME_H
9401 #include <sys/time.h>
9403 #ifdef HAVE_SYS_SELECT_H
9404 #include <sys/select.h>
9406 #ifdef HAVE_SYS_SOCKET_H
9407 #include <sys/socket.h>
9409 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);
9414 if { (eval echo configure:9415: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9416 ac_not_found=no ; break 3
9418 echo "configure: failed program was:" >&5
9419 cat conftest.$ac_ext >&5
9433 if test "$ac_not_found" = yes; then
9434 ac_cv_func_select_arg1=int
9435 ac_cv_func_select_arg234='int *'
9436 ac_cv_func_select_arg5='struct timeval *'
9438 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
9439 cat >> confdefs.h <<EOF
9440 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
9443 cat >> confdefs.h <<EOF
9444 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
9447 cat >> confdefs.h <<EOF
9448 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
9457 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9458 echo "configure:9459: checking for $ac_func" >&5
9459 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9460 echo $ac_n "(cached) $ac_c" 1>&6
9462 cat > conftest.$ac_ext <<EOF
9463 #line 9464 "configure"
9464 #include "confdefs.h"
9465 /* System header to define __stub macros and hopefully few prototypes,
9466 which can conflict with char $ac_func(); below. */
9468 /* Override any gcc2 internal prototype to avoid an error. */
9469 /* We use char because int might match the return type of a gcc2
9470 builtin and then its argument prototype would still apply. */
9476 /* The GNU C library defines this for functions which it implements
9477 to always fail with ENOSYS. Some functions are actually named
9478 something starting with __ and the normal name is an alias. */
9479 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9487 if { (eval echo configure:9488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9489 eval "ac_cv_func_$ac_func=yes"
9491 echo "configure: failed program was:" >&5
9492 cat conftest.$ac_ext >&5
9494 eval "ac_cv_func_$ac_func=no"
9499 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9500 echo "$ac_t""yes" 1>&6
9501 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9502 cat >> confdefs.h <<EOF
9503 #define $ac_tr_func 1
9507 echo "$ac_t""no" 1>&6
9511 for ac_hdr in poll.h
9513 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9514 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9515 echo "configure:9516: checking for $ac_hdr" >&5
9516 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9517 echo $ac_n "(cached) $ac_c" 1>&6
9519 cat > conftest.$ac_ext <<EOF
9520 #line 9521 "configure"
9521 #include "confdefs.h"
9524 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9525 { (eval echo configure:9526: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9526 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9527 if test -z "$ac_err"; then
9529 eval "ac_cv_header_$ac_safe=yes"
9532 echo "configure: failed program was:" >&5
9533 cat conftest.$ac_ext >&5
9535 eval "ac_cv_header_$ac_safe=no"
9539 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9540 echo "$ac_t""yes" 1>&6
9541 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9542 cat >> confdefs.h <<EOF
9543 #define $ac_tr_hdr 1
9547 echo "$ac_t""no" 1>&6
9552 for ac_hdr in sys/epoll.h
9554 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9555 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9556 echo "configure:9557: checking for $ac_hdr" >&5
9557 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9558 echo $ac_n "(cached) $ac_c" 1>&6
9560 cat > conftest.$ac_ext <<EOF
9561 #line 9562 "configure"
9562 #include "confdefs.h"
9565 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9566 { (eval echo configure:9567: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9567 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9568 if test -z "$ac_err"; then
9570 eval "ac_cv_header_$ac_safe=yes"
9573 echo "configure: failed program was:" >&5
9574 cat conftest.$ac_ext >&5
9576 eval "ac_cv_header_$ac_safe=no"
9580 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9581 echo "$ac_t""yes" 1>&6
9582 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9583 cat >> confdefs.h <<EOF
9584 #define $ac_tr_hdr 1
9588 echo "$ac_t""no" 1>&6
9592 if test "${ac_cv_header_sys_epoll_h}" = yes; then
9593 echo $ac_n "checking for epoll system call""... $ac_c" 1>&6
9594 echo "configure:9595: checking for epoll system call" >&5
9595 if test "$cross_compiling" = yes; then
9596 echo "$ac_t""no" 1>&6
9598 cat > conftest.$ac_ext <<EOF
9599 #line 9600 "configure"
9600 #include "confdefs.h"
9601 int main(int argc, char *argv)
9603 int epfd = epoll_create(256);
9604 exit (epfd == -1 ? 1 : 0);
9607 if { (eval echo configure:9608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
9609 echo "$ac_t""yes" 1>&6
9610 cat >> confdefs.h <<\EOF
9611 #define HAVE_EPOLL 1
9615 echo "configure: failed program was:" >&5
9616 cat conftest.$ac_ext >&5
9618 echo "$ac_t""no" 1>&6
9626 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
9627 echo "configure:9628: checking declaration of sys_errlist" >&5
9628 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
9629 echo $ac_n "(cached) $ac_c" 1>&6
9632 cat > conftest.$ac_ext <<EOF
9633 #line 9634 "configure"
9634 #include "confdefs.h"
9637 #include <sys/types.h>
9643 char *c = (char *) *sys_errlist
9646 if { (eval echo configure:9647: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9648 ol_cv_dcl_sys_errlist=yes
9649 ol_cv_have_sys_errlist=yes
9651 echo "configure: failed program was:" >&5
9652 cat conftest.$ac_ext >&5
9654 ol_cv_dcl_sys_errlist=no
9659 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
9661 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
9662 if test $ol_cv_dcl_sys_errlist = no ; then
9663 cat >> confdefs.h <<\EOF
9664 #define DECL_SYS_ERRLIST 1
9668 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
9669 echo "configure:9670: checking existence of sys_errlist" >&5
9670 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
9671 echo $ac_n "(cached) $ac_c" 1>&6
9674 cat > conftest.$ac_ext <<EOF
9675 #line 9676 "configure"
9676 #include "confdefs.h"
9679 char *c = (char *) *sys_errlist
9682 if { (eval echo configure:9683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9684 ol_cv_have_sys_errlist=yes
9686 echo "configure: failed program was:" >&5
9687 cat conftest.$ac_ext >&5
9689 ol_cv_have_sys_errlist=no
9694 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
9696 if test $ol_cv_have_sys_errlist = yes ; then
9697 cat >> confdefs.h <<\EOF
9698 #define HAVE_SYS_ERRLIST 1
9702 for ac_func in strerror strerror_r
9704 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9705 echo "configure:9706: checking for $ac_func" >&5
9706 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9707 echo $ac_n "(cached) $ac_c" 1>&6
9709 cat > conftest.$ac_ext <<EOF
9710 #line 9711 "configure"
9711 #include "confdefs.h"
9712 /* System header to define __stub macros and hopefully few prototypes,
9713 which can conflict with char $ac_func(); below. */
9715 /* Override any gcc2 internal prototype to avoid an error. */
9716 /* We use char because int might match the return type of a gcc2
9717 builtin and then its argument prototype would still apply. */
9723 /* The GNU C library defines this for functions which it implements
9724 to always fail with ENOSYS. Some functions are actually named
9725 something starting with __ and the normal name is an alias. */
9726 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9734 if { (eval echo configure:9735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9736 eval "ac_cv_func_$ac_func=yes"
9738 echo "configure: failed program was:" >&5
9739 cat conftest.$ac_ext >&5
9741 eval "ac_cv_func_$ac_func=no"
9746 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9747 echo "$ac_t""yes" 1>&6
9748 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9749 cat >> confdefs.h <<EOF
9750 #define $ac_tr_func 1
9754 echo "$ac_t""no" 1>&6
9758 ol_cv_func_strerror_r=no
9759 if test "${ac_cv_func_strerror_r}" = yes ; then
9760 echo $ac_n "checking non-posix strerror_r""... $ac_c" 1>&6
9761 echo "configure:9762: checking non-posix strerror_r" >&5
9762 if eval "test \"\${ol_cv_nonposix_strerror_r+set}\" = set"; then
9763 echo $ac_n "(cached) $ac_c" 1>&6
9766 cat > conftest.$ac_ext <<EOF
9767 #line 9768 "configure"
9768 #include "confdefs.h"
9771 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9772 egrep "strerror_r" >/dev/null 2>&1; then
9774 ol_decl_strerror_r=yes
9777 ol_decl_strerror_r=no
9781 if test $ol_decl_strerror_r = yes ; then
9782 cat > conftest.$ac_ext <<EOF
9783 #line 9784 "configure"
9784 #include "confdefs.h"
9787 /* from autoconf 2.59 */
9789 char x = *strerror_r (0, buf, sizeof buf);
9790 char *p = strerror_r (0, buf, sizeof buf);
9794 if { (eval echo configure:9795: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9796 ol_cv_nonposix_strerror_r=yes
9798 echo "configure: failed program was:" >&5
9799 cat conftest.$ac_ext >&5
9801 ol_cv_nonposix_strerror_r=no
9805 if test "$cross_compiling" = yes; then
9806 ol_cv_nonposix_strerror=no
9808 cat > conftest.$ac_ext <<EOF
9809 #line 9810 "configure"
9810 #include "confdefs.h"
9815 strerror_r( 1, buf, sizeof buf );
9816 exit( buf[0] == 0 );
9820 if { (eval echo configure:9821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
9822 ol_cv_nonposix_strerror_r=yes
9824 echo "configure: failed program was:" >&5
9825 cat conftest.$ac_ext >&5
9827 ol_cv_nonposix_strerror=no
9836 echo "$ac_t""$ol_cv_nonposix_strerror_r" 1>&6
9837 if test $ol_cv_nonposix_strerror_r = yes ; then
9838 cat >> confdefs.h <<\EOF
9839 #define HAVE_NONPOSIX_STRERROR_R 1
9844 elif test "${ac_cv_func_strerror}" = no ; then
9845 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
9846 echo "configure:9847: checking declaration of sys_errlist" >&5
9847 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
9848 echo $ac_n "(cached) $ac_c" 1>&6
9851 cat > conftest.$ac_ext <<EOF
9852 #line 9853 "configure"
9853 #include "confdefs.h"
9856 #include <sys/types.h>
9862 char *c = (char *) *sys_errlist
9865 if { (eval echo configure:9866: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9867 ol_cv_dcl_sys_errlist=yes
9868 ol_cv_have_sys_errlist=yes
9870 echo "configure: failed program was:" >&5
9871 cat conftest.$ac_ext >&5
9873 ol_cv_dcl_sys_errlist=no
9878 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
9880 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
9881 if test $ol_cv_dcl_sys_errlist = no ; then
9882 cat >> confdefs.h <<\EOF
9883 #define DECL_SYS_ERRLIST 1
9887 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
9888 echo "configure:9889: checking existence of sys_errlist" >&5
9889 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
9890 echo $ac_n "(cached) $ac_c" 1>&6
9893 cat > conftest.$ac_ext <<EOF
9894 #line 9895 "configure"
9895 #include "confdefs.h"
9898 char *c = (char *) *sys_errlist
9901 if { (eval echo configure:9902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9903 ol_cv_have_sys_errlist=yes
9905 echo "configure: failed program was:" >&5
9906 cat conftest.$ac_ext >&5
9908 ol_cv_have_sys_errlist=no
9913 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
9915 if test $ol_cv_have_sys_errlist = yes ; then
9916 cat >> confdefs.h <<\EOF
9917 #define HAVE_SYS_ERRLIST 1
9925 for ac_hdr in regex.h
9927 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9928 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9929 echo "configure:9930: checking for $ac_hdr" >&5
9930 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9931 echo $ac_n "(cached) $ac_c" 1>&6
9933 cat > conftest.$ac_ext <<EOF
9934 #line 9935 "configure"
9935 #include "confdefs.h"
9938 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9939 { (eval echo configure:9940: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9940 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9941 if test -z "$ac_err"; then
9943 eval "ac_cv_header_$ac_safe=yes"
9946 echo "configure: failed program was:" >&5
9947 cat conftest.$ac_ext >&5
9949 eval "ac_cv_header_$ac_safe=no"
9953 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9954 echo "$ac_t""yes" 1>&6
9955 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9956 cat >> confdefs.h <<EOF
9957 #define $ac_tr_hdr 1
9961 echo "$ac_t""no" 1>&6
9965 if test "$ac_cv_header_regex_h" != yes ; then
9966 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
9969 echo $ac_n "checking for library containing regfree""... $ac_c" 1>&6
9970 echo "configure:9971: checking for library containing regfree" >&5
9971 if eval "test \"\${ac_cv_search_regfree+set}\" = set"; then
9972 echo $ac_n "(cached) $ac_c" 1>&6
9974 ac_func_search_save_LIBS="$LIBS"
9975 ac_cv_search_regfree="no"
9976 cat > conftest.$ac_ext <<EOF
9977 #line 9978 "configure"
9978 #include "confdefs.h"
9979 /* Override any gcc2 internal prototype to avoid an error. */
9980 /* We use char because int might match the return type of a gcc2
9981 builtin and then its argument prototype would still apply. */
9988 if { (eval echo configure:9989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9990 ac_cv_search_regfree="none required"
9992 echo "configure: failed program was:" >&5
9993 cat conftest.$ac_ext >&5
9996 test "$ac_cv_search_regfree" = "no" && for ac_lib in regex gnuregex; do
9997 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9998 cat > conftest.$ac_ext <<EOF
9999 #line 10000 "configure"
10000 #include "confdefs.h"
10001 /* Override any gcc2 internal prototype to avoid an error. */
10002 /* We use char because int might match the return type of a gcc2
10003 builtin and then its argument prototype would still apply. */
10010 if { (eval echo configure:10011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10012 ac_cv_search_regfree="-l$ac_lib"
10015 echo "configure: failed program was:" >&5
10016 cat conftest.$ac_ext >&5
10020 LIBS="$ac_func_search_save_LIBS"
10023 echo "$ac_t""$ac_cv_search_regfree" 1>&6
10024 if test "$ac_cv_search_regfree" != "no"; then
10025 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
10028 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
10032 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
10033 echo "configure:10034: checking for compatible POSIX regex" >&5
10034 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
10035 echo $ac_n "(cached) $ac_c" 1>&6
10038 if test "$cross_compiling" = yes; then
10039 ol_cv_c_posix_regex=cross
10041 cat > conftest.$ac_ext <<EOF
10042 #line 10043 "configure"
10043 #include "confdefs.h"
10045 #include <sys/types.h>
10047 static char *pattern, *string;
10055 if(regcomp(&re, pattern, 0)) {
10059 string = "ALL MATCH";
10061 rc = regexec(&re, string, 0, (void*)0, 0);
10068 if { (eval echo configure:10069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
10070 ol_cv_c_posix_regex=yes
10072 echo "configure: failed program was:" >&5
10073 cat conftest.$ac_ext >&5
10075 ol_cv_c_posix_regex=no
10082 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
10084 if test "$ol_cv_c_posix_regex" = no ; then
10085 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
10090 for ac_hdr in sys/uuid.h
10092 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10093 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10094 echo "configure:10095: checking for $ac_hdr" >&5
10095 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10096 echo $ac_n "(cached) $ac_c" 1>&6
10098 cat > conftest.$ac_ext <<EOF
10099 #line 10100 "configure"
10100 #include "confdefs.h"
10103 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10104 { (eval echo configure:10105: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10105 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10106 if test -z "$ac_err"; then
10108 eval "ac_cv_header_$ac_safe=yes"
10111 echo "configure: failed program was:" >&5
10112 cat conftest.$ac_ext >&5
10114 eval "ac_cv_header_$ac_safe=no"
10118 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10119 echo "$ac_t""yes" 1>&6
10120 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10121 cat >> confdefs.h <<EOF
10122 #define $ac_tr_hdr 1
10126 echo "$ac_t""no" 1>&6
10130 if test $ac_cv_header_sys_uuid_h = yes ; then
10133 echo $ac_n "checking for library containing uuid_to_str""... $ac_c" 1>&6
10134 echo "configure:10135: checking for library containing uuid_to_str" >&5
10135 if eval "test \"\${ac_cv_search_uuid_to_str+set}\" = set"; then
10136 echo $ac_n "(cached) $ac_c" 1>&6
10138 ac_func_search_save_LIBS="$LIBS"
10139 ac_cv_search_uuid_to_str="no"
10140 cat > conftest.$ac_ext <<EOF
10141 #line 10142 "configure"
10142 #include "confdefs.h"
10143 /* Override any gcc2 internal prototype to avoid an error. */
10144 /* We use char because int might match the return type of a gcc2
10145 builtin and then its argument prototype would still apply. */
10146 char uuid_to_str();
10152 if { (eval echo configure:10153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10154 ac_cv_search_uuid_to_str="none required"
10156 echo "configure: failed program was:" >&5
10157 cat conftest.$ac_ext >&5
10160 test "$ac_cv_search_uuid_to_str" = "no" && for ac_lib in uuid; do
10161 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10162 cat > conftest.$ac_ext <<EOF
10163 #line 10164 "configure"
10164 #include "confdefs.h"
10165 /* Override any gcc2 internal prototype to avoid an error. */
10166 /* We use char because int might match the return type of a gcc2
10167 builtin and then its argument prototype would still apply. */
10168 char uuid_to_str();
10174 if { (eval echo configure:10175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10176 ac_cv_search_uuid_to_str="-l$ac_lib"
10179 echo "configure: failed program was:" >&5
10180 cat conftest.$ac_ext >&5
10184 LIBS="$ac_func_search_save_LIBS"
10187 echo "$ac_t""$ac_cv_search_uuid_to_str" 1>&6
10188 if test "$ac_cv_search_uuid_to_str" != "no"; then
10189 test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
10196 if test have_uuid = yes ; then
10197 cat >> confdefs.h <<\EOF
10198 #define HAVE_UUID_TO_STR 1
10202 test "$ac_cv_search_uuid_to_str" = "none required" || \
10203 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
10207 if test $have_uuid = no ; then
10208 echo $ac_n "checking to see if -lrpcrt4 is needed for win32 UUID support""... $ac_c" 1>&6
10209 echo "configure:10210: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
10211 LIBS="$LIBS -lrpcrt4"
10212 cat > conftest.$ac_ext <<EOF
10213 #line 10214 "configure"
10214 #include "confdefs.h"
10216 int __stdcall UuidCreate(void *);
10217 int __stdcall UuidToStringA(void *,void **);
10222 UuidToStringA(0,0);
10226 if { (eval echo configure:10227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10230 echo "configure: failed program was:" >&5
10231 cat conftest.$ac_ext >&5
10236 if test $need_rpcrt = yes; then
10237 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
10240 echo "$ac_t""$need_rpcrt" 1>&6
10243 ol_cv_lib_resolver=no
10244 if test $ol_cv_lib_resolver = no ; then
10245 echo $ac_n "checking for resolver link (default)""... $ac_c" 1>&6
10246 echo "configure:10247: checking for resolver link (default)" >&5
10247 if eval "test \"\${ol_cv_resolver_none+set}\" = set"; then
10248 echo $ac_n "(cached) $ac_c" 1>&6
10253 LIBS="$ol_RESOLVER_LIB $LIBS"
10255 cat > conftest.$ac_ext <<EOF
10256 #line 10257 "configure"
10257 #include "confdefs.h"
10259 #ifdef HAVE_SYS_TYPES_H
10260 # include <sys/types.h>
10262 #include <netinet/in.h>
10263 #ifdef HAVE_ARPA_NAMESER_H
10264 # include <arpa/nameser.h>
10266 #ifdef HAVE_RESOLV_H
10267 # include <resolv.h>
10273 char *request = NULL;
10274 unsigned char reply[64*1024];
10275 unsigned char host[64*1024];
10279 /* Bind 8/9 interface */
10280 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
10282 /* Bind 4 interface */
10286 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
10290 /* Bind 8/9 interface */
10292 #elif defined(HFIXEDSZ)
10293 /* Bind 4 interface w/ HFIXEDSZ */
10296 /* Bind 4 interface w/o HFIXEDSZ */
10297 p += sizeof(HEADER);
10299 status = dn_expand( reply, reply+len, p, host, sizeof(host));
10303 if { (eval echo configure:10304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10305 ol_cv_resolver_none=yes
10307 echo "configure: failed program was:" >&5
10308 cat conftest.$ac_ext >&5
10310 ol_cv_resolver_none=no
10318 echo "$ac_t""$ol_cv_resolver_none" 1>&6
10320 if test $ol_cv_resolver_none = yes ; then
10321 ol_cv_lib_resolver=yes
10325 if test $ol_cv_lib_resolver = no ; then
10326 echo $ac_n "checking for resolver link (-lresolv)""... $ac_c" 1>&6
10327 echo "configure:10328: checking for resolver link (-lresolv)" >&5
10328 if eval "test \"\${ol_cv_resolver_resolv+set}\" = set"; then
10329 echo $ac_n "(cached) $ac_c" 1>&6
10332 ol_RESOLVER_LIB=-lresolv
10334 LIBS="$ol_RESOLVER_LIB $LIBS"
10336 cat > conftest.$ac_ext <<EOF
10337 #line 10338 "configure"
10338 #include "confdefs.h"
10340 #ifdef HAVE_SYS_TYPES_H
10341 # include <sys/types.h>
10343 #include <netinet/in.h>
10344 #ifdef HAVE_ARPA_NAMESER_H
10345 # include <arpa/nameser.h>
10347 #ifdef HAVE_RESOLV_H
10348 # include <resolv.h>
10354 char *request = NULL;
10355 unsigned char reply[64*1024];
10356 unsigned char host[64*1024];
10360 /* Bind 8/9 interface */
10361 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
10363 /* Bind 4 interface */
10367 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
10371 /* Bind 8/9 interface */
10373 #elif defined(HFIXEDSZ)
10374 /* Bind 4 interface w/ HFIXEDSZ */
10377 /* Bind 4 interface w/o HFIXEDSZ */
10378 p += sizeof(HEADER);
10380 status = dn_expand( reply, reply+len, p, host, sizeof(host));
10384 if { (eval echo configure:10385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10386 ol_cv_resolver_resolv=yes
10388 echo "configure: failed program was:" >&5
10389 cat conftest.$ac_ext >&5
10391 ol_cv_resolver_resolv=no
10399 echo "$ac_t""$ol_cv_resolver_resolv" 1>&6
10401 if test $ol_cv_resolver_resolv = yes ; then
10402 ol_cv_lib_resolver=-lresolv
10406 if test $ol_cv_lib_resolver = no ; then
10407 echo $ac_n "checking for resolver link (-lbind)""... $ac_c" 1>&6
10408 echo "configure:10409: checking for resolver link (-lbind)" >&5
10409 if eval "test \"\${ol_cv_resolver_bind+set}\" = set"; then
10410 echo $ac_n "(cached) $ac_c" 1>&6
10413 ol_RESOLVER_LIB=-lbind
10415 LIBS="$ol_RESOLVER_LIB $LIBS"
10417 cat > conftest.$ac_ext <<EOF
10418 #line 10419 "configure"
10419 #include "confdefs.h"
10421 #ifdef HAVE_SYS_TYPES_H
10422 # include <sys/types.h>
10424 #include <netinet/in.h>
10425 #ifdef HAVE_ARPA_NAMESER_H
10426 # include <arpa/nameser.h>
10428 #ifdef HAVE_RESOLV_H
10429 # include <resolv.h>
10435 char *request = NULL;
10436 unsigned char reply[64*1024];
10437 unsigned char host[64*1024];
10441 /* Bind 8/9 interface */
10442 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
10444 /* Bind 4 interface */
10448 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
10452 /* Bind 8/9 interface */
10454 #elif defined(HFIXEDSZ)
10455 /* Bind 4 interface w/ HFIXEDSZ */
10458 /* Bind 4 interface w/o HFIXEDSZ */
10459 p += sizeof(HEADER);
10461 status = dn_expand( reply, reply+len, p, host, sizeof(host));
10465 if { (eval echo configure:10466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10467 ol_cv_resolver_bind=yes
10469 echo "configure: failed program was:" >&5
10470 cat conftest.$ac_ext >&5
10472 ol_cv_resolver_bind=no
10480 echo "$ac_t""$ol_cv_resolver_bind" 1>&6
10482 if test $ol_cv_resolver_bind = yes ; then
10483 ol_cv_lib_resolver=-lbind
10490 if test "$ol_cv_lib_resolver" != no ; then
10491 cat >> confdefs.h <<\EOF
10492 #define HAVE_RES_QUERY 1
10496 if test "$ol_enable_dnssrv" != no ; then
10497 ol_link_dnssrv=yes;
10500 if test "$ol_cv_lib_resolver" != yes ; then
10501 LIBS="$ol_cv_lib_resolver $LIBS"
10505 if test "$ol_enable_dnssrv" = yes -a "$ol_link_dnssrv" = no ; then
10506 { echo "configure: error: DNSSRV requires res_query()" 1>&2; exit 1; }
10508 ol_enable_dnssrv=no
10511 for ac_func in hstrerror
10513 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10514 echo "configure:10515: checking for $ac_func" >&5
10515 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10516 echo $ac_n "(cached) $ac_c" 1>&6
10518 cat > conftest.$ac_ext <<EOF
10519 #line 10520 "configure"
10520 #include "confdefs.h"
10521 /* System header to define __stub macros and hopefully few prototypes,
10522 which can conflict with char $ac_func(); below. */
10523 #include <assert.h>
10524 /* Override any gcc2 internal prototype to avoid an error. */
10525 /* We use char because int might match the return type of a gcc2
10526 builtin and then its argument prototype would still apply. */
10532 /* The GNU C library defines this for functions which it implements
10533 to always fail with ENOSYS. Some functions are actually named
10534 something starting with __ and the normal name is an alias. */
10535 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10543 if { (eval echo configure:10544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10545 eval "ac_cv_func_$ac_func=yes"
10547 echo "configure: failed program was:" >&5
10548 cat conftest.$ac_ext >&5
10550 eval "ac_cv_func_$ac_func=no"
10555 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10556 echo "$ac_t""yes" 1>&6
10557 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10558 cat >> confdefs.h <<EOF
10559 #define $ac_tr_func 1
10563 echo "$ac_t""no" 1>&6
10568 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
10570 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10571 echo "configure:10572: checking for $ac_func" >&5
10572 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10573 echo $ac_n "(cached) $ac_c" 1>&6
10575 cat > conftest.$ac_ext <<EOF
10576 #line 10577 "configure"
10577 #include "confdefs.h"
10578 /* System header to define __stub macros and hopefully few prototypes,
10579 which can conflict with char $ac_func(); below. */
10580 #include <assert.h>
10581 /* Override any gcc2 internal prototype to avoid an error. */
10582 /* We use char because int might match the return type of a gcc2
10583 builtin and then its argument prototype would still apply. */
10589 /* The GNU C library defines this for functions which it implements
10590 to always fail with ENOSYS. Some functions are actually named
10591 something starting with __ and the normal name is an alias. */
10592 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10600 if { (eval echo configure:10601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10602 eval "ac_cv_func_$ac_func=yes"
10604 echo "configure: failed program was:" >&5
10605 cat conftest.$ac_ext >&5
10607 eval "ac_cv_func_$ac_func=no"
10612 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10613 echo "$ac_t""yes" 1>&6
10614 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10615 cat >> confdefs.h <<EOF
10616 #define $ac_tr_func 1
10620 echo "$ac_t""no" 1>&6
10626 if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then
10627 if test $ol_enable_ipv6 = yes ; then
10628 { echo "configure: error: IPv6 support requires getaddrinfo() and inet_ntop()" 1>&2; exit 1; }
10630 elif test $ol_enable_ipv6 != no ; then
10631 echo $ac_n "checking INET6_ADDRSTRLEN""... $ac_c" 1>&6
10632 echo "configure:10633: checking INET6_ADDRSTRLEN" >&5
10633 if eval "test \"\${ol_cv_inet6_addrstrlen+set}\" = set"; then
10634 echo $ac_n "(cached) $ac_c" 1>&6
10637 cat > conftest.$ac_ext <<EOF
10638 #line 10639 "configure"
10639 #include "confdefs.h"
10641 # include <netinet/in.h>
10642 # ifdef INET6_ADDRSTRLEN
10643 __has_inet6_addrstrlen__;
10647 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10648 egrep "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
10650 ol_cv_inet6_addrstrlen=yes
10653 ol_cv_inet6_addrstrlen=no
10659 echo "$ac_t""$ol_cv_inet6_addrstrlen" 1>&6
10662 echo $ac_n "checking struct sockaddr_storage""... $ac_c" 1>&6
10663 echo "configure:10664: checking struct sockaddr_storage" >&5
10664 if eval "test \"\${ol_cv_struct_sockaddr_storage+set}\" = set"; then
10665 echo $ac_n "(cached) $ac_c" 1>&6
10668 cat > conftest.$ac_ext <<EOF
10669 #line 10670 "configure"
10670 #include "confdefs.h"
10672 #include <sys/types.h>
10673 #include <sys/socket.h>
10677 struct sockaddr_storage ss;
10681 if { (eval echo configure:10682: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10683 ol_cv_struct_sockaddr_storage=yes
10685 echo "configure: failed program was:" >&5
10686 cat conftest.$ac_ext >&5
10688 ol_cv_struct_sockaddr_storage=no
10693 echo "$ac_t""$ol_cv_struct_sockaddr_storage" 1>&6
10695 if test $ol_cv_inet6_addrstrlen = yes \
10696 -a $ol_cv_struct_sockaddr_storage = yes ; then
10698 elif test $ol_enable_ipv6 = yes \
10699 -a $ol_cv_inet6_addrstrlen = no ; then
10700 { echo "configure: error: IPv6 support requires INET6_ADDRSTRLEN" 1>&2; exit 1; }
10701 elif test $ol_enable_ipv6 = yes \
10702 -a $ol_cv_struct_sockaddr_storage = no ; then
10703 { echo "configure: error: IPv6 support requires struct sockaddr_storage" 1>&2; exit 1; }
10707 if test $ol_enable_local != no ; then
10708 for ac_hdr in sys/un.h
10710 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10711 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10712 echo "configure:10713: checking for $ac_hdr" >&5
10713 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10714 echo $ac_n "(cached) $ac_c" 1>&6
10716 cat > conftest.$ac_ext <<EOF
10717 #line 10718 "configure"
10718 #include "confdefs.h"
10721 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10722 { (eval echo configure:10723: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10723 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10724 if test -z "$ac_err"; then
10726 eval "ac_cv_header_$ac_safe=yes"
10729 echo "configure: failed program was:" >&5
10730 cat conftest.$ac_ext >&5
10732 eval "ac_cv_header_$ac_safe=no"
10736 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10737 echo "$ac_t""yes" 1>&6
10738 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10739 cat >> confdefs.h <<EOF
10740 #define $ac_tr_hdr 1
10744 echo "$ac_t""no" 1>&6
10749 if test $ol_enable_local = auto ; then
10750 ol_enable_local=$ac_cv_header_sys_un_h
10751 elif test $ac_cv_header_sys_un_h = no ; then
10752 { echo "configure: error: AF_LOCAL domain support requires sys/un.h" 1>&2; exit 1; }
10760 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
10761 -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
10762 -o $ol_with_kerberos = k425 ; then
10764 for ac_hdr in krb5.h
10766 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10767 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10768 echo "configure:10769: checking for $ac_hdr" >&5
10769 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10770 echo $ac_n "(cached) $ac_c" 1>&6
10772 cat > conftest.$ac_ext <<EOF
10773 #line 10774 "configure"
10774 #include "confdefs.h"
10777 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10778 { (eval echo configure:10779: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10779 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10780 if test -z "$ac_err"; then
10782 eval "ac_cv_header_$ac_safe=yes"
10785 echo "configure: failed program was:" >&5
10786 cat conftest.$ac_ext >&5
10788 eval "ac_cv_header_$ac_safe=no"
10792 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10793 echo "$ac_t""yes" 1>&6
10794 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10795 cat >> confdefs.h <<EOF
10796 #define $ac_tr_hdr 1
10800 echo "$ac_t""no" 1>&6
10805 if test $ac_cv_header_krb5_h = yes ; then
10806 for ac_hdr in heim_err.h
10808 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10809 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10810 echo "configure:10811: checking for $ac_hdr" >&5
10811 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10812 echo $ac_n "(cached) $ac_c" 1>&6
10814 cat > conftest.$ac_ext <<EOF
10815 #line 10816 "configure"
10816 #include "confdefs.h"
10819 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10820 { (eval echo configure:10821: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10821 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10822 if test -z "$ac_err"; then
10824 eval "ac_cv_header_$ac_safe=yes"
10827 echo "configure: failed program was:" >&5
10828 cat conftest.$ac_ext >&5
10830 eval "ac_cv_header_$ac_safe=no"
10834 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10835 echo "$ac_t""yes" 1>&6
10836 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10837 cat >> confdefs.h <<EOF
10838 #define $ac_tr_hdr 1
10842 echo "$ac_t""no" 1>&6
10846 if test $ac_cv_header_heim_err_h = yes ; then
10852 if test $krb5_impl = mit; then
10853 echo $ac_n "checking for main in -lk5crypto""... $ac_c" 1>&6
10854 echo "configure:10855: checking for main in -lk5crypto" >&5
10855 ac_lib_var=`echo k5crypto'_'main | sed 'y%./+-:%__p__%'`
10856 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10857 echo $ac_n "(cached) $ac_c" 1>&6
10859 ac_save_LIBS="$LIBS"
10860 LIBS="-lk5crypto $LIBS"
10861 cat > conftest.$ac_ext <<EOF
10862 #line 10863 "configure"
10863 #include "confdefs.h"
10869 if { (eval echo configure:10870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10871 eval "ac_cv_lib_$ac_lib_var=yes"
10873 echo "configure: failed program was:" >&5
10874 cat conftest.$ac_ext >&5
10876 eval "ac_cv_lib_$ac_lib_var=no"
10879 LIBS="$ac_save_LIBS"
10882 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10883 echo "$ac_t""yes" 1>&6
10884 krb5crypto=k5crypto
10886 echo "$ac_t""no" 1>&6
10891 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
10892 echo "configure:10893: checking for main in -lkrb5" >&5
10893 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
10894 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10895 echo $ac_n "(cached) $ac_c" 1>&6
10897 ac_save_LIBS="$LIBS"
10898 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
10899 cat > conftest.$ac_ext <<EOF
10900 #line 10901 "configure"
10901 #include "confdefs.h"
10907 if { (eval echo configure:10908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10909 eval "ac_cv_lib_$ac_lib_var=yes"
10911 echo "configure: failed program was:" >&5
10912 cat conftest.$ac_ext >&5
10914 eval "ac_cv_lib_$ac_lib_var=no"
10917 LIBS="$ac_save_LIBS"
10920 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10921 echo "$ac_t""yes" 1>&6
10923 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
10925 echo "$ac_t""no" 1>&6
10930 elif test $krb5_impl = heimdal; then
10931 echo $ac_n "checking for main in -ldes""... $ac_c" 1>&6
10932 echo "configure:10933: checking for main in -ldes" >&5
10933 ac_lib_var=`echo des'_'main | sed 'y%./+-:%__p__%'`
10934 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10935 echo $ac_n "(cached) $ac_c" 1>&6
10937 ac_save_LIBS="$LIBS"
10939 cat > conftest.$ac_ext <<EOF
10940 #line 10941 "configure"
10941 #include "confdefs.h"
10947 if { (eval echo configure:10948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10949 eval "ac_cv_lib_$ac_lib_var=yes"
10951 echo "configure: failed program was:" >&5
10952 cat conftest.$ac_ext >&5
10954 eval "ac_cv_lib_$ac_lib_var=no"
10957 LIBS="$ac_save_LIBS"
10960 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10961 echo "$ac_t""yes" 1>&6
10964 echo "$ac_t""no" 1>&6
10969 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
10970 echo "configure:10971: checking for main in -lkrb5" >&5
10971 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
10972 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10973 echo $ac_n "(cached) $ac_c" 1>&6
10975 ac_save_LIBS="$LIBS"
10976 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
10977 cat > conftest.$ac_ext <<EOF
10978 #line 10979 "configure"
10979 #include "confdefs.h"
10985 if { (eval echo configure:10986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10987 eval "ac_cv_lib_$ac_lib_var=yes"
10989 echo "configure: failed program was:" >&5
10990 cat conftest.$ac_ext >&5
10992 eval "ac_cv_lib_$ac_lib_var=no"
10995 LIBS="$ac_save_LIBS"
10998 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10999 echo "$ac_t""yes" 1>&6
11001 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
11003 echo "$ac_t""no" 1>&6
11008 cat >> confdefs.h <<\EOF
11009 #define HAVE_HEIMDAL_KERBEROS 1
11015 echo "configure: warning: Unrecognized Kerberos5 Implementation" 1>&2
11018 if test $have_krb5 = yes ; then
11021 cat >> confdefs.h <<\EOF
11022 #define HAVE_KRB5 1
11026 if test $ol_with_kerberos = k5only ; then
11027 ol_with_kerberos=found
11030 elif test $ol_with_kerberos != auto ; then
11031 { echo "configure: error: Required Kerberos 5 support not available" 1>&2; exit 1; }
11037 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
11038 $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
11040 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
11042 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11043 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11044 echo "configure:11045: checking for $ac_hdr" >&5
11045 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11046 echo $ac_n "(cached) $ac_c" 1>&6
11048 cat > conftest.$ac_ext <<EOF
11049 #line 11050 "configure"
11050 #include "confdefs.h"
11053 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11054 { (eval echo configure:11055: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11055 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11056 if test -z "$ac_err"; then
11058 eval "ac_cv_header_$ac_safe=yes"
11061 echo "configure: failed program was:" >&5
11062 cat conftest.$ac_ext >&5
11064 eval "ac_cv_header_$ac_safe=no"
11068 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11069 echo "$ac_t""yes" 1>&6
11070 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11071 cat >> confdefs.h <<EOF
11072 #define $ac_tr_hdr 1
11076 echo "$ac_t""no" 1>&6
11081 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
11082 if test $krb5_impl = mit; then
11083 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
11084 echo "configure:11085: checking for main in -lkrb4" >&5
11085 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
11086 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11087 echo $ac_n "(cached) $ac_c" 1>&6
11089 ac_save_LIBS="$LIBS"
11090 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
11091 cat > conftest.$ac_ext <<EOF
11092 #line 11093 "configure"
11093 #include "confdefs.h"
11099 if { (eval echo configure:11100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11101 eval "ac_cv_lib_$ac_lib_var=yes"
11103 echo "configure: failed program was:" >&5
11104 cat conftest.$ac_ext >&5
11106 eval "ac_cv_lib_$ac_lib_var=no"
11109 LIBS="$ac_save_LIBS"
11112 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11113 echo "$ac_t""yes" 1>&6
11115 KRB4_LIBS="-lkrb4 -ldes425"
11117 echo "$ac_t""no" 1>&6
11122 elif test $krb5_impl = heimdal; then
11123 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
11124 echo "configure:11125: checking for main in -lkrb4" >&5
11125 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
11126 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11127 echo $ac_n "(cached) $ac_c" 1>&6
11129 ac_save_LIBS="$LIBS"
11130 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
11131 cat > conftest.$ac_ext <<EOF
11132 #line 11133 "configure"
11133 #include "confdefs.h"
11139 if { (eval echo configure:11140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11141 eval "ac_cv_lib_$ac_lib_var=yes"
11143 echo "configure: failed program was:" >&5
11144 cat conftest.$ac_ext >&5
11146 eval "ac_cv_lib_$ac_lib_var=no"
11149 LIBS="$ac_save_LIBS"
11152 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11153 echo "$ac_t""yes" 1>&6
11157 echo "$ac_t""no" 1>&6
11164 echo "configure: warning: Unrecongized Kerberos V Implementation" 1>&2
11167 if test $have_k425 = yes ; then
11168 ol_with_kerberos=found
11171 cat >> confdefs.h <<\EOF
11172 #define HAVE_KRB425 1
11175 cat >> confdefs.h <<\EOF
11176 #define HAVE_KRB4 1
11180 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
11181 echo "configure:11182: checking for des_debug in Kerberos libraries" >&5
11182 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
11183 echo $ac_n "(cached) $ac_c" 1>&6
11187 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
11188 cat > conftest.$ac_ext <<EOF
11189 #line 11190 "configure"
11190 #include "confdefs.h"
11192 #include <kerberosIV/krb.h>
11193 #include <kerberosIV/des.h>
11194 extern int des_debug;
11202 if { (eval echo configure:11203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11204 ol_cv_var_des_debug=yes
11206 echo "configure: failed program was:" >&5
11207 cat conftest.$ac_ext >&5
11209 ol_cv_var_des_debug=no
11216 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
11218 if test $ol_cv_var_des_debug = yes ; then
11219 cat >> confdefs.h <<\EOF
11220 #define HAVE_DES_DEBUG 1
11230 if test $ol_link_krb5 = yes ; then
11231 ol_with_kerberos=found
11234 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
11235 -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
11237 for ac_hdr in krb.h des.h krb-archaeology.h
11239 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11240 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11241 echo "configure:11242: checking for $ac_hdr" >&5
11242 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11243 echo $ac_n "(cached) $ac_c" 1>&6
11245 cat > conftest.$ac_ext <<EOF
11246 #line 11247 "configure"
11247 #include "confdefs.h"
11250 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11251 { (eval echo configure:11252: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11252 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11253 if test -z "$ac_err"; then
11255 eval "ac_cv_header_$ac_safe=yes"
11258 echo "configure: failed program was:" >&5
11259 cat conftest.$ac_ext >&5
11261 eval "ac_cv_header_$ac_safe=no"
11265 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11266 echo "$ac_t""yes" 1>&6
11267 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11268 cat >> confdefs.h <<EOF
11269 #define $ac_tr_hdr 1
11273 echo "$ac_t""no" 1>&6
11278 if test $ac_cv_header_krb_h = yes ; then
11279 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
11280 echo "configure:11281: checking for main in -lkrb" >&5
11281 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
11282 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11283 echo $ac_n "(cached) $ac_c" 1>&6
11285 ac_save_LIBS="$LIBS"
11286 LIBS="-lkrb -ldes $LIBS"
11287 cat > conftest.$ac_ext <<EOF
11288 #line 11289 "configure"
11289 #include "confdefs.h"
11295 if { (eval echo configure:11296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11297 eval "ac_cv_lib_$ac_lib_var=yes"
11299 echo "configure: failed program was:" >&5
11300 cat conftest.$ac_ext >&5
11302 eval "ac_cv_lib_$ac_lib_var=no"
11305 LIBS="$ac_save_LIBS"
11308 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11309 echo "$ac_t""yes" 1>&6
11312 echo "$ac_t""no" 1>&6
11317 if test $have_k4 = yes ; then
11318 ol_with_kerberos=found
11321 cat >> confdefs.h <<\EOF
11322 #define HAVE_KRB4 1
11326 KRB4_LIBS="-lkrb -ldes"
11328 if test $ac_cv_header_krb_archaeology_h = yes ; then
11329 cat >> confdefs.h <<\EOF
11330 #define HAVE_KTH_KERBEROS 1
11338 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
11341 elif test $ol_enable_kbind = yes ; then
11342 { echo "configure: error: Kerberos IV detection failed" 1>&2; exit 1; }
11345 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
11346 cat >> confdefs.h <<\EOF
11347 #define HAVE_KERBEROS 1
11351 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
11352 { echo "configure: error: Kerberos detection failed" 1>&2; exit 1; }
11357 if test $ol_with_tls != no ; then
11358 for ac_hdr in openssl/ssl.h ssl.h
11360 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11361 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11362 echo "configure:11363: checking for $ac_hdr" >&5
11363 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11364 echo $ac_n "(cached) $ac_c" 1>&6
11366 cat > conftest.$ac_ext <<EOF
11367 #line 11368 "configure"
11368 #include "confdefs.h"
11371 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11372 { (eval echo configure:11373: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11373 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11374 if test -z "$ac_err"; then
11376 eval "ac_cv_header_$ac_safe=yes"
11379 echo "configure: failed program was:" >&5
11380 cat conftest.$ac_ext >&5
11382 eval "ac_cv_header_$ac_safe=no"
11386 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11387 echo "$ac_t""yes" 1>&6
11388 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11389 cat >> confdefs.h <<EOF
11390 #define $ac_tr_hdr 1
11394 echo "$ac_t""no" 1>&6
11399 if test $ac_cv_header_openssl_ssl_h = yes \
11400 -o $ac_cv_header_ssl_h = yes ; then
11401 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
11402 echo "configure:11403: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
11403 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
11404 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11405 echo $ac_n "(cached) $ac_c" 1>&6
11407 ac_save_LIBS="$LIBS"
11408 LIBS="-lssl -lcrypto $LIBS"
11409 cat > conftest.$ac_ext <<EOF
11410 #line 11411 "configure"
11411 #include "confdefs.h"
11412 /* Override any gcc2 internal prototype to avoid an error. */
11413 /* We use char because int might match the return type of a gcc2
11414 builtin and then its argument prototype would still apply. */
11415 char SSLeay_add_ssl_algorithms();
11418 SSLeay_add_ssl_algorithms()
11421 if { (eval echo configure:11422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11423 eval "ac_cv_lib_$ac_lib_var=yes"
11425 echo "configure: failed program was:" >&5
11426 cat conftest.$ac_ext >&5
11428 eval "ac_cv_lib_$ac_lib_var=no"
11431 LIBS="$ac_save_LIBS"
11434 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11435 echo "$ac_t""yes" 1>&6
11439 echo "$ac_t""no" 1>&6
11444 if test $have_ssleay = no ; then
11445 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
11446 echo "configure:11447: checking for SSL_library_init in -lssl" >&5
11447 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
11448 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11449 echo $ac_n "(cached) $ac_c" 1>&6
11451 ac_save_LIBS="$LIBS"
11452 LIBS="-lssl -lcrypto $LIBS"
11453 cat > conftest.$ac_ext <<EOF
11454 #line 11455 "configure"
11455 #include "confdefs.h"
11456 /* Override any gcc2 internal prototype to avoid an error. */
11457 /* We use char because int might match the return type of a gcc2
11458 builtin and then its argument prototype would still apply. */
11459 char SSL_library_init();
11465 if { (eval echo configure:11466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11467 eval "ac_cv_lib_$ac_lib_var=yes"
11469 echo "configure: failed program was:" >&5
11470 cat conftest.$ac_ext >&5
11472 eval "ac_cv_lib_$ac_lib_var=no"
11475 LIBS="$ac_save_LIBS"
11478 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11479 echo "$ac_t""yes" 1>&6
11483 echo "$ac_t""no" 1>&6
11489 if test $have_ssleay = no ; then
11490 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
11491 echo "configure:11492: checking for ssl3_accept in -lssl" >&5
11492 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
11493 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11494 echo $ac_n "(cached) $ac_c" 1>&6
11496 ac_save_LIBS="$LIBS"
11497 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
11498 cat > conftest.$ac_ext <<EOF
11499 #line 11500 "configure"
11500 #include "confdefs.h"
11501 /* Override any gcc2 internal prototype to avoid an error. */
11502 /* We use char because int might match the return type of a gcc2
11503 builtin and then its argument prototype would still apply. */
11504 char ssl3_accept();
11510 if { (eval echo configure:11511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11512 eval "ac_cv_lib_$ac_lib_var=yes"
11514 echo "configure: failed program was:" >&5
11515 cat conftest.$ac_ext >&5
11517 eval "ac_cv_lib_$ac_lib_var=no"
11520 LIBS="$ac_save_LIBS"
11523 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11524 echo "$ac_t""yes" 1>&6
11528 echo "$ac_t""no" 1>&6
11534 if test $have_ssleay = yes ; then
11538 cat >> confdefs.h <<\EOF
11539 #define HAVE_SSLEAY 1
11543 if test $need_rsaref = yes; then
11544 cat >> confdefs.h <<\EOF
11545 #define HAVE_RSAREF 1
11549 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
11551 TLS_LIBS="-lssl -lcrypto"
11554 echo $ac_n "checking OpenSSL library version (CRL checking capability)""... $ac_c" 1>&6
11555 echo "configure:11556: checking OpenSSL library version (CRL checking capability)" >&5
11556 if eval "test \"\${ol_cv_ssl_crl_compat+set}\" = set"; then
11557 echo $ac_n "(cached) $ac_c" 1>&6
11560 cat > conftest.$ac_ext <<EOF
11561 #line 11562 "configure"
11562 #include "confdefs.h"
11564 #ifdef HAVE_OPENSSL_SSL_H
11565 #include <openssl/ssl.h>
11570 /* Require 0.9.7d+ */
11571 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
11572 char *__ssl_compat = "0.9.7d";
11576 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11577 egrep "__ssl_compat" >/dev/null 2>&1; then
11579 ol_cv_ssl_crl_compat=yes
11582 ol_cv_ssl_crl_compat=no
11588 echo "$ac_t""$ol_cv_ssl_crl_compat" 1>&6
11590 if test $ol_cv_ssl_crl_compat = no ; then
11593 cat >> confdefs.h <<\EOF
11594 #define HAVE_OPENSSL_CRL 1
11601 echo "configure: warning: TLS data protection not supported!" 1>&2
11605 if test $ol_link_tls = yes ; then
11606 cat >> confdefs.h <<\EOF
11612 elif test $ol_with_tls = auto ; then
11613 echo "configure: warning: Could not locate TLS/SSL package" 1>&2
11614 echo "configure: warning: TLS data protection not supported!" 1>&2
11616 elif test $ol_with_tls != no ; then
11617 { echo "configure: error: Could not locate TLS/SSL package" 1>&2; exit 1; }
11620 if test $ol_enable_lmpasswd != no; then
11621 if test $ol_link_tls != yes ; then
11622 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
11625 cat >> confdefs.h <<\EOF
11626 #define SLAPD_LMHASH 1
11633 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11634 -o $ol_with_threads = nt ; then
11637 echo $ac_n "checking for _beginthread""... $ac_c" 1>&6
11638 echo "configure:11639: checking for _beginthread" >&5
11639 if eval "test \"\${ac_cv_func__beginthread+set}\" = set"; then
11640 echo $ac_n "(cached) $ac_c" 1>&6
11642 cat > conftest.$ac_ext <<EOF
11643 #line 11644 "configure"
11644 #include "confdefs.h"
11645 /* System header to define __stub macros and hopefully few prototypes,
11646 which can conflict with char _beginthread(); below. */
11647 #include <assert.h>
11648 /* Override any gcc2 internal prototype to avoid an error. */
11649 /* We use char because int might match the return type of a gcc2
11650 builtin and then its argument prototype would still apply. */
11651 char _beginthread();
11656 /* The GNU C library defines this for functions which it implements
11657 to always fail with ENOSYS. Some functions are actually named
11658 something starting with __ and the normal name is an alias. */
11659 #if defined (__stub__beginthread) || defined (__stub____beginthread)
11667 if { (eval echo configure:11668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11669 eval "ac_cv_func__beginthread=yes"
11671 echo "configure: failed program was:" >&5
11672 cat conftest.$ac_ext >&5
11674 eval "ac_cv_func__beginthread=no"
11679 if eval "test \"`echo '$ac_cv_func_'_beginthread`\" = yes"; then
11680 echo "$ac_t""yes" 1>&6
11683 echo "$ac_t""no" 1>&6
11687 if test $ac_cv_func__beginthread = yes ; then
11688 cat >> confdefs.h <<\EOF
11689 #define HAVE_NT_THREADS 1
11692 ol_cv_nt_threads=yes
11696 if test "$ol_cv_nt_threads" = yes ; then
11698 ol_with_threads=found
11699 ol_with_yielding_select=yes
11701 cat >> confdefs.h <<\EOF
11702 #define HAVE_NT_SERVICE_MANAGER 1
11705 cat >> confdefs.h <<\EOF
11706 #define HAVE_NT_EVENT_LOG 1
11711 if test $ol_with_threads = nt ; then
11712 { echo "configure: error: could not locate NT Threads" 1>&2; exit 1; }
11716 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11717 -o $ol_with_threads = posix ; then
11719 for ac_hdr in pthread.h
11721 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11722 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11723 echo "configure:11724: checking for $ac_hdr" >&5
11724 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11725 echo $ac_n "(cached) $ac_c" 1>&6
11727 cat > conftest.$ac_ext <<EOF
11728 #line 11729 "configure"
11729 #include "confdefs.h"
11732 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11733 { (eval echo configure:11734: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11734 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11735 if test -z "$ac_err"; then
11737 eval "ac_cv_header_$ac_safe=yes"
11740 echo "configure: failed program was:" >&5
11741 cat conftest.$ac_ext >&5
11743 eval "ac_cv_header_$ac_safe=no"
11747 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11748 echo "$ac_t""yes" 1>&6
11749 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11750 cat >> confdefs.h <<EOF
11751 #define $ac_tr_hdr 1
11755 echo "$ac_t""no" 1>&6
11760 if test $ac_cv_header_pthread_h = yes ; then
11761 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
11762 echo "configure:11763: checking POSIX thread version" >&5
11763 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
11764 echo $ac_n "(cached) $ac_c" 1>&6
11767 cat > conftest.$ac_ext <<EOF
11768 #line 11769 "configure"
11769 #include "confdefs.h"
11771 # include <pthread.h>
11775 int i = PTHREAD_CREATE_JOINABLE;
11779 if { (eval echo configure:11780: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11782 cat > conftest.$ac_ext <<EOF
11783 #line 11784 "configure"
11784 #include "confdefs.h"
11785 #include <pthread.h>
11787 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11788 egrep "pthread_detach" >/dev/null 2>&1; then
11790 ol_cv_pthread_version=10
11793 ol_cv_pthread_version=8
11798 echo "configure: failed program was:" >&5
11799 cat conftest.$ac_ext >&5
11802 cat > conftest.$ac_ext <<EOF
11803 #line 11804 "configure"
11804 #include "confdefs.h"
11806 # include <pthread.h>
11807 # ifdef PTHREAD_CREATE_UNDETACHED
11812 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11813 egrep "draft7" >/dev/null 2>&1; then
11815 ol_cv_pthread_version=7
11819 cat > conftest.$ac_ext <<EOF
11820 #line 11821 "configure"
11821 #include "confdefs.h"
11822 #include <pthread.h>
11824 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11825 egrep "pthread_attr_init" >/dev/null 2>&1; then
11827 ol_cv_pthread_version=6
11831 cat > conftest.$ac_ext <<EOF
11832 #line 11833 "configure"
11833 #include "confdefs.h"
11835 # include <pthread.h>
11836 #ifdef PTHREAD_MUTEX_INITIALIZER
11841 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11842 egrep "draft5" >/dev/null 2>&1; then
11844 ol_cv_pthread_version=5
11847 ol_cv_pthread_version=4
11862 echo "$ac_t""$ol_cv_pthread_version" 1>&6
11865 if test $ol_cv_pthread_version != 0 ; then
11866 cat >> confdefs.h <<EOF
11867 #define HAVE_PTHREADS $ol_cv_pthread_version
11871 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
11874 # consider threads found
11875 ol_with_threads=found
11878 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
11879 echo "configure:11880: checking for LinuxThreads pthread.h" >&5
11880 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
11881 echo $ac_n "(cached) $ac_c" 1>&6
11883 cat > conftest.$ac_ext <<EOF
11884 #line 11885 "configure"
11885 #include "confdefs.h"
11886 #include <pthread.h>
11888 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11889 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
11891 ol_cv_header_linux_threads=yes
11894 ol_cv_header_linux_threads=no
11901 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
11902 if test $ol_cv_header_linux_threads = yes; then
11903 cat >> confdefs.h <<\EOF
11904 #define HAVE_LINUX_THREADS 1
11910 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
11911 echo "configure:11912: checking for GNU Pth pthread.h" >&5
11912 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
11913 echo $ac_n "(cached) $ac_c" 1>&6
11915 cat > conftest.$ac_ext <<EOF
11916 #line 11917 "configure"
11917 #include "confdefs.h"
11918 #include <pthread.h>
11919 #ifdef _POSIX_THREAD_IS_GNU_PTH
11924 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11925 egrep "__gnu_pth__" >/dev/null 2>&1; then
11927 ol_cv_header_gnu_pth_pthread_h=yes
11930 ol_cv_header_gnu_pth_pthread_h=no
11937 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
11940 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
11941 for ac_hdr in sched.h
11943 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11944 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11945 echo "configure:11946: checking for $ac_hdr" >&5
11946 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11947 echo $ac_n "(cached) $ac_c" 1>&6
11949 cat > conftest.$ac_ext <<EOF
11950 #line 11951 "configure"
11951 #include "confdefs.h"
11954 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11955 { (eval echo configure:11956: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11956 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11957 if test -z "$ac_err"; then
11959 eval "ac_cv_header_$ac_safe=yes"
11962 echo "configure: failed program was:" >&5
11963 cat conftest.$ac_ext >&5
11965 eval "ac_cv_header_$ac_safe=no"
11969 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11970 echo "$ac_t""yes" 1>&6
11971 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11972 cat >> confdefs.h <<EOF
11973 #define $ac_tr_hdr 1
11977 echo "$ac_t""no" 1>&6
11984 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
11985 echo "configure:11986: checking for pthread_create in default libraries" >&5
11986 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
11987 echo $ac_n "(cached) $ac_c" 1>&6
11990 if test "$cross_compiling" = yes; then
11991 cat > conftest.$ac_ext <<EOF
11992 #line 11993 "configure"
11993 #include "confdefs.h"
11994 /* pthread test headers */
11995 #include <pthread.h>
11996 #if HAVE_PTHREADS < 7
12000 #define NULL (void*)0
12003 static void *task(p)
12006 return (void *) (p == NULL);
12011 /* pthread test function */
12012 #ifndef PTHREAD_CREATE_DETACHED
12013 #define PTHREAD_CREATE_DETACHED 1
12017 int detach = PTHREAD_CREATE_DETACHED;
12019 #if HAVE_PTHREADS > 4
12020 /* Final pthreads */
12021 pthread_attr_t attr;
12023 status = pthread_attr_init(&attr);
12024 if( status ) return status;
12026 #if HAVE_PTHREADS < 7
12027 status = pthread_attr_setdetachstate(&attr, &detach);
12028 if( status < 0 ) status = errno;
12030 status = pthread_attr_setdetachstate(&attr, detach);
12032 if( status ) return status;
12033 status = pthread_create( &t, &attr, task, NULL );
12034 #if HAVE_PTHREADS < 7
12035 if( status < 0 ) status = errno;
12037 if( status ) return status;
12039 /* Draft 4 pthreads */
12040 status = pthread_create( &t, pthread_attr_default, task, NULL );
12041 if( status ) return errno;
12043 /* give thread a chance to complete */
12044 /* it should remain joinable and hence detachable */
12047 status = pthread_detach( &t );
12048 if( status ) return errno;
12051 #ifdef HAVE_LINUX_THREADS
12052 pthread_kill_other_threads_np();
12059 if { (eval echo configure:12060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12061 ol_cv_pthread_create=yes
12063 echo "configure: failed program was:" >&5
12064 cat conftest.$ac_ext >&5
12066 ol_cv_pthread_create=no
12070 cat > conftest.$ac_ext <<EOF
12071 #line 12072 "configure"
12072 #include "confdefs.h"
12073 /* pthread test headers */
12074 #include <pthread.h>
12075 #if HAVE_PTHREADS < 7
12079 #define NULL (void*)0
12082 static void *task(p)
12085 return (void *) (p == NULL);
12089 int main(argc, argv)
12094 /* pthread test function */
12095 #ifndef PTHREAD_CREATE_DETACHED
12096 #define PTHREAD_CREATE_DETACHED 1
12100 int detach = PTHREAD_CREATE_DETACHED;
12102 #if HAVE_PTHREADS > 4
12103 /* Final pthreads */
12104 pthread_attr_t attr;
12106 status = pthread_attr_init(&attr);
12107 if( status ) return status;
12109 #if HAVE_PTHREADS < 7
12110 status = pthread_attr_setdetachstate(&attr, &detach);
12111 if( status < 0 ) status = errno;
12113 status = pthread_attr_setdetachstate(&attr, detach);
12115 if( status ) return status;
12116 status = pthread_create( &t, &attr, task, NULL );
12117 #if HAVE_PTHREADS < 7
12118 if( status < 0 ) status = errno;
12120 if( status ) return status;
12122 /* Draft 4 pthreads */
12123 status = pthread_create( &t, pthread_attr_default, task, NULL );
12124 if( status ) return errno;
12126 /* give thread a chance to complete */
12127 /* it should remain joinable and hence detachable */
12130 status = pthread_detach( &t );
12131 if( status ) return errno;
12134 #ifdef HAVE_LINUX_THREADS
12135 pthread_kill_other_threads_np();
12143 if { (eval echo configure:12144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
12145 ol_cv_pthread_create=yes
12147 echo "configure: failed program was:" >&5
12148 cat conftest.$ac_ext >&5
12150 ol_cv_pthread_create=no
12157 echo "$ac_t""$ol_cv_pthread_create" 1>&6
12159 if test $ol_cv_pthread_create != no ; then
12160 ol_link_threads=posix
12161 ol_link_pthreads=""
12164 # Pthread try link: -kthread (ol_cv_pthread_kthread)
12165 if test "$ol_link_threads" = no ; then
12167 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
12168 echo "configure:12169: checking for pthread link with -kthread" >&5
12169 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
12170 echo $ac_n "(cached) $ac_c" 1>&6
12175 LIBS="-kthread $LIBS"
12177 if test "$cross_compiling" = yes; then
12178 cat > conftest.$ac_ext <<EOF
12179 #line 12180 "configure"
12180 #include "confdefs.h"
12181 /* pthread test headers */
12182 #include <pthread.h>
12183 #if HAVE_PTHREADS < 7
12187 #define NULL (void*)0
12190 static void *task(p)
12193 return (void *) (p == NULL);
12198 /* pthread test function */
12199 #ifndef PTHREAD_CREATE_DETACHED
12200 #define PTHREAD_CREATE_DETACHED 1
12204 int detach = PTHREAD_CREATE_DETACHED;
12206 #if HAVE_PTHREADS > 4
12207 /* Final pthreads */
12208 pthread_attr_t attr;
12210 status = pthread_attr_init(&attr);
12211 if( status ) return status;
12213 #if HAVE_PTHREADS < 7
12214 status = pthread_attr_setdetachstate(&attr, &detach);
12215 if( status < 0 ) status = errno;
12217 status = pthread_attr_setdetachstate(&attr, detach);
12219 if( status ) return status;
12220 status = pthread_create( &t, &attr, task, NULL );
12221 #if HAVE_PTHREADS < 7
12222 if( status < 0 ) status = errno;
12224 if( status ) return status;
12226 /* Draft 4 pthreads */
12227 status = pthread_create( &t, pthread_attr_default, task, NULL );
12228 if( status ) return errno;
12230 /* give thread a chance to complete */
12231 /* it should remain joinable and hence detachable */
12234 status = pthread_detach( &t );
12235 if( status ) return errno;
12238 #ifdef HAVE_LINUX_THREADS
12239 pthread_kill_other_threads_np();
12246 if { (eval echo configure:12247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12248 ol_cv_pthread_kthread=yes
12250 echo "configure: failed program was:" >&5
12251 cat conftest.$ac_ext >&5
12253 ol_cv_pthread_kthread=no
12257 cat > conftest.$ac_ext <<EOF
12258 #line 12259 "configure"
12259 #include "confdefs.h"
12260 /* pthread test headers */
12261 #include <pthread.h>
12262 #if HAVE_PTHREADS < 7
12266 #define NULL (void*)0
12269 static void *task(p)
12272 return (void *) (p == NULL);
12276 int main(argc, argv)
12281 /* pthread test function */
12282 #ifndef PTHREAD_CREATE_DETACHED
12283 #define PTHREAD_CREATE_DETACHED 1
12287 int detach = PTHREAD_CREATE_DETACHED;
12289 #if HAVE_PTHREADS > 4
12290 /* Final pthreads */
12291 pthread_attr_t attr;
12293 status = pthread_attr_init(&attr);
12294 if( status ) return status;
12296 #if HAVE_PTHREADS < 7
12297 status = pthread_attr_setdetachstate(&attr, &detach);
12298 if( status < 0 ) status = errno;
12300 status = pthread_attr_setdetachstate(&attr, detach);
12302 if( status ) return status;
12303 status = pthread_create( &t, &attr, task, NULL );
12304 #if HAVE_PTHREADS < 7
12305 if( status < 0 ) status = errno;
12307 if( status ) return status;
12309 /* Draft 4 pthreads */
12310 status = pthread_create( &t, pthread_attr_default, task, NULL );
12311 if( status ) return errno;
12313 /* give thread a chance to complete */
12314 /* it should remain joinable and hence detachable */
12317 status = pthread_detach( &t );
12318 if( status ) return errno;
12321 #ifdef HAVE_LINUX_THREADS
12322 pthread_kill_other_threads_np();
12330 if { (eval echo configure:12331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
12332 ol_cv_pthread_kthread=yes
12334 echo "configure: failed program was:" >&5
12335 cat conftest.$ac_ext >&5
12337 ol_cv_pthread_kthread=no
12348 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
12350 if test $ol_cv_pthread_kthread = yes ; then
12351 ol_link_pthreads="-kthread"
12352 ol_link_threads=posix
12356 # Pthread try link: -pthread (ol_cv_pthread_pthread)
12357 if test "$ol_link_threads" = no ; then
12359 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
12360 echo "configure:12361: checking for pthread link with -pthread" >&5
12361 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
12362 echo $ac_n "(cached) $ac_c" 1>&6
12367 LIBS="-pthread $LIBS"
12369 if test "$cross_compiling" = yes; then
12370 cat > conftest.$ac_ext <<EOF
12371 #line 12372 "configure"
12372 #include "confdefs.h"
12373 /* pthread test headers */
12374 #include <pthread.h>
12375 #if HAVE_PTHREADS < 7
12379 #define NULL (void*)0
12382 static void *task(p)
12385 return (void *) (p == NULL);
12390 /* pthread test function */
12391 #ifndef PTHREAD_CREATE_DETACHED
12392 #define PTHREAD_CREATE_DETACHED 1
12396 int detach = PTHREAD_CREATE_DETACHED;
12398 #if HAVE_PTHREADS > 4
12399 /* Final pthreads */
12400 pthread_attr_t attr;
12402 status = pthread_attr_init(&attr);
12403 if( status ) return status;
12405 #if HAVE_PTHREADS < 7
12406 status = pthread_attr_setdetachstate(&attr, &detach);
12407 if( status < 0 ) status = errno;
12409 status = pthread_attr_setdetachstate(&attr, detach);
12411 if( status ) return status;
12412 status = pthread_create( &t, &attr, task, NULL );
12413 #if HAVE_PTHREADS < 7
12414 if( status < 0 ) status = errno;
12416 if( status ) return status;
12418 /* Draft 4 pthreads */
12419 status = pthread_create( &t, pthread_attr_default, task, NULL );
12420 if( status ) return errno;
12422 /* give thread a chance to complete */
12423 /* it should remain joinable and hence detachable */
12426 status = pthread_detach( &t );
12427 if( status ) return errno;
12430 #ifdef HAVE_LINUX_THREADS
12431 pthread_kill_other_threads_np();
12438 if { (eval echo configure:12439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12440 ol_cv_pthread_pthread=yes
12442 echo "configure: failed program was:" >&5
12443 cat conftest.$ac_ext >&5
12445 ol_cv_pthread_pthread=no
12449 cat > conftest.$ac_ext <<EOF
12450 #line 12451 "configure"
12451 #include "confdefs.h"
12452 /* pthread test headers */
12453 #include <pthread.h>
12454 #if HAVE_PTHREADS < 7
12458 #define NULL (void*)0
12461 static void *task(p)
12464 return (void *) (p == NULL);
12468 int main(argc, argv)
12473 /* pthread test function */
12474 #ifndef PTHREAD_CREATE_DETACHED
12475 #define PTHREAD_CREATE_DETACHED 1
12479 int detach = PTHREAD_CREATE_DETACHED;
12481 #if HAVE_PTHREADS > 4
12482 /* Final pthreads */
12483 pthread_attr_t attr;
12485 status = pthread_attr_init(&attr);
12486 if( status ) return status;
12488 #if HAVE_PTHREADS < 7
12489 status = pthread_attr_setdetachstate(&attr, &detach);
12490 if( status < 0 ) status = errno;
12492 status = pthread_attr_setdetachstate(&attr, detach);
12494 if( status ) return status;
12495 status = pthread_create( &t, &attr, task, NULL );
12496 #if HAVE_PTHREADS < 7
12497 if( status < 0 ) status = errno;
12499 if( status ) return status;
12501 /* Draft 4 pthreads */
12502 status = pthread_create( &t, pthread_attr_default, task, NULL );
12503 if( status ) return errno;
12505 /* give thread a chance to complete */
12506 /* it should remain joinable and hence detachable */
12509 status = pthread_detach( &t );
12510 if( status ) return errno;
12513 #ifdef HAVE_LINUX_THREADS
12514 pthread_kill_other_threads_np();
12522 if { (eval echo configure:12523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
12524 ol_cv_pthread_pthread=yes
12526 echo "configure: failed program was:" >&5
12527 cat conftest.$ac_ext >&5
12529 ol_cv_pthread_pthread=no
12540 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
12542 if test $ol_cv_pthread_pthread = yes ; then
12543 ol_link_pthreads="-pthread"
12544 ol_link_threads=posix
12548 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
12549 if test "$ol_link_threads" = no ; then
12551 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
12552 echo "configure:12553: checking for pthread link with -pthreads" >&5
12553 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
12554 echo $ac_n "(cached) $ac_c" 1>&6
12559 LIBS="-pthreads $LIBS"
12561 if test "$cross_compiling" = yes; then
12562 cat > conftest.$ac_ext <<EOF
12563 #line 12564 "configure"
12564 #include "confdefs.h"
12565 /* pthread test headers */
12566 #include <pthread.h>
12567 #if HAVE_PTHREADS < 7
12571 #define NULL (void*)0
12574 static void *task(p)
12577 return (void *) (p == NULL);
12582 /* pthread test function */
12583 #ifndef PTHREAD_CREATE_DETACHED
12584 #define PTHREAD_CREATE_DETACHED 1
12588 int detach = PTHREAD_CREATE_DETACHED;
12590 #if HAVE_PTHREADS > 4
12591 /* Final pthreads */
12592 pthread_attr_t attr;
12594 status = pthread_attr_init(&attr);
12595 if( status ) return status;
12597 #if HAVE_PTHREADS < 7
12598 status = pthread_attr_setdetachstate(&attr, &detach);
12599 if( status < 0 ) status = errno;
12601 status = pthread_attr_setdetachstate(&attr, detach);
12603 if( status ) return status;
12604 status = pthread_create( &t, &attr, task, NULL );
12605 #if HAVE_PTHREADS < 7
12606 if( status < 0 ) status = errno;
12608 if( status ) return status;
12610 /* Draft 4 pthreads */
12611 status = pthread_create( &t, pthread_attr_default, task, NULL );
12612 if( status ) return errno;
12614 /* give thread a chance to complete */
12615 /* it should remain joinable and hence detachable */
12618 status = pthread_detach( &t );
12619 if( status ) return errno;
12622 #ifdef HAVE_LINUX_THREADS
12623 pthread_kill_other_threads_np();
12630 if { (eval echo configure:12631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12632 ol_cv_pthread_pthreads=yes
12634 echo "configure: failed program was:" >&5
12635 cat conftest.$ac_ext >&5
12637 ol_cv_pthread_pthreads=no
12641 cat > conftest.$ac_ext <<EOF
12642 #line 12643 "configure"
12643 #include "confdefs.h"
12644 /* pthread test headers */
12645 #include <pthread.h>
12646 #if HAVE_PTHREADS < 7
12650 #define NULL (void*)0
12653 static void *task(p)
12656 return (void *) (p == NULL);
12660 int main(argc, argv)
12665 /* pthread test function */
12666 #ifndef PTHREAD_CREATE_DETACHED
12667 #define PTHREAD_CREATE_DETACHED 1
12671 int detach = PTHREAD_CREATE_DETACHED;
12673 #if HAVE_PTHREADS > 4
12674 /* Final pthreads */
12675 pthread_attr_t attr;
12677 status = pthread_attr_init(&attr);
12678 if( status ) return status;
12680 #if HAVE_PTHREADS < 7
12681 status = pthread_attr_setdetachstate(&attr, &detach);
12682 if( status < 0 ) status = errno;
12684 status = pthread_attr_setdetachstate(&attr, detach);
12686 if( status ) return status;
12687 status = pthread_create( &t, &attr, task, NULL );
12688 #if HAVE_PTHREADS < 7
12689 if( status < 0 ) status = errno;
12691 if( status ) return status;
12693 /* Draft 4 pthreads */
12694 status = pthread_create( &t, pthread_attr_default, task, NULL );
12695 if( status ) return errno;
12697 /* give thread a chance to complete */
12698 /* it should remain joinable and hence detachable */
12701 status = pthread_detach( &t );
12702 if( status ) return errno;
12705 #ifdef HAVE_LINUX_THREADS
12706 pthread_kill_other_threads_np();
12714 if { (eval echo configure:12715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
12716 ol_cv_pthread_pthreads=yes
12718 echo "configure: failed program was:" >&5
12719 cat conftest.$ac_ext >&5
12721 ol_cv_pthread_pthreads=no
12732 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
12734 if test $ol_cv_pthread_pthreads = yes ; then
12735 ol_link_pthreads="-pthreads"
12736 ol_link_threads=posix
12740 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
12741 if test "$ol_link_threads" = no ; then
12743 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
12744 echo "configure:12745: checking for pthread link with -mthreads" >&5
12745 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
12746 echo $ac_n "(cached) $ac_c" 1>&6
12751 LIBS="-mthreads $LIBS"
12753 if test "$cross_compiling" = yes; then
12754 cat > conftest.$ac_ext <<EOF
12755 #line 12756 "configure"
12756 #include "confdefs.h"
12757 /* pthread test headers */
12758 #include <pthread.h>
12759 #if HAVE_PTHREADS < 7
12763 #define NULL (void*)0
12766 static void *task(p)
12769 return (void *) (p == NULL);
12774 /* pthread test function */
12775 #ifndef PTHREAD_CREATE_DETACHED
12776 #define PTHREAD_CREATE_DETACHED 1
12780 int detach = PTHREAD_CREATE_DETACHED;
12782 #if HAVE_PTHREADS > 4
12783 /* Final pthreads */
12784 pthread_attr_t attr;
12786 status = pthread_attr_init(&attr);
12787 if( status ) return status;
12789 #if HAVE_PTHREADS < 7
12790 status = pthread_attr_setdetachstate(&attr, &detach);
12791 if( status < 0 ) status = errno;
12793 status = pthread_attr_setdetachstate(&attr, detach);
12795 if( status ) return status;
12796 status = pthread_create( &t, &attr, task, NULL );
12797 #if HAVE_PTHREADS < 7
12798 if( status < 0 ) status = errno;
12800 if( status ) return status;
12802 /* Draft 4 pthreads */
12803 status = pthread_create( &t, pthread_attr_default, task, NULL );
12804 if( status ) return errno;
12806 /* give thread a chance to complete */
12807 /* it should remain joinable and hence detachable */
12810 status = pthread_detach( &t );
12811 if( status ) return errno;
12814 #ifdef HAVE_LINUX_THREADS
12815 pthread_kill_other_threads_np();
12822 if { (eval echo configure:12823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12824 ol_cv_pthread_mthreads=yes
12826 echo "configure: failed program was:" >&5
12827 cat conftest.$ac_ext >&5
12829 ol_cv_pthread_mthreads=no
12833 cat > conftest.$ac_ext <<EOF
12834 #line 12835 "configure"
12835 #include "confdefs.h"
12836 /* pthread test headers */
12837 #include <pthread.h>
12838 #if HAVE_PTHREADS < 7
12842 #define NULL (void*)0
12845 static void *task(p)
12848 return (void *) (p == NULL);
12852 int main(argc, argv)
12857 /* pthread test function */
12858 #ifndef PTHREAD_CREATE_DETACHED
12859 #define PTHREAD_CREATE_DETACHED 1
12863 int detach = PTHREAD_CREATE_DETACHED;
12865 #if HAVE_PTHREADS > 4
12866 /* Final pthreads */
12867 pthread_attr_t attr;
12869 status = pthread_attr_init(&attr);
12870 if( status ) return status;
12872 #if HAVE_PTHREADS < 7
12873 status = pthread_attr_setdetachstate(&attr, &detach);
12874 if( status < 0 ) status = errno;
12876 status = pthread_attr_setdetachstate(&attr, detach);
12878 if( status ) return status;
12879 status = pthread_create( &t, &attr, task, NULL );
12880 #if HAVE_PTHREADS < 7
12881 if( status < 0 ) status = errno;
12883 if( status ) return status;
12885 /* Draft 4 pthreads */
12886 status = pthread_create( &t, pthread_attr_default, task, NULL );
12887 if( status ) return errno;
12889 /* give thread a chance to complete */
12890 /* it should remain joinable and hence detachable */
12893 status = pthread_detach( &t );
12894 if( status ) return errno;
12897 #ifdef HAVE_LINUX_THREADS
12898 pthread_kill_other_threads_np();
12906 if { (eval echo configure:12907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
12908 ol_cv_pthread_mthreads=yes
12910 echo "configure: failed program was:" >&5
12911 cat conftest.$ac_ext >&5
12913 ol_cv_pthread_mthreads=no
12924 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
12926 if test $ol_cv_pthread_mthreads = yes ; then
12927 ol_link_pthreads="-mthreads"
12928 ol_link_threads=posix
12932 # Pthread try link: -thread (ol_cv_pthread_thread)
12933 if test "$ol_link_threads" = no ; then
12935 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
12936 echo "configure:12937: checking for pthread link with -thread" >&5
12937 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
12938 echo $ac_n "(cached) $ac_c" 1>&6
12943 LIBS="-thread $LIBS"
12945 if test "$cross_compiling" = yes; then
12946 cat > conftest.$ac_ext <<EOF
12947 #line 12948 "configure"
12948 #include "confdefs.h"
12949 /* pthread test headers */
12950 #include <pthread.h>
12951 #if HAVE_PTHREADS < 7
12955 #define NULL (void*)0
12958 static void *task(p)
12961 return (void *) (p == NULL);
12966 /* pthread test function */
12967 #ifndef PTHREAD_CREATE_DETACHED
12968 #define PTHREAD_CREATE_DETACHED 1
12972 int detach = PTHREAD_CREATE_DETACHED;
12974 #if HAVE_PTHREADS > 4
12975 /* Final pthreads */
12976 pthread_attr_t attr;
12978 status = pthread_attr_init(&attr);
12979 if( status ) return status;
12981 #if HAVE_PTHREADS < 7
12982 status = pthread_attr_setdetachstate(&attr, &detach);
12983 if( status < 0 ) status = errno;
12985 status = pthread_attr_setdetachstate(&attr, detach);
12987 if( status ) return status;
12988 status = pthread_create( &t, &attr, task, NULL );
12989 #if HAVE_PTHREADS < 7
12990 if( status < 0 ) status = errno;
12992 if( status ) return status;
12994 /* Draft 4 pthreads */
12995 status = pthread_create( &t, pthread_attr_default, task, NULL );
12996 if( status ) return errno;
12998 /* give thread a chance to complete */
12999 /* it should remain joinable and hence detachable */
13002 status = pthread_detach( &t );
13003 if( status ) return errno;
13006 #ifdef HAVE_LINUX_THREADS
13007 pthread_kill_other_threads_np();
13014 if { (eval echo configure:13015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13016 ol_cv_pthread_thread=yes
13018 echo "configure: failed program was:" >&5
13019 cat conftest.$ac_ext >&5
13021 ol_cv_pthread_thread=no
13025 cat > conftest.$ac_ext <<EOF
13026 #line 13027 "configure"
13027 #include "confdefs.h"
13028 /* pthread test headers */
13029 #include <pthread.h>
13030 #if HAVE_PTHREADS < 7
13034 #define NULL (void*)0
13037 static void *task(p)
13040 return (void *) (p == NULL);
13044 int main(argc, argv)
13049 /* pthread test function */
13050 #ifndef PTHREAD_CREATE_DETACHED
13051 #define PTHREAD_CREATE_DETACHED 1
13055 int detach = PTHREAD_CREATE_DETACHED;
13057 #if HAVE_PTHREADS > 4
13058 /* Final pthreads */
13059 pthread_attr_t attr;
13061 status = pthread_attr_init(&attr);
13062 if( status ) return status;
13064 #if HAVE_PTHREADS < 7
13065 status = pthread_attr_setdetachstate(&attr, &detach);
13066 if( status < 0 ) status = errno;
13068 status = pthread_attr_setdetachstate(&attr, detach);
13070 if( status ) return status;
13071 status = pthread_create( &t, &attr, task, NULL );
13072 #if HAVE_PTHREADS < 7
13073 if( status < 0 ) status = errno;
13075 if( status ) return status;
13077 /* Draft 4 pthreads */
13078 status = pthread_create( &t, pthread_attr_default, task, NULL );
13079 if( status ) return errno;
13081 /* give thread a chance to complete */
13082 /* it should remain joinable and hence detachable */
13085 status = pthread_detach( &t );
13086 if( status ) return errno;
13089 #ifdef HAVE_LINUX_THREADS
13090 pthread_kill_other_threads_np();
13098 if { (eval echo configure:13099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
13100 ol_cv_pthread_thread=yes
13102 echo "configure: failed program was:" >&5
13103 cat conftest.$ac_ext >&5
13105 ol_cv_pthread_thread=no
13116 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
13118 if test $ol_cv_pthread_thread = yes ; then
13119 ol_link_pthreads="-thread"
13120 ol_link_threads=posix
13125 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
13126 if test "$ol_link_threads" = no ; then
13127 # try -lpthread -lmach -lexc -lc_r
13128 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
13129 echo "configure:13130: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
13130 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
13131 echo $ac_n "(cached) $ac_c" 1>&6
13136 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
13138 if test "$cross_compiling" = yes; then
13139 cat > conftest.$ac_ext <<EOF
13140 #line 13141 "configure"
13141 #include "confdefs.h"
13142 /* pthread test headers */
13143 #include <pthread.h>
13144 #if HAVE_PTHREADS < 7
13148 #define NULL (void*)0
13151 static void *task(p)
13154 return (void *) (p == NULL);
13159 /* pthread test function */
13160 #ifndef PTHREAD_CREATE_DETACHED
13161 #define PTHREAD_CREATE_DETACHED 1
13165 int detach = PTHREAD_CREATE_DETACHED;
13167 #if HAVE_PTHREADS > 4
13168 /* Final pthreads */
13169 pthread_attr_t attr;
13171 status = pthread_attr_init(&attr);
13172 if( status ) return status;
13174 #if HAVE_PTHREADS < 7
13175 status = pthread_attr_setdetachstate(&attr, &detach);
13176 if( status < 0 ) status = errno;
13178 status = pthread_attr_setdetachstate(&attr, detach);
13180 if( status ) return status;
13181 status = pthread_create( &t, &attr, task, NULL );
13182 #if HAVE_PTHREADS < 7
13183 if( status < 0 ) status = errno;
13185 if( status ) return status;
13187 /* Draft 4 pthreads */
13188 status = pthread_create( &t, pthread_attr_default, task, NULL );
13189 if( status ) return errno;
13191 /* give thread a chance to complete */
13192 /* it should remain joinable and hence detachable */
13195 status = pthread_detach( &t );
13196 if( status ) return errno;
13199 #ifdef HAVE_LINUX_THREADS
13200 pthread_kill_other_threads_np();
13207 if { (eval echo configure:13208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13209 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
13211 echo "configure: failed program was:" >&5
13212 cat conftest.$ac_ext >&5
13214 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
13218 cat > conftest.$ac_ext <<EOF
13219 #line 13220 "configure"
13220 #include "confdefs.h"
13221 /* pthread test headers */
13222 #include <pthread.h>
13223 #if HAVE_PTHREADS < 7
13227 #define NULL (void*)0
13230 static void *task(p)
13233 return (void *) (p == NULL);
13237 int main(argc, argv)
13242 /* pthread test function */
13243 #ifndef PTHREAD_CREATE_DETACHED
13244 #define PTHREAD_CREATE_DETACHED 1
13248 int detach = PTHREAD_CREATE_DETACHED;
13250 #if HAVE_PTHREADS > 4
13251 /* Final pthreads */
13252 pthread_attr_t attr;
13254 status = pthread_attr_init(&attr);
13255 if( status ) return status;
13257 #if HAVE_PTHREADS < 7
13258 status = pthread_attr_setdetachstate(&attr, &detach);
13259 if( status < 0 ) status = errno;
13261 status = pthread_attr_setdetachstate(&attr, detach);
13263 if( status ) return status;
13264 status = pthread_create( &t, &attr, task, NULL );
13265 #if HAVE_PTHREADS < 7
13266 if( status < 0 ) status = errno;
13268 if( status ) return status;
13270 /* Draft 4 pthreads */
13271 status = pthread_create( &t, pthread_attr_default, task, NULL );
13272 if( status ) return errno;
13274 /* give thread a chance to complete */
13275 /* it should remain joinable and hence detachable */
13278 status = pthread_detach( &t );
13279 if( status ) return errno;
13282 #ifdef HAVE_LINUX_THREADS
13283 pthread_kill_other_threads_np();
13291 if { (eval echo configure:13292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
13293 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
13295 echo "configure: failed program was:" >&5
13296 cat conftest.$ac_ext >&5
13298 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
13309 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
13311 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
13312 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
13313 ol_link_threads=posix
13317 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
13318 if test "$ol_link_threads" = no ; then
13319 # try -lpthread -lmach -lexc
13320 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
13321 echo "configure:13322: checking for pthread link with -lpthread -lmach -lexc" >&5
13322 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
13323 echo $ac_n "(cached) $ac_c" 1>&6
13328 LIBS="-lpthread -lmach -lexc $LIBS"
13330 if test "$cross_compiling" = yes; then
13331 cat > conftest.$ac_ext <<EOF
13332 #line 13333 "configure"
13333 #include "confdefs.h"
13334 /* pthread test headers */
13335 #include <pthread.h>
13336 #if HAVE_PTHREADS < 7
13340 #define NULL (void*)0
13343 static void *task(p)
13346 return (void *) (p == NULL);
13351 /* pthread test function */
13352 #ifndef PTHREAD_CREATE_DETACHED
13353 #define PTHREAD_CREATE_DETACHED 1
13357 int detach = PTHREAD_CREATE_DETACHED;
13359 #if HAVE_PTHREADS > 4
13360 /* Final pthreads */
13361 pthread_attr_t attr;
13363 status = pthread_attr_init(&attr);
13364 if( status ) return status;
13366 #if HAVE_PTHREADS < 7
13367 status = pthread_attr_setdetachstate(&attr, &detach);
13368 if( status < 0 ) status = errno;
13370 status = pthread_attr_setdetachstate(&attr, detach);
13372 if( status ) return status;
13373 status = pthread_create( &t, &attr, task, NULL );
13374 #if HAVE_PTHREADS < 7
13375 if( status < 0 ) status = errno;
13377 if( status ) return status;
13379 /* Draft 4 pthreads */
13380 status = pthread_create( &t, pthread_attr_default, task, NULL );
13381 if( status ) return errno;
13383 /* give thread a chance to complete */
13384 /* it should remain joinable and hence detachable */
13387 status = pthread_detach( &t );
13388 if( status ) return errno;
13391 #ifdef HAVE_LINUX_THREADS
13392 pthread_kill_other_threads_np();
13399 if { (eval echo configure:13400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13401 ol_cv_pthread_lpthread_lmach_lexc=yes
13403 echo "configure: failed program was:" >&5
13404 cat conftest.$ac_ext >&5
13406 ol_cv_pthread_lpthread_lmach_lexc=no
13410 cat > conftest.$ac_ext <<EOF
13411 #line 13412 "configure"
13412 #include "confdefs.h"
13413 /* pthread test headers */
13414 #include <pthread.h>
13415 #if HAVE_PTHREADS < 7
13419 #define NULL (void*)0
13422 static void *task(p)
13425 return (void *) (p == NULL);
13429 int main(argc, argv)
13434 /* pthread test function */
13435 #ifndef PTHREAD_CREATE_DETACHED
13436 #define PTHREAD_CREATE_DETACHED 1
13440 int detach = PTHREAD_CREATE_DETACHED;
13442 #if HAVE_PTHREADS > 4
13443 /* Final pthreads */
13444 pthread_attr_t attr;
13446 status = pthread_attr_init(&attr);
13447 if( status ) return status;
13449 #if HAVE_PTHREADS < 7
13450 status = pthread_attr_setdetachstate(&attr, &detach);
13451 if( status < 0 ) status = errno;
13453 status = pthread_attr_setdetachstate(&attr, detach);
13455 if( status ) return status;
13456 status = pthread_create( &t, &attr, task, NULL );
13457 #if HAVE_PTHREADS < 7
13458 if( status < 0 ) status = errno;
13460 if( status ) return status;
13462 /* Draft 4 pthreads */
13463 status = pthread_create( &t, pthread_attr_default, task, NULL );
13464 if( status ) return errno;
13466 /* give thread a chance to complete */
13467 /* it should remain joinable and hence detachable */
13470 status = pthread_detach( &t );
13471 if( status ) return errno;
13474 #ifdef HAVE_LINUX_THREADS
13475 pthread_kill_other_threads_np();
13483 if { (eval echo configure:13484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
13485 ol_cv_pthread_lpthread_lmach_lexc=yes
13487 echo "configure: failed program was:" >&5
13488 cat conftest.$ac_ext >&5
13490 ol_cv_pthread_lpthread_lmach_lexc=no
13501 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
13503 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
13504 ol_link_pthreads="-lpthread -lmach -lexc"
13505 ol_link_threads=posix
13510 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
13511 if test "$ol_link_threads" = no ; then
13512 # try -lpthread -Wl,-woff,85
13513 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
13514 echo "configure:13515: checking for pthread link with -lpthread -Wl,-woff,85" >&5
13515 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
13516 echo $ac_n "(cached) $ac_c" 1>&6
13521 LIBS="-lpthread -Wl,-woff,85 $LIBS"
13523 if test "$cross_compiling" = yes; then
13524 cat > conftest.$ac_ext <<EOF
13525 #line 13526 "configure"
13526 #include "confdefs.h"
13527 /* pthread test headers */
13528 #include <pthread.h>
13529 #if HAVE_PTHREADS < 7
13533 #define NULL (void*)0
13536 static void *task(p)
13539 return (void *) (p == NULL);
13544 /* pthread test function */
13545 #ifndef PTHREAD_CREATE_DETACHED
13546 #define PTHREAD_CREATE_DETACHED 1
13550 int detach = PTHREAD_CREATE_DETACHED;
13552 #if HAVE_PTHREADS > 4
13553 /* Final pthreads */
13554 pthread_attr_t attr;
13556 status = pthread_attr_init(&attr);
13557 if( status ) return status;
13559 #if HAVE_PTHREADS < 7
13560 status = pthread_attr_setdetachstate(&attr, &detach);
13561 if( status < 0 ) status = errno;
13563 status = pthread_attr_setdetachstate(&attr, detach);
13565 if( status ) return status;
13566 status = pthread_create( &t, &attr, task, NULL );
13567 #if HAVE_PTHREADS < 7
13568 if( status < 0 ) status = errno;
13570 if( status ) return status;
13572 /* Draft 4 pthreads */
13573 status = pthread_create( &t, pthread_attr_default, task, NULL );
13574 if( status ) return errno;
13576 /* give thread a chance to complete */
13577 /* it should remain joinable and hence detachable */
13580 status = pthread_detach( &t );
13581 if( status ) return errno;
13584 #ifdef HAVE_LINUX_THREADS
13585 pthread_kill_other_threads_np();
13592 if { (eval echo configure:13593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13594 ol_cv_pthread_lib_lpthread_woff=yes
13596 echo "configure: failed program was:" >&5
13597 cat conftest.$ac_ext >&5
13599 ol_cv_pthread_lib_lpthread_woff=no
13603 cat > conftest.$ac_ext <<EOF
13604 #line 13605 "configure"
13605 #include "confdefs.h"
13606 /* pthread test headers */
13607 #include <pthread.h>
13608 #if HAVE_PTHREADS < 7
13612 #define NULL (void*)0
13615 static void *task(p)
13618 return (void *) (p == NULL);
13622 int main(argc, argv)
13627 /* pthread test function */
13628 #ifndef PTHREAD_CREATE_DETACHED
13629 #define PTHREAD_CREATE_DETACHED 1
13633 int detach = PTHREAD_CREATE_DETACHED;
13635 #if HAVE_PTHREADS > 4
13636 /* Final pthreads */
13637 pthread_attr_t attr;
13639 status = pthread_attr_init(&attr);
13640 if( status ) return status;
13642 #if HAVE_PTHREADS < 7
13643 status = pthread_attr_setdetachstate(&attr, &detach);
13644 if( status < 0 ) status = errno;
13646 status = pthread_attr_setdetachstate(&attr, detach);
13648 if( status ) return status;
13649 status = pthread_create( &t, &attr, task, NULL );
13650 #if HAVE_PTHREADS < 7
13651 if( status < 0 ) status = errno;
13653 if( status ) return status;
13655 /* Draft 4 pthreads */
13656 status = pthread_create( &t, pthread_attr_default, task, NULL );
13657 if( status ) return errno;
13659 /* give thread a chance to complete */
13660 /* it should remain joinable and hence detachable */
13663 status = pthread_detach( &t );
13664 if( status ) return errno;
13667 #ifdef HAVE_LINUX_THREADS
13668 pthread_kill_other_threads_np();
13676 if { (eval echo configure:13677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
13678 ol_cv_pthread_lib_lpthread_woff=yes
13680 echo "configure: failed program was:" >&5
13681 cat conftest.$ac_ext >&5
13683 ol_cv_pthread_lib_lpthread_woff=no
13694 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
13696 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
13697 ol_link_pthreads="-lpthread -Wl,-woff,85"
13698 ol_link_threads=posix
13703 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
13704 if test "$ol_link_threads" = no ; then
13706 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
13707 echo "configure:13708: checking for pthread link with -lpthread" >&5
13708 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
13709 echo $ac_n "(cached) $ac_c" 1>&6
13714 LIBS="-lpthread $LIBS"
13716 if test "$cross_compiling" = yes; then
13717 cat > conftest.$ac_ext <<EOF
13718 #line 13719 "configure"
13719 #include "confdefs.h"
13720 /* pthread test headers */
13721 #include <pthread.h>
13722 #if HAVE_PTHREADS < 7
13726 #define NULL (void*)0
13729 static void *task(p)
13732 return (void *) (p == NULL);
13737 /* pthread test function */
13738 #ifndef PTHREAD_CREATE_DETACHED
13739 #define PTHREAD_CREATE_DETACHED 1
13743 int detach = PTHREAD_CREATE_DETACHED;
13745 #if HAVE_PTHREADS > 4
13746 /* Final pthreads */
13747 pthread_attr_t attr;
13749 status = pthread_attr_init(&attr);
13750 if( status ) return status;
13752 #if HAVE_PTHREADS < 7
13753 status = pthread_attr_setdetachstate(&attr, &detach);
13754 if( status < 0 ) status = errno;
13756 status = pthread_attr_setdetachstate(&attr, detach);
13758 if( status ) return status;
13759 status = pthread_create( &t, &attr, task, NULL );
13760 #if HAVE_PTHREADS < 7
13761 if( status < 0 ) status = errno;
13763 if( status ) return status;
13765 /* Draft 4 pthreads */
13766 status = pthread_create( &t, pthread_attr_default, task, NULL );
13767 if( status ) return errno;
13769 /* give thread a chance to complete */
13770 /* it should remain joinable and hence detachable */
13773 status = pthread_detach( &t );
13774 if( status ) return errno;
13777 #ifdef HAVE_LINUX_THREADS
13778 pthread_kill_other_threads_np();
13785 if { (eval echo configure:13786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13787 ol_cv_pthread_lpthread=yes
13789 echo "configure: failed program was:" >&5
13790 cat conftest.$ac_ext >&5
13792 ol_cv_pthread_lpthread=no
13796 cat > conftest.$ac_ext <<EOF
13797 #line 13798 "configure"
13798 #include "confdefs.h"
13799 /* pthread test headers */
13800 #include <pthread.h>
13801 #if HAVE_PTHREADS < 7
13805 #define NULL (void*)0
13808 static void *task(p)
13811 return (void *) (p == NULL);
13815 int main(argc, argv)
13820 /* pthread test function */
13821 #ifndef PTHREAD_CREATE_DETACHED
13822 #define PTHREAD_CREATE_DETACHED 1
13826 int detach = PTHREAD_CREATE_DETACHED;
13828 #if HAVE_PTHREADS > 4
13829 /* Final pthreads */
13830 pthread_attr_t attr;
13832 status = pthread_attr_init(&attr);
13833 if( status ) return status;
13835 #if HAVE_PTHREADS < 7
13836 status = pthread_attr_setdetachstate(&attr, &detach);
13837 if( status < 0 ) status = errno;
13839 status = pthread_attr_setdetachstate(&attr, detach);
13841 if( status ) return status;
13842 status = pthread_create( &t, &attr, task, NULL );
13843 #if HAVE_PTHREADS < 7
13844 if( status < 0 ) status = errno;
13846 if( status ) return status;
13848 /* Draft 4 pthreads */
13849 status = pthread_create( &t, pthread_attr_default, task, NULL );
13850 if( status ) return errno;
13852 /* give thread a chance to complete */
13853 /* it should remain joinable and hence detachable */
13856 status = pthread_detach( &t );
13857 if( status ) return errno;
13860 #ifdef HAVE_LINUX_THREADS
13861 pthread_kill_other_threads_np();
13869 if { (eval echo configure:13870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
13871 ol_cv_pthread_lpthread=yes
13873 echo "configure: failed program was:" >&5
13874 cat conftest.$ac_ext >&5
13876 ol_cv_pthread_lpthread=no
13887 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
13889 if test $ol_cv_pthread_lpthread = yes ; then
13890 ol_link_pthreads="-lpthread"
13891 ol_link_threads=posix
13895 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
13896 if test "$ol_link_threads" = no ; then
13898 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
13899 echo "configure:13900: checking for pthread link with -lc_r" >&5
13900 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
13901 echo $ac_n "(cached) $ac_c" 1>&6
13908 if test "$cross_compiling" = yes; then
13909 cat > conftest.$ac_ext <<EOF
13910 #line 13911 "configure"
13911 #include "confdefs.h"
13912 /* pthread test headers */
13913 #include <pthread.h>
13914 #if HAVE_PTHREADS < 7
13918 #define NULL (void*)0
13921 static void *task(p)
13924 return (void *) (p == NULL);
13929 /* pthread test function */
13930 #ifndef PTHREAD_CREATE_DETACHED
13931 #define PTHREAD_CREATE_DETACHED 1
13935 int detach = PTHREAD_CREATE_DETACHED;
13937 #if HAVE_PTHREADS > 4
13938 /* Final pthreads */
13939 pthread_attr_t attr;
13941 status = pthread_attr_init(&attr);
13942 if( status ) return status;
13944 #if HAVE_PTHREADS < 7
13945 status = pthread_attr_setdetachstate(&attr, &detach);
13946 if( status < 0 ) status = errno;
13948 status = pthread_attr_setdetachstate(&attr, detach);
13950 if( status ) return status;
13951 status = pthread_create( &t, &attr, task, NULL );
13952 #if HAVE_PTHREADS < 7
13953 if( status < 0 ) status = errno;
13955 if( status ) return status;
13957 /* Draft 4 pthreads */
13958 status = pthread_create( &t, pthread_attr_default, task, NULL );
13959 if( status ) return errno;
13961 /* give thread a chance to complete */
13962 /* it should remain joinable and hence detachable */
13965 status = pthread_detach( &t );
13966 if( status ) return errno;
13969 #ifdef HAVE_LINUX_THREADS
13970 pthread_kill_other_threads_np();
13977 if { (eval echo configure:13978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13979 ol_cv_pthread_lc_r=yes
13981 echo "configure: failed program was:" >&5
13982 cat conftest.$ac_ext >&5
13984 ol_cv_pthread_lc_r=no
13988 cat > conftest.$ac_ext <<EOF
13989 #line 13990 "configure"
13990 #include "confdefs.h"
13991 /* pthread test headers */
13992 #include <pthread.h>
13993 #if HAVE_PTHREADS < 7
13997 #define NULL (void*)0
14000 static void *task(p)
14003 return (void *) (p == NULL);
14007 int main(argc, argv)
14012 /* pthread test function */
14013 #ifndef PTHREAD_CREATE_DETACHED
14014 #define PTHREAD_CREATE_DETACHED 1
14018 int detach = PTHREAD_CREATE_DETACHED;
14020 #if HAVE_PTHREADS > 4
14021 /* Final pthreads */
14022 pthread_attr_t attr;
14024 status = pthread_attr_init(&attr);
14025 if( status ) return status;
14027 #if HAVE_PTHREADS < 7
14028 status = pthread_attr_setdetachstate(&attr, &detach);
14029 if( status < 0 ) status = errno;
14031 status = pthread_attr_setdetachstate(&attr, detach);
14033 if( status ) return status;
14034 status = pthread_create( &t, &attr, task, NULL );
14035 #if HAVE_PTHREADS < 7
14036 if( status < 0 ) status = errno;
14038 if( status ) return status;
14040 /* Draft 4 pthreads */
14041 status = pthread_create( &t, pthread_attr_default, task, NULL );
14042 if( status ) return errno;
14044 /* give thread a chance to complete */
14045 /* it should remain joinable and hence detachable */
14048 status = pthread_detach( &t );
14049 if( status ) return errno;
14052 #ifdef HAVE_LINUX_THREADS
14053 pthread_kill_other_threads_np();
14061 if { (eval echo configure:14062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
14063 ol_cv_pthread_lc_r=yes
14065 echo "configure: failed program was:" >&5
14066 cat conftest.$ac_ext >&5
14068 ol_cv_pthread_lc_r=no
14079 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
14081 if test $ol_cv_pthread_lc_r = yes ; then
14082 ol_link_pthreads="-lc_r"
14083 ol_link_threads=posix
14088 # Pthread try link: -threads (ol_cv_pthread_threads)
14089 if test "$ol_link_threads" = no ; then
14091 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
14092 echo "configure:14093: checking for pthread link with -threads" >&5
14093 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
14094 echo $ac_n "(cached) $ac_c" 1>&6
14099 LIBS="-threads $LIBS"
14101 if test "$cross_compiling" = yes; then
14102 cat > conftest.$ac_ext <<EOF
14103 #line 14104 "configure"
14104 #include "confdefs.h"
14105 /* pthread test headers */
14106 #include <pthread.h>
14107 #if HAVE_PTHREADS < 7
14111 #define NULL (void*)0
14114 static void *task(p)
14117 return (void *) (p == NULL);
14122 /* pthread test function */
14123 #ifndef PTHREAD_CREATE_DETACHED
14124 #define PTHREAD_CREATE_DETACHED 1
14128 int detach = PTHREAD_CREATE_DETACHED;
14130 #if HAVE_PTHREADS > 4
14131 /* Final pthreads */
14132 pthread_attr_t attr;
14134 status = pthread_attr_init(&attr);
14135 if( status ) return status;
14137 #if HAVE_PTHREADS < 7
14138 status = pthread_attr_setdetachstate(&attr, &detach);
14139 if( status < 0 ) status = errno;
14141 status = pthread_attr_setdetachstate(&attr, detach);
14143 if( status ) return status;
14144 status = pthread_create( &t, &attr, task, NULL );
14145 #if HAVE_PTHREADS < 7
14146 if( status < 0 ) status = errno;
14148 if( status ) return status;
14150 /* Draft 4 pthreads */
14151 status = pthread_create( &t, pthread_attr_default, task, NULL );
14152 if( status ) return errno;
14154 /* give thread a chance to complete */
14155 /* it should remain joinable and hence detachable */
14158 status = pthread_detach( &t );
14159 if( status ) return errno;
14162 #ifdef HAVE_LINUX_THREADS
14163 pthread_kill_other_threads_np();
14170 if { (eval echo configure:14171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14172 ol_cv_pthread_threads=yes
14174 echo "configure: failed program was:" >&5
14175 cat conftest.$ac_ext >&5
14177 ol_cv_pthread_threads=no
14181 cat > conftest.$ac_ext <<EOF
14182 #line 14183 "configure"
14183 #include "confdefs.h"
14184 /* pthread test headers */
14185 #include <pthread.h>
14186 #if HAVE_PTHREADS < 7
14190 #define NULL (void*)0
14193 static void *task(p)
14196 return (void *) (p == NULL);
14200 int main(argc, argv)
14205 /* pthread test function */
14206 #ifndef PTHREAD_CREATE_DETACHED
14207 #define PTHREAD_CREATE_DETACHED 1
14211 int detach = PTHREAD_CREATE_DETACHED;
14213 #if HAVE_PTHREADS > 4
14214 /* Final pthreads */
14215 pthread_attr_t attr;
14217 status = pthread_attr_init(&attr);
14218 if( status ) return status;
14220 #if HAVE_PTHREADS < 7
14221 status = pthread_attr_setdetachstate(&attr, &detach);
14222 if( status < 0 ) status = errno;
14224 status = pthread_attr_setdetachstate(&attr, detach);
14226 if( status ) return status;
14227 status = pthread_create( &t, &attr, task, NULL );
14228 #if HAVE_PTHREADS < 7
14229 if( status < 0 ) status = errno;
14231 if( status ) return status;
14233 /* Draft 4 pthreads */
14234 status = pthread_create( &t, pthread_attr_default, task, NULL );
14235 if( status ) return errno;
14237 /* give thread a chance to complete */
14238 /* it should remain joinable and hence detachable */
14241 status = pthread_detach( &t );
14242 if( status ) return errno;
14245 #ifdef HAVE_LINUX_THREADS
14246 pthread_kill_other_threads_np();
14254 if { (eval echo configure:14255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
14256 ol_cv_pthread_threads=yes
14258 echo "configure: failed program was:" >&5
14259 cat conftest.$ac_ext >&5
14261 ol_cv_pthread_threads=no
14272 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
14274 if test $ol_cv_pthread_threads = yes ; then
14275 ol_link_pthreads="-threads"
14276 ol_link_threads=posix
14281 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
14282 if test "$ol_link_threads" = no ; then
14283 # try -lpthreads -lmach -lexc -lc_r
14284 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
14285 echo "configure:14286: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
14286 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
14287 echo $ac_n "(cached) $ac_c" 1>&6
14292 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
14294 if test "$cross_compiling" = yes; then
14295 cat > conftest.$ac_ext <<EOF
14296 #line 14297 "configure"
14297 #include "confdefs.h"
14298 /* pthread test headers */
14299 #include <pthread.h>
14300 #if HAVE_PTHREADS < 7
14304 #define NULL (void*)0
14307 static void *task(p)
14310 return (void *) (p == NULL);
14315 /* pthread test function */
14316 #ifndef PTHREAD_CREATE_DETACHED
14317 #define PTHREAD_CREATE_DETACHED 1
14321 int detach = PTHREAD_CREATE_DETACHED;
14323 #if HAVE_PTHREADS > 4
14324 /* Final pthreads */
14325 pthread_attr_t attr;
14327 status = pthread_attr_init(&attr);
14328 if( status ) return status;
14330 #if HAVE_PTHREADS < 7
14331 status = pthread_attr_setdetachstate(&attr, &detach);
14332 if( status < 0 ) status = errno;
14334 status = pthread_attr_setdetachstate(&attr, detach);
14336 if( status ) return status;
14337 status = pthread_create( &t, &attr, task, NULL );
14338 #if HAVE_PTHREADS < 7
14339 if( status < 0 ) status = errno;
14341 if( status ) return status;
14343 /* Draft 4 pthreads */
14344 status = pthread_create( &t, pthread_attr_default, task, NULL );
14345 if( status ) return errno;
14347 /* give thread a chance to complete */
14348 /* it should remain joinable and hence detachable */
14351 status = pthread_detach( &t );
14352 if( status ) return errno;
14355 #ifdef HAVE_LINUX_THREADS
14356 pthread_kill_other_threads_np();
14363 if { (eval echo configure:14364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14365 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
14367 echo "configure: failed program was:" >&5
14368 cat conftest.$ac_ext >&5
14370 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
14374 cat > conftest.$ac_ext <<EOF
14375 #line 14376 "configure"
14376 #include "confdefs.h"
14377 /* pthread test headers */
14378 #include <pthread.h>
14379 #if HAVE_PTHREADS < 7
14383 #define NULL (void*)0
14386 static void *task(p)
14389 return (void *) (p == NULL);
14393 int main(argc, argv)
14398 /* pthread test function */
14399 #ifndef PTHREAD_CREATE_DETACHED
14400 #define PTHREAD_CREATE_DETACHED 1
14404 int detach = PTHREAD_CREATE_DETACHED;
14406 #if HAVE_PTHREADS > 4
14407 /* Final pthreads */
14408 pthread_attr_t attr;
14410 status = pthread_attr_init(&attr);
14411 if( status ) return status;
14413 #if HAVE_PTHREADS < 7
14414 status = pthread_attr_setdetachstate(&attr, &detach);
14415 if( status < 0 ) status = errno;
14417 status = pthread_attr_setdetachstate(&attr, detach);
14419 if( status ) return status;
14420 status = pthread_create( &t, &attr, task, NULL );
14421 #if HAVE_PTHREADS < 7
14422 if( status < 0 ) status = errno;
14424 if( status ) return status;
14426 /* Draft 4 pthreads */
14427 status = pthread_create( &t, pthread_attr_default, task, NULL );
14428 if( status ) return errno;
14430 /* give thread a chance to complete */
14431 /* it should remain joinable and hence detachable */
14434 status = pthread_detach( &t );
14435 if( status ) return errno;
14438 #ifdef HAVE_LINUX_THREADS
14439 pthread_kill_other_threads_np();
14447 if { (eval echo configure:14448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
14449 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
14451 echo "configure: failed program was:" >&5
14452 cat conftest.$ac_ext >&5
14454 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
14465 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
14467 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
14468 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
14469 ol_link_threads=posix
14473 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
14474 if test "$ol_link_threads" = no ; then
14475 # try -lpthreads -lmach -lexc
14476 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
14477 echo "configure:14478: checking for pthread link with -lpthreads -lmach -lexc" >&5
14478 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
14479 echo $ac_n "(cached) $ac_c" 1>&6
14484 LIBS="-lpthreads -lmach -lexc $LIBS"
14486 if test "$cross_compiling" = yes; then
14487 cat > conftest.$ac_ext <<EOF
14488 #line 14489 "configure"
14489 #include "confdefs.h"
14490 /* pthread test headers */
14491 #include <pthread.h>
14492 #if HAVE_PTHREADS < 7
14496 #define NULL (void*)0
14499 static void *task(p)
14502 return (void *) (p == NULL);
14507 /* pthread test function */
14508 #ifndef PTHREAD_CREATE_DETACHED
14509 #define PTHREAD_CREATE_DETACHED 1
14513 int detach = PTHREAD_CREATE_DETACHED;
14515 #if HAVE_PTHREADS > 4
14516 /* Final pthreads */
14517 pthread_attr_t attr;
14519 status = pthread_attr_init(&attr);
14520 if( status ) return status;
14522 #if HAVE_PTHREADS < 7
14523 status = pthread_attr_setdetachstate(&attr, &detach);
14524 if( status < 0 ) status = errno;
14526 status = pthread_attr_setdetachstate(&attr, detach);
14528 if( status ) return status;
14529 status = pthread_create( &t, &attr, task, NULL );
14530 #if HAVE_PTHREADS < 7
14531 if( status < 0 ) status = errno;
14533 if( status ) return status;
14535 /* Draft 4 pthreads */
14536 status = pthread_create( &t, pthread_attr_default, task, NULL );
14537 if( status ) return errno;
14539 /* give thread a chance to complete */
14540 /* it should remain joinable and hence detachable */
14543 status = pthread_detach( &t );
14544 if( status ) return errno;
14547 #ifdef HAVE_LINUX_THREADS
14548 pthread_kill_other_threads_np();
14555 if { (eval echo configure:14556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14557 ol_cv_pthread_lpthreads_lmach_lexc=yes
14559 echo "configure: failed program was:" >&5
14560 cat conftest.$ac_ext >&5
14562 ol_cv_pthread_lpthreads_lmach_lexc=no
14566 cat > conftest.$ac_ext <<EOF
14567 #line 14568 "configure"
14568 #include "confdefs.h"
14569 /* pthread test headers */
14570 #include <pthread.h>
14571 #if HAVE_PTHREADS < 7
14575 #define NULL (void*)0
14578 static void *task(p)
14581 return (void *) (p == NULL);
14585 int main(argc, argv)
14590 /* pthread test function */
14591 #ifndef PTHREAD_CREATE_DETACHED
14592 #define PTHREAD_CREATE_DETACHED 1
14596 int detach = PTHREAD_CREATE_DETACHED;
14598 #if HAVE_PTHREADS > 4
14599 /* Final pthreads */
14600 pthread_attr_t attr;
14602 status = pthread_attr_init(&attr);
14603 if( status ) return status;
14605 #if HAVE_PTHREADS < 7
14606 status = pthread_attr_setdetachstate(&attr, &detach);
14607 if( status < 0 ) status = errno;
14609 status = pthread_attr_setdetachstate(&attr, detach);
14611 if( status ) return status;
14612 status = pthread_create( &t, &attr, task, NULL );
14613 #if HAVE_PTHREADS < 7
14614 if( status < 0 ) status = errno;
14616 if( status ) return status;
14618 /* Draft 4 pthreads */
14619 status = pthread_create( &t, pthread_attr_default, task, NULL );
14620 if( status ) return errno;
14622 /* give thread a chance to complete */
14623 /* it should remain joinable and hence detachable */
14626 status = pthread_detach( &t );
14627 if( status ) return errno;
14630 #ifdef HAVE_LINUX_THREADS
14631 pthread_kill_other_threads_np();
14639 if { (eval echo configure:14640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
14641 ol_cv_pthread_lpthreads_lmach_lexc=yes
14643 echo "configure: failed program was:" >&5
14644 cat conftest.$ac_ext >&5
14646 ol_cv_pthread_lpthreads_lmach_lexc=no
14657 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
14659 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
14660 ol_link_pthreads="-lpthreads -lmach -lexc"
14661 ol_link_threads=posix
14665 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
14666 if test "$ol_link_threads" = no ; then
14667 # try -lpthreads -lexc
14668 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
14669 echo "configure:14670: checking for pthread link with -lpthreads -lexc" >&5
14670 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
14671 echo $ac_n "(cached) $ac_c" 1>&6
14676 LIBS="-lpthreads -lexc $LIBS"
14678 if test "$cross_compiling" = yes; then
14679 cat > conftest.$ac_ext <<EOF
14680 #line 14681 "configure"
14681 #include "confdefs.h"
14682 /* pthread test headers */
14683 #include <pthread.h>
14684 #if HAVE_PTHREADS < 7
14688 #define NULL (void*)0
14691 static void *task(p)
14694 return (void *) (p == NULL);
14699 /* pthread test function */
14700 #ifndef PTHREAD_CREATE_DETACHED
14701 #define PTHREAD_CREATE_DETACHED 1
14705 int detach = PTHREAD_CREATE_DETACHED;
14707 #if HAVE_PTHREADS > 4
14708 /* Final pthreads */
14709 pthread_attr_t attr;
14711 status = pthread_attr_init(&attr);
14712 if( status ) return status;
14714 #if HAVE_PTHREADS < 7
14715 status = pthread_attr_setdetachstate(&attr, &detach);
14716 if( status < 0 ) status = errno;
14718 status = pthread_attr_setdetachstate(&attr, detach);
14720 if( status ) return status;
14721 status = pthread_create( &t, &attr, task, NULL );
14722 #if HAVE_PTHREADS < 7
14723 if( status < 0 ) status = errno;
14725 if( status ) return status;
14727 /* Draft 4 pthreads */
14728 status = pthread_create( &t, pthread_attr_default, task, NULL );
14729 if( status ) return errno;
14731 /* give thread a chance to complete */
14732 /* it should remain joinable and hence detachable */
14735 status = pthread_detach( &t );
14736 if( status ) return errno;
14739 #ifdef HAVE_LINUX_THREADS
14740 pthread_kill_other_threads_np();
14747 if { (eval echo configure:14748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14749 ol_cv_pthread_lpthreads_lexc=yes
14751 echo "configure: failed program was:" >&5
14752 cat conftest.$ac_ext >&5
14754 ol_cv_pthread_lpthreads_lexc=no
14758 cat > conftest.$ac_ext <<EOF
14759 #line 14760 "configure"
14760 #include "confdefs.h"
14761 /* pthread test headers */
14762 #include <pthread.h>
14763 #if HAVE_PTHREADS < 7
14767 #define NULL (void*)0
14770 static void *task(p)
14773 return (void *) (p == NULL);
14777 int main(argc, argv)
14782 /* pthread test function */
14783 #ifndef PTHREAD_CREATE_DETACHED
14784 #define PTHREAD_CREATE_DETACHED 1
14788 int detach = PTHREAD_CREATE_DETACHED;
14790 #if HAVE_PTHREADS > 4
14791 /* Final pthreads */
14792 pthread_attr_t attr;
14794 status = pthread_attr_init(&attr);
14795 if( status ) return status;
14797 #if HAVE_PTHREADS < 7
14798 status = pthread_attr_setdetachstate(&attr, &detach);
14799 if( status < 0 ) status = errno;
14801 status = pthread_attr_setdetachstate(&attr, detach);
14803 if( status ) return status;
14804 status = pthread_create( &t, &attr, task, NULL );
14805 #if HAVE_PTHREADS < 7
14806 if( status < 0 ) status = errno;
14808 if( status ) return status;
14810 /* Draft 4 pthreads */
14811 status = pthread_create( &t, pthread_attr_default, task, NULL );
14812 if( status ) return errno;
14814 /* give thread a chance to complete */
14815 /* it should remain joinable and hence detachable */
14818 status = pthread_detach( &t );
14819 if( status ) return errno;
14822 #ifdef HAVE_LINUX_THREADS
14823 pthread_kill_other_threads_np();
14831 if { (eval echo configure:14832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
14833 ol_cv_pthread_lpthreads_lexc=yes
14835 echo "configure: failed program was:" >&5
14836 cat conftest.$ac_ext >&5
14838 ol_cv_pthread_lpthreads_lexc=no
14849 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
14851 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
14852 ol_link_pthreads="-lpthreads -lexc"
14853 ol_link_threads=posix
14858 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
14859 if test "$ol_link_threads" = no ; then
14861 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
14862 echo "configure:14863: checking for pthread link with -lpthreads" >&5
14863 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
14864 echo $ac_n "(cached) $ac_c" 1>&6
14869 LIBS="-lpthreads $LIBS"
14871 if test "$cross_compiling" = yes; then
14872 cat > conftest.$ac_ext <<EOF
14873 #line 14874 "configure"
14874 #include "confdefs.h"
14875 /* pthread test headers */
14876 #include <pthread.h>
14877 #if HAVE_PTHREADS < 7
14881 #define NULL (void*)0
14884 static void *task(p)
14887 return (void *) (p == NULL);
14892 /* pthread test function */
14893 #ifndef PTHREAD_CREATE_DETACHED
14894 #define PTHREAD_CREATE_DETACHED 1
14898 int detach = PTHREAD_CREATE_DETACHED;
14900 #if HAVE_PTHREADS > 4
14901 /* Final pthreads */
14902 pthread_attr_t attr;
14904 status = pthread_attr_init(&attr);
14905 if( status ) return status;
14907 #if HAVE_PTHREADS < 7
14908 status = pthread_attr_setdetachstate(&attr, &detach);
14909 if( status < 0 ) status = errno;
14911 status = pthread_attr_setdetachstate(&attr, detach);
14913 if( status ) return status;
14914 status = pthread_create( &t, &attr, task, NULL );
14915 #if HAVE_PTHREADS < 7
14916 if( status < 0 ) status = errno;
14918 if( status ) return status;
14920 /* Draft 4 pthreads */
14921 status = pthread_create( &t, pthread_attr_default, task, NULL );
14922 if( status ) return errno;
14924 /* give thread a chance to complete */
14925 /* it should remain joinable and hence detachable */
14928 status = pthread_detach( &t );
14929 if( status ) return errno;
14932 #ifdef HAVE_LINUX_THREADS
14933 pthread_kill_other_threads_np();
14940 if { (eval echo configure:14941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14942 ol_cv_pthread_lib_lpthreads=yes
14944 echo "configure: failed program was:" >&5
14945 cat conftest.$ac_ext >&5
14947 ol_cv_pthread_lib_lpthreads=no
14951 cat > conftest.$ac_ext <<EOF
14952 #line 14953 "configure"
14953 #include "confdefs.h"
14954 /* pthread test headers */
14955 #include <pthread.h>
14956 #if HAVE_PTHREADS < 7
14960 #define NULL (void*)0
14963 static void *task(p)
14966 return (void *) (p == NULL);
14970 int main(argc, argv)
14975 /* pthread test function */
14976 #ifndef PTHREAD_CREATE_DETACHED
14977 #define PTHREAD_CREATE_DETACHED 1
14981 int detach = PTHREAD_CREATE_DETACHED;
14983 #if HAVE_PTHREADS > 4
14984 /* Final pthreads */
14985 pthread_attr_t attr;
14987 status = pthread_attr_init(&attr);
14988 if( status ) return status;
14990 #if HAVE_PTHREADS < 7
14991 status = pthread_attr_setdetachstate(&attr, &detach);
14992 if( status < 0 ) status = errno;
14994 status = pthread_attr_setdetachstate(&attr, detach);
14996 if( status ) return status;
14997 status = pthread_create( &t, &attr, task, NULL );
14998 #if HAVE_PTHREADS < 7
14999 if( status < 0 ) status = errno;
15001 if( status ) return status;
15003 /* Draft 4 pthreads */
15004 status = pthread_create( &t, pthread_attr_default, task, NULL );
15005 if( status ) return errno;
15007 /* give thread a chance to complete */
15008 /* it should remain joinable and hence detachable */
15011 status = pthread_detach( &t );
15012 if( status ) return errno;
15015 #ifdef HAVE_LINUX_THREADS
15016 pthread_kill_other_threads_np();
15024 if { (eval echo configure:15025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
15026 ol_cv_pthread_lib_lpthreads=yes
15028 echo "configure: failed program was:" >&5
15029 cat conftest.$ac_ext >&5
15031 ol_cv_pthread_lib_lpthreads=no
15042 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
15044 if test $ol_cv_pthread_lib_lpthreads = yes ; then
15045 ol_link_pthreads="-lpthreads"
15046 ol_link_threads=posix
15051 if test $ol_link_threads != no ; then
15052 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
15054 save_CPPFLAGS="$CPPFLAGS"
15056 LIBS="$LTHREAD_LIBS $LIBS"
15058 for ac_func in sched_yield pthread_yield thr_yield
15060 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15061 echo "configure:15062: checking for $ac_func" >&5
15062 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15063 echo $ac_n "(cached) $ac_c" 1>&6
15065 cat > conftest.$ac_ext <<EOF
15066 #line 15067 "configure"
15067 #include "confdefs.h"
15068 /* System header to define __stub macros and hopefully few prototypes,
15069 which can conflict with char $ac_func(); below. */
15070 #include <assert.h>
15071 /* Override any gcc2 internal prototype to avoid an error. */
15072 /* We use char because int might match the return type of a gcc2
15073 builtin and then its argument prototype would still apply. */
15079 /* The GNU C library defines this for functions which it implements
15080 to always fail with ENOSYS. Some functions are actually named
15081 something starting with __ and the normal name is an alias. */
15082 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15090 if { (eval echo configure:15091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15092 eval "ac_cv_func_$ac_func=yes"
15094 echo "configure: failed program was:" >&5
15095 cat conftest.$ac_ext >&5
15097 eval "ac_cv_func_$ac_func=no"
15102 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15103 echo "$ac_t""yes" 1>&6
15104 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15105 cat >> confdefs.h <<EOF
15106 #define $ac_tr_func 1
15110 echo "$ac_t""no" 1>&6
15115 if test $ac_cv_func_sched_yield = no -a \
15116 $ac_cv_func_pthread_yield = no -a \
15117 $ac_cv_func_thr_yield = no ; then
15118 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
15119 echo "configure:15120: checking for sched_yield in -lrt" >&5
15120 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
15121 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15122 echo $ac_n "(cached) $ac_c" 1>&6
15124 ac_save_LIBS="$LIBS"
15126 cat > conftest.$ac_ext <<EOF
15127 #line 15128 "configure"
15128 #include "confdefs.h"
15129 /* Override any gcc2 internal prototype to avoid an error. */
15130 /* We use char because int might match the return type of a gcc2
15131 builtin and then its argument prototype would still apply. */
15132 char sched_yield();
15138 if { (eval echo configure:15139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15140 eval "ac_cv_lib_$ac_lib_var=yes"
15142 echo "configure: failed program was:" >&5
15143 cat conftest.$ac_ext >&5
15145 eval "ac_cv_lib_$ac_lib_var=no"
15148 LIBS="$ac_save_LIBS"
15151 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15152 echo "$ac_t""yes" 1>&6
15153 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
15154 cat >> confdefs.h <<\EOF
15155 #define HAVE_SCHED_YIELD 1
15158 ac_cv_func_sched_yield=yes
15160 echo "$ac_t""no" 1>&6
15161 ac_cv_func_sched_yield=no
15165 if test $ac_cv_func_sched_yield = no -a \
15166 $ac_cv_func_pthread_yield = no -a \
15167 "$ac_cv_func_thr_yield" = no ; then
15168 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
15171 for ac_func in pthread_kill pthread_rwlock_destroy
15173 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15174 echo "configure:15175: checking for $ac_func" >&5
15175 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15176 echo $ac_n "(cached) $ac_c" 1>&6
15178 cat > conftest.$ac_ext <<EOF
15179 #line 15180 "configure"
15180 #include "confdefs.h"
15181 /* System header to define __stub macros and hopefully few prototypes,
15182 which can conflict with char $ac_func(); below. */
15183 #include <assert.h>
15184 /* Override any gcc2 internal prototype to avoid an error. */
15185 /* We use char because int might match the return type of a gcc2
15186 builtin and then its argument prototype would still apply. */
15192 /* The GNU C library defines this for functions which it implements
15193 to always fail with ENOSYS. Some functions are actually named
15194 something starting with __ and the normal name is an alias. */
15195 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15203 if { (eval echo configure:15204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15205 eval "ac_cv_func_$ac_func=yes"
15207 echo "configure: failed program was:" >&5
15208 cat conftest.$ac_ext >&5
15210 eval "ac_cv_func_$ac_func=no"
15215 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15216 echo "$ac_t""yes" 1>&6
15217 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15218 cat >> confdefs.h <<EOF
15219 #define $ac_tr_func 1
15223 echo "$ac_t""no" 1>&6
15228 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
15229 echo "configure:15230: checking for pthread_detach with <pthread.h>" >&5
15230 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
15231 echo $ac_n "(cached) $ac_c" 1>&6
15234 cat > conftest.$ac_ext <<EOF
15235 #line 15236 "configure"
15236 #include "confdefs.h"
15238 #include <pthread.h>
15240 #define NULL (void*)0
15244 pthread_detach(NULL);
15247 if { (eval echo configure:15248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15249 ol_cv_func_pthread_detach=yes
15251 echo "configure: failed program was:" >&5
15252 cat conftest.$ac_ext >&5
15254 ol_cv_func_pthread_detach=no
15260 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
15262 if test $ol_cv_func_pthread_detach = no ; then
15263 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
15266 cat >> confdefs.h <<\EOF
15267 #define HAVE_PTHREAD_DETACH 1
15272 pthread_setconcurrency \
15273 pthread_getconcurrency \
15274 thr_setconcurrency \
15275 thr_getconcurrency \
15278 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15279 echo "configure:15280: checking for $ac_func" >&5
15280 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15281 echo $ac_n "(cached) $ac_c" 1>&6
15283 cat > conftest.$ac_ext <<EOF
15284 #line 15285 "configure"
15285 #include "confdefs.h"
15286 /* System header to define __stub macros and hopefully few prototypes,
15287 which can conflict with char $ac_func(); below. */
15288 #include <assert.h>
15289 /* Override any gcc2 internal prototype to avoid an error. */
15290 /* We use char because int might match the return type of a gcc2
15291 builtin and then its argument prototype would still apply. */
15297 /* The GNU C library defines this for functions which it implements
15298 to always fail with ENOSYS. Some functions are actually named
15299 something starting with __ and the normal name is an alias. */
15300 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15308 if { (eval echo configure:15309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15310 eval "ac_cv_func_$ac_func=yes"
15312 echo "configure: failed program was:" >&5
15313 cat conftest.$ac_ext >&5
15315 eval "ac_cv_func_$ac_func=no"
15320 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15321 echo "$ac_t""yes" 1>&6
15322 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15323 cat >> confdefs.h <<EOF
15324 #define $ac_tr_func 1
15328 echo "$ac_t""no" 1>&6
15334 for ac_func in pthread_kill_other_threads_np
15336 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15337 echo "configure:15338: checking for $ac_func" >&5
15338 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15339 echo $ac_n "(cached) $ac_c" 1>&6
15341 cat > conftest.$ac_ext <<EOF
15342 #line 15343 "configure"
15343 #include "confdefs.h"
15344 /* System header to define __stub macros and hopefully few prototypes,
15345 which can conflict with char $ac_func(); below. */
15346 #include <assert.h>
15347 /* Override any gcc2 internal prototype to avoid an error. */
15348 /* We use char because int might match the return type of a gcc2
15349 builtin and then its argument prototype would still apply. */
15355 /* The GNU C library defines this for functions which it implements
15356 to always fail with ENOSYS. Some functions are actually named
15357 something starting with __ and the normal name is an alias. */
15358 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15366 if { (eval echo configure:15367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15368 eval "ac_cv_func_$ac_func=yes"
15370 echo "configure: failed program was:" >&5
15371 cat conftest.$ac_ext >&5
15373 eval "ac_cv_func_$ac_func=no"
15378 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15379 echo "$ac_t""yes" 1>&6
15380 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15381 cat >> confdefs.h <<EOF
15382 #define $ac_tr_func 1
15386 echo "$ac_t""no" 1>&6
15390 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
15391 echo "configure:15392: checking for LinuxThreads implementation" >&5
15392 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
15393 echo $ac_n "(cached) $ac_c" 1>&6
15395 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
15398 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
15403 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
15404 echo "configure:15405: checking for LinuxThreads consistency" >&5
15405 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
15406 echo $ac_n "(cached) $ac_c" 1>&6
15409 if test $ol_cv_header_linux_threads = yes -a \
15410 $ol_cv_sys_linux_threads = yes; then
15411 ol_cv_linux_threads=yes
15412 elif test $ol_cv_header_linux_threads = no -a \
15413 $ol_cv_sys_linux_threads = no; then
15414 ol_cv_linux_threads=no
15416 ol_cv_linux_threads=error
15421 echo "$ac_t""$ol_cv_linux_threads" 1>&6
15424 if test $ol_cv_linux_threads = error; then
15425 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
15428 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
15429 echo "configure:15430: checking if pthread_create() works" >&5
15430 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
15431 echo $ac_n "(cached) $ac_c" 1>&6
15434 if test "$cross_compiling" = yes; then
15435 ol_cv_pthread_create_works=yes
15437 cat > conftest.$ac_ext <<EOF
15438 #line 15439 "configure"
15439 #include "confdefs.h"
15440 /* pthread test headers */
15441 #include <pthread.h>
15442 #if HAVE_PTHREADS < 7
15446 #define NULL (void*)0
15449 static void *task(p)
15452 return (void *) (p == NULL);
15456 int main(argc, argv)
15461 /* pthread test function */
15462 #ifndef PTHREAD_CREATE_DETACHED
15463 #define PTHREAD_CREATE_DETACHED 1
15467 int detach = PTHREAD_CREATE_DETACHED;
15469 #if HAVE_PTHREADS > 4
15470 /* Final pthreads */
15471 pthread_attr_t attr;
15473 status = pthread_attr_init(&attr);
15474 if( status ) return status;
15476 #if HAVE_PTHREADS < 7
15477 status = pthread_attr_setdetachstate(&attr, &detach);
15478 if( status < 0 ) status = errno;
15480 status = pthread_attr_setdetachstate(&attr, detach);
15482 if( status ) return status;
15483 status = pthread_create( &t, &attr, task, NULL );
15484 #if HAVE_PTHREADS < 7
15485 if( status < 0 ) status = errno;
15487 if( status ) return status;
15489 /* Draft 4 pthreads */
15490 status = pthread_create( &t, pthread_attr_default, task, NULL );
15491 if( status ) return errno;
15493 /* give thread a chance to complete */
15494 /* it should remain joinable and hence detachable */
15497 status = pthread_detach( &t );
15498 if( status ) return errno;
15501 #ifdef HAVE_LINUX_THREADS
15502 pthread_kill_other_threads_np();
15510 if { (eval echo configure:15511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
15512 ol_cv_pthread_create_works=yes
15514 echo "configure: failed program was:" >&5
15515 cat conftest.$ac_ext >&5
15517 ol_cv_pthread_create_works=no
15524 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
15526 if test $ol_cv_pthread_create_works = no ; then
15527 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
15530 if test $ol_with_yielding_select = auto ; then
15531 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
15532 echo "configure:15533: checking if select yields when using pthreads" >&5
15533 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
15534 echo $ac_n "(cached) $ac_c" 1>&6
15537 if test "$cross_compiling" = yes; then
15538 ol_cv_pthread_select_yields=cross
15540 cat > conftest.$ac_ext <<EOF
15541 #line 15542 "configure"
15542 #include "confdefs.h"
15544 #include <sys/types.h>
15545 #include <sys/time.h>
15546 #include <unistd.h>
15547 #include <pthread.h>
15549 #define NULL (void*) 0
15552 static int fildes[2];
15554 static void *task(p)
15566 FD_SET(fildes[0], &rfds);
15568 /* we're not interested in any fds */
15569 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
15576 exit(0); /* if we exit here, the select blocked the whole process */
15579 int main(argc, argv)
15585 /* create a pipe to select */
15586 if(pipe(&fildes[0])) {
15591 #ifdef HAVE_PTHREAD_SETCONCURRENCY
15592 (void) pthread_setconcurrency(2);
15594 #ifdef HAVE_THR_SETCONCURRENCY
15595 /* Set Solaris LWP concurrency to 2 */
15596 thr_setconcurrency(2);
15600 #if HAVE_PTHREADS < 6
15601 pthread_create(&t, pthread_attr_default, task, NULL);
15603 pthread_create(&t, NULL, task, NULL);
15606 /* make sure task runs first */
15609 #elif defined( HAVE_SCHED_YIELD )
15611 #elif defined( HAVE_PTHREAD_YIELD )
15618 if { (eval echo configure:15619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
15620 ol_cv_pthread_select_yields=no
15622 echo "configure: failed program was:" >&5
15623 cat conftest.$ac_ext >&5
15625 ol_cv_pthread_select_yields=yes
15632 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
15634 if test $ol_cv_pthread_select_yields = cross ; then
15635 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
15638 if test $ol_cv_pthread_select_yields = yes ; then
15639 ol_with_yielding_select=yes
15643 CPPFLAGS="$save_CPPFLAGS"
15646 { echo "configure: error: could not locate usable POSIX Threads" 1>&2; exit 1; }
15650 if test $ol_with_threads = posix ; then
15651 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
15655 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15656 -o $ol_with_threads = mach ; then
15658 for ac_hdr in mach/cthreads.h cthreads.h
15660 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15661 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15662 echo "configure:15663: checking for $ac_hdr" >&5
15663 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15664 echo $ac_n "(cached) $ac_c" 1>&6
15666 cat > conftest.$ac_ext <<EOF
15667 #line 15668 "configure"
15668 #include "confdefs.h"
15671 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15672 { (eval echo configure:15673: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15673 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15674 if test -z "$ac_err"; then
15676 eval "ac_cv_header_$ac_safe=yes"
15679 echo "configure: failed program was:" >&5
15680 cat conftest.$ac_ext >&5
15682 eval "ac_cv_header_$ac_safe=no"
15686 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15687 echo "$ac_t""yes" 1>&6
15688 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15689 cat >> confdefs.h <<EOF
15690 #define $ac_tr_hdr 1
15694 echo "$ac_t""no" 1>&6
15698 if test $ac_cv_header_mach_cthreads_h = yes ; then
15699 ol_with_threads=found
15701 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
15702 echo "configure:15703: checking for cthread_fork" >&5
15703 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
15704 echo $ac_n "(cached) $ac_c" 1>&6
15706 cat > conftest.$ac_ext <<EOF
15707 #line 15708 "configure"
15708 #include "confdefs.h"
15709 /* System header to define __stub macros and hopefully few prototypes,
15710 which can conflict with char cthread_fork(); below. */
15711 #include <assert.h>
15712 /* Override any gcc2 internal prototype to avoid an error. */
15713 /* We use char because int might match the return type of a gcc2
15714 builtin and then its argument prototype would still apply. */
15715 char cthread_fork();
15720 /* The GNU C library defines this for functions which it implements
15721 to always fail with ENOSYS. Some functions are actually named
15722 something starting with __ and the normal name is an alias. */
15723 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
15731 if { (eval echo configure:15732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15733 eval "ac_cv_func_cthread_fork=yes"
15735 echo "configure: failed program was:" >&5
15736 cat conftest.$ac_ext >&5
15738 eval "ac_cv_func_cthread_fork=no"
15743 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
15744 echo "$ac_t""yes" 1>&6
15745 ol_link_threads=yes
15747 echo "$ac_t""no" 1>&6
15751 if test $ol_link_threads = no ; then
15752 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
15753 echo "configure:15754: checking for cthread_fork with -all_load" >&5
15754 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
15755 echo $ac_n "(cached) $ac_c" 1>&6
15759 LIBS="-all_load $LIBS"
15760 cat > conftest.$ac_ext <<EOF
15761 #line 15762 "configure"
15762 #include "confdefs.h"
15763 #include <mach/cthreads.h>
15766 cthread_fork((void *)0, (void *)0);
15770 if { (eval echo configure:15771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15772 ol_cv_cthread_all_load=yes
15774 echo "configure: failed program was:" >&5
15775 cat conftest.$ac_ext >&5
15777 ol_cv_cthread_all_load=no
15784 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
15786 if test $ol_cv_cthread_all_load = yes ; then
15787 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
15788 ol_link_threads=mach
15789 ol_with_threads=found
15793 elif test $ac_cv_header_cthreads_h = yes ; then
15795 ol_with_threads=found
15798 LIBS="$LIBS -lthreads"
15799 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
15800 echo "configure:15801: checking for cthread_fork" >&5
15801 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
15802 echo $ac_n "(cached) $ac_c" 1>&6
15804 cat > conftest.$ac_ext <<EOF
15805 #line 15806 "configure"
15806 #include "confdefs.h"
15807 /* System header to define __stub macros and hopefully few prototypes,
15808 which can conflict with char cthread_fork(); below. */
15809 #include <assert.h>
15810 /* Override any gcc2 internal prototype to avoid an error. */
15811 /* We use char because int might match the return type of a gcc2
15812 builtin and then its argument prototype would still apply. */
15813 char cthread_fork();
15818 /* The GNU C library defines this for functions which it implements
15819 to always fail with ENOSYS. Some functions are actually named
15820 something starting with __ and the normal name is an alias. */
15821 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
15829 if { (eval echo configure:15830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15831 eval "ac_cv_func_cthread_fork=yes"
15833 echo "configure: failed program was:" >&5
15834 cat conftest.$ac_ext >&5
15836 eval "ac_cv_func_cthread_fork=no"
15841 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
15842 echo "$ac_t""yes" 1>&6
15843 ol_link_threads=yes
15845 echo "$ac_t""no" 1>&6
15850 if test $ol_link_threads = yes ; then
15851 LTHREAD_LIBS="-lthreads"
15852 ol_link_threads=mach
15853 ol_with_threads=found
15855 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
15858 elif test $ol_with_threads = mach ; then
15859 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
15862 if test $ol_link_threads = mach ; then
15863 cat >> confdefs.h <<\EOF
15864 #define HAVE_MACH_CTHREADS 1
15867 elif test $ol_with_threads = found ; then
15868 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
15872 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15873 -o $ol_with_threads = pth ; then
15875 for ac_hdr in pth.h
15877 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15878 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15879 echo "configure:15880: checking for $ac_hdr" >&5
15880 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15881 echo $ac_n "(cached) $ac_c" 1>&6
15883 cat > conftest.$ac_ext <<EOF
15884 #line 15885 "configure"
15885 #include "confdefs.h"
15888 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15889 { (eval echo configure:15890: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15890 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15891 if test -z "$ac_err"; then
15893 eval "ac_cv_header_$ac_safe=yes"
15896 echo "configure: failed program was:" >&5
15897 cat conftest.$ac_ext >&5
15899 eval "ac_cv_header_$ac_safe=no"
15903 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15904 echo "$ac_t""yes" 1>&6
15905 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15906 cat >> confdefs.h <<EOF
15907 #define $ac_tr_hdr 1
15911 echo "$ac_t""no" 1>&6
15916 if test $ac_cv_header_pth_h = yes ; then
15917 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
15918 echo "configure:15919: checking for pth_version in -lpth" >&5
15919 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
15920 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15921 echo $ac_n "(cached) $ac_c" 1>&6
15923 ac_save_LIBS="$LIBS"
15925 cat > conftest.$ac_ext <<EOF
15926 #line 15927 "configure"
15927 #include "confdefs.h"
15928 /* Override any gcc2 internal prototype to avoid an error. */
15929 /* We use char because int might match the return type of a gcc2
15930 builtin and then its argument prototype would still apply. */
15931 char pth_version();
15937 if { (eval echo configure:15938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15939 eval "ac_cv_lib_$ac_lib_var=yes"
15941 echo "configure: failed program was:" >&5
15942 cat conftest.$ac_ext >&5
15944 eval "ac_cv_lib_$ac_lib_var=no"
15947 LIBS="$ac_save_LIBS"
15950 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15951 echo "$ac_t""yes" 1>&6
15954 echo "$ac_t""no" 1>&6
15959 if test $have_pth = yes ; then
15960 cat >> confdefs.h <<\EOF
15961 #define HAVE_GNU_PTH 1
15964 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
15965 ol_link_threads=pth
15966 ol_with_threads=found
15968 if test $ol_with_yielding_select = auto ; then
15969 ol_with_yielding_select=yes
15975 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15976 -o $ol_with_threads = lwp ; then
15978 for ac_hdr in thread.h synch.h
15980 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15981 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15982 echo "configure:15983: checking for $ac_hdr" >&5
15983 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15984 echo $ac_n "(cached) $ac_c" 1>&6
15986 cat > conftest.$ac_ext <<EOF
15987 #line 15988 "configure"
15988 #include "confdefs.h"
15991 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15992 { (eval echo configure:15993: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15993 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15994 if test -z "$ac_err"; then
15996 eval "ac_cv_header_$ac_safe=yes"
15999 echo "configure: failed program was:" >&5
16000 cat conftest.$ac_ext >&5
16002 eval "ac_cv_header_$ac_safe=no"
16006 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16007 echo "$ac_t""yes" 1>&6
16008 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16009 cat >> confdefs.h <<EOF
16010 #define $ac_tr_hdr 1
16014 echo "$ac_t""no" 1>&6
16018 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
16019 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
16020 echo "configure:16021: checking for thr_create in -lthread" >&5
16021 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
16022 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
16023 echo $ac_n "(cached) $ac_c" 1>&6
16025 ac_save_LIBS="$LIBS"
16026 LIBS="-lthread $LIBS"
16027 cat > conftest.$ac_ext <<EOF
16028 #line 16029 "configure"
16029 #include "confdefs.h"
16030 /* Override any gcc2 internal prototype to avoid an error. */
16031 /* We use char because int might match the return type of a gcc2
16032 builtin and then its argument prototype would still apply. */
16039 if { (eval echo configure:16040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16041 eval "ac_cv_lib_$ac_lib_var=yes"
16043 echo "configure: failed program was:" >&5
16044 cat conftest.$ac_ext >&5
16046 eval "ac_cv_lib_$ac_lib_var=no"
16049 LIBS="$ac_save_LIBS"
16052 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16053 echo "$ac_t""yes" 1>&6
16056 echo "$ac_t""no" 1>&6
16061 if test $have_thr = yes ; then
16062 cat >> confdefs.h <<\EOF
16066 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
16067 ol_link_threads=thr
16069 if test $ol_with_yielding_select = auto ; then
16070 ol_with_yielding_select=yes
16074 thr_setconcurrency \
16075 thr_getconcurrency \
16078 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16079 echo "configure:16080: checking for $ac_func" >&5
16080 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
16081 echo $ac_n "(cached) $ac_c" 1>&6
16083 cat > conftest.$ac_ext <<EOF
16084 #line 16085 "configure"
16085 #include "confdefs.h"
16086 /* System header to define __stub macros and hopefully few prototypes,
16087 which can conflict with char $ac_func(); below. */
16088 #include <assert.h>
16089 /* Override any gcc2 internal prototype to avoid an error. */
16090 /* We use char because int might match the return type of a gcc2
16091 builtin and then its argument prototype would still apply. */
16097 /* The GNU C library defines this for functions which it implements
16098 to always fail with ENOSYS. Some functions are actually named
16099 something starting with __ and the normal name is an alias. */
16100 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16108 if { (eval echo configure:16109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16110 eval "ac_cv_func_$ac_func=yes"
16112 echo "configure: failed program was:" >&5
16113 cat conftest.$ac_ext >&5
16115 eval "ac_cv_func_$ac_func=no"
16120 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16121 echo "$ac_t""yes" 1>&6
16122 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16123 cat >> confdefs.h <<EOF
16124 #define $ac_tr_func 1
16128 echo "$ac_t""no" 1>&6
16135 for ac_hdr in lwp/lwp.h
16137 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16138 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16139 echo "configure:16140: checking for $ac_hdr" >&5
16140 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16141 echo $ac_n "(cached) $ac_c" 1>&6
16143 cat > conftest.$ac_ext <<EOF
16144 #line 16145 "configure"
16145 #include "confdefs.h"
16148 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16149 { (eval echo configure:16150: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16150 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16151 if test -z "$ac_err"; then
16153 eval "ac_cv_header_$ac_safe=yes"
16156 echo "configure: failed program was:" >&5
16157 cat conftest.$ac_ext >&5
16159 eval "ac_cv_header_$ac_safe=no"
16163 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16164 echo "$ac_t""yes" 1>&6
16165 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16166 cat >> confdefs.h <<EOF
16167 #define $ac_tr_hdr 1
16171 echo "$ac_t""no" 1>&6
16175 if test $ac_cv_header_lwp_lwp_h = yes ; then
16176 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
16177 echo "configure:16178: checking for lwp_create in -llwp" >&5
16178 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
16179 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
16180 echo $ac_n "(cached) $ac_c" 1>&6
16182 ac_save_LIBS="$LIBS"
16184 cat > conftest.$ac_ext <<EOF
16185 #line 16186 "configure"
16186 #include "confdefs.h"
16187 /* Override any gcc2 internal prototype to avoid an error. */
16188 /* We use char because int might match the return type of a gcc2
16189 builtin and then its argument prototype would still apply. */
16196 if { (eval echo configure:16197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16198 eval "ac_cv_lib_$ac_lib_var=yes"
16200 echo "configure: failed program was:" >&5
16201 cat conftest.$ac_ext >&5
16203 eval "ac_cv_lib_$ac_lib_var=no"
16206 LIBS="$ac_save_LIBS"
16209 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16210 echo "$ac_t""yes" 1>&6
16213 echo "$ac_t""no" 1>&6
16218 if test $have_lwp = yes ; then
16219 cat >> confdefs.h <<\EOF
16223 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
16224 ol_link_threads=lwp
16226 if test $ol_with_yielding_select = auto ; then
16227 ol_with_yielding_select=no
16233 if test $ol_with_yielding_select = yes ; then
16234 cat >> confdefs.h <<\EOF
16235 #define HAVE_YIELDING_SELECT 1
16240 if test $ol_with_threads = manual ; then
16241 ol_link_threads=yes
16243 echo "configure: warning: thread defines and link options must be set manually" 1>&2
16245 for ac_hdr in pthread.h sched.h
16247 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16248 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16249 echo "configure:16250: checking for $ac_hdr" >&5
16250 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16251 echo $ac_n "(cached) $ac_c" 1>&6
16253 cat > conftest.$ac_ext <<EOF
16254 #line 16255 "configure"
16255 #include "confdefs.h"
16258 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16259 { (eval echo configure:16260: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16260 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16261 if test -z "$ac_err"; then
16263 eval "ac_cv_header_$ac_safe=yes"
16266 echo "configure: failed program was:" >&5
16267 cat conftest.$ac_ext >&5
16269 eval "ac_cv_header_$ac_safe=no"
16273 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16274 echo "$ac_t""yes" 1>&6
16275 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16276 cat >> confdefs.h <<EOF
16277 #define $ac_tr_hdr 1
16281 echo "$ac_t""no" 1>&6
16285 for ac_func in sched_yield pthread_yield
16287 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16288 echo "configure:16289: checking for $ac_func" >&5
16289 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
16290 echo $ac_n "(cached) $ac_c" 1>&6
16292 cat > conftest.$ac_ext <<EOF
16293 #line 16294 "configure"
16294 #include "confdefs.h"
16295 /* System header to define __stub macros and hopefully few prototypes,
16296 which can conflict with char $ac_func(); below. */
16297 #include <assert.h>
16298 /* Override any gcc2 internal prototype to avoid an error. */
16299 /* We use char because int might match the return type of a gcc2
16300 builtin and then its argument prototype would still apply. */
16306 /* The GNU C library defines this for functions which it implements
16307 to always fail with ENOSYS. Some functions are actually named
16308 something starting with __ and the normal name is an alias. */
16309 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16317 if { (eval echo configure:16318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16319 eval "ac_cv_func_$ac_func=yes"
16321 echo "configure: failed program was:" >&5
16322 cat conftest.$ac_ext >&5
16324 eval "ac_cv_func_$ac_func=no"
16329 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16330 echo "$ac_t""yes" 1>&6
16331 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16332 cat >> confdefs.h <<EOF
16333 #define $ac_tr_func 1
16337 echo "$ac_t""no" 1>&6
16342 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
16343 echo "configure:16344: checking for LinuxThreads pthread.h" >&5
16344 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
16345 echo $ac_n "(cached) $ac_c" 1>&6
16347 cat > conftest.$ac_ext <<EOF
16348 #line 16349 "configure"
16349 #include "confdefs.h"
16350 #include <pthread.h>
16352 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16353 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
16355 ol_cv_header_linux_threads=yes
16358 ol_cv_header_linux_threads=no
16365 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
16366 if test $ol_cv_header_linux_threads = yes; then
16367 cat >> confdefs.h <<\EOF
16368 #define HAVE_LINUX_THREADS 1
16374 for ac_hdr in mach/cthreads.h
16376 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16377 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16378 echo "configure:16379: checking for $ac_hdr" >&5
16379 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16380 echo $ac_n "(cached) $ac_c" 1>&6
16382 cat > conftest.$ac_ext <<EOF
16383 #line 16384 "configure"
16384 #include "confdefs.h"
16387 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16388 { (eval echo configure:16389: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16389 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16390 if test -z "$ac_err"; then
16392 eval "ac_cv_header_$ac_safe=yes"
16395 echo "configure: failed program was:" >&5
16396 cat conftest.$ac_ext >&5
16398 eval "ac_cv_header_$ac_safe=no"
16402 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16403 echo "$ac_t""yes" 1>&6
16404 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16405 cat >> confdefs.h <<EOF
16406 #define $ac_tr_hdr 1
16410 echo "$ac_t""no" 1>&6
16414 for ac_hdr in lwp/lwp.h
16416 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16417 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16418 echo "configure:16419: checking for $ac_hdr" >&5
16419 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16420 echo $ac_n "(cached) $ac_c" 1>&6
16422 cat > conftest.$ac_ext <<EOF
16423 #line 16424 "configure"
16424 #include "confdefs.h"
16427 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16428 { (eval echo configure:16429: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16429 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16430 if test -z "$ac_err"; then
16432 eval "ac_cv_header_$ac_safe=yes"
16435 echo "configure: failed program was:" >&5
16436 cat conftest.$ac_ext >&5
16438 eval "ac_cv_header_$ac_safe=no"
16442 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16443 echo "$ac_t""yes" 1>&6
16444 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16445 cat >> confdefs.h <<EOF
16446 #define $ac_tr_hdr 1
16450 echo "$ac_t""no" 1>&6
16454 for ac_hdr in thread.h synch.h
16456 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16457 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16458 echo "configure:16459: checking for $ac_hdr" >&5
16459 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16460 echo $ac_n "(cached) $ac_c" 1>&6
16462 cat > conftest.$ac_ext <<EOF
16463 #line 16464 "configure"
16464 #include "confdefs.h"
16467 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16468 { (eval echo configure:16469: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16469 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16470 if test -z "$ac_err"; then
16472 eval "ac_cv_header_$ac_safe=yes"
16475 echo "configure: failed program was:" >&5
16476 cat conftest.$ac_ext >&5
16478 eval "ac_cv_header_$ac_safe=no"
16482 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16483 echo "$ac_t""yes" 1>&6
16484 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16485 cat >> confdefs.h <<EOF
16486 #define $ac_tr_hdr 1
16490 echo "$ac_t""no" 1>&6
16496 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
16497 cat >> confdefs.h <<\EOF
16498 #define REENTRANT 1
16501 cat >> confdefs.h <<\EOF
16502 #define _REENTRANT 1
16505 cat >> confdefs.h <<\EOF
16506 #define THREAD_SAFE 1
16509 cat >> confdefs.h <<\EOF
16510 #define _THREAD_SAFE 1
16513 cat >> confdefs.h <<\EOF
16514 #define THREADSAFE 1
16517 cat >> confdefs.h <<\EOF
16518 #define _THREADSAFE 1
16521 cat >> confdefs.h <<\EOF
16522 #define _SGI_MP_SOURCE 1
16526 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
16527 echo "configure:16528: checking for thread specific errno" >&5
16528 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
16529 echo $ac_n "(cached) $ac_c" 1>&6
16532 cat > conftest.$ac_ext <<EOF
16533 #line 16534 "configure"
16534 #include "confdefs.h"
16540 if { (eval echo configure:16541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16542 ol_cv_errno_thread_specific=yes
16544 echo "configure: failed program was:" >&5
16545 cat conftest.$ac_ext >&5
16547 ol_cv_errno_thread_specific=no
16553 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
16555 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
16556 echo "configure:16557: checking for thread specific h_errno" >&5
16557 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
16558 echo $ac_n "(cached) $ac_c" 1>&6
16561 cat > conftest.$ac_ext <<EOF
16562 #line 16563 "configure"
16563 #include "confdefs.h"
16569 if { (eval echo configure:16570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16571 ol_cv_h_errno_thread_specific=yes
16573 echo "configure: failed program was:" >&5
16574 cat conftest.$ac_ext >&5
16576 ol_cv_h_errno_thread_specific=no
16582 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
16584 if test $ol_cv_errno_thread_specific != yes \
16585 -o $ol_cv_h_errno_thread_specific != yes ; then
16586 LIBS="$LTHREAD_LIBS $LIBS"
16592 if test $ol_link_threads = no ; then
16593 if test $ol_with_threads = yes ; then
16594 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
16597 if test $ol_with_threads = auto ; then
16598 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
16602 cat >> confdefs.h <<\EOF
16603 #define NO_THREADS 1
16609 if test $ol_link_threads != no ; then
16610 cat >> confdefs.h <<\EOF
16611 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
16618 gethostbyname_r gethostbyaddr_r \
16621 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16622 echo "configure:16623: checking for $ac_func" >&5
16623 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
16624 echo $ac_n "(cached) $ac_c" 1>&6
16626 cat > conftest.$ac_ext <<EOF
16627 #line 16628 "configure"
16628 #include "confdefs.h"
16629 /* System header to define __stub macros and hopefully few prototypes,
16630 which can conflict with char $ac_func(); below. */
16631 #include <assert.h>
16632 /* Override any gcc2 internal prototype to avoid an error. */
16633 /* We use char because int might match the return type of a gcc2
16634 builtin and then its argument prototype would still apply. */
16640 /* The GNU C library defines this for functions which it implements
16641 to always fail with ENOSYS. Some functions are actually named
16642 something starting with __ and the normal name is an alias. */
16643 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16651 if { (eval echo configure:16652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16653 eval "ac_cv_func_$ac_func=yes"
16655 echo "configure: failed program was:" >&5
16656 cat conftest.$ac_ext >&5
16658 eval "ac_cv_func_$ac_func=no"
16663 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16664 echo "$ac_t""yes" 1>&6
16665 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16666 cat >> confdefs.h <<EOF
16667 #define $ac_tr_func 1
16671 echo "$ac_t""no" 1>&6
16676 if test "$ac_cv_func_ctime_r" = no ; then
16677 ol_cv_func_ctime_r_nargs=0
16679 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
16680 echo "configure:16681: checking number of arguments of ctime_r" >&5
16681 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
16682 echo $ac_n "(cached) $ac_c" 1>&6
16684 cat > conftest.$ac_ext <<EOF
16685 #line 16686 "configure"
16686 #include "confdefs.h"
16689 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
16692 if { (eval echo configure:16693: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16694 ol_cv_func_ctime_r_nargs3=yes
16696 echo "configure: failed program was:" >&5
16697 cat conftest.$ac_ext >&5
16699 ol_cv_func_ctime_r_nargs3=no
16703 cat > conftest.$ac_ext <<EOF
16704 #line 16705 "configure"
16705 #include "confdefs.h"
16708 time_t ti; char *buffer; ctime_r(&ti,buffer);
16711 if { (eval echo configure:16712: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16713 ol_cv_func_ctime_r_nargs2=yes
16715 echo "configure: failed program was:" >&5
16716 cat conftest.$ac_ext >&5
16718 ol_cv_func_ctime_r_nargs2=no
16722 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
16723 $ol_cv_func_ctime_r_nargs2 = no ; then
16725 ol_cv_func_ctime_r_nargs=3
16727 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
16728 $ol_cv_func_ctime_r_nargs2 = yes ; then
16730 ol_cv_func_ctime_r_nargs=2
16733 ol_cv_func_ctime_r_nargs=0
16738 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
16740 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
16741 cat >> confdefs.h <<EOF
16742 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
16749 if test "$ac_cv_func_gethostbyname_r" = yes ; then
16750 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
16751 echo "configure:16752: checking number of arguments of gethostbyname_r" >&5
16752 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
16753 echo $ac_n "(cached) $ac_c" 1>&6
16755 cat > conftest.$ac_ext <<EOF
16756 #line 16757 "configure"
16757 #include "confdefs.h"
16758 #include <sys/types.h>
16759 #include <sys/socket.h>
16760 #include <netinet/in.h>
16762 #define BUFSIZE (sizeof(struct hostent)+10)
16764 struct hostent hent; char buffer[BUFSIZE];
16765 int bufsize=BUFSIZE;int h_errno;
16766 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
16767 buffer, bufsize, &h_errno);
16770 if { (eval echo configure:16771: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16772 ol_cv_func_gethostbyname_r_nargs5=yes
16774 echo "configure: failed program was:" >&5
16775 cat conftest.$ac_ext >&5
16777 ol_cv_func_gethostbyname_r_nargs5=no
16781 cat > conftest.$ac_ext <<EOF
16782 #line 16783 "configure"
16783 #include "confdefs.h"
16784 #include <sys/types.h>
16785 #include <sys/socket.h>
16786 #include <netinet/in.h>
16788 #define BUFSIZE (sizeof(struct hostent)+10)
16790 struct hostent hent;struct hostent *rhent;
16791 char buffer[BUFSIZE];
16792 int bufsize=BUFSIZE;int h_errno;
16793 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
16797 if { (eval echo configure:16798: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16799 ol_cv_func_gethostbyname_r_nargs6=yes
16801 echo "configure: failed program was:" >&5
16802 cat conftest.$ac_ext >&5
16804 ol_cv_func_gethostbyname_r_nargs6=no
16808 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
16809 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
16811 ol_cv_func_gethostbyname_r_nargs=5
16813 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
16814 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
16816 ol_cv_func_gethostbyname_r_nargs=6
16819 ol_cv_func_gethostbyname_r_nargs=0
16824 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
16825 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
16826 cat >> confdefs.h <<EOF
16827 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
16833 ol_cv_func_gethostbyname_r_nargs=0
16836 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
16837 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
16838 echo "configure:16839: checking number of arguments of gethostbyaddr_r" >&5
16839 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
16840 echo $ac_n "(cached) $ac_c" 1>&6
16842 cat > conftest.$ac_ext <<EOF
16843 #line 16844 "configure"
16844 #include "confdefs.h"
16845 #include <sys/types.h>
16846 #include <sys/socket.h>
16847 #include <netinet/in.h>
16849 #define BUFSIZE (sizeof(struct hostent)+10)
16851 struct hostent hent; char buffer[BUFSIZE];
16852 struct in_addr add;
16853 size_t alen=sizeof(struct in_addr);
16854 int bufsize=BUFSIZE;int h_errno;
16855 (void)gethostbyaddr_r( (void *)&(add.s_addr),
16856 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
16859 if { (eval echo configure:16860: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16861 ol_cv_func_gethostbyaddr_r_nargs7=yes
16863 echo "configure: failed program was:" >&5
16864 cat conftest.$ac_ext >&5
16866 ol_cv_func_gethostbyaddr_r_nargs7=no
16870 cat > conftest.$ac_ext <<EOF
16871 #line 16872 "configure"
16872 #include "confdefs.h"
16873 #include <sys/types.h>
16874 #include <sys/socket.h>
16875 #include <netinet/in.h>
16877 #define BUFSIZE (sizeof(struct hostent)+10)
16879 struct hostent hent;
16880 struct hostent *rhent; char buffer[BUFSIZE];
16881 struct in_addr add;
16882 size_t alen=sizeof(struct in_addr);
16883 int bufsize=BUFSIZE;int h_errno;
16884 (void)gethostbyaddr_r( (void *)&(add.s_addr),
16885 alen, AF_INET, &hent, buffer, bufsize,
16889 if { (eval echo configure:16890: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16891 ol_cv_func_gethostbyaddr_r_nargs8=yes
16893 echo "configure: failed program was:" >&5
16894 cat conftest.$ac_ext >&5
16896 ol_cv_func_gethostbyaddr_r_nargs8=no
16900 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
16901 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
16903 ol_cv_func_gethostbyaddr_r_nargs=7
16905 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
16906 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
16908 ol_cv_func_gethostbyaddr_r_nargs=8
16911 ol_cv_func_gethostbyaddr_r_nargs=0
16916 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
16917 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
16918 cat >> confdefs.h <<EOF
16919 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
16925 ol_cv_func_gethostbyaddr_r_nargs=0
16930 if test $ol_with_ldbm_api = auto \
16931 -o $ol_with_ldbm_api = berkeley \
16932 -o $ol_with_ldbm_api = bcompat ; then
16934 if test $ol_with_ldbm_api = bcompat; then \
16935 for ac_hdr in db_185.h db.h
16937 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16938 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16939 echo "configure:16940: checking for $ac_hdr" >&5
16940 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16941 echo $ac_n "(cached) $ac_c" 1>&6
16943 cat > conftest.$ac_ext <<EOF
16944 #line 16945 "configure"
16945 #include "confdefs.h"
16948 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16949 { (eval echo configure:16950: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16950 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16951 if test -z "$ac_err"; then
16953 eval "ac_cv_header_$ac_safe=yes"
16956 echo "configure: failed program was:" >&5
16957 cat conftest.$ac_ext >&5
16959 eval "ac_cv_header_$ac_safe=no"
16963 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16964 echo "$ac_t""yes" 1>&6
16965 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16966 cat >> confdefs.h <<EOF
16967 #define $ac_tr_hdr 1
16971 echo "$ac_t""no" 1>&6
16975 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
16976 echo $ac_n "checking if Berkeley DB header compatibility""... $ac_c" 1>&6
16977 echo "configure:16978: checking if Berkeley DB header compatibility" >&5
16978 if eval "test \"\${ol_cv_header_db1+set}\" = set"; then
16979 echo $ac_n "(cached) $ac_c" 1>&6
16982 cat > conftest.$ac_ext <<EOF
16983 #line 16984 "configure"
16984 #include "confdefs.h"
16987 # include <db_185.h>
16992 /* this check could be improved */
16993 #ifndef DB_VERSION_MAJOR
16994 # define DB_VERSION_MAJOR 1
16997 #if DB_VERSION_MAJOR == 1
17002 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17003 egrep "__db_version_1" >/dev/null 2>&1; then
17005 ol_cv_header_db1=yes
17008 ol_cv_header_db1=no
17014 echo "$ac_t""$ol_cv_header_db1" 1>&6
17016 if test $ol_cv_header_db1 = yes ; then
17018 if test $ol_cv_lib_db = no ; then
17019 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
17020 echo "configure:17021: checking for Berkeley DB link (default)" >&5
17021 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
17022 echo $ac_n "(cached) $ac_c" 1>&6
17027 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17029 cat > conftest.$ac_ext <<EOF
17030 #line 17031 "configure"
17031 #include "confdefs.h"
17033 #ifdef HAVE_DB_185_H
17034 # include <db_185.h>
17039 #ifndef DB_VERSION_MAJOR
17040 # define DB_VERSION_MAJOR 1
17044 #define NULL ((void*)0)
17049 #if DB_VERSION_MAJOR > 1
17052 int major, minor, patch;
17054 version = db_version( &major, &minor, &patch );
17056 if( major != DB_VERSION_MAJOR ||
17057 minor < DB_VERSION_MINOR )
17059 printf("Berkeley DB version mismatch\n"
17060 "\theader: %s\n\tlibrary: %s\n",
17061 DB_VERSION_STRING, version);
17067 #if DB_VERSION_MAJOR > 2
17068 db_env_create( NULL, 0 );
17069 #elif DB_VERSION_MAJOR > 1
17070 db_appexit( NULL );
17072 (void) dbopen( NULL, 0, 0, 0, NULL);
17077 if { (eval echo configure:17078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17081 echo "configure: failed program was:" >&5
17082 cat conftest.$ac_ext >&5
17092 echo "$ac_t""$ol_cv_db_none" 1>&6
17094 if test $ol_cv_db_none = yes ; then
17099 if test $ol_cv_lib_db = no ; then
17100 echo $ac_n "checking for Berkeley DB link (-ldb43)""... $ac_c" 1>&6
17101 echo "configure:17102: checking for Berkeley DB link (-ldb43)" >&5
17102 if eval "test \"\${ol_cv_db_db43+set}\" = set"; then
17103 echo $ac_n "(cached) $ac_c" 1>&6
17108 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17110 cat > conftest.$ac_ext <<EOF
17111 #line 17112 "configure"
17112 #include "confdefs.h"
17114 #ifdef HAVE_DB_185_H
17115 # include <db_185.h>
17120 #ifndef DB_VERSION_MAJOR
17121 # define DB_VERSION_MAJOR 1
17125 #define NULL ((void*)0)
17130 #if DB_VERSION_MAJOR > 1
17133 int major, minor, patch;
17135 version = db_version( &major, &minor, &patch );
17137 if( major != DB_VERSION_MAJOR ||
17138 minor < DB_VERSION_MINOR )
17140 printf("Berkeley DB version mismatch\n"
17141 "\theader: %s\n\tlibrary: %s\n",
17142 DB_VERSION_STRING, version);
17148 #if DB_VERSION_MAJOR > 2
17149 db_env_create( NULL, 0 );
17150 #elif DB_VERSION_MAJOR > 1
17151 db_appexit( NULL );
17153 (void) dbopen( NULL, 0, 0, 0, NULL);
17158 if { (eval echo configure:17159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17162 echo "configure: failed program was:" >&5
17163 cat conftest.$ac_ext >&5
17173 echo "$ac_t""$ol_cv_db_db43" 1>&6
17175 if test $ol_cv_db_db43 = yes ; then
17176 ol_cv_lib_db=-ldb43
17180 if test $ol_cv_lib_db = no ; then
17181 echo $ac_n "checking for Berkeley DB link (-ldb-43)""... $ac_c" 1>&6
17182 echo "configure:17183: checking for Berkeley DB link (-ldb-43)" >&5
17183 if eval "test \"\${ol_cv_db_db_43+set}\" = set"; then
17184 echo $ac_n "(cached) $ac_c" 1>&6
17189 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17191 cat > conftest.$ac_ext <<EOF
17192 #line 17193 "configure"
17193 #include "confdefs.h"
17195 #ifdef HAVE_DB_185_H
17196 # include <db_185.h>
17201 #ifndef DB_VERSION_MAJOR
17202 # define DB_VERSION_MAJOR 1
17206 #define NULL ((void*)0)
17211 #if DB_VERSION_MAJOR > 1
17214 int major, minor, patch;
17216 version = db_version( &major, &minor, &patch );
17218 if( major != DB_VERSION_MAJOR ||
17219 minor < DB_VERSION_MINOR )
17221 printf("Berkeley DB version mismatch\n"
17222 "\theader: %s\n\tlibrary: %s\n",
17223 DB_VERSION_STRING, version);
17229 #if DB_VERSION_MAJOR > 2
17230 db_env_create( NULL, 0 );
17231 #elif DB_VERSION_MAJOR > 1
17232 db_appexit( NULL );
17234 (void) dbopen( NULL, 0, 0, 0, NULL);
17239 if { (eval echo configure:17240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17243 echo "configure: failed program was:" >&5
17244 cat conftest.$ac_ext >&5
17254 echo "$ac_t""$ol_cv_db_db_43" 1>&6
17256 if test $ol_cv_db_db_43 = yes ; then
17257 ol_cv_lib_db=-ldb-43
17261 if test $ol_cv_lib_db = no ; then
17262 echo $ac_n "checking for Berkeley DB link (-ldb-4.3)""... $ac_c" 1>&6
17263 echo "configure:17264: checking for Berkeley DB link (-ldb-4.3)" >&5
17264 if eval "test \"\${ol_cv_db_db_4_dot_3+set}\" = set"; then
17265 echo $ac_n "(cached) $ac_c" 1>&6
17270 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17272 cat > conftest.$ac_ext <<EOF
17273 #line 17274 "configure"
17274 #include "confdefs.h"
17276 #ifdef HAVE_DB_185_H
17277 # include <db_185.h>
17282 #ifndef DB_VERSION_MAJOR
17283 # define DB_VERSION_MAJOR 1
17287 #define NULL ((void*)0)
17292 #if DB_VERSION_MAJOR > 1
17295 int major, minor, patch;
17297 version = db_version( &major, &minor, &patch );
17299 if( major != DB_VERSION_MAJOR ||
17300 minor < DB_VERSION_MINOR )
17302 printf("Berkeley DB version mismatch\n"
17303 "\theader: %s\n\tlibrary: %s\n",
17304 DB_VERSION_STRING, version);
17310 #if DB_VERSION_MAJOR > 2
17311 db_env_create( NULL, 0 );
17312 #elif DB_VERSION_MAJOR > 1
17313 db_appexit( NULL );
17315 (void) dbopen( NULL, 0, 0, 0, NULL);
17320 if { (eval echo configure:17321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17322 ol_cv_db_db_4_dot_3=yes
17324 echo "configure: failed program was:" >&5
17325 cat conftest.$ac_ext >&5
17327 ol_cv_db_db_4_dot_3=no
17335 echo "$ac_t""$ol_cv_db_db_4_dot_3" 1>&6
17337 if test $ol_cv_db_db_4_dot_3 = yes ; then
17338 ol_cv_lib_db=-ldb-4.3
17342 if test $ol_cv_lib_db = no ; then
17343 echo $ac_n "checking for Berkeley DB link (-ldb-4-3)""... $ac_c" 1>&6
17344 echo "configure:17345: checking for Berkeley DB link (-ldb-4-3)" >&5
17345 if eval "test \"\${ol_cv_db_db_4_3+set}\" = set"; then
17346 echo $ac_n "(cached) $ac_c" 1>&6
17351 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17353 cat > conftest.$ac_ext <<EOF
17354 #line 17355 "configure"
17355 #include "confdefs.h"
17357 #ifdef HAVE_DB_185_H
17358 # include <db_185.h>
17363 #ifndef DB_VERSION_MAJOR
17364 # define DB_VERSION_MAJOR 1
17368 #define NULL ((void*)0)
17373 #if DB_VERSION_MAJOR > 1
17376 int major, minor, patch;
17378 version = db_version( &major, &minor, &patch );
17380 if( major != DB_VERSION_MAJOR ||
17381 minor < DB_VERSION_MINOR )
17383 printf("Berkeley DB version mismatch\n"
17384 "\theader: %s\n\tlibrary: %s\n",
17385 DB_VERSION_STRING, version);
17391 #if DB_VERSION_MAJOR > 2
17392 db_env_create( NULL, 0 );
17393 #elif DB_VERSION_MAJOR > 1
17394 db_appexit( NULL );
17396 (void) dbopen( NULL, 0, 0, 0, NULL);
17401 if { (eval echo configure:17402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17403 ol_cv_db_db_4_3=yes
17405 echo "configure: failed program was:" >&5
17406 cat conftest.$ac_ext >&5
17416 echo "$ac_t""$ol_cv_db_db_4_3" 1>&6
17418 if test $ol_cv_db_db_4_3 = yes ; then
17419 ol_cv_lib_db=-ldb-4-3
17423 if test $ol_cv_lib_db = no ; then
17424 echo $ac_n "checking for Berkeley DB link (-ldb42)""... $ac_c" 1>&6
17425 echo "configure:17426: checking for Berkeley DB link (-ldb42)" >&5
17426 if eval "test \"\${ol_cv_db_db42+set}\" = set"; then
17427 echo $ac_n "(cached) $ac_c" 1>&6
17432 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17434 cat > conftest.$ac_ext <<EOF
17435 #line 17436 "configure"
17436 #include "confdefs.h"
17438 #ifdef HAVE_DB_185_H
17439 # include <db_185.h>
17444 #ifndef DB_VERSION_MAJOR
17445 # define DB_VERSION_MAJOR 1
17449 #define NULL ((void*)0)
17454 #if DB_VERSION_MAJOR > 1
17457 int major, minor, patch;
17459 version = db_version( &major, &minor, &patch );
17461 if( major != DB_VERSION_MAJOR ||
17462 minor < DB_VERSION_MINOR )
17464 printf("Berkeley DB version mismatch\n"
17465 "\theader: %s\n\tlibrary: %s\n",
17466 DB_VERSION_STRING, version);
17472 #if DB_VERSION_MAJOR > 2
17473 db_env_create( NULL, 0 );
17474 #elif DB_VERSION_MAJOR > 1
17475 db_appexit( NULL );
17477 (void) dbopen( NULL, 0, 0, 0, NULL);
17482 if { (eval echo configure:17483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17486 echo "configure: failed program was:" >&5
17487 cat conftest.$ac_ext >&5
17497 echo "$ac_t""$ol_cv_db_db42" 1>&6
17499 if test $ol_cv_db_db42 = yes ; then
17500 ol_cv_lib_db=-ldb42
17504 if test $ol_cv_lib_db = no ; then
17505 echo $ac_n "checking for Berkeley DB link (-ldb-42)""... $ac_c" 1>&6
17506 echo "configure:17507: checking for Berkeley DB link (-ldb-42)" >&5
17507 if eval "test \"\${ol_cv_db_db_42+set}\" = set"; then
17508 echo $ac_n "(cached) $ac_c" 1>&6
17513 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17515 cat > conftest.$ac_ext <<EOF
17516 #line 17517 "configure"
17517 #include "confdefs.h"
17519 #ifdef HAVE_DB_185_H
17520 # include <db_185.h>
17525 #ifndef DB_VERSION_MAJOR
17526 # define DB_VERSION_MAJOR 1
17530 #define NULL ((void*)0)
17535 #if DB_VERSION_MAJOR > 1
17538 int major, minor, patch;
17540 version = db_version( &major, &minor, &patch );
17542 if( major != DB_VERSION_MAJOR ||
17543 minor < DB_VERSION_MINOR )
17545 printf("Berkeley DB version mismatch\n"
17546 "\theader: %s\n\tlibrary: %s\n",
17547 DB_VERSION_STRING, version);
17553 #if DB_VERSION_MAJOR > 2
17554 db_env_create( NULL, 0 );
17555 #elif DB_VERSION_MAJOR > 1
17556 db_appexit( NULL );
17558 (void) dbopen( NULL, 0, 0, 0, NULL);
17563 if { (eval echo configure:17564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17567 echo "configure: failed program was:" >&5
17568 cat conftest.$ac_ext >&5
17578 echo "$ac_t""$ol_cv_db_db_42" 1>&6
17580 if test $ol_cv_db_db_42 = yes ; then
17581 ol_cv_lib_db=-ldb-42
17585 if test $ol_cv_lib_db = no ; then
17586 echo $ac_n "checking for Berkeley DB link (-ldb-4.2)""... $ac_c" 1>&6
17587 echo "configure:17588: checking for Berkeley DB link (-ldb-4.2)" >&5
17588 if eval "test \"\${ol_cv_db_db_4_dot_2+set}\" = set"; then
17589 echo $ac_n "(cached) $ac_c" 1>&6
17594 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17596 cat > conftest.$ac_ext <<EOF
17597 #line 17598 "configure"
17598 #include "confdefs.h"
17600 #ifdef HAVE_DB_185_H
17601 # include <db_185.h>
17606 #ifndef DB_VERSION_MAJOR
17607 # define DB_VERSION_MAJOR 1
17611 #define NULL ((void*)0)
17616 #if DB_VERSION_MAJOR > 1
17619 int major, minor, patch;
17621 version = db_version( &major, &minor, &patch );
17623 if( major != DB_VERSION_MAJOR ||
17624 minor < DB_VERSION_MINOR )
17626 printf("Berkeley DB version mismatch\n"
17627 "\theader: %s\n\tlibrary: %s\n",
17628 DB_VERSION_STRING, version);
17634 #if DB_VERSION_MAJOR > 2
17635 db_env_create( NULL, 0 );
17636 #elif DB_VERSION_MAJOR > 1
17637 db_appexit( NULL );
17639 (void) dbopen( NULL, 0, 0, 0, NULL);
17644 if { (eval echo configure:17645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17646 ol_cv_db_db_4_dot_2=yes
17648 echo "configure: failed program was:" >&5
17649 cat conftest.$ac_ext >&5
17651 ol_cv_db_db_4_dot_2=no
17659 echo "$ac_t""$ol_cv_db_db_4_dot_2" 1>&6
17661 if test $ol_cv_db_db_4_dot_2 = yes ; then
17662 ol_cv_lib_db=-ldb-4.2
17666 if test $ol_cv_lib_db = no ; then
17667 echo $ac_n "checking for Berkeley DB link (-ldb-4-2)""... $ac_c" 1>&6
17668 echo "configure:17669: checking for Berkeley DB link (-ldb-4-2)" >&5
17669 if eval "test \"\${ol_cv_db_db_4_2+set}\" = set"; then
17670 echo $ac_n "(cached) $ac_c" 1>&6
17675 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17677 cat > conftest.$ac_ext <<EOF
17678 #line 17679 "configure"
17679 #include "confdefs.h"
17681 #ifdef HAVE_DB_185_H
17682 # include <db_185.h>
17687 #ifndef DB_VERSION_MAJOR
17688 # define DB_VERSION_MAJOR 1
17692 #define NULL ((void*)0)
17697 #if DB_VERSION_MAJOR > 1
17700 int major, minor, patch;
17702 version = db_version( &major, &minor, &patch );
17704 if( major != DB_VERSION_MAJOR ||
17705 minor < DB_VERSION_MINOR )
17707 printf("Berkeley DB version mismatch\n"
17708 "\theader: %s\n\tlibrary: %s\n",
17709 DB_VERSION_STRING, version);
17715 #if DB_VERSION_MAJOR > 2
17716 db_env_create( NULL, 0 );
17717 #elif DB_VERSION_MAJOR > 1
17718 db_appexit( NULL );
17720 (void) dbopen( NULL, 0, 0, 0, NULL);
17725 if { (eval echo configure:17726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17727 ol_cv_db_db_4_2=yes
17729 echo "configure: failed program was:" >&5
17730 cat conftest.$ac_ext >&5
17740 echo "$ac_t""$ol_cv_db_db_4_2" 1>&6
17742 if test $ol_cv_db_db_4_2 = yes ; then
17743 ol_cv_lib_db=-ldb-4-2
17747 if test $ol_cv_lib_db = no ; then
17748 echo $ac_n "checking for Berkeley DB link (-ldb-4)""... $ac_c" 1>&6
17749 echo "configure:17750: checking for Berkeley DB link (-ldb-4)" >&5
17750 if eval "test \"\${ol_cv_db_db_4+set}\" = set"; then
17751 echo $ac_n "(cached) $ac_c" 1>&6
17756 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17758 cat > conftest.$ac_ext <<EOF
17759 #line 17760 "configure"
17760 #include "confdefs.h"
17762 #ifdef HAVE_DB_185_H
17763 # include <db_185.h>
17768 #ifndef DB_VERSION_MAJOR
17769 # define DB_VERSION_MAJOR 1
17773 #define NULL ((void*)0)
17778 #if DB_VERSION_MAJOR > 1
17781 int major, minor, patch;
17783 version = db_version( &major, &minor, &patch );
17785 if( major != DB_VERSION_MAJOR ||
17786 minor < DB_VERSION_MINOR )
17788 printf("Berkeley DB version mismatch\n"
17789 "\theader: %s\n\tlibrary: %s\n",
17790 DB_VERSION_STRING, version);
17796 #if DB_VERSION_MAJOR > 2
17797 db_env_create( NULL, 0 );
17798 #elif DB_VERSION_MAJOR > 1
17799 db_appexit( NULL );
17801 (void) dbopen( NULL, 0, 0, 0, NULL);
17806 if { (eval echo configure:17807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17810 echo "configure: failed program was:" >&5
17811 cat conftest.$ac_ext >&5
17821 echo "$ac_t""$ol_cv_db_db_4" 1>&6
17823 if test $ol_cv_db_db_4 = yes ; then
17824 ol_cv_lib_db=-ldb-4
17828 if test $ol_cv_lib_db = no ; then
17829 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
17830 echo "configure:17831: checking for Berkeley DB link (-ldb4)" >&5
17831 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
17832 echo $ac_n "(cached) $ac_c" 1>&6
17837 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17839 cat > conftest.$ac_ext <<EOF
17840 #line 17841 "configure"
17841 #include "confdefs.h"
17843 #ifdef HAVE_DB_185_H
17844 # include <db_185.h>
17849 #ifndef DB_VERSION_MAJOR
17850 # define DB_VERSION_MAJOR 1
17854 #define NULL ((void*)0)
17859 #if DB_VERSION_MAJOR > 1
17862 int major, minor, patch;
17864 version = db_version( &major, &minor, &patch );
17866 if( major != DB_VERSION_MAJOR ||
17867 minor < DB_VERSION_MINOR )
17869 printf("Berkeley DB version mismatch\n"
17870 "\theader: %s\n\tlibrary: %s\n",
17871 DB_VERSION_STRING, version);
17877 #if DB_VERSION_MAJOR > 2
17878 db_env_create( NULL, 0 );
17879 #elif DB_VERSION_MAJOR > 1
17880 db_appexit( NULL );
17882 (void) dbopen( NULL, 0, 0, 0, NULL);
17887 if { (eval echo configure:17888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17891 echo "configure: failed program was:" >&5
17892 cat conftest.$ac_ext >&5
17902 echo "$ac_t""$ol_cv_db_db4" 1>&6
17904 if test $ol_cv_db_db4 = yes ; then
17909 if test $ol_cv_lib_db = no ; then
17910 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
17911 echo "configure:17912: checking for Berkeley DB link (-ldb)" >&5
17912 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
17913 echo $ac_n "(cached) $ac_c" 1>&6
17918 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17920 cat > conftest.$ac_ext <<EOF
17921 #line 17922 "configure"
17922 #include "confdefs.h"
17924 #ifdef HAVE_DB_185_H
17925 # include <db_185.h>
17930 #ifndef DB_VERSION_MAJOR
17931 # define DB_VERSION_MAJOR 1
17935 #define NULL ((void*)0)
17940 #if DB_VERSION_MAJOR > 1
17943 int major, minor, patch;
17945 version = db_version( &major, &minor, &patch );
17947 if( major != DB_VERSION_MAJOR ||
17948 minor < DB_VERSION_MINOR )
17950 printf("Berkeley DB version mismatch\n"
17951 "\theader: %s\n\tlibrary: %s\n",
17952 DB_VERSION_STRING, version);
17958 #if DB_VERSION_MAJOR > 2
17959 db_env_create( NULL, 0 );
17960 #elif DB_VERSION_MAJOR > 1
17961 db_appexit( NULL );
17963 (void) dbopen( NULL, 0, 0, 0, NULL);
17968 if { (eval echo configure:17969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17972 echo "configure: failed program was:" >&5
17973 cat conftest.$ac_ext >&5
17983 echo "$ac_t""$ol_cv_db_db" 1>&6
17985 if test $ol_cv_db_db = yes ; then
17990 if test $ol_cv_lib_db = no ; then
17991 echo $ac_n "checking for Berkeley DB link (-ldb41)""... $ac_c" 1>&6
17992 echo "configure:17993: checking for Berkeley DB link (-ldb41)" >&5
17993 if eval "test \"\${ol_cv_db_db41+set}\" = set"; then
17994 echo $ac_n "(cached) $ac_c" 1>&6
17999 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18001 cat > conftest.$ac_ext <<EOF
18002 #line 18003 "configure"
18003 #include "confdefs.h"
18005 #ifdef HAVE_DB_185_H
18006 # include <db_185.h>
18011 #ifndef DB_VERSION_MAJOR
18012 # define DB_VERSION_MAJOR 1
18016 #define NULL ((void*)0)
18021 #if DB_VERSION_MAJOR > 1
18024 int major, minor, patch;
18026 version = db_version( &major, &minor, &patch );
18028 if( major != DB_VERSION_MAJOR ||
18029 minor < DB_VERSION_MINOR )
18031 printf("Berkeley DB version mismatch\n"
18032 "\theader: %s\n\tlibrary: %s\n",
18033 DB_VERSION_STRING, version);
18039 #if DB_VERSION_MAJOR > 2
18040 db_env_create( NULL, 0 );
18041 #elif DB_VERSION_MAJOR > 1
18042 db_appexit( NULL );
18044 (void) dbopen( NULL, 0, 0, 0, NULL);
18049 if { (eval echo configure:18050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18053 echo "configure: failed program was:" >&5
18054 cat conftest.$ac_ext >&5
18064 echo "$ac_t""$ol_cv_db_db41" 1>&6
18066 if test $ol_cv_db_db41 = yes ; then
18067 ol_cv_lib_db=-ldb41
18071 if test $ol_cv_lib_db = no ; then
18072 echo $ac_n "checking for Berkeley DB link (-ldb-41)""... $ac_c" 1>&6
18073 echo "configure:18074: checking for Berkeley DB link (-ldb-41)" >&5
18074 if eval "test \"\${ol_cv_db_db_41+set}\" = set"; then
18075 echo $ac_n "(cached) $ac_c" 1>&6
18080 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18082 cat > conftest.$ac_ext <<EOF
18083 #line 18084 "configure"
18084 #include "confdefs.h"
18086 #ifdef HAVE_DB_185_H
18087 # include <db_185.h>
18092 #ifndef DB_VERSION_MAJOR
18093 # define DB_VERSION_MAJOR 1
18097 #define NULL ((void*)0)
18102 #if DB_VERSION_MAJOR > 1
18105 int major, minor, patch;
18107 version = db_version( &major, &minor, &patch );
18109 if( major != DB_VERSION_MAJOR ||
18110 minor < DB_VERSION_MINOR )
18112 printf("Berkeley DB version mismatch\n"
18113 "\theader: %s\n\tlibrary: %s\n",
18114 DB_VERSION_STRING, version);
18120 #if DB_VERSION_MAJOR > 2
18121 db_env_create( NULL, 0 );
18122 #elif DB_VERSION_MAJOR > 1
18123 db_appexit( NULL );
18125 (void) dbopen( NULL, 0, 0, 0, NULL);
18130 if { (eval echo configure:18131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18134 echo "configure: failed program was:" >&5
18135 cat conftest.$ac_ext >&5
18145 echo "$ac_t""$ol_cv_db_db_41" 1>&6
18147 if test $ol_cv_db_db_41 = yes ; then
18148 ol_cv_lib_db=-ldb-41
18152 if test $ol_cv_lib_db = no ; then
18153 echo $ac_n "checking for Berkeley DB link (-ldb-4.1)""... $ac_c" 1>&6
18154 echo "configure:18155: checking for Berkeley DB link (-ldb-4.1)" >&5
18155 if eval "test \"\${ol_cv_db_db_4_dot_1+set}\" = set"; then
18156 echo $ac_n "(cached) $ac_c" 1>&6
18161 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18163 cat > conftest.$ac_ext <<EOF
18164 #line 18165 "configure"
18165 #include "confdefs.h"
18167 #ifdef HAVE_DB_185_H
18168 # include <db_185.h>
18173 #ifndef DB_VERSION_MAJOR
18174 # define DB_VERSION_MAJOR 1
18178 #define NULL ((void*)0)
18183 #if DB_VERSION_MAJOR > 1
18186 int major, minor, patch;
18188 version = db_version( &major, &minor, &patch );
18190 if( major != DB_VERSION_MAJOR ||
18191 minor < DB_VERSION_MINOR )
18193 printf("Berkeley DB version mismatch\n"
18194 "\theader: %s\n\tlibrary: %s\n",
18195 DB_VERSION_STRING, version);
18201 #if DB_VERSION_MAJOR > 2
18202 db_env_create( NULL, 0 );
18203 #elif DB_VERSION_MAJOR > 1
18204 db_appexit( NULL );
18206 (void) dbopen( NULL, 0, 0, 0, NULL);
18211 if { (eval echo configure:18212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18213 ol_cv_db_db_4_dot_1=yes
18215 echo "configure: failed program was:" >&5
18216 cat conftest.$ac_ext >&5
18218 ol_cv_db_db_4_dot_1=no
18226 echo "$ac_t""$ol_cv_db_db_4_dot_1" 1>&6
18228 if test $ol_cv_db_db_4_dot_1 = yes ; then
18229 ol_cv_lib_db=-ldb-4.1
18233 if test $ol_cv_lib_db = no ; then
18234 echo $ac_n "checking for Berkeley DB link (-ldb-4-1)""... $ac_c" 1>&6
18235 echo "configure:18236: checking for Berkeley DB link (-ldb-4-1)" >&5
18236 if eval "test \"\${ol_cv_db_db_4_1+set}\" = set"; then
18237 echo $ac_n "(cached) $ac_c" 1>&6
18242 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18244 cat > conftest.$ac_ext <<EOF
18245 #line 18246 "configure"
18246 #include "confdefs.h"
18248 #ifdef HAVE_DB_185_H
18249 # include <db_185.h>
18254 #ifndef DB_VERSION_MAJOR
18255 # define DB_VERSION_MAJOR 1
18259 #define NULL ((void*)0)
18264 #if DB_VERSION_MAJOR > 1
18267 int major, minor, patch;
18269 version = db_version( &major, &minor, &patch );
18271 if( major != DB_VERSION_MAJOR ||
18272 minor < DB_VERSION_MINOR )
18274 printf("Berkeley DB version mismatch\n"
18275 "\theader: %s\n\tlibrary: %s\n",
18276 DB_VERSION_STRING, version);
18282 #if DB_VERSION_MAJOR > 2
18283 db_env_create( NULL, 0 );
18284 #elif DB_VERSION_MAJOR > 1
18285 db_appexit( NULL );
18287 (void) dbopen( NULL, 0, 0, 0, NULL);
18292 if { (eval echo configure:18293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18294 ol_cv_db_db_4_1=yes
18296 echo "configure: failed program was:" >&5
18297 cat conftest.$ac_ext >&5
18307 echo "$ac_t""$ol_cv_db_db_4_1" 1>&6
18309 if test $ol_cv_db_db_4_1 = yes ; then
18310 ol_cv_lib_db=-ldb-4-1
18314 if test $ol_cv_lib_db = no ; then
18315 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
18316 echo "configure:18317: checking for Berkeley DB link (-ldb3)" >&5
18317 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
18318 echo $ac_n "(cached) $ac_c" 1>&6
18323 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18325 cat > conftest.$ac_ext <<EOF
18326 #line 18327 "configure"
18327 #include "confdefs.h"
18329 #ifdef HAVE_DB_185_H
18330 # include <db_185.h>
18335 #ifndef DB_VERSION_MAJOR
18336 # define DB_VERSION_MAJOR 1
18340 #define NULL ((void*)0)
18345 #if DB_VERSION_MAJOR > 1
18348 int major, minor, patch;
18350 version = db_version( &major, &minor, &patch );
18352 if( major != DB_VERSION_MAJOR ||
18353 minor < DB_VERSION_MINOR )
18355 printf("Berkeley DB version mismatch\n"
18356 "\theader: %s\n\tlibrary: %s\n",
18357 DB_VERSION_STRING, version);
18363 #if DB_VERSION_MAJOR > 2
18364 db_env_create( NULL, 0 );
18365 #elif DB_VERSION_MAJOR > 1
18366 db_appexit( NULL );
18368 (void) dbopen( NULL, 0, 0, 0, NULL);
18373 if { (eval echo configure:18374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18377 echo "configure: failed program was:" >&5
18378 cat conftest.$ac_ext >&5
18388 echo "$ac_t""$ol_cv_db_db3" 1>&6
18390 if test $ol_cv_db_db3 = yes ; then
18395 if test $ol_cv_lib_db = no ; then
18396 echo $ac_n "checking for Berkeley DB link (-ldb-3)""... $ac_c" 1>&6
18397 echo "configure:18398: checking for Berkeley DB link (-ldb-3)" >&5
18398 if eval "test \"\${ol_cv_db_db_3+set}\" = set"; then
18399 echo $ac_n "(cached) $ac_c" 1>&6
18404 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18406 cat > conftest.$ac_ext <<EOF
18407 #line 18408 "configure"
18408 #include "confdefs.h"
18410 #ifdef HAVE_DB_185_H
18411 # include <db_185.h>
18416 #ifndef DB_VERSION_MAJOR
18417 # define DB_VERSION_MAJOR 1
18421 #define NULL ((void*)0)
18426 #if DB_VERSION_MAJOR > 1
18429 int major, minor, patch;
18431 version = db_version( &major, &minor, &patch );
18433 if( major != DB_VERSION_MAJOR ||
18434 minor < DB_VERSION_MINOR )
18436 printf("Berkeley DB version mismatch\n"
18437 "\theader: %s\n\tlibrary: %s\n",
18438 DB_VERSION_STRING, version);
18444 #if DB_VERSION_MAJOR > 2
18445 db_env_create( NULL, 0 );
18446 #elif DB_VERSION_MAJOR > 1
18447 db_appexit( NULL );
18449 (void) dbopen( NULL, 0, 0, 0, NULL);
18454 if { (eval echo configure:18455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18458 echo "configure: failed program was:" >&5
18459 cat conftest.$ac_ext >&5
18469 echo "$ac_t""$ol_cv_db_db_3" 1>&6
18471 if test $ol_cv_db_db_3 = yes ; then
18472 ol_cv_lib_db=-ldb-3
18476 if test $ol_cv_lib_db = no ; then
18477 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
18478 echo "configure:18479: checking for Berkeley DB link (-ldb2)" >&5
18479 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
18480 echo $ac_n "(cached) $ac_c" 1>&6
18485 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18487 cat > conftest.$ac_ext <<EOF
18488 #line 18489 "configure"
18489 #include "confdefs.h"
18491 #ifdef HAVE_DB_185_H
18492 # include <db_185.h>
18497 #ifndef DB_VERSION_MAJOR
18498 # define DB_VERSION_MAJOR 1
18502 #define NULL ((void*)0)
18507 #if DB_VERSION_MAJOR > 1
18510 int major, minor, patch;
18512 version = db_version( &major, &minor, &patch );
18514 if( major != DB_VERSION_MAJOR ||
18515 minor < DB_VERSION_MINOR )
18517 printf("Berkeley DB version mismatch\n"
18518 "\theader: %s\n\tlibrary: %s\n",
18519 DB_VERSION_STRING, version);
18525 #if DB_VERSION_MAJOR > 2
18526 db_env_create( NULL, 0 );
18527 #elif DB_VERSION_MAJOR > 1
18528 db_appexit( NULL );
18530 (void) dbopen( NULL, 0, 0, 0, NULL);
18535 if { (eval echo configure:18536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18539 echo "configure: failed program was:" >&5
18540 cat conftest.$ac_ext >&5
18550 echo "$ac_t""$ol_cv_db_db2" 1>&6
18552 if test $ol_cv_db_db2 = yes ; then
18557 if test $ol_cv_lib_db = no ; then
18558 echo $ac_n "checking for Berkeley DB link (-ldb-2)""... $ac_c" 1>&6
18559 echo "configure:18560: checking for Berkeley DB link (-ldb-2)" >&5
18560 if eval "test \"\${ol_cv_db_db_2+set}\" = set"; then
18561 echo $ac_n "(cached) $ac_c" 1>&6
18566 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18568 cat > conftest.$ac_ext <<EOF
18569 #line 18570 "configure"
18570 #include "confdefs.h"
18572 #ifdef HAVE_DB_185_H
18573 # include <db_185.h>
18578 #ifndef DB_VERSION_MAJOR
18579 # define DB_VERSION_MAJOR 1
18583 #define NULL ((void*)0)
18588 #if DB_VERSION_MAJOR > 1
18591 int major, minor, patch;
18593 version = db_version( &major, &minor, &patch );
18595 if( major != DB_VERSION_MAJOR ||
18596 minor < DB_VERSION_MINOR )
18598 printf("Berkeley DB version mismatch\n"
18599 "\theader: %s\n\tlibrary: %s\n",
18600 DB_VERSION_STRING, version);
18606 #if DB_VERSION_MAJOR > 2
18607 db_env_create( NULL, 0 );
18608 #elif DB_VERSION_MAJOR > 1
18609 db_appexit( NULL );
18611 (void) dbopen( NULL, 0, 0, 0, NULL);
18616 if { (eval echo configure:18617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18620 echo "configure: failed program was:" >&5
18621 cat conftest.$ac_ext >&5
18631 echo "$ac_t""$ol_cv_db_db_2" 1>&6
18633 if test $ol_cv_db_db_2 = yes ; then
18634 ol_cv_lib_db=-ldb-2
18638 if test $ol_cv_lib_db = no ; then
18639 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
18640 echo "configure:18641: checking for Berkeley DB link (-ldb1)" >&5
18641 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
18642 echo $ac_n "(cached) $ac_c" 1>&6
18647 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18649 cat > conftest.$ac_ext <<EOF
18650 #line 18651 "configure"
18651 #include "confdefs.h"
18653 #ifdef HAVE_DB_185_H
18654 # include <db_185.h>
18659 #ifndef DB_VERSION_MAJOR
18660 # define DB_VERSION_MAJOR 1
18664 #define NULL ((void*)0)
18669 #if DB_VERSION_MAJOR > 1
18672 int major, minor, patch;
18674 version = db_version( &major, &minor, &patch );
18676 if( major != DB_VERSION_MAJOR ||
18677 minor < DB_VERSION_MINOR )
18679 printf("Berkeley DB version mismatch\n"
18680 "\theader: %s\n\tlibrary: %s\n",
18681 DB_VERSION_STRING, version);
18687 #if DB_VERSION_MAJOR > 2
18688 db_env_create( NULL, 0 );
18689 #elif DB_VERSION_MAJOR > 1
18690 db_appexit( NULL );
18692 (void) dbopen( NULL, 0, 0, 0, NULL);
18697 if { (eval echo configure:18698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18701 echo "configure: failed program was:" >&5
18702 cat conftest.$ac_ext >&5
18712 echo "$ac_t""$ol_cv_db_db1" 1>&6
18714 if test $ol_cv_db_db1 = yes ; then
18719 if test $ol_cv_lib_db = no ; then
18720 echo $ac_n "checking for Berkeley DB link (-ldb-1)""... $ac_c" 1>&6
18721 echo "configure:18722: checking for Berkeley DB link (-ldb-1)" >&5
18722 if eval "test \"\${ol_cv_db_db_1+set}\" = set"; then
18723 echo $ac_n "(cached) $ac_c" 1>&6
18728 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18730 cat > conftest.$ac_ext <<EOF
18731 #line 18732 "configure"
18732 #include "confdefs.h"
18734 #ifdef HAVE_DB_185_H
18735 # include <db_185.h>
18740 #ifndef DB_VERSION_MAJOR
18741 # define DB_VERSION_MAJOR 1
18745 #define NULL ((void*)0)
18750 #if DB_VERSION_MAJOR > 1
18753 int major, minor, patch;
18755 version = db_version( &major, &minor, &patch );
18757 if( major != DB_VERSION_MAJOR ||
18758 minor < DB_VERSION_MINOR )
18760 printf("Berkeley DB version mismatch\n"
18761 "\theader: %s\n\tlibrary: %s\n",
18762 DB_VERSION_STRING, version);
18768 #if DB_VERSION_MAJOR > 2
18769 db_env_create( NULL, 0 );
18770 #elif DB_VERSION_MAJOR > 1
18771 db_appexit( NULL );
18773 (void) dbopen( NULL, 0, 0, 0, NULL);
18778 if { (eval echo configure:18779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18782 echo "configure: failed program was:" >&5
18783 cat conftest.$ac_ext >&5
18793 echo "$ac_t""$ol_cv_db_db_1" 1>&6
18795 if test $ol_cv_db_db_1 = yes ; then
18796 ol_cv_lib_db=-ldb-1
18801 if test "$ol_cv_lib_db" != no ; then
18802 ol_cv_berkeley_db=yes
18808 ol_cv_berkeley_db=no
18811 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18812 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18813 echo "configure:18814: checking for $ac_hdr" >&5
18814 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
18815 echo $ac_n "(cached) $ac_c" 1>&6
18817 cat > conftest.$ac_ext <<EOF
18818 #line 18819 "configure"
18819 #include "confdefs.h"
18822 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18823 { (eval echo configure:18824: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18824 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18825 if test -z "$ac_err"; then
18827 eval "ac_cv_header_$ac_safe=yes"
18830 echo "configure: failed program was:" >&5
18831 cat conftest.$ac_ext >&5
18833 eval "ac_cv_header_$ac_safe=no"
18837 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18838 echo "$ac_t""yes" 1>&6
18839 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18840 cat >> confdefs.h <<EOF
18841 #define $ac_tr_hdr 1
18845 echo "$ac_t""no" 1>&6
18849 if test $ac_cv_header_db_h = yes; then
18851 if test $ol_cv_lib_db = no ; then
18852 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
18853 echo "configure:18854: checking for Berkeley DB link (default)" >&5
18854 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
18855 echo $ac_n "(cached) $ac_c" 1>&6
18860 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18862 cat > conftest.$ac_ext <<EOF
18863 #line 18864 "configure"
18864 #include "confdefs.h"
18866 #ifdef HAVE_DB_185_H
18867 # include <db_185.h>
18872 #ifndef DB_VERSION_MAJOR
18873 # define DB_VERSION_MAJOR 1
18877 #define NULL ((void*)0)
18882 #if DB_VERSION_MAJOR > 1
18885 int major, minor, patch;
18887 version = db_version( &major, &minor, &patch );
18889 if( major != DB_VERSION_MAJOR ||
18890 minor < DB_VERSION_MINOR )
18892 printf("Berkeley DB version mismatch\n"
18893 "\theader: %s\n\tlibrary: %s\n",
18894 DB_VERSION_STRING, version);
18900 #if DB_VERSION_MAJOR > 2
18901 db_env_create( NULL, 0 );
18902 #elif DB_VERSION_MAJOR > 1
18903 db_appexit( NULL );
18905 (void) dbopen( NULL, 0, 0, 0, NULL);
18910 if { (eval echo configure:18911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18914 echo "configure: failed program was:" >&5
18915 cat conftest.$ac_ext >&5
18925 echo "$ac_t""$ol_cv_db_none" 1>&6
18927 if test $ol_cv_db_none = yes ; then
18932 if test $ol_cv_lib_db = no ; then
18933 echo $ac_n "checking for Berkeley DB link (-ldb43)""... $ac_c" 1>&6
18934 echo "configure:18935: checking for Berkeley DB link (-ldb43)" >&5
18935 if eval "test \"\${ol_cv_db_db43+set}\" = set"; then
18936 echo $ac_n "(cached) $ac_c" 1>&6
18941 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18943 cat > conftest.$ac_ext <<EOF
18944 #line 18945 "configure"
18945 #include "confdefs.h"
18947 #ifdef HAVE_DB_185_H
18948 # include <db_185.h>
18953 #ifndef DB_VERSION_MAJOR
18954 # define DB_VERSION_MAJOR 1
18958 #define NULL ((void*)0)
18963 #if DB_VERSION_MAJOR > 1
18966 int major, minor, patch;
18968 version = db_version( &major, &minor, &patch );
18970 if( major != DB_VERSION_MAJOR ||
18971 minor < DB_VERSION_MINOR )
18973 printf("Berkeley DB version mismatch\n"
18974 "\theader: %s\n\tlibrary: %s\n",
18975 DB_VERSION_STRING, version);
18981 #if DB_VERSION_MAJOR > 2
18982 db_env_create( NULL, 0 );
18983 #elif DB_VERSION_MAJOR > 1
18984 db_appexit( NULL );
18986 (void) dbopen( NULL, 0, 0, 0, NULL);
18991 if { (eval echo configure:18992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18995 echo "configure: failed program was:" >&5
18996 cat conftest.$ac_ext >&5
19006 echo "$ac_t""$ol_cv_db_db43" 1>&6
19008 if test $ol_cv_db_db43 = yes ; then
19009 ol_cv_lib_db=-ldb43
19013 if test $ol_cv_lib_db = no ; then
19014 echo $ac_n "checking for Berkeley DB link (-ldb-43)""... $ac_c" 1>&6
19015 echo "configure:19016: checking for Berkeley DB link (-ldb-43)" >&5
19016 if eval "test \"\${ol_cv_db_db_43+set}\" = set"; then
19017 echo $ac_n "(cached) $ac_c" 1>&6
19022 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19024 cat > conftest.$ac_ext <<EOF
19025 #line 19026 "configure"
19026 #include "confdefs.h"
19028 #ifdef HAVE_DB_185_H
19029 # include <db_185.h>
19034 #ifndef DB_VERSION_MAJOR
19035 # define DB_VERSION_MAJOR 1
19039 #define NULL ((void*)0)
19044 #if DB_VERSION_MAJOR > 1
19047 int major, minor, patch;
19049 version = db_version( &major, &minor, &patch );
19051 if( major != DB_VERSION_MAJOR ||
19052 minor < DB_VERSION_MINOR )
19054 printf("Berkeley DB version mismatch\n"
19055 "\theader: %s\n\tlibrary: %s\n",
19056 DB_VERSION_STRING, version);
19062 #if DB_VERSION_MAJOR > 2
19063 db_env_create( NULL, 0 );
19064 #elif DB_VERSION_MAJOR > 1
19065 db_appexit( NULL );
19067 (void) dbopen( NULL, 0, 0, 0, NULL);
19072 if { (eval echo configure:19073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19076 echo "configure: failed program was:" >&5
19077 cat conftest.$ac_ext >&5
19087 echo "$ac_t""$ol_cv_db_db_43" 1>&6
19089 if test $ol_cv_db_db_43 = yes ; then
19090 ol_cv_lib_db=-ldb-43
19094 if test $ol_cv_lib_db = no ; then
19095 echo $ac_n "checking for Berkeley DB link (-ldb-4.3)""... $ac_c" 1>&6
19096 echo "configure:19097: checking for Berkeley DB link (-ldb-4.3)" >&5
19097 if eval "test \"\${ol_cv_db_db_4_dot_3+set}\" = set"; then
19098 echo $ac_n "(cached) $ac_c" 1>&6
19103 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19105 cat > conftest.$ac_ext <<EOF
19106 #line 19107 "configure"
19107 #include "confdefs.h"
19109 #ifdef HAVE_DB_185_H
19110 # include <db_185.h>
19115 #ifndef DB_VERSION_MAJOR
19116 # define DB_VERSION_MAJOR 1
19120 #define NULL ((void*)0)
19125 #if DB_VERSION_MAJOR > 1
19128 int major, minor, patch;
19130 version = db_version( &major, &minor, &patch );
19132 if( major != DB_VERSION_MAJOR ||
19133 minor < DB_VERSION_MINOR )
19135 printf("Berkeley DB version mismatch\n"
19136 "\theader: %s\n\tlibrary: %s\n",
19137 DB_VERSION_STRING, version);
19143 #if DB_VERSION_MAJOR > 2
19144 db_env_create( NULL, 0 );
19145 #elif DB_VERSION_MAJOR > 1
19146 db_appexit( NULL );
19148 (void) dbopen( NULL, 0, 0, 0, NULL);
19153 if { (eval echo configure:19154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19155 ol_cv_db_db_4_dot_3=yes
19157 echo "configure: failed program was:" >&5
19158 cat conftest.$ac_ext >&5
19160 ol_cv_db_db_4_dot_3=no
19168 echo "$ac_t""$ol_cv_db_db_4_dot_3" 1>&6
19170 if test $ol_cv_db_db_4_dot_3 = yes ; then
19171 ol_cv_lib_db=-ldb-4.3
19175 if test $ol_cv_lib_db = no ; then
19176 echo $ac_n "checking for Berkeley DB link (-ldb-4-3)""... $ac_c" 1>&6
19177 echo "configure:19178: checking for Berkeley DB link (-ldb-4-3)" >&5
19178 if eval "test \"\${ol_cv_db_db_4_3+set}\" = set"; then
19179 echo $ac_n "(cached) $ac_c" 1>&6
19184 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19186 cat > conftest.$ac_ext <<EOF
19187 #line 19188 "configure"
19188 #include "confdefs.h"
19190 #ifdef HAVE_DB_185_H
19191 # include <db_185.h>
19196 #ifndef DB_VERSION_MAJOR
19197 # define DB_VERSION_MAJOR 1
19201 #define NULL ((void*)0)
19206 #if DB_VERSION_MAJOR > 1
19209 int major, minor, patch;
19211 version = db_version( &major, &minor, &patch );
19213 if( major != DB_VERSION_MAJOR ||
19214 minor < DB_VERSION_MINOR )
19216 printf("Berkeley DB version mismatch\n"
19217 "\theader: %s\n\tlibrary: %s\n",
19218 DB_VERSION_STRING, version);
19224 #if DB_VERSION_MAJOR > 2
19225 db_env_create( NULL, 0 );
19226 #elif DB_VERSION_MAJOR > 1
19227 db_appexit( NULL );
19229 (void) dbopen( NULL, 0, 0, 0, NULL);
19234 if { (eval echo configure:19235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19236 ol_cv_db_db_4_3=yes
19238 echo "configure: failed program was:" >&5
19239 cat conftest.$ac_ext >&5
19249 echo "$ac_t""$ol_cv_db_db_4_3" 1>&6
19251 if test $ol_cv_db_db_4_3 = yes ; then
19252 ol_cv_lib_db=-ldb-4-3
19256 if test $ol_cv_lib_db = no ; then
19257 echo $ac_n "checking for Berkeley DB link (-ldb42)""... $ac_c" 1>&6
19258 echo "configure:19259: checking for Berkeley DB link (-ldb42)" >&5
19259 if eval "test \"\${ol_cv_db_db42+set}\" = set"; then
19260 echo $ac_n "(cached) $ac_c" 1>&6
19265 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19267 cat > conftest.$ac_ext <<EOF
19268 #line 19269 "configure"
19269 #include "confdefs.h"
19271 #ifdef HAVE_DB_185_H
19272 # include <db_185.h>
19277 #ifndef DB_VERSION_MAJOR
19278 # define DB_VERSION_MAJOR 1
19282 #define NULL ((void*)0)
19287 #if DB_VERSION_MAJOR > 1
19290 int major, minor, patch;
19292 version = db_version( &major, &minor, &patch );
19294 if( major != DB_VERSION_MAJOR ||
19295 minor < DB_VERSION_MINOR )
19297 printf("Berkeley DB version mismatch\n"
19298 "\theader: %s\n\tlibrary: %s\n",
19299 DB_VERSION_STRING, version);
19305 #if DB_VERSION_MAJOR > 2
19306 db_env_create( NULL, 0 );
19307 #elif DB_VERSION_MAJOR > 1
19308 db_appexit( NULL );
19310 (void) dbopen( NULL, 0, 0, 0, NULL);
19315 if { (eval echo configure:19316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19319 echo "configure: failed program was:" >&5
19320 cat conftest.$ac_ext >&5
19330 echo "$ac_t""$ol_cv_db_db42" 1>&6
19332 if test $ol_cv_db_db42 = yes ; then
19333 ol_cv_lib_db=-ldb42
19337 if test $ol_cv_lib_db = no ; then
19338 echo $ac_n "checking for Berkeley DB link (-ldb-42)""... $ac_c" 1>&6
19339 echo "configure:19340: checking for Berkeley DB link (-ldb-42)" >&5
19340 if eval "test \"\${ol_cv_db_db_42+set}\" = set"; then
19341 echo $ac_n "(cached) $ac_c" 1>&6
19346 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19348 cat > conftest.$ac_ext <<EOF
19349 #line 19350 "configure"
19350 #include "confdefs.h"
19352 #ifdef HAVE_DB_185_H
19353 # include <db_185.h>
19358 #ifndef DB_VERSION_MAJOR
19359 # define DB_VERSION_MAJOR 1
19363 #define NULL ((void*)0)
19368 #if DB_VERSION_MAJOR > 1
19371 int major, minor, patch;
19373 version = db_version( &major, &minor, &patch );
19375 if( major != DB_VERSION_MAJOR ||
19376 minor < DB_VERSION_MINOR )
19378 printf("Berkeley DB version mismatch\n"
19379 "\theader: %s\n\tlibrary: %s\n",
19380 DB_VERSION_STRING, version);
19386 #if DB_VERSION_MAJOR > 2
19387 db_env_create( NULL, 0 );
19388 #elif DB_VERSION_MAJOR > 1
19389 db_appexit( NULL );
19391 (void) dbopen( NULL, 0, 0, 0, NULL);
19396 if { (eval echo configure:19397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19400 echo "configure: failed program was:" >&5
19401 cat conftest.$ac_ext >&5
19411 echo "$ac_t""$ol_cv_db_db_42" 1>&6
19413 if test $ol_cv_db_db_42 = yes ; then
19414 ol_cv_lib_db=-ldb-42
19418 if test $ol_cv_lib_db = no ; then
19419 echo $ac_n "checking for Berkeley DB link (-ldb-4.2)""... $ac_c" 1>&6
19420 echo "configure:19421: checking for Berkeley DB link (-ldb-4.2)" >&5
19421 if eval "test \"\${ol_cv_db_db_4_dot_2+set}\" = set"; then
19422 echo $ac_n "(cached) $ac_c" 1>&6
19427 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19429 cat > conftest.$ac_ext <<EOF
19430 #line 19431 "configure"
19431 #include "confdefs.h"
19433 #ifdef HAVE_DB_185_H
19434 # include <db_185.h>
19439 #ifndef DB_VERSION_MAJOR
19440 # define DB_VERSION_MAJOR 1
19444 #define NULL ((void*)0)
19449 #if DB_VERSION_MAJOR > 1
19452 int major, minor, patch;
19454 version = db_version( &major, &minor, &patch );
19456 if( major != DB_VERSION_MAJOR ||
19457 minor < DB_VERSION_MINOR )
19459 printf("Berkeley DB version mismatch\n"
19460 "\theader: %s\n\tlibrary: %s\n",
19461 DB_VERSION_STRING, version);
19467 #if DB_VERSION_MAJOR > 2
19468 db_env_create( NULL, 0 );
19469 #elif DB_VERSION_MAJOR > 1
19470 db_appexit( NULL );
19472 (void) dbopen( NULL, 0, 0, 0, NULL);
19477 if { (eval echo configure:19478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19479 ol_cv_db_db_4_dot_2=yes
19481 echo "configure: failed program was:" >&5
19482 cat conftest.$ac_ext >&5
19484 ol_cv_db_db_4_dot_2=no
19492 echo "$ac_t""$ol_cv_db_db_4_dot_2" 1>&6
19494 if test $ol_cv_db_db_4_dot_2 = yes ; then
19495 ol_cv_lib_db=-ldb-4.2
19499 if test $ol_cv_lib_db = no ; then
19500 echo $ac_n "checking for Berkeley DB link (-ldb-4-2)""... $ac_c" 1>&6
19501 echo "configure:19502: checking for Berkeley DB link (-ldb-4-2)" >&5
19502 if eval "test \"\${ol_cv_db_db_4_2+set}\" = set"; then
19503 echo $ac_n "(cached) $ac_c" 1>&6
19508 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19510 cat > conftest.$ac_ext <<EOF
19511 #line 19512 "configure"
19512 #include "confdefs.h"
19514 #ifdef HAVE_DB_185_H
19515 # include <db_185.h>
19520 #ifndef DB_VERSION_MAJOR
19521 # define DB_VERSION_MAJOR 1
19525 #define NULL ((void*)0)
19530 #if DB_VERSION_MAJOR > 1
19533 int major, minor, patch;
19535 version = db_version( &major, &minor, &patch );
19537 if( major != DB_VERSION_MAJOR ||
19538 minor < DB_VERSION_MINOR )
19540 printf("Berkeley DB version mismatch\n"
19541 "\theader: %s\n\tlibrary: %s\n",
19542 DB_VERSION_STRING, version);
19548 #if DB_VERSION_MAJOR > 2
19549 db_env_create( NULL, 0 );
19550 #elif DB_VERSION_MAJOR > 1
19551 db_appexit( NULL );
19553 (void) dbopen( NULL, 0, 0, 0, NULL);
19558 if { (eval echo configure:19559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19560 ol_cv_db_db_4_2=yes
19562 echo "configure: failed program was:" >&5
19563 cat conftest.$ac_ext >&5
19573 echo "$ac_t""$ol_cv_db_db_4_2" 1>&6
19575 if test $ol_cv_db_db_4_2 = yes ; then
19576 ol_cv_lib_db=-ldb-4-2
19580 if test $ol_cv_lib_db = no ; then
19581 echo $ac_n "checking for Berkeley DB link (-ldb-4)""... $ac_c" 1>&6
19582 echo "configure:19583: checking for Berkeley DB link (-ldb-4)" >&5
19583 if eval "test \"\${ol_cv_db_db_4+set}\" = set"; then
19584 echo $ac_n "(cached) $ac_c" 1>&6
19589 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19591 cat > conftest.$ac_ext <<EOF
19592 #line 19593 "configure"
19593 #include "confdefs.h"
19595 #ifdef HAVE_DB_185_H
19596 # include <db_185.h>
19601 #ifndef DB_VERSION_MAJOR
19602 # define DB_VERSION_MAJOR 1
19606 #define NULL ((void*)0)
19611 #if DB_VERSION_MAJOR > 1
19614 int major, minor, patch;
19616 version = db_version( &major, &minor, &patch );
19618 if( major != DB_VERSION_MAJOR ||
19619 minor < DB_VERSION_MINOR )
19621 printf("Berkeley DB version mismatch\n"
19622 "\theader: %s\n\tlibrary: %s\n",
19623 DB_VERSION_STRING, version);
19629 #if DB_VERSION_MAJOR > 2
19630 db_env_create( NULL, 0 );
19631 #elif DB_VERSION_MAJOR > 1
19632 db_appexit( NULL );
19634 (void) dbopen( NULL, 0, 0, 0, NULL);
19639 if { (eval echo configure:19640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19643 echo "configure: failed program was:" >&5
19644 cat conftest.$ac_ext >&5
19654 echo "$ac_t""$ol_cv_db_db_4" 1>&6
19656 if test $ol_cv_db_db_4 = yes ; then
19657 ol_cv_lib_db=-ldb-4
19661 if test $ol_cv_lib_db = no ; then
19662 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
19663 echo "configure:19664: checking for Berkeley DB link (-ldb4)" >&5
19664 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
19665 echo $ac_n "(cached) $ac_c" 1>&6
19670 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19672 cat > conftest.$ac_ext <<EOF
19673 #line 19674 "configure"
19674 #include "confdefs.h"
19676 #ifdef HAVE_DB_185_H
19677 # include <db_185.h>
19682 #ifndef DB_VERSION_MAJOR
19683 # define DB_VERSION_MAJOR 1
19687 #define NULL ((void*)0)
19692 #if DB_VERSION_MAJOR > 1
19695 int major, minor, patch;
19697 version = db_version( &major, &minor, &patch );
19699 if( major != DB_VERSION_MAJOR ||
19700 minor < DB_VERSION_MINOR )
19702 printf("Berkeley DB version mismatch\n"
19703 "\theader: %s\n\tlibrary: %s\n",
19704 DB_VERSION_STRING, version);
19710 #if DB_VERSION_MAJOR > 2
19711 db_env_create( NULL, 0 );
19712 #elif DB_VERSION_MAJOR > 1
19713 db_appexit( NULL );
19715 (void) dbopen( NULL, 0, 0, 0, NULL);
19720 if { (eval echo configure:19721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19724 echo "configure: failed program was:" >&5
19725 cat conftest.$ac_ext >&5
19735 echo "$ac_t""$ol_cv_db_db4" 1>&6
19737 if test $ol_cv_db_db4 = yes ; then
19742 if test $ol_cv_lib_db = no ; then
19743 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
19744 echo "configure:19745: checking for Berkeley DB link (-ldb)" >&5
19745 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
19746 echo $ac_n "(cached) $ac_c" 1>&6
19751 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19753 cat > conftest.$ac_ext <<EOF
19754 #line 19755 "configure"
19755 #include "confdefs.h"
19757 #ifdef HAVE_DB_185_H
19758 # include <db_185.h>
19763 #ifndef DB_VERSION_MAJOR
19764 # define DB_VERSION_MAJOR 1
19768 #define NULL ((void*)0)
19773 #if DB_VERSION_MAJOR > 1
19776 int major, minor, patch;
19778 version = db_version( &major, &minor, &patch );
19780 if( major != DB_VERSION_MAJOR ||
19781 minor < DB_VERSION_MINOR )
19783 printf("Berkeley DB version mismatch\n"
19784 "\theader: %s\n\tlibrary: %s\n",
19785 DB_VERSION_STRING, version);
19791 #if DB_VERSION_MAJOR > 2
19792 db_env_create( NULL, 0 );
19793 #elif DB_VERSION_MAJOR > 1
19794 db_appexit( NULL );
19796 (void) dbopen( NULL, 0, 0, 0, NULL);
19801 if { (eval echo configure:19802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19805 echo "configure: failed program was:" >&5
19806 cat conftest.$ac_ext >&5
19816 echo "$ac_t""$ol_cv_db_db" 1>&6
19818 if test $ol_cv_db_db = yes ; then
19823 if test $ol_cv_lib_db = no ; then
19824 echo $ac_n "checking for Berkeley DB link (-ldb41)""... $ac_c" 1>&6
19825 echo "configure:19826: checking for Berkeley DB link (-ldb41)" >&5
19826 if eval "test \"\${ol_cv_db_db41+set}\" = set"; then
19827 echo $ac_n "(cached) $ac_c" 1>&6
19832 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19834 cat > conftest.$ac_ext <<EOF
19835 #line 19836 "configure"
19836 #include "confdefs.h"
19838 #ifdef HAVE_DB_185_H
19839 # include <db_185.h>
19844 #ifndef DB_VERSION_MAJOR
19845 # define DB_VERSION_MAJOR 1
19849 #define NULL ((void*)0)
19854 #if DB_VERSION_MAJOR > 1
19857 int major, minor, patch;
19859 version = db_version( &major, &minor, &patch );
19861 if( major != DB_VERSION_MAJOR ||
19862 minor < DB_VERSION_MINOR )
19864 printf("Berkeley DB version mismatch\n"
19865 "\theader: %s\n\tlibrary: %s\n",
19866 DB_VERSION_STRING, version);
19872 #if DB_VERSION_MAJOR > 2
19873 db_env_create( NULL, 0 );
19874 #elif DB_VERSION_MAJOR > 1
19875 db_appexit( NULL );
19877 (void) dbopen( NULL, 0, 0, 0, NULL);
19882 if { (eval echo configure:19883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19886 echo "configure: failed program was:" >&5
19887 cat conftest.$ac_ext >&5
19897 echo "$ac_t""$ol_cv_db_db41" 1>&6
19899 if test $ol_cv_db_db41 = yes ; then
19900 ol_cv_lib_db=-ldb41
19904 if test $ol_cv_lib_db = no ; then
19905 echo $ac_n "checking for Berkeley DB link (-ldb-41)""... $ac_c" 1>&6
19906 echo "configure:19907: checking for Berkeley DB link (-ldb-41)" >&5
19907 if eval "test \"\${ol_cv_db_db_41+set}\" = set"; then
19908 echo $ac_n "(cached) $ac_c" 1>&6
19913 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19915 cat > conftest.$ac_ext <<EOF
19916 #line 19917 "configure"
19917 #include "confdefs.h"
19919 #ifdef HAVE_DB_185_H
19920 # include <db_185.h>
19925 #ifndef DB_VERSION_MAJOR
19926 # define DB_VERSION_MAJOR 1
19930 #define NULL ((void*)0)
19935 #if DB_VERSION_MAJOR > 1
19938 int major, minor, patch;
19940 version = db_version( &major, &minor, &patch );
19942 if( major != DB_VERSION_MAJOR ||
19943 minor < DB_VERSION_MINOR )
19945 printf("Berkeley DB version mismatch\n"
19946 "\theader: %s\n\tlibrary: %s\n",
19947 DB_VERSION_STRING, version);
19953 #if DB_VERSION_MAJOR > 2
19954 db_env_create( NULL, 0 );
19955 #elif DB_VERSION_MAJOR > 1
19956 db_appexit( NULL );
19958 (void) dbopen( NULL, 0, 0, 0, NULL);
19963 if { (eval echo configure:19964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19967 echo "configure: failed program was:" >&5
19968 cat conftest.$ac_ext >&5
19978 echo "$ac_t""$ol_cv_db_db_41" 1>&6
19980 if test $ol_cv_db_db_41 = yes ; then
19981 ol_cv_lib_db=-ldb-41
19985 if test $ol_cv_lib_db = no ; then
19986 echo $ac_n "checking for Berkeley DB link (-ldb-4.1)""... $ac_c" 1>&6
19987 echo "configure:19988: checking for Berkeley DB link (-ldb-4.1)" >&5
19988 if eval "test \"\${ol_cv_db_db_4_dot_1+set}\" = set"; then
19989 echo $ac_n "(cached) $ac_c" 1>&6
19994 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19996 cat > conftest.$ac_ext <<EOF
19997 #line 19998 "configure"
19998 #include "confdefs.h"
20000 #ifdef HAVE_DB_185_H
20001 # include <db_185.h>
20006 #ifndef DB_VERSION_MAJOR
20007 # define DB_VERSION_MAJOR 1
20011 #define NULL ((void*)0)
20016 #if DB_VERSION_MAJOR > 1
20019 int major, minor, patch;
20021 version = db_version( &major, &minor, &patch );
20023 if( major != DB_VERSION_MAJOR ||
20024 minor < DB_VERSION_MINOR )
20026 printf("Berkeley DB version mismatch\n"
20027 "\theader: %s\n\tlibrary: %s\n",
20028 DB_VERSION_STRING, version);
20034 #if DB_VERSION_MAJOR > 2
20035 db_env_create( NULL, 0 );
20036 #elif DB_VERSION_MAJOR > 1
20037 db_appexit( NULL );
20039 (void) dbopen( NULL, 0, 0, 0, NULL);
20044 if { (eval echo configure:20045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20046 ol_cv_db_db_4_dot_1=yes
20048 echo "configure: failed program was:" >&5
20049 cat conftest.$ac_ext >&5
20051 ol_cv_db_db_4_dot_1=no
20059 echo "$ac_t""$ol_cv_db_db_4_dot_1" 1>&6
20061 if test $ol_cv_db_db_4_dot_1 = yes ; then
20062 ol_cv_lib_db=-ldb-4.1
20066 if test $ol_cv_lib_db = no ; then
20067 echo $ac_n "checking for Berkeley DB link (-ldb-4-1)""... $ac_c" 1>&6
20068 echo "configure:20069: checking for Berkeley DB link (-ldb-4-1)" >&5
20069 if eval "test \"\${ol_cv_db_db_4_1+set}\" = set"; then
20070 echo $ac_n "(cached) $ac_c" 1>&6
20075 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20077 cat > conftest.$ac_ext <<EOF
20078 #line 20079 "configure"
20079 #include "confdefs.h"
20081 #ifdef HAVE_DB_185_H
20082 # include <db_185.h>
20087 #ifndef DB_VERSION_MAJOR
20088 # define DB_VERSION_MAJOR 1
20092 #define NULL ((void*)0)
20097 #if DB_VERSION_MAJOR > 1
20100 int major, minor, patch;
20102 version = db_version( &major, &minor, &patch );
20104 if( major != DB_VERSION_MAJOR ||
20105 minor < DB_VERSION_MINOR )
20107 printf("Berkeley DB version mismatch\n"
20108 "\theader: %s\n\tlibrary: %s\n",
20109 DB_VERSION_STRING, version);
20115 #if DB_VERSION_MAJOR > 2
20116 db_env_create( NULL, 0 );
20117 #elif DB_VERSION_MAJOR > 1
20118 db_appexit( NULL );
20120 (void) dbopen( NULL, 0, 0, 0, NULL);
20125 if { (eval echo configure:20126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20127 ol_cv_db_db_4_1=yes
20129 echo "configure: failed program was:" >&5
20130 cat conftest.$ac_ext >&5
20140 echo "$ac_t""$ol_cv_db_db_4_1" 1>&6
20142 if test $ol_cv_db_db_4_1 = yes ; then
20143 ol_cv_lib_db=-ldb-4-1
20147 if test $ol_cv_lib_db = no ; then
20148 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
20149 echo "configure:20150: checking for Berkeley DB link (-ldb3)" >&5
20150 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
20151 echo $ac_n "(cached) $ac_c" 1>&6
20156 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20158 cat > conftest.$ac_ext <<EOF
20159 #line 20160 "configure"
20160 #include "confdefs.h"
20162 #ifdef HAVE_DB_185_H
20163 # include <db_185.h>
20168 #ifndef DB_VERSION_MAJOR
20169 # define DB_VERSION_MAJOR 1
20173 #define NULL ((void*)0)
20178 #if DB_VERSION_MAJOR > 1
20181 int major, minor, patch;
20183 version = db_version( &major, &minor, &patch );
20185 if( major != DB_VERSION_MAJOR ||
20186 minor < DB_VERSION_MINOR )
20188 printf("Berkeley DB version mismatch\n"
20189 "\theader: %s\n\tlibrary: %s\n",
20190 DB_VERSION_STRING, version);
20196 #if DB_VERSION_MAJOR > 2
20197 db_env_create( NULL, 0 );
20198 #elif DB_VERSION_MAJOR > 1
20199 db_appexit( NULL );
20201 (void) dbopen( NULL, 0, 0, 0, NULL);
20206 if { (eval echo configure:20207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20210 echo "configure: failed program was:" >&5
20211 cat conftest.$ac_ext >&5
20221 echo "$ac_t""$ol_cv_db_db3" 1>&6
20223 if test $ol_cv_db_db3 = yes ; then
20228 if test $ol_cv_lib_db = no ; then
20229 echo $ac_n "checking for Berkeley DB link (-ldb-3)""... $ac_c" 1>&6
20230 echo "configure:20231: checking for Berkeley DB link (-ldb-3)" >&5
20231 if eval "test \"\${ol_cv_db_db_3+set}\" = set"; then
20232 echo $ac_n "(cached) $ac_c" 1>&6
20237 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20239 cat > conftest.$ac_ext <<EOF
20240 #line 20241 "configure"
20241 #include "confdefs.h"
20243 #ifdef HAVE_DB_185_H
20244 # include <db_185.h>
20249 #ifndef DB_VERSION_MAJOR
20250 # define DB_VERSION_MAJOR 1
20254 #define NULL ((void*)0)
20259 #if DB_VERSION_MAJOR > 1
20262 int major, minor, patch;
20264 version = db_version( &major, &minor, &patch );
20266 if( major != DB_VERSION_MAJOR ||
20267 minor < DB_VERSION_MINOR )
20269 printf("Berkeley DB version mismatch\n"
20270 "\theader: %s\n\tlibrary: %s\n",
20271 DB_VERSION_STRING, version);
20277 #if DB_VERSION_MAJOR > 2
20278 db_env_create( NULL, 0 );
20279 #elif DB_VERSION_MAJOR > 1
20280 db_appexit( NULL );
20282 (void) dbopen( NULL, 0, 0, 0, NULL);
20287 if { (eval echo configure:20288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20291 echo "configure: failed program was:" >&5
20292 cat conftest.$ac_ext >&5
20302 echo "$ac_t""$ol_cv_db_db_3" 1>&6
20304 if test $ol_cv_db_db_3 = yes ; then
20305 ol_cv_lib_db=-ldb-3
20309 if test $ol_cv_lib_db = no ; then
20310 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
20311 echo "configure:20312: checking for Berkeley DB link (-ldb2)" >&5
20312 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
20313 echo $ac_n "(cached) $ac_c" 1>&6
20318 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20320 cat > conftest.$ac_ext <<EOF
20321 #line 20322 "configure"
20322 #include "confdefs.h"
20324 #ifdef HAVE_DB_185_H
20325 # include <db_185.h>
20330 #ifndef DB_VERSION_MAJOR
20331 # define DB_VERSION_MAJOR 1
20335 #define NULL ((void*)0)
20340 #if DB_VERSION_MAJOR > 1
20343 int major, minor, patch;
20345 version = db_version( &major, &minor, &patch );
20347 if( major != DB_VERSION_MAJOR ||
20348 minor < DB_VERSION_MINOR )
20350 printf("Berkeley DB version mismatch\n"
20351 "\theader: %s\n\tlibrary: %s\n",
20352 DB_VERSION_STRING, version);
20358 #if DB_VERSION_MAJOR > 2
20359 db_env_create( NULL, 0 );
20360 #elif DB_VERSION_MAJOR > 1
20361 db_appexit( NULL );
20363 (void) dbopen( NULL, 0, 0, 0, NULL);
20368 if { (eval echo configure:20369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20372 echo "configure: failed program was:" >&5
20373 cat conftest.$ac_ext >&5
20383 echo "$ac_t""$ol_cv_db_db2" 1>&6
20385 if test $ol_cv_db_db2 = yes ; then
20390 if test $ol_cv_lib_db = no ; then
20391 echo $ac_n "checking for Berkeley DB link (-ldb-2)""... $ac_c" 1>&6
20392 echo "configure:20393: checking for Berkeley DB link (-ldb-2)" >&5
20393 if eval "test \"\${ol_cv_db_db_2+set}\" = set"; then
20394 echo $ac_n "(cached) $ac_c" 1>&6
20399 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20401 cat > conftest.$ac_ext <<EOF
20402 #line 20403 "configure"
20403 #include "confdefs.h"
20405 #ifdef HAVE_DB_185_H
20406 # include <db_185.h>
20411 #ifndef DB_VERSION_MAJOR
20412 # define DB_VERSION_MAJOR 1
20416 #define NULL ((void*)0)
20421 #if DB_VERSION_MAJOR > 1
20424 int major, minor, patch;
20426 version = db_version( &major, &minor, &patch );
20428 if( major != DB_VERSION_MAJOR ||
20429 minor < DB_VERSION_MINOR )
20431 printf("Berkeley DB version mismatch\n"
20432 "\theader: %s\n\tlibrary: %s\n",
20433 DB_VERSION_STRING, version);
20439 #if DB_VERSION_MAJOR > 2
20440 db_env_create( NULL, 0 );
20441 #elif DB_VERSION_MAJOR > 1
20442 db_appexit( NULL );
20444 (void) dbopen( NULL, 0, 0, 0, NULL);
20449 if { (eval echo configure:20450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20453 echo "configure: failed program was:" >&5
20454 cat conftest.$ac_ext >&5
20464 echo "$ac_t""$ol_cv_db_db_2" 1>&6
20466 if test $ol_cv_db_db_2 = yes ; then
20467 ol_cv_lib_db=-ldb-2
20471 if test $ol_cv_lib_db = no ; then
20472 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
20473 echo "configure:20474: checking for Berkeley DB link (-ldb1)" >&5
20474 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
20475 echo $ac_n "(cached) $ac_c" 1>&6
20480 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20482 cat > conftest.$ac_ext <<EOF
20483 #line 20484 "configure"
20484 #include "confdefs.h"
20486 #ifdef HAVE_DB_185_H
20487 # include <db_185.h>
20492 #ifndef DB_VERSION_MAJOR
20493 # define DB_VERSION_MAJOR 1
20497 #define NULL ((void*)0)
20502 #if DB_VERSION_MAJOR > 1
20505 int major, minor, patch;
20507 version = db_version( &major, &minor, &patch );
20509 if( major != DB_VERSION_MAJOR ||
20510 minor < DB_VERSION_MINOR )
20512 printf("Berkeley DB version mismatch\n"
20513 "\theader: %s\n\tlibrary: %s\n",
20514 DB_VERSION_STRING, version);
20520 #if DB_VERSION_MAJOR > 2
20521 db_env_create( NULL, 0 );
20522 #elif DB_VERSION_MAJOR > 1
20523 db_appexit( NULL );
20525 (void) dbopen( NULL, 0, 0, 0, NULL);
20530 if { (eval echo configure:20531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20534 echo "configure: failed program was:" >&5
20535 cat conftest.$ac_ext >&5
20545 echo "$ac_t""$ol_cv_db_db1" 1>&6
20547 if test $ol_cv_db_db1 = yes ; then
20552 if test $ol_cv_lib_db = no ; then
20553 echo $ac_n "checking for Berkeley DB link (-ldb-1)""... $ac_c" 1>&6
20554 echo "configure:20555: checking for Berkeley DB link (-ldb-1)" >&5
20555 if eval "test \"\${ol_cv_db_db_1+set}\" = set"; then
20556 echo $ac_n "(cached) $ac_c" 1>&6
20561 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20563 cat > conftest.$ac_ext <<EOF
20564 #line 20565 "configure"
20565 #include "confdefs.h"
20567 #ifdef HAVE_DB_185_H
20568 # include <db_185.h>
20573 #ifndef DB_VERSION_MAJOR
20574 # define DB_VERSION_MAJOR 1
20578 #define NULL ((void*)0)
20583 #if DB_VERSION_MAJOR > 1
20586 int major, minor, patch;
20588 version = db_version( &major, &minor, &patch );
20590 if( major != DB_VERSION_MAJOR ||
20591 minor < DB_VERSION_MINOR )
20593 printf("Berkeley DB version mismatch\n"
20594 "\theader: %s\n\tlibrary: %s\n",
20595 DB_VERSION_STRING, version);
20601 #if DB_VERSION_MAJOR > 2
20602 db_env_create( NULL, 0 );
20603 #elif DB_VERSION_MAJOR > 1
20604 db_appexit( NULL );
20606 (void) dbopen( NULL, 0, 0, 0, NULL);
20611 if { (eval echo configure:20612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20615 echo "configure: failed program was:" >&5
20616 cat conftest.$ac_ext >&5
20626 echo "$ac_t""$ol_cv_db_db_1" 1>&6
20628 if test $ol_cv_db_db_1 = yes ; then
20629 ol_cv_lib_db=-ldb-1
20634 if test "$ol_cv_lib_db" != no ; then
20635 ol_cv_berkeley_db=yes
20636 echo $ac_n "checking for Berkeley DB version match""... $ac_c" 1>&6
20637 echo "configure:20638: checking for Berkeley DB version match" >&5
20638 if eval "test \"\${ol_cv_berkeley_db_version+set}\" = set"; then
20639 echo $ac_n "(cached) $ac_c" 1>&6
20643 LIBS="$LTHREAD_LIBS $LIBS"
20644 if test $ol_cv_lib_db != yes ; then
20645 LIBS="$ol_cv_lib_db $LIBS"
20648 if test "$cross_compiling" = yes; then
20649 ol_cv_berkeley_db_version=cross
20651 cat > conftest.$ac_ext <<EOF
20652 #line 20653 "configure"
20653 #include "confdefs.h"
20655 #ifdef HAVE_DB_185_H
20660 #ifndef DB_VERSION_MAJOR
20661 # define DB_VERSION_MAJOR 1
20664 #define NULL ((void *)0)
20668 #if DB_VERSION_MAJOR > 1
20670 int major, minor, patch;
20672 version = db_version( &major, &minor, &patch );
20674 if( major != DB_VERSION_MAJOR ||
20675 minor != DB_VERSION_MINOR ||
20676 patch != DB_VERSION_PATCH )
20678 printf("Berkeley DB version mismatch\n"
20679 "\theader: %s\n\tlibrary: %s\n",
20680 DB_VERSION_STRING, version);
20688 if { (eval echo configure:20689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
20690 ol_cv_berkeley_db_version=yes
20692 echo "configure: failed program was:" >&5
20693 cat conftest.$ac_ext >&5
20695 ol_cv_berkeley_db_version=no
20705 echo "$ac_t""$ol_cv_berkeley_db_version" 1>&6
20707 if test $ol_cv_berkeley_db_version = no ; then
20708 { echo "configure: error: Berkeley DB version mismatch" 1>&2; exit 1; }
20711 echo $ac_n "checking for Berkeley DB thread support""... $ac_c" 1>&6
20712 echo "configure:20713: checking for Berkeley DB thread support" >&5
20713 if eval "test \"\${ol_cv_berkeley_db_thread+set}\" = set"; then
20714 echo $ac_n "(cached) $ac_c" 1>&6
20718 LIBS="$LTHREAD_LIBS $LIBS"
20719 if test $ol_cv_lib_db != yes ; then
20720 LIBS="$ol_cv_lib_db $LIBS"
20723 if test "$cross_compiling" = yes; then
20724 ol_cv_berkeley_db_thread=cross
20726 cat > conftest.$ac_ext <<EOF
20727 #line 20728 "configure"
20728 #include "confdefs.h"
20730 #ifdef HAVE_DB_185_H
20736 #define NULL ((void *)0)
20741 u_int32_t flags = DB_CREATE |
20747 #if DB_VERSION_MAJOR > 2
20748 DB_ENV *env = NULL;
20750 rc = db_env_create( &env, 0 );
20752 flags |= DB_INIT_MPOOL;
20753 #ifdef DB_MPOOL_PRIVATE
20754 flags |= DB_MPOOL_PRIVATE;
20758 printf("BerkeleyDB: %s\n", db_strerror(rc) );
20762 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
20763 rc = env->open( env, NULL, flags, 0 );
20765 rc = env->open( env, NULL, NULL, flags, 0 );
20769 rc = env->close( env, 0 );
20773 printf("BerkeleyDB: %s\n", db_strerror(rc) );
20779 memset( &env, '\0', sizeof(env) );
20781 rc = db_appinit( NULL, NULL, &env, flags );
20784 db_appexit( &env );
20787 unlink("__db_mpool.share");
20788 unlink("__db_lock.share");
20794 if { (eval echo configure:20795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
20796 ol_cv_berkeley_db_thread=yes
20798 echo "configure: failed program was:" >&5
20799 cat conftest.$ac_ext >&5
20801 ol_cv_berkeley_db_thread=no
20811 echo "$ac_t""$ol_cv_berkeley_db_thread" 1>&6
20813 if test $ol_cv_berkeley_db_thread != no ; then
20814 cat >> confdefs.h <<\EOF
20815 #define HAVE_BERKELEY_DB_THREAD 1
20825 if test $ol_cv_berkeley_db != no ; then
20826 cat >> confdefs.h <<\EOF
20827 #define HAVE_BERKELEY_DB 1
20831 ol_link_ldbm=berkeley
20832 ol_with_ldbm_api=berkeley
20834 if test $ol_with_ldbm_type = hash ; then
20835 cat >> confdefs.h <<\EOF
20836 #define LDBM_USE_DBHASH 1
20840 cat >> confdefs.h <<\EOF
20841 #define LDBM_USE_DBBTREE 1
20846 if test $ol_cv_lib_db != yes ; then
20847 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
20852 if test $ol_enable_bdb != no -o $ol_enable_hdb != no; then
20853 if test $ol_link_ldbm != berkeley ; then
20854 { echo "configure: error: BDB/HDB: BerkeleyDB not available" 1>&2; exit 1; }
20856 echo $ac_n "checking Berkeley DB version for BDB backend""... $ac_c" 1>&6
20857 echo "configure:20858: checking Berkeley DB version for BDB backend" >&5
20858 if eval "test \"\${ol_cv_bdb_compat+set}\" = set"; then
20859 echo $ac_n "(cached) $ac_c" 1>&6
20862 cat > conftest.$ac_ext <<EOF
20863 #line 20864 "configure"
20864 #include "confdefs.h"
20868 /* this check could be improved */
20869 #ifndef DB_VERSION_MAJOR
20870 # define DB_VERSION_MAJOR 1
20872 #ifndef DB_VERSION_MINOR
20873 # define DB_VERSION_MINOR 0
20876 /* require 4.2 or later */
20877 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2)
20878 __db_version_compat
20882 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20883 egrep "__db_version_compat" >/dev/null 2>&1; then
20885 ol_cv_bdb_compat=yes
20888 ol_cv_bdb_compat=no
20894 echo "$ac_t""$ol_cv_bdb_compat" 1>&6
20897 if test $ol_cv_bdb_compat != yes ; then
20898 { echo "configure: error: BDB/HDB: BerkeleyDB version incompatible" 1>&2; exit 1; }
20903 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
20904 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
20905 ol_with_ldbm_api=none
20908 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
20909 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
20910 echo "configure:20911: checking for MDBM library" >&5
20911 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
20912 echo $ac_n "(cached) $ac_c" 1>&6
20915 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
20916 echo "configure:20917: checking for mdbm_set_chain" >&5
20917 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
20918 echo $ac_n "(cached) $ac_c" 1>&6
20920 cat > conftest.$ac_ext <<EOF
20921 #line 20922 "configure"
20922 #include "confdefs.h"
20923 /* System header to define __stub macros and hopefully few prototypes,
20924 which can conflict with char mdbm_set_chain(); below. */
20925 #include <assert.h>
20926 /* Override any gcc2 internal prototype to avoid an error. */
20927 /* We use char because int might match the return type of a gcc2
20928 builtin and then its argument prototype would still apply. */
20929 char mdbm_set_chain();
20934 /* The GNU C library defines this for functions which it implements
20935 to always fail with ENOSYS. Some functions are actually named
20936 something starting with __ and the normal name is an alias. */
20937 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
20940 f = mdbm_set_chain;
20945 if { (eval echo configure:20946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20947 eval "ac_cv_func_mdbm_set_chain=yes"
20949 echo "configure: failed program was:" >&5
20950 cat conftest.$ac_ext >&5
20952 eval "ac_cv_func_mdbm_set_chain=no"
20957 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
20958 echo "$ac_t""yes" 1>&6
20961 echo "$ac_t""no" 1>&6
20963 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
20964 echo "configure:20965: checking for mdbm_set_chain in -lmdbm" >&5
20965 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
20966 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20967 echo $ac_n "(cached) $ac_c" 1>&6
20969 ac_save_LIBS="$LIBS"
20970 LIBS="-lmdbm $LIBS"
20971 cat > conftest.$ac_ext <<EOF
20972 #line 20973 "configure"
20973 #include "confdefs.h"
20974 /* Override any gcc2 internal prototype to avoid an error. */
20975 /* We use char because int might match the return type of a gcc2
20976 builtin and then its argument prototype would still apply. */
20977 char mdbm_set_chain();
20983 if { (eval echo configure:20984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20985 eval "ac_cv_lib_$ac_lib_var=yes"
20987 echo "configure: failed program was:" >&5
20988 cat conftest.$ac_ext >&5
20990 eval "ac_cv_lib_$ac_lib_var=no"
20993 LIBS="$ac_save_LIBS"
20996 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20997 echo "$ac_t""yes" 1>&6
20998 ol_cv_lib_mdbm=-lmdbm
21000 echo "$ac_t""no" 1>&6
21011 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
21014 for ac_hdr in mdbm.h
21016 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21017 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21018 echo "configure:21019: checking for $ac_hdr" >&5
21019 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
21020 echo $ac_n "(cached) $ac_c" 1>&6
21022 cat > conftest.$ac_ext <<EOF
21023 #line 21024 "configure"
21024 #include "confdefs.h"
21027 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21028 { (eval echo configure:21029: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21029 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21030 if test -z "$ac_err"; then
21032 eval "ac_cv_header_$ac_safe=yes"
21035 echo "configure: failed program was:" >&5
21036 cat conftest.$ac_ext >&5
21038 eval "ac_cv_header_$ac_safe=no"
21042 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21043 echo "$ac_t""yes" 1>&6
21044 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21045 cat >> confdefs.h <<EOF
21046 #define $ac_tr_hdr 1
21050 echo "$ac_t""no" 1>&6
21054 echo $ac_n "checking for db""... $ac_c" 1>&6
21055 echo "configure:21056: checking for db" >&5
21056 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
21057 echo $ac_n "(cached) $ac_c" 1>&6
21060 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
21068 echo "$ac_t""$ol_cv_mdbm" 1>&6
21069 if test $ol_cv_mdbm = yes ; then
21070 cat >> confdefs.h <<\EOF
21071 #define HAVE_MDBM 1
21077 if test $ol_cv_mdbm = yes ; then
21079 ol_with_ldbm_api=mdbm
21080 if test $ol_cv_lib_mdbm != yes ; then
21081 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
21086 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
21087 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
21088 echo "configure:21089: checking for GDBM library" >&5
21089 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
21090 echo $ac_n "(cached) $ac_c" 1>&6
21093 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
21094 echo "configure:21095: checking for gdbm_open" >&5
21095 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
21096 echo $ac_n "(cached) $ac_c" 1>&6
21098 cat > conftest.$ac_ext <<EOF
21099 #line 21100 "configure"
21100 #include "confdefs.h"
21101 /* System header to define __stub macros and hopefully few prototypes,
21102 which can conflict with char gdbm_open(); below. */
21103 #include <assert.h>
21104 /* Override any gcc2 internal prototype to avoid an error. */
21105 /* We use char because int might match the return type of a gcc2
21106 builtin and then its argument prototype would still apply. */
21112 /* The GNU C library defines this for functions which it implements
21113 to always fail with ENOSYS. Some functions are actually named
21114 something starting with __ and the normal name is an alias. */
21115 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
21123 if { (eval echo configure:21124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21125 eval "ac_cv_func_gdbm_open=yes"
21127 echo "configure: failed program was:" >&5
21128 cat conftest.$ac_ext >&5
21130 eval "ac_cv_func_gdbm_open=no"
21135 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
21136 echo "$ac_t""yes" 1>&6
21139 echo "$ac_t""no" 1>&6
21141 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
21142 echo "configure:21143: checking for gdbm_open in -lgdbm" >&5
21143 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
21144 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21145 echo $ac_n "(cached) $ac_c" 1>&6
21147 ac_save_LIBS="$LIBS"
21148 LIBS="-lgdbm $LIBS"
21149 cat > conftest.$ac_ext <<EOF
21150 #line 21151 "configure"
21151 #include "confdefs.h"
21152 /* Override any gcc2 internal prototype to avoid an error. */
21153 /* We use char because int might match the return type of a gcc2
21154 builtin and then its argument prototype would still apply. */
21161 if { (eval echo configure:21162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21163 eval "ac_cv_lib_$ac_lib_var=yes"
21165 echo "configure: failed program was:" >&5
21166 cat conftest.$ac_ext >&5
21168 eval "ac_cv_lib_$ac_lib_var=no"
21171 LIBS="$ac_save_LIBS"
21174 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21175 echo "$ac_t""yes" 1>&6
21176 ol_cv_lib_gdbm=-lgdbm
21178 echo "$ac_t""no" 1>&6
21189 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
21192 for ac_hdr in gdbm.h
21194 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21195 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21196 echo "configure:21197: checking for $ac_hdr" >&5
21197 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
21198 echo $ac_n "(cached) $ac_c" 1>&6
21200 cat > conftest.$ac_ext <<EOF
21201 #line 21202 "configure"
21202 #include "confdefs.h"
21205 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21206 { (eval echo configure:21207: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21207 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21208 if test -z "$ac_err"; then
21210 eval "ac_cv_header_$ac_safe=yes"
21213 echo "configure: failed program was:" >&5
21214 cat conftest.$ac_ext >&5
21216 eval "ac_cv_header_$ac_safe=no"
21220 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21221 echo "$ac_t""yes" 1>&6
21222 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21223 cat >> confdefs.h <<EOF
21224 #define $ac_tr_hdr 1
21228 echo "$ac_t""no" 1>&6
21232 echo $ac_n "checking for db""... $ac_c" 1>&6
21233 echo "configure:21234: checking for db" >&5
21234 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
21235 echo $ac_n "(cached) $ac_c" 1>&6
21238 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
21246 echo "$ac_t""$ol_cv_gdbm" 1>&6
21247 if test $ol_cv_gdbm = yes ; then
21248 cat >> confdefs.h <<\EOF
21249 #define HAVE_GDBM 1
21255 if test $ol_cv_gdbm = yes ; then
21257 ol_with_ldbm_api=gdbm
21259 if test $ol_cv_lib_gdbm != yes ; then
21260 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
21265 if test $ol_with_ldbm_api = ndbm ; then
21266 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
21267 echo "configure:21268: checking for NDBM library" >&5
21268 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
21269 echo $ac_n "(cached) $ac_c" 1>&6
21272 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
21273 echo "configure:21274: checking for dbm_open" >&5
21274 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
21275 echo $ac_n "(cached) $ac_c" 1>&6
21277 cat > conftest.$ac_ext <<EOF
21278 #line 21279 "configure"
21279 #include "confdefs.h"
21280 /* System header to define __stub macros and hopefully few prototypes,
21281 which can conflict with char dbm_open(); below. */
21282 #include <assert.h>
21283 /* Override any gcc2 internal prototype to avoid an error. */
21284 /* We use char because int might match the return type of a gcc2
21285 builtin and then its argument prototype would still apply. */
21291 /* The GNU C library defines this for functions which it implements
21292 to always fail with ENOSYS. Some functions are actually named
21293 something starting with __ and the normal name is an alias. */
21294 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
21302 if { (eval echo configure:21303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21304 eval "ac_cv_func_dbm_open=yes"
21306 echo "configure: failed program was:" >&5
21307 cat conftest.$ac_ext >&5
21309 eval "ac_cv_func_dbm_open=no"
21314 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
21315 echo "$ac_t""yes" 1>&6
21318 echo "$ac_t""no" 1>&6
21320 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
21321 echo "configure:21322: checking for dbm_open in -lndbm" >&5
21322 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
21323 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21324 echo $ac_n "(cached) $ac_c" 1>&6
21326 ac_save_LIBS="$LIBS"
21327 LIBS="-lndbm $LIBS"
21328 cat > conftest.$ac_ext <<EOF
21329 #line 21330 "configure"
21330 #include "confdefs.h"
21331 /* Override any gcc2 internal prototype to avoid an error. */
21332 /* We use char because int might match the return type of a gcc2
21333 builtin and then its argument prototype would still apply. */
21340 if { (eval echo configure:21341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21342 eval "ac_cv_lib_$ac_lib_var=yes"
21344 echo "configure: failed program was:" >&5
21345 cat conftest.$ac_ext >&5
21347 eval "ac_cv_lib_$ac_lib_var=no"
21350 LIBS="$ac_save_LIBS"
21353 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21354 echo "$ac_t""yes" 1>&6
21355 ol_cv_lib_ndbm=-lndbm
21357 echo "$ac_t""no" 1>&6
21359 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
21360 echo "configure:21361: checking for dbm_open in -ldbm" >&5
21361 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
21362 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21363 echo $ac_n "(cached) $ac_c" 1>&6
21365 ac_save_LIBS="$LIBS"
21367 cat > conftest.$ac_ext <<EOF
21368 #line 21369 "configure"
21369 #include "confdefs.h"
21370 /* Override any gcc2 internal prototype to avoid an error. */
21371 /* We use char because int might match the return type of a gcc2
21372 builtin and then its argument prototype would still apply. */
21379 if { (eval echo configure:21380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21381 eval "ac_cv_lib_$ac_lib_var=yes"
21383 echo "configure: failed program was:" >&5
21384 cat conftest.$ac_ext >&5
21386 eval "ac_cv_lib_$ac_lib_var=no"
21389 LIBS="$ac_save_LIBS"
21392 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21393 echo "$ac_t""yes" 1>&6
21394 ol_cv_lib_ndbm=-ldbm
21396 echo "$ac_t""no" 1>&6
21409 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
21412 for ac_hdr in ndbm.h
21414 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21415 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21416 echo "configure:21417: checking for $ac_hdr" >&5
21417 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
21418 echo $ac_n "(cached) $ac_c" 1>&6
21420 cat > conftest.$ac_ext <<EOF
21421 #line 21422 "configure"
21422 #include "confdefs.h"
21425 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21426 { (eval echo configure:21427: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21427 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21428 if test -z "$ac_err"; then
21430 eval "ac_cv_header_$ac_safe=yes"
21433 echo "configure: failed program was:" >&5
21434 cat conftest.$ac_ext >&5
21436 eval "ac_cv_header_$ac_safe=no"
21440 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21441 echo "$ac_t""yes" 1>&6
21442 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21443 cat >> confdefs.h <<EOF
21444 #define $ac_tr_hdr 1
21448 echo "$ac_t""no" 1>&6
21452 echo $ac_n "checking for db""... $ac_c" 1>&6
21453 echo "configure:21454: checking for db" >&5
21454 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
21455 echo $ac_n "(cached) $ac_c" 1>&6
21458 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
21466 echo "$ac_t""$ol_cv_ndbm" 1>&6
21467 if test $ol_cv_ndbm = yes ; then
21468 cat >> confdefs.h <<\EOF
21469 #define HAVE_NDBM 1
21475 if test $ol_cv_ndbm = yes ; then
21477 ol_with_ldbm_api=ndbm
21479 if test $ol_cv_lib_ndbm != yes ; then
21480 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
21485 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
21486 { echo "configure: error: could not find suitable LDBM backend" 1>&2; exit 1; }
21489 if test $ol_enable_bdb = yes -o \
21490 $ol_enable_hdb = yes -o \
21491 $ol_enable_ldbm = yes ; then
21492 SLAPD_LIBS="$SLAPD_LIBS \$(LDBM_LIBS)"
21496 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
21497 BUILD_LIBS_DYNAMIC=shared
21498 cat >> confdefs.h <<\EOF
21499 #define LDAP_LIBS_DYNAMIC 1
21504 BUILD_LIBS_DYNAMIC=static
21508 if test $ol_enable_wrappers != no ; then
21509 for ac_hdr in tcpd.h
21511 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21512 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21513 echo "configure:21514: checking for $ac_hdr" >&5
21514 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
21515 echo $ac_n "(cached) $ac_c" 1>&6
21517 cat > conftest.$ac_ext <<EOF
21518 #line 21519 "configure"
21519 #include "confdefs.h"
21522 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21523 { (eval echo configure:21524: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21524 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21525 if test -z "$ac_err"; then
21527 eval "ac_cv_header_$ac_safe=yes"
21530 echo "configure: failed program was:" >&5
21531 cat conftest.$ac_ext >&5
21533 eval "ac_cv_header_$ac_safe=no"
21537 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21538 echo "$ac_t""yes" 1>&6
21539 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21540 cat >> confdefs.h <<EOF
21541 #define $ac_tr_hdr 1
21544 echo $ac_n "checking for TCP wrappers library""... $ac_c" 1>&6
21545 echo "configure:21546: checking for TCP wrappers library" >&5
21547 LIBS="$LIBS -lwrap"
21548 cat > conftest.$ac_ext <<EOF
21549 #line 21550 "configure"
21550 #include "confdefs.h"
21553 int allow_severity = 0;
21554 int deny_severity = 0;
21556 struct request_info *req;
21564 if { (eval echo configure:21565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21566 echo "$ac_t""-lwrap" 1>&6
21570 echo "configure: failed program was:" >&5
21571 cat conftest.$ac_ext >&5
21575 cat > conftest.$ac_ext <<EOF
21576 #line 21577 "configure"
21577 #include "confdefs.h"
21580 int allow_severity = 0;
21581 int deny_severity = 0;
21583 struct request_info *req;
21591 if { (eval echo configure:21592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21593 echo "$ac_t""-lwrap -lnsl" 1>&6
21595 LIBS="$save_LIBS -lnsl"
21597 echo "configure: failed program was:" >&5
21598 cat conftest.$ac_ext >&5
21601 echo "$ac_t""no" 1>&6
21609 echo "$ac_t""no" 1>&6
21615 if test $have_wrappers = yes ; then
21616 cat >> confdefs.h <<\EOF
21617 #define HAVE_TCPD 1
21621 elif test $ol_enable_wrappers = yes ; then
21622 { echo "configure: error: could not find TCP wrappers, select apppropriate options or disable" 1>&2; exit 1; }
21624 echo "configure: warning: could not find TCP wrappers, support disabled" 1>&2
21629 if test $ol_enable_syslog != no ; then
21630 echo $ac_n "checking for openlog""... $ac_c" 1>&6
21631 echo "configure:21632: checking for openlog" >&5
21632 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
21633 echo $ac_n "(cached) $ac_c" 1>&6
21635 cat > conftest.$ac_ext <<EOF
21636 #line 21637 "configure"
21637 #include "confdefs.h"
21638 /* System header to define __stub macros and hopefully few prototypes,
21639 which can conflict with char openlog(); below. */
21640 #include <assert.h>
21641 /* Override any gcc2 internal prototype to avoid an error. */
21642 /* We use char because int might match the return type of a gcc2
21643 builtin and then its argument prototype would still apply. */
21649 /* The GNU C library defines this for functions which it implements
21650 to always fail with ENOSYS. Some functions are actually named
21651 something starting with __ and the normal name is an alias. */
21652 #if defined (__stub_openlog) || defined (__stub___openlog)
21660 if { (eval echo configure:21661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21662 eval "ac_cv_func_openlog=yes"
21664 echo "configure: failed program was:" >&5
21665 cat conftest.$ac_ext >&5
21667 eval "ac_cv_func_openlog=no"
21672 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
21673 echo "$ac_t""yes" 1>&6
21676 echo "$ac_t""no" 1>&6
21679 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
21680 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
21682 ol_enable_syslog=$ac_cv_func_openlog
21687 if test $ol_enable_sql != no ; then
21688 for ac_hdr in sql.h sqlext.h
21690 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21691 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21692 echo "configure:21693: checking for $ac_hdr" >&5
21693 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
21694 echo $ac_n "(cached) $ac_c" 1>&6
21696 cat > conftest.$ac_ext <<EOF
21697 #line 21698 "configure"
21698 #include "confdefs.h"
21701 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21702 { (eval echo configure:21703: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21703 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21704 if test -z "$ac_err"; then
21706 eval "ac_cv_header_$ac_safe=yes"
21709 echo "configure: failed program was:" >&5
21710 cat conftest.$ac_ext >&5
21712 eval "ac_cv_header_$ac_safe=no"
21716 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21717 echo "$ac_t""yes" 1>&6
21718 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21719 cat >> confdefs.h <<EOF
21720 #define $ac_tr_hdr 1
21724 echo "$ac_t""no" 1>&6
21725 { echo "configure: error: could not locate SQL headers" 1>&2; exit 1; }
21731 echo $ac_n "checking for SQLDriverConnect in -liodbc""... $ac_c" 1>&6
21732 echo "configure:21733: checking for SQLDriverConnect in -liodbc" >&5
21733 ac_lib_var=`echo iodbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
21734 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21735 echo $ac_n "(cached) $ac_c" 1>&6
21737 ac_save_LIBS="$LIBS"
21738 LIBS="-liodbc $LIBS"
21739 cat > conftest.$ac_ext <<EOF
21740 #line 21741 "configure"
21741 #include "confdefs.h"
21742 /* Override any gcc2 internal prototype to avoid an error. */
21743 /* We use char because int might match the return type of a gcc2
21744 builtin and then its argument prototype would still apply. */
21745 char SQLDriverConnect();
21751 if { (eval echo configure:21752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21753 eval "ac_cv_lib_$ac_lib_var=yes"
21755 echo "configure: failed program was:" >&5
21756 cat conftest.$ac_ext >&5
21758 eval "ac_cv_lib_$ac_lib_var=no"
21761 LIBS="$ac_save_LIBS"
21764 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21765 echo "$ac_t""yes" 1>&6
21768 echo "$ac_t""no" 1>&6
21772 if test $have_iodbc = yes ; then
21773 ol_link_sql="-liodbc"
21775 echo $ac_n "checking for SQLDriverConnect in -lodbc""... $ac_c" 1>&6
21776 echo "configure:21777: checking for SQLDriverConnect in -lodbc" >&5
21777 ac_lib_var=`echo odbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
21778 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21779 echo $ac_n "(cached) $ac_c" 1>&6
21781 ac_save_LIBS="$LIBS"
21782 LIBS="-lodbc $LIBS"
21783 cat > conftest.$ac_ext <<EOF
21784 #line 21785 "configure"
21785 #include "confdefs.h"
21786 /* Override any gcc2 internal prototype to avoid an error. */
21787 /* We use char because int might match the return type of a gcc2
21788 builtin and then its argument prototype would still apply. */
21789 char SQLDriverConnect();
21795 if { (eval echo configure:21796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21797 eval "ac_cv_lib_$ac_lib_var=yes"
21799 echo "configure: failed program was:" >&5
21800 cat conftest.$ac_ext >&5
21802 eval "ac_cv_lib_$ac_lib_var=no"
21805 LIBS="$ac_save_LIBS"
21808 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21809 echo "$ac_t""yes" 1>&6
21812 echo "$ac_t""no" 1>&6
21816 if test $have_odbc = yes ; then
21817 ol_link_sql="-lodbc"
21821 if test $ol_link_sql != no ; then
21822 SLAPD_SQL_LIBS="$ol_link_sql"
21824 elif test $ol_enable_sql != auto ; then
21825 { echo "configure: error: could not locate suitable ODBC library" 1>&2; exit 1; }
21832 if test $ol_with_cyrus_sasl != no ; then
21833 for ac_hdr in sasl/sasl.h sasl.h
21835 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21836 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21837 echo "configure:21838: checking for $ac_hdr" >&5
21838 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
21839 echo $ac_n "(cached) $ac_c" 1>&6
21841 cat > conftest.$ac_ext <<EOF
21842 #line 21843 "configure"
21843 #include "confdefs.h"
21846 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21847 { (eval echo configure:21848: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21848 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21849 if test -z "$ac_err"; then
21851 eval "ac_cv_header_$ac_safe=yes"
21854 echo "configure: failed program was:" >&5
21855 cat conftest.$ac_ext >&5
21857 eval "ac_cv_header_$ac_safe=no"
21861 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21862 echo "$ac_t""yes" 1>&6
21863 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21864 cat >> confdefs.h <<EOF
21865 #define $ac_tr_hdr 1
21869 echo "$ac_t""no" 1>&6
21874 if test $ac_cv_header_sasl_sasl_h = yes -o $ac_cv_header_sasl_h = yes; then
21875 echo $ac_n "checking for sasl_client_init in -lsasl2""... $ac_c" 1>&6
21876 echo "configure:21877: checking for sasl_client_init in -lsasl2" >&5
21877 ac_lib_var=`echo sasl2'_'sasl_client_init | sed 'y%./+-:%__p__%'`
21878 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21879 echo $ac_n "(cached) $ac_c" 1>&6
21881 ac_save_LIBS="$LIBS"
21882 LIBS="-lsasl2 $LIBS"
21883 cat > conftest.$ac_ext <<EOF
21884 #line 21885 "configure"
21885 #include "confdefs.h"
21886 /* Override any gcc2 internal prototype to avoid an error. */
21887 /* We use char because int might match the return type of a gcc2
21888 builtin and then its argument prototype would still apply. */
21889 char sasl_client_init();
21895 if { (eval echo configure:21896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21897 eval "ac_cv_lib_$ac_lib_var=yes"
21899 echo "configure: failed program was:" >&5
21900 cat conftest.$ac_ext >&5
21902 eval "ac_cv_lib_$ac_lib_var=no"
21905 LIBS="$ac_save_LIBS"
21908 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21909 echo "$ac_t""yes" 1>&6
21910 ol_link_sasl="-lsasl2"
21912 echo "$ac_t""no" 1>&6
21913 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
21914 echo "configure:21915: checking for sasl_client_init in -lsasl" >&5
21915 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
21916 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21917 echo $ac_n "(cached) $ac_c" 1>&6
21919 ac_save_LIBS="$LIBS"
21920 LIBS="-lsasl $LIBS"
21921 cat > conftest.$ac_ext <<EOF
21922 #line 21923 "configure"
21923 #include "confdefs.h"
21924 /* Override any gcc2 internal prototype to avoid an error. */
21925 /* We use char because int might match the return type of a gcc2
21926 builtin and then its argument prototype would still apply. */
21927 char sasl_client_init();
21933 if { (eval echo configure:21934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21935 eval "ac_cv_lib_$ac_lib_var=yes"
21937 echo "configure: failed program was:" >&5
21938 cat conftest.$ac_ext >&5
21940 eval "ac_cv_lib_$ac_lib_var=no"
21943 LIBS="$ac_save_LIBS"
21946 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21947 echo "$ac_t""yes" 1>&6
21948 ol_link_sasl="-lsasl"
21950 echo "$ac_t""no" 1>&6
21957 if test $ol_link_sasl = no ; then
21958 if test $ol_with_cyrus_sasl != auto ; then
21959 { echo "configure: error: Could not locate Cyrus SASL" 1>&2; exit 1; }
21961 echo "configure: warning: Could not locate Cyrus SASL" 1>&2
21962 echo "configure: warning: SASL authentication not supported!" 1>&2
21963 if test $ol_link_tls = no ; then
21964 echo "configure: warning: Strong authentication not supported!" 1>&2
21968 echo $ac_n "checking Cyrus SASL library version""... $ac_c" 1>&6
21969 echo "configure:21970: checking Cyrus SASL library version" >&5
21970 if eval "test \"\${ol_cv_sasl_compat+set}\" = set"; then
21971 echo $ac_n "(cached) $ac_c" 1>&6
21974 cat > conftest.$ac_ext <<EOF
21975 #line 21976 "configure"
21976 #include "confdefs.h"
21978 #ifdef HAVE_SASL_SASL_H
21979 #include <sasl/sasl.h>
21984 /* Require 2.1.15+ */
21985 #if SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
21986 char *__sasl_compat = "2.2+ or better okay (we guess)";
21987 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
21988 && SASL_VERSION_STEP >=15
21989 char *__sasl_compat = "2.1.15+ or better okay";
21993 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21994 egrep "__sasl_compat" >/dev/null 2>&1; then
21996 ol_cv_sasl_compat=yes
21999 ol_cv_sasl_compat=no
22005 echo "$ac_t""$ol_cv_sasl_compat" 1>&6
22007 if test $ol_cv_sasl_compat = no ; then
22009 { echo "configure: error: Cyrus SASL library located but is incompatible" 1>&2; exit 1; }
22012 cat >> confdefs.h <<\EOF
22013 #define HAVE_CYRUS_SASL 1
22016 SASL_LIBS="$ol_link_sasl"
22017 if test $ol_enable_spasswd != no ; then
22018 ol_link_spasswd=yes
22021 ac_save_LIBS="$LIBS"
22022 LIBS="$LIBS $ol_link_sasl"
22023 echo $ac_n "checking for sasl_version""... $ac_c" 1>&6
22024 echo "configure:22025: checking for sasl_version" >&5
22025 if eval "test \"\${ac_cv_func_sasl_version+set}\" = set"; then
22026 echo $ac_n "(cached) $ac_c" 1>&6
22028 cat > conftest.$ac_ext <<EOF
22029 #line 22030 "configure"
22030 #include "confdefs.h"
22031 /* System header to define __stub macros and hopefully few prototypes,
22032 which can conflict with char sasl_version(); below. */
22033 #include <assert.h>
22034 /* Override any gcc2 internal prototype to avoid an error. */
22035 /* We use char because int might match the return type of a gcc2
22036 builtin and then its argument prototype would still apply. */
22037 char sasl_version();
22042 /* The GNU C library defines this for functions which it implements
22043 to always fail with ENOSYS. Some functions are actually named
22044 something starting with __ and the normal name is an alias. */
22045 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
22053 if { (eval echo configure:22054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22055 eval "ac_cv_func_sasl_version=yes"
22057 echo "configure: failed program was:" >&5
22058 cat conftest.$ac_ext >&5
22060 eval "ac_cv_func_sasl_version=no"
22065 if eval "test \"`echo '$ac_cv_func_'sasl_version`\" = yes"; then
22066 echo "$ac_t""yes" 1>&6
22067 cat >> confdefs.h <<\EOF
22068 #define HAVE_SASL_VERSION 1
22072 echo "$ac_t""no" 1>&6
22075 LIBS="$ac_save_LIBS"
22081 echo "configure: warning: SASL authentication not supported!" 1>&2
22082 if test $ol_link_tls = no ; then
22083 echo "configure: warning: Strong authentication not supported!" 1>&2
22087 if test $cross_compiling != yes -a "$ac_cv_mingw32" != yes ; then
22089 if test -r /dev/urandom ; then
22090 dev="/dev/urandom";
22091 elif test -r /idev/urandom ; then
22092 dev="/idev/urandom";
22093 elif test -r /dev/srandom ; then
22094 dev="/dev/srandom";
22095 elif test -r /dev/random ; then
22097 elif test -r /idev/random ; then
22098 dev="/idev/random";
22101 if test $dev != no ; then
22102 cat >> confdefs.h <<EOF
22103 #define URANDOM_DEVICE "$dev"
22110 if test $ol_with_fetch != no ; then
22112 LIBS="-lfetch -lcom_err $LIBS"
22113 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
22114 echo "configure:22115: checking fetch(3) library" >&5
22115 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
22116 echo $ac_n "(cached) $ac_c" 1>&6
22119 cat > conftest.$ac_ext <<EOF
22120 #line 22121 "configure"
22121 #include "confdefs.h"
22123 #include <sys/param.h>
22127 struct url *u = fetchParseURL("file:///");
22130 if { (eval echo configure:22131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22132 ol_cv_lib_fetch=yes
22134 echo "configure: failed program was:" >&5
22135 cat conftest.$ac_ext >&5
22142 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
22144 if test $ol_cv_lib_fetch != no ; then
22145 ol_link_fetch="-lfetch -lcom_err"
22146 cat >> confdefs.h <<\EOF
22147 #define HAVE_FETCH 1
22153 if test $ol_cv_lib_fetch != no ; then
22154 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
22155 ol_link_fetch=freebsd
22157 elif test $ol_with_fetch != auto ; then
22158 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
22162 if test $ol_enable_crypt != no ; then
22164 LIBS="$TLS_LIBS $LIBS"
22166 echo $ac_n "checking for crypt""... $ac_c" 1>&6
22167 echo "configure:22168: checking for crypt" >&5
22168 if eval "test \"\${ac_cv_func_crypt+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"
22174 /* System header to define __stub macros and hopefully few prototypes,
22175 which can conflict with char crypt(); below. */
22176 #include <assert.h>
22177 /* Override any gcc2 internal prototype to avoid an error. */
22178 /* We use char because int might match the return type of a gcc2
22179 builtin and then its argument prototype would still apply. */
22185 /* The GNU C library defines this for functions which it implements
22186 to always fail with ENOSYS. Some functions are actually named
22187 something starting with __ and the normal name is an alias. */
22188 #if defined (__stub_crypt) || defined (__stub___crypt)
22196 if { (eval echo configure:22197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22198 eval "ac_cv_func_crypt=yes"
22200 echo "configure: failed program was:" >&5
22201 cat conftest.$ac_ext >&5
22203 eval "ac_cv_func_crypt=no"
22208 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
22209 echo "$ac_t""yes" 1>&6
22212 echo "$ac_t""no" 1>&6
22215 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
22216 echo "configure:22217: checking for crypt in -lcrypt" >&5
22217 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
22218 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
22219 echo $ac_n "(cached) $ac_c" 1>&6
22221 ac_save_LIBS="$LIBS"
22222 LIBS="-lcrypt $LIBS"
22223 cat > conftest.$ac_ext <<EOF
22224 #line 22225 "configure"
22225 #include "confdefs.h"
22226 /* Override any gcc2 internal prototype to avoid an error. */
22227 /* We use char because int might match the return type of a gcc2
22228 builtin and then its argument prototype would still apply. */
22235 if { (eval echo configure:22236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22237 eval "ac_cv_lib_$ac_lib_var=yes"
22239 echo "configure: failed program was:" >&5
22240 cat conftest.$ac_ext >&5
22242 eval "ac_cv_lib_$ac_lib_var=no"
22245 LIBS="$ac_save_LIBS"
22248 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
22249 echo "$ac_t""yes" 1>&6
22250 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
22253 echo "$ac_t""no" 1>&6
22262 if test $have_crypt = yes ; then
22263 cat >> confdefs.h <<\EOF
22264 #define HAVE_CRYPT 1
22268 echo "configure: warning: could not find crypt" 1>&2
22269 if test $ol_enable_crypt = yes ; then
22270 { echo "configure: error: could not find crypt, select appropriate options or disable" 1>&2; exit 1; }
22273 echo "configure: warning: disabling crypt support" 1>&2
22278 if test $ol_enable_proctitle != no ; then
22279 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
22280 echo "configure:22281: checking for setproctitle" >&5
22281 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
22282 echo $ac_n "(cached) $ac_c" 1>&6
22284 cat > conftest.$ac_ext <<EOF
22285 #line 22286 "configure"
22286 #include "confdefs.h"
22287 /* System header to define __stub macros and hopefully few prototypes,
22288 which can conflict with char setproctitle(); below. */
22289 #include <assert.h>
22290 /* Override any gcc2 internal prototype to avoid an error. */
22291 /* We use char because int might match the return type of a gcc2
22292 builtin and then its argument prototype would still apply. */
22293 char setproctitle();
22298 /* The GNU C library defines this for functions which it implements
22299 to always fail with ENOSYS. Some functions are actually named
22300 something starting with __ and the normal name is an alias. */
22301 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
22309 if { (eval echo configure:22310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22311 eval "ac_cv_func_setproctitle=yes"
22313 echo "configure: failed program was:" >&5
22314 cat conftest.$ac_ext >&5
22316 eval "ac_cv_func_setproctitle=no"
22321 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
22322 echo "$ac_t""yes" 1>&6
22323 have_setproctitle=yes
22325 echo "$ac_t""no" 1>&6
22327 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
22328 echo "configure:22329: checking for setproctitle in -lutil" >&5
22329 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
22330 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
22331 echo $ac_n "(cached) $ac_c" 1>&6
22333 ac_save_LIBS="$LIBS"
22334 LIBS="-lutil $LIBS"
22335 cat > conftest.$ac_ext <<EOF
22336 #line 22337 "configure"
22337 #include "confdefs.h"
22338 /* Override any gcc2 internal prototype to avoid an error. */
22339 /* We use char because int might match the return type of a gcc2
22340 builtin and then its argument prototype would still apply. */
22341 char setproctitle();
22347 if { (eval echo configure:22348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22349 eval "ac_cv_lib_$ac_lib_var=yes"
22351 echo "configure: failed program was:" >&5
22352 cat conftest.$ac_ext >&5
22354 eval "ac_cv_lib_$ac_lib_var=no"
22357 LIBS="$ac_save_LIBS"
22360 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
22361 echo "$ac_t""yes" 1>&6
22362 have_setproctitle=yes
22363 LUTIL_LIBS="$LUTIL_LIBS -lutil"
22365 echo "$ac_t""no" 1>&6
22366 have_setproctitle=no
22367 LIBOBJS="$LIBOBJS setproctitle.o"
22368 LIBSRCS="$LIBSRCS setproctitle.c"
22374 if test $have_setproctitle = yes ; then
22375 cat >> confdefs.h <<\EOF
22376 #define HAVE_SETPROCTITLE 1
22382 if test $ol_enable_slp != no ; then
22383 for ac_hdr in slp.h
22385 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22386 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22387 echo "configure:22388: checking for $ac_hdr" >&5
22388 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
22389 echo $ac_n "(cached) $ac_c" 1>&6
22391 cat > conftest.$ac_ext <<EOF
22392 #line 22393 "configure"
22393 #include "confdefs.h"
22396 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22397 { (eval echo configure:22398: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22398 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22399 if test -z "$ac_err"; then
22401 eval "ac_cv_header_$ac_safe=yes"
22404 echo "configure: failed program was:" >&5
22405 cat conftest.$ac_ext >&5
22407 eval "ac_cv_header_$ac_safe=no"
22411 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22412 echo "$ac_t""yes" 1>&6
22413 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22414 cat >> confdefs.h <<EOF
22415 #define $ac_tr_hdr 1
22419 echo "$ac_t""no" 1>&6
22424 if test $ac_cv_header_slp_h = yes ; then
22425 echo $ac_n "checking for SLPOpen in -lslp""... $ac_c" 1>&6
22426 echo "configure:22427: checking for SLPOpen in -lslp" >&5
22427 ac_lib_var=`echo slp'_'SLPOpen | sed 'y%./+-:%__p__%'`
22428 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
22429 echo $ac_n "(cached) $ac_c" 1>&6
22431 ac_save_LIBS="$LIBS"
22433 cat > conftest.$ac_ext <<EOF
22434 #line 22435 "configure"
22435 #include "confdefs.h"
22436 /* Override any gcc2 internal prototype to avoid an error. */
22437 /* We use char because int might match the return type of a gcc2
22438 builtin and then its argument prototype would still apply. */
22445 if { (eval echo configure:22446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22447 eval "ac_cv_lib_$ac_lib_var=yes"
22449 echo "configure: failed program was:" >&5
22450 cat conftest.$ac_ext >&5
22452 eval "ac_cv_lib_$ac_lib_var=no"
22455 LIBS="$ac_save_LIBS"
22458 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
22459 echo "$ac_t""yes" 1>&6
22462 echo "$ac_t""no" 1>&6
22466 if test $have_slp = yes ; then
22467 cat >> confdefs.h <<\EOF
22471 SLAPD_SLP_LIBS=-lslp
22474 elif test $ol_enable_slp = yes ; then
22475 { echo "configure: error: SLP not found" 1>&2; exit 1; }
22479 if test "$ol_with_multiple_precision" != "no" ; then
22483 for ac_hdr in openssl/bn.h bn.h
22485 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22486 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22487 echo "configure:22488: checking for $ac_hdr" >&5
22488 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
22489 echo $ac_n "(cached) $ac_c" 1>&6
22491 cat > conftest.$ac_ext <<EOF
22492 #line 22493 "configure"
22493 #include "confdefs.h"
22496 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22497 { (eval echo configure:22498: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22498 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22499 if test -z "$ac_err"; then
22501 eval "ac_cv_header_$ac_safe=yes"
22504 echo "configure: failed program was:" >&5
22505 cat conftest.$ac_ext >&5
22507 eval "ac_cv_header_$ac_safe=no"
22511 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22512 echo "$ac_t""yes" 1>&6
22513 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22514 cat >> confdefs.h <<EOF
22515 #define $ac_tr_hdr 1
22519 echo "$ac_t""no" 1>&6
22523 for ac_hdr in openssl/crypto.h crypto.h
22525 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22526 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22527 echo "configure:22528: checking for $ac_hdr" >&5
22528 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
22529 echo $ac_n "(cached) $ac_c" 1>&6
22531 cat > conftest.$ac_ext <<EOF
22532 #line 22533 "configure"
22533 #include "confdefs.h"
22536 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22537 { (eval echo configure:22538: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22538 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22539 if test -z "$ac_err"; then
22541 eval "ac_cv_header_$ac_safe=yes"
22544 echo "configure: failed program was:" >&5
22545 cat conftest.$ac_ext >&5
22547 eval "ac_cv_header_$ac_safe=no"
22551 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22552 echo "$ac_t""yes" 1>&6
22553 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22554 cat >> confdefs.h <<EOF
22555 #define $ac_tr_hdr 1
22559 echo "$ac_t""no" 1>&6
22563 for ac_hdr in gmp.h
22565 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22566 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22567 echo "configure:22568: checking for $ac_hdr" >&5
22568 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
22569 echo $ac_n "(cached) $ac_c" 1>&6
22571 cat > conftest.$ac_ext <<EOF
22572 #line 22573 "configure"
22573 #include "confdefs.h"
22576 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22577 { (eval echo configure:22578: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22578 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22579 if test -z "$ac_err"; then
22581 eval "ac_cv_header_$ac_safe=yes"
22584 echo "configure: failed program was:" >&5
22585 cat conftest.$ac_ext >&5
22587 eval "ac_cv_header_$ac_safe=no"
22591 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22592 echo "$ac_t""yes" 1>&6
22593 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22594 cat >> confdefs.h <<EOF
22595 #define $ac_tr_hdr 1
22599 echo "$ac_t""no" 1>&6
22604 if test "$ol_with_tls" = "found" ; then
22606 ol_have_crypto_h=no
22608 if test "$ac_cv_header_openssl_bn_h" = "yes" \
22609 -o "$ac_cv_header_bn_h" = "yes" ; then
22613 if test "$ac_cv_header_openssl_crypto_h" = "yes" \
22614 -o "$ac_cv_header_crypto_h" = "yes" ; then
22615 ol_have_crypto_h=yes
22618 if test "$ol_have_bn_h" = "yes" \
22619 -a "$ol_have_crypto_h" = "yes" ; then
22624 if test $ac_cv_header_gmp_h = yes ; then
22625 echo $ac_n "checking for __gmpz_add_ui in -lgmp""... $ac_c" 1>&6
22626 echo "configure:22627: checking for __gmpz_add_ui in -lgmp" >&5
22627 ac_lib_var=`echo gmp'_'__gmpz_add_ui | sed 'y%./+-:%__p__%'`
22628 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
22629 echo $ac_n "(cached) $ac_c" 1>&6
22631 ac_save_LIBS="$LIBS"
22633 cat > conftest.$ac_ext <<EOF
22634 #line 22635 "configure"
22635 #include "confdefs.h"
22636 /* Override any gcc2 internal prototype to avoid an error. */
22637 /* We use char because int might match the return type of a gcc2
22638 builtin and then its argument prototype would still apply. */
22639 char __gmpz_add_ui();
22645 if { (eval echo configure:22646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22647 eval "ac_cv_lib_$ac_lib_var=yes"
22649 echo "configure: failed program was:" >&5
22650 cat conftest.$ac_ext >&5
22652 eval "ac_cv_lib_$ac_lib_var=no"
22655 LIBS="$ac_save_LIBS"
22658 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
22659 echo "$ac_t""yes" 1>&6
22662 echo "$ac_t""no" 1>&6
22666 if test $have_gmp = yes ; then
22671 echo $ac_n "checking for multiple precision support""... $ac_c" 1>&6
22672 echo "configure:22673: checking for multiple precision support" >&5
22674 ol_mp_support="none"
22675 case "$ol_with_multiple_precision" in
22677 if test "$ol_have_bignum" = "yes" ; then
22678 ol_mp_support="bignum"
22680 if test "$ol_have_gmp" = "yes" ; then
22681 ol_mp_support="gmp"
22686 if test "$ol_have_bignum" != "yes" ; then
22687 { echo "configure: error: OpenSSL's BIGNUM not available" 1>&2; exit 1; }
22689 ol_mp_support="bignum"
22692 if test "$ol_have_gmp" != "yes" ; then
22693 { echo "configure: error: GMP not available" 1>&2; exit 1; }
22695 ol_mp_support="gmp"
22698 if test "$ol_have_bignum" = "yes" ; then
22699 ol_mp_support="bignum"
22700 elif test "$ol_have_gmp" = "yes" ; then
22701 ol_mp_support="gmp"
22703 { echo "configure: error: not available" 1>&2; exit 1; }
22708 case "$ol_mp_support" in
22710 cat >> confdefs.h <<\EOF
22711 #define HAVE_BIGNUM 1
22716 cat >> confdefs.h <<\EOF
22720 SLAPD_GMP_LIBS=-lgmp
22726 echo "$ac_t""$ol_mp_support" 1>&6
22730 echo $ac_n "checking long long""... $ac_c" 1>&6
22731 echo "configure:22732: checking long long" >&5
22732 if eval "test \"\${ol_cv_type_long_long+set}\" = set"; then
22733 echo $ac_n "(cached) $ac_c" 1>&6
22736 cat > conftest.$ac_ext <<EOF
22737 #line 22738 "configure"
22738 #include "confdefs.h"
22744 if { (eval echo configure:22745: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22746 ol_cv_type_long_long=yes
22748 echo "configure: failed program was:" >&5
22749 cat conftest.$ac_ext >&5
22751 ol_cv_type_long_long=no
22756 echo "$ac_t""$ol_cv_type_long_long" 1>&6
22757 if test $ol_cv_type_long_long = yes; then
22758 cat >> confdefs.h <<\EOF
22759 #define HAVE_LONG_LONG 1
22764 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
22765 echo "configure:22766: checking for ANSI C header files" >&5
22766 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
22767 echo $ac_n "(cached) $ac_c" 1>&6
22769 cat > conftest.$ac_ext <<EOF
22770 #line 22771 "configure"
22771 #include "confdefs.h"
22772 #include <stdlib.h>
22773 #include <stdarg.h>
22774 #include <string.h>
22777 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22778 { (eval echo configure:22779: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22779 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22780 if test -z "$ac_err"; then
22782 ac_cv_header_stdc=yes
22785 echo "configure: failed program was:" >&5
22786 cat conftest.$ac_ext >&5
22788 ac_cv_header_stdc=no
22792 if test $ac_cv_header_stdc = yes; then
22793 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
22794 cat > conftest.$ac_ext <<EOF
22795 #line 22796 "configure"
22796 #include "confdefs.h"
22797 #include <string.h>
22799 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22800 egrep "memchr" >/dev/null 2>&1; then
22804 ac_cv_header_stdc=no
22810 if test $ac_cv_header_stdc = yes; then
22811 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
22812 cat > conftest.$ac_ext <<EOF
22813 #line 22814 "configure"
22814 #include "confdefs.h"
22815 #include <stdlib.h>
22817 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22818 egrep "free" >/dev/null 2>&1; then
22822 ac_cv_header_stdc=no
22828 if test $ac_cv_header_stdc = yes; then
22829 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
22830 if test "$cross_compiling" = yes; then
22833 cat > conftest.$ac_ext <<EOF
22834 #line 22835 "configure"
22835 #include "confdefs.h"
22837 #if ((' ' & 0x0FF) == 0x020)
22838 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22839 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22841 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
22842 || ('j' <= (c) && (c) <= 'r') \
22843 || ('s' <= (c) && (c) <= 'z'))
22844 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22846 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22847 int main () { int i; for (i = 0; i < 256; i++)
22848 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
22852 if { (eval echo configure:22853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
22856 echo "configure: failed program was:" >&5
22857 cat conftest.$ac_ext >&5
22859 ac_cv_header_stdc=no
22867 echo "$ac_t""$ac_cv_header_stdc" 1>&6
22868 if test $ac_cv_header_stdc = yes; then
22869 cat >> confdefs.h <<\EOF
22870 #define STDC_HEADERS 1
22875 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
22876 echo "configure:22877: checking for mode_t" >&5
22877 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
22878 echo $ac_n "(cached) $ac_c" 1>&6
22880 cat > conftest.$ac_ext <<EOF
22881 #line 22882 "configure"
22882 #include "confdefs.h"
22883 #include <sys/types.h>
22885 #include <stdlib.h>
22886 #include <stddef.h>
22890 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22891 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
22893 eval "ac_cv_type_mode_t=yes"
22896 eval "ac_cv_type_mode_t=no"
22901 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
22902 echo "$ac_t""yes" 1>&6
22904 echo "$ac_t""no" 1>&6
22905 cat >> confdefs.h <<EOF
22911 echo $ac_n "checking for off_t""... $ac_c" 1>&6
22912 echo "configure:22913: checking for off_t" >&5
22913 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
22914 echo $ac_n "(cached) $ac_c" 1>&6
22916 cat > conftest.$ac_ext <<EOF
22917 #line 22918 "configure"
22918 #include "confdefs.h"
22919 #include <sys/types.h>
22921 #include <stdlib.h>
22922 #include <stddef.h>
22926 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22927 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
22929 eval "ac_cv_type_off_t=yes"
22932 eval "ac_cv_type_off_t=no"
22937 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
22938 echo "$ac_t""yes" 1>&6
22940 echo "$ac_t""no" 1>&6
22941 cat >> confdefs.h <<EOF
22947 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
22948 echo "configure:22949: checking for pid_t" >&5
22949 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
22950 echo $ac_n "(cached) $ac_c" 1>&6
22952 cat > conftest.$ac_ext <<EOF
22953 #line 22954 "configure"
22954 #include "confdefs.h"
22955 #include <sys/types.h>
22957 #include <stdlib.h>
22958 #include <stddef.h>
22962 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22963 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
22965 eval "ac_cv_type_pid_t=yes"
22968 eval "ac_cv_type_pid_t=no"
22973 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
22974 echo "$ac_t""yes" 1>&6
22976 echo "$ac_t""no" 1>&6
22977 cat >> confdefs.h <<EOF
22983 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
22984 echo "configure:22985: checking for ptrdiff_t" >&5
22985 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
22986 echo $ac_n "(cached) $ac_c" 1>&6
22988 cat > conftest.$ac_ext <<EOF
22989 #line 22990 "configure"
22990 #include "confdefs.h"
22991 #include <stddef.h>
22996 if { (eval echo configure:22997: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22998 am_cv_type_ptrdiff_t=yes
23000 echo "configure: failed program was:" >&5
23001 cat conftest.$ac_ext >&5
23003 am_cv_type_ptrdiff_t=no
23008 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
23009 if test $am_cv_type_ptrdiff_t = yes; then
23010 cat >> confdefs.h <<\EOF
23011 #define HAVE_PTRDIFF_T 1
23016 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
23017 echo "configure:23018: checking return type of signal handlers" >&5
23018 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
23019 echo $ac_n "(cached) $ac_c" 1>&6
23021 cat > conftest.$ac_ext <<EOF
23022 #line 23023 "configure"
23023 #include "confdefs.h"
23024 #include <sys/types.h>
23025 #include <signal.h>
23030 extern "C" void (*signal (int, void (*)(int)))(int);
23032 void (*signal ()) ();
23039 if { (eval echo configure:23040: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23041 ac_cv_type_signal=void
23043 echo "configure: failed program was:" >&5
23044 cat conftest.$ac_ext >&5
23046 ac_cv_type_signal=int
23051 echo "$ac_t""$ac_cv_type_signal" 1>&6
23052 cat >> confdefs.h <<EOF
23053 #define RETSIGTYPE $ac_cv_type_signal
23057 echo $ac_n "checking for size_t""... $ac_c" 1>&6
23058 echo "configure:23059: checking for size_t" >&5
23059 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
23060 echo $ac_n "(cached) $ac_c" 1>&6
23062 cat > conftest.$ac_ext <<EOF
23063 #line 23064 "configure"
23064 #include "confdefs.h"
23065 #include <sys/types.h>
23067 #include <stdlib.h>
23068 #include <stddef.h>
23072 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23073 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
23075 eval "ac_cv_type_size_t=yes"
23078 eval "ac_cv_type_size_t=no"
23083 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
23084 echo "$ac_t""yes" 1>&6
23086 echo "$ac_t""no" 1>&6
23087 cat >> confdefs.h <<EOF
23088 #define size_t unsigned
23094 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
23095 echo "configure:23096: checking for ssize_t" >&5
23096 if eval "test \"\${ac_cv_type_ssize_t+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 #include <sys/types.h>
23104 #include <stdlib.h>
23105 #include <stddef.h>
23109 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23110 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
23112 eval "ac_cv_type_ssize_t=yes"
23115 eval "ac_cv_type_ssize_t=no"
23120 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
23121 echo "$ac_t""yes" 1>&6
23123 echo "$ac_t""no" 1>&6
23124 cat >> confdefs.h <<EOF
23125 #define ssize_t signed int
23130 echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
23131 echo "configure:23132: checking for caddr_t" >&5
23132 if eval "test \"\${ac_cv_type_caddr_t+set}\" = set"; then
23133 echo $ac_n "(cached) $ac_c" 1>&6
23135 cat > conftest.$ac_ext <<EOF
23136 #line 23137 "configure"
23137 #include "confdefs.h"
23138 #include <sys/types.h>
23140 #include <stdlib.h>
23141 #include <stddef.h>
23145 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23146 egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
23148 eval "ac_cv_type_caddr_t=yes"
23151 eval "ac_cv_type_caddr_t=no"
23156 if eval "test \"`echo '$ac_cv_type_'caddr_t`\" = yes"; then
23157 echo "$ac_t""yes" 1>&6
23159 echo "$ac_t""no" 1>&6
23160 cat >> confdefs.h <<EOF
23161 #define caddr_t char *
23167 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
23168 echo "configure:23169: checking for socklen_t" >&5
23169 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
23170 echo $ac_n "(cached) $ac_c" 1>&6
23172 cat > conftest.$ac_ext <<EOF
23173 #line 23174 "configure"
23174 #include "confdefs.h"
23176 #ifdef HAVE_SYS_TYPES_H
23177 #include <sys/types.h>
23179 #ifdef HAVE_SYS_SOCKET_H
23180 #include <sys/socket.h>
23187 if { (eval echo configure:23188: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23189 ol_cv_type_socklen_t=yes
23191 echo "configure: failed program was:" >&5
23192 cat conftest.$ac_ext >&5
23194 ol_cv_type_socklen_t=no
23199 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
23200 if test $ol_cv_type_socklen_t = no; then
23201 cat >> confdefs.h <<\EOF
23202 #define socklen_t int
23207 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
23208 echo "configure:23209: checking for member st_blksize in aggregate type struct stat" >&5
23209 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
23210 echo $ac_n "(cached) $ac_c" 1>&6
23212 cat > conftest.$ac_ext <<EOF
23213 #line 23214 "configure"
23214 #include "confdefs.h"
23215 #include <sys/types.h>
23216 #include <sys/stat.h>
23218 struct stat foo; foo.st_blksize;
23221 if { (eval echo configure:23222: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23223 ac_cv_c_struct_member_st_blksize=yes
23225 echo "configure: failed program was:" >&5
23226 cat conftest.$ac_ext >&5
23228 ac_cv_c_struct_member_st_blksize=no
23233 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
23234 st_blksize="$ac_cv_c_struct_member_st_blksize"
23235 if test $ac_cv_c_struct_member_st_blksize = yes; then
23236 cat >> confdefs.h <<\EOF
23237 #define HAVE_ST_BLKSIZE 1
23242 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
23243 echo "configure:23244: checking whether time.h and sys/time.h may both be included" >&5
23244 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
23245 echo $ac_n "(cached) $ac_c" 1>&6
23247 cat > conftest.$ac_ext <<EOF
23248 #line 23249 "configure"
23249 #include "confdefs.h"
23250 #include <sys/types.h>
23251 #include <sys/time.h>
23257 if { (eval echo configure:23258: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23259 ac_cv_header_time=yes
23261 echo "configure: failed program was:" >&5
23262 cat conftest.$ac_ext >&5
23264 ac_cv_header_time=no
23269 echo "$ac_t""$ac_cv_header_time" 1>&6
23270 if test $ac_cv_header_time = yes; then
23271 cat >> confdefs.h <<\EOF
23272 #define TIME_WITH_SYS_TIME 1
23277 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
23278 echo "configure:23279: checking whether struct tm is in sys/time.h or time.h" >&5
23279 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
23280 echo $ac_n "(cached) $ac_c" 1>&6
23282 cat > conftest.$ac_ext <<EOF
23283 #line 23284 "configure"
23284 #include "confdefs.h"
23285 #include <sys/types.h>
23288 struct tm *tp; tp->tm_sec;
23291 if { (eval echo configure:23292: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23293 ac_cv_struct_tm=time.h
23295 echo "configure: failed program was:" >&5
23296 cat conftest.$ac_ext >&5
23298 ac_cv_struct_tm=sys/time.h
23303 echo "$ac_t""$ac_cv_struct_tm" 1>&6
23304 if test $ac_cv_struct_tm = sys/time.h; then
23305 cat >> confdefs.h <<\EOF
23306 #define TM_IN_SYS_TIME 1
23311 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
23312 echo "configure:23313: checking for uid_t in sys/types.h" >&5
23313 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
23314 echo $ac_n "(cached) $ac_c" 1>&6
23316 cat > conftest.$ac_ext <<EOF
23317 #line 23318 "configure"
23318 #include "confdefs.h"
23319 #include <sys/types.h>
23321 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23322 egrep "uid_t" >/dev/null 2>&1; then
23324 ac_cv_type_uid_t=yes
23327 ac_cv_type_uid_t=no
23333 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
23334 if test $ac_cv_type_uid_t = no; then
23335 cat >> confdefs.h <<\EOF
23339 cat >> confdefs.h <<\EOF
23345 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
23346 echo "configure:23347: checking for sig_atomic_t" >&5
23347 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
23348 echo $ac_n "(cached) $ac_c" 1>&6
23350 cat > conftest.$ac_ext <<EOF
23351 #line 23352 "configure"
23352 #include "confdefs.h"
23353 #include <signal.h>
23355 sig_atomic_t atomic;
23358 if { (eval echo configure:23359: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23360 ol_cv_type_sig_atomic_t=yes
23362 echo "configure: failed program was:" >&5
23363 cat conftest.$ac_ext >&5
23365 ol_cv_type_sig_atomic_t=no
23370 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
23371 if test $ol_cv_type_sig_atomic_t = no; then
23372 cat >> confdefs.h <<\EOF
23373 #define sig_atomic_t int
23380 # test for pw_gecos in struct passwd
23381 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
23382 echo "configure:23383: checking struct passwd for pw_gecos" >&5
23383 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
23384 echo $ac_n "(cached) $ac_c" 1>&6
23387 cat > conftest.$ac_ext <<EOF
23388 #line 23389 "configure"
23389 #include "confdefs.h"
23394 pwd.pw_gecos = pwd.pw_name;
23398 if { (eval echo configure:23399: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23400 ol_cv_struct_passwd_pw_gecos=yes
23402 echo "configure: failed program was:" >&5
23403 cat conftest.$ac_ext >&5
23405 ol_cv_struct_passwd_pw_gecos=no
23410 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
23411 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
23412 cat >> confdefs.h <<\EOF
23413 #define HAVE_PW_GECOS 1
23418 # test for pw_passwd in struct passwd
23419 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
23420 echo "configure:23421: checking struct passwd for pw_passwd" >&5
23421 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
23422 echo $ac_n "(cached) $ac_c" 1>&6
23425 cat > conftest.$ac_ext <<EOF
23426 #line 23427 "configure"
23427 #include "confdefs.h"
23432 pwd.pw_passwd = pwd.pw_name;
23436 if { (eval echo configure:23437: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23438 ol_cv_struct_passwd_pw_passwd=yes
23440 echo "configure: failed program was:" >&5
23441 cat conftest.$ac_ext >&5
23443 ol_cv_struct_passwd_pw_passwd=no
23448 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
23449 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
23450 cat >> confdefs.h <<\EOF
23451 #define HAVE_PW_PASSWD 1
23457 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
23458 echo "configure:23459: checking if toupper() requires islower()" >&5
23459 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
23460 echo $ac_n "(cached) $ac_c" 1>&6
23463 if test "$cross_compiling" = yes; then
23464 ol_cv_c_upper_lower=safe
23466 cat > conftest.$ac_ext <<EOF
23467 #line 23468 "configure"
23468 #include "confdefs.h"
23473 if ('C' == toupper('C'))
23479 if { (eval echo configure:23480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
23481 ol_cv_c_upper_lower=no
23483 echo "configure: failed program was:" >&5
23484 cat conftest.$ac_ext >&5
23486 ol_cv_c_upper_lower=yes
23493 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
23494 if test $ol_cv_c_upper_lower != no ; then
23495 cat >> confdefs.h <<\EOF
23496 #define C_UPPER_LOWER 1
23501 echo $ac_n "checking for working const""... $ac_c" 1>&6
23502 echo "configure:23503: checking for working const" >&5
23503 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
23504 echo $ac_n "(cached) $ac_c" 1>&6
23506 cat > conftest.$ac_ext <<EOF
23507 #line 23508 "configure"
23508 #include "confdefs.h"
23512 /* Ultrix mips cc rejects this. */
23513 typedef int charset[2]; const charset x;
23514 /* SunOS 4.1.1 cc rejects this. */
23515 char const *const *ccp;
23517 /* NEC SVR4.0.2 mips cc rejects this. */
23518 struct point {int x, y;};
23519 static struct point const zero = {0,0};
23520 /* AIX XL C 1.02.0.0 rejects this.
23521 It does not let you subtract one const X* pointer from another in an arm
23522 of an if-expression whose if-part is not a constant expression */
23523 const char *g = "string";
23524 ccp = &g + (g ? g-g : 0);
23525 /* HPUX 7.0 cc rejects these. */
23528 ccp = (char const *const *) p;
23529 { /* SCO 3.2v4 cc rejects this. */
23531 char const *s = 0 ? (char *) 0 : (char const *) 0;
23535 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
23536 int x[] = {25, 17};
23537 const int *foo = &x[0];
23540 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23541 typedef const int *iptr;
23545 { /* AIX XL C 1.02.0.0 rejects this saying
23546 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23547 struct s { int j; const int *ap[3]; };
23548 struct s *b; b->j = 5;
23550 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23551 const int foo = 10;
23556 if { (eval echo configure:23557: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23560 echo "configure: failed program was:" >&5
23561 cat conftest.$ac_ext >&5
23568 echo "$ac_t""$ac_cv_c_const" 1>&6
23569 if test $ac_cv_c_const = no; then
23570 cat >> confdefs.h <<\EOF
23576 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
23577 echo "configure:23578: checking if compiler understands volatile" >&5
23578 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
23579 echo $ac_n "(cached) $ac_c" 1>&6
23581 cat > conftest.$ac_ext <<EOF
23582 #line 23583 "configure"
23583 #include "confdefs.h"
23586 volatile int a; int * volatile b = x ? &y : &z;
23587 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
23591 if { (eval echo configure:23592: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23593 ol_cv_c_volatile=yes
23595 echo "configure: failed program was:" >&5
23596 cat conftest.$ac_ext >&5
23598 ol_cv_c_volatile=no
23603 echo "$ac_t""$ol_cv_c_volatile" 1>&6
23604 if test $ol_cv_c_volatile = yes; then
23607 cat >> confdefs.h <<\EOF
23614 if test $cross_compiling = yes ; then
23615 echo "configure: warning: Crossing compiling... all bets are off!" 1>&2
23616 cat >> confdefs.h <<\EOF
23617 #define CROSS_COMPILING 1
23621 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
23622 echo "configure:23623: checking whether byte ordering is bigendian" >&5
23623 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
23624 echo $ac_n "(cached) $ac_c" 1>&6
23626 ac_cv_c_bigendian=unknown
23627 # See if sys/param.h defines the BYTE_ORDER macro.
23628 cat > conftest.$ac_ext <<EOF
23629 #line 23630 "configure"
23630 #include "confdefs.h"
23631 #include <sys/types.h>
23632 #include <sys/param.h>
23635 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
23636 bogus endian macros
23640 if { (eval echo configure:23641: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23642 # It does; now see whether it defined to BIG_ENDIAN or not.
23643 cat > conftest.$ac_ext <<EOF
23644 #line 23645 "configure"
23645 #include "confdefs.h"
23646 #include <sys/types.h>
23647 #include <sys/param.h>
23650 #if BYTE_ORDER != BIG_ENDIAN
23655 if { (eval echo configure:23656: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23657 ac_cv_c_bigendian=yes
23659 echo "configure: failed program was:" >&5
23660 cat conftest.$ac_ext >&5
23662 ac_cv_c_bigendian=no
23666 echo "configure: failed program was:" >&5
23667 cat conftest.$ac_ext >&5
23670 if test $ac_cv_c_bigendian = unknown; then
23671 if test "$cross_compiling" = yes; then
23672 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
23674 cat > conftest.$ac_ext <<EOF
23675 #line 23676 "configure"
23676 #include "confdefs.h"
23678 /* Are we little or big endian? From Harbison&Steele. */
23682 char c[sizeof (long)];
23685 exit (u.c[sizeof (long) - 1] == 1);
23688 if { (eval echo configure:23689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
23690 ac_cv_c_bigendian=no
23692 echo "configure: failed program was:" >&5
23693 cat conftest.$ac_ext >&5
23695 ac_cv_c_bigendian=yes
23703 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
23704 if test $ac_cv_c_bigendian = yes; then
23705 cat >> confdefs.h <<\EOF
23706 #define WORDS_BIGENDIAN 1
23713 echo $ac_n "checking size of short""... $ac_c" 1>&6
23714 echo "configure:23715: checking size of short" >&5
23715 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
23716 echo $ac_n "(cached) $ac_c" 1>&6
23718 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23719 cat > conftest.$ac_ext <<EOF
23720 #line 23721 "configure"
23721 #include "confdefs.h"
23722 #include "confdefs.h"
23723 #include <stdlib.h>
23724 #include <sys/types.h>
23728 switch (0) case 0: case (sizeof (short) == $ac_size):;
23731 if { (eval echo configure:23732: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23733 ac_cv_sizeof_short=$ac_size
23735 echo "configure: failed program was:" >&5
23736 cat conftest.$ac_ext >&5
23739 if test x$ac_cv_sizeof_short != x ; then break; fi
23744 if test x$ac_cv_sizeof_short = x ; then
23745 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
23747 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
23748 cat >> confdefs.h <<EOF
23749 #define SIZEOF_SHORT $ac_cv_sizeof_short
23753 echo $ac_n "checking size of int""... $ac_c" 1>&6
23754 echo "configure:23755: checking size of int" >&5
23755 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
23756 echo $ac_n "(cached) $ac_c" 1>&6
23758 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23759 cat > conftest.$ac_ext <<EOF
23760 #line 23761 "configure"
23761 #include "confdefs.h"
23762 #include "confdefs.h"
23763 #include <stdlib.h>
23764 #include <sys/types.h>
23768 switch (0) case 0: case (sizeof (int) == $ac_size):;
23771 if { (eval echo configure:23772: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23773 ac_cv_sizeof_int=$ac_size
23775 echo "configure: failed program was:" >&5
23776 cat conftest.$ac_ext >&5
23779 if test x$ac_cv_sizeof_int != x ; then break; fi
23784 if test x$ac_cv_sizeof_int = x ; then
23785 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
23787 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
23788 cat >> confdefs.h <<EOF
23789 #define SIZEOF_INT $ac_cv_sizeof_int
23793 echo $ac_n "checking size of long""... $ac_c" 1>&6
23794 echo "configure:23795: checking size of long" >&5
23795 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
23796 echo $ac_n "(cached) $ac_c" 1>&6
23798 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23799 cat > conftest.$ac_ext <<EOF
23800 #line 23801 "configure"
23801 #include "confdefs.h"
23802 #include "confdefs.h"
23803 #include <stdlib.h>
23804 #include <sys/types.h>
23808 switch (0) case 0: case (sizeof (long) == $ac_size):;
23811 if { (eval echo configure:23812: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23813 ac_cv_sizeof_long=$ac_size
23815 echo "configure: failed program was:" >&5
23816 cat conftest.$ac_ext >&5
23819 if test x$ac_cv_sizeof_long != x ; then break; fi
23824 if test x$ac_cv_sizeof_long = x ; then
23825 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
23827 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
23828 cat >> confdefs.h <<EOF
23829 #define SIZEOF_LONG $ac_cv_sizeof_long
23833 echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
23834 echo "configure:23835: checking size of wchar_t" >&5
23835 if eval "test \"\${ac_cv_sizeof_wchar_t+set}\" = set"; then
23836 echo $ac_n "(cached) $ac_c" 1>&6
23838 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23839 cat > conftest.$ac_ext <<EOF
23840 #line 23841 "configure"
23841 #include "confdefs.h"
23842 #include "confdefs.h"
23843 #include <stdlib.h>
23844 #include <sys/types.h>
23848 switch (0) case 0: case (sizeof (wchar_t) == $ac_size):;
23851 if { (eval echo configure:23852: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23853 ac_cv_sizeof_wchar_t=$ac_size
23855 echo "configure: failed program was:" >&5
23856 cat conftest.$ac_ext >&5
23859 if test x$ac_cv_sizeof_wchar_t != x ; then break; fi
23864 if test x$ac_cv_sizeof_wchar_t = x ; then
23865 { echo "configure: error: cannot determine a size for wchar_t" 1>&2; exit 1; }
23867 echo "$ac_t""$ac_cv_sizeof_wchar_t" 1>&6
23868 cat >> confdefs.h <<EOF
23869 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
23874 if test "$ac_cv_sizeof_int" -lt 4 ; then
23875 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
23877 cat >> confdefs.h <<\EOF
23878 #define LBER_INT_T long
23882 cat >> confdefs.h <<\EOF
23883 #define LBER_INT_T int
23888 cat >> confdefs.h <<\EOF
23889 #define LBER_LEN_T long
23892 cat >> confdefs.h <<\EOF
23893 #define LBER_SOCKET_T int
23896 cat >> confdefs.h <<\EOF
23897 #define LBER_TAG_T long
23901 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
23902 echo "configure:23903: checking for 8-bit clean memcmp" >&5
23903 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
23904 echo $ac_n "(cached) $ac_c" 1>&6
23906 if test "$cross_compiling" = yes; then
23907 ac_cv_func_memcmp_clean=no
23909 cat > conftest.$ac_ext <<EOF
23910 #line 23911 "configure"
23911 #include "confdefs.h"
23915 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
23916 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
23920 if { (eval echo configure:23921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
23922 ac_cv_func_memcmp_clean=yes
23924 echo "configure: failed program was:" >&5
23925 cat conftest.$ac_ext >&5
23927 ac_cv_func_memcmp_clean=no
23934 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
23935 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
23938 if test $ac_cv_func_memcmp_clean = no ; then
23939 cat >> confdefs.h <<\EOF
23940 #define NEED_MEMCMP_REPLACEMENT 1
23945 echo $ac_n "checking for strftime""... $ac_c" 1>&6
23946 echo "configure:23947: checking for strftime" >&5
23947 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
23948 echo $ac_n "(cached) $ac_c" 1>&6
23950 cat > conftest.$ac_ext <<EOF
23951 #line 23952 "configure"
23952 #include "confdefs.h"
23953 /* System header to define __stub macros and hopefully few prototypes,
23954 which can conflict with char strftime(); below. */
23955 #include <assert.h>
23956 /* Override any gcc2 internal prototype to avoid an error. */
23957 /* We use char because int might match the return type of a gcc2
23958 builtin and then its argument prototype would still apply. */
23964 /* The GNU C library defines this for functions which it implements
23965 to always fail with ENOSYS. Some functions are actually named
23966 something starting with __ and the normal name is an alias. */
23967 #if defined (__stub_strftime) || defined (__stub___strftime)
23975 if { (eval echo configure:23976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23977 eval "ac_cv_func_strftime=yes"
23979 echo "configure: failed program was:" >&5
23980 cat conftest.$ac_ext >&5
23982 eval "ac_cv_func_strftime=no"
23987 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
23988 echo "$ac_t""yes" 1>&6
23989 cat >> confdefs.h <<\EOF
23990 #define HAVE_STRFTIME 1
23994 echo "$ac_t""no" 1>&6
23995 # strftime is in -lintl on SCO UNIX.
23996 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
23997 echo "configure:23998: checking for strftime in -lintl" >&5
23998 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
23999 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
24000 echo $ac_n "(cached) $ac_c" 1>&6
24002 ac_save_LIBS="$LIBS"
24003 LIBS="-lintl $LIBS"
24004 cat > conftest.$ac_ext <<EOF
24005 #line 24006 "configure"
24006 #include "confdefs.h"
24007 /* Override any gcc2 internal prototype to avoid an error. */
24008 /* We use char because int might match the return type of a gcc2
24009 builtin and then its argument prototype would still apply. */
24016 if { (eval echo configure:24017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
24018 eval "ac_cv_lib_$ac_lib_var=yes"
24020 echo "configure: failed program was:" >&5
24021 cat conftest.$ac_ext >&5
24023 eval "ac_cv_lib_$ac_lib_var=no"
24026 LIBS="$ac_save_LIBS"
24029 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
24030 echo "$ac_t""yes" 1>&6
24031 cat >> confdefs.h <<\EOF
24032 #define HAVE_STRFTIME 1
24035 LIBS="-lintl $LIBS"
24037 echo "$ac_t""no" 1>&6
24043 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
24044 echo "configure:24045: checking for inet_aton()" >&5
24045 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
24046 echo $ac_n "(cached) $ac_c" 1>&6
24048 cat > conftest.$ac_ext <<EOF
24049 #line 24050 "configure"
24050 #include "confdefs.h"
24052 #ifdef HAVE_SYS_TYPES_H
24053 # include <sys/types.h>
24055 #ifdef HAVE_SYS_SOCKET_H
24056 # include <sys/socket.h>
24057 # ifdef HAVE_SYS_SELECT_H
24058 # include <sys/select.h>
24060 # include <netinet/in.h>
24061 # ifdef HAVE_ARPA_INET_H
24062 # include <arpa/inet.h>
24068 int rc = inet_aton( "255.255.255.255", &in );
24071 if { (eval echo configure:24072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
24073 ol_cv_func_inet_aton=yes
24075 echo "configure: failed program was:" >&5
24076 cat conftest.$ac_ext >&5
24078 ol_cv_func_inet_aton=no
24083 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
24084 if test $ol_cv_func_inet_aton != no; then
24085 cat >> confdefs.h <<\EOF
24086 #define HAVE_INET_ATON 1
24092 echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
24093 echo "configure:24094: checking for _spawnlp" >&5
24094 if eval "test \"\${ac_cv_func__spawnlp+set}\" = set"; then
24095 echo $ac_n "(cached) $ac_c" 1>&6
24097 cat > conftest.$ac_ext <<EOF
24098 #line 24099 "configure"
24099 #include "confdefs.h"
24100 /* System header to define __stub macros and hopefully few prototypes,
24101 which can conflict with char _spawnlp(); below. */
24102 #include <assert.h>
24103 /* Override any gcc2 internal prototype to avoid an error. */
24104 /* We use char because int might match the return type of a gcc2
24105 builtin and then its argument prototype would still apply. */
24111 /* The GNU C library defines this for functions which it implements
24112 to always fail with ENOSYS. Some functions are actually named
24113 something starting with __ and the normal name is an alias. */
24114 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
24122 if { (eval echo configure:24123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
24124 eval "ac_cv_func__spawnlp=yes"
24126 echo "configure: failed program was:" >&5
24127 cat conftest.$ac_ext >&5
24129 eval "ac_cv_func__spawnlp=no"
24134 if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
24135 echo "$ac_t""yes" 1>&6
24136 cat >> confdefs.h <<\EOF
24137 #define HAVE_SPAWNLP 1
24141 echo "$ac_t""no" 1>&6
24145 echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
24146 echo "configure:24147: checking for _snprintf" >&5
24147 if eval "test \"\${ac_cv_func__snprintf+set}\" = set"; then
24148 echo $ac_n "(cached) $ac_c" 1>&6
24150 cat > conftest.$ac_ext <<EOF
24151 #line 24152 "configure"
24152 #include "confdefs.h"
24153 /* System header to define __stub macros and hopefully few prototypes,
24154 which can conflict with char _snprintf(); below. */
24155 #include <assert.h>
24156 /* Override any gcc2 internal prototype to avoid an error. */
24157 /* We use char because int might match the return type of a gcc2
24158 builtin and then its argument prototype would still apply. */
24164 /* The GNU C library defines this for functions which it implements
24165 to always fail with ENOSYS. Some functions are actually named
24166 something starting with __ and the normal name is an alias. */
24167 #if defined (__stub__snprintf) || defined (__stub____snprintf)
24175 if { (eval echo configure:24176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
24177 eval "ac_cv_func__snprintf=yes"
24179 echo "configure: failed program was:" >&5
24180 cat conftest.$ac_ext >&5
24182 eval "ac_cv_func__snprintf=no"
24187 if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
24188 echo "$ac_t""yes" 1>&6
24189 ac_cv_func_snprintf=yes
24190 cat >> confdefs.h <<\EOF
24191 #define snprintf _snprintf
24196 echo "$ac_t""no" 1>&6
24200 echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
24201 echo "configure:24202: checking for _vsnprintf" >&5
24202 if eval "test \"\${ac_cv_func__vsnprintf+set}\" = set"; then
24203 echo $ac_n "(cached) $ac_c" 1>&6
24205 cat > conftest.$ac_ext <<EOF
24206 #line 24207 "configure"
24207 #include "confdefs.h"
24208 /* System header to define __stub macros and hopefully few prototypes,
24209 which can conflict with char _vsnprintf(); below. */
24210 #include <assert.h>
24211 /* Override any gcc2 internal prototype to avoid an error. */
24212 /* We use char because int might match the return type of a gcc2
24213 builtin and then its argument prototype would still apply. */
24219 /* The GNU C library defines this for functions which it implements
24220 to always fail with ENOSYS. Some functions are actually named
24221 something starting with __ and the normal name is an alias. */
24222 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
24230 if { (eval echo configure:24231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
24232 eval "ac_cv_func__vsnprintf=yes"
24234 echo "configure: failed program was:" >&5
24235 cat conftest.$ac_ext >&5
24237 eval "ac_cv_func__vsnprintf=no"
24242 if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
24243 echo "$ac_t""yes" 1>&6
24244 ac_cv_func_vsnprintf=yes
24245 cat >> confdefs.h <<\EOF
24246 #define vsnprintf _vsnprintf
24251 echo "$ac_t""no" 1>&6
24255 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
24256 echo "configure:24257: checking for vprintf" >&5
24257 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
24258 echo $ac_n "(cached) $ac_c" 1>&6
24260 cat > conftest.$ac_ext <<EOF
24261 #line 24262 "configure"
24262 #include "confdefs.h"
24263 /* System header to define __stub macros and hopefully few prototypes,
24264 which can conflict with char vprintf(); below. */
24265 #include <assert.h>
24266 /* Override any gcc2 internal prototype to avoid an error. */
24267 /* We use char because int might match the return type of a gcc2
24268 builtin and then its argument prototype would still apply. */
24274 /* The GNU C library defines this for functions which it implements
24275 to always fail with ENOSYS. Some functions are actually named
24276 something starting with __ and the normal name is an alias. */
24277 #if defined (__stub_vprintf) || defined (__stub___vprintf)
24285 if { (eval echo configure:24286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
24287 eval "ac_cv_func_vprintf=yes"
24289 echo "configure: failed program was:" >&5
24290 cat conftest.$ac_ext >&5
24292 eval "ac_cv_func_vprintf=no"
24297 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
24298 echo "$ac_t""yes" 1>&6
24299 cat >> confdefs.h <<\EOF
24300 #define HAVE_VPRINTF 1
24304 echo "$ac_t""no" 1>&6
24307 if test "$ac_cv_func_vprintf" != yes; then
24308 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
24309 echo "configure:24310: checking for _doprnt" >&5
24310 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
24311 echo $ac_n "(cached) $ac_c" 1>&6
24313 cat > conftest.$ac_ext <<EOF
24314 #line 24315 "configure"
24315 #include "confdefs.h"
24316 /* System header to define __stub macros and hopefully few prototypes,
24317 which can conflict with char _doprnt(); below. */
24318 #include <assert.h>
24319 /* Override any gcc2 internal prototype to avoid an error. */
24320 /* We use char because int might match the return type of a gcc2
24321 builtin and then its argument prototype would still apply. */
24327 /* The GNU C library defines this for functions which it implements
24328 to always fail with ENOSYS. Some functions are actually named
24329 something starting with __ and the normal name is an alias. */
24330 #if defined (__stub__doprnt) || defined (__stub____doprnt)
24338 if { (eval echo configure:24339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
24340 eval "ac_cv_func__doprnt=yes"
24342 echo "configure: failed program was:" >&5
24343 cat conftest.$ac_ext >&5
24345 eval "ac_cv_func__doprnt=no"
24350 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
24351 echo "$ac_t""yes" 1>&6
24352 cat >> confdefs.h <<\EOF
24353 #define HAVE_DOPRNT 1
24357 echo "$ac_t""no" 1>&6
24363 if test $ac_cv_func_vprintf = yes ; then
24364 for ac_func in snprintf vsnprintf
24366 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
24367 echo "configure:24368: checking for $ac_func" >&5
24368 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
24369 echo $ac_n "(cached) $ac_c" 1>&6
24371 cat > conftest.$ac_ext <<EOF
24372 #line 24373 "configure"
24373 #include "confdefs.h"
24374 /* System header to define __stub macros and hopefully few prototypes,
24375 which can conflict with char $ac_func(); below. */
24376 #include <assert.h>
24377 /* Override any gcc2 internal prototype to avoid an error. */
24378 /* We use char because int might match the return type of a gcc2
24379 builtin and then its argument prototype would still apply. */
24385 /* The GNU C library defines this for functions which it implements
24386 to always fail with ENOSYS. Some functions are actually named
24387 something starting with __ and the normal name is an alias. */
24388 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24396 if { (eval echo configure:24397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
24398 eval "ac_cv_func_$ac_func=yes"
24400 echo "configure: failed program was:" >&5
24401 cat conftest.$ac_ext >&5
24403 eval "ac_cv_func_$ac_func=no"
24408 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
24409 echo "$ac_t""yes" 1>&6
24410 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
24411 cat >> confdefs.h <<EOF
24412 #define $ac_tr_func 1
24416 echo "$ac_t""no" 1>&6
24478 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
24479 echo "configure:24480: checking for $ac_func" >&5
24480 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
24481 echo $ac_n "(cached) $ac_c" 1>&6
24483 cat > conftest.$ac_ext <<EOF
24484 #line 24485 "configure"
24485 #include "confdefs.h"
24486 /* System header to define __stub macros and hopefully few prototypes,
24487 which can conflict with char $ac_func(); below. */
24488 #include <assert.h>
24489 /* Override any gcc2 internal prototype to avoid an error. */
24490 /* We use char because int might match the return type of a gcc2
24491 builtin and then its argument prototype would still apply. */
24497 /* The GNU C library defines this for functions which it implements
24498 to always fail with ENOSYS. Some functions are actually named
24499 something starting with __ and the normal name is an alias. */
24500 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24508 if { (eval echo configure:24509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
24510 eval "ac_cv_func_$ac_func=yes"
24512 echo "configure: failed program was:" >&5
24513 cat conftest.$ac_ext >&5
24515 eval "ac_cv_func_$ac_func=no"
24520 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
24521 echo "$ac_t""yes" 1>&6
24522 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
24523 cat >> confdefs.h <<EOF
24524 #define $ac_tr_func 1
24528 echo "$ac_t""no" 1>&6
24533 for ac_func in getopt getpeereid
24535 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
24536 echo "configure:24537: checking for $ac_func" >&5
24537 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
24538 echo $ac_n "(cached) $ac_c" 1>&6
24540 cat > conftest.$ac_ext <<EOF
24541 #line 24542 "configure"
24542 #include "confdefs.h"
24543 /* System header to define __stub macros and hopefully few prototypes,
24544 which can conflict with char $ac_func(); below. */
24545 #include <assert.h>
24546 /* Override any gcc2 internal prototype to avoid an error. */
24547 /* We use char because int might match the return type of a gcc2
24548 builtin and then its argument prototype would still apply. */
24554 /* The GNU C library defines this for functions which it implements
24555 to always fail with ENOSYS. Some functions are actually named
24556 something starting with __ and the normal name is an alias. */
24557 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24565 if { (eval echo configure:24566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
24567 eval "ac_cv_func_$ac_func=yes"
24569 echo "configure: failed program was:" >&5
24570 cat conftest.$ac_ext >&5
24572 eval "ac_cv_func_$ac_func=no"
24577 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
24578 echo "$ac_t""yes" 1>&6
24579 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
24580 cat >> confdefs.h <<EOF
24581 #define $ac_tr_func 1
24585 echo "$ac_t""no" 1>&6
24586 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
24592 if test "$ac_cv_func_getopt" != yes; then
24593 LIBSRCS="$LIBSRCS getopt.c"
24595 if test "$ac_cv_func_getpeereid" != yes; then
24596 echo $ac_n "checking for msg_accrights in msghdr""... $ac_c" 1>&6
24597 echo "configure:24598: checking for msg_accrights in msghdr" >&5
24598 if eval "test \"\${ol_cv_msghdr_msg_accrights+set}\" = set"; then
24599 echo $ac_n "(cached) $ac_c" 1>&6
24601 cat > conftest.$ac_ext <<EOF
24602 #line 24603 "configure"
24603 #include "confdefs.h"
24604 #include <sys/socket.h>
24606 struct msghdr m; m.msg_accrightslen=0
24609 if { (eval echo configure:24610: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
24611 ol_cv_msghdr_msg_accrights=yes
24613 echo "configure: failed program was:" >&5
24614 cat conftest.$ac_ext >&5
24616 ol_cv_msghdr_msg_accrights=no
24622 echo "$ac_t""$ol_cv_msghdr_msg_accrights" 1>&6
24623 if test $ol_cv_msghdr_msg_accrights = "yes" ; then
24624 cat >> confdefs.h <<\EOF
24625 #define HAVE_MSGHDR_MSG_ACCRIGHTS 1
24630 if test "$ac_cv_func_getpeereid" != yes; then
24631 echo $ac_n "checking for msg_control in msghdr""... $ac_c" 1>&6
24632 echo "configure:24633: checking for msg_control in msghdr" >&5
24633 if eval "test \"\${ol_cv_msghdr_msg_control+set}\" = set"; then
24634 echo $ac_n "(cached) $ac_c" 1>&6
24636 cat > conftest.$ac_ext <<EOF
24637 #line 24638 "configure"
24638 #include "confdefs.h"
24639 #include <sys/socket.h>
24641 struct msghdr m; m.msg_control=(struct cmsghdr *)0
24644 if { (eval echo configure:24645: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
24646 ol_cv_msghdr_msg_control=yes
24648 echo "configure: failed program was:" >&5
24649 cat conftest.$ac_ext >&5
24651 ol_cv_msghdr_msg_control=no
24657 echo "$ac_t""$ol_cv_msghdr_msg_control" 1>&6
24658 if test $ol_cv_msghdr_msg_control = "yes" ; then
24659 cat >> confdefs.h <<\EOF
24660 #define HAVE_MSGHDR_MSG_CONTROL 1
24666 LIBSRCS="$LIBSRCS getpeereid.c"
24668 if test "$ac_cv_func_snprintf" != yes -o "$ac_cv_func_vsnprintf" != yes; then
24669 if test "$ac_cv_func_snprintf" != yes; then
24670 cat >> confdefs.h <<\EOF
24671 #define snprintf ber_pvt_snprintf
24675 if test "$ac_cv_func_vsnprintf" != yes; then
24676 cat >> confdefs.h <<\EOF
24677 #define vsnprintf ber_pvt_vsnprintf
24684 if test "$ol_enable_slapi" != no ; then
24685 for ac_hdr in ltdl.h
24687 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
24688 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
24689 echo "configure:24690: checking for $ac_hdr" >&5
24690 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
24691 echo $ac_n "(cached) $ac_c" 1>&6
24693 cat > conftest.$ac_ext <<EOF
24694 #line 24695 "configure"
24695 #include "confdefs.h"
24698 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
24699 { (eval echo configure:24700: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
24700 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
24701 if test -z "$ac_err"; then
24703 eval "ac_cv_header_$ac_safe=yes"
24706 echo "configure: failed program was:" >&5
24707 cat conftest.$ac_ext >&5
24709 eval "ac_cv_header_$ac_safe=no"
24713 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
24714 echo "$ac_t""yes" 1>&6
24715 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
24716 cat >> confdefs.h <<EOF
24717 #define $ac_tr_hdr 1
24721 echo "$ac_t""no" 1>&6
24726 if test $ac_cv_header_ltdl_h != yes ; then
24727 { echo "configure: error: could not locate <ltdl.h>" 1>&2; exit 1; }
24729 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
24730 echo "configure:24731: checking for lt_dlinit in -lltdl" >&5
24731 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
24732 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
24733 echo $ac_n "(cached) $ac_c" 1>&6
24735 ac_save_LIBS="$LIBS"
24736 LIBS="-lltdl $LIBS"
24737 cat > conftest.$ac_ext <<EOF
24738 #line 24739 "configure"
24739 #include "confdefs.h"
24740 /* Override any gcc2 internal prototype to avoid an error. */
24741 /* We use char because int might match the return type of a gcc2
24742 builtin and then its argument prototype would still apply. */
24749 if { (eval echo configure:24750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
24751 eval "ac_cv_lib_$ac_lib_var=yes"
24753 echo "configure: failed program was:" >&5
24754 cat conftest.$ac_ext >&5
24756 eval "ac_cv_lib_$ac_lib_var=no"
24759 LIBS="$ac_save_LIBS"
24762 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
24763 echo "$ac_t""yes" 1>&6
24766 LIBSLAPI=libslapi.a
24767 LIBSLAPITOOLS=../libslapi.a
24768 cat >> confdefs.h <<\EOF
24769 #define HAVE_LIBLTDL 1
24774 echo "$ac_t""no" 1>&6
24775 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
24779 cat >> confdefs.h <<\EOF
24780 #define LDAP_SLAPI 1
24785 if test "$ol_enable_debug" != no ; then
24786 cat >> confdefs.h <<\EOF
24787 #define LDAP_DEBUG 1
24791 if test "$ol_enable_syslog" = yes ; then
24792 cat >> confdefs.h <<\EOF
24793 #define LDAP_SYSLOG 1
24797 if test "$ol_link_kbind" != no ; then
24798 cat >> confdefs.h <<\EOF
24799 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
24803 if test "$ol_enable_proctitle" != no ; then
24804 cat >> confdefs.h <<\EOF
24805 #define LDAP_PROCTITLE 1
24809 if test "$ol_enable_referrals" != no ; then
24810 cat >> confdefs.h <<\EOF
24811 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
24815 if test "$ol_enable_local" != no; then
24816 cat >> confdefs.h <<\EOF
24817 #define LDAP_PF_LOCAL 1
24821 if test "$ol_link_ipv6" != no; then
24822 cat >> confdefs.h <<\EOF
24823 #define LDAP_PF_INET6 1
24827 if test "$ol_enable_cleartext" != no ; then
24828 cat >> confdefs.h <<\EOF
24829 #define SLAPD_CLEARTEXT 1
24833 if test "$ol_enable_crypt" != no ; then
24834 cat >> confdefs.h <<\EOF
24835 #define SLAPD_CRYPT 1
24839 if test "$ol_link_spasswd" != no ; then
24840 cat >> confdefs.h <<\EOF
24841 #define SLAPD_SPASSWD 1
24845 if test "$ol_enable_multimaster" != no ; then
24846 cat >> confdefs.h <<\EOF
24847 #define SLAPD_MULTIMASTER 1
24851 if test "$ol_enable_rlookups" != no ; then
24852 cat >> confdefs.h <<\EOF
24853 #define SLAPD_RLOOKUPS 1
24857 if test "$ol_enable_aci" != no ; then
24858 cat >> confdefs.h <<\EOF
24859 #define SLAPD_ACI_ENABLED 1
24864 if test "$ol_link_modules" != no ; then
24865 cat >> confdefs.h <<\EOF
24866 #define SLAPD_MODULES 1
24870 SLAPD_MODULES_LDFLAGS="-dlopen self"
24873 cat >> confdefs.h <<\EOF
24874 #define SLAPD_MOD_STATIC 1
24877 cat >> confdefs.h <<\EOF
24878 #define SLAPD_MOD_DYNAMIC 2
24882 if test "$ol_enable_bdb" != no ; then
24884 BUILD_BDB=$ol_enable_bdb
24885 if test "$ol_enable_bdb" = mod ; then
24886 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
24887 MFLAG=SLAPD_MOD_DYNAMIC
24889 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
24890 MFLAG=SLAPD_MOD_STATIC
24892 cat >> confdefs.h <<EOF
24893 #define SLAPD_BDB $MFLAG
24898 if test "$ol_enable_dnssrv" != no ; then
24900 BUILD_DNSSRV=$ol_enable_dnssrv
24901 if test "$ol_enable_dnssrv" = mod ; then
24902 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
24903 MFLAG=SLAPD_MOD_DYNAMIC
24905 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
24906 MFLAG=SLAPD_MOD_STATIC
24908 cat >> confdefs.h <<EOF
24909 #define SLAPD_DNSSRV $MFLAG
24914 if test "$ol_enable_hdb" != no ; then
24916 BUILD_HDB=$ol_enable_hdb
24917 if test "$ol_enable_hdb" = mod ; then
24918 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
24919 MFLAG=SLAPD_MOD_DYNAMIC
24921 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
24922 MFLAG=SLAPD_MOD_STATIC
24924 cat >> confdefs.h <<EOF
24925 #define SLAPD_HDB $MFLAG
24930 if test "$ol_enable_ldap" != no ; then
24932 BUILD_LDAP=$ol_enable_ldap
24933 if test "$ol_enable_ldap" = mod ; then
24934 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
24935 MFLAG=SLAPD_MOD_DYNAMIC
24937 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
24938 MFLAG=SLAPD_MOD_STATIC
24940 cat >> confdefs.h <<EOF
24941 #define SLAPD_LDAP $MFLAG
24946 if test "$ol_link_ldbm" != no -a $ol_enable_ldbm != no; then
24948 BUILD_LDBM=$ol_enable_ldbm
24949 if test "$ol_enable_ldbm" = mod ; then
24950 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
24951 MFLAG=SLAPD_MOD_DYNAMIC
24953 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
24954 MFLAG=SLAPD_MOD_STATIC
24956 cat >> confdefs.h <<EOF
24957 #define SLAPD_LDBM $MFLAG
24962 if test "$ol_enable_meta" != no ; then
24964 BUILD_META=$ol_enable_meta
24966 if test "$ol_enable_meta" = mod ; then
24967 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
24968 MFLAG=SLAPD_MOD_DYNAMIC
24970 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
24971 MFLAG=SLAPD_MOD_STATIC
24973 cat >> confdefs.h <<EOF
24974 #define SLAPD_META $MFLAG
24979 if test "$ol_enable_monitor" != no ; then
24981 BUILD_MONITOR=$ol_enable_monitor
24982 if test "$ol_enable_monitor" = mod ; then
24983 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
24984 MFLAG=SLAPD_MOD_DYNAMIC
24986 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
24987 MFLAG=SLAPD_MOD_STATIC
24989 cat >> confdefs.h <<EOF
24990 #define SLAPD_MONITOR $MFLAG
24995 if test "$ol_enable_null" != no ; then
24997 BUILD_NULL=$ol_enable_null
24998 if test "$ol_enable_null" = mod ; then
24999 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
25000 MFLAG=SLAPD_MOD_DYNAMIC
25002 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
25003 MFLAG=SLAPD_MOD_STATIC
25005 cat >> confdefs.h <<EOF
25006 #define SLAPD_NULL $MFLAG
25011 if test "$ol_enable_passwd" != no ; then
25013 BUILD_PASSWD=$ol_enable_passwd
25014 if test "$ol_enable_passwd" = mod ; then
25015 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
25016 MFLAG=SLAPD_MOD_DYNAMIC
25018 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
25019 MFLAG=SLAPD_MOD_STATIC
25021 cat >> confdefs.h <<EOF
25022 #define SLAPD_PASSWD $MFLAG
25027 if test "$ol_link_perl" != no ; then
25029 BUILD_PERL=$ol_enable_perl
25030 if test "$ol_enable_perl" = mod ; then
25031 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
25032 MFLAG=SLAPD_MOD_DYNAMIC
25034 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
25035 MFLAG=SLAPD_MOD_STATIC
25037 cat >> confdefs.h <<EOF
25038 #define SLAPD_PERL $MFLAG
25043 if test "$ol_enable_relay" != no ; then
25045 BUILD_RELAY=$ol_enable_relay
25046 if test "$ol_enable_relay" = mod ; then
25047 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
25048 MFLAG=SLAPD_MOD_DYNAMIC
25050 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
25051 MFLAG=SLAPD_MOD_STATIC
25053 cat >> confdefs.h <<EOF
25054 #define SLAPD_RELAY $MFLAG
25059 if test "$ol_enable_shell" != no ; then
25060 if test "$ol_link_thread" != no ; then
25061 echo "configure: warning: Use of --without-threads is recommended with back-shell" 1>&2
25064 BUILD_SHELL=$ol_enable_shell
25065 if test "$ol_enable_shell" = mod ; then
25066 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
25067 MFLAG=SLAPD_MOD_DYNAMIC
25069 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
25070 MFLAG=SLAPD_MOD_STATIC
25072 cat >> confdefs.h <<EOF
25073 #define SLAPD_SHELL $MFLAG
25078 if test "$ol_link_sql" != no ; then
25080 BUILD_SQL=$ol_enable_sql
25081 if test "$ol_enable_sql" = mod; then
25082 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
25083 MFLAG=SLAPD_MOD_DYNAMIC
25085 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
25086 MFLAG=SLAPD_MOD_STATIC
25088 cat >> confdefs.h <<EOF
25089 #define SLAPD_SQL $MFLAG
25094 if test "$ol_enable_denyop" != no ; then
25095 BUILD_DENYOP=$ol_enable_denyop
25096 if test "$ol_enable_denyop" = mod ; then
25097 MFLAG=SLAPD_MOD_DYNAMIC
25098 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS denyop.la"
25100 MFLAG=SLAPD_MOD_STATIC
25102 cat >> confdefs.h <<EOF
25103 #define SLAPD_OVER_DENYOP $MFLAG
25108 if test "$ol_enable_dyngroup" != no ; then
25109 BUILD_DYNGROUP=$ol_enable_dyngroup
25110 if test "$ol_enable_dyngroup" = mod ; then
25111 MFLAG=SLAPD_MOD_DYNAMIC
25112 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
25114 MFLAG=SLAPD_MOD_STATIC
25116 cat >> confdefs.h <<EOF
25117 #define SLAPD_OVER_DYNGROUP $MFLAG
25122 if test "$ol_enable_glue" != no ; then
25123 BUILD_GLUE=$ol_enable_glue
25124 if test "$ol_enable_glue" = mod ; then
25125 MFLAG=SLAPD_MOD_DYNAMIC
25126 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS glue.la"
25128 MFLAG=SLAPD_MOD_STATIC
25130 cat >> confdefs.h <<EOF
25131 #define SLAPD_OVER_GLUE $MFLAG
25136 if test "$ol_enable_lastmod" != no ; then
25137 BUILD_LASTMOD=$ol_enable_lastmod
25138 if test "$ol_enable_lastmod" = mod ; then
25139 MFLAG=SLAPD_MOD_DYNAMIC
25140 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS lastmod.la"
25142 MFLAG=SLAPD_MOD_STATIC
25144 cat >> confdefs.h <<EOF
25145 #define SLAPD_OVER_LASTMOD $MFLAG
25150 if test "$ol_enable_ppolicy" != no ; then
25151 BUILD_PPOLICY=$ol_enable_ppolicy
25152 if test "$ol_enable_ppolicy" = mod ; then
25153 MFLAG=SLAPD_MOD_DYNAMIC
25154 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
25156 MFLAG=SLAPD_MOD_STATIC
25158 cat >> confdefs.h <<EOF
25159 #define SLAPD_OVER_PPOLICY $MFLAG
25164 if test "$ol_enable_proxycache" != no ; then
25165 BUILD_PROXYCACHE=$ol_enable_proxycache
25166 if test "$ol_enable_proxycache" = mod ; then
25167 MFLAG=SLAPD_MOD_DYNAMIC
25168 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
25170 MFLAG=SLAPD_MOD_STATIC
25172 cat >> confdefs.h <<EOF
25173 #define SLAPD_OVER_PROXYCACHE $MFLAG
25178 if test "$ol_enable_refint" != no ; then
25179 BUILD_REFINT=$ol_enable_refint
25180 if test "$ol_enable_refint" = mod ; then
25181 MFLAG=SLAPD_MOD_DYNAMIC
25182 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
25184 MFLAG=SLAPD_MOD_STATIC
25186 cat >> confdefs.h <<EOF
25187 #define SLAPD_OVER_REFINT $MFLAG
25192 if test "$ol_enable_rwm" != no ; then
25194 BUILD_RWM=$ol_enable_rwm
25195 if test "$ol_enable_rwm" = mod ; then
25196 MFLAG=SLAPD_MOD_DYNAMIC
25197 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
25199 MFLAG=SLAPD_MOD_STATIC
25201 cat >> confdefs.h <<EOF
25202 #define SLAPD_OVER_RWM $MFLAG
25207 if test "$ol_enable_syncprov" != no ; then
25208 BUILD_SYNCPROV=$ol_enable_syncprov
25209 if test "$ol_enable_syncprov" = mod ; then
25210 MFLAG=SLAPD_MOD_DYNAMIC
25211 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
25213 MFLAG=SLAPD_MOD_STATIC
25215 cat >> confdefs.h <<EOF
25216 #define SLAPD_OVER_SYNCPROV $MFLAG
25221 if test "$ol_enable_translucent" != no ; then
25222 BUILD_TRANSLUCENT=$ol_enable_translucent
25223 if test "$ol_enable_translucent" = mod ; then
25224 MFLAG=SLAPD_MOD_DYNAMIC
25225 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
25227 MFLAG=SLAPD_MOD_STATIC
25229 cat >> confdefs.h <<EOF
25230 #define SLAPD_OVER_TRANSLUCENT $MFLAG
25235 if test "$ol_enable_unique" != no ; then
25236 BUILD_UNIQUE=$ol_enable_unique
25237 if test "$ol_enable_unique" = mod ; then
25238 MFLAG=SLAPD_MOD_DYNAMIC
25239 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
25241 MFLAG=SLAPD_MOD_STATIC
25243 cat >> confdefs.h <<EOF
25244 #define SLAPD_OVER_UNIQUE $MFLAG
25249 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
25250 $BUILD_SLAPD = yes ; then
25254 if test "$ol_enable_rewrite" != no ; then
25255 cat >> confdefs.h <<\EOF
25256 #define ENABLE_REWRITE 1
25262 if test "$ol_enable_slapi" != no ; then
25263 cat >> confdefs.h <<\EOF
25264 #define ENABLE_SLAPI 1
25268 SLAPD_SLAPI_DEPEND=libslapi.a
25273 if test "$ac_cv_mingw32" = yes ; then
25275 SLAPD_MODULES_LDFLAGS=
25354 # Check whether --with-xxinstall or --without-xxinstall was given.
25355 if test "${with_xxinstall+set}" = set; then
25356 withval="$with_xxinstall"
25364 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
25366 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25367 # Let make expand exec_prefix.
25368 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25370 # Any assignment to VPATH causes Sun make to only execute
25371 # the first set of double-colon rules, so remove it if not needed.
25372 # If there is a colon in the path, we need to keep it.
25373 if test "x$srcdir" = x.; then
25374 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
25377 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
25379 DEFS=-DHAVE_CONFIG_H
25381 # Without the "./", some shells look in PATH for config.status.
25382 : ${CONFIG_STATUS=./config.status}
25384 echo creating $CONFIG_STATUS
25385 rm -f $CONFIG_STATUS
25386 cat > $CONFIG_STATUS <<EOF
25388 # Generated automatically by configure.
25389 # Run this file to recreate the current configuration.
25390 # This directory was configured as follows,
25391 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25393 # $0 $ac_configure_args
25395 # Compiler output produced by configure, useful for debugging
25396 # configure, is in ./config.log if it exists.
25398 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
25401 case "\$ac_option" in
25402 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25403 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
25404 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
25405 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
25406 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
25408 -help | --help | --hel | --he | --h)
25409 echo "\$ac_cs_usage"; exit 0 ;;
25410 *) echo "\$ac_cs_usage"; exit 1 ;;
25414 ac_given_srcdir=$srcdir
25415 ac_given_INSTALL="$INSTALL"
25417 trap 'rm -fr `echo "\
25418 Makefile:build/top.mk:Makefile.in:build/dir.mk \
25419 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
25420 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
25421 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
25422 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
25423 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
25424 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
25425 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
25426 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
25427 include/Makefile:build/top.mk:include/Makefile.in \
25428 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
25429 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
25430 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
25431 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
25432 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
25433 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
25434 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
25435 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
25436 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
25437 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
25438 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
25439 servers/slapd/back-hdb/Makefile:build/top.mk:servers/slapd/back-hdb/Makefile.in:build/mod.mk \
25440 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
25441 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
25442 servers/slapd/back-ldif/Makefile:build/top.mk:servers/slapd/back-ldif/Makefile.in:build/mod.mk \
25443 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
25444 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
25445 servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk \
25446 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
25447 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
25448 servers/slapd/back-relay/Makefile:build/top.mk:servers/slapd/back-relay/Makefile.in:build/mod.mk \
25449 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
25450 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
25451 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
25452 servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk \
25453 servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk \
25454 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
25455 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
25457 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
25458 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
25460 cat >> $CONFIG_STATUS <<EOF
25462 # Protect against being on the right side of a sed subst in config.status.
25463 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
25464 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
25468 s%@CFLAGS@%$CFLAGS%g
25469 s%@CPPFLAGS@%$CPPFLAGS%g
25470 s%@CXXFLAGS@%$CXXFLAGS%g
25471 s%@FFLAGS@%$FFLAGS%g
25473 s%@LDFLAGS@%$LDFLAGS%g
25475 s%@exec_prefix@%$exec_prefix%g
25476 s%@prefix@%$prefix%g
25477 s%@program_transform_name@%$program_transform_name%g
25478 s%@bindir@%$bindir%g
25479 s%@sbindir@%$sbindir%g
25480 s%@libexecdir@%$libexecdir%g
25481 s%@datadir@%$datadir%g
25482 s%@sysconfdir@%$sysconfdir%g
25483 s%@sharedstatedir@%$sharedstatedir%g
25484 s%@localstatedir@%$localstatedir%g
25485 s%@libdir@%$libdir%g
25486 s%@includedir@%$includedir%g
25487 s%@oldincludedir@%$oldincludedir%g
25488 s%@infodir@%$infodir%g
25489 s%@mandir@%$mandir%g
25491 s%@host_alias@%$host_alias%g
25492 s%@host_cpu@%$host_cpu%g
25493 s%@host_vendor@%$host_vendor%g
25494 s%@host_os@%$host_os%g
25495 s%@target@%$target%g
25496 s%@target_alias@%$target_alias%g
25497 s%@target_cpu@%$target_cpu%g
25498 s%@target_vendor@%$target_vendor%g
25499 s%@target_os@%$target_os%g
25501 s%@build_alias@%$build_alias%g
25502 s%@build_cpu@%$build_cpu%g
25503 s%@build_vendor@%$build_vendor%g
25504 s%@build_os@%$build_os%g
25505 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
25506 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
25507 s%@INSTALL_DATA@%$INSTALL_DATA%g
25508 s%@PACKAGE@%$PACKAGE%g
25509 s%@VERSION@%$VERSION%g
25510 s%@ACLOCAL@%$ACLOCAL%g
25511 s%@AUTOCONF@%$AUTOCONF%g
25512 s%@AUTOMAKE@%$AUTOMAKE%g
25513 s%@AUTOHEADER@%$AUTOHEADER%g
25514 s%@MAKEINFO@%$MAKEINFO%g
25515 s%@install_sh@%$install_sh%g
25518 s%@AMTARFLAGS@%$AMTARFLAGS%g
25519 s%@SET_MAKE@%$SET_MAKE%g
25520 s%@OPENLDAP_LIBRELEASE@%$OPENLDAP_LIBRELEASE%g
25521 s%@OPENLDAP_LIBVERSION@%$OPENLDAP_LIBVERSION%g
25522 s%@OPENLDAP_RELEASE_DATE@%$OPENLDAP_RELEASE_DATE%g
25523 s%@top_builddir@%$top_builddir%g
25524 s%@ldap_subdir@%$ldap_subdir%g
25528 s%@OBJEXT@%$OBJEXT%g
25529 s%@EXEEXT@%$EXEEXT%g
25531 s%@RANLIB@%$RANLIB%g
25533 s%@DLLTOOL@%$DLLTOOL%g
25535 s%@OBJDUMP@%$OBJDUMP%g
25537 s%@LIBTOOL@%$LIBTOOL%g
25538 s%@PERLBIN@%$PERLBIN%g
25539 s%@OL_MKDEP@%$OL_MKDEP%g
25540 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
25541 s%@LTSTATIC@%$LTSTATIC%g
25542 s%@LIBOBJS@%$LIBOBJS%g
25543 s%@LIBSRCS@%$LIBSRCS%g
25545 s%@WITH_SASL@%$WITH_SASL%g
25546 s%@WITH_TLS@%$WITH_TLS%g
25547 s%@WITH_MODULES_ENABLED@%$WITH_MODULES_ENABLED%g
25548 s%@BUILD_LIBS_DYNAMIC@%$BUILD_LIBS_DYNAMIC%g
25549 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
25550 s%@BUILD_SLAPI@%$BUILD_SLAPI%g
25551 s%@SLAPD_SLAPI_DEPEND@%$SLAPD_SLAPI_DEPEND%g
25552 s%@BUILD_BDB@%$BUILD_BDB%g
25553 s%@BUILD_DNSSRV@%$BUILD_DNSSRV%g
25554 s%@BUILD_HDB@%$BUILD_HDB%g
25555 s%@BUILD_LDAP@%$BUILD_LDAP%g
25556 s%@BUILD_LDBM@%$BUILD_LDBM%g
25557 s%@BUILD_META@%$BUILD_META%g
25558 s%@BUILD_MONITOR@%$BUILD_MONITOR%g
25559 s%@BUILD_NULL@%$BUILD_NULL%g
25560 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
25561 s%@BUILD_RELAY@%$BUILD_RELAY%g
25562 s%@BUILD_PERL@%$BUILD_PERL%g
25563 s%@BUILD_SHELL@%$BUILD_SHELL%g
25564 s%@BUILD_SQL@%$BUILD_SQL%g
25565 s%@BUILD_CHAIN@%$BUILD_CHAIN%g
25566 s%@BUILD_DENYOP@%$BUILD_DENYOP%g
25567 s%@BUILD_DYNGROUP@%$BUILD_DYNGROUP%g
25568 s%@BUILD_GLUE@%$BUILD_GLUE%g
25569 s%@BUILD_LASTMOD@%$BUILD_LASTMOD%g
25570 s%@BUILD_PPOLICY@%$BUILD_PPOLICY%g
25571 s%@BUILD_PROXYCACHE@%$BUILD_PROXYCACHE%g
25572 s%@BUILD_REFINT@%$BUILD_REFINT%g
25573 s%@BUILD_RWM@%$BUILD_RWM%g
25574 s%@BUILD_SYNCPROV@%$BUILD_SYNCPROV%g
25575 s%@BUILD_TRANSLUCENT@%$BUILD_TRANSLUCENT%g
25576 s%@BUILD_UNIQUE@%$BUILD_UNIQUE%g
25577 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
25578 s%@LDAP_LIBS@%$LDAP_LIBS%g
25579 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
25580 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
25581 s%@LDBM_LIBS@%$LDBM_LIBS%g
25582 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
25583 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
25584 s%@WRAP_LIBS@%$WRAP_LIBS%g
25585 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
25586 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
25587 s%@SLAPD_NO_STATIC@%$SLAPD_NO_STATIC%g
25588 s%@SLAPD_STATIC_BACKENDS@%$SLAPD_STATIC_BACKENDS%g
25589 s%@SLAPD_DYNAMIC_BACKENDS@%$SLAPD_DYNAMIC_BACKENDS%g
25590 s%@SLAPD_DYNAMIC_OVERLAYS@%$SLAPD_DYNAMIC_OVERLAYS%g
25591 s%@PERL_CPPFLAGS@%$PERL_CPPFLAGS%g
25592 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
25593 s%@MOD_PERL_LDFLAGS@%$MOD_PERL_LDFLAGS%g
25594 s%@KRB4_LIBS@%$KRB4_LIBS%g
25595 s%@KRB5_LIBS@%$KRB5_LIBS%g
25596 s%@SASL_LIBS@%$SASL_LIBS%g
25597 s%@TLS_LIBS@%$TLS_LIBS%g
25598 s%@MODULES_LIBS@%$MODULES_LIBS%g
25599 s%@SLAPI_LIBS@%$SLAPI_LIBS%g
25600 s%@LIBSLAPI@%$LIBSLAPI%g
25601 s%@LIBSLAPITOOLS@%$LIBSLAPITOOLS%g
25602 s%@AUTH_LIBS@%$AUTH_LIBS%g
25603 s%@SLAPD_SLP_LIBS@%$SLAPD_SLP_LIBS%g
25604 s%@SLAPD_GMP_LIBS@%$SLAPD_GMP_LIBS%g
25605 s%@SLAPD_SQL_LDFLAGS@%$SLAPD_SQL_LDFLAGS%g
25606 s%@SLAPD_SQL_LIBS@%$SLAPD_SQL_LIBS%g
25607 s%@SLAPD_SQL_INCLUDES@%$SLAPD_SQL_INCLUDES%g
25612 cat >> $CONFIG_STATUS <<\EOF
25614 # Split the substitutions into bite-sized pieces for seds with
25615 # small command number limits, like on Digital OSF/1 and HP-UX.
25616 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
25617 ac_file=1 # Number of current file.
25618 ac_beg=1 # First line for current file.
25619 ac_end=$ac_max_sed_cmds # Line after last line for current file.
25622 while $ac_more_lines; do
25623 if test $ac_beg -gt 1; then
25624 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
25626 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
25628 if test ! -s conftest.s$ac_file; then
25629 ac_more_lines=false
25630 rm -f conftest.s$ac_file
25632 if test -z "$ac_sed_cmds"; then
25633 ac_sed_cmds="sed -f conftest.s$ac_file"
25635 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
25637 ac_file=`expr $ac_file + 1`
25639 ac_end=`expr $ac_end + $ac_max_sed_cmds`
25642 if test -z "$ac_sed_cmds"; then
25647 cat >> $CONFIG_STATUS <<EOF
25649 CONFIG_FILES=\${CONFIG_FILES-"\
25650 Makefile:build/top.mk:Makefile.in:build/dir.mk \
25651 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
25652 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
25653 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
25654 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
25655 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
25656 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
25657 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
25658 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
25659 include/Makefile:build/top.mk:include/Makefile.in \
25660 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
25661 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
25662 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
25663 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
25664 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
25665 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
25666 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
25667 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
25668 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
25669 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
25670 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
25671 servers/slapd/back-hdb/Makefile:build/top.mk:servers/slapd/back-hdb/Makefile.in:build/mod.mk \
25672 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
25673 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
25674 servers/slapd/back-ldif/Makefile:build/top.mk:servers/slapd/back-ldif/Makefile.in:build/mod.mk \
25675 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
25676 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
25677 servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk \
25678 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
25679 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
25680 servers/slapd/back-relay/Makefile:build/top.mk:servers/slapd/back-relay/Makefile.in:build/mod.mk \
25681 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
25682 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
25683 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
25684 servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk \
25685 servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk \
25686 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
25687 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
25689 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
25692 cat >> $CONFIG_STATUS <<\EOF
25693 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
25694 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25696 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
25697 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
25698 *) ac_file_in="${ac_file}.in" ;;
25701 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
25703 # Remove last slash and all that follows it. Not all systems have dirname.
25704 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
25705 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
25706 # The file is in a subdirectory.
25707 test ! -d "$ac_dir" && mkdir "$ac_dir"
25708 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
25709 # A "../" for each directory in $ac_dir_suffix.
25710 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
25712 ac_dir_suffix= ac_dots=
25715 case "$ac_given_srcdir" in
25717 if test -z "$ac_dots"; then top_srcdir=.
25718 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
25719 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
25720 *) # Relative path.
25721 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
25722 top_srcdir="$ac_dots$ac_given_srcdir" ;;
25725 case "$ac_given_INSTALL" in
25726 [/$]*) INSTALL="$ac_given_INSTALL" ;;
25727 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
25730 echo creating "$ac_file"
25732 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
25734 *[Mm]akefile*) ac_comsub="1i\\
25735 # $configure_input" ;;
25739 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
25741 s%@configure_input@%$configure_input%g
25742 s%@srcdir@%$srcdir%g
25743 s%@top_srcdir@%$top_srcdir%g
25744 s%@INSTALL@%$INSTALL%g
25745 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
25749 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
25750 # NAME is the cpp macro being defined and VALUE is the value it is being given.
25752 # ac_d sets the value in "#define NAME VALUE" lines.
25753 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
25754 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
25757 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
25758 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
25759 ac_uB='\([ ]\)%\1#\2define\3'
25762 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
25763 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
25764 ac_eB='$%\1#\2define\3'
25768 if test "${CONFIG_HEADERS+set}" != set; then
25770 cat >> $CONFIG_STATUS <<EOF
25771 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
25773 cat >> $CONFIG_STATUS <<\EOF
25775 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
25776 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25778 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
25779 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
25780 *) ac_file_in="${ac_file}.in" ;;
25783 echo creating $ac_file
25785 rm -f conftest.frag conftest.in conftest.out
25786 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
25787 cat $ac_file_inputs > conftest.in
25791 # Transform confdefs.h into a sed script conftest.vals that substitutes
25792 # the proper values into config.h.in to produce config.h. And first:
25793 # Protect against being on the right side of a sed subst in config.status.
25794 # Protect against being in an unquoted here document in config.status.
25795 rm -f conftest.vals
25796 cat > conftest.hdr <<\EOF
25799 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
25803 sed -n -f conftest.hdr confdefs.h > conftest.vals
25806 # This sed command replaces #undef with comments. This is necessary, for
25807 # example, in the case of _POSIX_SOURCE, which is predefined and required
25808 # on some systems where configure will not decide to define it.
25809 cat >> conftest.vals <<\EOF
25810 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
25813 # Break up conftest.vals because some shells have a limit on
25814 # the size of here documents, and old seds have small limits too.
25816 rm -f conftest.tail
25819 ac_lines=`grep -c . conftest.vals`
25820 # grep -c gives empty output for an empty file on some AIX systems.
25821 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
25822 # Write a limited-size here document to conftest.frag.
25823 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
25824 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
25826 sed -f conftest.frag conftest.in > conftest.out
25828 mv conftest.out conftest.in
25829 ' >> $CONFIG_STATUS
25830 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
25831 rm -f conftest.vals
25832 mv conftest.tail conftest.vals
25834 rm -f conftest.vals
25836 cat >> $CONFIG_STATUS <<\EOF
25837 rm -f conftest.frag conftest.h
25838 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
25839 cat conftest.in >> conftest.h
25841 if cmp -s $ac_file conftest.h 2>/dev/null; then
25842 echo "$ac_file is unchanged"
25845 # Remove last slash and all that follows it. Not all systems have dirname.
25846 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
25847 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
25848 # The file is in a subdirectory.
25849 test ! -d "$ac_dir" && mkdir "$ac_dir"
25852 mv conftest.h $ac_file
25857 cat >> $CONFIG_STATUS <<EOF
25858 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
25860 cat >> $CONFIG_STATUS <<\EOF
25864 BACKENDSC="servers/slapd/backends.c"
25865 echo "Making $BACKENDSC"
25867 cat > $BACKENDSC << ENDX
25868 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
25870 * Copyright 1998-2005 The OpenLDAP Foundation.
25871 * All rights reserved.
25873 * Redistribution and use in source and binary forms, with or without
25874 * modification, are permitted only as authorized by the OpenLDAP
25877 * A copy of this license is available in the file LICENSE in the
25878 * top-level directory of the distribution or, alternatively, at
25879 * <http://www.OpenLDAP.org/license.html>.
25881 /* This file is automatically generated by configure; please do not edit. */
25883 #include "portable.h"
25887 if test "${STATIC_BACKENDS}"; then
25888 for b in config ${STATIC_BACKENDS}; do
25889 bb=`echo "${b}" | sed -e 's/back-//'`
25890 cat >> $BACKENDSC << ENDX
25891 extern BI_init ${bb}_back_initialize;
25895 cat >> $BACKENDSC << ENDX
25897 BackendInfo slap_binfo[] = {
25900 for b in config ${STATIC_BACKENDS}; do
25901 bb=`echo "${b}" | sed -e 's/back-//'`
25902 echo " Add ${bb} ..."
25903 cat >> $BACKENDSC << ENDX
25904 { "${bb}", ${bb}_back_initialize },
25908 cat >> $BACKENDSC << ENDX
25912 /* end of generated file */
25916 echo Please run \"make depend\" to build dependencies
25920 chmod +x $CONFIG_STATUS
25921 rm -fr confdefs* $ac_clean_files
25922 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1