3 # from OpenLDAP: pkg/ldap/configure.in,v 1.561 2005/01/01 19:49:37 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 [no]"
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-chain LDAP Chain Response no|yes|mod [no]"
131 --enable-denyop Deny Operation overlay no|yes|mod [no]"
133 --enable-dyngroup Dynamic Group overlay no|yes|mod [no]"
135 --enable-glue Backend Glue overlay no|yes|mod [yes]"
137 --enable-lastmod Last Modification overlay no|yes|mod [no]"
139 --enable-ppolicy Password Policy overlay no|yes|mod [no]"
141 --enable-proxycache Proxy Cache overlay no|yes|mod [no]"
143 --enable-refint Referential Integrity overlay no|yes|mod [no]"
145 --enable-rwm Rewrite/Remap overlay no|yes|mod [no]"
147 --enable-syncprov Syncrepl Provider overlay no|yes|mod [yes]"
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="chain denyop dyngroup glue lastmod ppolicy proxycache rwm \
2243 refint syncprov 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-chain
2273 # Check whether --enable-chain or --disable-chain was given.
2274 if test "${enable_chain+set}" = set; then
2275 enableval="$enable_chain"
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-chain" 1>&2; exit 1; }
2286 ol_enable_chain="$ol_arg"
2289 ol_enable_chain="no"
2291 # end --enable-chain
2293 # OpenLDAP --enable-denyop
2294 # Check whether --enable-denyop or --disable-denyop was given.
2295 if test "${enable_denyop+set}" = set; then
2296 enableval="$enable_denyop"
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-denyop" 1>&2; exit 1; }
2307 ol_enable_denyop="$ol_arg"
2310 ol_enable_denyop="no"
2312 # end --enable-denyop
2314 # OpenLDAP --enable-dyngroup
2315 # Check whether --enable-dyngroup or --disable-dyngroup was given.
2316 if test "${enable_dyngroup+set}" = set; then
2317 enableval="$enable_dyngroup"
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-dyngroup" 1>&2; exit 1; }
2328 ol_enable_dyngroup="$ol_arg"
2331 ol_enable_dyngroup="no"
2333 # end --enable-dyngroup
2335 # OpenLDAP --enable-glue
2336 # Check whether --enable-glue or --disable-glue was given.
2337 if test "${enable_glue+set}" = set; then
2338 enableval="$enable_glue"
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-glue" 1>&2; exit 1; }
2349 ol_enable_glue="$ol_arg"
2352 ol_enable_glue="yes"
2356 # OpenLDAP --enable-lastmod
2357 # Check whether --enable-lastmod or --disable-lastmod was given.
2358 if test "${enable_lastmod+set}" = set; then
2359 enableval="$enable_lastmod"
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-lastmod" 1>&2; exit 1; }
2370 ol_enable_lastmod="$ol_arg"
2373 ol_enable_lastmod="no"
2375 # end --enable-lastmod
2377 # OpenLDAP --enable-ppolicy
2378 # Check whether --enable-ppolicy or --disable-ppolicy was given.
2379 if test "${enable_ppolicy+set}" = set; then
2380 enableval="$enable_ppolicy"
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-ppolicy" 1>&2; exit 1; }
2391 ol_enable_ppolicy="$ol_arg"
2394 ol_enable_ppolicy="no"
2396 # end --enable-ppolicy
2398 # OpenLDAP --enable-proxycache
2399 # Check whether --enable-proxycache or --disable-proxycache was given.
2400 if test "${enable_proxycache+set}" = set; then
2401 enableval="$enable_proxycache"
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-proxycache" 1>&2; exit 1; }
2412 ol_enable_proxycache="$ol_arg"
2415 ol_enable_proxycache="no"
2417 # end --enable-proxycache
2419 # OpenLDAP --enable-refint
2420 # Check whether --enable-refint or --disable-refint was given.
2421 if test "${enable_refint+set}" = set; then
2422 enableval="$enable_refint"
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-refint" 1>&2; exit 1; }
2433 ol_enable_refint="$ol_arg"
2436 ol_enable_refint="no"
2438 # end --enable-refint
2440 # OpenLDAP --enable-rwm
2441 # Check whether --enable-rwm or --disable-rwm was given.
2442 if test "${enable_rwm+set}" = set; then
2443 enableval="$enable_rwm"
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-rwm" 1>&2; exit 1; }
2454 ol_enable_rwm="$ol_arg"
2461 # OpenLDAP --enable-syncprov
2462 # Check whether --enable-syncprov or --disable-syncprov was given.
2463 if test "${enable_syncprov+set}" = set; then
2464 enableval="$enable_syncprov"
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-syncprov" 1>&2; exit 1; }
2475 ol_enable_syncprov="$ol_arg"
2478 ol_enable_syncprov="yes"
2480 # end --enable-syncprov
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_chain != no -a $ol_enable_ldap = no ; then
2740 { echo "configure: error: --enable-chain requires --enable-ldap" 1>&2; exit 1; }
2743 if test $ol_enable_meta = yes -a $ol_enable_ldap = no ; then
2744 { echo "configure: error: --enable-meta requires --enable-ldap" 1>&2; exit 1; }
2747 if test $ol_enable_slurpd = yes ; then
2748 if test $ol_with_threads = no ; then
2749 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2753 if test $ol_enable_lmpasswd = yes ; then
2754 if test $ol_with_tls = no ; then
2755 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
2759 if test $ol_enable_kbind = yes ; then
2760 if test $ol_with_kerberos = no ; then
2761 { echo "configure: error: options require --with-kerberos" 1>&2; exit 1; }
2762 elif test $ol_with_kerberos = auto ; then
2763 ol_with_kerberos=yes
2766 elif test $ol_enable_kbind = no ; then
2767 if test $ol_with_kerberos = auto ; then
2769 elif test $ol_with_kerberos != no ; then
2770 echo "configure: warning: Kerberos detection enabled unnecessarily" 1>&2;
2775 if test $ol_enable_spasswd = yes ; then
2776 if test $ol_with_cyrus_sasl = no ; then
2777 { echo "configure: error: options require --with-cyrus-sasl" 1>&2; exit 1; }
2779 ol_with_cyrus_sasl=yes
2782 echo "$ac_t""done" 1>&6
2826 SLAPD_DYNAMIC_OVERLAYS=
2828 SLAPD_MODULES_LDFLAGS=
2829 SLAPD_MODULES_CPPFLAGS=
2831 SLAPD_STATIC_BACKENDS=
2832 SLAPD_DYNAMIC_BACKENDS=
2856 cat >> confdefs.h <<\EOF
2857 #define HAVE_MKVERSION 1
2865 *-*-aix*) if test -z "$CC" ; then
2866 case "$ol_with_threads" in
2867 auto | yes | posix) ol_aix_threads=yes ;;
2873 if test $ol_aix_threads = yes ; then
2874 if test -z "${CC}" ; then
2875 for ac_prog in cc_r xlc_r cc
2877 # Extract the first word of "$ac_prog", so it can be a program name with args.
2878 set dummy $ac_prog; ac_word=$2
2879 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2880 echo "configure:2881: checking for $ac_word" >&5
2881 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2882 echo $ac_n "(cached) $ac_c" 1>&6
2884 if test -n "$CC"; then
2885 ac_cv_prog_CC="$CC" # Let the user override the test.
2887 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2889 for ac_dir in $ac_dummy; do
2890 test -z "$ac_dir" && ac_dir=.
2891 if test -f $ac_dir/$ac_word; then
2892 ac_cv_prog_CC="$ac_prog"
2900 if test -n "$CC"; then
2901 echo "$ac_t""$CC" 1>&6
2903 echo "$ac_t""no" 1>&6
2906 test -n "$CC" && break
2910 if test "$CC" = cc ; then
2911 if test $ol_with_threads != auto ; then
2912 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
2914 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
2920 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
2921 ol_with_threads=posix
2922 ol_cv_pthread_create=yes
2926 if test -z "${CC}"; then
2927 for ac_prog in cc gcc
2929 # Extract the first word of "$ac_prog", so it can be a program name with args.
2930 set dummy $ac_prog; ac_word=$2
2931 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2932 echo "configure:2933: checking for $ac_word" >&5
2933 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2934 echo $ac_n "(cached) $ac_c" 1>&6
2936 if test -n "$CC"; then
2937 ac_cv_prog_CC="$CC" # Let the user override the test.
2939 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2941 for ac_dir in $ac_dummy; do
2942 test -z "$ac_dir" && ac_dir=.
2943 if test -f $ac_dir/$ac_word; then
2944 ac_cv_prog_CC="$ac_prog"
2952 if test -n "$CC"; then
2953 echo "$ac_t""$CC" 1>&6
2955 echo "$ac_t""no" 1>&6
2958 test -n "$CC" && break
2960 test -n "$CC" || CC="missing"
2963 if test "${CC}" = "missing" ; then
2964 { echo "configure: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." 1>&2; exit 1; }
2968 if test -z "${AR}"; then
2969 for ac_prog in ar gar
2971 # Extract the first word of "$ac_prog", so it can be a program name with args.
2972 set dummy $ac_prog; ac_word=$2
2973 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2974 echo "configure:2975: checking for $ac_word" >&5
2975 if eval "test \"\${ac_cv_prog_AR+set}\" = set"; then
2976 echo $ac_n "(cached) $ac_c" 1>&6
2978 if test -n "$AR"; then
2979 ac_cv_prog_AR="$AR" # Let the user override the test.
2981 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2983 for ac_dir in $ac_dummy; do
2984 test -z "$ac_dir" && ac_dir=.
2985 if test -f $ac_dir/$ac_word; then
2986 ac_cv_prog_AR="$ac_prog"
2994 if test -n "$AR"; then
2995 echo "$ac_t""$AR" 1>&6
2997 echo "$ac_t""no" 1>&6
3000 test -n "$AR" && break
3002 test -n "$AR" || AR="missing"
3005 if test "${AR}" = "missing" ; then
3006 { echo "configure: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." 1>&2; exit 1; }
3012 # Find the correct PATH separator. Usually this is `:', but
3013 # DJGPP uses `;' like DOS.
3014 if test "X${PATH_SEPARATOR+set}" != Xset; then
3015 UNAME=${UNAME-`uname 2>/dev/null`}
3017 *-DOS) lt_cv_sys_path_separator=';' ;;
3018 *) lt_cv_sys_path_separator=':' ;;
3020 PATH_SEPARATOR=$lt_cv_sys_path_separator
3023 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3024 echo "configure:3025: checking for Cygwin environment" >&5
3025 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
3026 echo $ac_n "(cached) $ac_c" 1>&6
3028 cat > conftest.$ac_ext <<EOF
3029 #line 3030 "configure"
3030 #include "confdefs.h"
3035 #define __CYGWIN__ __CYGWIN32__
3040 if { (eval echo configure:3041: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3044 echo "configure: failed program was:" >&5
3045 cat conftest.$ac_ext >&5
3052 echo "$ac_t""$ac_cv_cygwin" 1>&6
3054 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3055 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3056 echo "configure:3057: checking for mingw32 environment" >&5
3057 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
3058 echo $ac_n "(cached) $ac_c" 1>&6
3060 cat > conftest.$ac_ext <<EOF
3061 #line 3062 "configure"
3062 #include "confdefs.h"
3068 if { (eval echo configure:3069: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3072 echo "configure: failed program was:" >&5
3073 cat conftest.$ac_ext >&5
3080 echo "$ac_t""$ac_cv_mingw32" 1>&6
3082 test "$ac_cv_mingw32" = yes && MINGW32=yes
3083 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
3084 echo "configure:3085: checking for EMX OS/2 environment" >&5
3085 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
3086 echo $ac_n "(cached) $ac_c" 1>&6
3088 cat > conftest.$ac_ext <<EOF
3089 #line 3090 "configure"
3090 #include "confdefs.h"
3096 if { (eval echo configure:3097: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3100 echo "configure: failed program was:" >&5
3101 cat conftest.$ac_ext >&5
3108 echo "$ac_t""$ac_cv_emxos2" 1>&6
3110 test "$ac_cv_emxos2" = yes && EMXOS2=yes
3111 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3112 echo "configure:3113: checking how to run the C preprocessor" >&5
3113 # On Suns, sometimes $CPP names a directory.
3114 if test -n "$CPP" && test -d "$CPP"; then
3117 if test -z "$CPP"; then
3118 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
3119 echo $ac_n "(cached) $ac_c" 1>&6
3121 # This must be in double quotes, not single quotes, because CPP may get
3122 # substituted into the Makefile and "${CC-cc}" will confuse make.
3124 # On the NeXT, cc -E runs the code through the compiler's parser,
3125 # not just through cpp.
3126 cat > conftest.$ac_ext <<EOF
3127 #line 3128 "configure"
3128 #include "confdefs.h"
3132 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3133 { (eval echo configure:3134: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3134 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3135 if test -z "$ac_err"; then
3139 echo "configure: failed program was:" >&5
3140 cat conftest.$ac_ext >&5
3142 CPP="${CC-cc} -E -traditional-cpp"
3143 cat > conftest.$ac_ext <<EOF
3144 #line 3145 "configure"
3145 #include "confdefs.h"
3149 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3150 { (eval echo configure:3151: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3151 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3152 if test -z "$ac_err"; then
3156 echo "configure: failed program was:" >&5
3157 cat conftest.$ac_ext >&5
3159 CPP="${CC-cc} -nologo -E"
3160 cat > conftest.$ac_ext <<EOF
3161 #line 3162 "configure"
3162 #include "confdefs.h"
3166 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3167 { (eval echo configure:3168: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3168 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3169 if test -z "$ac_err"; then
3173 echo "configure: failed program was:" >&5
3174 cat conftest.$ac_ext >&5
3183 ac_cv_prog_CPP="$CPP"
3185 CPP="$ac_cv_prog_CPP"
3187 ac_cv_prog_CPP="$CPP"
3189 echo "$ac_t""$CPP" 1>&6
3191 # Check whether --enable-fast-install or --disable-fast-install was given.
3192 if test "${enable_fast_install+set}" = set; then
3193 enableval="$enable_fast_install"
3194 p=${PACKAGE-default}
3196 yes) enable_fast_install=yes ;;
3197 no) enable_fast_install=no ;;
3199 enable_fast_install=no
3200 # Look at the argument we got. We use all the common list separators.
3201 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3202 for pkg in $enableval; do
3203 if test "X$pkg" = "X$p"; then
3204 enable_fast_install=yes
3211 enable_fast_install=yes
3214 # Extract the first word of "gcc", so it can be a program name with args.
3215 set dummy gcc; ac_word=$2
3216 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3217 echo "configure:3218: checking for $ac_word" >&5
3218 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3219 echo $ac_n "(cached) $ac_c" 1>&6
3221 if test -n "$CC"; then
3222 ac_cv_prog_CC="$CC" # Let the user override the test.
3224 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3226 for ac_dir in $ac_dummy; do
3227 test -z "$ac_dir" && ac_dir=.
3228 if test -f $ac_dir/$ac_word; then
3237 if test -n "$CC"; then
3238 echo "$ac_t""$CC" 1>&6
3240 echo "$ac_t""no" 1>&6
3243 if test -z "$CC"; then
3244 # Extract the first word of "cc", so it can be a program name with args.
3245 set dummy cc; ac_word=$2
3246 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3247 echo "configure:3248: checking for $ac_word" >&5
3248 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3249 echo $ac_n "(cached) $ac_c" 1>&6
3251 if test -n "$CC"; then
3252 ac_cv_prog_CC="$CC" # Let the user override the test.
3254 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3257 for ac_dir in $ac_dummy; do
3258 test -z "$ac_dir" && ac_dir=.
3259 if test -f $ac_dir/$ac_word; then
3260 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
3261 ac_prog_rejected=yes
3269 if test $ac_prog_rejected = yes; then
3270 # We found a bogon in the path, so make sure we never use it.
3271 set dummy $ac_cv_prog_CC
3273 if test $# -gt 0; then
3274 # We chose a different compiler from the bogus one.
3275 # However, it has the same basename, so the bogon will be chosen
3276 # first if we set CC to just the basename; use the full file name.
3278 set dummy "$ac_dir/$ac_word" "$@"
3286 if test -n "$CC"; then
3287 echo "$ac_t""$CC" 1>&6
3289 echo "$ac_t""no" 1>&6
3292 if test -z "$CC"; then
3293 case "`uname -s`" in
3294 *win32* | *WIN32* | *CYGWIN*)
3295 # Extract the first word of "cl", so it can be a program name with args.
3296 set dummy cl; ac_word=$2
3297 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3298 echo "configure:3299: checking for $ac_word" >&5
3299 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3300 echo $ac_n "(cached) $ac_c" 1>&6
3302 if test -n "$CC"; then
3303 ac_cv_prog_CC="$CC" # Let the user override the test.
3305 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3307 for ac_dir in $ac_dummy; do
3308 test -z "$ac_dir" && ac_dir=.
3309 if test -f $ac_dir/$ac_word; then
3318 if test -n "$CC"; then
3319 echo "$ac_t""$CC" 1>&6
3321 echo "$ac_t""no" 1>&6
3326 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
3329 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
3330 echo "configure:3331: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
3333 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3334 ac_cpp='$CPP $CPPFLAGS'
3335 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3336 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3337 cross_compiling=$ac_cv_prog_cc_cross
3339 cat > conftest.$ac_ext << EOF
3341 #line 3342 "configure"
3342 #include "confdefs.h"
3346 if { (eval echo configure:3347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3347 ac_cv_prog_cc_works=yes
3348 # If we can't run a trivial program, we are probably using a cross compiler.
3349 if (./conftest; exit) 2>/dev/null; then
3350 ac_cv_prog_cc_cross=no
3352 ac_cv_prog_cc_cross=yes
3355 echo "configure: failed program was:" >&5
3356 cat conftest.$ac_ext >&5
3357 ac_cv_prog_cc_works=no
3361 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3362 ac_cpp='$CPP $CPPFLAGS'
3363 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3364 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3365 cross_compiling=$ac_cv_prog_cc_cross
3367 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
3368 if test $ac_cv_prog_cc_works = no; then
3369 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
3371 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
3372 echo "configure:3373: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
3373 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
3374 cross_compiling=$ac_cv_prog_cc_cross
3376 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
3377 echo "configure:3378: checking whether we are using GNU C" >&5
3378 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
3379 echo $ac_n "(cached) $ac_c" 1>&6
3381 cat > conftest.c <<EOF
3386 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:3387: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
3393 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
3395 if test $ac_cv_prog_gcc = yes; then
3401 ac_test_CFLAGS="${CFLAGS+set}"
3402 ac_save_CFLAGS="$CFLAGS"
3404 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
3405 echo "configure:3406: checking whether ${CC-cc} accepts -g" >&5
3406 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
3407 echo $ac_n "(cached) $ac_c" 1>&6
3409 echo 'void f(){}' > conftest.c
3410 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
3419 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
3420 if test "$ac_test_CFLAGS" = set; then
3421 CFLAGS="$ac_save_CFLAGS"
3422 elif test $ac_cv_prog_cc_g = yes; then
3423 if test "$GCC" = yes; then
3429 if test "$GCC" = yes; then
3436 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3437 if test "${with_gnu_ld+set}" = set; then
3438 withval="$with_gnu_ld"
3439 test "$withval" = no || with_gnu_ld=yes
3445 if test "$GCC" = yes; then
3446 # Check if gcc -print-prog-name=ld gives a path.
3447 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
3448 echo "configure:3449: checking for ld used by GCC" >&5
3451 # gcc leaves a trailing carriage return which upsets mingw
3452 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3454 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3457 # Accept absolute paths.
3458 [\\/]* | [A-Za-z]:[\\/]*)
3459 re_direlt='/[^/][^/]*/\.\./'
3460 # Canonicalize the path of ld
3461 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3462 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3463 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3465 test -z "$LD" && LD="$ac_prog"
3468 # If it fails, then pretend we aren't using GCC.
3472 # If it is relative, then search for the first ld in PATH.
3476 elif test "$with_gnu_ld" = yes; then
3477 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
3478 echo "configure:3479: checking for GNU ld" >&5
3480 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
3481 echo "configure:3482: checking for non-GNU ld" >&5
3483 if eval "test \"\${lt_cv_path_LD+set}\" = set"; then
3484 echo $ac_n "(cached) $ac_c" 1>&6
3486 if test -z "$LD"; then
3487 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3488 for ac_dir in $PATH; do
3489 test -z "$ac_dir" && ac_dir=.
3490 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3491 lt_cv_path_LD="$ac_dir/$ac_prog"
3492 # Check to see if the program is GNU ld. I'd rather use --version,
3493 # but apparently some GNU ld's only accept -v.
3494 # Break only if it was the GNU/non-GNU ld that we prefer.
3495 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3496 test "$with_gnu_ld" != no && break
3498 test "$with_gnu_ld" != yes && break
3504 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3509 if test -n "$LD"; then
3510 echo "$ac_t""$LD" 1>&6
3512 echo "$ac_t""no" 1>&6
3514 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
3515 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
3516 echo "configure:3517: checking if the linker ($LD) is GNU ld" >&5
3517 if eval "test \"\${lt_cv_prog_gnu_ld+set}\" = set"; then
3518 echo $ac_n "(cached) $ac_c" 1>&6
3520 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3521 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3522 lt_cv_prog_gnu_ld=yes
3524 lt_cv_prog_gnu_ld=no
3528 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
3529 with_gnu_ld=$lt_cv_prog_gnu_ld
3532 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
3533 echo "configure:3534: checking for $LD option to reload object files" >&5
3534 if eval "test \"\${lt_cv_ld_reload_flag+set}\" = set"; then
3535 echo $ac_n "(cached) $ac_c" 1>&6
3537 lt_cv_ld_reload_flag='-r'
3540 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
3541 reload_flag=$lt_cv_ld_reload_flag
3542 test -n "$reload_flag" && reload_flag=" $reload_flag"
3544 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
3545 echo "configure:3546: checking for BSD-compatible nm" >&5
3546 if eval "test \"\${lt_cv_path_NM+set}\" = set"; then
3547 echo $ac_n "(cached) $ac_c" 1>&6
3549 if test -n "$NM"; then
3550 # Let the user override the test.
3553 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3554 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3555 test -z "$ac_dir" && ac_dir=.
3556 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3557 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3558 # Check to see if the nm accepts a BSD-compat flag.
3559 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3560 # nm: unknown option "B" ignored
3561 # Tru64's nm complains that /dev/null is an invalid object file
3562 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3563 lt_cv_path_NM="$tmp_nm -B"
3565 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3566 lt_cv_path_NM="$tmp_nm -p"
3569 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3570 continue # so that we can try to find one that supports BSD flags
3575 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3580 echo "$ac_t""$NM" 1>&6
3582 echo $ac_n "checking for a sed that does not truncate output""... $ac_c" 1>&6
3583 echo "configure:3584: checking for a sed that does not truncate output" >&5
3584 if eval "test \"\${lt_cv_path_SED+set}\" = set"; then
3585 echo $ac_n "(cached) $ac_c" 1>&6
3587 # Loop through the user's path and test for sed and gsed.
3588 # Then use that list of sed's as ones to test for truncation.
3589 as_executable_p="test -f"
3590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3594 test -z "$as_dir" && as_dir=.
3595 for ac_prog in sed gsed; do
3596 for ac_exec_ext in '' $ac_executable_extensions; do
3597 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3598 _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3604 # Create a temporary directory, and hook for its removal unless debugging.
3607 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3608 trap '{ (exit 1); exit 1; }' 1 2 13 15
3611 # Create a (secure) tmp directory for tmp files.
3614 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3615 test -n "$tmp" && test -d "$tmp"
3618 tmp=$TMPDIR/sed$$-$RANDOM
3619 (umask 077 && mkdir $tmp)
3622 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3623 { (exit 1); exit 1; }
3627 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3628 # along with /bin/sed that truncates output.
3629 for _sed in $_sed_list /usr/xpg4/bin/sed; do
3630 test ! -f ${_sed} && break
3631 cat /dev/null > "$tmp/sed.in"
3633 echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
3634 # Check for GNU sed and select it if it is found.
3635 if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
3636 lt_cv_path_SED=${_sed}
3640 cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3641 mv "$tmp/sed.tmp" "$tmp/sed.in"
3642 cp "$tmp/sed.in" "$tmp/sed.nl"
3643 echo >>"$tmp/sed.nl"
3644 ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
3645 cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
3646 # 40000 chars as input seems more than enough
3647 test $_count -gt 10 && break
3648 _count=`expr $_count + 1`
3649 if test $_count -gt $_max; then
3651 lt_cv_path_SED=$_sed
3659 if test "X$SED" != "X"; then
3664 echo "$ac_t""$SED" 1>&6
3666 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3667 echo "configure:3668: checking whether ln -s works" >&5
3668 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3669 echo $ac_n "(cached) $ac_c" 1>&6
3672 if ln -s X conftestdata 2>/dev/null
3675 ac_cv_prog_LN_S="ln -s"
3680 LN_S="$ac_cv_prog_LN_S"
3681 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3682 echo "$ac_t""yes" 1>&6
3684 echo "$ac_t""no" 1>&6
3687 echo $ac_n "checking how to recognise dependent libraries""... $ac_c" 1>&6
3688 echo "configure:3689: checking how to recognise dependent libraries" >&5
3689 if eval "test \"\${lt_cv_deplibs_check_method+set}\" = set"; then
3690 echo $ac_n "(cached) $ac_c" 1>&6
3692 lt_cv_file_magic_cmd='$MAGIC_CMD'
3693 lt_cv_file_magic_test_file=
3694 lt_cv_deplibs_check_method='unknown'
3695 # Need to set the preceding variable on all platforms that support
3696 # interlibrary dependencies.
3697 # 'none' -- dependencies not supported.
3698 # `unknown' -- same as none, but documents that we really don't know.
3699 # 'pass_all' -- all dependencies passed with no checks.
3700 # 'test_compile' -- check by making test program.
3701 # 'file_magic [[regex]]' -- check by looking for files in library path
3702 # which responds to the $file_magic_cmd with a given egrep regex.
3703 # If you have `file' or equivalent on your system and you're not sure
3704 # whether `pass_all' will *always* work, you probably want this one.
3708 lt_cv_deplibs_check_method=pass_all
3712 lt_cv_deplibs_check_method=pass_all
3716 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3717 lt_cv_file_magic_cmd='/usr/bin/file -L'
3718 lt_cv_file_magic_test_file=/shlib/libc.so
3721 cygwin* | mingw* | pw32*)
3722 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3723 lt_cv_file_magic_cmd='$OBJDUMP -f'
3726 darwin* | rhapsody*)
3727 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3728 lt_cv_file_magic_cmd='/usr/bin/file -L'
3730 rhapsody* | darwin1.[012])
3731 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3734 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3740 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3743 # Not sure whether the presence of OpenBSD here was a mistake.
3744 # Let's accept both of them until this is cleared up.
3745 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3746 lt_cv_file_magic_cmd=/usr/bin/file
3747 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3751 lt_cv_deplibs_check_method=pass_all
3756 lt_cv_deplibs_check_method=pass_all
3760 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3761 lt_cv_file_magic_cmd=/usr/bin/file
3762 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3765 irix5* | irix6* | nonstopux*)
3767 irix5* | nonstopux*)
3768 # this will be overridden with pass_all, but let us keep it just in case
3769 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3773 *-32|*"-32 ") libmagic=32-bit;;
3774 *-n32|*"-n32 ") libmagic=N32;;
3775 *-64|*"-64 ") libmagic=64-bit;;
3776 *) libmagic=never-match;;
3778 # this will be overridden with pass_all, but let us keep it just in case
3779 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3782 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3783 lt_cv_deplibs_check_method=pass_all
3786 # This must be Linux ELF.
3789 alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64*)
3790 lt_cv_deplibs_check_method=pass_all ;;
3792 # glibc up to 2.1.1 does not perform some relocations on ARM
3793 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3795 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3799 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3800 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3802 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3807 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3808 lt_cv_file_magic_cmd=/usr/bin/file
3809 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3813 lt_cv_file_magic_cmd=/usr/bin/file
3814 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3815 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3816 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3818 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3823 lt_cv_deplibs_check_method=pass_all
3826 osf3* | osf4* | osf5*)
3827 # this will be overridden with pass_all, but let us keep it just in case
3828 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3829 lt_cv_file_magic_test_file=/shlib/libc.so
3830 lt_cv_deplibs_check_method=pass_all
3834 lt_cv_deplibs_check_method=pass_all
3838 lt_cv_deplibs_check_method=pass_all
3839 lt_cv_file_magic_test_file=/lib/libc.so
3842 sysv5uw[78]* | sysv4*uw2*)
3843 lt_cv_deplibs_check_method=pass_all
3846 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3847 case $host_vendor in
3849 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]'
3850 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3853 lt_cv_deplibs_check_method=pass_all
3856 lt_cv_file_magic_cmd='/bin/file'
3857 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3860 lt_cv_file_magic_cmd='/bin/file'
3861 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3862 lt_cv_file_magic_test_file=/lib/libc.so
3865 lt_cv_deplibs_check_method=pass_all
3873 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
3874 file_magic_cmd=$lt_cv_file_magic_cmd
3875 deplibs_check_method=$lt_cv_deplibs_check_method
3877 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
3878 echo "configure:3879: checking for object suffix" >&5
3879 if eval "test \"\${ac_cv_objext+set}\" = set"; then
3880 echo $ac_n "(cached) $ac_c" 1>&6
3883 echo 'int i = 1;' > conftest.$ac_ext
3884 if { (eval echo configure:3885: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3885 for ac_file in conftest.*; do
3888 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
3892 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
3897 echo "$ac_t""$ac_cv_objext" 1>&6
3898 OBJEXT=$ac_cv_objext
3899 ac_objext=$ac_cv_objext
3904 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3905 echo "configure:3906: checking for executable suffix" >&5
3906 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
3907 echo $ac_n "(cached) $ac_c" 1>&6
3909 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
3913 echo 'int main () { return 0; }' > conftest.$ac_ext
3915 if { (eval echo configure:3916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3916 for file in conftest.*; do
3918 *.c | *.C | *.o | *.obj | *.xcoff) ;;
3919 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3923 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3926 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3931 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3932 echo "$ac_t""${ac_cv_exeext}" 1>&6
3935 if test $host != $build; then
3936 ac_tool_prefix=${host_alias}-
3944 # Check for command to grab the raw symbol name followed by C symbol from nm.
3945 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
3946 echo "configure:3947: checking command to parse $NM output" >&5
3947 if eval "test \"\${lt_cv_sys_global_symbol_pipe+set}\" = set"; then
3948 echo $ac_n "(cached) $ac_c" 1>&6
3951 # These are sane defaults that work on at least a few old systems.
3952 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
3954 # Character class describing NM global symbol codes.
3955 symcode='[BCDEGRST]'
3957 # Regexp to match symbols that can be accessed directly from C.
3958 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3960 # Transform the above into a raw symbol and a C symbol.
3961 symxfrm='\1 \2\3 \3'
3963 # Transform an extracted symbol line into a proper C declaration
3964 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3966 # Transform an extracted symbol line into symbol name and symbol address
3967 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'"
3969 # Define system-specific variables.
3974 cygwin* | mingw* | pw32*)
3975 symcode='[ABCDGISTW]'
3977 hpux*) # Its linker distinguishes data from code symbols
3978 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3979 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'"
3982 symcode='[BCDEGRST]'
3985 symcode='[BCDEGQRST]'
3995 # Handle CRLF in mingw tool chain
3999 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4003 # If we're using GNU nm, then use its standard symbol codes.
4004 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
4005 symcode='[ABCDGISTW]'
4008 # Try without a prefix undercore, then with it.
4009 for ac_symprfx in "" "_"; do
4011 # Write the raw and C identifiers.
4012 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4014 # Check to see that the pipe works correctly.
4017 cat > conftest.$ac_ext <<EOF
4022 void nm_test_func(){}
4026 int main(){nm_test_var='a';nm_test_func();return(0);}
4029 if { (eval echo configure:4030: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4030 # Now try to grab the symbols.
4032 if { (eval echo configure:4033: \"$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
4033 # Try sorting and uniquifying the output.
4034 if sort "$nlist" | uniq > "$nlist"T; then
4035 mv -f "$nlist"T "$nlist"
4040 # Make sure that we snagged all the symbols we need.
4041 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4042 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4043 cat <<EOF > conftest.$ac_ext
4049 # Now generate the symbol file.
4050 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4052 cat <<EOF >> conftest.$ac_ext
4053 #if defined (__STDC__) && __STDC__
4054 # define lt_ptr void *
4056 # define lt_ptr char *
4060 /* The mapping between symbol names and symbols. */
4065 lt_preloaded_symbols[] =
4068 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4069 cat <<\EOF >> conftest.$ac_ext
4077 # Now try linking the two files.
4078 mv conftest.$ac_objext conftstm.$ac_objext
4080 save_CFLAGS="$CFLAGS"
4081 LIBS="conftstm.$ac_objext"
4082 CFLAGS="$CFLAGS$no_builtin_flag"
4083 if { (eval echo configure:4084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
4087 CFLAGS="$save_CFLAGS"
4089 echo "cannot find nm_test_func in $nlist" >&5
4092 echo "cannot find nm_test_var in $nlist" >&5
4095 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4098 echo "$progname: failed program was:" >&5
4099 cat conftest.$ac_ext >&5
4101 rm -f conftest* conftst*
4103 # Do not use the global_symbol_pipe unless it works.
4104 if test "$pipe_works" = yes; then
4107 lt_cv_sys_global_symbol_pipe=
4113 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4114 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4115 global_symbol_to_cdecl=
4116 global_symbol_to_c_name_address=
4118 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4119 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4121 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4123 echo "$ac_t""failed" 1>&6
4125 echo "$ac_t""ok" 1>&6
4128 for ac_hdr in dlfcn.h
4130 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4131 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4132 echo "configure:4133: checking for $ac_hdr" >&5
4133 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4134 echo $ac_n "(cached) $ac_c" 1>&6
4136 cat > conftest.$ac_ext <<EOF
4137 #line 4138 "configure"
4138 #include "confdefs.h"
4141 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4142 { (eval echo configure:4143: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4143 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4144 if test -z "$ac_err"; then
4146 eval "ac_cv_header_$ac_safe=yes"
4149 echo "configure: failed program was:" >&5
4150 cat conftest.$ac_ext >&5
4152 eval "ac_cv_header_$ac_safe=no"
4156 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4157 echo "$ac_t""yes" 1>&6
4158 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4159 cat >> confdefs.h <<EOF
4160 #define $ac_tr_hdr 1
4164 echo "$ac_t""no" 1>&6
4173 # Only perform the check for file, if the check method requires it
4174 case $deplibs_check_method in
4176 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4177 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
4178 echo "configure:4179: checking for ${ac_tool_prefix}file" >&5
4179 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
4180 echo $ac_n "(cached) $ac_c" 1>&6
4184 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4187 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4190 ac_save_MAGIC_CMD="$MAGIC_CMD"
4191 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4192 ac_dummy="/usr/bin:$PATH"
4193 for ac_dir in $ac_dummy; do
4194 test -z "$ac_dir" && ac_dir=.
4195 if test -f $ac_dir/${ac_tool_prefix}file; then
4196 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4197 if test -n "$file_magic_test_file"; then
4198 case $deplibs_check_method in
4200 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4201 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4202 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4203 egrep "$file_magic_regex" > /dev/null; then
4208 *** Warning: the command libtool uses to detect shared libraries,
4209 *** $file_magic_cmd, produces output that libtool cannot recognize.
4210 *** The result is that libtool may fail to recognize shared libraries
4211 *** as such. This will affect the creation of libtool libraries that
4212 *** depend on shared libraries, but programs linked with such libtool
4213 *** libraries will work regardless of this problem. Nevertheless, you
4214 *** may want to report the problem to your system manager and/or to
4215 *** bug-libtool@gnu.org
4225 MAGIC_CMD="$ac_save_MAGIC_CMD"
4230 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4231 if test -n "$MAGIC_CMD"; then
4232 echo "$ac_t""$MAGIC_CMD" 1>&6
4234 echo "$ac_t""no" 1>&6
4237 if test -z "$lt_cv_path_MAGIC_CMD"; then
4238 if test -n "$ac_tool_prefix"; then
4239 echo $ac_n "checking for file""... $ac_c" 1>&6
4240 echo "configure:4241: checking for file" >&5
4241 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
4242 echo $ac_n "(cached) $ac_c" 1>&6
4246 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4249 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4252 ac_save_MAGIC_CMD="$MAGIC_CMD"
4253 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4254 ac_dummy="/usr/bin:$PATH"
4255 for ac_dir in $ac_dummy; do
4256 test -z "$ac_dir" && ac_dir=.
4257 if test -f $ac_dir/file; then
4258 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4259 if test -n "$file_magic_test_file"; then
4260 case $deplibs_check_method in
4262 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4263 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4264 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4265 egrep "$file_magic_regex" > /dev/null; then
4270 *** Warning: the command libtool uses to detect shared libraries,
4271 *** $file_magic_cmd, produces output that libtool cannot recognize.
4272 *** The result is that libtool may fail to recognize shared libraries
4273 *** as such. This will affect the creation of libtool libraries that
4274 *** depend on shared libraries, but programs linked with such libtool
4275 *** libraries will work regardless of this problem. Nevertheless, you
4276 *** may want to report the problem to your system manager and/or to
4277 *** bug-libtool@gnu.org
4287 MAGIC_CMD="$ac_save_MAGIC_CMD"
4292 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4293 if test -n "$MAGIC_CMD"; then
4294 echo "$ac_t""$MAGIC_CMD" 1>&6
4296 echo "$ac_t""no" 1>&6
4308 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4309 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4310 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4311 echo "configure:4312: checking for $ac_word" >&5
4312 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
4313 echo $ac_n "(cached) $ac_c" 1>&6
4315 if test -n "$RANLIB"; then
4316 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4318 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4320 for ac_dir in $ac_dummy; do
4321 test -z "$ac_dir" && ac_dir=.
4322 if test -f $ac_dir/$ac_word; then
4323 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4330 RANLIB="$ac_cv_prog_RANLIB"
4331 if test -n "$RANLIB"; then
4332 echo "$ac_t""$RANLIB" 1>&6
4334 echo "$ac_t""no" 1>&6
4338 if test -z "$ac_cv_prog_RANLIB"; then
4339 if test -n "$ac_tool_prefix"; then
4340 # Extract the first word of "ranlib", so it can be a program name with args.
4341 set dummy ranlib; ac_word=$2
4342 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4343 echo "configure:4344: checking for $ac_word" >&5
4344 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
4345 echo $ac_n "(cached) $ac_c" 1>&6
4347 if test -n "$RANLIB"; then
4348 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4350 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4352 for ac_dir in $ac_dummy; do
4353 test -z "$ac_dir" && ac_dir=.
4354 if test -f $ac_dir/$ac_word; then
4355 ac_cv_prog_RANLIB="ranlib"
4360 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
4363 RANLIB="$ac_cv_prog_RANLIB"
4364 if test -n "$RANLIB"; then
4365 echo "$ac_t""$RANLIB" 1>&6
4367 echo "$ac_t""no" 1>&6
4375 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4376 set dummy ${ac_tool_prefix}strip; ac_word=$2
4377 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4378 echo "configure:4379: checking for $ac_word" >&5
4379 if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then
4380 echo $ac_n "(cached) $ac_c" 1>&6
4382 if test -n "$STRIP"; then
4383 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4385 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4387 for ac_dir in $ac_dummy; do
4388 test -z "$ac_dir" && ac_dir=.
4389 if test -f $ac_dir/$ac_word; then
4390 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4397 STRIP="$ac_cv_prog_STRIP"
4398 if test -n "$STRIP"; then
4399 echo "$ac_t""$STRIP" 1>&6
4401 echo "$ac_t""no" 1>&6
4405 if test -z "$ac_cv_prog_STRIP"; then
4406 if test -n "$ac_tool_prefix"; then
4407 # Extract the first word of "strip", so it can be a program name with args.
4408 set dummy strip; ac_word=$2
4409 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4410 echo "configure:4411: checking for $ac_word" >&5
4411 if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then
4412 echo $ac_n "(cached) $ac_c" 1>&6
4414 if test -n "$STRIP"; then
4415 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4417 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4419 for ac_dir in $ac_dummy; do
4420 test -z "$ac_dir" && ac_dir=.
4421 if test -f $ac_dir/$ac_word; then
4422 ac_cv_prog_STRIP="strip"
4427 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
4430 STRIP="$ac_cv_prog_STRIP"
4431 if test -n "$STRIP"; then
4432 echo "$ac_t""$STRIP" 1>&6
4434 echo "$ac_t""no" 1>&6
4444 enable_win32_dll=yes
4446 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4447 if test "${enable_libtool_lock+set}" = set; then
4448 enableval="$enable_libtool_lock"
4452 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4454 # Some flags need to be propagated to the compiler or linker for good
4458 # Find out which ABI we are using.
4459 echo '#line 4460 "configure"' > conftest.$ac_ext
4460 if { (eval echo configure:4461: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4461 case `/usr/bin/file conftest.$ac_objext` in
4477 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4478 SAVE_CFLAGS="$CFLAGS"
4479 CFLAGS="$CFLAGS -belf"
4480 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
4481 echo "configure:4482: checking whether the C compiler needs -belf" >&5
4482 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
4483 echo $ac_n "(cached) $ac_c" 1>&6
4487 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4488 ac_cpp='$CPP $CPPFLAGS'
4489 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4490 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4491 cross_compiling=$ac_cv_prog_cc_cross
4493 cat > conftest.$ac_ext <<EOF
4494 #line 4495 "configure"
4495 #include "confdefs.h"
4501 if { (eval echo configure:4502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4503 lt_cv_cc_needs_belf=yes
4505 echo "configure: failed program was:" >&5
4506 cat conftest.$ac_ext >&5
4508 lt_cv_cc_needs_belf=no
4512 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4513 ac_cpp='$CPP $CPPFLAGS'
4514 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4515 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4516 cross_compiling=$ac_cv_prog_cc_cross
4520 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
4521 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4522 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4523 CFLAGS="$SAVE_CFLAGS"
4527 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4528 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4529 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4530 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4531 echo "configure:4532: checking for $ac_word" >&5
4532 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
4533 echo $ac_n "(cached) $ac_c" 1>&6
4535 if test -n "$DLLTOOL"; then
4536 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4538 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4540 for ac_dir in $ac_dummy; do
4541 test -z "$ac_dir" && ac_dir=.
4542 if test -f $ac_dir/$ac_word; then
4543 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4550 DLLTOOL="$ac_cv_prog_DLLTOOL"
4551 if test -n "$DLLTOOL"; then
4552 echo "$ac_t""$DLLTOOL" 1>&6
4554 echo "$ac_t""no" 1>&6
4558 if test -z "$ac_cv_prog_DLLTOOL"; then
4559 if test -n "$ac_tool_prefix"; then
4560 # Extract the first word of "dlltool", so it can be a program name with args.
4561 set dummy dlltool; ac_word=$2
4562 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4563 echo "configure:4564: checking for $ac_word" >&5
4564 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
4565 echo $ac_n "(cached) $ac_c" 1>&6
4567 if test -n "$DLLTOOL"; then
4568 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4570 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4572 for ac_dir in $ac_dummy; do
4573 test -z "$ac_dir" && ac_dir=.
4574 if test -f $ac_dir/$ac_word; then
4575 ac_cv_prog_DLLTOOL="dlltool"
4580 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
4583 DLLTOOL="$ac_cv_prog_DLLTOOL"
4584 if test -n "$DLLTOOL"; then
4585 echo "$ac_t""$DLLTOOL" 1>&6
4587 echo "$ac_t""no" 1>&6
4595 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4596 set dummy ${ac_tool_prefix}as; ac_word=$2
4597 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4598 echo "configure:4599: checking for $ac_word" >&5
4599 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
4600 echo $ac_n "(cached) $ac_c" 1>&6
4602 if test -n "$AS"; then
4603 ac_cv_prog_AS="$AS" # Let the user override the test.
4605 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4607 for ac_dir in $ac_dummy; do
4608 test -z "$ac_dir" && ac_dir=.
4609 if test -f $ac_dir/$ac_word; then
4610 ac_cv_prog_AS="${ac_tool_prefix}as"
4618 if test -n "$AS"; then
4619 echo "$ac_t""$AS" 1>&6
4621 echo "$ac_t""no" 1>&6
4625 if test -z "$ac_cv_prog_AS"; then
4626 if test -n "$ac_tool_prefix"; then
4627 # Extract the first word of "as", so it can be a program name with args.
4628 set dummy as; ac_word=$2
4629 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4630 echo "configure:4631: checking for $ac_word" >&5
4631 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
4632 echo $ac_n "(cached) $ac_c" 1>&6
4634 if test -n "$AS"; then
4635 ac_cv_prog_AS="$AS" # Let the user override the test.
4637 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4639 for ac_dir in $ac_dummy; do
4640 test -z "$ac_dir" && ac_dir=.
4641 if test -f $ac_dir/$ac_word; then
4647 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
4651 if test -n "$AS"; then
4652 echo "$ac_t""$AS" 1>&6
4654 echo "$ac_t""no" 1>&6
4662 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4663 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4664 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4665 echo "configure:4666: checking for $ac_word" >&5
4666 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
4667 echo $ac_n "(cached) $ac_c" 1>&6
4669 if test -n "$OBJDUMP"; then
4670 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4672 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4674 for ac_dir in $ac_dummy; do
4675 test -z "$ac_dir" && ac_dir=.
4676 if test -f $ac_dir/$ac_word; then
4677 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4684 OBJDUMP="$ac_cv_prog_OBJDUMP"
4685 if test -n "$OBJDUMP"; then
4686 echo "$ac_t""$OBJDUMP" 1>&6
4688 echo "$ac_t""no" 1>&6
4692 if test -z "$ac_cv_prog_OBJDUMP"; then
4693 if test -n "$ac_tool_prefix"; then
4694 # Extract the first word of "objdump", so it can be a program name with args.
4695 set dummy objdump; ac_word=$2
4696 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4697 echo "configure:4698: checking for $ac_word" >&5
4698 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
4699 echo $ac_n "(cached) $ac_c" 1>&6
4701 if test -n "$OBJDUMP"; then
4702 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4704 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4706 for ac_dir in $ac_dummy; do
4707 test -z "$ac_dir" && ac_dir=.
4708 if test -f $ac_dir/$ac_word; then
4709 ac_cv_prog_OBJDUMP="objdump"
4714 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
4717 OBJDUMP="$ac_cv_prog_OBJDUMP"
4718 if test -n "$OBJDUMP"; then
4719 echo "$ac_t""$OBJDUMP" 1>&6
4721 echo "$ac_t""no" 1>&6
4730 # recent cygwin and mingw systems supply a stub DllMain which the user
4731 # can override, but on older systems we have to supply one
4732 echo $ac_n "checking if libtool should supply DllMain function""... $ac_c" 1>&6
4733 echo "configure:4734: checking if libtool should supply DllMain function" >&5
4734 if eval "test \"\${lt_cv_need_dllmain+set}\" = set"; then
4735 echo $ac_n "(cached) $ac_c" 1>&6
4737 cat > conftest.$ac_ext <<EOF
4738 #line 4739 "configure"
4739 #include "confdefs.h"
4742 extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
4746 if { (eval echo configure:4747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4748 lt_cv_need_dllmain=no
4750 echo "configure: failed program was:" >&5
4751 cat conftest.$ac_ext >&5
4753 lt_cv_need_dllmain=yes
4758 echo "$ac_t""$lt_cv_need_dllmain" 1>&6
4761 *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
4762 # old mingw systems require "-dll" to link a DLL, while more recent ones
4764 SAVE_CFLAGS="$CFLAGS"
4765 CFLAGS="$CFLAGS -mdll"
4766 echo $ac_n "checking how to link DLLs""... $ac_c" 1>&6
4767 echo "configure:4768: checking how to link DLLs" >&5
4768 if eval "test \"\${lt_cv_cc_dll_switch+set}\" = set"; then
4769 echo $ac_n "(cached) $ac_c" 1>&6
4771 cat > conftest.$ac_ext <<EOF
4772 #line 4773 "configure"
4773 #include "confdefs.h"
4779 if { (eval echo configure:4780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4781 lt_cv_cc_dll_switch=-mdll
4783 echo "configure: failed program was:" >&5
4784 cat conftest.$ac_ext >&5
4786 lt_cv_cc_dll_switch=-dll
4791 echo "$ac_t""$lt_cv_cc_dll_switch" 1>&6
4792 CFLAGS="$SAVE_CFLAGS" ;;
4793 *-*-cygwin* | *-*-pw32*)
4794 # cygwin systems need to pass --dll to the linker, and not link
4795 # crt.o which will require a WinMain@16 definition.
4796 lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
4802 # Sed substitution that helps us do robust quoting. It backslashifies
4803 # metacharacters that are still active within double-quoted strings.
4804 Xsed='sed -e s/^X//'
4805 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4807 # Same as above, but do not quote variable references.
4808 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4810 # Sed substitution to delay expansion of an escaped shell variable in a
4811 # double_quote_subst'ed string.
4812 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4818 default_ofile=libtool
4819 can_build_shared=yes
4821 # All known linkers require a `.a' archive for static linking (except M$VC,
4822 # which needs '.lib').
4824 ltmain="$ac_aux_dir/ltmain.sh"
4825 ofile="$default_ofile"
4826 with_gnu_ld="$lt_cv_prog_gnu_ld"
4827 need_locks="$enable_libtool_lock"
4830 old_CFLAGS="$CFLAGS"
4832 # Set sane defaults for various variables
4833 test -z "$AR" && AR=ar
4834 test -z "$AR_FLAGS" && AR_FLAGS=cru
4835 test -z "$AS" && AS=as
4836 test -z "$CC" && CC=cc
4837 test -z "$DLLTOOL" && DLLTOOL=dlltool
4838 test -z "$LD" && LD=ld
4839 test -z "$LN_S" && LN_S="ln -s"
4840 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4841 test -z "$NM" && NM=nm
4842 test -z "$OBJDUMP" && OBJDUMP=objdump
4843 test -z "$RANLIB" && RANLIB=:
4844 test -z "$STRIP" && STRIP=:
4845 test -z "$ac_objext" && ac_objext=o
4847 if test x"$host" != x"$build"; then
4848 ac_tool_prefix=${host_alias}-
4853 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4856 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4861 # AIX sometimes has problems with the GCC collect2 program. For some
4862 # reason, if we set the COLLECT_NAMES environment variable, the problems
4863 # vanish in a puff of smoke.
4864 if test "X${COLLECT_NAMES+set}" != Xset; then
4866 export COLLECT_NAMES
4871 # Determine commands to create old-style static archives.
4872 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4873 old_postinstall_cmds='chmod 644 $oldlib'
4874 old_postuninstall_cmds=
4876 if test -n "$RANLIB"; then
4879 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4882 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4885 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4888 # Allow CC to be a program name with arguments.
4892 echo $ac_n "checking for objdir""... $ac_c" 1>&6
4893 echo "configure:4894: checking for objdir" >&5
4894 rm -f .libs 2>/dev/null
4895 mkdir .libs 2>/dev/null
4896 if test -d .libs; then
4899 # MS-DOS does not allow filenames that begin with a dot.
4902 rmdir .libs 2>/dev/null
4903 echo "$ac_t""$objdir" 1>&6
4906 # Check whether --with-pic or --without-pic was given.
4907 if test "${with_pic+set}" = set; then
4914 test -z "$pic_mode" && pic_mode=default
4916 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
4917 # in isolation, and that seeing it set (from the cache) indicates that
4918 # the associated values are set (in the cache) correctly too.
4919 echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6
4920 echo "configure:4921: checking for $compiler option to produce PIC" >&5
4921 if eval "test \"\${lt_cv_prog_cc_pic+set}\" = set"; then
4922 echo $ac_n "(cached) $ac_c" 1>&6
4925 lt_cv_prog_cc_shlib=
4927 lt_cv_prog_cc_static=
4928 lt_cv_prog_cc_no_builtin=
4929 lt_cv_prog_cc_can_build_shared=$can_build_shared
4931 if test "$GCC" = yes; then
4932 lt_cv_prog_cc_wl='-Wl,'
4933 lt_cv_prog_cc_static='-static'
4937 # Below there is a dirty hack to force normal static linking with -ldl
4938 # The problem is because libdl dynamically linked with both libc and
4939 # libC (AIX C++ library), which obviously doesn't included in libraries
4940 # list by gcc. This cause undefined symbols with -static flags.
4941 # This hack allows C programs to be linked with "-static -ldl", but
4942 # not sure about C++ programs.
4943 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
4946 # FIXME: we need at least 68020 code to build shared libraries, but
4947 # adding the `-m68020' flag to GCC prevents building anything better,
4949 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
4951 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4952 # PIC is the default for these OSes.
4954 darwin* | rhapsody*)
4955 # PIC is the default on this platform
4956 # Common symbols not allowed in MH_DYLIB files
4957 lt_cv_prog_cc_pic='-fno-common'
4959 cygwin* | mingw* | pw32* | os2*)
4960 # This hack is so that the source file can tell whether it is being
4961 # built for inclusion in a dll (and should export symbols for example).
4962 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4965 if test -d /usr/nec; then
4966 lt_cv_prog_cc_pic=-Kconform_pic
4970 lt_cv_prog_cc_pic='-fPIC'
4974 # PORTME Check for PIC flags for the system compiler.
4976 aix3* | aix4* | aix5*)
4977 lt_cv_prog_cc_wl='-Wl,'
4978 # All AIX code is PIC.
4979 if test "$host_cpu" = ia64; then
4980 # AIX 5 now supports IA64 processor
4981 lt_cv_prog_cc_static='-Bstatic'
4983 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
4987 hpux9* | hpux10* | hpux11*)
4988 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
4989 lt_cv_prog_cc_wl='-Wl,'
4990 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
4991 lt_cv_prog_cc_pic='+Z'
4994 irix5* | irix6* | nonstopux*)
4995 lt_cv_prog_cc_wl='-Wl,'
4996 lt_cv_prog_cc_static='-non_shared'
4997 # PIC (with -KPIC) is the default.
5000 cygwin* | mingw* | pw32* | os2*)
5001 # This hack is so that the source file can tell whether it is being
5002 # built for inclusion in a dll (and should export symbols for example).
5003 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5007 lt_cv_prog_cc_pic='-KPIC'
5008 lt_cv_prog_cc_static='-Bstatic'
5012 # XPLINK code is PIC by default
5015 osf3* | osf4* | osf5*)
5016 # All OSF/1 code is PIC.
5017 lt_cv_prog_cc_wl='-Wl,'
5018 lt_cv_prog_cc_static='-non_shared'
5022 lt_cv_prog_cc_pic='-Kpic'
5023 lt_cv_prog_cc_static='-dn'
5024 lt_cv_prog_cc_shlib='-belf'
5028 lt_cv_prog_cc_pic='-KPIC'
5029 lt_cv_prog_cc_static='-Bstatic'
5030 lt_cv_prog_cc_wl='-Wl,'
5034 lt_cv_prog_cc_pic='-PIC'
5035 lt_cv_prog_cc_static='-Bstatic'
5036 lt_cv_prog_cc_wl='-Qoption ld '
5039 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5040 lt_cv_prog_cc_pic='-KPIC'
5041 lt_cv_prog_cc_static='-Bstatic'
5042 lt_cv_prog_cc_wl='-Wl,'
5046 lt_cv_prog_cc_pic='-pic'
5047 lt_cv_prog_cc_static='-Bstatic'
5051 if test -d /usr/nec ;then
5052 lt_cv_prog_cc_pic='-Kconform_pic'
5053 lt_cv_prog_cc_static='-Bstatic'
5058 lt_cv_prog_cc_can_build_shared=no
5065 if test -z "$lt_cv_prog_cc_pic"; then
5066 echo "$ac_t""none" 1>&6
5068 echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6
5070 # Check to make sure the pic_flag actually works.
5071 echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6
5072 echo "configure:5073: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5073 if eval "test \"\${lt_cv_prog_cc_pic_works+set}\" = set"; then
5074 echo $ac_n "(cached) $ac_c" 1>&6
5076 save_CFLAGS="$CFLAGS"
5077 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5078 cat > conftest.$ac_ext <<EOF
5079 #line 5080 "configure"
5080 #include "confdefs.h"
5086 if { (eval echo configure:5087: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5089 hpux9* | hpux10* | hpux11*)
5090 # On HP-UX, both CC and GCC only warn that PIC is supported... then
5091 # they create non-PIC objects. So, if there were any warnings, we
5092 # assume that PIC is not supported.
5093 if test -s conftest.err; then
5094 lt_cv_prog_cc_pic_works=no
5096 lt_cv_prog_cc_pic_works=yes
5100 lt_cv_prog_cc_pic_works=yes
5105 echo "configure: failed program was:" >&5
5106 cat conftest.$ac_ext >&5
5108 lt_cv_prog_cc_pic_works=no
5112 CFLAGS="$save_CFLAGS"
5117 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5119 lt_cv_prog_cc_can_build_shared=no
5121 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5124 echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6
5127 # Check for any special shared library compilation flags.
5128 if test -n "$lt_cv_prog_cc_shlib"; then
5129 echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2
5130 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5132 echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2
5133 lt_cv_prog_cc_can_build_shared=no
5137 echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6
5138 echo "configure:5139: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5139 if eval "test \"\${lt_cv_prog_cc_static_works+set}\" = set"; then
5140 echo $ac_n "(cached) $ac_c" 1>&6
5142 lt_cv_prog_cc_static_works=no
5143 save_LDFLAGS="$LDFLAGS"
5144 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5145 cat > conftest.$ac_ext <<EOF
5146 #line 5147 "configure"
5147 #include "confdefs.h"
5153 if { (eval echo configure:5154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5155 lt_cv_prog_cc_static_works=yes
5157 echo "configure: failed program was:" >&5
5158 cat conftest.$ac_ext >&5
5161 LDFLAGS="$save_LDFLAGS"
5166 # Belt *and* braces to stop my trousers falling down:
5167 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5168 echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6
5170 pic_flag="$lt_cv_prog_cc_pic"
5171 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5172 wl="$lt_cv_prog_cc_wl"
5173 link_static_flag="$lt_cv_prog_cc_static"
5174 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5175 can_build_shared="$lt_cv_prog_cc_can_build_shared"
5178 # Check to see if options -o and -c are simultaneously supported by compiler
5179 echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6
5180 echo "configure:5181: checking if $compiler supports -c -o file.$ac_objext" >&5
5181 if eval "test \"\${lt_cv_compiler_c_o+set}\" = set"; then
5182 echo $ac_n "(cached) $ac_c" 1>&6
5185 $rm -r conftest 2>/dev/null
5188 echo "int some_variable = 0;" > conftest.$ac_ext
5190 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5191 # that will create temporary files in the current directory regardless of
5192 # the output directory. Thus, making CWD read-only will cause this test
5193 # to fail, enabling locking or at least warning the user not to do parallel
5196 save_CFLAGS="$CFLAGS"
5197 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5199 if { (eval echo configure:5200: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5200 # The compiler can only warn and ignore the option if not recognized
5201 # So say no if there are warnings
5202 if test -s out/conftest.err; then
5203 lt_cv_compiler_c_o=no
5205 lt_cv_compiler_c_o=yes
5208 # Append any errors to the config.log.
5209 cat out/conftest.err 1>&5
5210 lt_cv_compiler_c_o=no
5212 CFLAGS="$save_CFLAGS"
5218 $rm -r conftest 2>/dev/null
5222 compiler_c_o=$lt_cv_compiler_c_o
5223 echo "$ac_t""$compiler_c_o" 1>&6
5225 if test x"$compiler_c_o" = x"yes"; then
5226 # Check to see if we can write to a .lo
5227 echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6
5228 echo "configure:5229: checking if $compiler supports -c -o file.lo" >&5
5229 if eval "test \"\${lt_cv_compiler_o_lo+set}\" = set"; then
5230 echo $ac_n "(cached) $ac_c" 1>&6
5233 lt_cv_compiler_o_lo=no
5234 save_CFLAGS="$CFLAGS"
5235 CFLAGS="$CFLAGS -c -o conftest.lo"
5236 save_objext="$ac_objext"
5238 cat > conftest.$ac_ext <<EOF
5239 #line 5240 "configure"
5240 #include "confdefs.h"
5243 int some_variable = 0;
5246 if { (eval echo configure:5247: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5248 # The compiler can only warn and ignore the option if not recognized
5249 # So say no if there are warnings
5250 if test -s conftest.err; then
5251 lt_cv_compiler_o_lo=no
5253 lt_cv_compiler_o_lo=yes
5257 echo "configure: failed program was:" >&5
5258 cat conftest.$ac_ext >&5
5261 ac_objext="$save_objext"
5262 CFLAGS="$save_CFLAGS"
5266 compiler_o_lo=$lt_cv_compiler_o_lo
5267 echo "$ac_t""$compiler_o_lo" 1>&6
5272 # Check to see if we can do hard links to lock some files if needed
5273 hard_links="nottested"
5274 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5275 # do not overwrite the value of need_locks provided by the user
5276 echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6
5277 echo "configure:5278: checking if we can lock with hard links" >&5
5280 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5282 ln conftest.a conftest.b 2>&5 || hard_links=no
5283 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5284 echo "$ac_t""$hard_links" 1>&6
5285 if test "$hard_links" = no; then
5286 echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2
5293 if test "$GCC" = yes; then
5294 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5295 echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6
5296 echo "configure:5297: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5297 echo "int some_variable = 0;" > conftest.$ac_ext
5298 save_CFLAGS="$CFLAGS"
5299 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5300 compiler_rtti_exceptions=no
5301 cat > conftest.$ac_ext <<EOF
5302 #line 5303 "configure"
5303 #include "confdefs.h"
5306 int some_variable = 0;
5309 if { (eval echo configure:5310: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5311 # The compiler can only warn and ignore the option if not recognized
5312 # So say no if there are warnings
5313 if test -s conftest.err; then
5314 compiler_rtti_exceptions=no
5316 compiler_rtti_exceptions=yes
5320 echo "configure: failed program was:" >&5
5321 cat conftest.$ac_ext >&5
5324 CFLAGS="$save_CFLAGS"
5325 echo "$ac_t""$compiler_rtti_exceptions" 1>&6
5327 if test "$compiler_rtti_exceptions" = "yes"; then
5328 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5330 no_builtin_flag=' -fno-builtin'
5334 # See if the linker supports building shared libraries.
5335 echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6
5336 echo "configure:5337: checking whether the linker ($LD) supports shared libraries" >&5
5338 allow_undefined_flag=
5340 need_lib_prefix=unknown
5341 need_version=unknown
5342 # when you set need_version to no, make sure it does not cause -set_version
5343 # flags to be left without arguments
5345 archive_expsym_cmds=
5346 old_archive_from_new_cmds=
5347 old_archive_from_expsyms_cmds=
5348 export_dynamic_flag_spec=
5349 whole_archive_flag_spec=
5350 thread_safe_flag_spec=
5351 hardcode_into_libs=no
5352 hardcode_libdir_flag_spec=
5353 hardcode_libdir_separator=
5356 hardcode_shlibpath_var=unsupported
5358 link_all_deplibs=unknown
5359 always_export_symbols=no
5360 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5361 # include_expsyms should be a list of space-separated symbols to be *always*
5362 # included in the symbol list
5364 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5365 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5366 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5367 # as well as any symbol that contains `d'.
5368 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5369 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5370 # platforms (ab)use it in PIC code, but their linkers get confused if
5371 # the symbol is explicitly referenced. Since portable code cannot
5372 # rely on this symbol name, it's probably fine to never include it in
5373 # preloaded symbol tables.
5374 extract_expsyms_cmds=
5377 cygwin* | mingw* | pw32*)
5378 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5379 # When not using gcc, we currently assume that we are using
5380 # Microsoft Visual C++.
5381 if test "$GCC" != yes; then
5391 if test "$with_gnu_ld" = yes; then
5392 # If archive_cmds runs LD, not CC, wlarc should be empty
5395 # See if GNU ld supports shared libraries.
5397 aix3* | aix4* | aix5*)
5398 # On AIX, the GNU linker is very broken
5399 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5403 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5404 *** to be unable to reliably create shared libraries on AIX.
5405 *** Therefore, libtool is disabling shared libraries support. If you
5406 *** really care for shared libraries, you may want to modify your PATH
5407 *** so that a non-GNU linker is found, and then restart.
5413 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)'
5414 hardcode_libdir_flag_spec='-L$libdir'
5415 hardcode_minus_L=yes
5417 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5418 # that the semantics of dynamic libraries on AmigaOS, at least up
5419 # to version 4, is to share data among multiple programs linked
5420 # with the same dynamic library. Since this doesn't match the
5421 # behavior of shared libraries on other platforms, we can use
5427 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5428 allow_undefined_flag=unsupported
5429 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5430 # support --undefined. This deserves some investigation. FIXME
5431 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5437 cygwin* | mingw* | pw32*)
5438 # hardcode_libdir_flag_spec is actually meaningless, as there is
5439 # no search path for DLLs.
5440 hardcode_libdir_flag_spec='-L$libdir'
5441 allow_undefined_flag=unsupported
5442 always_export_symbols=yes
5444 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5445 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5446 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5447 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5448 else $CC -o impgen impgen.c ; fi)~
5449 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5451 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5453 # cygwin and mingw dlls have different entry points and sets of symbols
5455 # FIXME: what about values for MSVC?
5456 dll_entry=__cygwin_dll_entry@12
5457 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5461 dll_entry=_DllMainCRTStartup@12
5462 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5466 # mingw and cygwin differ, and it's simplest to just exclude the union
5467 # of the two symbol sets.
5468 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5470 # recent cygwin and mingw systems supply a stub DllMain which the user
5471 # can override, but on older systems we have to supply one (in ltdll.c)
5472 if test "x$lt_cv_need_dllmain" = "xyes"; then
5473 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5474 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~
5475 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5481 # Extract the symbol export list from an `--export-all' def file,
5482 # then regenerate the def file from the symbol export list, so that
5483 # the compiled dll only exports the symbol export list.
5484 # Be careful not to strip the DATA tag left be newer dlltools.
5485 export_symbols_cmds="$ltdll_cmds"'
5486 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5487 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5489 # If the export-symbols file already is a .def file (1st line
5490 # is EXPORTS), use it as is.
5491 # If DATA tags from a recent dlltool are present, honour them!
5492 archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
5493 cp $export_symbols $output_objdir/$soname-def;
5495 echo EXPORTS > $output_objdir/$soname-def;
5497 cat $export_symbols | while read symbol; do
5500 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5501 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
5502 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5504 _lt_hint=`expr 1 + \$_lt_hint`;
5508 $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~
5509 $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~
5510 $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~
5511 $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~
5512 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5516 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5517 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5520 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5521 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5526 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5530 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5531 *** create shared libraries on Solaris systems. Therefore, libtool
5532 *** is disabling shared libraries support. We urge you to upgrade GNU
5533 *** binutils to release 2.9.1 or newer. Another option is to modify
5534 *** your PATH or compiler configuration so that the native linker is
5535 *** used, and then restart.
5538 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5539 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5540 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5547 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5550 hardcode_shlibpath_var=no
5554 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5555 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5556 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5563 if test "$ld_shlibs" = yes; then
5564 runpath_var=LD_RUN_PATH
5565 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5566 export_dynamic_flag_spec='${wl}--export-dynamic'
5568 cygwin* | mingw* | pw32*)
5569 # dlltool doesn't understand --whole-archive et. al.
5570 whole_archive_flag_spec=
5573 # ancient GNU ld didn't support --whole-archive et. al.
5574 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5575 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5577 whole_archive_flag_spec=
5583 # PORTME fill in a description of your system's linker (not GNU ld)
5586 allow_undefined_flag=unsupported
5587 always_export_symbols=yes
5588 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'
5589 # Note: this linker hardcodes the directories in LIBPATH if there
5590 # are no directories specified by -L.
5591 hardcode_minus_L=yes
5592 if test "$GCC" = yes && test -z "$link_static_flag"; then
5593 # Neither direct hardcoding nor static linking is supported with a
5595 hardcode_direct=unsupported
5600 if test "$host_cpu" = ia64; then
5601 # On IA64, the linker does run time linking by default, so we don't
5602 # have to do anything special.
5603 aix_use_runtimelinking=no
5604 exp_sym_flag='-Bexport'
5607 aix_use_runtimelinking=no
5609 # Test if we are trying to use run time linking or normal
5610 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5611 # need to do runtime linking.
5612 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5613 for ld_flag in $LDFLAGS; do
5616 aix_use_runtimelinking=yes
5623 exp_sym_flag='-bexport'
5624 no_entry_flag='-bnoentry'
5627 # When large executables or shared objects are built, AIX ld can
5628 # have problems creating the table of contents. If linking a library
5629 # or program results in "error TOC overflow" add -mminimal-toc to
5630 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5631 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5635 hardcode_libdir_separator=':'
5636 if test "$GCC" = yes; then
5637 case $host_os in aix4.[012]|aix4.[012].*)
5638 collect2name=`${CC} -print-prog-name=collect2`
5639 if test -f "$collect2name" && \
5640 strings "$collect2name" | grep resolve_lib_name >/dev/null
5642 # We have reworked collect2
5645 # We have old collect2
5646 hardcode_direct=unsupported
5647 # It fails to find uninstalled libraries when the uninstalled
5648 # path is not listed in the libpath. Setting hardcode_minus_L
5649 # to unsupported forces relinking
5650 hardcode_minus_L=yes
5651 hardcode_libdir_flag_spec='-L$libdir'
5652 hardcode_libdir_separator=
5656 shared_flag='-shared'
5659 if test "$host_cpu" = ia64; then
5660 shared_flag='${wl}-G'
5662 if test "$aix_use_runtimelinking" = yes; then
5663 shared_flag='${wl}-G'
5665 shared_flag='${wl}-bM:SRE'
5670 # It seems that -bexpall can do strange things, so it is better to
5671 # generate a list of symbols to export.
5672 always_export_symbols=yes
5673 if test "$aix_use_runtimelinking" = yes; then
5674 # Warning - without using the other runtime loading flags (-brtl),
5675 # -berok will link without error, but may produce a broken library.
5676 allow_undefined_flag='-berok'
5677 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5678 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"
5680 if test "$host_cpu" = ia64; then
5681 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5682 allow_undefined_flag="-z nodefs"
5683 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"
5685 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5686 # Warning - without using the other run time loading flags,
5687 # -berok will link without error, but may produce a broken library.
5688 allow_undefined_flag='${wl}-berok'
5689 # This is a bit strange, but is similar to how AIX traditionally builds
5690 # it's shared libraries.
5691 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'
5697 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)'
5698 hardcode_libdir_flag_spec='-L$libdir'
5699 hardcode_minus_L=yes
5700 # see comment about different semantics on the GNU ld section
5704 cygwin* | mingw* | pw32*)
5705 # When not using gcc, we currently assume that we are using
5706 # Microsoft Visual C++.
5707 # hardcode_libdir_flag_spec is actually meaningless, as there is
5708 # no search path for DLLs.
5709 hardcode_libdir_flag_spec=' '
5710 allow_undefined_flag=unsupported
5711 # Tell ltmain to make .lib files, not .a files.
5713 # FIXME: Setting linknames here is a bad hack.
5714 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5715 # The linker will automatically build a .lib file if we build a DLL.
5716 old_archive_from_new_cmds='true'
5717 # FIXME: Should let the user specify the lib program.
5718 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5719 fix_srcfile_path='`cygpath -w "$srcfile"`'
5722 darwin* | rhapsody*)
5724 rhapsody* | darwin1.[012])
5725 allow_undefined_flag='-undefined suppress'
5728 allow_undefined_flag='-flat_namespace -undefined suppress'
5731 # FIXME: Relying on posixy $() will cause problems for
5732 # cross-compilation, but unfortunately the echo tests do not
5733 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
5734 # `"' quotes if we put them in here... so don't!
5735 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)'
5736 # We need to add '_' to the symbols in $export_symbols first
5737 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5739 hardcode_shlibpath_var=no
5740 whole_archive_flag_spec='-all_load $convenience'
5747 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5748 # support. Future versions do this automatically, but an explicit c++rt0.o
5749 # does not break anything, and helps significantly (at the cost of a little
5752 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5753 hardcode_libdir_flag_spec='-R$libdir'
5755 hardcode_shlibpath_var=no
5758 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5760 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5762 hardcode_minus_L=yes
5763 hardcode_shlibpath_var=no
5766 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5768 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5769 hardcode_libdir_flag_spec='-R$libdir'
5771 hardcode_shlibpath_var=no
5774 hpux9* | hpux10* | hpux11*)
5776 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' ;;
5777 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5779 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5780 hardcode_libdir_separator=:
5782 hardcode_minus_L=yes # Not in the search PATH, but as the default
5783 # location of the library.
5784 export_dynamic_flag_spec='${wl}-E'
5787 irix5* | irix6* | nonstopux*)
5788 if test "$GCC" = yes; then
5789 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'
5790 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5792 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'
5793 hardcode_libdir_flag_spec='-rpath $libdir'
5795 hardcode_libdir_separator=:
5796 link_all_deplibs=yes
5800 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5801 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5803 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5805 hardcode_libdir_flag_spec='-R$libdir'
5807 hardcode_shlibpath_var=no
5811 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5813 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5814 hardcode_libdir_separator=:
5815 hardcode_shlibpath_var=no
5820 hardcode_shlibpath_var=no
5821 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5822 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5823 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5824 export_dynamic_flag_spec='${wl}-E'
5827 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5828 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5829 hardcode_libdir_flag_spec='-R$libdir'
5832 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5833 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5840 archive_cmds="\$CC -Wl,DLL \$libobjs \$deplibs \$compiler_flags -o \$lib &&
5841 cp \$linknames \$output_objdir && linknames=''"
5842 export_dynamic_flag_spec="-Wl,DLL"
5846 hardcode_libdir_flag_spec='-L$libdir'
5847 hardcode_minus_L=yes
5848 allow_undefined_flag=unsupported
5849 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'
5850 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5854 if test "$GCC" = yes; then
5855 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5856 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'
5858 allow_undefined_flag=' -expect_unresolved \*'
5859 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'
5861 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5862 hardcode_libdir_separator=:
5865 osf4* | osf5*) # as osf3* with the addition of -msym flag
5866 if test "$GCC" = yes; then
5867 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5868 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'
5869 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5871 allow_undefined_flag=' -expect_unresolved \*'
5872 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'
5873 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5874 $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'
5876 #Both c and cxx compiler support -rpath directly
5877 hardcode_libdir_flag_spec='-rpath $libdir'
5879 hardcode_libdir_separator=:
5883 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5884 hardcode_shlibpath_var=no
5885 runpath_var=LD_RUN_PATH
5886 hardcode_runpath_var=yes
5887 export_dynamic_flag_spec='${wl}-Bexport'
5891 # gcc --version < 3.0 without binutils cannot create self contained
5892 # shared libraries reliably, requiring libgcc.a to resolve some of
5893 # the object symbols generated in some cases. Libraries that use
5894 # assert need libgcc.a to resolve __eprintf, for example. Linking
5895 # a copy of libgcc.a into every shared library to guarantee resolving
5896 # such symbols causes other problems: According to Tim Van Holder
5897 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
5898 # (to the application) exception stack for one thing.
5899 no_undefined_flag=' -z defs'
5900 if test "$GCC" = yes; then
5901 case `$CC --version 2>/dev/null` in
5905 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5906 *** create self contained shared libraries on Solaris systems, without
5907 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
5908 *** -no-undefined support, which will at least allow you to build shared
5909 *** libraries. However, you may find that when you link such libraries
5910 *** into an application without using GCC, you have to manually add
5911 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
5912 *** upgrade to a newer version of GCC. Another option is to rebuild your
5913 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
5920 # $CC -shared without GNU ld will not create a library from C++
5921 # object files and a static libstdc++, better avoid it by now
5922 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5923 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5924 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5925 hardcode_libdir_flag_spec='-R$libdir'
5926 hardcode_shlibpath_var=no
5928 solaris2.[0-5] | solaris2.[0-5].*) ;;
5929 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5930 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5932 link_all_deplibs=yes
5936 if test "x$host_vendor" = xsequent; then
5937 # Use $CC to link under sequent, because it throws in some extra .o
5938 # files that make .init and .fini sections work.
5939 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5941 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5943 hardcode_libdir_flag_spec='-L$libdir'
5945 hardcode_minus_L=yes
5946 hardcode_shlibpath_var=no
5950 case $host_vendor in
5952 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5953 hardcode_direct=yes # is this really true???
5956 ## LD is ld it makes a PLAMLIB
5957 ## CC just makes a GrossModule.
5958 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5959 reload_cmds='$CC -r -o $output$reload_objs'
5963 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5964 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5967 runpath_var='LD_RUN_PATH'
5968 hardcode_shlibpath_var=no
5972 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5973 hardcode_shlibpath_var=no
5974 export_dynamic_flag_spec='-Bexport'
5978 no_undefined_flag=' -z text'
5979 # $CC -shared without GNU ld will not create a library from C++
5980 # object files and a static libstdc++, better avoid it by now
5981 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5982 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5983 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5984 hardcode_libdir_flag_spec=
5985 hardcode_shlibpath_var=no
5986 runpath_var='LD_RUN_PATH'
5990 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5991 hardcode_libdir_flag_spec='-L$libdir'
5992 hardcode_shlibpath_var=no
5996 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5997 hardcode_libdir_flag_spec='-L$libdir'
5998 hardcode_shlibpath_var=no
6002 if test -d /usr/nec; then
6003 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6004 hardcode_shlibpath_var=no
6005 runpath_var=LD_RUN_PATH
6006 hardcode_runpath_var=yes
6012 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6015 hardcode_shlibpath_var=no
6016 hardcode_runpath_var=yes
6017 runpath_var=LD_RUN_PATH
6020 sysv5uw7* | unixware7*)
6021 no_undefined_flag='${wl}-z ${wl}text'
6022 if test "$GCC" = yes; then
6023 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6025 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6027 runpath_var='LD_RUN_PATH'
6028 hardcode_shlibpath_var=no
6036 echo "$ac_t""$ld_shlibs" 1>&6
6037 test "$ld_shlibs" = no && can_build_shared=no
6039 # Check hardcoding attributes.
6040 echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6
6041 echo "configure:6042: checking how to hardcode library paths into programs" >&5
6043 if test -n "$hardcode_libdir_flag_spec" || \
6044 test -n "$runpath_var"; then
6046 # We can hardcode non-existant directories.
6047 if test "$hardcode_direct" != no &&
6048 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6049 # have to relink, otherwise we might link with an installed library
6050 # when we should be linking with a yet-to-be-installed one
6051 ## test "$hardcode_shlibpath_var" != no &&
6052 test "$hardcode_minus_L" != no; then
6053 # Linking always hardcodes the temporary library directory.
6054 hardcode_action=relink
6056 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6057 hardcode_action=immediate
6060 # We cannot hardcode anything, or else we can only hardcode existing
6062 hardcode_action=unsupported
6064 echo "$ac_t""$hardcode_action" 1>&6
6068 echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6
6069 echo "configure:6070: checking whether stripping libraries is possible" >&5
6070 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6071 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6072 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6073 echo "$ac_t""yes" 1>&6
6075 echo "$ac_t""no" 1>&6
6078 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6079 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6081 # PORTME Fill in your ld.so characteristics
6082 echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6
6083 echo "configure:6084: checking dynamic linker characteristics" >&5
6085 libname_spec='lib$name'
6092 shlibpath_overrides_runpath=unknown
6094 dynamic_linker="$host_os ld.so"
6095 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6096 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6101 library_names_spec='${libname}${release}.so$versuffix $libname.a'
6102 shlibpath_var=LIBPATH
6104 # AIX has no versioning support, so we append a major version to the name.
6105 soname_spec='${libname}${release}.so$major'
6112 hardcode_into_libs=yes
6113 if test "$host_cpu" = ia64; then
6114 # AIX 5 supports IA64
6115 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6116 shlibpath_var=LD_LIBRARY_PATH
6118 # With GCC up to 2.95.x, collect2 would create an import file
6119 # for dependence libraries. The import file would start with
6120 # the line `#! .'. This would cause the generated library to
6121 # depend on `.', always an invalid library. This was fixed in
6122 # development snapshots of GCC prior to 3.0.
6124 aix4 | aix4.[01] | aix4.[01].*)
6125 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6127 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6134 # AIX (on Power*) has no versioning support, so currently we can
6135 # not hardcode correct soname into executable. Probably we can
6136 # add versioning support to collect2, so additional links can
6137 # be useful in future.
6138 if test "$aix_use_runtimelinking" = yes; then
6139 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6140 # instead of lib<name>.a to let people know that these are not
6141 # typical AIX shared libraries.
6142 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6144 # We preserve .a as extension for shared libraries through AIX4.2
6145 # and later when we are not doing run time linking.
6146 library_names_spec='${libname}${release}.a $libname.a'
6147 soname_spec='${libname}${release}.so$major'
6149 shlibpath_var=LIBPATH
6151 hardcode_into_libs=yes
6155 library_names_spec='$libname.ixlibrary $libname.a'
6156 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6157 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'
6161 library_names_spec='${libname}.so'
6162 dynamic_linker="$host_os ld.so"
6163 shlibpath_var=LIBRARY_PATH
6169 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6170 soname_spec='${libname}${release}.so$major'
6171 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6172 shlibpath_var=LD_LIBRARY_PATH
6173 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6174 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6175 export_dynamic_flag_spec=-rdynamic
6176 # the default ld.so.conf also contains /usr/contrib/lib and
6177 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6178 # libtool to hard-code these into programs
6181 cygwin* | mingw* | pw32*)
6182 version_type=windows
6185 case $GCC,$host_os in
6187 library_names_spec='$libname.dll.a'
6188 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6189 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6190 dldir=$destdir/`dirname \$dlpath`~
6191 test -d \$dldir || mkdir -p \$dldir~
6192 $install_prog .libs/$dlname \$dldir/$dlname'
6193 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6194 dlpath=$dir/\$dldll~
6198 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6199 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
6202 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6205 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6208 dynamic_linker='Win32 ld.exe'
6209 # FIXME: first we should search . and the directory the executable is in
6213 darwin* | rhapsody*)
6214 dynamic_linker="$host_os dyld"
6218 # FIXME: Relying on posixy $() will cause problems for
6219 # cross-compilation, but unfortunately the echo tests do not
6220 # yet detect zsh echo's removal of \ escapes.
6221 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)'
6222 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6223 shlibpath_overrides_runpath=yes
6224 shlibpath_var=DYLD_LIBRARY_PATH
6232 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6233 version_type=freebsd-$objformat
6234 case $version_type in
6236 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6241 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6245 shlibpath_var=LD_LIBRARY_PATH
6248 shlibpath_overrides_runpath=yes
6251 shlibpath_overrides_runpath=no
6252 hardcode_into_libs=yes
6261 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6262 soname_spec='${libname}${release}.so$major'
6263 shlibpath_var=LD_LIBRARY_PATH
6264 hardcode_into_libs=yes
6267 hpux9* | hpux10* | hpux11*)
6268 # Give a soname corresponding to the major version so that dld.sl refuses to
6269 # link against other versions.
6270 dynamic_linker="$host_os dld.sl"
6274 shlibpath_var=SHLIB_PATH
6275 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6276 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6277 soname_spec='${libname}${release}.sl$major'
6278 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6279 postinstall_cmds='chmod 555 $lib'
6282 irix5* | irix6* | nonstopux*)
6284 nonstopux*) version_type=nonstopux ;;
6285 *) version_type=irix ;;
6289 soname_spec='${libname}${release}.so$major'
6290 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6292 irix5* | nonstopux*)
6296 case $LD in # libtool.m4 will add one of these switches to LD
6297 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6298 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6299 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6300 *) libsuff= shlibsuff= libmagic=never-match;;
6304 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6305 shlibpath_overrides_runpath=no
6306 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6307 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6310 # No shared lib support for Linux oldld, aout, or coff.
6311 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6315 # This must be Linux ELF.
6320 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6321 soname_spec='${libname}${release}.so$major'
6322 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6323 shlibpath_var=LD_LIBRARY_PATH
6324 shlibpath_overrides_runpath=no
6325 # This implies no fast_install, which is unacceptable.
6326 # Some rework will be needed to allow for fast_install
6327 # before this can be enabled.
6328 hardcode_into_libs=yes
6330 # We used to test for /lib/ld.so.1 and disable shared libraries on
6331 # powerpc, because MkLinux only supported shared libraries with the
6332 # GNU dynamic linker. Since this was broken with cross compilers,
6333 # most powerpc-linux boxes support dynamic linking these days and
6334 # people can always --disable-shared, the test was removed, and we
6335 # assume the GNU/Linux dynamic linker is in use.
6336 dynamic_linker='GNU/Linux ld.so'
6343 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6344 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6345 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6346 dynamic_linker='NetBSD (a.out) ld.so'
6348 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6349 soname_spec='${libname}${release}.so$major'
6350 dynamic_linker='NetBSD ld.elf_so'
6352 shlibpath_var=LD_LIBRARY_PATH
6353 shlibpath_overrides_runpath=yes
6354 hardcode_into_libs=yes
6359 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6360 shlibpath_var=LD_LIBRARY_PATH
6361 shlibpath_overrides_runpath=yes
6368 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6370 openbsd2.[89] | openbsd2.[89].*)
6371 shlibpath_overrides_runpath=no
6374 shlibpath_overrides_runpath=yes
6378 shlibpath_overrides_runpath=yes
6380 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6381 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6382 shlibpath_var=LD_LIBRARY_PATH
6388 shlibpath_overrides_runpath=yes
6389 shlibpath_var=LIBPATH
6390 postinstall_cmds="rm \$destdir/\$linkname; cp \$linkname \$destdir; chmod a+x \$lib"
6391 # the library's exports are in libname.x; this is the file that must
6392 # actually be linked with to use a DLL.
6393 library_names_spec="\${libname}\${release}.so\$versuffix \${libname}.x"
6397 libname_spec='$name'
6399 library_names_spec='$libname.dll $libname.a'
6400 dynamic_linker='OS/2 ld.exe'
6401 shlibpath_var=LIBPATH
6404 osf3* | osf4* | osf5*)
6407 soname_spec='${libname}${release}.so$major'
6408 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6409 shlibpath_var=LD_LIBRARY_PATH
6410 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6411 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6412 hardcode_into_libs=yes
6417 soname_spec='${libname}${release}.so$major'
6418 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6419 shlibpath_var=LD_LIBRARY_PATH
6426 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6427 soname_spec='${libname}${release}.so$major'
6428 shlibpath_var=LD_LIBRARY_PATH
6429 shlibpath_overrides_runpath=yes
6430 hardcode_into_libs=yes
6431 # ldd complains unless libraries are executable
6432 postinstall_cmds='chmod +x $lib'
6437 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6438 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6439 shlibpath_var=LD_LIBRARY_PATH
6440 shlibpath_overrides_runpath=yes
6441 if test "$with_gnu_ld" = yes; then
6447 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6449 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6450 soname_spec='${libname}${release}.so$major'
6451 shlibpath_var=LD_LIBRARY_PATH
6452 case $host_vendor in
6454 shlibpath_overrides_runpath=no
6456 export_dynamic_flag_spec='${wl}-Blargedynsym'
6457 runpath_var=LD_RUN_PATH
6465 shlibpath_overrides_runpath=no
6466 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6473 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6474 soname_spec='${libname}${release}.so$major'
6475 shlibpath_var=LD_LIBRARY_PATH
6482 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6483 soname_spec='${libname}${release}.so$major'
6484 shlibpath_var=LD_LIBRARY_PATH
6488 if test -d /usr/nec ;then
6490 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6491 soname_spec='$libname.so.$major'
6492 shlibpath_var=LD_LIBRARY_PATH
6500 echo "$ac_t""$dynamic_linker" 1>&6
6501 test "$dynamic_linker" = no && can_build_shared=no
6503 # Report the final consequences.
6504 echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6
6505 echo "configure:6506: checking if libtool supports shared libraries" >&5
6506 echo "$ac_t""$can_build_shared" 1>&6
6508 echo $ac_n "checking whether to build shared libraries""... $ac_c" 1>&6
6509 echo "configure:6510: checking whether to build shared libraries" >&5
6510 test "$can_build_shared" = "no" && enable_shared=no
6512 # On AIX, shared libraries and static libraries use the same namespace, and
6513 # are all built from PIC.
6516 test "$enable_shared" = yes && enable_static=no
6517 if test -n "$RANLIB"; then
6518 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6519 postinstall_cmds='$RANLIB $lib'
6524 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6525 test "$enable_shared" = yes && enable_static=no
6529 echo "$ac_t""$enable_shared" 1>&6
6531 echo $ac_n "checking whether to build static libraries""... $ac_c" 1>&6
6532 echo "configure:6533: checking whether to build static libraries" >&5
6533 # Make sure either enable_shared or enable_static is yes.
6534 test "$enable_shared" = yes || enable_static=yes
6535 echo "$ac_t""$enable_static" 1>&6
6537 if test "$hardcode_action" = relink; then
6538 # Fast installation is not supported
6539 enable_fast_install=no
6540 elif test "$shlibpath_overrides_runpath" = yes ||
6541 test "$enable_shared" = no; then
6542 # Fast installation is not necessary
6543 enable_fast_install=needless
6546 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6547 if test "$GCC" = yes; then
6548 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6551 if test "x$enable_dlopen" != xyes; then
6552 enable_dlopen=unknown
6553 enable_dlopen_self=unknown
6554 enable_dlopen_self_static=unknown
6561 lt_cv_dlopen="load_add_on"
6563 lt_cv_dlopen_self=yes
6566 cygwin* | mingw* | pw32*)
6567 lt_cv_dlopen="LoadLibrary"
6572 echo $ac_n "checking for dllload""... $ac_c" 1>&6
6573 echo "configure:6574: checking for dllload" >&5
6574 if eval "test \"\${ac_cv_func_dllload+set}\" = set"; then
6575 echo $ac_n "(cached) $ac_c" 1>&6
6577 cat > conftest.$ac_ext <<EOF
6578 #line 6579 "configure"
6579 #include "confdefs.h"
6580 /* System header to define __stub macros and hopefully few prototypes,
6581 which can conflict with char dllload(); below. */
6583 /* Override any gcc2 internal prototype to avoid an error. */
6584 /* We use char because int might match the return type of a gcc2
6585 builtin and then its argument prototype would still apply. */
6591 /* The GNU C library defines this for functions which it implements
6592 to always fail with ENOSYS. Some functions are actually named
6593 something starting with __ and the normal name is an alias. */
6594 #if defined (__stub_dllload) || defined (__stub___dllload)
6602 if { (eval echo configure:6603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6604 eval "ac_cv_func_dllload=yes"
6606 echo "configure: failed program was:" >&5
6607 cat conftest.$ac_ext >&5
6609 eval "ac_cv_func_dllload=no"
6614 if eval "test \"`echo '$ac_cv_func_'dllload`\" = yes"; then
6615 echo "$ac_t""yes" 1>&6
6616 lt_cv_dlopen="dllload"
6618 echo "$ac_t""no" 1>&6
6619 echo $ac_n "checking for shl_load""... $ac_c" 1>&6
6620 echo "configure:6621: checking for shl_load" >&5
6621 if eval "test \"\${ac_cv_func_shl_load+set}\" = set"; then
6622 echo $ac_n "(cached) $ac_c" 1>&6
6624 cat > conftest.$ac_ext <<EOF
6625 #line 6626 "configure"
6626 #include "confdefs.h"
6627 /* System header to define __stub macros and hopefully few prototypes,
6628 which can conflict with char shl_load(); below. */
6630 /* Override any gcc2 internal prototype to avoid an error. */
6631 /* We use char because int might match the return type of a gcc2
6632 builtin and then its argument prototype would still apply. */
6638 /* The GNU C library defines this for functions which it implements
6639 to always fail with ENOSYS. Some functions are actually named
6640 something starting with __ and the normal name is an alias. */
6641 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6649 if { (eval echo configure:6650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6651 eval "ac_cv_func_shl_load=yes"
6653 echo "configure: failed program was:" >&5
6654 cat conftest.$ac_ext >&5
6656 eval "ac_cv_func_shl_load=no"
6661 if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
6662 echo "$ac_t""yes" 1>&6
6663 lt_cv_dlopen="shl_load"
6665 echo "$ac_t""no" 1>&6
6666 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
6667 echo "configure:6668: checking for shl_load in -ldld" >&5
6668 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-:%__p__%'`
6669 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6670 echo $ac_n "(cached) $ac_c" 1>&6
6672 ac_save_LIBS="$LIBS"
6674 cat > conftest.$ac_ext <<EOF
6675 #line 6676 "configure"
6676 #include "confdefs.h"
6677 /* Override any gcc2 internal prototype to avoid an error. */
6678 /* We use char because int might match the return type of a gcc2
6679 builtin and then its argument prototype would still apply. */
6686 if { (eval echo configure:6687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6688 eval "ac_cv_lib_$ac_lib_var=yes"
6690 echo "configure: failed program was:" >&5
6691 cat conftest.$ac_ext >&5
6693 eval "ac_cv_lib_$ac_lib_var=no"
6696 LIBS="$ac_save_LIBS"
6699 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6700 echo "$ac_t""yes" 1>&6
6701 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6703 echo "$ac_t""no" 1>&6
6704 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
6705 echo "configure:6706: checking for dlopen" >&5
6706 if eval "test \"\${ac_cv_func_dlopen+set}\" = set"; then
6707 echo $ac_n "(cached) $ac_c" 1>&6
6709 cat > conftest.$ac_ext <<EOF
6710 #line 6711 "configure"
6711 #include "confdefs.h"
6712 /* System header to define __stub macros and hopefully few prototypes,
6713 which can conflict with char dlopen(); below. */
6715 /* Override any gcc2 internal prototype to avoid an error. */
6716 /* We use char because int might match the return type of a gcc2
6717 builtin and then its argument prototype would still apply. */
6723 /* The GNU C library defines this for functions which it implements
6724 to always fail with ENOSYS. Some functions are actually named
6725 something starting with __ and the normal name is an alias. */
6726 #if defined (__stub_dlopen) || defined (__stub___dlopen)
6734 if { (eval echo configure:6735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6736 eval "ac_cv_func_dlopen=yes"
6738 echo "configure: failed program was:" >&5
6739 cat conftest.$ac_ext >&5
6741 eval "ac_cv_func_dlopen=no"
6746 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
6747 echo "$ac_t""yes" 1>&6
6748 lt_cv_dlopen="dlopen"
6750 echo "$ac_t""no" 1>&6
6751 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
6752 echo "configure:6753: checking for dlopen in -ldl" >&5
6753 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-:%__p__%'`
6754 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6755 echo $ac_n "(cached) $ac_c" 1>&6
6757 ac_save_LIBS="$LIBS"
6759 cat > conftest.$ac_ext <<EOF
6760 #line 6761 "configure"
6761 #include "confdefs.h"
6762 /* Override any gcc2 internal prototype to avoid an error. */
6763 /* We use char because int might match the return type of a gcc2
6764 builtin and then its argument prototype would still apply. */
6771 if { (eval echo configure:6772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6773 eval "ac_cv_lib_$ac_lib_var=yes"
6775 echo "configure: failed program was:" >&5
6776 cat conftest.$ac_ext >&5
6778 eval "ac_cv_lib_$ac_lib_var=no"
6781 LIBS="$ac_save_LIBS"
6784 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6785 echo "$ac_t""yes" 1>&6
6786 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6788 echo "$ac_t""no" 1>&6
6789 echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
6790 echo "configure:6791: checking for dlopen in -lsvld" >&5
6791 ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-:%__p__%'`
6792 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6793 echo $ac_n "(cached) $ac_c" 1>&6
6795 ac_save_LIBS="$LIBS"
6797 cat > conftest.$ac_ext <<EOF
6798 #line 6799 "configure"
6799 #include "confdefs.h"
6800 /* Override any gcc2 internal prototype to avoid an error. */
6801 /* We use char because int might match the return type of a gcc2
6802 builtin and then its argument prototype would still apply. */
6809 if { (eval echo configure:6810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6811 eval "ac_cv_lib_$ac_lib_var=yes"
6813 echo "configure: failed program was:" >&5
6814 cat conftest.$ac_ext >&5
6816 eval "ac_cv_lib_$ac_lib_var=no"
6819 LIBS="$ac_save_LIBS"
6822 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6823 echo "$ac_t""yes" 1>&6
6824 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6826 echo "$ac_t""no" 1>&6
6827 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
6828 echo "configure:6829: checking for dld_link in -ldld" >&5
6829 ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-:%__p__%'`
6830 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6831 echo $ac_n "(cached) $ac_c" 1>&6
6833 ac_save_LIBS="$LIBS"
6835 cat > conftest.$ac_ext <<EOF
6836 #line 6837 "configure"
6837 #include "confdefs.h"
6838 /* Override any gcc2 internal prototype to avoid an error. */
6839 /* We use char because int might match the return type of a gcc2
6840 builtin and then its argument prototype would still apply. */
6847 if { (eval echo configure:6848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6849 eval "ac_cv_lib_$ac_lib_var=yes"
6851 echo "configure: failed program was:" >&5
6852 cat conftest.$ac_ext >&5
6854 eval "ac_cv_lib_$ac_lib_var=no"
6857 LIBS="$ac_save_LIBS"
6860 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6861 echo "$ac_t""yes" 1>&6
6862 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6864 echo "$ac_t""no" 1>&6
6888 if test "x$lt_cv_dlopen" != xno; then
6894 case $lt_cv_dlopen in
6896 save_CPPFLAGS="$CPPFLAGS"
6897 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6899 save_LDFLAGS="$LDFLAGS"
6900 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6903 LIBS="$lt_cv_dlopen_libs $LIBS"
6905 echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
6906 echo "configure:6907: checking whether a program can dlopen itself" >&5
6907 if eval "test \"\${lt_cv_dlopen_self+set}\" = set"; then
6908 echo $ac_n "(cached) $ac_c" 1>&6
6910 if test "$cross_compiling" = yes; then :
6911 lt_cv_dlopen_self=cross
6913 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6914 lt_status=$lt_dlunknown
6915 cat > conftest.$ac_ext <<EOF
6916 #line 6917 "configure"
6917 #include "confdefs.h"
6926 # define LT_DLGLOBAL RTLD_GLOBAL
6929 # define LT_DLGLOBAL DL_GLOBAL
6931 # define LT_DLGLOBAL 0
6935 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6936 find out it does not work in some platform. */
6937 #ifndef LT_DLLAZY_OR_NOW
6939 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6942 # define LT_DLLAZY_OR_NOW DL_LAZY
6945 # define LT_DLLAZY_OR_NOW RTLD_NOW
6948 # define LT_DLLAZY_OR_NOW DL_NOW
6950 # define LT_DLLAZY_OR_NOW 0
6958 extern "C" void exit (int);
6961 void fnord() { int i=42;}
6964 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6965 int status = $lt_dlunknown;
6969 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6970 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6971 /* dlclose (self); */
6977 if { (eval echo configure:6978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
6978 (./conftest; exit; ) 2>/dev/null
6981 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
6982 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
6983 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
6986 # compilation failed
6987 lt_cv_dlopen_self=no
6995 echo "$ac_t""$lt_cv_dlopen_self" 1>&6
6997 if test "x$lt_cv_dlopen_self" = xyes; then
6998 LDFLAGS="$LDFLAGS $link_static_flag"
6999 echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
7000 echo "configure:7001: checking whether a statically linked program can dlopen itself" >&5
7001 if eval "test \"\${lt_cv_dlopen_self_static+set}\" = set"; then
7002 echo $ac_n "(cached) $ac_c" 1>&6
7004 if test "$cross_compiling" = yes; then :
7005 lt_cv_dlopen_self_static=cross
7007 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7008 lt_status=$lt_dlunknown
7009 cat > conftest.$ac_ext <<EOF
7010 #line 7011 "configure"
7011 #include "confdefs.h"
7020 # define LT_DLGLOBAL RTLD_GLOBAL
7023 # define LT_DLGLOBAL DL_GLOBAL
7025 # define LT_DLGLOBAL 0
7029 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7030 find out it does not work in some platform. */
7031 #ifndef LT_DLLAZY_OR_NOW
7033 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7036 # define LT_DLLAZY_OR_NOW DL_LAZY
7039 # define LT_DLLAZY_OR_NOW RTLD_NOW
7042 # define LT_DLLAZY_OR_NOW DL_NOW
7044 # define LT_DLLAZY_OR_NOW 0
7052 extern "C" void exit (int);
7055 void fnord() { int i=42;}
7058 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7059 int status = $lt_dlunknown;
7063 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7064 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7065 /* dlclose (self); */
7071 if { (eval echo configure:7072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
7072 (./conftest; exit; ) 2>/dev/null
7075 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7076 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7077 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7080 # compilation failed
7081 lt_cv_dlopen_self_static=no
7089 echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6
7092 CPPFLAGS="$save_CPPFLAGS"
7093 LDFLAGS="$save_LDFLAGS"
7098 case $lt_cv_dlopen_self in
7099 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7100 *) enable_dlopen_self=unknown ;;
7103 case $lt_cv_dlopen_self_static in
7104 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7105 *) enable_dlopen_self_static=unknown ;;
7110 if test "$enable_shared" = yes && test "$GCC" = yes; then
7111 case $archive_cmds in
7113 # FIXME: we may have to deal with multi-command sequences.
7116 # Test whether the compiler implicitly links with -lc since on some
7117 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7118 # to ld, don't add -lc before -lgcc.
7119 echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6
7120 echo "configure:7121: checking whether -lc should be explicitly linked in" >&5
7121 if eval "test \"\${lt_cv_archive_cmds_need_lc+set}\" = set"; then
7122 echo $ac_n "(cached) $ac_c" 1>&6
7125 echo 'static int dummy;' > conftest.$ac_ext
7127 if { (eval echo configure:7128: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7130 libobjs=conftest.$ac_objext
7132 wl=$lt_cv_prog_cc_wl
7138 save_allow_undefined_flag=$allow_undefined_flag
7139 allow_undefined_flag=
7140 if { (eval echo configure:7141: \"$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; }
7142 lt_cv_archive_cmds_need_lc=no
7144 lt_cv_archive_cmds_need_lc=yes
7146 allow_undefined_flag=$save_allow_undefined_flag
7148 cat conftest.err 1>&5
7152 echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6
7156 need_lc=${lt_cv_archive_cmds_need_lc-yes}
7158 # The second clause should only fire when bootstrapping the
7159 # libtool distribution, otherwise you forgot to ship ltmain.sh
7160 # with your package, and you will get complaints that there are
7161 # no rules to generate ltmain.sh.
7162 if test -f "$ltmain"; then
7165 # If there is no Makefile yet, we rely on a make rule to execute
7166 # `config.status --recheck' to rerun these tests and create the
7167 # libtool script then.
7168 test -f Makefile && make "$ltmain"
7171 if test -f "$ltmain"; then
7172 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7175 echo creating $ofile
7177 # Now quote all the things that may contain metacharacters while being
7178 # careful not to overquote the AC_SUBSTed values. We take copies of the
7179 # variables and quote the copies for generation of the libtool script.
7180 for var in echo old_CC old_CFLAGS SED \
7181 AR AR_FLAGS CC LD LN_S NM SHELL \
7182 reload_flag reload_cmds wl \
7183 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7184 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7185 library_names_spec soname_spec \
7186 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7187 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7188 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7189 old_striplib striplib file_magic_cmd export_symbols_cmds \
7190 deplibs_check_method allow_undefined_flag no_undefined_flag \
7191 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7192 global_symbol_to_c_name_address \
7193 hardcode_libdir_flag_spec hardcode_libdir_separator \
7194 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7195 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7198 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7199 old_postinstall_cmds | old_postuninstall_cmds | \
7200 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7201 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7202 postinstall_cmds | postuninstall_cmds | \
7203 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7204 # Double-quote double-evaled strings.
7205 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7208 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7213 cat <<__EOF__ > "${ofile}T"
7216 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7217 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7218 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7220 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7221 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7223 # This program is free software; you can redistribute it and/or modify
7224 # it under the terms of the GNU General Public License as published by
7225 # the Free Software Foundation; either version 2 of the License, or
7226 # (at your option) any later version.
7228 # This program is distributed in the hope that it will be useful, but
7229 # WITHOUT ANY WARRANTY; without even the implied warranty of
7230 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7231 # General Public License for more details.
7233 # You should have received a copy of the GNU General Public License
7234 # along with this program; if not, write to the Free Software
7235 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7237 # As a special exception to the GNU General Public License, if you
7238 # distribute this file as part of a program that contains a
7239 # configuration script generated by Autoconf, you may include it under
7240 # the same distribution terms that you use for the rest of that program.
7242 # A sed that does not truncate output.
7245 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7246 Xsed="${SED} -e s/^X//"
7248 # The HP-UX ksh and POSIX shell print the target directory to stdout
7250 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7252 # ### BEGIN LIBTOOL CONFIG
7254 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7256 # Shell to use when invoking shell scripts.
7259 # Whether or not to build shared libraries.
7260 build_libtool_libs=$enable_shared
7262 # Whether or not to build static libraries.
7263 build_old_libs=$enable_static
7265 # Whether or not to add -lc for building shared libraries.
7266 build_libtool_need_lc=$need_lc
7268 # Whether or not to optimize for fast installation.
7269 fast_install=$enable_fast_install
7272 host_alias=$host_alias
7275 # An echo program that does not interpret backslashes.
7280 AR_FLAGS=$lt_AR_FLAGS
7282 # The default C compiler.
7285 # Is the compiler the GNU C compiler?
7288 # The linker used to build libraries.
7291 # Whether we need hard or soft links.
7294 # A BSD-compatible nm program.
7297 # A symbol stripping program
7300 # Used to examine libraries when file_magic_cmd begins "file"
7301 MAGIC_CMD=$MAGIC_CMD
7303 # Used on cygwin: DLL creation program.
7306 # Used on cygwin: object dumper.
7309 # Used on cygwin: assembler.
7312 # The name of the directory that contains temporary libtool files.
7315 # How to create reloadable object files.
7316 reload_flag=$lt_reload_flag
7317 reload_cmds=$lt_reload_cmds
7319 # How to pass a linker flag through the compiler.
7322 # Object file suffix (normally "o").
7325 # Old archive suffix (normally "a").
7328 # Executable file suffix (normally "").
7331 # Additional compiler flags for building library objects.
7332 pic_flag=$lt_pic_flag
7335 # Does compiler simultaneously support -c and -o options?
7336 compiler_c_o=$lt_compiler_c_o
7338 # Can we write directly to a .lo ?
7339 compiler_o_lo=$lt_compiler_o_lo
7341 # Must we lock files when doing compilation ?
7342 need_locks=$lt_need_locks
7344 # Do we need the lib prefix for modules?
7345 need_lib_prefix=$need_lib_prefix
7347 # Do we need a version for libraries?
7348 need_version=$need_version
7350 # Whether dlopen is supported.
7351 dlopen_support=$enable_dlopen
7353 # Whether dlopen of programs is supported.
7354 dlopen_self=$enable_dlopen_self
7356 # Whether dlopen of statically linked programs is supported.
7357 dlopen_self_static=$enable_dlopen_self_static
7359 # Compiler flag to prevent dynamic linking.
7360 link_static_flag=$lt_link_static_flag
7362 # Compiler flag to turn off builtin functions.
7363 no_builtin_flag=$lt_no_builtin_flag
7365 # Compiler flag to allow reflexive dlopens.
7366 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7368 # Compiler flag to generate shared objects directly from archives.
7369 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7371 # Compiler flag to generate thread-safe objects.
7372 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7374 # Library versioning type.
7375 version_type=$version_type
7377 # Format of library name prefix.
7378 libname_spec=$lt_libname_spec
7380 # List of archive names. First name is the real one, the rest are links.
7381 # The last name is the one that the linker finds with -lNAME.
7382 library_names_spec=$lt_library_names_spec
7384 # The coded name of the library, if different from the real name.
7385 soname_spec=$lt_soname_spec
7387 # Commands used to build and install an old-style archive.
7389 old_archive_cmds=$lt_old_archive_cmds
7390 old_postinstall_cmds=$lt_old_postinstall_cmds
7391 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7393 # Create an old-style archive from a shared archive.
7394 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7396 # Create a temporary old-style archive to link instead of a shared archive.
7397 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7399 # Commands used to build and install a shared archive.
7400 archive_cmds=$lt_archive_cmds
7401 archive_expsym_cmds=$lt_archive_expsym_cmds
7402 postinstall_cmds=$lt_postinstall_cmds
7403 postuninstall_cmds=$lt_postuninstall_cmds
7405 # Commands to strip libraries.
7406 old_striplib=$lt_old_striplib
7407 striplib=$lt_striplib
7409 # Method to check whether dependent libraries are shared objects.
7410 deplibs_check_method=$lt_deplibs_check_method
7412 # Command to use when deplibs_check_method == file_magic.
7413 file_magic_cmd=$lt_file_magic_cmd
7415 # Flag that allows shared libraries with undefined symbols to be built.
7416 allow_undefined_flag=$lt_allow_undefined_flag
7418 # Flag that forces no undefined symbols.
7419 no_undefined_flag=$lt_no_undefined_flag
7421 # Commands used to finish a libtool library installation in a directory.
7422 finish_cmds=$lt_finish_cmds
7424 # Same as above, but a single script fragment to be evaled but not shown.
7425 finish_eval=$lt_finish_eval
7427 # Take the output of nm and produce a listing of raw symbols and C names.
7428 global_symbol_pipe=$lt_global_symbol_pipe
7430 # Transform the output of nm in a proper C declaration
7431 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7433 # Transform the output of nm in a C name address pair
7434 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7436 # This is the shared library runtime path variable.
7437 runpath_var=$runpath_var
7439 # This is the shared library path variable.
7440 shlibpath_var=$shlibpath_var
7442 # Is shlibpath searched before the hard-coded library search path?
7443 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7445 # How to hardcode a shared library path into an executable.
7446 hardcode_action=$hardcode_action
7448 # Whether we should hardcode library paths into libraries.
7449 hardcode_into_libs=$hardcode_into_libs
7451 # Flag to hardcode \$libdir into a binary during linking.
7452 # This must work even if \$libdir does not exist.
7453 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7455 # Whether we need a single -rpath flag with a separated argument.
7456 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7458 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7460 hardcode_direct=$hardcode_direct
7462 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7464 hardcode_minus_L=$hardcode_minus_L
7466 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7467 # the resulting binary.
7468 hardcode_shlibpath_var=$hardcode_shlibpath_var
7470 # Variables whose values should be saved in libtool wrapper scripts and
7471 # restored at relink time.
7472 variables_saved_for_relink="$variables_saved_for_relink"
7474 # Whether libtool must link a program against all its dependency libraries.
7475 link_all_deplibs=$link_all_deplibs
7477 # Compile-time system search path for libraries
7478 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7480 # Run-time system search path for libraries
7481 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7483 # Fix the shell variable \$srcfile for the compiler.
7484 fix_srcfile_path="$fix_srcfile_path"
7486 # Set to yes if exported symbols are required.
7487 always_export_symbols=$always_export_symbols
7489 # The commands to list exported symbols.
7490 export_symbols_cmds=$lt_export_symbols_cmds
7492 # The commands to extract the exported symbol list from a shared archive.
7493 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7495 # Symbols that should not be listed in the preloaded symbols.
7496 exclude_expsyms=$lt_exclude_expsyms
7498 # Symbols that must always be exported.
7499 include_expsyms=$lt_include_expsyms
7501 # ### END LIBTOOL CONFIG
7507 cat <<\EOF >> "${ofile}T"
7509 # AIX sometimes has problems with the GCC collect2 program. For some
7510 # reason, if we set the COLLECT_NAMES environment variable, the problems
7511 # vanish in a puff of smoke.
7512 if test "X${COLLECT_NAMES+set}" != Xset; then
7514 export COLLECT_NAMES
7521 cygwin* | mingw* | pw32* | os2*)
7522 cat <<'EOF' >> "${ofile}T"
7523 # This is a source program that is used to create dlls on Windows
7524 # Don't remove nor modify the starting and closing comments
7525 # /* ltdll.c starts here */
7526 # #define WIN32_LEAN_AND_MEAN
7527 # #include <windows.h>
7528 # #undef WIN32_LEAN_AND_MEAN
7529 # #include <stdio.h>
7531 # #ifndef __CYGWIN__
7532 # # ifdef __CYGWIN32__
7533 # # define __CYGWIN__ __CYGWIN32__
7537 # #ifdef __cplusplus
7540 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7541 # #ifdef __cplusplus
7546 # #include <cygwin/cygwin_dll.h>
7547 # DECLARE_CYGWIN_DLL( DllMain );
7549 # HINSTANCE __hDllInstance_base;
7552 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7554 # __hDllInstance_base = hInst;
7557 # /* ltdll.c ends here */
7558 # This is a source program that is used to create import libraries
7559 # on Windows for dlls which lack them. Don't remove nor modify the
7560 # starting and closing comments
7561 # /* impgen.c starts here */
7562 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7564 # This file is part of GNU libtool.
7566 # This program is free software; you can redistribute it and/or modify
7567 # it under the terms of the GNU General Public License as published by
7568 # the Free Software Foundation; either version 2 of the License, or
7569 # (at your option) any later version.
7571 # This program is distributed in the hope that it will be useful,
7572 # but WITHOUT ANY WARRANTY; without even the implied warranty of
7573 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7574 # GNU General Public License for more details.
7576 # You should have received a copy of the GNU General Public License
7577 # along with this program; if not, write to the Free Software
7578 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7581 # #include <stdio.h> /* for printf() */
7582 # #include <unistd.h> /* for open(), lseek(), read() */
7583 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7584 # #include <string.h> /* for strdup() */
7586 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
7588 # #define O_BINARY 0
7591 # static unsigned int
7592 # pe_get16 (fd, offset)
7596 # unsigned char b[2];
7597 # lseek (fd, offset, SEEK_SET);
7599 # return b[0] + (b[1]<<8);
7602 # static unsigned int
7603 # pe_get32 (fd, offset)
7607 # unsigned char b[4];
7608 # lseek (fd, offset, SEEK_SET);
7610 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7613 # static unsigned int
7617 # unsigned char *b = ptr;
7618 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7627 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7628 # unsigned long export_rva, export_size, nsections, secptr, expptr;
7629 # unsigned long name_rvas, nexp;
7630 # unsigned char *expdata, *erva;
7631 # char *filename, *dll_name;
7633 # filename = argv[1];
7635 # dll = open(filename, O_RDONLY|O_BINARY);
7639 # dll_name = filename;
7641 # for (i=0; filename[i]; i++)
7642 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7643 # dll_name = filename + i +1;
7645 # pe_header_offset = pe_get32 (dll, 0x3c);
7646 # opthdr_ofs = pe_header_offset + 4 + 20;
7647 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
7649 # if (num_entries < 1) /* no exports */
7652 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
7653 # export_size = pe_get32 (dll, opthdr_ofs + 100);
7654 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7655 # secptr = (pe_header_offset + 4 + 20 +
7656 # pe_get16 (dll, pe_header_offset + 4 + 16));
7659 # for (i = 0; i < nsections; i++)
7662 # unsigned long secptr1 = secptr + 40 * i;
7663 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7664 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7665 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7666 # lseek(dll, secptr1, SEEK_SET);
7667 # read(dll, sname, 8);
7668 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
7670 # expptr = fptr + (export_rva - vaddr);
7671 # if (export_rva + export_size > vaddr + vsize)
7672 # export_size = vsize - (export_rva - vaddr);
7677 # expdata = (unsigned char*)malloc(export_size);
7678 # lseek (dll, expptr, SEEK_SET);
7679 # read (dll, expdata, export_size);
7680 # erva = expdata - export_rva;
7682 # nexp = pe_as32 (expdata+24);
7683 # name_rvas = pe_as32 (expdata+32);
7685 # printf ("EXPORTS\n");
7686 # for (i = 0; i<nexp; i++)
7688 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7689 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7694 # /* impgen.c ends here */
7700 # We use sed instead of cat because bash on DJGPP gets confused if
7701 # if finds mixed CR/LF and LF-only lines. Since sed operates in
7702 # text mode, it properly converts lines to CR/LF. This bash problem
7703 # is reportedly fixed, but why not run on old versions too?
7704 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7706 mv -f "${ofile}T" "$ofile" || \
7707 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7715 # This can be used to rebuild libtool when needed
7716 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7718 # Always use our own libtool.
7719 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7721 # Prevent multiple expansion
7726 if test $ol_enable_perl != no ; then
7727 # Extract the first word of "perl", so it can be a program name with args.
7728 set dummy perl; ac_word=$2
7729 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7730 echo "configure:7731: checking for $ac_word" >&5
7731 if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then
7732 echo $ac_n "(cached) $ac_c" 1>&6
7736 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
7739 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
7742 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7744 for ac_dir in $ac_dummy; do
7745 test -z "$ac_dir" && ac_dir=.
7746 if test -f $ac_dir/$ac_word; then
7747 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
7752 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
7756 PERLBIN="$ac_cv_path_PERLBIN"
7757 if test -n "$PERLBIN"; then
7758 echo "$ac_t""$PERLBIN" 1>&6
7760 echo "$ac_t""no" 1>&6
7764 if test "no$PERLBIN" = "no" ; then
7765 if test $ol_enable_perl = yes ; then
7766 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
7770 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
7771 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
7773 if test x"$ol_enable_perl" = "xyes" ; then
7774 SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
7776 MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
7782 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
7783 echo "configure:7784: checking how to run the C preprocessor" >&5
7784 # On Suns, sometimes $CPP names a directory.
7785 if test -n "$CPP" && test -d "$CPP"; then
7788 if test -z "$CPP"; then
7789 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
7790 echo $ac_n "(cached) $ac_c" 1>&6
7792 # This must be in double quotes, not single quotes, because CPP may get
7793 # substituted into the Makefile and "${CC-cc}" will confuse make.
7795 # On the NeXT, cc -E runs the code through the compiler's parser,
7796 # not just through cpp.
7797 cat > conftest.$ac_ext <<EOF
7798 #line 7799 "configure"
7799 #include "confdefs.h"
7803 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7804 { (eval echo configure:7805: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7805 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7806 if test -z "$ac_err"; then
7810 echo "configure: failed program was:" >&5
7811 cat conftest.$ac_ext >&5
7813 CPP="${CC-cc} -E -traditional-cpp"
7814 cat > conftest.$ac_ext <<EOF
7815 #line 7816 "configure"
7816 #include "confdefs.h"
7820 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7821 { (eval echo configure:7822: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7822 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7823 if test -z "$ac_err"; then
7827 echo "configure: failed program was:" >&5
7828 cat conftest.$ac_ext >&5
7830 CPP="${CC-cc} -nologo -E"
7831 cat > conftest.$ac_ext <<EOF
7832 #line 7833 "configure"
7833 #include "confdefs.h"
7837 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7838 { (eval echo configure:7839: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7839 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7840 if test -z "$ac_err"; then
7844 echo "configure: failed program was:" >&5
7845 cat conftest.$ac_ext >&5
7854 ac_cv_prog_CPP="$CPP"
7856 CPP="$ac_cv_prog_CPP"
7858 ac_cv_prog_CPP="$CPP"
7860 echo "$ac_t""$CPP" 1>&6
7864 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
7865 echo "configure:7866: checking for Cygwin environment" >&5
7866 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
7867 echo $ac_n "(cached) $ac_c" 1>&6
7869 cat > conftest.$ac_ext <<EOF
7870 #line 7871 "configure"
7871 #include "confdefs.h"
7876 #define __CYGWIN__ __CYGWIN32__
7881 if { (eval echo configure:7882: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7885 echo "configure: failed program was:" >&5
7886 cat conftest.$ac_ext >&5
7893 echo "$ac_t""$ac_cv_cygwin" 1>&6
7895 test "$ac_cv_cygwin" = yes && CYGWIN=yes
7896 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
7897 echo "configure:7898: checking for mingw32 environment" >&5
7898 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
7899 echo $ac_n "(cached) $ac_c" 1>&6
7901 cat > conftest.$ac_ext <<EOF
7902 #line 7903 "configure"
7903 #include "confdefs.h"
7909 if { (eval echo configure:7910: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7913 echo "configure: failed program was:" >&5
7914 cat conftest.$ac_ext >&5
7921 echo "$ac_t""$ac_cv_mingw32" 1>&6
7923 test "$ac_cv_mingw32" = yes && MINGW32=yes
7927 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
7928 echo "configure:7929: checking for executable suffix" >&5
7929 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
7930 echo $ac_n "(cached) $ac_c" 1>&6
7932 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
7936 echo 'int main () { return 0; }' > conftest.$ac_ext
7938 if { (eval echo configure:7939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
7939 for file in conftest.*; do
7941 *.c | *.C | *.o | *.obj | *.xcoff) ;;
7942 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
7946 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
7949 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
7954 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
7955 echo "$ac_t""${ac_cv_exeext}" 1>&6
7958 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
7959 echo "configure:7960: checking for object suffix" >&5
7960 if eval "test \"\${ac_cv_objext+set}\" = set"; then
7961 echo $ac_n "(cached) $ac_c" 1>&6
7964 echo 'int i = 1;' > conftest.$ac_ext
7965 if { (eval echo configure:7966: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7966 for ac_file in conftest.*; do
7969 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
7973 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
7978 echo "$ac_t""$ac_cv_objext" 1>&6
7979 OBJEXT=$ac_cv_objext
7980 ac_objext=$ac_cv_objext
7983 cat >> confdefs.h <<EOF
7984 #define EXEEXT "${EXEEXT}"
7988 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
7989 echo "configure:7990: checking for be_app in -lbe" >&5
7990 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
7991 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
7992 echo $ac_n "(cached) $ac_c" 1>&6
7994 ac_save_LIBS="$LIBS"
7995 LIBS="-lbe -lroot -lnet $LIBS"
7996 cat > conftest.$ac_ext <<EOF
7997 #line 7998 "configure"
7998 #include "confdefs.h"
7999 /* Override any gcc2 internal prototype to avoid an error. */
8000 /* We use char because int might match the return type of a gcc2
8001 builtin and then its argument prototype would still apply. */
8008 if { (eval echo configure:8009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8010 eval "ac_cv_lib_$ac_lib_var=yes"
8012 echo "configure: failed program was:" >&5
8013 cat conftest.$ac_ext >&5
8015 eval "ac_cv_lib_$ac_lib_var=no"
8018 LIBS="$ac_save_LIBS"
8021 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8022 echo "$ac_t""yes" 1>&6
8023 LIBS="$LIBS -lbe -lroot -lnet"
8025 echo "$ac_t""no" 1>&6
8033 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
8034 echo "configure:8035: checking for ${CC-cc} option to accept ANSI C" >&5
8035 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
8036 echo $ac_n "(cached) $ac_c" 1>&6
8038 am_cv_prog_cc_stdc=no
8040 # Don't try gcc -ansi; that turns off useful extensions and
8041 # breaks some systems' header files.
8042 # AIX -qlanglvl=ansi
8043 # Ultrix and OSF/1 -std1
8044 # HP-UX 10.20 and later -Ae
8045 # HP-UX older versions -Aa -D_HPUX_SOURCE
8046 # SVR4 -Xc -D__EXTENSIONS__
8047 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
8049 CC="$ac_save_CC $ac_arg"
8050 cat > conftest.$ac_ext <<EOF
8051 #line 8052 "configure"
8052 #include "confdefs.h"
8055 #include <sys/types.h>
8056 #include <sys/stat.h>
8057 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
8058 struct buf { int x; };
8059 FILE * (*rcsopen) (struct buf *, struct stat *, int);
8060 static char *e (p, i)
8066 static char *f (char * (*g) (char **, int), char **p, ...)
8071 s = g (p, va_arg (v,int));
8075 int test (int i, double x);
8076 struct s1 {int (*f) (int a);};
8077 struct s2 {int (*f) (double a);};
8078 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
8084 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
8088 if { (eval echo configure:8089: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8090 am_cv_prog_cc_stdc="$ac_arg"; break
8092 echo "configure: failed program was:" >&5
8093 cat conftest.$ac_ext >&5
8101 if test -z "$am_cv_prog_cc_stdc"; then
8102 echo "$ac_t""none needed" 1>&6
8104 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
8106 case "x$am_cv_prog_cc_stdc" in
8108 *) CC="$CC $am_cv_prog_cc_stdc" ;;
8111 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
8112 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
8115 # test for make depend flag
8118 if test -z "${MKDEP}"; then
8120 if test -z "${MKDEP_FLAGS}"; then
8121 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
8122 echo "configure:8123: checking for ${OL_MKDEP} depend flag" >&5
8123 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
8124 echo $ac_n "(cached) $ac_c" 1>&6
8128 for flag in "-M" "-xM"; do
8129 cat > conftest.c <<EOF
8132 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:8133: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
8133 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
8135 if test ! -f conftest."${ac_object}" ; then
8137 OL_MKDEP_FLAGS="$flag"
8146 echo "$ac_t""$ol_cv_mkdep" 1>&6
8149 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
8154 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
8159 if test "${ol_cv_mkdep}" = no ; then
8160 # this will soon become an error
8161 echo "configure: warning: do not know how to generate dependencies" 1>&2
8164 echo $ac_n "checking for afopen in -ls""... $ac_c" 1>&6
8165 echo "configure:8166: checking for afopen in -ls" >&5
8166 ac_lib_var=`echo s'_'afopen | sed 'y%./+-:%__p__%'`
8167 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8168 echo $ac_n "(cached) $ac_c" 1>&6
8170 ac_save_LIBS="$LIBS"
8172 cat > conftest.$ac_ext <<EOF
8173 #line 8174 "configure"
8174 #include "confdefs.h"
8175 /* Override any gcc2 internal prototype to avoid an error. */
8176 /* We use char because int might match the return type of a gcc2
8177 builtin and then its argument prototype would still apply. */
8184 if { (eval echo configure:8185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8186 eval "ac_cv_lib_$ac_lib_var=yes"
8188 echo "configure: failed program was:" >&5
8189 cat conftest.$ac_ext >&5
8191 eval "ac_cv_lib_$ac_lib_var=no"
8194 LIBS="$ac_save_LIBS"
8197 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8198 echo "$ac_t""yes" 1>&6
8201 cat >> confdefs.h <<\EOF
8202 #define HAVE_AIX_SECURITY 1
8207 echo "$ac_t""no" 1>&6
8213 ac_cv_func_getopt=no
8214 cat >> confdefs.h <<\EOF
8215 #define BOTH_STRINGS_H 1
8222 WITH_MODULES_ENABLED=no
8223 if test $ol_enable_modules != no ; then
8224 for ac_hdr in ltdl.h
8226 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8227 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8228 echo "configure:8229: checking for $ac_hdr" >&5
8229 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8230 echo $ac_n "(cached) $ac_c" 1>&6
8232 cat > conftest.$ac_ext <<EOF
8233 #line 8234 "configure"
8234 #include "confdefs.h"
8237 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8238 { (eval echo configure:8239: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8239 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8240 if test -z "$ac_err"; then
8242 eval "ac_cv_header_$ac_safe=yes"
8245 echo "configure: failed program was:" >&5
8246 cat conftest.$ac_ext >&5
8248 eval "ac_cv_header_$ac_safe=no"
8252 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8253 echo "$ac_t""yes" 1>&6
8254 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8255 cat >> confdefs.h <<EOF
8256 #define $ac_tr_hdr 1
8260 echo "$ac_t""no" 1>&6
8265 if test $ac_cv_header_ltdl_h = no ; then
8266 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
8269 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
8270 echo "configure:8271: checking for lt_dlinit in -lltdl" >&5
8271 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
8272 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8273 echo $ac_n "(cached) $ac_c" 1>&6
8275 ac_save_LIBS="$LIBS"
8277 cat > conftest.$ac_ext <<EOF
8278 #line 8279 "configure"
8279 #include "confdefs.h"
8280 /* Override any gcc2 internal prototype to avoid an error. */
8281 /* We use char because int might match the return type of a gcc2
8282 builtin and then its argument prototype would still apply. */
8289 if { (eval echo configure:8290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8291 eval "ac_cv_lib_$ac_lib_var=yes"
8293 echo "configure: failed program was:" >&5
8294 cat conftest.$ac_ext >&5
8296 eval "ac_cv_lib_$ac_lib_var=no"
8299 LIBS="$ac_save_LIBS"
8302 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8303 echo "$ac_t""yes" 1>&6
8306 cat >> confdefs.h <<\EOF
8307 #define HAVE_LIBLTDL 1
8312 echo "$ac_t""no" 1>&6
8316 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
8317 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
8320 WITH_MODULES_ENABLED=yes
8323 for i in $Backends; do
8324 eval "ol_tmp=\$ol_enable_$i"
8325 if test $ol_tmp = mod ; then
8326 echo "configure: warning: building static $i backend" 1>&2
8327 eval "ol_enable_$i=yes"
8330 for i in $Overlays; do
8331 eval "ol_tmp=\$ol_enable_$i"
8332 if test $ol_tmp = mod ; then
8333 echo "configure: warning: building static $i overlay" 1>&2
8334 eval "ol_enable_$i=yes"
8340 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
8341 echo "configure:8342: checking for EBCDIC" >&5
8342 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
8343 echo $ac_n "(cached) $ac_c" 1>&6
8346 cat > conftest.$ac_ext <<EOF
8347 #line 8348 "configure"
8348 #include "confdefs.h"
8351 #include <__ASCII__/generate_error.h>
8355 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8356 { (eval echo configure:8357: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8357 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8358 if test -z "$ac_err"; then
8360 ol_cv_cpp_ebcdic=yes
8363 echo "configure: failed program was:" >&5
8364 cat conftest.$ac_ext >&5
8371 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
8372 if test $ol_cv_cpp_ebcdic = yes ; then
8373 cat >> confdefs.h <<\EOF
8374 #define HAVE_EBCDIC 1
8379 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
8380 echo "configure:8381: checking for ANSI C header files" >&5
8381 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
8382 echo $ac_n "(cached) $ac_c" 1>&6
8384 cat > conftest.$ac_ext <<EOF
8385 #line 8386 "configure"
8386 #include "confdefs.h"
8392 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8393 { (eval echo configure:8394: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8394 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8395 if test -z "$ac_err"; then
8397 ol_cv_header_stdc=yes
8400 echo "configure: failed program was:" >&5
8401 cat conftest.$ac_ext >&5
8403 ol_cv_header_stdc=no
8407 if test $ol_cv_header_stdc = yes; then
8408 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8409 cat > conftest.$ac_ext <<EOF
8410 #line 8411 "configure"
8411 #include "confdefs.h"
8414 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8415 egrep "memchr" >/dev/null 2>&1; then
8419 ol_cv_header_stdc=no
8425 if test $ol_cv_header_stdc = yes; then
8426 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8427 cat > conftest.$ac_ext <<EOF
8428 #line 8429 "configure"
8429 #include "confdefs.h"
8432 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8433 egrep "free" >/dev/null 2>&1; then
8437 ol_cv_header_stdc=no
8443 if test $ol_cv_header_stdc = yes; then
8444 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8445 if test "$cross_compiling" = yes; then
8448 cat > conftest.$ac_ext <<EOF
8449 #line 8450 "configure"
8450 #include "confdefs.h"
8453 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8454 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8456 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
8457 || ('j' <= (c) && (c) <= 'r') \
8458 || ('s' <= (c) && (c) <= 'z'))
8459 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8461 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8462 int main () { int i; for (i = 0; i < 256; i++)
8463 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
8467 if { (eval echo configure:8468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8471 echo "configure: failed program was:" >&5
8472 cat conftest.$ac_ext >&5
8474 ol_cv_header_stdc=no
8482 echo "$ac_t""$ol_cv_header_stdc" 1>&6
8483 if test $ol_cv_header_stdc = yes; then
8484 cat >> confdefs.h <<\EOF
8485 #define STDC_HEADERS 1
8489 ac_cv_header_stdc=disable
8492 if test $ol_cv_header_stdc != yes; then
8493 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
8497 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
8499 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8500 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
8501 echo "configure:8502: checking for $ac_hdr that defines DIR" >&5
8502 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
8503 echo $ac_n "(cached) $ac_c" 1>&6
8505 cat > conftest.$ac_ext <<EOF
8506 #line 8507 "configure"
8507 #include "confdefs.h"
8508 #include <sys/types.h>
8514 if { (eval echo configure:8515: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8516 eval "ac_cv_header_dirent_$ac_safe=yes"
8518 echo "configure: failed program was:" >&5
8519 cat conftest.$ac_ext >&5
8521 eval "ac_cv_header_dirent_$ac_safe=no"
8525 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
8526 echo "$ac_t""yes" 1>&6
8527 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8528 cat >> confdefs.h <<EOF
8529 #define $ac_tr_hdr 1
8531 ac_header_dirent=$ac_hdr; break
8533 echo "$ac_t""no" 1>&6
8536 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8537 if test $ac_header_dirent = dirent.h; then
8538 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
8539 echo "configure:8540: checking for opendir in -ldir" >&5
8540 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
8541 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8542 echo $ac_n "(cached) $ac_c" 1>&6
8544 ac_save_LIBS="$LIBS"
8546 cat > conftest.$ac_ext <<EOF
8547 #line 8548 "configure"
8548 #include "confdefs.h"
8549 /* Override any gcc2 internal prototype to avoid an error. */
8550 /* We use char because int might match the return type of a gcc2
8551 builtin and then its argument prototype would still apply. */
8558 if { (eval echo configure:8559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8560 eval "ac_cv_lib_$ac_lib_var=yes"
8562 echo "configure: failed program was:" >&5
8563 cat conftest.$ac_ext >&5
8565 eval "ac_cv_lib_$ac_lib_var=no"
8568 LIBS="$ac_save_LIBS"
8571 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8572 echo "$ac_t""yes" 1>&6
8575 echo "$ac_t""no" 1>&6
8579 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
8580 echo "configure:8581: checking for opendir in -lx" >&5
8581 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
8582 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8583 echo $ac_n "(cached) $ac_c" 1>&6
8585 ac_save_LIBS="$LIBS"
8587 cat > conftest.$ac_ext <<EOF
8588 #line 8589 "configure"
8589 #include "confdefs.h"
8590 /* Override any gcc2 internal prototype to avoid an error. */
8591 /* We use char because int might match the return type of a gcc2
8592 builtin and then its argument prototype would still apply. */
8599 if { (eval echo configure:8600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8601 eval "ac_cv_lib_$ac_lib_var=yes"
8603 echo "configure: failed program was:" >&5
8604 cat conftest.$ac_ext >&5
8606 eval "ac_cv_lib_$ac_lib_var=no"
8609 LIBS="$ac_save_LIBS"
8612 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8613 echo "$ac_t""yes" 1>&6
8616 echo "$ac_t""no" 1>&6
8621 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
8622 echo "configure:8623: checking for sys/wait.h that is POSIX.1 compatible" >&5
8623 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
8624 echo $ac_n "(cached) $ac_c" 1>&6
8626 cat > conftest.$ac_ext <<EOF
8627 #line 8628 "configure"
8628 #include "confdefs.h"
8629 #include <sys/types.h>
8630 #include <sys/wait.h>
8632 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8635 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8640 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8643 if { (eval echo configure:8644: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8645 ac_cv_header_sys_wait_h=yes
8647 echo "configure: failed program was:" >&5
8648 cat conftest.$ac_ext >&5
8650 ac_cv_header_sys_wait_h=no
8655 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
8656 if test $ac_cv_header_sys_wait_h = yes; then
8657 cat >> confdefs.h <<\EOF
8658 #define HAVE_SYS_WAIT_H 1
8663 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
8664 echo "configure:8665: checking POSIX termios" >&5
8665 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
8666 echo $ac_n "(cached) $ac_c" 1>&6
8668 cat > conftest.$ac_ext <<EOF
8669 #line 8670 "configure"
8670 #include "confdefs.h"
8671 #include <sys/types.h>
8673 #include <termios.h>
8675 /* SunOS 4.0.3 has termios.h but not the library calls. */
8679 if { (eval echo configure:8680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8681 am_cv_sys_posix_termios=yes
8683 echo "configure: failed program was:" >&5
8684 cat conftest.$ac_ext >&5
8686 am_cv_sys_posix_termios=no
8691 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
8694 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
8695 echo "configure:8696: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
8696 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
8697 echo $ac_n "(cached) $ac_c" 1>&6
8699 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
8701 gwinsz_in_termios_h=no
8702 if test $am_cv_sys_posix_termios = yes; then
8703 cat > conftest.$ac_ext <<EOF
8704 #line 8705 "configure"
8705 #include "confdefs.h"
8706 #include <sys/types.h>
8707 # include <termios.h>
8713 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8714 egrep "yes" >/dev/null 2>&1; then
8716 gwinsz_in_termios_h=yes
8722 if test $gwinsz_in_termios_h = no; then
8723 cat > conftest.$ac_ext <<EOF
8724 #line 8725 "configure"
8725 #include "confdefs.h"
8726 #include <sys/types.h>
8727 # include <sys/ioctl.h>
8733 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8734 egrep "yes" >/dev/null 2>&1; then
8736 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
8744 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
8745 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
8746 cat >> confdefs.h <<\EOF
8747 #define GWINSZ_IN_SYS_IOCTL 1
8752 if test $am_cv_sys_posix_termios = yes ; then
8753 cat >> confdefs.h <<\EOF
8754 #define HAVE_POSIX_TERMIOS 1
8810 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8811 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8812 echo "configure:8813: checking for $ac_hdr" >&5
8813 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8814 echo $ac_n "(cached) $ac_c" 1>&6
8816 cat > conftest.$ac_ext <<EOF
8817 #line 8818 "configure"
8818 #include "confdefs.h"
8821 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8822 { (eval echo configure:8823: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8823 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8824 if test -z "$ac_err"; then
8826 eval "ac_cv_header_$ac_safe=yes"
8829 echo "configure: failed program was:" >&5
8830 cat conftest.$ac_ext >&5
8832 eval "ac_cv_header_$ac_safe=no"
8836 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8837 echo "$ac_t""yes" 1>&6
8838 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8839 cat >> confdefs.h <<EOF
8840 #define $ac_tr_hdr 1
8844 echo "$ac_t""no" 1>&6
8851 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
8852 echo "configure:8853: checking for sigset in -lV3" >&5
8853 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
8854 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8855 echo $ac_n "(cached) $ac_c" 1>&6
8857 ac_save_LIBS="$LIBS"
8859 cat > conftest.$ac_ext <<EOF
8860 #line 8861 "configure"
8861 #include "confdefs.h"
8862 /* Override any gcc2 internal prototype to avoid an error. */
8863 /* We use char because int might match the return type of a gcc2
8864 builtin and then its argument prototype would still apply. */
8871 if { (eval echo configure:8872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8873 eval "ac_cv_lib_$ac_lib_var=yes"
8875 echo "configure: failed program was:" >&5
8876 cat conftest.$ac_ext >&5
8878 eval "ac_cv_lib_$ac_lib_var=no"
8881 LIBS="$ac_save_LIBS"
8884 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8885 echo "$ac_t""yes" 1>&6
8886 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8887 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8888 cat >> confdefs.h <<EOF
8889 #define $ac_tr_lib 1
8895 echo "$ac_t""no" 1>&6
8899 if test "$ac_cv_header_winsock_h" = yes; then
8900 echo $ac_n "checking for winsock""... $ac_c" 1>&6
8901 echo "configure:8902: checking for winsock" >&5
8902 if eval "test \"\${ol_cv_winsock+set}\" = set"; then
8903 echo $ac_n "(cached) $ac_c" 1>&6
8906 for curlib in ws2_32 wsock32; do
8907 LIBS="$LIBS -l$curlib"
8908 cat > conftest.$ac_ext <<EOF
8909 #line 8910 "configure"
8910 #include "confdefs.h"
8911 #include <winsock.h>
8916 select(0,NULL,NULL,NULL,NULL);
8918 gethostname(NULL,0);
8922 if { (eval echo configure:8923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8926 echo "configure: failed program was:" >&5
8927 cat conftest.$ac_ext >&5
8933 if test $ol_cv_winsock = yes; then
8934 cat >> confdefs.h <<\EOF
8935 #define HAVE_WINSOCK 1
8938 ac_cv_func_socket=yes
8939 ac_cv_func_select=yes
8940 ac_cv_func_closesocket=yes
8941 ac_cv_func_gethostname=yes
8942 if test $curlib = ws2_32; then
8943 ol_cv_winsock=winsock2
8944 cat >> confdefs.h <<\EOF
8945 #define HAVE_WINSOCK2 1
8955 echo "$ac_t""$ol_cv_winsock" 1>&6
8959 echo $ac_n "checking for socket""... $ac_c" 1>&6
8960 echo "configure:8961: checking for socket" >&5
8961 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
8962 echo $ac_n "(cached) $ac_c" 1>&6
8964 cat > conftest.$ac_ext <<EOF
8965 #line 8966 "configure"
8966 #include "confdefs.h"
8967 /* System header to define __stub macros and hopefully few prototypes,
8968 which can conflict with char socket(); below. */
8970 /* Override any gcc2 internal prototype to avoid an error. */
8971 /* We use char because int might match the return type of a gcc2
8972 builtin and then its argument prototype would still apply. */
8978 /* The GNU C library defines this for functions which it implements
8979 to always fail with ENOSYS. Some functions are actually named
8980 something starting with __ and the normal name is an alias. */
8981 #if defined (__stub_socket) || defined (__stub___socket)
8989 if { (eval echo configure:8990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8991 eval "ac_cv_func_socket=yes"
8993 echo "configure: failed program was:" >&5
8994 cat conftest.$ac_ext >&5
8996 eval "ac_cv_func_socket=no"
9001 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
9002 echo "$ac_t""yes" 1>&6
9005 echo "$ac_t""no" 1>&6
9007 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
9008 echo "configure:9009: checking for main in -lsocket" >&5
9009 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
9010 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9011 echo $ac_n "(cached) $ac_c" 1>&6
9013 ac_save_LIBS="$LIBS"
9014 LIBS="-lsocket $LIBS"
9015 cat > conftest.$ac_ext <<EOF
9016 #line 9017 "configure"
9017 #include "confdefs.h"
9023 if { (eval echo configure:9024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9025 eval "ac_cv_lib_$ac_lib_var=yes"
9027 echo "configure: failed program was:" >&5
9028 cat conftest.$ac_ext >&5
9030 eval "ac_cv_lib_$ac_lib_var=no"
9033 LIBS="$ac_save_LIBS"
9036 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9037 echo "$ac_t""yes" 1>&6
9038 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9039 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9040 cat >> confdefs.h <<EOF
9041 #define $ac_tr_lib 1
9044 LIBS="-lsocket $LIBS"
9047 echo "$ac_t""no" 1>&6
9050 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
9051 echo "configure:9052: checking for main in -lnet" >&5
9052 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
9053 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9054 echo $ac_n "(cached) $ac_c" 1>&6
9056 ac_save_LIBS="$LIBS"
9058 cat > conftest.$ac_ext <<EOF
9059 #line 9060 "configure"
9060 #include "confdefs.h"
9066 if { (eval echo configure:9067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9068 eval "ac_cv_lib_$ac_lib_var=yes"
9070 echo "configure: failed program was:" >&5
9071 cat conftest.$ac_ext >&5
9073 eval "ac_cv_lib_$ac_lib_var=no"
9076 LIBS="$ac_save_LIBS"
9079 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9080 echo "$ac_t""yes" 1>&6
9081 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9082 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9083 cat >> confdefs.h <<EOF
9084 #define $ac_tr_lib 1
9090 echo "$ac_t""no" 1>&6
9093 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
9094 echo "configure:9095: checking for main in -lnsl_s" >&5
9095 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
9096 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9097 echo $ac_n "(cached) $ac_c" 1>&6
9099 ac_save_LIBS="$LIBS"
9100 LIBS="-lnsl_s $LIBS"
9101 cat > conftest.$ac_ext <<EOF
9102 #line 9103 "configure"
9103 #include "confdefs.h"
9109 if { (eval echo configure:9110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9111 eval "ac_cv_lib_$ac_lib_var=yes"
9113 echo "configure: failed program was:" >&5
9114 cat conftest.$ac_ext >&5
9116 eval "ac_cv_lib_$ac_lib_var=no"
9119 LIBS="$ac_save_LIBS"
9122 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9123 echo "$ac_t""yes" 1>&6
9124 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9125 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9126 cat >> confdefs.h <<EOF
9127 #define $ac_tr_lib 1
9130 LIBS="-lnsl_s $LIBS"
9133 echo "$ac_t""no" 1>&6
9136 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
9137 echo "configure:9138: checking for main in -lnsl" >&5
9138 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
9139 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9140 echo $ac_n "(cached) $ac_c" 1>&6
9142 ac_save_LIBS="$LIBS"
9144 cat > conftest.$ac_ext <<EOF
9145 #line 9146 "configure"
9146 #include "confdefs.h"
9152 if { (eval echo configure:9153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9154 eval "ac_cv_lib_$ac_lib_var=yes"
9156 echo "configure: failed program was:" >&5
9157 cat conftest.$ac_ext >&5
9159 eval "ac_cv_lib_$ac_lib_var=no"
9162 LIBS="$ac_save_LIBS"
9165 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9166 echo "$ac_t""yes" 1>&6
9167 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9168 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9169 cat >> confdefs.h <<EOF
9170 #define $ac_tr_lib 1
9176 echo "$ac_t""no" 1>&6
9179 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
9180 echo "configure:9181: checking for socket in -linet" >&5
9181 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
9182 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9183 echo $ac_n "(cached) $ac_c" 1>&6
9185 ac_save_LIBS="$LIBS"
9187 cat > conftest.$ac_ext <<EOF
9188 #line 9189 "configure"
9189 #include "confdefs.h"
9190 /* Override any gcc2 internal prototype to avoid an error. */
9191 /* We use char because int might match the return type of a gcc2
9192 builtin and then its argument prototype would still apply. */
9199 if { (eval echo configure:9200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9201 eval "ac_cv_lib_$ac_lib_var=yes"
9203 echo "configure: failed program was:" >&5
9204 cat conftest.$ac_ext >&5
9206 eval "ac_cv_lib_$ac_lib_var=no"
9209 LIBS="$ac_save_LIBS"
9212 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9213 echo "$ac_t""yes" 1>&6
9214 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9215 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9216 cat >> confdefs.h <<EOF
9217 #define $ac_tr_lib 1
9223 echo "$ac_t""no" 1>&6
9226 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
9227 echo "configure:9228: checking for main in -lgen" >&5
9228 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
9229 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9230 echo $ac_n "(cached) $ac_c" 1>&6
9232 ac_save_LIBS="$LIBS"
9234 cat > conftest.$ac_ext <<EOF
9235 #line 9236 "configure"
9236 #include "confdefs.h"
9242 if { (eval echo configure:9243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9244 eval "ac_cv_lib_$ac_lib_var=yes"
9246 echo "configure: failed program was:" >&5
9247 cat conftest.$ac_ext >&5
9249 eval "ac_cv_lib_$ac_lib_var=no"
9252 LIBS="$ac_save_LIBS"
9255 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9256 echo "$ac_t""yes" 1>&6
9257 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9258 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9259 cat >> confdefs.h <<EOF
9260 #define $ac_tr_lib 1
9266 echo "$ac_t""no" 1>&6
9273 echo $ac_n "checking for select""... $ac_c" 1>&6
9274 echo "configure:9275: checking for select" >&5
9275 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
9276 echo $ac_n "(cached) $ac_c" 1>&6
9278 cat > conftest.$ac_ext <<EOF
9279 #line 9280 "configure"
9280 #include "confdefs.h"
9281 /* System header to define __stub macros and hopefully few prototypes,
9282 which can conflict with char select(); below. */
9284 /* Override any gcc2 internal prototype to avoid an error. */
9285 /* We use char because int might match the return type of a gcc2
9286 builtin and then its argument prototype would still apply. */
9292 /* The GNU C library defines this for functions which it implements
9293 to always fail with ENOSYS. Some functions are actually named
9294 something starting with __ and the normal name is an alias. */
9295 #if defined (__stub_select) || defined (__stub___select)
9303 if { (eval echo configure:9304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9305 eval "ac_cv_func_select=yes"
9307 echo "configure: failed program was:" >&5
9308 cat conftest.$ac_ext >&5
9310 eval "ac_cv_func_select=no"
9315 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
9316 echo "$ac_t""yes" 1>&6
9319 echo "$ac_t""no" 1>&6
9320 { echo "configure: error: select() required." 1>&2; exit 1; }
9324 if test "${ac_cv_header_winsock_h}" != yes; then
9325 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
9326 echo "configure:9327: checking types of arguments for select()" >&5
9327 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
9328 echo $ac_n "(cached) $ac_c" 1>&6
9330 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
9331 echo $ac_n "(cached) $ac_c" 1>&6
9333 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
9334 echo $ac_n "(cached) $ac_c" 1>&6
9336 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
9337 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
9338 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
9339 cat > conftest.$ac_ext <<EOF
9340 #line 9341 "configure"
9341 #include "confdefs.h"
9342 #ifdef HAVE_SYS_TYPES_H
9343 #include <sys/types.h>
9345 #ifdef HAVE_SYS_TIME_H
9346 #include <sys/time.h>
9348 #ifdef HAVE_SYS_SELECT_H
9349 #include <sys/select.h>
9351 #ifdef HAVE_SYS_SOCKET_H
9352 #include <sys/socket.h>
9354 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);
9359 if { (eval echo configure:9360: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9361 ac_not_found=no ; break 3
9363 echo "configure: failed program was:" >&5
9364 cat conftest.$ac_ext >&5
9378 if test "$ac_not_found" = yes; then
9379 ac_cv_func_select_arg1=int
9380 ac_cv_func_select_arg234='int *'
9381 ac_cv_func_select_arg5='struct timeval *'
9383 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
9384 cat >> confdefs.h <<EOF
9385 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
9388 cat >> confdefs.h <<EOF
9389 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
9392 cat >> confdefs.h <<EOF
9393 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
9402 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9403 echo "configure:9404: checking for $ac_func" >&5
9404 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9405 echo $ac_n "(cached) $ac_c" 1>&6
9407 cat > conftest.$ac_ext <<EOF
9408 #line 9409 "configure"
9409 #include "confdefs.h"
9410 /* System header to define __stub macros and hopefully few prototypes,
9411 which can conflict with char $ac_func(); below. */
9413 /* Override any gcc2 internal prototype to avoid an error. */
9414 /* We use char because int might match the return type of a gcc2
9415 builtin and then its argument prototype would still apply. */
9421 /* The GNU C library defines this for functions which it implements
9422 to always fail with ENOSYS. Some functions are actually named
9423 something starting with __ and the normal name is an alias. */
9424 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9432 if { (eval echo configure:9433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9434 eval "ac_cv_func_$ac_func=yes"
9436 echo "configure: failed program was:" >&5
9437 cat conftest.$ac_ext >&5
9439 eval "ac_cv_func_$ac_func=no"
9444 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9445 echo "$ac_t""yes" 1>&6
9446 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9447 cat >> confdefs.h <<EOF
9448 #define $ac_tr_func 1
9452 echo "$ac_t""no" 1>&6
9456 for ac_hdr in poll.h
9458 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9459 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9460 echo "configure:9461: checking for $ac_hdr" >&5
9461 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9462 echo $ac_n "(cached) $ac_c" 1>&6
9464 cat > conftest.$ac_ext <<EOF
9465 #line 9466 "configure"
9466 #include "confdefs.h"
9469 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9470 { (eval echo configure:9471: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9471 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9472 if test -z "$ac_err"; then
9474 eval "ac_cv_header_$ac_safe=yes"
9477 echo "configure: failed program was:" >&5
9478 cat conftest.$ac_ext >&5
9480 eval "ac_cv_header_$ac_safe=no"
9484 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9485 echo "$ac_t""yes" 1>&6
9486 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9487 cat >> confdefs.h <<EOF
9488 #define $ac_tr_hdr 1
9492 echo "$ac_t""no" 1>&6
9497 for ac_hdr in sys/epoll.h
9499 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9500 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9501 echo "configure:9502: checking for $ac_hdr" >&5
9502 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9503 echo $ac_n "(cached) $ac_c" 1>&6
9505 cat > conftest.$ac_ext <<EOF
9506 #line 9507 "configure"
9507 #include "confdefs.h"
9510 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9511 { (eval echo configure:9512: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9512 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9513 if test -z "$ac_err"; then
9515 eval "ac_cv_header_$ac_safe=yes"
9518 echo "configure: failed program was:" >&5
9519 cat conftest.$ac_ext >&5
9521 eval "ac_cv_header_$ac_safe=no"
9525 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9526 echo "$ac_t""yes" 1>&6
9527 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9528 cat >> confdefs.h <<EOF
9529 #define $ac_tr_hdr 1
9533 echo "$ac_t""no" 1>&6
9537 if test "${ac_cv_header_sys_epoll_h}" = yes; then
9538 echo $ac_n "checking for epoll system call""... $ac_c" 1>&6
9539 echo "configure:9540: checking for epoll system call" >&5
9540 if test "$cross_compiling" = yes; then
9541 echo "$ac_t""no" 1>&6
9543 cat > conftest.$ac_ext <<EOF
9544 #line 9545 "configure"
9545 #include "confdefs.h"
9546 int main(int argc, char *argv)
9548 int epfd = epoll_create(256);
9549 exit (epfd == -1 ? 1 : 0);
9552 if { (eval echo configure:9553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9554 echo "$ac_t""yes" 1>&6
9555 cat >> confdefs.h <<\EOF
9556 #define HAVE_EPOLL 1
9560 echo "configure: failed program was:" >&5
9561 cat conftest.$ac_ext >&5
9563 echo "$ac_t""no" 1>&6
9571 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
9572 echo "configure:9573: checking declaration of sys_errlist" >&5
9573 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
9574 echo $ac_n "(cached) $ac_c" 1>&6
9577 cat > conftest.$ac_ext <<EOF
9578 #line 9579 "configure"
9579 #include "confdefs.h"
9582 #include <sys/types.h>
9588 char *c = (char *) *sys_errlist
9591 if { (eval echo configure:9592: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9593 ol_cv_dcl_sys_errlist=yes
9594 ol_cv_have_sys_errlist=yes
9596 echo "configure: failed program was:" >&5
9597 cat conftest.$ac_ext >&5
9599 ol_cv_dcl_sys_errlist=no
9604 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
9606 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
9607 if test $ol_cv_dcl_sys_errlist = no ; then
9608 cat >> confdefs.h <<\EOF
9609 #define DECL_SYS_ERRLIST 1
9613 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
9614 echo "configure:9615: checking existence of sys_errlist" >&5
9615 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
9616 echo $ac_n "(cached) $ac_c" 1>&6
9619 cat > conftest.$ac_ext <<EOF
9620 #line 9621 "configure"
9621 #include "confdefs.h"
9624 char *c = (char *) *sys_errlist
9627 if { (eval echo configure:9628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9629 ol_cv_have_sys_errlist=yes
9631 echo "configure: failed program was:" >&5
9632 cat conftest.$ac_ext >&5
9634 ol_cv_have_sys_errlist=no
9639 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
9641 if test $ol_cv_have_sys_errlist = yes ; then
9642 cat >> confdefs.h <<\EOF
9643 #define HAVE_SYS_ERRLIST 1
9647 for ac_func in strerror strerror_r
9649 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9650 echo "configure:9651: checking for $ac_func" >&5
9651 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9652 echo $ac_n "(cached) $ac_c" 1>&6
9654 cat > conftest.$ac_ext <<EOF
9655 #line 9656 "configure"
9656 #include "confdefs.h"
9657 /* System header to define __stub macros and hopefully few prototypes,
9658 which can conflict with char $ac_func(); below. */
9660 /* Override any gcc2 internal prototype to avoid an error. */
9661 /* We use char because int might match the return type of a gcc2
9662 builtin and then its argument prototype would still apply. */
9668 /* The GNU C library defines this for functions which it implements
9669 to always fail with ENOSYS. Some functions are actually named
9670 something starting with __ and the normal name is an alias. */
9671 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9679 if { (eval echo configure:9680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9681 eval "ac_cv_func_$ac_func=yes"
9683 echo "configure: failed program was:" >&5
9684 cat conftest.$ac_ext >&5
9686 eval "ac_cv_func_$ac_func=no"
9691 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9692 echo "$ac_t""yes" 1>&6
9693 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9694 cat >> confdefs.h <<EOF
9695 #define $ac_tr_func 1
9699 echo "$ac_t""no" 1>&6
9703 ol_cv_func_strerror_r=no
9704 if test "${ac_cv_func_strerror_r}" = yes ; then
9705 echo $ac_n "checking non-posix strerror_r""... $ac_c" 1>&6
9706 echo "configure:9707: checking non-posix strerror_r" >&5
9707 if eval "test \"\${ol_cv_nonposix_strerror_r+set}\" = set"; then
9708 echo $ac_n "(cached) $ac_c" 1>&6
9711 cat > conftest.$ac_ext <<EOF
9712 #line 9713 "configure"
9713 #include "confdefs.h"
9716 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9717 egrep "strerror_r" >/dev/null 2>&1; then
9719 ol_decl_strerror_r=yes
9722 ol_decl_strerror_r=no
9726 if test $ol_decl_strerror_r = yes ; then
9727 cat > conftest.$ac_ext <<EOF
9728 #line 9729 "configure"
9729 #include "confdefs.h"
9732 /* from autoconf 2.59 */
9734 char x = *strerror_r (0, buf, sizeof buf);
9735 char *p = strerror_r (0, buf, sizeof buf);
9739 if { (eval echo configure:9740: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9741 ol_cv_nonposix_strerror_r=yes
9743 echo "configure: failed program was:" >&5
9744 cat conftest.$ac_ext >&5
9746 ol_cv_nonposix_strerror_r=no
9750 if test "$cross_compiling" = yes; then
9751 ol_cv_nonposix_strerror=no
9753 cat > conftest.$ac_ext <<EOF
9754 #line 9755 "configure"
9755 #include "confdefs.h"
9760 strerror_r( 1, buf, sizeof buf );
9761 exit( buf[0] == 0 );
9765 if { (eval echo configure:9766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9767 ol_cv_nonposix_strerror_r=yes
9769 echo "configure: failed program was:" >&5
9770 cat conftest.$ac_ext >&5
9772 ol_cv_nonposix_strerror=no
9781 echo "$ac_t""$ol_cv_nonposix_strerror_r" 1>&6
9782 if test $ol_cv_nonposix_strerror_r = yes ; then
9783 cat >> confdefs.h <<\EOF
9784 #define HAVE_NONPOSIX_STRERROR_R 1
9789 elif test "${ac_cv_func_strerror}" = no ; then
9790 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
9791 echo "configure:9792: checking declaration of sys_errlist" >&5
9792 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
9793 echo $ac_n "(cached) $ac_c" 1>&6
9796 cat > conftest.$ac_ext <<EOF
9797 #line 9798 "configure"
9798 #include "confdefs.h"
9801 #include <sys/types.h>
9807 char *c = (char *) *sys_errlist
9810 if { (eval echo configure:9811: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9812 ol_cv_dcl_sys_errlist=yes
9813 ol_cv_have_sys_errlist=yes
9815 echo "configure: failed program was:" >&5
9816 cat conftest.$ac_ext >&5
9818 ol_cv_dcl_sys_errlist=no
9823 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
9825 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
9826 if test $ol_cv_dcl_sys_errlist = no ; then
9827 cat >> confdefs.h <<\EOF
9828 #define DECL_SYS_ERRLIST 1
9832 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
9833 echo "configure:9834: checking existence of sys_errlist" >&5
9834 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
9835 echo $ac_n "(cached) $ac_c" 1>&6
9838 cat > conftest.$ac_ext <<EOF
9839 #line 9840 "configure"
9840 #include "confdefs.h"
9843 char *c = (char *) *sys_errlist
9846 if { (eval echo configure:9847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9848 ol_cv_have_sys_errlist=yes
9850 echo "configure: failed program was:" >&5
9851 cat conftest.$ac_ext >&5
9853 ol_cv_have_sys_errlist=no
9858 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
9860 if test $ol_cv_have_sys_errlist = yes ; then
9861 cat >> confdefs.h <<\EOF
9862 #define HAVE_SYS_ERRLIST 1
9870 for ac_hdr in regex.h
9872 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9873 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9874 echo "configure:9875: checking for $ac_hdr" >&5
9875 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9876 echo $ac_n "(cached) $ac_c" 1>&6
9878 cat > conftest.$ac_ext <<EOF
9879 #line 9880 "configure"
9880 #include "confdefs.h"
9883 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9884 { (eval echo configure:9885: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9885 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9886 if test -z "$ac_err"; then
9888 eval "ac_cv_header_$ac_safe=yes"
9891 echo "configure: failed program was:" >&5
9892 cat conftest.$ac_ext >&5
9894 eval "ac_cv_header_$ac_safe=no"
9898 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9899 echo "$ac_t""yes" 1>&6
9900 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9901 cat >> confdefs.h <<EOF
9902 #define $ac_tr_hdr 1
9906 echo "$ac_t""no" 1>&6
9910 if test "$ac_cv_header_regex_h" != yes ; then
9911 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
9914 echo $ac_n "checking for library containing regfree""... $ac_c" 1>&6
9915 echo "configure:9916: checking for library containing regfree" >&5
9916 if eval "test \"\${ac_cv_search_regfree+set}\" = set"; then
9917 echo $ac_n "(cached) $ac_c" 1>&6
9919 ac_func_search_save_LIBS="$LIBS"
9920 ac_cv_search_regfree="no"
9921 cat > conftest.$ac_ext <<EOF
9922 #line 9923 "configure"
9923 #include "confdefs.h"
9924 /* Override any gcc2 internal prototype to avoid an error. */
9925 /* We use char because int might match the return type of a gcc2
9926 builtin and then its argument prototype would still apply. */
9933 if { (eval echo configure:9934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9935 ac_cv_search_regfree="none required"
9937 echo "configure: failed program was:" >&5
9938 cat conftest.$ac_ext >&5
9941 test "$ac_cv_search_regfree" = "no" && for ac_lib in regex gnuregex; do
9942 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9943 cat > conftest.$ac_ext <<EOF
9944 #line 9945 "configure"
9945 #include "confdefs.h"
9946 /* Override any gcc2 internal prototype to avoid an error. */
9947 /* We use char because int might match the return type of a gcc2
9948 builtin and then its argument prototype would still apply. */
9955 if { (eval echo configure:9956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9957 ac_cv_search_regfree="-l$ac_lib"
9960 echo "configure: failed program was:" >&5
9961 cat conftest.$ac_ext >&5
9965 LIBS="$ac_func_search_save_LIBS"
9968 echo "$ac_t""$ac_cv_search_regfree" 1>&6
9969 if test "$ac_cv_search_regfree" != "no"; then
9970 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
9973 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
9977 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
9978 echo "configure:9979: checking for compatible POSIX regex" >&5
9979 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
9980 echo $ac_n "(cached) $ac_c" 1>&6
9983 if test "$cross_compiling" = yes; then
9984 ol_cv_c_posix_regex=cross
9986 cat > conftest.$ac_ext <<EOF
9987 #line 9988 "configure"
9988 #include "confdefs.h"
9990 #include <sys/types.h>
9992 static char *pattern, *string;
10000 if(regcomp(&re, pattern, 0)) {
10004 string = "ALL MATCH";
10006 rc = regexec(&re, string, 0, (void*)0, 0);
10013 if { (eval echo configure:10014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10015 ol_cv_c_posix_regex=yes
10017 echo "configure: failed program was:" >&5
10018 cat conftest.$ac_ext >&5
10020 ol_cv_c_posix_regex=no
10027 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
10029 if test "$ol_cv_c_posix_regex" = no ; then
10030 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
10035 for ac_hdr in sys/uuid.h
10037 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10038 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10039 echo "configure:10040: checking for $ac_hdr" >&5
10040 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10041 echo $ac_n "(cached) $ac_c" 1>&6
10043 cat > conftest.$ac_ext <<EOF
10044 #line 10045 "configure"
10045 #include "confdefs.h"
10048 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10049 { (eval echo configure:10050: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10050 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10051 if test -z "$ac_err"; then
10053 eval "ac_cv_header_$ac_safe=yes"
10056 echo "configure: failed program was:" >&5
10057 cat conftest.$ac_ext >&5
10059 eval "ac_cv_header_$ac_safe=no"
10063 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10064 echo "$ac_t""yes" 1>&6
10065 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10066 cat >> confdefs.h <<EOF
10067 #define $ac_tr_hdr 1
10071 echo "$ac_t""no" 1>&6
10075 if test $ac_cv_header_sys_uuid_h = yes ; then
10078 echo $ac_n "checking for library containing uuid_to_str""... $ac_c" 1>&6
10079 echo "configure:10080: checking for library containing uuid_to_str" >&5
10080 if eval "test \"\${ac_cv_search_uuid_to_str+set}\" = set"; then
10081 echo $ac_n "(cached) $ac_c" 1>&6
10083 ac_func_search_save_LIBS="$LIBS"
10084 ac_cv_search_uuid_to_str="no"
10085 cat > conftest.$ac_ext <<EOF
10086 #line 10087 "configure"
10087 #include "confdefs.h"
10088 /* Override any gcc2 internal prototype to avoid an error. */
10089 /* We use char because int might match the return type of a gcc2
10090 builtin and then its argument prototype would still apply. */
10091 char uuid_to_str();
10097 if { (eval echo configure:10098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10099 ac_cv_search_uuid_to_str="none required"
10101 echo "configure: failed program was:" >&5
10102 cat conftest.$ac_ext >&5
10105 test "$ac_cv_search_uuid_to_str" = "no" && for ac_lib in uuid; do
10106 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10107 cat > conftest.$ac_ext <<EOF
10108 #line 10109 "configure"
10109 #include "confdefs.h"
10110 /* Override any gcc2 internal prototype to avoid an error. */
10111 /* We use char because int might match the return type of a gcc2
10112 builtin and then its argument prototype would still apply. */
10113 char uuid_to_str();
10119 if { (eval echo configure:10120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10121 ac_cv_search_uuid_to_str="-l$ac_lib"
10124 echo "configure: failed program was:" >&5
10125 cat conftest.$ac_ext >&5
10129 LIBS="$ac_func_search_save_LIBS"
10132 echo "$ac_t""$ac_cv_search_uuid_to_str" 1>&6
10133 if test "$ac_cv_search_uuid_to_str" != "no"; then
10134 test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
10141 if test have_uuid = yes ; then
10142 cat >> confdefs.h <<\EOF
10143 #define HAVE_UUID_TO_STR 1
10147 test "$ac_cv_search_uuid_to_str" = "none required" || \
10148 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
10152 if test $have_uuid = no ; then
10153 echo $ac_n "checking to see if -lrpcrt4 is needed for win32 UUID support""... $ac_c" 1>&6
10154 echo "configure:10155: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
10156 LIBS="$LIBS -lrpcrt4"
10157 cat > conftest.$ac_ext <<EOF
10158 #line 10159 "configure"
10159 #include "confdefs.h"
10161 int __stdcall UuidCreate(void *);
10162 int __stdcall UuidToStringA(void *,void **);
10167 UuidToStringA(0,0);
10171 if { (eval echo configure:10172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10175 echo "configure: failed program was:" >&5
10176 cat conftest.$ac_ext >&5
10181 if test $need_rpcrt = yes; then
10182 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
10185 echo "$ac_t""$need_rpcrt" 1>&6
10189 echo $ac_n "checking for res_query""... $ac_c" 1>&6
10190 echo "configure:10191: checking for res_query" >&5
10191 if eval "test \"\${ac_cv_func_res_query+set}\" = set"; then
10192 echo $ac_n "(cached) $ac_c" 1>&6
10194 cat > conftest.$ac_ext <<EOF
10195 #line 10196 "configure"
10196 #include "confdefs.h"
10197 /* System header to define __stub macros and hopefully few prototypes,
10198 which can conflict with char res_query(); below. */
10199 #include <assert.h>
10200 /* Override any gcc2 internal prototype to avoid an error. */
10201 /* We use char because int might match the return type of a gcc2
10202 builtin and then its argument prototype would still apply. */
10208 /* The GNU C library defines this for functions which it implements
10209 to always fail with ENOSYS. Some functions are actually named
10210 something starting with __ and the normal name is an alias. */
10211 #if defined (__stub_res_query) || defined (__stub___res_query)
10219 if { (eval echo configure:10220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10221 eval "ac_cv_func_res_query=yes"
10223 echo "configure: failed program was:" >&5
10224 cat conftest.$ac_ext >&5
10226 eval "ac_cv_func_res_query=no"
10231 if eval "test \"`echo '$ac_cv_func_'res_query`\" = yes"; then
10232 echo "$ac_t""yes" 1>&6
10235 echo "$ac_t""no" 1>&6
10238 if test $ac_cv_func_res_query = no ; then
10239 echo $ac_n "checking for __res_query""... $ac_c" 1>&6
10240 echo "configure:10241: checking for __res_query" >&5
10241 if eval "test \"\${ac_cv_func___res_query+set}\" = set"; then
10242 echo $ac_n "(cached) $ac_c" 1>&6
10244 cat > conftest.$ac_ext <<EOF
10245 #line 10246 "configure"
10246 #include "confdefs.h"
10247 /* System header to define __stub macros and hopefully few prototypes,
10248 which can conflict with char __res_query(); below. */
10249 #include <assert.h>
10250 /* Override any gcc2 internal prototype to avoid an error. */
10251 /* We use char because int might match the return type of a gcc2
10252 builtin and then its argument prototype would still apply. */
10253 char __res_query();
10258 /* The GNU C library defines this for functions which it implements
10259 to always fail with ENOSYS. Some functions are actually named
10260 something starting with __ and the normal name is an alias. */
10261 #if defined (__stub___res_query) || defined (__stub_____res_query)
10269 if { (eval echo configure:10270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10271 eval "ac_cv_func___res_query=yes"
10273 echo "configure: failed program was:" >&5
10274 cat conftest.$ac_ext >&5
10276 eval "ac_cv_func___res_query=no"
10281 if eval "test \"`echo '$ac_cv_func_'__res_query`\" = yes"; then
10282 echo "$ac_t""yes" 1>&6
10285 echo "$ac_t""no" 1>&6
10288 ac_cv_func_res_query=$ac_cv_func___res_query
10291 if test $ac_cv_func_res_query = no ; then
10292 echo $ac_n "checking for res_query in -lbind""... $ac_c" 1>&6
10293 echo "configure:10294: checking for res_query in -lbind" >&5
10294 ac_lib_var=`echo bind'_'res_query | sed 'y%./+-:%__p__%'`
10295 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10296 echo $ac_n "(cached) $ac_c" 1>&6
10298 ac_save_LIBS="$LIBS"
10299 LIBS="-lbind $LIBS"
10300 cat > conftest.$ac_ext <<EOF
10301 #line 10302 "configure"
10302 #include "confdefs.h"
10303 /* Override any gcc2 internal prototype to avoid an error. */
10304 /* We use char because int might match the return type of a gcc2
10305 builtin and then its argument prototype would still apply. */
10312 if { (eval echo configure:10313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10314 eval "ac_cv_lib_$ac_lib_var=yes"
10316 echo "configure: failed program was:" >&5
10317 cat conftest.$ac_ext >&5
10319 eval "ac_cv_lib_$ac_lib_var=no"
10322 LIBS="$ac_save_LIBS"
10325 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10326 echo "$ac_t""yes" 1>&6
10327 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10328 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10329 cat >> confdefs.h <<EOF
10330 #define $ac_tr_lib 1
10333 LIBS="-lbind $LIBS"
10336 echo "$ac_t""no" 1>&6
10339 ac_cv_func_res_query=$ac_cv_lib_bind_res_query
10342 if test $ac_cv_func_res_query = no ; then
10343 echo $ac_n "checking for __res_query in -lbind""... $ac_c" 1>&6
10344 echo "configure:10345: checking for __res_query in -lbind" >&5
10345 ac_lib_var=`echo bind'_'__res_query | sed 'y%./+-:%__p__%'`
10346 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10347 echo $ac_n "(cached) $ac_c" 1>&6
10349 ac_save_LIBS="$LIBS"
10350 LIBS="-lbind $LIBS"
10351 cat > conftest.$ac_ext <<EOF
10352 #line 10353 "configure"
10353 #include "confdefs.h"
10354 /* Override any gcc2 internal prototype to avoid an error. */
10355 /* We use char because int might match the return type of a gcc2
10356 builtin and then its argument prototype would still apply. */
10357 char __res_query();
10363 if { (eval echo configure:10364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10365 eval "ac_cv_lib_$ac_lib_var=yes"
10367 echo "configure: failed program was:" >&5
10368 cat conftest.$ac_ext >&5
10370 eval "ac_cv_lib_$ac_lib_var=no"
10373 LIBS="$ac_save_LIBS"
10376 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10377 echo "$ac_t""yes" 1>&6
10378 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10379 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10380 cat >> confdefs.h <<EOF
10381 #define $ac_tr_lib 1
10384 LIBS="-lbind $LIBS"
10387 echo "$ac_t""no" 1>&6
10390 ac_cv_func_res_query=$ac_cv_lib_bind___res_query
10393 if test $ac_cv_func_res_query = no ; then
10394 echo $ac_n "checking for res_query in -lresolv""... $ac_c" 1>&6
10395 echo "configure:10396: checking for res_query in -lresolv" >&5
10396 ac_lib_var=`echo resolv'_'res_query | sed 'y%./+-:%__p__%'`
10397 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10398 echo $ac_n "(cached) $ac_c" 1>&6
10400 ac_save_LIBS="$LIBS"
10401 LIBS="-lresolv $LIBS"
10402 cat > conftest.$ac_ext <<EOF
10403 #line 10404 "configure"
10404 #include "confdefs.h"
10405 /* Override any gcc2 internal prototype to avoid an error. */
10406 /* We use char because int might match the return type of a gcc2
10407 builtin and then its argument prototype would still apply. */
10414 if { (eval echo configure:10415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10416 eval "ac_cv_lib_$ac_lib_var=yes"
10418 echo "configure: failed program was:" >&5
10419 cat conftest.$ac_ext >&5
10421 eval "ac_cv_lib_$ac_lib_var=no"
10424 LIBS="$ac_save_LIBS"
10427 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10428 echo "$ac_t""yes" 1>&6
10429 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10430 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10431 cat >> confdefs.h <<EOF
10432 #define $ac_tr_lib 1
10435 LIBS="-lresolv $LIBS"
10438 echo "$ac_t""no" 1>&6
10441 ac_cv_func_res_query=$ac_cv_lib_resolv_res_query
10444 if test $ac_cv_func_res_query = no ; then
10445 echo $ac_n "checking for __res_query in -lresolv""... $ac_c" 1>&6
10446 echo "configure:10447: checking for __res_query in -lresolv" >&5
10447 ac_lib_var=`echo resolv'_'__res_query | sed 'y%./+-:%__p__%'`
10448 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10449 echo $ac_n "(cached) $ac_c" 1>&6
10451 ac_save_LIBS="$LIBS"
10452 LIBS="-lresolv $LIBS"
10453 cat > conftest.$ac_ext <<EOF
10454 #line 10455 "configure"
10455 #include "confdefs.h"
10456 /* Override any gcc2 internal prototype to avoid an error. */
10457 /* We use char because int might match the return type of a gcc2
10458 builtin and then its argument prototype would still apply. */
10459 char __res_query();
10465 if { (eval echo configure:10466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10467 eval "ac_cv_lib_$ac_lib_var=yes"
10469 echo "configure: failed program was:" >&5
10470 cat conftest.$ac_ext >&5
10472 eval "ac_cv_lib_$ac_lib_var=no"
10475 LIBS="$ac_save_LIBS"
10478 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10479 echo "$ac_t""yes" 1>&6
10480 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10481 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10482 cat >> confdefs.h <<EOF
10483 #define $ac_tr_lib 1
10486 LIBS="-lresolv $LIBS"
10489 echo "$ac_t""no" 1>&6
10492 ac_cv_func_res_query=$ac_cv_lib_resolv___res_query
10495 if test $ac_cv_func_res_query = no ; then
10496 echo $ac_n "checking for _res_9_query in -lresolv""... $ac_c" 1>&6
10497 echo "configure:10498: checking for _res_9_query in -lresolv" >&5
10498 ac_lib_var=`echo resolv'_'_res_9_query | sed 'y%./+-:%__p__%'`
10499 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10500 echo $ac_n "(cached) $ac_c" 1>&6
10502 ac_save_LIBS="$LIBS"
10503 LIBS="-lresolv $LIBS"
10504 cat > conftest.$ac_ext <<EOF
10505 #line 10506 "configure"
10506 #include "confdefs.h"
10507 /* Override any gcc2 internal prototype to avoid an error. */
10508 /* We use char because int might match the return type of a gcc2
10509 builtin and then its argument prototype would still apply. */
10510 char _res_9_query();
10516 if { (eval echo configure:10517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10518 eval "ac_cv_lib_$ac_lib_var=yes"
10520 echo "configure: failed program was:" >&5
10521 cat conftest.$ac_ext >&5
10523 eval "ac_cv_lib_$ac_lib_var=no"
10526 LIBS="$ac_save_LIBS"
10529 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10530 echo "$ac_t""yes" 1>&6
10531 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10532 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10533 cat >> confdefs.h <<EOF
10534 #define $ac_tr_lib 1
10537 LIBS="-lresolv $LIBS"
10540 echo "$ac_t""no" 1>&6
10543 ac_cv_func_res_query=$ac_cv_lib_resolv_res_9_query
10546 if test "$ac_cv_func_res_query" = yes ; then
10547 cat >> confdefs.h <<\EOF
10548 #define HAVE_RES_QUERY 1
10552 if test $ol_enable_dnssrv != no ; then
10557 if test "$ol_enable_dnssrv" != no -a "$ol_link_dnssrv" = no ; then
10558 { echo "configure: error: DNSSRV requires res_query()" 1>&2; exit 1; }
10561 for ac_func in hstrerror
10563 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10564 echo "configure:10565: checking for $ac_func" >&5
10565 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10566 echo $ac_n "(cached) $ac_c" 1>&6
10568 cat > conftest.$ac_ext <<EOF
10569 #line 10570 "configure"
10570 #include "confdefs.h"
10571 /* System header to define __stub macros and hopefully few prototypes,
10572 which can conflict with char $ac_func(); below. */
10573 #include <assert.h>
10574 /* Override any gcc2 internal prototype to avoid an error. */
10575 /* We use char because int might match the return type of a gcc2
10576 builtin and then its argument prototype would still apply. */
10582 /* The GNU C library defines this for functions which it implements
10583 to always fail with ENOSYS. Some functions are actually named
10584 something starting with __ and the normal name is an alias. */
10585 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10593 if { (eval echo configure:10594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10595 eval "ac_cv_func_$ac_func=yes"
10597 echo "configure: failed program was:" >&5
10598 cat conftest.$ac_ext >&5
10600 eval "ac_cv_func_$ac_func=no"
10605 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10606 echo "$ac_t""yes" 1>&6
10607 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10608 cat >> confdefs.h <<EOF
10609 #define $ac_tr_func 1
10613 echo "$ac_t""no" 1>&6
10618 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
10620 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10621 echo "configure:10622: checking for $ac_func" >&5
10622 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10623 echo $ac_n "(cached) $ac_c" 1>&6
10625 cat > conftest.$ac_ext <<EOF
10626 #line 10627 "configure"
10627 #include "confdefs.h"
10628 /* System header to define __stub macros and hopefully few prototypes,
10629 which can conflict with char $ac_func(); below. */
10630 #include <assert.h>
10631 /* Override any gcc2 internal prototype to avoid an error. */
10632 /* We use char because int might match the return type of a gcc2
10633 builtin and then its argument prototype would still apply. */
10639 /* The GNU C library defines this for functions which it implements
10640 to always fail with ENOSYS. Some functions are actually named
10641 something starting with __ and the normal name is an alias. */
10642 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10650 if { (eval echo configure:10651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10652 eval "ac_cv_func_$ac_func=yes"
10654 echo "configure: failed program was:" >&5
10655 cat conftest.$ac_ext >&5
10657 eval "ac_cv_func_$ac_func=no"
10662 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10663 echo "$ac_t""yes" 1>&6
10664 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10665 cat >> confdefs.h <<EOF
10666 #define $ac_tr_func 1
10670 echo "$ac_t""no" 1>&6
10676 if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then
10677 if test $ol_enable_ipv6 = yes ; then
10678 { echo "configure: error: IPv6 support requires getaddrinfo() and inet_ntop()" 1>&2; exit 1; }
10680 elif test $ol_enable_ipv6 != no ; then
10681 echo $ac_n "checking INET6_ADDRSTRLEN""... $ac_c" 1>&6
10682 echo "configure:10683: checking INET6_ADDRSTRLEN" >&5
10683 if eval "test \"\${ol_cv_inet6_addrstrlen+set}\" = set"; then
10684 echo $ac_n "(cached) $ac_c" 1>&6
10687 cat > conftest.$ac_ext <<EOF
10688 #line 10689 "configure"
10689 #include "confdefs.h"
10691 # include <netinet/in.h>
10692 # ifdef INET6_ADDRSTRLEN
10693 __has_inet6_addrstrlen__;
10697 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10698 egrep "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
10700 ol_cv_inet6_addrstrlen=yes
10703 ol_cv_inet6_addrstrlen=no
10709 echo "$ac_t""$ol_cv_inet6_addrstrlen" 1>&6
10712 echo $ac_n "checking struct sockaddr_storage""... $ac_c" 1>&6
10713 echo "configure:10714: checking struct sockaddr_storage" >&5
10714 if eval "test \"\${ol_cv_struct_sockaddr_storage+set}\" = set"; then
10715 echo $ac_n "(cached) $ac_c" 1>&6
10718 cat > conftest.$ac_ext <<EOF
10719 #line 10720 "configure"
10720 #include "confdefs.h"
10722 #include <sys/types.h>
10723 #include <sys/socket.h>
10727 struct sockaddr_storage ss;
10731 if { (eval echo configure:10732: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10733 ol_cv_struct_sockaddr_storage=yes
10735 echo "configure: failed program was:" >&5
10736 cat conftest.$ac_ext >&5
10738 ol_cv_struct_sockaddr_storage=no
10743 echo "$ac_t""$ol_cv_struct_sockaddr_storage" 1>&6
10745 if test $ol_cv_inet6_addrstrlen = yes \
10746 -a $ol_cv_struct_sockaddr_storage = yes ; then
10748 elif test $ol_enable_ipv6 = yes \
10749 -a $ol_cv_inet6_addrstrlen = no ; then
10750 { echo "configure: error: IPv6 support requires INET6_ADDRSTRLEN" 1>&2; exit 1; }
10751 elif test $ol_enable_ipv6 = yes \
10752 -a $ol_cv_struct_sockaddr_storage = no ; then
10753 { echo "configure: error: IPv6 support requires struct sockaddr_storage" 1>&2; exit 1; }
10757 if test $ol_enable_local != no ; then
10758 for ac_hdr in sys/un.h
10760 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10761 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10762 echo "configure:10763: checking for $ac_hdr" >&5
10763 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10764 echo $ac_n "(cached) $ac_c" 1>&6
10766 cat > conftest.$ac_ext <<EOF
10767 #line 10768 "configure"
10768 #include "confdefs.h"
10771 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10772 { (eval echo configure:10773: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10773 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10774 if test -z "$ac_err"; then
10776 eval "ac_cv_header_$ac_safe=yes"
10779 echo "configure: failed program was:" >&5
10780 cat conftest.$ac_ext >&5
10782 eval "ac_cv_header_$ac_safe=no"
10786 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10787 echo "$ac_t""yes" 1>&6
10788 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10789 cat >> confdefs.h <<EOF
10790 #define $ac_tr_hdr 1
10794 echo "$ac_t""no" 1>&6
10799 if test $ol_enable_local = auto ; then
10800 ol_enable_local=$ac_cv_header_sys_un_h
10801 elif test $ac_cv_header_sys_un_h = no ; then
10802 { echo "configure: error: AF_LOCAL domain support requires sys/un.h" 1>&2; exit 1; }
10810 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
10811 -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
10812 -o $ol_with_kerberos = k425 ; then
10814 for ac_hdr in krb5.h
10816 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10817 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10818 echo "configure:10819: checking for $ac_hdr" >&5
10819 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10820 echo $ac_n "(cached) $ac_c" 1>&6
10822 cat > conftest.$ac_ext <<EOF
10823 #line 10824 "configure"
10824 #include "confdefs.h"
10827 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10828 { (eval echo configure:10829: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10829 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10830 if test -z "$ac_err"; then
10832 eval "ac_cv_header_$ac_safe=yes"
10835 echo "configure: failed program was:" >&5
10836 cat conftest.$ac_ext >&5
10838 eval "ac_cv_header_$ac_safe=no"
10842 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10843 echo "$ac_t""yes" 1>&6
10844 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10845 cat >> confdefs.h <<EOF
10846 #define $ac_tr_hdr 1
10850 echo "$ac_t""no" 1>&6
10855 if test $ac_cv_header_krb5_h = yes ; then
10856 for ac_hdr in heim_err.h
10858 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10859 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10860 echo "configure:10861: checking for $ac_hdr" >&5
10861 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10862 echo $ac_n "(cached) $ac_c" 1>&6
10864 cat > conftest.$ac_ext <<EOF
10865 #line 10866 "configure"
10866 #include "confdefs.h"
10869 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10870 { (eval echo configure:10871: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10871 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10872 if test -z "$ac_err"; then
10874 eval "ac_cv_header_$ac_safe=yes"
10877 echo "configure: failed program was:" >&5
10878 cat conftest.$ac_ext >&5
10880 eval "ac_cv_header_$ac_safe=no"
10884 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10885 echo "$ac_t""yes" 1>&6
10886 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10887 cat >> confdefs.h <<EOF
10888 #define $ac_tr_hdr 1
10892 echo "$ac_t""no" 1>&6
10896 if test $ac_cv_header_heim_err_h = yes ; then
10902 if test $krb5_impl = mit; then
10903 echo $ac_n "checking for main in -lk5crypto""... $ac_c" 1>&6
10904 echo "configure:10905: checking for main in -lk5crypto" >&5
10905 ac_lib_var=`echo k5crypto'_'main | sed 'y%./+-:%__p__%'`
10906 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10907 echo $ac_n "(cached) $ac_c" 1>&6
10909 ac_save_LIBS="$LIBS"
10910 LIBS="-lk5crypto $LIBS"
10911 cat > conftest.$ac_ext <<EOF
10912 #line 10913 "configure"
10913 #include "confdefs.h"
10919 if { (eval echo configure:10920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10921 eval "ac_cv_lib_$ac_lib_var=yes"
10923 echo "configure: failed program was:" >&5
10924 cat conftest.$ac_ext >&5
10926 eval "ac_cv_lib_$ac_lib_var=no"
10929 LIBS="$ac_save_LIBS"
10932 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10933 echo "$ac_t""yes" 1>&6
10934 krb5crypto=k5crypto
10936 echo "$ac_t""no" 1>&6
10941 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
10942 echo "configure:10943: checking for main in -lkrb5" >&5
10943 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
10944 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10945 echo $ac_n "(cached) $ac_c" 1>&6
10947 ac_save_LIBS="$LIBS"
10948 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
10949 cat > conftest.$ac_ext <<EOF
10950 #line 10951 "configure"
10951 #include "confdefs.h"
10957 if { (eval echo configure:10958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10959 eval "ac_cv_lib_$ac_lib_var=yes"
10961 echo "configure: failed program was:" >&5
10962 cat conftest.$ac_ext >&5
10964 eval "ac_cv_lib_$ac_lib_var=no"
10967 LIBS="$ac_save_LIBS"
10970 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10971 echo "$ac_t""yes" 1>&6
10973 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
10975 echo "$ac_t""no" 1>&6
10980 elif test $krb5_impl = heimdal; then
10981 echo $ac_n "checking for main in -ldes""... $ac_c" 1>&6
10982 echo "configure:10983: checking for main in -ldes" >&5
10983 ac_lib_var=`echo des'_'main | sed 'y%./+-:%__p__%'`
10984 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10985 echo $ac_n "(cached) $ac_c" 1>&6
10987 ac_save_LIBS="$LIBS"
10989 cat > conftest.$ac_ext <<EOF
10990 #line 10991 "configure"
10991 #include "confdefs.h"
10997 if { (eval echo configure:10998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10999 eval "ac_cv_lib_$ac_lib_var=yes"
11001 echo "configure: failed program was:" >&5
11002 cat conftest.$ac_ext >&5
11004 eval "ac_cv_lib_$ac_lib_var=no"
11007 LIBS="$ac_save_LIBS"
11010 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11011 echo "$ac_t""yes" 1>&6
11014 echo "$ac_t""no" 1>&6
11019 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
11020 echo "configure:11021: checking for main in -lkrb5" >&5
11021 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
11022 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11023 echo $ac_n "(cached) $ac_c" 1>&6
11025 ac_save_LIBS="$LIBS"
11026 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
11027 cat > conftest.$ac_ext <<EOF
11028 #line 11029 "configure"
11029 #include "confdefs.h"
11035 if { (eval echo configure:11036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11037 eval "ac_cv_lib_$ac_lib_var=yes"
11039 echo "configure: failed program was:" >&5
11040 cat conftest.$ac_ext >&5
11042 eval "ac_cv_lib_$ac_lib_var=no"
11045 LIBS="$ac_save_LIBS"
11048 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11049 echo "$ac_t""yes" 1>&6
11051 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
11053 echo "$ac_t""no" 1>&6
11058 cat >> confdefs.h <<\EOF
11059 #define HAVE_HEIMDAL_KERBEROS 1
11065 echo "configure: warning: Unrecognized Kerberos5 Implementation" 1>&2
11068 if test $have_krb5 = yes ; then
11071 cat >> confdefs.h <<\EOF
11072 #define HAVE_KRB5 1
11076 if test $ol_with_kerberos = k5only ; then
11077 ol_with_kerberos=found
11080 elif test $ol_with_kerberos != auto ; then
11081 { echo "configure: error: Required Kerberos 5 support not available" 1>&2; exit 1; }
11087 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
11088 $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
11090 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
11092 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11093 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11094 echo "configure:11095: checking for $ac_hdr" >&5
11095 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11096 echo $ac_n "(cached) $ac_c" 1>&6
11098 cat > conftest.$ac_ext <<EOF
11099 #line 11100 "configure"
11100 #include "confdefs.h"
11103 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11104 { (eval echo configure:11105: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11105 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11106 if test -z "$ac_err"; then
11108 eval "ac_cv_header_$ac_safe=yes"
11111 echo "configure: failed program was:" >&5
11112 cat conftest.$ac_ext >&5
11114 eval "ac_cv_header_$ac_safe=no"
11118 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11119 echo "$ac_t""yes" 1>&6
11120 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11121 cat >> confdefs.h <<EOF
11122 #define $ac_tr_hdr 1
11126 echo "$ac_t""no" 1>&6
11131 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
11132 if test $krb5_impl = mit; then
11133 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
11134 echo "configure:11135: checking for main in -lkrb4" >&5
11135 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
11136 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11137 echo $ac_n "(cached) $ac_c" 1>&6
11139 ac_save_LIBS="$LIBS"
11140 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
11141 cat > conftest.$ac_ext <<EOF
11142 #line 11143 "configure"
11143 #include "confdefs.h"
11149 if { (eval echo configure:11150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11151 eval "ac_cv_lib_$ac_lib_var=yes"
11153 echo "configure: failed program was:" >&5
11154 cat conftest.$ac_ext >&5
11156 eval "ac_cv_lib_$ac_lib_var=no"
11159 LIBS="$ac_save_LIBS"
11162 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11163 echo "$ac_t""yes" 1>&6
11165 KRB4_LIBS="-lkrb4 -ldes425"
11167 echo "$ac_t""no" 1>&6
11172 elif test $krb5_impl = heimdal; then
11173 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
11174 echo "configure:11175: checking for main in -lkrb4" >&5
11175 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
11176 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11177 echo $ac_n "(cached) $ac_c" 1>&6
11179 ac_save_LIBS="$LIBS"
11180 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
11181 cat > conftest.$ac_ext <<EOF
11182 #line 11183 "configure"
11183 #include "confdefs.h"
11189 if { (eval echo configure:11190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11191 eval "ac_cv_lib_$ac_lib_var=yes"
11193 echo "configure: failed program was:" >&5
11194 cat conftest.$ac_ext >&5
11196 eval "ac_cv_lib_$ac_lib_var=no"
11199 LIBS="$ac_save_LIBS"
11202 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11203 echo "$ac_t""yes" 1>&6
11207 echo "$ac_t""no" 1>&6
11214 echo "configure: warning: Unrecongized Kerberos V Implementation" 1>&2
11217 if test $have_k425 = yes ; then
11218 ol_with_kerberos=found
11221 cat >> confdefs.h <<\EOF
11222 #define HAVE_KRB425 1
11225 cat >> confdefs.h <<\EOF
11226 #define HAVE_KRB4 1
11230 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
11231 echo "configure:11232: checking for des_debug in Kerberos libraries" >&5
11232 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
11233 echo $ac_n "(cached) $ac_c" 1>&6
11237 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
11238 cat > conftest.$ac_ext <<EOF
11239 #line 11240 "configure"
11240 #include "confdefs.h"
11242 #include <kerberosIV/krb.h>
11243 #include <kerberosIV/des.h>
11244 extern int des_debug;
11252 if { (eval echo configure:11253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11254 ol_cv_var_des_debug=yes
11256 echo "configure: failed program was:" >&5
11257 cat conftest.$ac_ext >&5
11259 ol_cv_var_des_debug=no
11266 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
11268 if test $ol_cv_var_des_debug = yes ; then
11269 cat >> confdefs.h <<\EOF
11270 #define HAVE_DES_DEBUG 1
11280 if test $ol_link_krb5 = yes ; then
11281 ol_with_kerberos=found
11284 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
11285 -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
11287 for ac_hdr in krb.h des.h krb-archaeology.h
11289 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11290 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11291 echo "configure:11292: checking for $ac_hdr" >&5
11292 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11293 echo $ac_n "(cached) $ac_c" 1>&6
11295 cat > conftest.$ac_ext <<EOF
11296 #line 11297 "configure"
11297 #include "confdefs.h"
11300 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11301 { (eval echo configure:11302: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11302 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11303 if test -z "$ac_err"; then
11305 eval "ac_cv_header_$ac_safe=yes"
11308 echo "configure: failed program was:" >&5
11309 cat conftest.$ac_ext >&5
11311 eval "ac_cv_header_$ac_safe=no"
11315 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11316 echo "$ac_t""yes" 1>&6
11317 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11318 cat >> confdefs.h <<EOF
11319 #define $ac_tr_hdr 1
11323 echo "$ac_t""no" 1>&6
11328 if test $ac_cv_header_krb_h = yes ; then
11329 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
11330 echo "configure:11331: checking for main in -lkrb" >&5
11331 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
11332 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11333 echo $ac_n "(cached) $ac_c" 1>&6
11335 ac_save_LIBS="$LIBS"
11336 LIBS="-lkrb -ldes $LIBS"
11337 cat > conftest.$ac_ext <<EOF
11338 #line 11339 "configure"
11339 #include "confdefs.h"
11345 if { (eval echo configure:11346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11347 eval "ac_cv_lib_$ac_lib_var=yes"
11349 echo "configure: failed program was:" >&5
11350 cat conftest.$ac_ext >&5
11352 eval "ac_cv_lib_$ac_lib_var=no"
11355 LIBS="$ac_save_LIBS"
11358 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11359 echo "$ac_t""yes" 1>&6
11362 echo "$ac_t""no" 1>&6
11367 if test $have_k4 = yes ; then
11368 ol_with_kerberos=found
11371 cat >> confdefs.h <<\EOF
11372 #define HAVE_KRB4 1
11376 KRB4_LIBS="-lkrb -ldes"
11378 if test $ac_cv_header_krb_archaeology_h = yes ; then
11379 cat >> confdefs.h <<\EOF
11380 #define HAVE_KTH_KERBEROS 1
11388 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
11391 elif test $ol_enable_kbind = yes ; then
11392 { echo "configure: error: Kerberos IV detection failed" 1>&2; exit 1; }
11395 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
11396 cat >> confdefs.h <<\EOF
11397 #define HAVE_KERBEROS 1
11401 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
11402 { echo "configure: error: Kerberos detection failed" 1>&2; exit 1; }
11407 if test $ol_with_tls != no ; then
11408 for ac_hdr in openssl/ssl.h ssl.h
11410 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11411 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11412 echo "configure:11413: checking for $ac_hdr" >&5
11413 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11414 echo $ac_n "(cached) $ac_c" 1>&6
11416 cat > conftest.$ac_ext <<EOF
11417 #line 11418 "configure"
11418 #include "confdefs.h"
11421 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11422 { (eval echo configure:11423: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11423 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11424 if test -z "$ac_err"; then
11426 eval "ac_cv_header_$ac_safe=yes"
11429 echo "configure: failed program was:" >&5
11430 cat conftest.$ac_ext >&5
11432 eval "ac_cv_header_$ac_safe=no"
11436 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11437 echo "$ac_t""yes" 1>&6
11438 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11439 cat >> confdefs.h <<EOF
11440 #define $ac_tr_hdr 1
11444 echo "$ac_t""no" 1>&6
11449 if test $ac_cv_header_openssl_ssl_h = yes \
11450 -o $ac_cv_header_ssl_h = yes ; then
11451 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
11452 echo "configure:11453: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
11453 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
11454 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11455 echo $ac_n "(cached) $ac_c" 1>&6
11457 ac_save_LIBS="$LIBS"
11458 LIBS="-lssl -lcrypto $LIBS"
11459 cat > conftest.$ac_ext <<EOF
11460 #line 11461 "configure"
11461 #include "confdefs.h"
11462 /* Override any gcc2 internal prototype to avoid an error. */
11463 /* We use char because int might match the return type of a gcc2
11464 builtin and then its argument prototype would still apply. */
11465 char SSLeay_add_ssl_algorithms();
11468 SSLeay_add_ssl_algorithms()
11471 if { (eval echo configure:11472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11473 eval "ac_cv_lib_$ac_lib_var=yes"
11475 echo "configure: failed program was:" >&5
11476 cat conftest.$ac_ext >&5
11478 eval "ac_cv_lib_$ac_lib_var=no"
11481 LIBS="$ac_save_LIBS"
11484 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11485 echo "$ac_t""yes" 1>&6
11489 echo "$ac_t""no" 1>&6
11494 if test $have_ssleay = no ; then
11495 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
11496 echo "configure:11497: checking for SSL_library_init in -lssl" >&5
11497 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
11498 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11499 echo $ac_n "(cached) $ac_c" 1>&6
11501 ac_save_LIBS="$LIBS"
11502 LIBS="-lssl -lcrypto $LIBS"
11503 cat > conftest.$ac_ext <<EOF
11504 #line 11505 "configure"
11505 #include "confdefs.h"
11506 /* Override any gcc2 internal prototype to avoid an error. */
11507 /* We use char because int might match the return type of a gcc2
11508 builtin and then its argument prototype would still apply. */
11509 char SSL_library_init();
11515 if { (eval echo configure:11516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11517 eval "ac_cv_lib_$ac_lib_var=yes"
11519 echo "configure: failed program was:" >&5
11520 cat conftest.$ac_ext >&5
11522 eval "ac_cv_lib_$ac_lib_var=no"
11525 LIBS="$ac_save_LIBS"
11528 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11529 echo "$ac_t""yes" 1>&6
11533 echo "$ac_t""no" 1>&6
11539 if test $have_ssleay = no ; then
11540 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
11541 echo "configure:11542: checking for ssl3_accept in -lssl" >&5
11542 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
11543 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11544 echo $ac_n "(cached) $ac_c" 1>&6
11546 ac_save_LIBS="$LIBS"
11547 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
11548 cat > conftest.$ac_ext <<EOF
11549 #line 11550 "configure"
11550 #include "confdefs.h"
11551 /* Override any gcc2 internal prototype to avoid an error. */
11552 /* We use char because int might match the return type of a gcc2
11553 builtin and then its argument prototype would still apply. */
11554 char ssl3_accept();
11560 if { (eval echo configure:11561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11562 eval "ac_cv_lib_$ac_lib_var=yes"
11564 echo "configure: failed program was:" >&5
11565 cat conftest.$ac_ext >&5
11567 eval "ac_cv_lib_$ac_lib_var=no"
11570 LIBS="$ac_save_LIBS"
11573 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11574 echo "$ac_t""yes" 1>&6
11578 echo "$ac_t""no" 1>&6
11584 if test $have_ssleay = yes ; then
11588 cat >> confdefs.h <<\EOF
11589 #define HAVE_SSLEAY 1
11593 if test $need_rsaref = yes; then
11594 cat >> confdefs.h <<\EOF
11595 #define HAVE_RSAREF 1
11599 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
11601 TLS_LIBS="-lssl -lcrypto"
11604 echo $ac_n "checking OpenSSL library version (CRL checking capability)""... $ac_c" 1>&6
11605 echo "configure:11606: checking OpenSSL library version (CRL checking capability)" >&5
11606 if eval "test \"\${ol_cv_ssl_crl_compat+set}\" = set"; then
11607 echo $ac_n "(cached) $ac_c" 1>&6
11610 cat > conftest.$ac_ext <<EOF
11611 #line 11612 "configure"
11612 #include "confdefs.h"
11614 #ifdef HAVE_OPENSSL_SSL_H
11615 #include <openssl/ssl.h>
11620 /* Require 0.9.7d+ */
11621 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
11622 char *__ssl_compat = "0.9.7d";
11626 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11627 egrep "__ssl_compat" >/dev/null 2>&1; then
11629 ol_cv_ssl_crl_compat=yes
11632 ol_cv_ssl_crl_compat=no
11638 echo "$ac_t""$ol_cv_ssl_crl_compat" 1>&6
11640 if test $ol_cv_ssl_crl_compat = no ; then
11643 cat >> confdefs.h <<\EOF
11644 #define HAVE_OPENSSL_CRL 1
11651 echo "configure: warning: TLS data protection not supported!" 1>&2
11655 if test $ol_link_tls = yes ; then
11656 cat >> confdefs.h <<\EOF
11662 elif test $ol_with_tls = auto ; then
11663 echo "configure: warning: Could not locate TLS/SSL package" 1>&2
11664 echo "configure: warning: TLS data protection not supported!" 1>&2
11666 elif test $ol_with_tls != no ; then
11667 { echo "configure: error: Could not locate TLS/SSL package" 1>&2; exit 1; }
11670 if test $ol_enable_lmpasswd != no; then
11671 if test $ol_link_tls != yes ; then
11672 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
11675 cat >> confdefs.h <<\EOF
11676 #define SLAPD_LMHASH 1
11683 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11684 -o $ol_with_threads = nt ; then
11687 echo $ac_n "checking for _beginthread""... $ac_c" 1>&6
11688 echo "configure:11689: checking for _beginthread" >&5
11689 if eval "test \"\${ac_cv_func__beginthread+set}\" = set"; then
11690 echo $ac_n "(cached) $ac_c" 1>&6
11692 cat > conftest.$ac_ext <<EOF
11693 #line 11694 "configure"
11694 #include "confdefs.h"
11695 /* System header to define __stub macros and hopefully few prototypes,
11696 which can conflict with char _beginthread(); below. */
11697 #include <assert.h>
11698 /* Override any gcc2 internal prototype to avoid an error. */
11699 /* We use char because int might match the return type of a gcc2
11700 builtin and then its argument prototype would still apply. */
11701 char _beginthread();
11706 /* The GNU C library defines this for functions which it implements
11707 to always fail with ENOSYS. Some functions are actually named
11708 something starting with __ and the normal name is an alias. */
11709 #if defined (__stub__beginthread) || defined (__stub____beginthread)
11717 if { (eval echo configure:11718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11719 eval "ac_cv_func__beginthread=yes"
11721 echo "configure: failed program was:" >&5
11722 cat conftest.$ac_ext >&5
11724 eval "ac_cv_func__beginthread=no"
11729 if eval "test \"`echo '$ac_cv_func_'_beginthread`\" = yes"; then
11730 echo "$ac_t""yes" 1>&6
11733 echo "$ac_t""no" 1>&6
11737 if test $ac_cv_func__beginthread = yes ; then
11738 cat >> confdefs.h <<\EOF
11739 #define HAVE_NT_THREADS 1
11742 ol_cv_nt_threads=yes
11746 if test "$ol_cv_nt_threads" = yes ; then
11748 ol_with_threads=found
11749 ol_with_yielding_select=yes
11751 cat >> confdefs.h <<\EOF
11752 #define HAVE_NT_SERVICE_MANAGER 1
11755 cat >> confdefs.h <<\EOF
11756 #define HAVE_NT_EVENT_LOG 1
11761 if test $ol_with_threads = nt ; then
11762 { echo "configure: error: could not locate NT Threads" 1>&2; exit 1; }
11766 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11767 -o $ol_with_threads = posix ; then
11769 for ac_hdr in pthread.h
11771 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11772 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11773 echo "configure:11774: checking for $ac_hdr" >&5
11774 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11775 echo $ac_n "(cached) $ac_c" 1>&6
11777 cat > conftest.$ac_ext <<EOF
11778 #line 11779 "configure"
11779 #include "confdefs.h"
11782 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11783 { (eval echo configure:11784: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11784 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11785 if test -z "$ac_err"; then
11787 eval "ac_cv_header_$ac_safe=yes"
11790 echo "configure: failed program was:" >&5
11791 cat conftest.$ac_ext >&5
11793 eval "ac_cv_header_$ac_safe=no"
11797 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11798 echo "$ac_t""yes" 1>&6
11799 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11800 cat >> confdefs.h <<EOF
11801 #define $ac_tr_hdr 1
11805 echo "$ac_t""no" 1>&6
11810 if test $ac_cv_header_pthread_h = yes ; then
11811 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
11812 echo "configure:11813: checking POSIX thread version" >&5
11813 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
11814 echo $ac_n "(cached) $ac_c" 1>&6
11817 cat > conftest.$ac_ext <<EOF
11818 #line 11819 "configure"
11819 #include "confdefs.h"
11821 # include <pthread.h>
11825 int i = PTHREAD_CREATE_JOINABLE;
11829 if { (eval echo configure:11830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11832 cat > conftest.$ac_ext <<EOF
11833 #line 11834 "configure"
11834 #include "confdefs.h"
11835 #include <pthread.h>
11837 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11838 egrep "pthread_detach" >/dev/null 2>&1; then
11840 ol_cv_pthread_version=10
11843 ol_cv_pthread_version=8
11848 echo "configure: failed program was:" >&5
11849 cat conftest.$ac_ext >&5
11852 cat > conftest.$ac_ext <<EOF
11853 #line 11854 "configure"
11854 #include "confdefs.h"
11856 # include <pthread.h>
11857 # ifdef PTHREAD_CREATE_UNDETACHED
11862 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11863 egrep "draft7" >/dev/null 2>&1; then
11865 ol_cv_pthread_version=7
11869 cat > conftest.$ac_ext <<EOF
11870 #line 11871 "configure"
11871 #include "confdefs.h"
11872 #include <pthread.h>
11874 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11875 egrep "pthread_attr_init" >/dev/null 2>&1; then
11877 ol_cv_pthread_version=6
11881 cat > conftest.$ac_ext <<EOF
11882 #line 11883 "configure"
11883 #include "confdefs.h"
11885 # include <pthread.h>
11886 #ifdef PTHREAD_MUTEX_INITIALIZER
11891 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11892 egrep "draft5" >/dev/null 2>&1; then
11894 ol_cv_pthread_version=5
11897 ol_cv_pthread_version=4
11912 echo "$ac_t""$ol_cv_pthread_version" 1>&6
11915 if test $ol_cv_pthread_version != 0 ; then
11916 cat >> confdefs.h <<EOF
11917 #define HAVE_PTHREADS $ol_cv_pthread_version
11921 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
11924 # consider threads found
11925 ol_with_threads=found
11928 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
11929 echo "configure:11930: checking for LinuxThreads pthread.h" >&5
11930 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
11931 echo $ac_n "(cached) $ac_c" 1>&6
11933 cat > conftest.$ac_ext <<EOF
11934 #line 11935 "configure"
11935 #include "confdefs.h"
11936 #include <pthread.h>
11938 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11939 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
11941 ol_cv_header_linux_threads=yes
11944 ol_cv_header_linux_threads=no
11951 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
11952 if test $ol_cv_header_linux_threads = yes; then
11953 cat >> confdefs.h <<\EOF
11954 #define HAVE_LINUX_THREADS 1
11960 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
11961 echo "configure:11962: checking for GNU Pth pthread.h" >&5
11962 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
11963 echo $ac_n "(cached) $ac_c" 1>&6
11965 cat > conftest.$ac_ext <<EOF
11966 #line 11967 "configure"
11967 #include "confdefs.h"
11968 #include <pthread.h>
11969 #ifdef _POSIX_THREAD_IS_GNU_PTH
11974 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11975 egrep "__gnu_pth__" >/dev/null 2>&1; then
11977 ol_cv_header_gnu_pth_pthread_h=yes
11980 ol_cv_header_gnu_pth_pthread_h=no
11987 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
11990 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
11991 for ac_hdr in sched.h
11993 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11994 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11995 echo "configure:11996: checking for $ac_hdr" >&5
11996 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11997 echo $ac_n "(cached) $ac_c" 1>&6
11999 cat > conftest.$ac_ext <<EOF
12000 #line 12001 "configure"
12001 #include "confdefs.h"
12004 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12005 { (eval echo configure:12006: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12006 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12007 if test -z "$ac_err"; then
12009 eval "ac_cv_header_$ac_safe=yes"
12012 echo "configure: failed program was:" >&5
12013 cat conftest.$ac_ext >&5
12015 eval "ac_cv_header_$ac_safe=no"
12019 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12020 echo "$ac_t""yes" 1>&6
12021 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12022 cat >> confdefs.h <<EOF
12023 #define $ac_tr_hdr 1
12027 echo "$ac_t""no" 1>&6
12034 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
12035 echo "configure:12036: checking for pthread_create in default libraries" >&5
12036 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
12037 echo $ac_n "(cached) $ac_c" 1>&6
12040 if test "$cross_compiling" = yes; then
12041 cat > conftest.$ac_ext <<EOF
12042 #line 12043 "configure"
12043 #include "confdefs.h"
12044 /* pthread test headers */
12045 #include <pthread.h>
12046 #if HAVE_PTHREADS < 7
12050 #define NULL (void*)0
12053 static void *task(p)
12056 return (void *) (p == NULL);
12061 /* pthread test function */
12062 #ifndef PTHREAD_CREATE_DETACHED
12063 #define PTHREAD_CREATE_DETACHED 1
12067 int detach = PTHREAD_CREATE_DETACHED;
12069 #if HAVE_PTHREADS > 4
12070 /* Final pthreads */
12071 pthread_attr_t attr;
12073 status = pthread_attr_init(&attr);
12074 if( status ) return status;
12076 #if HAVE_PTHREADS < 7
12077 status = pthread_attr_setdetachstate(&attr, &detach);
12078 if( status < 0 ) status = errno;
12080 status = pthread_attr_setdetachstate(&attr, detach);
12082 if( status ) return status;
12083 status = pthread_create( &t, &attr, task, NULL );
12084 #if HAVE_PTHREADS < 7
12085 if( status < 0 ) status = errno;
12087 if( status ) return status;
12089 /* Draft 4 pthreads */
12090 status = pthread_create( &t, pthread_attr_default, task, NULL );
12091 if( status ) return errno;
12093 /* give thread a chance to complete */
12094 /* it should remain joinable and hence detachable */
12097 status = pthread_detach( &t );
12098 if( status ) return errno;
12101 #ifdef HAVE_LINUX_THREADS
12102 pthread_kill_other_threads_np();
12109 if { (eval echo configure:12110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12111 ol_cv_pthread_create=yes
12113 echo "configure: failed program was:" >&5
12114 cat conftest.$ac_ext >&5
12116 ol_cv_pthread_create=no
12120 cat > conftest.$ac_ext <<EOF
12121 #line 12122 "configure"
12122 #include "confdefs.h"
12123 /* pthread test headers */
12124 #include <pthread.h>
12125 #if HAVE_PTHREADS < 7
12129 #define NULL (void*)0
12132 static void *task(p)
12135 return (void *) (p == NULL);
12139 int main(argc, argv)
12144 /* pthread test function */
12145 #ifndef PTHREAD_CREATE_DETACHED
12146 #define PTHREAD_CREATE_DETACHED 1
12150 int detach = PTHREAD_CREATE_DETACHED;
12152 #if HAVE_PTHREADS > 4
12153 /* Final pthreads */
12154 pthread_attr_t attr;
12156 status = pthread_attr_init(&attr);
12157 if( status ) return status;
12159 #if HAVE_PTHREADS < 7
12160 status = pthread_attr_setdetachstate(&attr, &detach);
12161 if( status < 0 ) status = errno;
12163 status = pthread_attr_setdetachstate(&attr, detach);
12165 if( status ) return status;
12166 status = pthread_create( &t, &attr, task, NULL );
12167 #if HAVE_PTHREADS < 7
12168 if( status < 0 ) status = errno;
12170 if( status ) return status;
12172 /* Draft 4 pthreads */
12173 status = pthread_create( &t, pthread_attr_default, task, NULL );
12174 if( status ) return errno;
12176 /* give thread a chance to complete */
12177 /* it should remain joinable and hence detachable */
12180 status = pthread_detach( &t );
12181 if( status ) return errno;
12184 #ifdef HAVE_LINUX_THREADS
12185 pthread_kill_other_threads_np();
12193 if { (eval echo configure:12194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12195 ol_cv_pthread_create=yes
12197 echo "configure: failed program was:" >&5
12198 cat conftest.$ac_ext >&5
12200 ol_cv_pthread_create=no
12207 echo "$ac_t""$ol_cv_pthread_create" 1>&6
12209 if test $ol_cv_pthread_create != no ; then
12210 ol_link_threads=posix
12211 ol_link_pthreads=""
12214 # Pthread try link: -kthread (ol_cv_pthread_kthread)
12215 if test "$ol_link_threads" = no ; then
12217 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
12218 echo "configure:12219: checking for pthread link with -kthread" >&5
12219 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
12220 echo $ac_n "(cached) $ac_c" 1>&6
12225 LIBS="-kthread $LIBS"
12227 if test "$cross_compiling" = yes; then
12228 cat > conftest.$ac_ext <<EOF
12229 #line 12230 "configure"
12230 #include "confdefs.h"
12231 /* pthread test headers */
12232 #include <pthread.h>
12233 #if HAVE_PTHREADS < 7
12237 #define NULL (void*)0
12240 static void *task(p)
12243 return (void *) (p == NULL);
12248 /* pthread test function */
12249 #ifndef PTHREAD_CREATE_DETACHED
12250 #define PTHREAD_CREATE_DETACHED 1
12254 int detach = PTHREAD_CREATE_DETACHED;
12256 #if HAVE_PTHREADS > 4
12257 /* Final pthreads */
12258 pthread_attr_t attr;
12260 status = pthread_attr_init(&attr);
12261 if( status ) return status;
12263 #if HAVE_PTHREADS < 7
12264 status = pthread_attr_setdetachstate(&attr, &detach);
12265 if( status < 0 ) status = errno;
12267 status = pthread_attr_setdetachstate(&attr, detach);
12269 if( status ) return status;
12270 status = pthread_create( &t, &attr, task, NULL );
12271 #if HAVE_PTHREADS < 7
12272 if( status < 0 ) status = errno;
12274 if( status ) return status;
12276 /* Draft 4 pthreads */
12277 status = pthread_create( &t, pthread_attr_default, task, NULL );
12278 if( status ) return errno;
12280 /* give thread a chance to complete */
12281 /* it should remain joinable and hence detachable */
12284 status = pthread_detach( &t );
12285 if( status ) return errno;
12288 #ifdef HAVE_LINUX_THREADS
12289 pthread_kill_other_threads_np();
12296 if { (eval echo configure:12297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12298 ol_cv_pthread_kthread=yes
12300 echo "configure: failed program was:" >&5
12301 cat conftest.$ac_ext >&5
12303 ol_cv_pthread_kthread=no
12307 cat > conftest.$ac_ext <<EOF
12308 #line 12309 "configure"
12309 #include "confdefs.h"
12310 /* pthread test headers */
12311 #include <pthread.h>
12312 #if HAVE_PTHREADS < 7
12316 #define NULL (void*)0
12319 static void *task(p)
12322 return (void *) (p == NULL);
12326 int main(argc, argv)
12331 /* pthread test function */
12332 #ifndef PTHREAD_CREATE_DETACHED
12333 #define PTHREAD_CREATE_DETACHED 1
12337 int detach = PTHREAD_CREATE_DETACHED;
12339 #if HAVE_PTHREADS > 4
12340 /* Final pthreads */
12341 pthread_attr_t attr;
12343 status = pthread_attr_init(&attr);
12344 if( status ) return status;
12346 #if HAVE_PTHREADS < 7
12347 status = pthread_attr_setdetachstate(&attr, &detach);
12348 if( status < 0 ) status = errno;
12350 status = pthread_attr_setdetachstate(&attr, detach);
12352 if( status ) return status;
12353 status = pthread_create( &t, &attr, task, NULL );
12354 #if HAVE_PTHREADS < 7
12355 if( status < 0 ) status = errno;
12357 if( status ) return status;
12359 /* Draft 4 pthreads */
12360 status = pthread_create( &t, pthread_attr_default, task, NULL );
12361 if( status ) return errno;
12363 /* give thread a chance to complete */
12364 /* it should remain joinable and hence detachable */
12367 status = pthread_detach( &t );
12368 if( status ) return errno;
12371 #ifdef HAVE_LINUX_THREADS
12372 pthread_kill_other_threads_np();
12380 if { (eval echo configure:12381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12382 ol_cv_pthread_kthread=yes
12384 echo "configure: failed program was:" >&5
12385 cat conftest.$ac_ext >&5
12387 ol_cv_pthread_kthread=no
12398 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
12400 if test $ol_cv_pthread_kthread = yes ; then
12401 ol_link_pthreads="-kthread"
12402 ol_link_threads=posix
12406 # Pthread try link: -pthread (ol_cv_pthread_pthread)
12407 if test "$ol_link_threads" = no ; then
12409 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
12410 echo "configure:12411: checking for pthread link with -pthread" >&5
12411 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
12412 echo $ac_n "(cached) $ac_c" 1>&6
12417 LIBS="-pthread $LIBS"
12419 if test "$cross_compiling" = yes; then
12420 cat > conftest.$ac_ext <<EOF
12421 #line 12422 "configure"
12422 #include "confdefs.h"
12423 /* pthread test headers */
12424 #include <pthread.h>
12425 #if HAVE_PTHREADS < 7
12429 #define NULL (void*)0
12432 static void *task(p)
12435 return (void *) (p == NULL);
12440 /* pthread test function */
12441 #ifndef PTHREAD_CREATE_DETACHED
12442 #define PTHREAD_CREATE_DETACHED 1
12446 int detach = PTHREAD_CREATE_DETACHED;
12448 #if HAVE_PTHREADS > 4
12449 /* Final pthreads */
12450 pthread_attr_t attr;
12452 status = pthread_attr_init(&attr);
12453 if( status ) return status;
12455 #if HAVE_PTHREADS < 7
12456 status = pthread_attr_setdetachstate(&attr, &detach);
12457 if( status < 0 ) status = errno;
12459 status = pthread_attr_setdetachstate(&attr, detach);
12461 if( status ) return status;
12462 status = pthread_create( &t, &attr, task, NULL );
12463 #if HAVE_PTHREADS < 7
12464 if( status < 0 ) status = errno;
12466 if( status ) return status;
12468 /* Draft 4 pthreads */
12469 status = pthread_create( &t, pthread_attr_default, task, NULL );
12470 if( status ) return errno;
12472 /* give thread a chance to complete */
12473 /* it should remain joinable and hence detachable */
12476 status = pthread_detach( &t );
12477 if( status ) return errno;
12480 #ifdef HAVE_LINUX_THREADS
12481 pthread_kill_other_threads_np();
12488 if { (eval echo configure:12489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12490 ol_cv_pthread_pthread=yes
12492 echo "configure: failed program was:" >&5
12493 cat conftest.$ac_ext >&5
12495 ol_cv_pthread_pthread=no
12499 cat > conftest.$ac_ext <<EOF
12500 #line 12501 "configure"
12501 #include "confdefs.h"
12502 /* pthread test headers */
12503 #include <pthread.h>
12504 #if HAVE_PTHREADS < 7
12508 #define NULL (void*)0
12511 static void *task(p)
12514 return (void *) (p == NULL);
12518 int main(argc, argv)
12523 /* pthread test function */
12524 #ifndef PTHREAD_CREATE_DETACHED
12525 #define PTHREAD_CREATE_DETACHED 1
12529 int detach = PTHREAD_CREATE_DETACHED;
12531 #if HAVE_PTHREADS > 4
12532 /* Final pthreads */
12533 pthread_attr_t attr;
12535 status = pthread_attr_init(&attr);
12536 if( status ) return status;
12538 #if HAVE_PTHREADS < 7
12539 status = pthread_attr_setdetachstate(&attr, &detach);
12540 if( status < 0 ) status = errno;
12542 status = pthread_attr_setdetachstate(&attr, detach);
12544 if( status ) return status;
12545 status = pthread_create( &t, &attr, task, NULL );
12546 #if HAVE_PTHREADS < 7
12547 if( status < 0 ) status = errno;
12549 if( status ) return status;
12551 /* Draft 4 pthreads */
12552 status = pthread_create( &t, pthread_attr_default, task, NULL );
12553 if( status ) return errno;
12555 /* give thread a chance to complete */
12556 /* it should remain joinable and hence detachable */
12559 status = pthread_detach( &t );
12560 if( status ) return errno;
12563 #ifdef HAVE_LINUX_THREADS
12564 pthread_kill_other_threads_np();
12572 if { (eval echo configure:12573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12574 ol_cv_pthread_pthread=yes
12576 echo "configure: failed program was:" >&5
12577 cat conftest.$ac_ext >&5
12579 ol_cv_pthread_pthread=no
12590 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
12592 if test $ol_cv_pthread_pthread = yes ; then
12593 ol_link_pthreads="-pthread"
12594 ol_link_threads=posix
12598 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
12599 if test "$ol_link_threads" = no ; then
12601 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
12602 echo "configure:12603: checking for pthread link with -pthreads" >&5
12603 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
12604 echo $ac_n "(cached) $ac_c" 1>&6
12609 LIBS="-pthreads $LIBS"
12611 if test "$cross_compiling" = yes; then
12612 cat > conftest.$ac_ext <<EOF
12613 #line 12614 "configure"
12614 #include "confdefs.h"
12615 /* pthread test headers */
12616 #include <pthread.h>
12617 #if HAVE_PTHREADS < 7
12621 #define NULL (void*)0
12624 static void *task(p)
12627 return (void *) (p == NULL);
12632 /* pthread test function */
12633 #ifndef PTHREAD_CREATE_DETACHED
12634 #define PTHREAD_CREATE_DETACHED 1
12638 int detach = PTHREAD_CREATE_DETACHED;
12640 #if HAVE_PTHREADS > 4
12641 /* Final pthreads */
12642 pthread_attr_t attr;
12644 status = pthread_attr_init(&attr);
12645 if( status ) return status;
12647 #if HAVE_PTHREADS < 7
12648 status = pthread_attr_setdetachstate(&attr, &detach);
12649 if( status < 0 ) status = errno;
12651 status = pthread_attr_setdetachstate(&attr, detach);
12653 if( status ) return status;
12654 status = pthread_create( &t, &attr, task, NULL );
12655 #if HAVE_PTHREADS < 7
12656 if( status < 0 ) status = errno;
12658 if( status ) return status;
12660 /* Draft 4 pthreads */
12661 status = pthread_create( &t, pthread_attr_default, task, NULL );
12662 if( status ) return errno;
12664 /* give thread a chance to complete */
12665 /* it should remain joinable and hence detachable */
12668 status = pthread_detach( &t );
12669 if( status ) return errno;
12672 #ifdef HAVE_LINUX_THREADS
12673 pthread_kill_other_threads_np();
12680 if { (eval echo configure:12681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12682 ol_cv_pthread_pthreads=yes
12684 echo "configure: failed program was:" >&5
12685 cat conftest.$ac_ext >&5
12687 ol_cv_pthread_pthreads=no
12691 cat > conftest.$ac_ext <<EOF
12692 #line 12693 "configure"
12693 #include "confdefs.h"
12694 /* pthread test headers */
12695 #include <pthread.h>
12696 #if HAVE_PTHREADS < 7
12700 #define NULL (void*)0
12703 static void *task(p)
12706 return (void *) (p == NULL);
12710 int main(argc, argv)
12715 /* pthread test function */
12716 #ifndef PTHREAD_CREATE_DETACHED
12717 #define PTHREAD_CREATE_DETACHED 1
12721 int detach = PTHREAD_CREATE_DETACHED;
12723 #if HAVE_PTHREADS > 4
12724 /* Final pthreads */
12725 pthread_attr_t attr;
12727 status = pthread_attr_init(&attr);
12728 if( status ) return status;
12730 #if HAVE_PTHREADS < 7
12731 status = pthread_attr_setdetachstate(&attr, &detach);
12732 if( status < 0 ) status = errno;
12734 status = pthread_attr_setdetachstate(&attr, detach);
12736 if( status ) return status;
12737 status = pthread_create( &t, &attr, task, NULL );
12738 #if HAVE_PTHREADS < 7
12739 if( status < 0 ) status = errno;
12741 if( status ) return status;
12743 /* Draft 4 pthreads */
12744 status = pthread_create( &t, pthread_attr_default, task, NULL );
12745 if( status ) return errno;
12747 /* give thread a chance to complete */
12748 /* it should remain joinable and hence detachable */
12751 status = pthread_detach( &t );
12752 if( status ) return errno;
12755 #ifdef HAVE_LINUX_THREADS
12756 pthread_kill_other_threads_np();
12764 if { (eval echo configure:12765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12766 ol_cv_pthread_pthreads=yes
12768 echo "configure: failed program was:" >&5
12769 cat conftest.$ac_ext >&5
12771 ol_cv_pthread_pthreads=no
12782 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
12784 if test $ol_cv_pthread_pthreads = yes ; then
12785 ol_link_pthreads="-pthreads"
12786 ol_link_threads=posix
12790 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
12791 if test "$ol_link_threads" = no ; then
12793 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
12794 echo "configure:12795: checking for pthread link with -mthreads" >&5
12795 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
12796 echo $ac_n "(cached) $ac_c" 1>&6
12801 LIBS="-mthreads $LIBS"
12803 if test "$cross_compiling" = yes; then
12804 cat > conftest.$ac_ext <<EOF
12805 #line 12806 "configure"
12806 #include "confdefs.h"
12807 /* pthread test headers */
12808 #include <pthread.h>
12809 #if HAVE_PTHREADS < 7
12813 #define NULL (void*)0
12816 static void *task(p)
12819 return (void *) (p == NULL);
12824 /* pthread test function */
12825 #ifndef PTHREAD_CREATE_DETACHED
12826 #define PTHREAD_CREATE_DETACHED 1
12830 int detach = PTHREAD_CREATE_DETACHED;
12832 #if HAVE_PTHREADS > 4
12833 /* Final pthreads */
12834 pthread_attr_t attr;
12836 status = pthread_attr_init(&attr);
12837 if( status ) return status;
12839 #if HAVE_PTHREADS < 7
12840 status = pthread_attr_setdetachstate(&attr, &detach);
12841 if( status < 0 ) status = errno;
12843 status = pthread_attr_setdetachstate(&attr, detach);
12845 if( status ) return status;
12846 status = pthread_create( &t, &attr, task, NULL );
12847 #if HAVE_PTHREADS < 7
12848 if( status < 0 ) status = errno;
12850 if( status ) return status;
12852 /* Draft 4 pthreads */
12853 status = pthread_create( &t, pthread_attr_default, task, NULL );
12854 if( status ) return errno;
12856 /* give thread a chance to complete */
12857 /* it should remain joinable and hence detachable */
12860 status = pthread_detach( &t );
12861 if( status ) return errno;
12864 #ifdef HAVE_LINUX_THREADS
12865 pthread_kill_other_threads_np();
12872 if { (eval echo configure:12873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12874 ol_cv_pthread_mthreads=yes
12876 echo "configure: failed program was:" >&5
12877 cat conftest.$ac_ext >&5
12879 ol_cv_pthread_mthreads=no
12883 cat > conftest.$ac_ext <<EOF
12884 #line 12885 "configure"
12885 #include "confdefs.h"
12886 /* pthread test headers */
12887 #include <pthread.h>
12888 #if HAVE_PTHREADS < 7
12892 #define NULL (void*)0
12895 static void *task(p)
12898 return (void *) (p == NULL);
12902 int main(argc, argv)
12907 /* pthread test function */
12908 #ifndef PTHREAD_CREATE_DETACHED
12909 #define PTHREAD_CREATE_DETACHED 1
12913 int detach = PTHREAD_CREATE_DETACHED;
12915 #if HAVE_PTHREADS > 4
12916 /* Final pthreads */
12917 pthread_attr_t attr;
12919 status = pthread_attr_init(&attr);
12920 if( status ) return status;
12922 #if HAVE_PTHREADS < 7
12923 status = pthread_attr_setdetachstate(&attr, &detach);
12924 if( status < 0 ) status = errno;
12926 status = pthread_attr_setdetachstate(&attr, detach);
12928 if( status ) return status;
12929 status = pthread_create( &t, &attr, task, NULL );
12930 #if HAVE_PTHREADS < 7
12931 if( status < 0 ) status = errno;
12933 if( status ) return status;
12935 /* Draft 4 pthreads */
12936 status = pthread_create( &t, pthread_attr_default, task, NULL );
12937 if( status ) return errno;
12939 /* give thread a chance to complete */
12940 /* it should remain joinable and hence detachable */
12943 status = pthread_detach( &t );
12944 if( status ) return errno;
12947 #ifdef HAVE_LINUX_THREADS
12948 pthread_kill_other_threads_np();
12956 if { (eval echo configure:12957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12958 ol_cv_pthread_mthreads=yes
12960 echo "configure: failed program was:" >&5
12961 cat conftest.$ac_ext >&5
12963 ol_cv_pthread_mthreads=no
12974 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
12976 if test $ol_cv_pthread_mthreads = yes ; then
12977 ol_link_pthreads="-mthreads"
12978 ol_link_threads=posix
12982 # Pthread try link: -thread (ol_cv_pthread_thread)
12983 if test "$ol_link_threads" = no ; then
12985 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
12986 echo "configure:12987: checking for pthread link with -thread" >&5
12987 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
12988 echo $ac_n "(cached) $ac_c" 1>&6
12993 LIBS="-thread $LIBS"
12995 if test "$cross_compiling" = yes; then
12996 cat > conftest.$ac_ext <<EOF
12997 #line 12998 "configure"
12998 #include "confdefs.h"
12999 /* pthread test headers */
13000 #include <pthread.h>
13001 #if HAVE_PTHREADS < 7
13005 #define NULL (void*)0
13008 static void *task(p)
13011 return (void *) (p == NULL);
13016 /* pthread test function */
13017 #ifndef PTHREAD_CREATE_DETACHED
13018 #define PTHREAD_CREATE_DETACHED 1
13022 int detach = PTHREAD_CREATE_DETACHED;
13024 #if HAVE_PTHREADS > 4
13025 /* Final pthreads */
13026 pthread_attr_t attr;
13028 status = pthread_attr_init(&attr);
13029 if( status ) return status;
13031 #if HAVE_PTHREADS < 7
13032 status = pthread_attr_setdetachstate(&attr, &detach);
13033 if( status < 0 ) status = errno;
13035 status = pthread_attr_setdetachstate(&attr, detach);
13037 if( status ) return status;
13038 status = pthread_create( &t, &attr, task, NULL );
13039 #if HAVE_PTHREADS < 7
13040 if( status < 0 ) status = errno;
13042 if( status ) return status;
13044 /* Draft 4 pthreads */
13045 status = pthread_create( &t, pthread_attr_default, task, NULL );
13046 if( status ) return errno;
13048 /* give thread a chance to complete */
13049 /* it should remain joinable and hence detachable */
13052 status = pthread_detach( &t );
13053 if( status ) return errno;
13056 #ifdef HAVE_LINUX_THREADS
13057 pthread_kill_other_threads_np();
13064 if { (eval echo configure:13065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13066 ol_cv_pthread_thread=yes
13068 echo "configure: failed program was:" >&5
13069 cat conftest.$ac_ext >&5
13071 ol_cv_pthread_thread=no
13075 cat > conftest.$ac_ext <<EOF
13076 #line 13077 "configure"
13077 #include "confdefs.h"
13078 /* pthread test headers */
13079 #include <pthread.h>
13080 #if HAVE_PTHREADS < 7
13084 #define NULL (void*)0
13087 static void *task(p)
13090 return (void *) (p == NULL);
13094 int main(argc, argv)
13099 /* pthread test function */
13100 #ifndef PTHREAD_CREATE_DETACHED
13101 #define PTHREAD_CREATE_DETACHED 1
13105 int detach = PTHREAD_CREATE_DETACHED;
13107 #if HAVE_PTHREADS > 4
13108 /* Final pthreads */
13109 pthread_attr_t attr;
13111 status = pthread_attr_init(&attr);
13112 if( status ) return status;
13114 #if HAVE_PTHREADS < 7
13115 status = pthread_attr_setdetachstate(&attr, &detach);
13116 if( status < 0 ) status = errno;
13118 status = pthread_attr_setdetachstate(&attr, detach);
13120 if( status ) return status;
13121 status = pthread_create( &t, &attr, task, NULL );
13122 #if HAVE_PTHREADS < 7
13123 if( status < 0 ) status = errno;
13125 if( status ) return status;
13127 /* Draft 4 pthreads */
13128 status = pthread_create( &t, pthread_attr_default, task, NULL );
13129 if( status ) return errno;
13131 /* give thread a chance to complete */
13132 /* it should remain joinable and hence detachable */
13135 status = pthread_detach( &t );
13136 if( status ) return errno;
13139 #ifdef HAVE_LINUX_THREADS
13140 pthread_kill_other_threads_np();
13148 if { (eval echo configure:13149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13150 ol_cv_pthread_thread=yes
13152 echo "configure: failed program was:" >&5
13153 cat conftest.$ac_ext >&5
13155 ol_cv_pthread_thread=no
13166 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
13168 if test $ol_cv_pthread_thread = yes ; then
13169 ol_link_pthreads="-thread"
13170 ol_link_threads=posix
13175 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
13176 if test "$ol_link_threads" = no ; then
13177 # try -lpthread -lmach -lexc -lc_r
13178 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
13179 echo "configure:13180: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
13180 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
13181 echo $ac_n "(cached) $ac_c" 1>&6
13186 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
13188 if test "$cross_compiling" = yes; then
13189 cat > conftest.$ac_ext <<EOF
13190 #line 13191 "configure"
13191 #include "confdefs.h"
13192 /* pthread test headers */
13193 #include <pthread.h>
13194 #if HAVE_PTHREADS < 7
13198 #define NULL (void*)0
13201 static void *task(p)
13204 return (void *) (p == NULL);
13209 /* pthread test function */
13210 #ifndef PTHREAD_CREATE_DETACHED
13211 #define PTHREAD_CREATE_DETACHED 1
13215 int detach = PTHREAD_CREATE_DETACHED;
13217 #if HAVE_PTHREADS > 4
13218 /* Final pthreads */
13219 pthread_attr_t attr;
13221 status = pthread_attr_init(&attr);
13222 if( status ) return status;
13224 #if HAVE_PTHREADS < 7
13225 status = pthread_attr_setdetachstate(&attr, &detach);
13226 if( status < 0 ) status = errno;
13228 status = pthread_attr_setdetachstate(&attr, detach);
13230 if( status ) return status;
13231 status = pthread_create( &t, &attr, task, NULL );
13232 #if HAVE_PTHREADS < 7
13233 if( status < 0 ) status = errno;
13235 if( status ) return status;
13237 /* Draft 4 pthreads */
13238 status = pthread_create( &t, pthread_attr_default, task, NULL );
13239 if( status ) return errno;
13241 /* give thread a chance to complete */
13242 /* it should remain joinable and hence detachable */
13245 status = pthread_detach( &t );
13246 if( status ) return errno;
13249 #ifdef HAVE_LINUX_THREADS
13250 pthread_kill_other_threads_np();
13257 if { (eval echo configure:13258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13259 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
13261 echo "configure: failed program was:" >&5
13262 cat conftest.$ac_ext >&5
13264 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
13268 cat > conftest.$ac_ext <<EOF
13269 #line 13270 "configure"
13270 #include "confdefs.h"
13271 /* pthread test headers */
13272 #include <pthread.h>
13273 #if HAVE_PTHREADS < 7
13277 #define NULL (void*)0
13280 static void *task(p)
13283 return (void *) (p == NULL);
13287 int main(argc, argv)
13292 /* pthread test function */
13293 #ifndef PTHREAD_CREATE_DETACHED
13294 #define PTHREAD_CREATE_DETACHED 1
13298 int detach = PTHREAD_CREATE_DETACHED;
13300 #if HAVE_PTHREADS > 4
13301 /* Final pthreads */
13302 pthread_attr_t attr;
13304 status = pthread_attr_init(&attr);
13305 if( status ) return status;
13307 #if HAVE_PTHREADS < 7
13308 status = pthread_attr_setdetachstate(&attr, &detach);
13309 if( status < 0 ) status = errno;
13311 status = pthread_attr_setdetachstate(&attr, detach);
13313 if( status ) return status;
13314 status = pthread_create( &t, &attr, task, NULL );
13315 #if HAVE_PTHREADS < 7
13316 if( status < 0 ) status = errno;
13318 if( status ) return status;
13320 /* Draft 4 pthreads */
13321 status = pthread_create( &t, pthread_attr_default, task, NULL );
13322 if( status ) return errno;
13324 /* give thread a chance to complete */
13325 /* it should remain joinable and hence detachable */
13328 status = pthread_detach( &t );
13329 if( status ) return errno;
13332 #ifdef HAVE_LINUX_THREADS
13333 pthread_kill_other_threads_np();
13341 if { (eval echo configure:13342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13343 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
13345 echo "configure: failed program was:" >&5
13346 cat conftest.$ac_ext >&5
13348 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
13359 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
13361 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
13362 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
13363 ol_link_threads=posix
13367 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
13368 if test "$ol_link_threads" = no ; then
13369 # try -lpthread -lmach -lexc
13370 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
13371 echo "configure:13372: checking for pthread link with -lpthread -lmach -lexc" >&5
13372 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
13373 echo $ac_n "(cached) $ac_c" 1>&6
13378 LIBS="-lpthread -lmach -lexc $LIBS"
13380 if test "$cross_compiling" = yes; then
13381 cat > conftest.$ac_ext <<EOF
13382 #line 13383 "configure"
13383 #include "confdefs.h"
13384 /* pthread test headers */
13385 #include <pthread.h>
13386 #if HAVE_PTHREADS < 7
13390 #define NULL (void*)0
13393 static void *task(p)
13396 return (void *) (p == NULL);
13401 /* pthread test function */
13402 #ifndef PTHREAD_CREATE_DETACHED
13403 #define PTHREAD_CREATE_DETACHED 1
13407 int detach = PTHREAD_CREATE_DETACHED;
13409 #if HAVE_PTHREADS > 4
13410 /* Final pthreads */
13411 pthread_attr_t attr;
13413 status = pthread_attr_init(&attr);
13414 if( status ) return status;
13416 #if HAVE_PTHREADS < 7
13417 status = pthread_attr_setdetachstate(&attr, &detach);
13418 if( status < 0 ) status = errno;
13420 status = pthread_attr_setdetachstate(&attr, detach);
13422 if( status ) return status;
13423 status = pthread_create( &t, &attr, task, NULL );
13424 #if HAVE_PTHREADS < 7
13425 if( status < 0 ) status = errno;
13427 if( status ) return status;
13429 /* Draft 4 pthreads */
13430 status = pthread_create( &t, pthread_attr_default, task, NULL );
13431 if( status ) return errno;
13433 /* give thread a chance to complete */
13434 /* it should remain joinable and hence detachable */
13437 status = pthread_detach( &t );
13438 if( status ) return errno;
13441 #ifdef HAVE_LINUX_THREADS
13442 pthread_kill_other_threads_np();
13449 if { (eval echo configure:13450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13451 ol_cv_pthread_lpthread_lmach_lexc=yes
13453 echo "configure: failed program was:" >&5
13454 cat conftest.$ac_ext >&5
13456 ol_cv_pthread_lpthread_lmach_lexc=no
13460 cat > conftest.$ac_ext <<EOF
13461 #line 13462 "configure"
13462 #include "confdefs.h"
13463 /* pthread test headers */
13464 #include <pthread.h>
13465 #if HAVE_PTHREADS < 7
13469 #define NULL (void*)0
13472 static void *task(p)
13475 return (void *) (p == NULL);
13479 int main(argc, argv)
13484 /* pthread test function */
13485 #ifndef PTHREAD_CREATE_DETACHED
13486 #define PTHREAD_CREATE_DETACHED 1
13490 int detach = PTHREAD_CREATE_DETACHED;
13492 #if HAVE_PTHREADS > 4
13493 /* Final pthreads */
13494 pthread_attr_t attr;
13496 status = pthread_attr_init(&attr);
13497 if( status ) return status;
13499 #if HAVE_PTHREADS < 7
13500 status = pthread_attr_setdetachstate(&attr, &detach);
13501 if( status < 0 ) status = errno;
13503 status = pthread_attr_setdetachstate(&attr, detach);
13505 if( status ) return status;
13506 status = pthread_create( &t, &attr, task, NULL );
13507 #if HAVE_PTHREADS < 7
13508 if( status < 0 ) status = errno;
13510 if( status ) return status;
13512 /* Draft 4 pthreads */
13513 status = pthread_create( &t, pthread_attr_default, task, NULL );
13514 if( status ) return errno;
13516 /* give thread a chance to complete */
13517 /* it should remain joinable and hence detachable */
13520 status = pthread_detach( &t );
13521 if( status ) return errno;
13524 #ifdef HAVE_LINUX_THREADS
13525 pthread_kill_other_threads_np();
13533 if { (eval echo configure:13534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13535 ol_cv_pthread_lpthread_lmach_lexc=yes
13537 echo "configure: failed program was:" >&5
13538 cat conftest.$ac_ext >&5
13540 ol_cv_pthread_lpthread_lmach_lexc=no
13551 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
13553 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
13554 ol_link_pthreads="-lpthread -lmach -lexc"
13555 ol_link_threads=posix
13560 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
13561 if test "$ol_link_threads" = no ; then
13562 # try -lpthread -Wl,-woff,85
13563 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
13564 echo "configure:13565: checking for pthread link with -lpthread -Wl,-woff,85" >&5
13565 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
13566 echo $ac_n "(cached) $ac_c" 1>&6
13571 LIBS="-lpthread -Wl,-woff,85 $LIBS"
13573 if test "$cross_compiling" = yes; then
13574 cat > conftest.$ac_ext <<EOF
13575 #line 13576 "configure"
13576 #include "confdefs.h"
13577 /* pthread test headers */
13578 #include <pthread.h>
13579 #if HAVE_PTHREADS < 7
13583 #define NULL (void*)0
13586 static void *task(p)
13589 return (void *) (p == NULL);
13594 /* pthread test function */
13595 #ifndef PTHREAD_CREATE_DETACHED
13596 #define PTHREAD_CREATE_DETACHED 1
13600 int detach = PTHREAD_CREATE_DETACHED;
13602 #if HAVE_PTHREADS > 4
13603 /* Final pthreads */
13604 pthread_attr_t attr;
13606 status = pthread_attr_init(&attr);
13607 if( status ) return status;
13609 #if HAVE_PTHREADS < 7
13610 status = pthread_attr_setdetachstate(&attr, &detach);
13611 if( status < 0 ) status = errno;
13613 status = pthread_attr_setdetachstate(&attr, detach);
13615 if( status ) return status;
13616 status = pthread_create( &t, &attr, task, NULL );
13617 #if HAVE_PTHREADS < 7
13618 if( status < 0 ) status = errno;
13620 if( status ) return status;
13622 /* Draft 4 pthreads */
13623 status = pthread_create( &t, pthread_attr_default, task, NULL );
13624 if( status ) return errno;
13626 /* give thread a chance to complete */
13627 /* it should remain joinable and hence detachable */
13630 status = pthread_detach( &t );
13631 if( status ) return errno;
13634 #ifdef HAVE_LINUX_THREADS
13635 pthread_kill_other_threads_np();
13642 if { (eval echo configure:13643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13644 ol_cv_pthread_lib_lpthread_woff=yes
13646 echo "configure: failed program was:" >&5
13647 cat conftest.$ac_ext >&5
13649 ol_cv_pthread_lib_lpthread_woff=no
13653 cat > conftest.$ac_ext <<EOF
13654 #line 13655 "configure"
13655 #include "confdefs.h"
13656 /* pthread test headers */
13657 #include <pthread.h>
13658 #if HAVE_PTHREADS < 7
13662 #define NULL (void*)0
13665 static void *task(p)
13668 return (void *) (p == NULL);
13672 int main(argc, argv)
13677 /* pthread test function */
13678 #ifndef PTHREAD_CREATE_DETACHED
13679 #define PTHREAD_CREATE_DETACHED 1
13683 int detach = PTHREAD_CREATE_DETACHED;
13685 #if HAVE_PTHREADS > 4
13686 /* Final pthreads */
13687 pthread_attr_t attr;
13689 status = pthread_attr_init(&attr);
13690 if( status ) return status;
13692 #if HAVE_PTHREADS < 7
13693 status = pthread_attr_setdetachstate(&attr, &detach);
13694 if( status < 0 ) status = errno;
13696 status = pthread_attr_setdetachstate(&attr, detach);
13698 if( status ) return status;
13699 status = pthread_create( &t, &attr, task, NULL );
13700 #if HAVE_PTHREADS < 7
13701 if( status < 0 ) status = errno;
13703 if( status ) return status;
13705 /* Draft 4 pthreads */
13706 status = pthread_create( &t, pthread_attr_default, task, NULL );
13707 if( status ) return errno;
13709 /* give thread a chance to complete */
13710 /* it should remain joinable and hence detachable */
13713 status = pthread_detach( &t );
13714 if( status ) return errno;
13717 #ifdef HAVE_LINUX_THREADS
13718 pthread_kill_other_threads_np();
13726 if { (eval echo configure:13727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13728 ol_cv_pthread_lib_lpthread_woff=yes
13730 echo "configure: failed program was:" >&5
13731 cat conftest.$ac_ext >&5
13733 ol_cv_pthread_lib_lpthread_woff=no
13744 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
13746 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
13747 ol_link_pthreads="-lpthread -Wl,-woff,85"
13748 ol_link_threads=posix
13753 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
13754 if test "$ol_link_threads" = no ; then
13756 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
13757 echo "configure:13758: checking for pthread link with -lpthread" >&5
13758 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
13759 echo $ac_n "(cached) $ac_c" 1>&6
13764 LIBS="-lpthread $LIBS"
13766 if test "$cross_compiling" = yes; then
13767 cat > conftest.$ac_ext <<EOF
13768 #line 13769 "configure"
13769 #include "confdefs.h"
13770 /* pthread test headers */
13771 #include <pthread.h>
13772 #if HAVE_PTHREADS < 7
13776 #define NULL (void*)0
13779 static void *task(p)
13782 return (void *) (p == NULL);
13787 /* pthread test function */
13788 #ifndef PTHREAD_CREATE_DETACHED
13789 #define PTHREAD_CREATE_DETACHED 1
13793 int detach = PTHREAD_CREATE_DETACHED;
13795 #if HAVE_PTHREADS > 4
13796 /* Final pthreads */
13797 pthread_attr_t attr;
13799 status = pthread_attr_init(&attr);
13800 if( status ) return status;
13802 #if HAVE_PTHREADS < 7
13803 status = pthread_attr_setdetachstate(&attr, &detach);
13804 if( status < 0 ) status = errno;
13806 status = pthread_attr_setdetachstate(&attr, detach);
13808 if( status ) return status;
13809 status = pthread_create( &t, &attr, task, NULL );
13810 #if HAVE_PTHREADS < 7
13811 if( status < 0 ) status = errno;
13813 if( status ) return status;
13815 /* Draft 4 pthreads */
13816 status = pthread_create( &t, pthread_attr_default, task, NULL );
13817 if( status ) return errno;
13819 /* give thread a chance to complete */
13820 /* it should remain joinable and hence detachable */
13823 status = pthread_detach( &t );
13824 if( status ) return errno;
13827 #ifdef HAVE_LINUX_THREADS
13828 pthread_kill_other_threads_np();
13835 if { (eval echo configure:13836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13837 ol_cv_pthread_lpthread=yes
13839 echo "configure: failed program was:" >&5
13840 cat conftest.$ac_ext >&5
13842 ol_cv_pthread_lpthread=no
13846 cat > conftest.$ac_ext <<EOF
13847 #line 13848 "configure"
13848 #include "confdefs.h"
13849 /* pthread test headers */
13850 #include <pthread.h>
13851 #if HAVE_PTHREADS < 7
13855 #define NULL (void*)0
13858 static void *task(p)
13861 return (void *) (p == NULL);
13865 int main(argc, argv)
13870 /* pthread test function */
13871 #ifndef PTHREAD_CREATE_DETACHED
13872 #define PTHREAD_CREATE_DETACHED 1
13876 int detach = PTHREAD_CREATE_DETACHED;
13878 #if HAVE_PTHREADS > 4
13879 /* Final pthreads */
13880 pthread_attr_t attr;
13882 status = pthread_attr_init(&attr);
13883 if( status ) return status;
13885 #if HAVE_PTHREADS < 7
13886 status = pthread_attr_setdetachstate(&attr, &detach);
13887 if( status < 0 ) status = errno;
13889 status = pthread_attr_setdetachstate(&attr, detach);
13891 if( status ) return status;
13892 status = pthread_create( &t, &attr, task, NULL );
13893 #if HAVE_PTHREADS < 7
13894 if( status < 0 ) status = errno;
13896 if( status ) return status;
13898 /* Draft 4 pthreads */
13899 status = pthread_create( &t, pthread_attr_default, task, NULL );
13900 if( status ) return errno;
13902 /* give thread a chance to complete */
13903 /* it should remain joinable and hence detachable */
13906 status = pthread_detach( &t );
13907 if( status ) return errno;
13910 #ifdef HAVE_LINUX_THREADS
13911 pthread_kill_other_threads_np();
13919 if { (eval echo configure:13920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13921 ol_cv_pthread_lpthread=yes
13923 echo "configure: failed program was:" >&5
13924 cat conftest.$ac_ext >&5
13926 ol_cv_pthread_lpthread=no
13937 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
13939 if test $ol_cv_pthread_lpthread = yes ; then
13940 ol_link_pthreads="-lpthread"
13941 ol_link_threads=posix
13945 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
13946 if test "$ol_link_threads" = no ; then
13948 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
13949 echo "configure:13950: checking for pthread link with -lc_r" >&5
13950 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
13951 echo $ac_n "(cached) $ac_c" 1>&6
13958 if test "$cross_compiling" = yes; then
13959 cat > conftest.$ac_ext <<EOF
13960 #line 13961 "configure"
13961 #include "confdefs.h"
13962 /* pthread test headers */
13963 #include <pthread.h>
13964 #if HAVE_PTHREADS < 7
13968 #define NULL (void*)0
13971 static void *task(p)
13974 return (void *) (p == NULL);
13979 /* pthread test function */
13980 #ifndef PTHREAD_CREATE_DETACHED
13981 #define PTHREAD_CREATE_DETACHED 1
13985 int detach = PTHREAD_CREATE_DETACHED;
13987 #if HAVE_PTHREADS > 4
13988 /* Final pthreads */
13989 pthread_attr_t attr;
13991 status = pthread_attr_init(&attr);
13992 if( status ) return status;
13994 #if HAVE_PTHREADS < 7
13995 status = pthread_attr_setdetachstate(&attr, &detach);
13996 if( status < 0 ) status = errno;
13998 status = pthread_attr_setdetachstate(&attr, detach);
14000 if( status ) return status;
14001 status = pthread_create( &t, &attr, task, NULL );
14002 #if HAVE_PTHREADS < 7
14003 if( status < 0 ) status = errno;
14005 if( status ) return status;
14007 /* Draft 4 pthreads */
14008 status = pthread_create( &t, pthread_attr_default, task, NULL );
14009 if( status ) return errno;
14011 /* give thread a chance to complete */
14012 /* it should remain joinable and hence detachable */
14015 status = pthread_detach( &t );
14016 if( status ) return errno;
14019 #ifdef HAVE_LINUX_THREADS
14020 pthread_kill_other_threads_np();
14027 if { (eval echo configure:14028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14029 ol_cv_pthread_lc_r=yes
14031 echo "configure: failed program was:" >&5
14032 cat conftest.$ac_ext >&5
14034 ol_cv_pthread_lc_r=no
14038 cat > conftest.$ac_ext <<EOF
14039 #line 14040 "configure"
14040 #include "confdefs.h"
14041 /* pthread test headers */
14042 #include <pthread.h>
14043 #if HAVE_PTHREADS < 7
14047 #define NULL (void*)0
14050 static void *task(p)
14053 return (void *) (p == NULL);
14057 int main(argc, argv)
14062 /* pthread test function */
14063 #ifndef PTHREAD_CREATE_DETACHED
14064 #define PTHREAD_CREATE_DETACHED 1
14068 int detach = PTHREAD_CREATE_DETACHED;
14070 #if HAVE_PTHREADS > 4
14071 /* Final pthreads */
14072 pthread_attr_t attr;
14074 status = pthread_attr_init(&attr);
14075 if( status ) return status;
14077 #if HAVE_PTHREADS < 7
14078 status = pthread_attr_setdetachstate(&attr, &detach);
14079 if( status < 0 ) status = errno;
14081 status = pthread_attr_setdetachstate(&attr, detach);
14083 if( status ) return status;
14084 status = pthread_create( &t, &attr, task, NULL );
14085 #if HAVE_PTHREADS < 7
14086 if( status < 0 ) status = errno;
14088 if( status ) return status;
14090 /* Draft 4 pthreads */
14091 status = pthread_create( &t, pthread_attr_default, task, NULL );
14092 if( status ) return errno;
14094 /* give thread a chance to complete */
14095 /* it should remain joinable and hence detachable */
14098 status = pthread_detach( &t );
14099 if( status ) return errno;
14102 #ifdef HAVE_LINUX_THREADS
14103 pthread_kill_other_threads_np();
14111 if { (eval echo configure:14112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14113 ol_cv_pthread_lc_r=yes
14115 echo "configure: failed program was:" >&5
14116 cat conftest.$ac_ext >&5
14118 ol_cv_pthread_lc_r=no
14129 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
14131 if test $ol_cv_pthread_lc_r = yes ; then
14132 ol_link_pthreads="-lc_r"
14133 ol_link_threads=posix
14138 # Pthread try link: -threads (ol_cv_pthread_threads)
14139 if test "$ol_link_threads" = no ; then
14141 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
14142 echo "configure:14143: checking for pthread link with -threads" >&5
14143 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
14144 echo $ac_n "(cached) $ac_c" 1>&6
14149 LIBS="-threads $LIBS"
14151 if test "$cross_compiling" = yes; then
14152 cat > conftest.$ac_ext <<EOF
14153 #line 14154 "configure"
14154 #include "confdefs.h"
14155 /* pthread test headers */
14156 #include <pthread.h>
14157 #if HAVE_PTHREADS < 7
14161 #define NULL (void*)0
14164 static void *task(p)
14167 return (void *) (p == NULL);
14172 /* pthread test function */
14173 #ifndef PTHREAD_CREATE_DETACHED
14174 #define PTHREAD_CREATE_DETACHED 1
14178 int detach = PTHREAD_CREATE_DETACHED;
14180 #if HAVE_PTHREADS > 4
14181 /* Final pthreads */
14182 pthread_attr_t attr;
14184 status = pthread_attr_init(&attr);
14185 if( status ) return status;
14187 #if HAVE_PTHREADS < 7
14188 status = pthread_attr_setdetachstate(&attr, &detach);
14189 if( status < 0 ) status = errno;
14191 status = pthread_attr_setdetachstate(&attr, detach);
14193 if( status ) return status;
14194 status = pthread_create( &t, &attr, task, NULL );
14195 #if HAVE_PTHREADS < 7
14196 if( status < 0 ) status = errno;
14198 if( status ) return status;
14200 /* Draft 4 pthreads */
14201 status = pthread_create( &t, pthread_attr_default, task, NULL );
14202 if( status ) return errno;
14204 /* give thread a chance to complete */
14205 /* it should remain joinable and hence detachable */
14208 status = pthread_detach( &t );
14209 if( status ) return errno;
14212 #ifdef HAVE_LINUX_THREADS
14213 pthread_kill_other_threads_np();
14220 if { (eval echo configure:14221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14222 ol_cv_pthread_threads=yes
14224 echo "configure: failed program was:" >&5
14225 cat conftest.$ac_ext >&5
14227 ol_cv_pthread_threads=no
14231 cat > conftest.$ac_ext <<EOF
14232 #line 14233 "configure"
14233 #include "confdefs.h"
14234 /* pthread test headers */
14235 #include <pthread.h>
14236 #if HAVE_PTHREADS < 7
14240 #define NULL (void*)0
14243 static void *task(p)
14246 return (void *) (p == NULL);
14250 int main(argc, argv)
14255 /* pthread test function */
14256 #ifndef PTHREAD_CREATE_DETACHED
14257 #define PTHREAD_CREATE_DETACHED 1
14261 int detach = PTHREAD_CREATE_DETACHED;
14263 #if HAVE_PTHREADS > 4
14264 /* Final pthreads */
14265 pthread_attr_t attr;
14267 status = pthread_attr_init(&attr);
14268 if( status ) return status;
14270 #if HAVE_PTHREADS < 7
14271 status = pthread_attr_setdetachstate(&attr, &detach);
14272 if( status < 0 ) status = errno;
14274 status = pthread_attr_setdetachstate(&attr, detach);
14276 if( status ) return status;
14277 status = pthread_create( &t, &attr, task, NULL );
14278 #if HAVE_PTHREADS < 7
14279 if( status < 0 ) status = errno;
14281 if( status ) return status;
14283 /* Draft 4 pthreads */
14284 status = pthread_create( &t, pthread_attr_default, task, NULL );
14285 if( status ) return errno;
14287 /* give thread a chance to complete */
14288 /* it should remain joinable and hence detachable */
14291 status = pthread_detach( &t );
14292 if( status ) return errno;
14295 #ifdef HAVE_LINUX_THREADS
14296 pthread_kill_other_threads_np();
14304 if { (eval echo configure:14305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14306 ol_cv_pthread_threads=yes
14308 echo "configure: failed program was:" >&5
14309 cat conftest.$ac_ext >&5
14311 ol_cv_pthread_threads=no
14322 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
14324 if test $ol_cv_pthread_threads = yes ; then
14325 ol_link_pthreads="-threads"
14326 ol_link_threads=posix
14331 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
14332 if test "$ol_link_threads" = no ; then
14333 # try -lpthreads -lmach -lexc -lc_r
14334 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
14335 echo "configure:14336: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
14336 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
14337 echo $ac_n "(cached) $ac_c" 1>&6
14342 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
14344 if test "$cross_compiling" = yes; then
14345 cat > conftest.$ac_ext <<EOF
14346 #line 14347 "configure"
14347 #include "confdefs.h"
14348 /* pthread test headers */
14349 #include <pthread.h>
14350 #if HAVE_PTHREADS < 7
14354 #define NULL (void*)0
14357 static void *task(p)
14360 return (void *) (p == NULL);
14365 /* pthread test function */
14366 #ifndef PTHREAD_CREATE_DETACHED
14367 #define PTHREAD_CREATE_DETACHED 1
14371 int detach = PTHREAD_CREATE_DETACHED;
14373 #if HAVE_PTHREADS > 4
14374 /* Final pthreads */
14375 pthread_attr_t attr;
14377 status = pthread_attr_init(&attr);
14378 if( status ) return status;
14380 #if HAVE_PTHREADS < 7
14381 status = pthread_attr_setdetachstate(&attr, &detach);
14382 if( status < 0 ) status = errno;
14384 status = pthread_attr_setdetachstate(&attr, detach);
14386 if( status ) return status;
14387 status = pthread_create( &t, &attr, task, NULL );
14388 #if HAVE_PTHREADS < 7
14389 if( status < 0 ) status = errno;
14391 if( status ) return status;
14393 /* Draft 4 pthreads */
14394 status = pthread_create( &t, pthread_attr_default, task, NULL );
14395 if( status ) return errno;
14397 /* give thread a chance to complete */
14398 /* it should remain joinable and hence detachable */
14401 status = pthread_detach( &t );
14402 if( status ) return errno;
14405 #ifdef HAVE_LINUX_THREADS
14406 pthread_kill_other_threads_np();
14413 if { (eval echo configure:14414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14415 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
14417 echo "configure: failed program was:" >&5
14418 cat conftest.$ac_ext >&5
14420 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
14424 cat > conftest.$ac_ext <<EOF
14425 #line 14426 "configure"
14426 #include "confdefs.h"
14427 /* pthread test headers */
14428 #include <pthread.h>
14429 #if HAVE_PTHREADS < 7
14433 #define NULL (void*)0
14436 static void *task(p)
14439 return (void *) (p == NULL);
14443 int main(argc, argv)
14448 /* pthread test function */
14449 #ifndef PTHREAD_CREATE_DETACHED
14450 #define PTHREAD_CREATE_DETACHED 1
14454 int detach = PTHREAD_CREATE_DETACHED;
14456 #if HAVE_PTHREADS > 4
14457 /* Final pthreads */
14458 pthread_attr_t attr;
14460 status = pthread_attr_init(&attr);
14461 if( status ) return status;
14463 #if HAVE_PTHREADS < 7
14464 status = pthread_attr_setdetachstate(&attr, &detach);
14465 if( status < 0 ) status = errno;
14467 status = pthread_attr_setdetachstate(&attr, detach);
14469 if( status ) return status;
14470 status = pthread_create( &t, &attr, task, NULL );
14471 #if HAVE_PTHREADS < 7
14472 if( status < 0 ) status = errno;
14474 if( status ) return status;
14476 /* Draft 4 pthreads */
14477 status = pthread_create( &t, pthread_attr_default, task, NULL );
14478 if( status ) return errno;
14480 /* give thread a chance to complete */
14481 /* it should remain joinable and hence detachable */
14484 status = pthread_detach( &t );
14485 if( status ) return errno;
14488 #ifdef HAVE_LINUX_THREADS
14489 pthread_kill_other_threads_np();
14497 if { (eval echo configure:14498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14499 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
14501 echo "configure: failed program was:" >&5
14502 cat conftest.$ac_ext >&5
14504 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
14515 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
14517 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
14518 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
14519 ol_link_threads=posix
14523 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
14524 if test "$ol_link_threads" = no ; then
14525 # try -lpthreads -lmach -lexc
14526 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
14527 echo "configure:14528: checking for pthread link with -lpthreads -lmach -lexc" >&5
14528 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
14529 echo $ac_n "(cached) $ac_c" 1>&6
14534 LIBS="-lpthreads -lmach -lexc $LIBS"
14536 if test "$cross_compiling" = yes; then
14537 cat > conftest.$ac_ext <<EOF
14538 #line 14539 "configure"
14539 #include "confdefs.h"
14540 /* pthread test headers */
14541 #include <pthread.h>
14542 #if HAVE_PTHREADS < 7
14546 #define NULL (void*)0
14549 static void *task(p)
14552 return (void *) (p == NULL);
14557 /* pthread test function */
14558 #ifndef PTHREAD_CREATE_DETACHED
14559 #define PTHREAD_CREATE_DETACHED 1
14563 int detach = PTHREAD_CREATE_DETACHED;
14565 #if HAVE_PTHREADS > 4
14566 /* Final pthreads */
14567 pthread_attr_t attr;
14569 status = pthread_attr_init(&attr);
14570 if( status ) return status;
14572 #if HAVE_PTHREADS < 7
14573 status = pthread_attr_setdetachstate(&attr, &detach);
14574 if( status < 0 ) status = errno;
14576 status = pthread_attr_setdetachstate(&attr, detach);
14578 if( status ) return status;
14579 status = pthread_create( &t, &attr, task, NULL );
14580 #if HAVE_PTHREADS < 7
14581 if( status < 0 ) status = errno;
14583 if( status ) return status;
14585 /* Draft 4 pthreads */
14586 status = pthread_create( &t, pthread_attr_default, task, NULL );
14587 if( status ) return errno;
14589 /* give thread a chance to complete */
14590 /* it should remain joinable and hence detachable */
14593 status = pthread_detach( &t );
14594 if( status ) return errno;
14597 #ifdef HAVE_LINUX_THREADS
14598 pthread_kill_other_threads_np();
14605 if { (eval echo configure:14606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14607 ol_cv_pthread_lpthreads_lmach_lexc=yes
14609 echo "configure: failed program was:" >&5
14610 cat conftest.$ac_ext >&5
14612 ol_cv_pthread_lpthreads_lmach_lexc=no
14616 cat > conftest.$ac_ext <<EOF
14617 #line 14618 "configure"
14618 #include "confdefs.h"
14619 /* pthread test headers */
14620 #include <pthread.h>
14621 #if HAVE_PTHREADS < 7
14625 #define NULL (void*)0
14628 static void *task(p)
14631 return (void *) (p == NULL);
14635 int main(argc, argv)
14640 /* pthread test function */
14641 #ifndef PTHREAD_CREATE_DETACHED
14642 #define PTHREAD_CREATE_DETACHED 1
14646 int detach = PTHREAD_CREATE_DETACHED;
14648 #if HAVE_PTHREADS > 4
14649 /* Final pthreads */
14650 pthread_attr_t attr;
14652 status = pthread_attr_init(&attr);
14653 if( status ) return status;
14655 #if HAVE_PTHREADS < 7
14656 status = pthread_attr_setdetachstate(&attr, &detach);
14657 if( status < 0 ) status = errno;
14659 status = pthread_attr_setdetachstate(&attr, detach);
14661 if( status ) return status;
14662 status = pthread_create( &t, &attr, task, NULL );
14663 #if HAVE_PTHREADS < 7
14664 if( status < 0 ) status = errno;
14666 if( status ) return status;
14668 /* Draft 4 pthreads */
14669 status = pthread_create( &t, pthread_attr_default, task, NULL );
14670 if( status ) return errno;
14672 /* give thread a chance to complete */
14673 /* it should remain joinable and hence detachable */
14676 status = pthread_detach( &t );
14677 if( status ) return errno;
14680 #ifdef HAVE_LINUX_THREADS
14681 pthread_kill_other_threads_np();
14689 if { (eval echo configure:14690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14691 ol_cv_pthread_lpthreads_lmach_lexc=yes
14693 echo "configure: failed program was:" >&5
14694 cat conftest.$ac_ext >&5
14696 ol_cv_pthread_lpthreads_lmach_lexc=no
14707 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
14709 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
14710 ol_link_pthreads="-lpthreads -lmach -lexc"
14711 ol_link_threads=posix
14715 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
14716 if test "$ol_link_threads" = no ; then
14717 # try -lpthreads -lexc
14718 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
14719 echo "configure:14720: checking for pthread link with -lpthreads -lexc" >&5
14720 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
14721 echo $ac_n "(cached) $ac_c" 1>&6
14726 LIBS="-lpthreads -lexc $LIBS"
14728 if test "$cross_compiling" = yes; then
14729 cat > conftest.$ac_ext <<EOF
14730 #line 14731 "configure"
14731 #include "confdefs.h"
14732 /* pthread test headers */
14733 #include <pthread.h>
14734 #if HAVE_PTHREADS < 7
14738 #define NULL (void*)0
14741 static void *task(p)
14744 return (void *) (p == NULL);
14749 /* pthread test function */
14750 #ifndef PTHREAD_CREATE_DETACHED
14751 #define PTHREAD_CREATE_DETACHED 1
14755 int detach = PTHREAD_CREATE_DETACHED;
14757 #if HAVE_PTHREADS > 4
14758 /* Final pthreads */
14759 pthread_attr_t attr;
14761 status = pthread_attr_init(&attr);
14762 if( status ) return status;
14764 #if HAVE_PTHREADS < 7
14765 status = pthread_attr_setdetachstate(&attr, &detach);
14766 if( status < 0 ) status = errno;
14768 status = pthread_attr_setdetachstate(&attr, detach);
14770 if( status ) return status;
14771 status = pthread_create( &t, &attr, task, NULL );
14772 #if HAVE_PTHREADS < 7
14773 if( status < 0 ) status = errno;
14775 if( status ) return status;
14777 /* Draft 4 pthreads */
14778 status = pthread_create( &t, pthread_attr_default, task, NULL );
14779 if( status ) return errno;
14781 /* give thread a chance to complete */
14782 /* it should remain joinable and hence detachable */
14785 status = pthread_detach( &t );
14786 if( status ) return errno;
14789 #ifdef HAVE_LINUX_THREADS
14790 pthread_kill_other_threads_np();
14797 if { (eval echo configure:14798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14799 ol_cv_pthread_lpthreads_lexc=yes
14801 echo "configure: failed program was:" >&5
14802 cat conftest.$ac_ext >&5
14804 ol_cv_pthread_lpthreads_lexc=no
14808 cat > conftest.$ac_ext <<EOF
14809 #line 14810 "configure"
14810 #include "confdefs.h"
14811 /* pthread test headers */
14812 #include <pthread.h>
14813 #if HAVE_PTHREADS < 7
14817 #define NULL (void*)0
14820 static void *task(p)
14823 return (void *) (p == NULL);
14827 int main(argc, argv)
14832 /* pthread test function */
14833 #ifndef PTHREAD_CREATE_DETACHED
14834 #define PTHREAD_CREATE_DETACHED 1
14838 int detach = PTHREAD_CREATE_DETACHED;
14840 #if HAVE_PTHREADS > 4
14841 /* Final pthreads */
14842 pthread_attr_t attr;
14844 status = pthread_attr_init(&attr);
14845 if( status ) return status;
14847 #if HAVE_PTHREADS < 7
14848 status = pthread_attr_setdetachstate(&attr, &detach);
14849 if( status < 0 ) status = errno;
14851 status = pthread_attr_setdetachstate(&attr, detach);
14853 if( status ) return status;
14854 status = pthread_create( &t, &attr, task, NULL );
14855 #if HAVE_PTHREADS < 7
14856 if( status < 0 ) status = errno;
14858 if( status ) return status;
14860 /* Draft 4 pthreads */
14861 status = pthread_create( &t, pthread_attr_default, task, NULL );
14862 if( status ) return errno;
14864 /* give thread a chance to complete */
14865 /* it should remain joinable and hence detachable */
14868 status = pthread_detach( &t );
14869 if( status ) return errno;
14872 #ifdef HAVE_LINUX_THREADS
14873 pthread_kill_other_threads_np();
14881 if { (eval echo configure:14882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14883 ol_cv_pthread_lpthreads_lexc=yes
14885 echo "configure: failed program was:" >&5
14886 cat conftest.$ac_ext >&5
14888 ol_cv_pthread_lpthreads_lexc=no
14899 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
14901 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
14902 ol_link_pthreads="-lpthreads -lexc"
14903 ol_link_threads=posix
14908 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
14909 if test "$ol_link_threads" = no ; then
14911 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
14912 echo "configure:14913: checking for pthread link with -lpthreads" >&5
14913 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
14914 echo $ac_n "(cached) $ac_c" 1>&6
14919 LIBS="-lpthreads $LIBS"
14921 if test "$cross_compiling" = yes; then
14922 cat > conftest.$ac_ext <<EOF
14923 #line 14924 "configure"
14924 #include "confdefs.h"
14925 /* pthread test headers */
14926 #include <pthread.h>
14927 #if HAVE_PTHREADS < 7
14931 #define NULL (void*)0
14934 static void *task(p)
14937 return (void *) (p == NULL);
14942 /* pthread test function */
14943 #ifndef PTHREAD_CREATE_DETACHED
14944 #define PTHREAD_CREATE_DETACHED 1
14948 int detach = PTHREAD_CREATE_DETACHED;
14950 #if HAVE_PTHREADS > 4
14951 /* Final pthreads */
14952 pthread_attr_t attr;
14954 status = pthread_attr_init(&attr);
14955 if( status ) return status;
14957 #if HAVE_PTHREADS < 7
14958 status = pthread_attr_setdetachstate(&attr, &detach);
14959 if( status < 0 ) status = errno;
14961 status = pthread_attr_setdetachstate(&attr, detach);
14963 if( status ) return status;
14964 status = pthread_create( &t, &attr, task, NULL );
14965 #if HAVE_PTHREADS < 7
14966 if( status < 0 ) status = errno;
14968 if( status ) return status;
14970 /* Draft 4 pthreads */
14971 status = pthread_create( &t, pthread_attr_default, task, NULL );
14972 if( status ) return errno;
14974 /* give thread a chance to complete */
14975 /* it should remain joinable and hence detachable */
14978 status = pthread_detach( &t );
14979 if( status ) return errno;
14982 #ifdef HAVE_LINUX_THREADS
14983 pthread_kill_other_threads_np();
14990 if { (eval echo configure:14991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14992 ol_cv_pthread_lib_lpthreads=yes
14994 echo "configure: failed program was:" >&5
14995 cat conftest.$ac_ext >&5
14997 ol_cv_pthread_lib_lpthreads=no
15001 cat > conftest.$ac_ext <<EOF
15002 #line 15003 "configure"
15003 #include "confdefs.h"
15004 /* pthread test headers */
15005 #include <pthread.h>
15006 #if HAVE_PTHREADS < 7
15010 #define NULL (void*)0
15013 static void *task(p)
15016 return (void *) (p == NULL);
15020 int main(argc, argv)
15025 /* pthread test function */
15026 #ifndef PTHREAD_CREATE_DETACHED
15027 #define PTHREAD_CREATE_DETACHED 1
15031 int detach = PTHREAD_CREATE_DETACHED;
15033 #if HAVE_PTHREADS > 4
15034 /* Final pthreads */
15035 pthread_attr_t attr;
15037 status = pthread_attr_init(&attr);
15038 if( status ) return status;
15040 #if HAVE_PTHREADS < 7
15041 status = pthread_attr_setdetachstate(&attr, &detach);
15042 if( status < 0 ) status = errno;
15044 status = pthread_attr_setdetachstate(&attr, detach);
15046 if( status ) return status;
15047 status = pthread_create( &t, &attr, task, NULL );
15048 #if HAVE_PTHREADS < 7
15049 if( status < 0 ) status = errno;
15051 if( status ) return status;
15053 /* Draft 4 pthreads */
15054 status = pthread_create( &t, pthread_attr_default, task, NULL );
15055 if( status ) return errno;
15057 /* give thread a chance to complete */
15058 /* it should remain joinable and hence detachable */
15061 status = pthread_detach( &t );
15062 if( status ) return errno;
15065 #ifdef HAVE_LINUX_THREADS
15066 pthread_kill_other_threads_np();
15074 if { (eval echo configure:15075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15076 ol_cv_pthread_lib_lpthreads=yes
15078 echo "configure: failed program was:" >&5
15079 cat conftest.$ac_ext >&5
15081 ol_cv_pthread_lib_lpthreads=no
15092 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
15094 if test $ol_cv_pthread_lib_lpthreads = yes ; then
15095 ol_link_pthreads="-lpthreads"
15096 ol_link_threads=posix
15101 if test $ol_link_threads != no ; then
15102 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
15104 save_CPPFLAGS="$CPPFLAGS"
15106 LIBS="$LTHREAD_LIBS $LIBS"
15108 for ac_func in sched_yield pthread_yield thr_yield
15110 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15111 echo "configure:15112: checking for $ac_func" >&5
15112 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15113 echo $ac_n "(cached) $ac_c" 1>&6
15115 cat > conftest.$ac_ext <<EOF
15116 #line 15117 "configure"
15117 #include "confdefs.h"
15118 /* System header to define __stub macros and hopefully few prototypes,
15119 which can conflict with char $ac_func(); below. */
15120 #include <assert.h>
15121 /* Override any gcc2 internal prototype to avoid an error. */
15122 /* We use char because int might match the return type of a gcc2
15123 builtin and then its argument prototype would still apply. */
15129 /* The GNU C library defines this for functions which it implements
15130 to always fail with ENOSYS. Some functions are actually named
15131 something starting with __ and the normal name is an alias. */
15132 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15140 if { (eval echo configure:15141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15142 eval "ac_cv_func_$ac_func=yes"
15144 echo "configure: failed program was:" >&5
15145 cat conftest.$ac_ext >&5
15147 eval "ac_cv_func_$ac_func=no"
15152 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15153 echo "$ac_t""yes" 1>&6
15154 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15155 cat >> confdefs.h <<EOF
15156 #define $ac_tr_func 1
15160 echo "$ac_t""no" 1>&6
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 $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
15169 echo "configure:15170: checking for sched_yield in -lrt" >&5
15170 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
15171 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15172 echo $ac_n "(cached) $ac_c" 1>&6
15174 ac_save_LIBS="$LIBS"
15176 cat > conftest.$ac_ext <<EOF
15177 #line 15178 "configure"
15178 #include "confdefs.h"
15179 /* Override any gcc2 internal prototype to avoid an error. */
15180 /* We use char because int might match the return type of a gcc2
15181 builtin and then its argument prototype would still apply. */
15182 char sched_yield();
15188 if { (eval echo configure:15189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15190 eval "ac_cv_lib_$ac_lib_var=yes"
15192 echo "configure: failed program was:" >&5
15193 cat conftest.$ac_ext >&5
15195 eval "ac_cv_lib_$ac_lib_var=no"
15198 LIBS="$ac_save_LIBS"
15201 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15202 echo "$ac_t""yes" 1>&6
15203 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
15204 cat >> confdefs.h <<\EOF
15205 #define HAVE_SCHED_YIELD 1
15208 ac_cv_func_sched_yield=yes
15210 echo "$ac_t""no" 1>&6
15211 ac_cv_func_sched_yield=no
15215 if test $ac_cv_func_sched_yield = no -a \
15216 $ac_cv_func_pthread_yield = no -a \
15217 "$ac_cv_func_thr_yield" = no ; then
15218 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
15221 for ac_func in pthread_kill pthread_rwlock_destroy
15223 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15224 echo "configure:15225: checking for $ac_func" >&5
15225 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15226 echo $ac_n "(cached) $ac_c" 1>&6
15228 cat > conftest.$ac_ext <<EOF
15229 #line 15230 "configure"
15230 #include "confdefs.h"
15231 /* System header to define __stub macros and hopefully few prototypes,
15232 which can conflict with char $ac_func(); below. */
15233 #include <assert.h>
15234 /* Override any gcc2 internal prototype to avoid an error. */
15235 /* We use char because int might match the return type of a gcc2
15236 builtin and then its argument prototype would still apply. */
15242 /* The GNU C library defines this for functions which it implements
15243 to always fail with ENOSYS. Some functions are actually named
15244 something starting with __ and the normal name is an alias. */
15245 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15253 if { (eval echo configure:15254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15255 eval "ac_cv_func_$ac_func=yes"
15257 echo "configure: failed program was:" >&5
15258 cat conftest.$ac_ext >&5
15260 eval "ac_cv_func_$ac_func=no"
15265 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15266 echo "$ac_t""yes" 1>&6
15267 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15268 cat >> confdefs.h <<EOF
15269 #define $ac_tr_func 1
15273 echo "$ac_t""no" 1>&6
15278 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
15279 echo "configure:15280: checking for pthread_detach with <pthread.h>" >&5
15280 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
15281 echo $ac_n "(cached) $ac_c" 1>&6
15284 cat > conftest.$ac_ext <<EOF
15285 #line 15286 "configure"
15286 #include "confdefs.h"
15288 #include <pthread.h>
15290 #define NULL (void*)0
15294 pthread_detach(NULL);
15297 if { (eval echo configure:15298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15299 ol_cv_func_pthread_detach=yes
15301 echo "configure: failed program was:" >&5
15302 cat conftest.$ac_ext >&5
15304 ol_cv_func_pthread_detach=no
15310 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
15312 if test $ol_cv_func_pthread_detach = no ; then
15313 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
15316 cat >> confdefs.h <<\EOF
15317 #define HAVE_PTHREAD_DETACH 1
15322 pthread_setconcurrency \
15323 pthread_getconcurrency \
15324 thr_setconcurrency \
15325 thr_getconcurrency \
15328 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15329 echo "configure:15330: checking for $ac_func" >&5
15330 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15331 echo $ac_n "(cached) $ac_c" 1>&6
15333 cat > conftest.$ac_ext <<EOF
15334 #line 15335 "configure"
15335 #include "confdefs.h"
15336 /* System header to define __stub macros and hopefully few prototypes,
15337 which can conflict with char $ac_func(); below. */
15338 #include <assert.h>
15339 /* Override any gcc2 internal prototype to avoid an error. */
15340 /* We use char because int might match the return type of a gcc2
15341 builtin and then its argument prototype would still apply. */
15347 /* The GNU C library defines this for functions which it implements
15348 to always fail with ENOSYS. Some functions are actually named
15349 something starting with __ and the normal name is an alias. */
15350 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15358 if { (eval echo configure:15359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15360 eval "ac_cv_func_$ac_func=yes"
15362 echo "configure: failed program was:" >&5
15363 cat conftest.$ac_ext >&5
15365 eval "ac_cv_func_$ac_func=no"
15370 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15371 echo "$ac_t""yes" 1>&6
15372 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15373 cat >> confdefs.h <<EOF
15374 #define $ac_tr_func 1
15378 echo "$ac_t""no" 1>&6
15384 for ac_func in pthread_kill_other_threads_np
15386 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15387 echo "configure:15388: checking for $ac_func" >&5
15388 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15389 echo $ac_n "(cached) $ac_c" 1>&6
15391 cat > conftest.$ac_ext <<EOF
15392 #line 15393 "configure"
15393 #include "confdefs.h"
15394 /* System header to define __stub macros and hopefully few prototypes,
15395 which can conflict with char $ac_func(); below. */
15396 #include <assert.h>
15397 /* Override any gcc2 internal prototype to avoid an error. */
15398 /* We use char because int might match the return type of a gcc2
15399 builtin and then its argument prototype would still apply. */
15405 /* The GNU C library defines this for functions which it implements
15406 to always fail with ENOSYS. Some functions are actually named
15407 something starting with __ and the normal name is an alias. */
15408 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15416 if { (eval echo configure:15417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15418 eval "ac_cv_func_$ac_func=yes"
15420 echo "configure: failed program was:" >&5
15421 cat conftest.$ac_ext >&5
15423 eval "ac_cv_func_$ac_func=no"
15428 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15429 echo "$ac_t""yes" 1>&6
15430 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15431 cat >> confdefs.h <<EOF
15432 #define $ac_tr_func 1
15436 echo "$ac_t""no" 1>&6
15440 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
15441 echo "configure:15442: checking for LinuxThreads implementation" >&5
15442 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
15443 echo $ac_n "(cached) $ac_c" 1>&6
15445 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
15448 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
15453 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
15454 echo "configure:15455: checking for LinuxThreads consistency" >&5
15455 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
15456 echo $ac_n "(cached) $ac_c" 1>&6
15459 if test $ol_cv_header_linux_threads = yes -a \
15460 $ol_cv_sys_linux_threads = yes; then
15461 ol_cv_linux_threads=yes
15462 elif test $ol_cv_header_linux_threads = no -a \
15463 $ol_cv_sys_linux_threads = no; then
15464 ol_cv_linux_threads=no
15466 ol_cv_linux_threads=error
15471 echo "$ac_t""$ol_cv_linux_threads" 1>&6
15474 if test $ol_cv_linux_threads = error; then
15475 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
15478 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
15479 echo "configure:15480: checking if pthread_create() works" >&5
15480 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
15481 echo $ac_n "(cached) $ac_c" 1>&6
15484 if test "$cross_compiling" = yes; then
15485 ol_cv_pthread_create_works=yes
15487 cat > conftest.$ac_ext <<EOF
15488 #line 15489 "configure"
15489 #include "confdefs.h"
15490 /* pthread test headers */
15491 #include <pthread.h>
15492 #if HAVE_PTHREADS < 7
15496 #define NULL (void*)0
15499 static void *task(p)
15502 return (void *) (p == NULL);
15506 int main(argc, argv)
15511 /* pthread test function */
15512 #ifndef PTHREAD_CREATE_DETACHED
15513 #define PTHREAD_CREATE_DETACHED 1
15517 int detach = PTHREAD_CREATE_DETACHED;
15519 #if HAVE_PTHREADS > 4
15520 /* Final pthreads */
15521 pthread_attr_t attr;
15523 status = pthread_attr_init(&attr);
15524 if( status ) return status;
15526 #if HAVE_PTHREADS < 7
15527 status = pthread_attr_setdetachstate(&attr, &detach);
15528 if( status < 0 ) status = errno;
15530 status = pthread_attr_setdetachstate(&attr, detach);
15532 if( status ) return status;
15533 status = pthread_create( &t, &attr, task, NULL );
15534 #if HAVE_PTHREADS < 7
15535 if( status < 0 ) status = errno;
15537 if( status ) return status;
15539 /* Draft 4 pthreads */
15540 status = pthread_create( &t, pthread_attr_default, task, NULL );
15541 if( status ) return errno;
15543 /* give thread a chance to complete */
15544 /* it should remain joinable and hence detachable */
15547 status = pthread_detach( &t );
15548 if( status ) return errno;
15551 #ifdef HAVE_LINUX_THREADS
15552 pthread_kill_other_threads_np();
15560 if { (eval echo configure:15561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15562 ol_cv_pthread_create_works=yes
15564 echo "configure: failed program was:" >&5
15565 cat conftest.$ac_ext >&5
15567 ol_cv_pthread_create_works=no
15574 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
15576 if test $ol_cv_pthread_create_works = no ; then
15577 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
15580 if test $ol_with_yielding_select = auto ; then
15581 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
15582 echo "configure:15583: checking if select yields when using pthreads" >&5
15583 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
15584 echo $ac_n "(cached) $ac_c" 1>&6
15587 if test "$cross_compiling" = yes; then
15588 ol_cv_pthread_select_yields=cross
15590 cat > conftest.$ac_ext <<EOF
15591 #line 15592 "configure"
15592 #include "confdefs.h"
15594 #include <sys/types.h>
15595 #include <sys/time.h>
15596 #include <unistd.h>
15597 #include <pthread.h>
15599 #define NULL (void*) 0
15602 static int fildes[2];
15604 static void *task(p)
15616 FD_SET(fildes[0], &rfds);
15618 /* we're not interested in any fds */
15619 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
15626 exit(0); /* if we exit here, the select blocked the whole process */
15629 int main(argc, argv)
15635 /* create a pipe to select */
15636 if(pipe(&fildes[0])) {
15641 #ifdef HAVE_PTHREAD_SETCONCURRENCY
15642 (void) pthread_setconcurrency(2);
15644 #ifdef HAVE_THR_SETCONCURRENCY
15645 /* Set Solaris LWP concurrency to 2 */
15646 thr_setconcurrency(2);
15650 #if HAVE_PTHREADS < 6
15651 pthread_create(&t, pthread_attr_default, task, NULL);
15653 pthread_create(&t, NULL, task, NULL);
15656 /* make sure task runs first */
15659 #elif defined( HAVE_SCHED_YIELD )
15661 #elif defined( HAVE_PTHREAD_YIELD )
15668 if { (eval echo configure:15669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15670 ol_cv_pthread_select_yields=no
15672 echo "configure: failed program was:" >&5
15673 cat conftest.$ac_ext >&5
15675 ol_cv_pthread_select_yields=yes
15682 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
15684 if test $ol_cv_pthread_select_yields = cross ; then
15685 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
15688 if test $ol_cv_pthread_select_yields = yes ; then
15689 ol_with_yielding_select=yes
15693 CPPFLAGS="$save_CPPFLAGS"
15696 { echo "configure: error: could not locate usable POSIX Threads" 1>&2; exit 1; }
15700 if test $ol_with_threads = posix ; then
15701 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
15705 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15706 -o $ol_with_threads = mach ; then
15708 for ac_hdr in mach/cthreads.h cthreads.h
15710 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15711 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15712 echo "configure:15713: checking for $ac_hdr" >&5
15713 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15714 echo $ac_n "(cached) $ac_c" 1>&6
15716 cat > conftest.$ac_ext <<EOF
15717 #line 15718 "configure"
15718 #include "confdefs.h"
15721 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15722 { (eval echo configure:15723: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15723 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15724 if test -z "$ac_err"; then
15726 eval "ac_cv_header_$ac_safe=yes"
15729 echo "configure: failed program was:" >&5
15730 cat conftest.$ac_ext >&5
15732 eval "ac_cv_header_$ac_safe=no"
15736 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15737 echo "$ac_t""yes" 1>&6
15738 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15739 cat >> confdefs.h <<EOF
15740 #define $ac_tr_hdr 1
15744 echo "$ac_t""no" 1>&6
15748 if test $ac_cv_header_mach_cthreads_h = yes ; then
15749 ol_with_threads=found
15751 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
15752 echo "configure:15753: checking for cthread_fork" >&5
15753 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
15754 echo $ac_n "(cached) $ac_c" 1>&6
15756 cat > conftest.$ac_ext <<EOF
15757 #line 15758 "configure"
15758 #include "confdefs.h"
15759 /* System header to define __stub macros and hopefully few prototypes,
15760 which can conflict with char cthread_fork(); below. */
15761 #include <assert.h>
15762 /* Override any gcc2 internal prototype to avoid an error. */
15763 /* We use char because int might match the return type of a gcc2
15764 builtin and then its argument prototype would still apply. */
15765 char cthread_fork();
15770 /* The GNU C library defines this for functions which it implements
15771 to always fail with ENOSYS. Some functions are actually named
15772 something starting with __ and the normal name is an alias. */
15773 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
15781 if { (eval echo configure:15782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15783 eval "ac_cv_func_cthread_fork=yes"
15785 echo "configure: failed program was:" >&5
15786 cat conftest.$ac_ext >&5
15788 eval "ac_cv_func_cthread_fork=no"
15793 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
15794 echo "$ac_t""yes" 1>&6
15795 ol_link_threads=yes
15797 echo "$ac_t""no" 1>&6
15801 if test $ol_link_threads = no ; then
15802 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
15803 echo "configure:15804: checking for cthread_fork with -all_load" >&5
15804 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
15805 echo $ac_n "(cached) $ac_c" 1>&6
15809 LIBS="-all_load $LIBS"
15810 cat > conftest.$ac_ext <<EOF
15811 #line 15812 "configure"
15812 #include "confdefs.h"
15813 #include <mach/cthreads.h>
15816 cthread_fork((void *)0, (void *)0);
15820 if { (eval echo configure:15821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15822 ol_cv_cthread_all_load=yes
15824 echo "configure: failed program was:" >&5
15825 cat conftest.$ac_ext >&5
15827 ol_cv_cthread_all_load=no
15834 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
15836 if test $ol_cv_cthread_all_load = yes ; then
15837 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
15838 ol_link_threads=mach
15839 ol_with_threads=found
15843 elif test $ac_cv_header_cthreads_h = yes ; then
15845 ol_with_threads=found
15848 LIBS="$LIBS -lthreads"
15849 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
15850 echo "configure:15851: checking for cthread_fork" >&5
15851 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
15852 echo $ac_n "(cached) $ac_c" 1>&6
15854 cat > conftest.$ac_ext <<EOF
15855 #line 15856 "configure"
15856 #include "confdefs.h"
15857 /* System header to define __stub macros and hopefully few prototypes,
15858 which can conflict with char cthread_fork(); below. */
15859 #include <assert.h>
15860 /* Override any gcc2 internal prototype to avoid an error. */
15861 /* We use char because int might match the return type of a gcc2
15862 builtin and then its argument prototype would still apply. */
15863 char cthread_fork();
15868 /* The GNU C library defines this for functions which it implements
15869 to always fail with ENOSYS. Some functions are actually named
15870 something starting with __ and the normal name is an alias. */
15871 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
15879 if { (eval echo configure:15880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15881 eval "ac_cv_func_cthread_fork=yes"
15883 echo "configure: failed program was:" >&5
15884 cat conftest.$ac_ext >&5
15886 eval "ac_cv_func_cthread_fork=no"
15891 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
15892 echo "$ac_t""yes" 1>&6
15893 ol_link_threads=yes
15895 echo "$ac_t""no" 1>&6
15900 if test $ol_link_threads = yes ; then
15901 LTHREAD_LIBS="-lthreads"
15902 ol_link_threads=mach
15903 ol_with_threads=found
15905 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
15908 elif test $ol_with_threads = mach ; then
15909 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
15912 if test $ol_link_threads = mach ; then
15913 cat >> confdefs.h <<\EOF
15914 #define HAVE_MACH_CTHREADS 1
15917 elif test $ol_with_threads = found ; then
15918 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
15922 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15923 -o $ol_with_threads = pth ; then
15925 for ac_hdr in pth.h
15927 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15928 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15929 echo "configure:15930: checking for $ac_hdr" >&5
15930 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15931 echo $ac_n "(cached) $ac_c" 1>&6
15933 cat > conftest.$ac_ext <<EOF
15934 #line 15935 "configure"
15935 #include "confdefs.h"
15938 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15939 { (eval echo configure:15940: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15940 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15941 if test -z "$ac_err"; then
15943 eval "ac_cv_header_$ac_safe=yes"
15946 echo "configure: failed program was:" >&5
15947 cat conftest.$ac_ext >&5
15949 eval "ac_cv_header_$ac_safe=no"
15953 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15954 echo "$ac_t""yes" 1>&6
15955 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15956 cat >> confdefs.h <<EOF
15957 #define $ac_tr_hdr 1
15961 echo "$ac_t""no" 1>&6
15966 if test $ac_cv_header_pth_h = yes ; then
15967 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
15968 echo "configure:15969: checking for pth_version in -lpth" >&5
15969 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
15970 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15971 echo $ac_n "(cached) $ac_c" 1>&6
15973 ac_save_LIBS="$LIBS"
15975 cat > conftest.$ac_ext <<EOF
15976 #line 15977 "configure"
15977 #include "confdefs.h"
15978 /* Override any gcc2 internal prototype to avoid an error. */
15979 /* We use char because int might match the return type of a gcc2
15980 builtin and then its argument prototype would still apply. */
15981 char pth_version();
15987 if { (eval echo configure:15988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15989 eval "ac_cv_lib_$ac_lib_var=yes"
15991 echo "configure: failed program was:" >&5
15992 cat conftest.$ac_ext >&5
15994 eval "ac_cv_lib_$ac_lib_var=no"
15997 LIBS="$ac_save_LIBS"
16000 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16001 echo "$ac_t""yes" 1>&6
16004 echo "$ac_t""no" 1>&6
16009 if test $have_pth = yes ; then
16010 cat >> confdefs.h <<\EOF
16011 #define HAVE_GNU_PTH 1
16014 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
16015 ol_link_threads=pth
16016 ol_with_threads=found
16018 if test $ol_with_yielding_select = auto ; then
16019 ol_with_yielding_select=yes
16025 if test $ol_with_threads = auto -o $ol_with_threads = yes \
16026 -o $ol_with_threads = lwp ; then
16028 for ac_hdr in thread.h synch.h
16030 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16031 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16032 echo "configure:16033: checking for $ac_hdr" >&5
16033 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16034 echo $ac_n "(cached) $ac_c" 1>&6
16036 cat > conftest.$ac_ext <<EOF
16037 #line 16038 "configure"
16038 #include "confdefs.h"
16041 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16042 { (eval echo configure:16043: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16043 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16044 if test -z "$ac_err"; then
16046 eval "ac_cv_header_$ac_safe=yes"
16049 echo "configure: failed program was:" >&5
16050 cat conftest.$ac_ext >&5
16052 eval "ac_cv_header_$ac_safe=no"
16056 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16057 echo "$ac_t""yes" 1>&6
16058 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16059 cat >> confdefs.h <<EOF
16060 #define $ac_tr_hdr 1
16064 echo "$ac_t""no" 1>&6
16068 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
16069 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
16070 echo "configure:16071: checking for thr_create in -lthread" >&5
16071 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
16072 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
16073 echo $ac_n "(cached) $ac_c" 1>&6
16075 ac_save_LIBS="$LIBS"
16076 LIBS="-lthread $LIBS"
16077 cat > conftest.$ac_ext <<EOF
16078 #line 16079 "configure"
16079 #include "confdefs.h"
16080 /* Override any gcc2 internal prototype to avoid an error. */
16081 /* We use char because int might match the return type of a gcc2
16082 builtin and then its argument prototype would still apply. */
16089 if { (eval echo configure:16090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16091 eval "ac_cv_lib_$ac_lib_var=yes"
16093 echo "configure: failed program was:" >&5
16094 cat conftest.$ac_ext >&5
16096 eval "ac_cv_lib_$ac_lib_var=no"
16099 LIBS="$ac_save_LIBS"
16102 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16103 echo "$ac_t""yes" 1>&6
16106 echo "$ac_t""no" 1>&6
16111 if test $have_thr = yes ; then
16112 cat >> confdefs.h <<\EOF
16116 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
16117 ol_link_threads=thr
16119 if test $ol_with_yielding_select = auto ; then
16120 ol_with_yielding_select=yes
16124 thr_setconcurrency \
16125 thr_getconcurrency \
16128 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16129 echo "configure:16130: checking for $ac_func" >&5
16130 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
16131 echo $ac_n "(cached) $ac_c" 1>&6
16133 cat > conftest.$ac_ext <<EOF
16134 #line 16135 "configure"
16135 #include "confdefs.h"
16136 /* System header to define __stub macros and hopefully few prototypes,
16137 which can conflict with char $ac_func(); below. */
16138 #include <assert.h>
16139 /* Override any gcc2 internal prototype to avoid an error. */
16140 /* We use char because int might match the return type of a gcc2
16141 builtin and then its argument prototype would still apply. */
16147 /* The GNU C library defines this for functions which it implements
16148 to always fail with ENOSYS. Some functions are actually named
16149 something starting with __ and the normal name is an alias. */
16150 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16158 if { (eval echo configure:16159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16160 eval "ac_cv_func_$ac_func=yes"
16162 echo "configure: failed program was:" >&5
16163 cat conftest.$ac_ext >&5
16165 eval "ac_cv_func_$ac_func=no"
16170 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16171 echo "$ac_t""yes" 1>&6
16172 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16173 cat >> confdefs.h <<EOF
16174 #define $ac_tr_func 1
16178 echo "$ac_t""no" 1>&6
16185 for ac_hdr in lwp/lwp.h
16187 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16188 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16189 echo "configure:16190: checking for $ac_hdr" >&5
16190 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16191 echo $ac_n "(cached) $ac_c" 1>&6
16193 cat > conftest.$ac_ext <<EOF
16194 #line 16195 "configure"
16195 #include "confdefs.h"
16198 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16199 { (eval echo configure:16200: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16200 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16201 if test -z "$ac_err"; then
16203 eval "ac_cv_header_$ac_safe=yes"
16206 echo "configure: failed program was:" >&5
16207 cat conftest.$ac_ext >&5
16209 eval "ac_cv_header_$ac_safe=no"
16213 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16214 echo "$ac_t""yes" 1>&6
16215 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16216 cat >> confdefs.h <<EOF
16217 #define $ac_tr_hdr 1
16221 echo "$ac_t""no" 1>&6
16225 if test $ac_cv_header_lwp_lwp_h = yes ; then
16226 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
16227 echo "configure:16228: checking for lwp_create in -llwp" >&5
16228 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
16229 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
16230 echo $ac_n "(cached) $ac_c" 1>&6
16232 ac_save_LIBS="$LIBS"
16234 cat > conftest.$ac_ext <<EOF
16235 #line 16236 "configure"
16236 #include "confdefs.h"
16237 /* Override any gcc2 internal prototype to avoid an error. */
16238 /* We use char because int might match the return type of a gcc2
16239 builtin and then its argument prototype would still apply. */
16246 if { (eval echo configure:16247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16248 eval "ac_cv_lib_$ac_lib_var=yes"
16250 echo "configure: failed program was:" >&5
16251 cat conftest.$ac_ext >&5
16253 eval "ac_cv_lib_$ac_lib_var=no"
16256 LIBS="$ac_save_LIBS"
16259 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16260 echo "$ac_t""yes" 1>&6
16263 echo "$ac_t""no" 1>&6
16268 if test $have_lwp = yes ; then
16269 cat >> confdefs.h <<\EOF
16273 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
16274 ol_link_threads=lwp
16276 if test $ol_with_yielding_select = auto ; then
16277 ol_with_yielding_select=no
16283 if test $ol_with_yielding_select = yes ; then
16284 cat >> confdefs.h <<\EOF
16285 #define HAVE_YIELDING_SELECT 1
16290 if test $ol_with_threads = manual ; then
16291 ol_link_threads=yes
16293 echo "configure: warning: thread defines and link options must be set manually" 1>&2
16295 for ac_hdr in pthread.h sched.h
16297 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16298 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16299 echo "configure:16300: checking for $ac_hdr" >&5
16300 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16301 echo $ac_n "(cached) $ac_c" 1>&6
16303 cat > conftest.$ac_ext <<EOF
16304 #line 16305 "configure"
16305 #include "confdefs.h"
16308 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16309 { (eval echo configure:16310: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16310 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16311 if test -z "$ac_err"; then
16313 eval "ac_cv_header_$ac_safe=yes"
16316 echo "configure: failed program was:" >&5
16317 cat conftest.$ac_ext >&5
16319 eval "ac_cv_header_$ac_safe=no"
16323 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16324 echo "$ac_t""yes" 1>&6
16325 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16326 cat >> confdefs.h <<EOF
16327 #define $ac_tr_hdr 1
16331 echo "$ac_t""no" 1>&6
16335 for ac_func in sched_yield pthread_yield
16337 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16338 echo "configure:16339: checking for $ac_func" >&5
16339 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
16340 echo $ac_n "(cached) $ac_c" 1>&6
16342 cat > conftest.$ac_ext <<EOF
16343 #line 16344 "configure"
16344 #include "confdefs.h"
16345 /* System header to define __stub macros and hopefully few prototypes,
16346 which can conflict with char $ac_func(); below. */
16347 #include <assert.h>
16348 /* Override any gcc2 internal prototype to avoid an error. */
16349 /* We use char because int might match the return type of a gcc2
16350 builtin and then its argument prototype would still apply. */
16356 /* The GNU C library defines this for functions which it implements
16357 to always fail with ENOSYS. Some functions are actually named
16358 something starting with __ and the normal name is an alias. */
16359 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16367 if { (eval echo configure:16368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16369 eval "ac_cv_func_$ac_func=yes"
16371 echo "configure: failed program was:" >&5
16372 cat conftest.$ac_ext >&5
16374 eval "ac_cv_func_$ac_func=no"
16379 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16380 echo "$ac_t""yes" 1>&6
16381 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16382 cat >> confdefs.h <<EOF
16383 #define $ac_tr_func 1
16387 echo "$ac_t""no" 1>&6
16392 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
16393 echo "configure:16394: checking for LinuxThreads pthread.h" >&5
16394 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
16395 echo $ac_n "(cached) $ac_c" 1>&6
16397 cat > conftest.$ac_ext <<EOF
16398 #line 16399 "configure"
16399 #include "confdefs.h"
16400 #include <pthread.h>
16402 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16403 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
16405 ol_cv_header_linux_threads=yes
16408 ol_cv_header_linux_threads=no
16415 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
16416 if test $ol_cv_header_linux_threads = yes; then
16417 cat >> confdefs.h <<\EOF
16418 #define HAVE_LINUX_THREADS 1
16424 for ac_hdr in mach/cthreads.h
16426 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16427 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16428 echo "configure:16429: checking for $ac_hdr" >&5
16429 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16430 echo $ac_n "(cached) $ac_c" 1>&6
16432 cat > conftest.$ac_ext <<EOF
16433 #line 16434 "configure"
16434 #include "confdefs.h"
16437 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16438 { (eval echo configure:16439: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16439 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16440 if test -z "$ac_err"; then
16442 eval "ac_cv_header_$ac_safe=yes"
16445 echo "configure: failed program was:" >&5
16446 cat conftest.$ac_ext >&5
16448 eval "ac_cv_header_$ac_safe=no"
16452 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16453 echo "$ac_t""yes" 1>&6
16454 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16455 cat >> confdefs.h <<EOF
16456 #define $ac_tr_hdr 1
16460 echo "$ac_t""no" 1>&6
16464 for ac_hdr in lwp/lwp.h
16466 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16467 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16468 echo "configure:16469: checking for $ac_hdr" >&5
16469 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16470 echo $ac_n "(cached) $ac_c" 1>&6
16472 cat > conftest.$ac_ext <<EOF
16473 #line 16474 "configure"
16474 #include "confdefs.h"
16477 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16478 { (eval echo configure:16479: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16479 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16480 if test -z "$ac_err"; then
16482 eval "ac_cv_header_$ac_safe=yes"
16485 echo "configure: failed program was:" >&5
16486 cat conftest.$ac_ext >&5
16488 eval "ac_cv_header_$ac_safe=no"
16492 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16493 echo "$ac_t""yes" 1>&6
16494 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16495 cat >> confdefs.h <<EOF
16496 #define $ac_tr_hdr 1
16500 echo "$ac_t""no" 1>&6
16504 for ac_hdr in thread.h synch.h
16506 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16507 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16508 echo "configure:16509: checking for $ac_hdr" >&5
16509 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16510 echo $ac_n "(cached) $ac_c" 1>&6
16512 cat > conftest.$ac_ext <<EOF
16513 #line 16514 "configure"
16514 #include "confdefs.h"
16517 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16518 { (eval echo configure:16519: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16519 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16520 if test -z "$ac_err"; then
16522 eval "ac_cv_header_$ac_safe=yes"
16525 echo "configure: failed program was:" >&5
16526 cat conftest.$ac_ext >&5
16528 eval "ac_cv_header_$ac_safe=no"
16532 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16533 echo "$ac_t""yes" 1>&6
16534 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16535 cat >> confdefs.h <<EOF
16536 #define $ac_tr_hdr 1
16540 echo "$ac_t""no" 1>&6
16546 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
16547 cat >> confdefs.h <<\EOF
16548 #define REENTRANT 1
16551 cat >> confdefs.h <<\EOF
16552 #define _REENTRANT 1
16555 cat >> confdefs.h <<\EOF
16556 #define THREAD_SAFE 1
16559 cat >> confdefs.h <<\EOF
16560 #define _THREAD_SAFE 1
16563 cat >> confdefs.h <<\EOF
16564 #define THREADSAFE 1
16567 cat >> confdefs.h <<\EOF
16568 #define _THREADSAFE 1
16571 cat >> confdefs.h <<\EOF
16572 #define _SGI_MP_SOURCE 1
16576 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
16577 echo "configure:16578: checking for thread specific errno" >&5
16578 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
16579 echo $ac_n "(cached) $ac_c" 1>&6
16582 cat > conftest.$ac_ext <<EOF
16583 #line 16584 "configure"
16584 #include "confdefs.h"
16590 if { (eval echo configure:16591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16592 ol_cv_errno_thread_specific=yes
16594 echo "configure: failed program was:" >&5
16595 cat conftest.$ac_ext >&5
16597 ol_cv_errno_thread_specific=no
16603 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
16605 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
16606 echo "configure:16607: checking for thread specific h_errno" >&5
16607 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
16608 echo $ac_n "(cached) $ac_c" 1>&6
16611 cat > conftest.$ac_ext <<EOF
16612 #line 16613 "configure"
16613 #include "confdefs.h"
16619 if { (eval echo configure:16620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16621 ol_cv_h_errno_thread_specific=yes
16623 echo "configure: failed program was:" >&5
16624 cat conftest.$ac_ext >&5
16626 ol_cv_h_errno_thread_specific=no
16632 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
16634 if test $ol_cv_errno_thread_specific != yes \
16635 -o $ol_cv_h_errno_thread_specific != yes ; then
16636 LIBS="$LTHREAD_LIBS $LIBS"
16642 if test $ol_link_threads = no ; then
16643 if test $ol_with_threads = yes ; then
16644 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
16647 if test $ol_with_threads = auto ; then
16648 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
16652 cat >> confdefs.h <<\EOF
16653 #define NO_THREADS 1
16659 if test $ol_link_threads != no ; then
16660 cat >> confdefs.h <<\EOF
16661 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
16668 gethostbyname_r gethostbyaddr_r \
16671 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16672 echo "configure:16673: checking for $ac_func" >&5
16673 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
16674 echo $ac_n "(cached) $ac_c" 1>&6
16676 cat > conftest.$ac_ext <<EOF
16677 #line 16678 "configure"
16678 #include "confdefs.h"
16679 /* System header to define __stub macros and hopefully few prototypes,
16680 which can conflict with char $ac_func(); below. */
16681 #include <assert.h>
16682 /* Override any gcc2 internal prototype to avoid an error. */
16683 /* We use char because int might match the return type of a gcc2
16684 builtin and then its argument prototype would still apply. */
16690 /* The GNU C library defines this for functions which it implements
16691 to always fail with ENOSYS. Some functions are actually named
16692 something starting with __ and the normal name is an alias. */
16693 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16701 if { (eval echo configure:16702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16703 eval "ac_cv_func_$ac_func=yes"
16705 echo "configure: failed program was:" >&5
16706 cat conftest.$ac_ext >&5
16708 eval "ac_cv_func_$ac_func=no"
16713 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16714 echo "$ac_t""yes" 1>&6
16715 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16716 cat >> confdefs.h <<EOF
16717 #define $ac_tr_func 1
16721 echo "$ac_t""no" 1>&6
16726 if test "$ac_cv_func_ctime_r" = no ; then
16727 ol_cv_func_ctime_r_nargs=0
16729 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
16730 echo "configure:16731: checking number of arguments of ctime_r" >&5
16731 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
16732 echo $ac_n "(cached) $ac_c" 1>&6
16734 cat > conftest.$ac_ext <<EOF
16735 #line 16736 "configure"
16736 #include "confdefs.h"
16739 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
16742 if { (eval echo configure:16743: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16744 ol_cv_func_ctime_r_nargs3=yes
16746 echo "configure: failed program was:" >&5
16747 cat conftest.$ac_ext >&5
16749 ol_cv_func_ctime_r_nargs3=no
16753 cat > conftest.$ac_ext <<EOF
16754 #line 16755 "configure"
16755 #include "confdefs.h"
16758 time_t ti; char *buffer; ctime_r(&ti,buffer);
16761 if { (eval echo configure:16762: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16763 ol_cv_func_ctime_r_nargs2=yes
16765 echo "configure: failed program was:" >&5
16766 cat conftest.$ac_ext >&5
16768 ol_cv_func_ctime_r_nargs2=no
16772 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
16773 $ol_cv_func_ctime_r_nargs2 = no ; then
16775 ol_cv_func_ctime_r_nargs=3
16777 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
16778 $ol_cv_func_ctime_r_nargs2 = yes ; then
16780 ol_cv_func_ctime_r_nargs=2
16783 ol_cv_func_ctime_r_nargs=0
16788 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
16790 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
16791 cat >> confdefs.h <<EOF
16792 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
16799 if test "$ac_cv_func_gethostbyname_r" = yes ; then
16800 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
16801 echo "configure:16802: checking number of arguments of gethostbyname_r" >&5
16802 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
16803 echo $ac_n "(cached) $ac_c" 1>&6
16805 cat > conftest.$ac_ext <<EOF
16806 #line 16807 "configure"
16807 #include "confdefs.h"
16808 #include <sys/types.h>
16809 #include <sys/socket.h>
16810 #include <netinet/in.h>
16812 #define BUFSIZE (sizeof(struct hostent)+10)
16814 struct hostent hent; char buffer[BUFSIZE];
16815 int bufsize=BUFSIZE;int h_errno;
16816 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
16817 buffer, bufsize, &h_errno);
16820 if { (eval echo configure:16821: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16822 ol_cv_func_gethostbyname_r_nargs5=yes
16824 echo "configure: failed program was:" >&5
16825 cat conftest.$ac_ext >&5
16827 ol_cv_func_gethostbyname_r_nargs5=no
16831 cat > conftest.$ac_ext <<EOF
16832 #line 16833 "configure"
16833 #include "confdefs.h"
16834 #include <sys/types.h>
16835 #include <sys/socket.h>
16836 #include <netinet/in.h>
16838 #define BUFSIZE (sizeof(struct hostent)+10)
16840 struct hostent hent;struct hostent *rhent;
16841 char buffer[BUFSIZE];
16842 int bufsize=BUFSIZE;int h_errno;
16843 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
16847 if { (eval echo configure:16848: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16849 ol_cv_func_gethostbyname_r_nargs6=yes
16851 echo "configure: failed program was:" >&5
16852 cat conftest.$ac_ext >&5
16854 ol_cv_func_gethostbyname_r_nargs6=no
16858 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
16859 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
16861 ol_cv_func_gethostbyname_r_nargs=5
16863 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
16864 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
16866 ol_cv_func_gethostbyname_r_nargs=6
16869 ol_cv_func_gethostbyname_r_nargs=0
16874 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
16875 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
16876 cat >> confdefs.h <<EOF
16877 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
16883 ol_cv_func_gethostbyname_r_nargs=0
16886 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
16887 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
16888 echo "configure:16889: checking number of arguments of gethostbyaddr_r" >&5
16889 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
16890 echo $ac_n "(cached) $ac_c" 1>&6
16892 cat > conftest.$ac_ext <<EOF
16893 #line 16894 "configure"
16894 #include "confdefs.h"
16895 #include <sys/types.h>
16896 #include <sys/socket.h>
16897 #include <netinet/in.h>
16899 #define BUFSIZE (sizeof(struct hostent)+10)
16901 struct hostent hent; char buffer[BUFSIZE];
16902 struct in_addr add;
16903 size_t alen=sizeof(struct in_addr);
16904 int bufsize=BUFSIZE;int h_errno;
16905 (void)gethostbyaddr_r( (void *)&(add.s_addr),
16906 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
16909 if { (eval echo configure:16910: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16911 ol_cv_func_gethostbyaddr_r_nargs7=yes
16913 echo "configure: failed program was:" >&5
16914 cat conftest.$ac_ext >&5
16916 ol_cv_func_gethostbyaddr_r_nargs7=no
16920 cat > conftest.$ac_ext <<EOF
16921 #line 16922 "configure"
16922 #include "confdefs.h"
16923 #include <sys/types.h>
16924 #include <sys/socket.h>
16925 #include <netinet/in.h>
16927 #define BUFSIZE (sizeof(struct hostent)+10)
16929 struct hostent hent;
16930 struct hostent *rhent; char buffer[BUFSIZE];
16931 struct in_addr add;
16932 size_t alen=sizeof(struct in_addr);
16933 int bufsize=BUFSIZE;int h_errno;
16934 (void)gethostbyaddr_r( (void *)&(add.s_addr),
16935 alen, AF_INET, &hent, buffer, bufsize,
16939 if { (eval echo configure:16940: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16941 ol_cv_func_gethostbyaddr_r_nargs8=yes
16943 echo "configure: failed program was:" >&5
16944 cat conftest.$ac_ext >&5
16946 ol_cv_func_gethostbyaddr_r_nargs8=no
16950 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
16951 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
16953 ol_cv_func_gethostbyaddr_r_nargs=7
16955 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
16956 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
16958 ol_cv_func_gethostbyaddr_r_nargs=8
16961 ol_cv_func_gethostbyaddr_r_nargs=0
16966 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
16967 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
16968 cat >> confdefs.h <<EOF
16969 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
16975 ol_cv_func_gethostbyaddr_r_nargs=0
16980 if test $ol_with_ldbm_api = auto \
16981 -o $ol_with_ldbm_api = berkeley \
16982 -o $ol_with_ldbm_api = bcompat ; then
16984 if test $ol_with_ldbm_api = bcompat; then \
16985 for ac_hdr in db_185.h db.h
16987 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16988 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16989 echo "configure:16990: checking for $ac_hdr" >&5
16990 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16991 echo $ac_n "(cached) $ac_c" 1>&6
16993 cat > conftest.$ac_ext <<EOF
16994 #line 16995 "configure"
16995 #include "confdefs.h"
16998 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16999 { (eval echo configure:17000: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17000 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17001 if test -z "$ac_err"; then
17003 eval "ac_cv_header_$ac_safe=yes"
17006 echo "configure: failed program was:" >&5
17007 cat conftest.$ac_ext >&5
17009 eval "ac_cv_header_$ac_safe=no"
17013 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17014 echo "$ac_t""yes" 1>&6
17015 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17016 cat >> confdefs.h <<EOF
17017 #define $ac_tr_hdr 1
17021 echo "$ac_t""no" 1>&6
17025 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
17026 echo $ac_n "checking if Berkeley DB header compatibility""... $ac_c" 1>&6
17027 echo "configure:17028: checking if Berkeley DB header compatibility" >&5
17028 if eval "test \"\${ol_cv_header_db1+set}\" = set"; then
17029 echo $ac_n "(cached) $ac_c" 1>&6
17032 cat > conftest.$ac_ext <<EOF
17033 #line 17034 "configure"
17034 #include "confdefs.h"
17037 # include <db_185.h>
17042 /* this check could be improved */
17043 #ifndef DB_VERSION_MAJOR
17044 # define DB_VERSION_MAJOR 1
17047 #if DB_VERSION_MAJOR == 1
17052 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17053 egrep "__db_version_1" >/dev/null 2>&1; then
17055 ol_cv_header_db1=yes
17058 ol_cv_header_db1=no
17064 echo "$ac_t""$ol_cv_header_db1" 1>&6
17066 if test $ol_cv_header_db1 = yes ; then
17068 if test $ol_cv_lib_db = no ; then
17069 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
17070 echo "configure:17071: checking for Berkeley DB link (default)" >&5
17071 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
17072 echo $ac_n "(cached) $ac_c" 1>&6
17077 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17079 cat > conftest.$ac_ext <<EOF
17080 #line 17081 "configure"
17081 #include "confdefs.h"
17083 #ifdef HAVE_DB_185_H
17084 # include <db_185.h>
17089 #ifndef DB_VERSION_MAJOR
17090 # define DB_VERSION_MAJOR 1
17094 #define NULL ((void*)0)
17099 #if DB_VERSION_MAJOR > 1
17102 int major, minor, patch;
17104 version = db_version( &major, &minor, &patch );
17106 if( major != DB_VERSION_MAJOR ||
17107 minor < DB_VERSION_MINOR )
17109 printf("Berkeley DB version mismatch\n"
17110 "\theader: %s\n\tlibrary: %s\n",
17111 DB_VERSION_STRING, version);
17117 #if DB_VERSION_MAJOR > 2
17118 db_env_create( NULL, 0 );
17119 #elif DB_VERSION_MAJOR > 1
17120 db_appexit( NULL );
17122 (void) dbopen( NULL, 0, 0, 0, NULL);
17127 if { (eval echo configure:17128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17131 echo "configure: failed program was:" >&5
17132 cat conftest.$ac_ext >&5
17142 echo "$ac_t""$ol_cv_db_none" 1>&6
17144 if test $ol_cv_db_none = yes ; then
17149 if test $ol_cv_lib_db = no ; then
17150 echo $ac_n "checking for Berkeley DB link (-ldb43)""... $ac_c" 1>&6
17151 echo "configure:17152: checking for Berkeley DB link (-ldb43)" >&5
17152 if eval "test \"\${ol_cv_db_db43+set}\" = set"; then
17153 echo $ac_n "(cached) $ac_c" 1>&6
17158 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17160 cat > conftest.$ac_ext <<EOF
17161 #line 17162 "configure"
17162 #include "confdefs.h"
17164 #ifdef HAVE_DB_185_H
17165 # include <db_185.h>
17170 #ifndef DB_VERSION_MAJOR
17171 # define DB_VERSION_MAJOR 1
17175 #define NULL ((void*)0)
17180 #if DB_VERSION_MAJOR > 1
17183 int major, minor, patch;
17185 version = db_version( &major, &minor, &patch );
17187 if( major != DB_VERSION_MAJOR ||
17188 minor < DB_VERSION_MINOR )
17190 printf("Berkeley DB version mismatch\n"
17191 "\theader: %s\n\tlibrary: %s\n",
17192 DB_VERSION_STRING, version);
17198 #if DB_VERSION_MAJOR > 2
17199 db_env_create( NULL, 0 );
17200 #elif DB_VERSION_MAJOR > 1
17201 db_appexit( NULL );
17203 (void) dbopen( NULL, 0, 0, 0, NULL);
17208 if { (eval echo configure:17209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17212 echo "configure: failed program was:" >&5
17213 cat conftest.$ac_ext >&5
17223 echo "$ac_t""$ol_cv_db_db43" 1>&6
17225 if test $ol_cv_db_db43 = yes ; then
17226 ol_cv_lib_db=-ldb43
17230 if test $ol_cv_lib_db = no ; then
17231 echo $ac_n "checking for Berkeley DB link (-ldb-43)""... $ac_c" 1>&6
17232 echo "configure:17233: checking for Berkeley DB link (-ldb-43)" >&5
17233 if eval "test \"\${ol_cv_db_db_43+set}\" = set"; then
17234 echo $ac_n "(cached) $ac_c" 1>&6
17239 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17241 cat > conftest.$ac_ext <<EOF
17242 #line 17243 "configure"
17243 #include "confdefs.h"
17245 #ifdef HAVE_DB_185_H
17246 # include <db_185.h>
17251 #ifndef DB_VERSION_MAJOR
17252 # define DB_VERSION_MAJOR 1
17256 #define NULL ((void*)0)
17261 #if DB_VERSION_MAJOR > 1
17264 int major, minor, patch;
17266 version = db_version( &major, &minor, &patch );
17268 if( major != DB_VERSION_MAJOR ||
17269 minor < DB_VERSION_MINOR )
17271 printf("Berkeley DB version mismatch\n"
17272 "\theader: %s\n\tlibrary: %s\n",
17273 DB_VERSION_STRING, version);
17279 #if DB_VERSION_MAJOR > 2
17280 db_env_create( NULL, 0 );
17281 #elif DB_VERSION_MAJOR > 1
17282 db_appexit( NULL );
17284 (void) dbopen( NULL, 0, 0, 0, NULL);
17289 if { (eval echo configure:17290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17293 echo "configure: failed program was:" >&5
17294 cat conftest.$ac_ext >&5
17304 echo "$ac_t""$ol_cv_db_db_43" 1>&6
17306 if test $ol_cv_db_db_43 = yes ; then
17307 ol_cv_lib_db=-ldb-43
17311 if test $ol_cv_lib_db = no ; then
17312 echo $ac_n "checking for Berkeley DB link (-ldb-4.3)""... $ac_c" 1>&6
17313 echo "configure:17314: checking for Berkeley DB link (-ldb-4.3)" >&5
17314 if eval "test \"\${ol_cv_db_db_4_dot_3+set}\" = set"; then
17315 echo $ac_n "(cached) $ac_c" 1>&6
17320 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17322 cat > conftest.$ac_ext <<EOF
17323 #line 17324 "configure"
17324 #include "confdefs.h"
17326 #ifdef HAVE_DB_185_H
17327 # include <db_185.h>
17332 #ifndef DB_VERSION_MAJOR
17333 # define DB_VERSION_MAJOR 1
17337 #define NULL ((void*)0)
17342 #if DB_VERSION_MAJOR > 1
17345 int major, minor, patch;
17347 version = db_version( &major, &minor, &patch );
17349 if( major != DB_VERSION_MAJOR ||
17350 minor < DB_VERSION_MINOR )
17352 printf("Berkeley DB version mismatch\n"
17353 "\theader: %s\n\tlibrary: %s\n",
17354 DB_VERSION_STRING, version);
17360 #if DB_VERSION_MAJOR > 2
17361 db_env_create( NULL, 0 );
17362 #elif DB_VERSION_MAJOR > 1
17363 db_appexit( NULL );
17365 (void) dbopen( NULL, 0, 0, 0, NULL);
17370 if { (eval echo configure:17371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17372 ol_cv_db_db_4_dot_3=yes
17374 echo "configure: failed program was:" >&5
17375 cat conftest.$ac_ext >&5
17377 ol_cv_db_db_4_dot_3=no
17385 echo "$ac_t""$ol_cv_db_db_4_dot_3" 1>&6
17387 if test $ol_cv_db_db_4_dot_3 = yes ; then
17388 ol_cv_lib_db=-ldb-4.3
17392 if test $ol_cv_lib_db = no ; then
17393 echo $ac_n "checking for Berkeley DB link (-ldb-4-3)""... $ac_c" 1>&6
17394 echo "configure:17395: checking for Berkeley DB link (-ldb-4-3)" >&5
17395 if eval "test \"\${ol_cv_db_db_4_3+set}\" = set"; then
17396 echo $ac_n "(cached) $ac_c" 1>&6
17401 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17403 cat > conftest.$ac_ext <<EOF
17404 #line 17405 "configure"
17405 #include "confdefs.h"
17407 #ifdef HAVE_DB_185_H
17408 # include <db_185.h>
17413 #ifndef DB_VERSION_MAJOR
17414 # define DB_VERSION_MAJOR 1
17418 #define NULL ((void*)0)
17423 #if DB_VERSION_MAJOR > 1
17426 int major, minor, patch;
17428 version = db_version( &major, &minor, &patch );
17430 if( major != DB_VERSION_MAJOR ||
17431 minor < DB_VERSION_MINOR )
17433 printf("Berkeley DB version mismatch\n"
17434 "\theader: %s\n\tlibrary: %s\n",
17435 DB_VERSION_STRING, version);
17441 #if DB_VERSION_MAJOR > 2
17442 db_env_create( NULL, 0 );
17443 #elif DB_VERSION_MAJOR > 1
17444 db_appexit( NULL );
17446 (void) dbopen( NULL, 0, 0, 0, NULL);
17451 if { (eval echo configure:17452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17453 ol_cv_db_db_4_3=yes
17455 echo "configure: failed program was:" >&5
17456 cat conftest.$ac_ext >&5
17466 echo "$ac_t""$ol_cv_db_db_4_3" 1>&6
17468 if test $ol_cv_db_db_4_3 = yes ; then
17469 ol_cv_lib_db=-ldb-4-3
17473 if test $ol_cv_lib_db = no ; then
17474 echo $ac_n "checking for Berkeley DB link (-ldb42)""... $ac_c" 1>&6
17475 echo "configure:17476: checking for Berkeley DB link (-ldb42)" >&5
17476 if eval "test \"\${ol_cv_db_db42+set}\" = set"; then
17477 echo $ac_n "(cached) $ac_c" 1>&6
17482 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17484 cat > conftest.$ac_ext <<EOF
17485 #line 17486 "configure"
17486 #include "confdefs.h"
17488 #ifdef HAVE_DB_185_H
17489 # include <db_185.h>
17494 #ifndef DB_VERSION_MAJOR
17495 # define DB_VERSION_MAJOR 1
17499 #define NULL ((void*)0)
17504 #if DB_VERSION_MAJOR > 1
17507 int major, minor, patch;
17509 version = db_version( &major, &minor, &patch );
17511 if( major != DB_VERSION_MAJOR ||
17512 minor < DB_VERSION_MINOR )
17514 printf("Berkeley DB version mismatch\n"
17515 "\theader: %s\n\tlibrary: %s\n",
17516 DB_VERSION_STRING, version);
17522 #if DB_VERSION_MAJOR > 2
17523 db_env_create( NULL, 0 );
17524 #elif DB_VERSION_MAJOR > 1
17525 db_appexit( NULL );
17527 (void) dbopen( NULL, 0, 0, 0, NULL);
17532 if { (eval echo configure:17533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17536 echo "configure: failed program was:" >&5
17537 cat conftest.$ac_ext >&5
17547 echo "$ac_t""$ol_cv_db_db42" 1>&6
17549 if test $ol_cv_db_db42 = yes ; then
17550 ol_cv_lib_db=-ldb42
17554 if test $ol_cv_lib_db = no ; then
17555 echo $ac_n "checking for Berkeley DB link (-ldb-42)""... $ac_c" 1>&6
17556 echo "configure:17557: checking for Berkeley DB link (-ldb-42)" >&5
17557 if eval "test \"\${ol_cv_db_db_42+set}\" = set"; then
17558 echo $ac_n "(cached) $ac_c" 1>&6
17563 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17565 cat > conftest.$ac_ext <<EOF
17566 #line 17567 "configure"
17567 #include "confdefs.h"
17569 #ifdef HAVE_DB_185_H
17570 # include <db_185.h>
17575 #ifndef DB_VERSION_MAJOR
17576 # define DB_VERSION_MAJOR 1
17580 #define NULL ((void*)0)
17585 #if DB_VERSION_MAJOR > 1
17588 int major, minor, patch;
17590 version = db_version( &major, &minor, &patch );
17592 if( major != DB_VERSION_MAJOR ||
17593 minor < DB_VERSION_MINOR )
17595 printf("Berkeley DB version mismatch\n"
17596 "\theader: %s\n\tlibrary: %s\n",
17597 DB_VERSION_STRING, version);
17603 #if DB_VERSION_MAJOR > 2
17604 db_env_create( NULL, 0 );
17605 #elif DB_VERSION_MAJOR > 1
17606 db_appexit( NULL );
17608 (void) dbopen( NULL, 0, 0, 0, NULL);
17613 if { (eval echo configure:17614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17617 echo "configure: failed program was:" >&5
17618 cat conftest.$ac_ext >&5
17628 echo "$ac_t""$ol_cv_db_db_42" 1>&6
17630 if test $ol_cv_db_db_42 = yes ; then
17631 ol_cv_lib_db=-ldb-42
17635 if test $ol_cv_lib_db = no ; then
17636 echo $ac_n "checking for Berkeley DB link (-ldb-4.2)""... $ac_c" 1>&6
17637 echo "configure:17638: checking for Berkeley DB link (-ldb-4.2)" >&5
17638 if eval "test \"\${ol_cv_db_db_4_dot_2+set}\" = set"; then
17639 echo $ac_n "(cached) $ac_c" 1>&6
17644 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17646 cat > conftest.$ac_ext <<EOF
17647 #line 17648 "configure"
17648 #include "confdefs.h"
17650 #ifdef HAVE_DB_185_H
17651 # include <db_185.h>
17656 #ifndef DB_VERSION_MAJOR
17657 # define DB_VERSION_MAJOR 1
17661 #define NULL ((void*)0)
17666 #if DB_VERSION_MAJOR > 1
17669 int major, minor, patch;
17671 version = db_version( &major, &minor, &patch );
17673 if( major != DB_VERSION_MAJOR ||
17674 minor < DB_VERSION_MINOR )
17676 printf("Berkeley DB version mismatch\n"
17677 "\theader: %s\n\tlibrary: %s\n",
17678 DB_VERSION_STRING, version);
17684 #if DB_VERSION_MAJOR > 2
17685 db_env_create( NULL, 0 );
17686 #elif DB_VERSION_MAJOR > 1
17687 db_appexit( NULL );
17689 (void) dbopen( NULL, 0, 0, 0, NULL);
17694 if { (eval echo configure:17695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17696 ol_cv_db_db_4_dot_2=yes
17698 echo "configure: failed program was:" >&5
17699 cat conftest.$ac_ext >&5
17701 ol_cv_db_db_4_dot_2=no
17709 echo "$ac_t""$ol_cv_db_db_4_dot_2" 1>&6
17711 if test $ol_cv_db_db_4_dot_2 = yes ; then
17712 ol_cv_lib_db=-ldb-4.2
17716 if test $ol_cv_lib_db = no ; then
17717 echo $ac_n "checking for Berkeley DB link (-ldb-4-2)""... $ac_c" 1>&6
17718 echo "configure:17719: checking for Berkeley DB link (-ldb-4-2)" >&5
17719 if eval "test \"\${ol_cv_db_db_4_2+set}\" = set"; then
17720 echo $ac_n "(cached) $ac_c" 1>&6
17725 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17727 cat > conftest.$ac_ext <<EOF
17728 #line 17729 "configure"
17729 #include "confdefs.h"
17731 #ifdef HAVE_DB_185_H
17732 # include <db_185.h>
17737 #ifndef DB_VERSION_MAJOR
17738 # define DB_VERSION_MAJOR 1
17742 #define NULL ((void*)0)
17747 #if DB_VERSION_MAJOR > 1
17750 int major, minor, patch;
17752 version = db_version( &major, &minor, &patch );
17754 if( major != DB_VERSION_MAJOR ||
17755 minor < DB_VERSION_MINOR )
17757 printf("Berkeley DB version mismatch\n"
17758 "\theader: %s\n\tlibrary: %s\n",
17759 DB_VERSION_STRING, version);
17765 #if DB_VERSION_MAJOR > 2
17766 db_env_create( NULL, 0 );
17767 #elif DB_VERSION_MAJOR > 1
17768 db_appexit( NULL );
17770 (void) dbopen( NULL, 0, 0, 0, NULL);
17775 if { (eval echo configure:17776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17777 ol_cv_db_db_4_2=yes
17779 echo "configure: failed program was:" >&5
17780 cat conftest.$ac_ext >&5
17790 echo "$ac_t""$ol_cv_db_db_4_2" 1>&6
17792 if test $ol_cv_db_db_4_2 = yes ; then
17793 ol_cv_lib_db=-ldb-4-2
17797 if test $ol_cv_lib_db = no ; then
17798 echo $ac_n "checking for Berkeley DB link (-ldb-4)""... $ac_c" 1>&6
17799 echo "configure:17800: checking for Berkeley DB link (-ldb-4)" >&5
17800 if eval "test \"\${ol_cv_db_db_4+set}\" = set"; then
17801 echo $ac_n "(cached) $ac_c" 1>&6
17806 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17808 cat > conftest.$ac_ext <<EOF
17809 #line 17810 "configure"
17810 #include "confdefs.h"
17812 #ifdef HAVE_DB_185_H
17813 # include <db_185.h>
17818 #ifndef DB_VERSION_MAJOR
17819 # define DB_VERSION_MAJOR 1
17823 #define NULL ((void*)0)
17828 #if DB_VERSION_MAJOR > 1
17831 int major, minor, patch;
17833 version = db_version( &major, &minor, &patch );
17835 if( major != DB_VERSION_MAJOR ||
17836 minor < DB_VERSION_MINOR )
17838 printf("Berkeley DB version mismatch\n"
17839 "\theader: %s\n\tlibrary: %s\n",
17840 DB_VERSION_STRING, version);
17846 #if DB_VERSION_MAJOR > 2
17847 db_env_create( NULL, 0 );
17848 #elif DB_VERSION_MAJOR > 1
17849 db_appexit( NULL );
17851 (void) dbopen( NULL, 0, 0, 0, NULL);
17856 if { (eval echo configure:17857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17860 echo "configure: failed program was:" >&5
17861 cat conftest.$ac_ext >&5
17871 echo "$ac_t""$ol_cv_db_db_4" 1>&6
17873 if test $ol_cv_db_db_4 = yes ; then
17874 ol_cv_lib_db=-ldb-4
17878 if test $ol_cv_lib_db = no ; then
17879 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
17880 echo "configure:17881: checking for Berkeley DB link (-ldb4)" >&5
17881 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
17882 echo $ac_n "(cached) $ac_c" 1>&6
17887 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17889 cat > conftest.$ac_ext <<EOF
17890 #line 17891 "configure"
17891 #include "confdefs.h"
17893 #ifdef HAVE_DB_185_H
17894 # include <db_185.h>
17899 #ifndef DB_VERSION_MAJOR
17900 # define DB_VERSION_MAJOR 1
17904 #define NULL ((void*)0)
17909 #if DB_VERSION_MAJOR > 1
17912 int major, minor, patch;
17914 version = db_version( &major, &minor, &patch );
17916 if( major != DB_VERSION_MAJOR ||
17917 minor < DB_VERSION_MINOR )
17919 printf("Berkeley DB version mismatch\n"
17920 "\theader: %s\n\tlibrary: %s\n",
17921 DB_VERSION_STRING, version);
17927 #if DB_VERSION_MAJOR > 2
17928 db_env_create( NULL, 0 );
17929 #elif DB_VERSION_MAJOR > 1
17930 db_appexit( NULL );
17932 (void) dbopen( NULL, 0, 0, 0, NULL);
17937 if { (eval echo configure:17938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17941 echo "configure: failed program was:" >&5
17942 cat conftest.$ac_ext >&5
17952 echo "$ac_t""$ol_cv_db_db4" 1>&6
17954 if test $ol_cv_db_db4 = yes ; then
17959 if test $ol_cv_lib_db = no ; then
17960 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
17961 echo "configure:17962: checking for Berkeley DB link (-ldb)" >&5
17962 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
17963 echo $ac_n "(cached) $ac_c" 1>&6
17968 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17970 cat > conftest.$ac_ext <<EOF
17971 #line 17972 "configure"
17972 #include "confdefs.h"
17974 #ifdef HAVE_DB_185_H
17975 # include <db_185.h>
17980 #ifndef DB_VERSION_MAJOR
17981 # define DB_VERSION_MAJOR 1
17985 #define NULL ((void*)0)
17990 #if DB_VERSION_MAJOR > 1
17993 int major, minor, patch;
17995 version = db_version( &major, &minor, &patch );
17997 if( major != DB_VERSION_MAJOR ||
17998 minor < DB_VERSION_MINOR )
18000 printf("Berkeley DB version mismatch\n"
18001 "\theader: %s\n\tlibrary: %s\n",
18002 DB_VERSION_STRING, version);
18008 #if DB_VERSION_MAJOR > 2
18009 db_env_create( NULL, 0 );
18010 #elif DB_VERSION_MAJOR > 1
18011 db_appexit( NULL );
18013 (void) dbopen( NULL, 0, 0, 0, NULL);
18018 if { (eval echo configure:18019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18022 echo "configure: failed program was:" >&5
18023 cat conftest.$ac_ext >&5
18033 echo "$ac_t""$ol_cv_db_db" 1>&6
18035 if test $ol_cv_db_db = yes ; then
18040 if test $ol_cv_lib_db = no ; then
18041 echo $ac_n "checking for Berkeley DB link (-ldb41)""... $ac_c" 1>&6
18042 echo "configure:18043: checking for Berkeley DB link (-ldb41)" >&5
18043 if eval "test \"\${ol_cv_db_db41+set}\" = set"; then
18044 echo $ac_n "(cached) $ac_c" 1>&6
18049 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18051 cat > conftest.$ac_ext <<EOF
18052 #line 18053 "configure"
18053 #include "confdefs.h"
18055 #ifdef HAVE_DB_185_H
18056 # include <db_185.h>
18061 #ifndef DB_VERSION_MAJOR
18062 # define DB_VERSION_MAJOR 1
18066 #define NULL ((void*)0)
18071 #if DB_VERSION_MAJOR > 1
18074 int major, minor, patch;
18076 version = db_version( &major, &minor, &patch );
18078 if( major != DB_VERSION_MAJOR ||
18079 minor < DB_VERSION_MINOR )
18081 printf("Berkeley DB version mismatch\n"
18082 "\theader: %s\n\tlibrary: %s\n",
18083 DB_VERSION_STRING, version);
18089 #if DB_VERSION_MAJOR > 2
18090 db_env_create( NULL, 0 );
18091 #elif DB_VERSION_MAJOR > 1
18092 db_appexit( NULL );
18094 (void) dbopen( NULL, 0, 0, 0, NULL);
18099 if { (eval echo configure:18100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18103 echo "configure: failed program was:" >&5
18104 cat conftest.$ac_ext >&5
18114 echo "$ac_t""$ol_cv_db_db41" 1>&6
18116 if test $ol_cv_db_db41 = yes ; then
18117 ol_cv_lib_db=-ldb41
18121 if test $ol_cv_lib_db = no ; then
18122 echo $ac_n "checking for Berkeley DB link (-ldb-41)""... $ac_c" 1>&6
18123 echo "configure:18124: checking for Berkeley DB link (-ldb-41)" >&5
18124 if eval "test \"\${ol_cv_db_db_41+set}\" = set"; then
18125 echo $ac_n "(cached) $ac_c" 1>&6
18130 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18132 cat > conftest.$ac_ext <<EOF
18133 #line 18134 "configure"
18134 #include "confdefs.h"
18136 #ifdef HAVE_DB_185_H
18137 # include <db_185.h>
18142 #ifndef DB_VERSION_MAJOR
18143 # define DB_VERSION_MAJOR 1
18147 #define NULL ((void*)0)
18152 #if DB_VERSION_MAJOR > 1
18155 int major, minor, patch;
18157 version = db_version( &major, &minor, &patch );
18159 if( major != DB_VERSION_MAJOR ||
18160 minor < DB_VERSION_MINOR )
18162 printf("Berkeley DB version mismatch\n"
18163 "\theader: %s\n\tlibrary: %s\n",
18164 DB_VERSION_STRING, version);
18170 #if DB_VERSION_MAJOR > 2
18171 db_env_create( NULL, 0 );
18172 #elif DB_VERSION_MAJOR > 1
18173 db_appexit( NULL );
18175 (void) dbopen( NULL, 0, 0, 0, NULL);
18180 if { (eval echo configure:18181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18184 echo "configure: failed program was:" >&5
18185 cat conftest.$ac_ext >&5
18195 echo "$ac_t""$ol_cv_db_db_41" 1>&6
18197 if test $ol_cv_db_db_41 = yes ; then
18198 ol_cv_lib_db=-ldb-41
18202 if test $ol_cv_lib_db = no ; then
18203 echo $ac_n "checking for Berkeley DB link (-ldb-4.1)""... $ac_c" 1>&6
18204 echo "configure:18205: checking for Berkeley DB link (-ldb-4.1)" >&5
18205 if eval "test \"\${ol_cv_db_db_4_dot_1+set}\" = set"; then
18206 echo $ac_n "(cached) $ac_c" 1>&6
18211 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18213 cat > conftest.$ac_ext <<EOF
18214 #line 18215 "configure"
18215 #include "confdefs.h"
18217 #ifdef HAVE_DB_185_H
18218 # include <db_185.h>
18223 #ifndef DB_VERSION_MAJOR
18224 # define DB_VERSION_MAJOR 1
18228 #define NULL ((void*)0)
18233 #if DB_VERSION_MAJOR > 1
18236 int major, minor, patch;
18238 version = db_version( &major, &minor, &patch );
18240 if( major != DB_VERSION_MAJOR ||
18241 minor < DB_VERSION_MINOR )
18243 printf("Berkeley DB version mismatch\n"
18244 "\theader: %s\n\tlibrary: %s\n",
18245 DB_VERSION_STRING, version);
18251 #if DB_VERSION_MAJOR > 2
18252 db_env_create( NULL, 0 );
18253 #elif DB_VERSION_MAJOR > 1
18254 db_appexit( NULL );
18256 (void) dbopen( NULL, 0, 0, 0, NULL);
18261 if { (eval echo configure:18262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18263 ol_cv_db_db_4_dot_1=yes
18265 echo "configure: failed program was:" >&5
18266 cat conftest.$ac_ext >&5
18268 ol_cv_db_db_4_dot_1=no
18276 echo "$ac_t""$ol_cv_db_db_4_dot_1" 1>&6
18278 if test $ol_cv_db_db_4_dot_1 = yes ; then
18279 ol_cv_lib_db=-ldb-4.1
18283 if test $ol_cv_lib_db = no ; then
18284 echo $ac_n "checking for Berkeley DB link (-ldb-4-1)""... $ac_c" 1>&6
18285 echo "configure:18286: checking for Berkeley DB link (-ldb-4-1)" >&5
18286 if eval "test \"\${ol_cv_db_db_4_1+set}\" = set"; then
18287 echo $ac_n "(cached) $ac_c" 1>&6
18292 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18294 cat > conftest.$ac_ext <<EOF
18295 #line 18296 "configure"
18296 #include "confdefs.h"
18298 #ifdef HAVE_DB_185_H
18299 # include <db_185.h>
18304 #ifndef DB_VERSION_MAJOR
18305 # define DB_VERSION_MAJOR 1
18309 #define NULL ((void*)0)
18314 #if DB_VERSION_MAJOR > 1
18317 int major, minor, patch;
18319 version = db_version( &major, &minor, &patch );
18321 if( major != DB_VERSION_MAJOR ||
18322 minor < DB_VERSION_MINOR )
18324 printf("Berkeley DB version mismatch\n"
18325 "\theader: %s\n\tlibrary: %s\n",
18326 DB_VERSION_STRING, version);
18332 #if DB_VERSION_MAJOR > 2
18333 db_env_create( NULL, 0 );
18334 #elif DB_VERSION_MAJOR > 1
18335 db_appexit( NULL );
18337 (void) dbopen( NULL, 0, 0, 0, NULL);
18342 if { (eval echo configure:18343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18344 ol_cv_db_db_4_1=yes
18346 echo "configure: failed program was:" >&5
18347 cat conftest.$ac_ext >&5
18357 echo "$ac_t""$ol_cv_db_db_4_1" 1>&6
18359 if test $ol_cv_db_db_4_1 = yes ; then
18360 ol_cv_lib_db=-ldb-4-1
18364 if test $ol_cv_lib_db = no ; then
18365 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
18366 echo "configure:18367: checking for Berkeley DB link (-ldb3)" >&5
18367 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
18368 echo $ac_n "(cached) $ac_c" 1>&6
18373 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18375 cat > conftest.$ac_ext <<EOF
18376 #line 18377 "configure"
18377 #include "confdefs.h"
18379 #ifdef HAVE_DB_185_H
18380 # include <db_185.h>
18385 #ifndef DB_VERSION_MAJOR
18386 # define DB_VERSION_MAJOR 1
18390 #define NULL ((void*)0)
18395 #if DB_VERSION_MAJOR > 1
18398 int major, minor, patch;
18400 version = db_version( &major, &minor, &patch );
18402 if( major != DB_VERSION_MAJOR ||
18403 minor < DB_VERSION_MINOR )
18405 printf("Berkeley DB version mismatch\n"
18406 "\theader: %s\n\tlibrary: %s\n",
18407 DB_VERSION_STRING, version);
18413 #if DB_VERSION_MAJOR > 2
18414 db_env_create( NULL, 0 );
18415 #elif DB_VERSION_MAJOR > 1
18416 db_appexit( NULL );
18418 (void) dbopen( NULL, 0, 0, 0, NULL);
18423 if { (eval echo configure:18424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18427 echo "configure: failed program was:" >&5
18428 cat conftest.$ac_ext >&5
18438 echo "$ac_t""$ol_cv_db_db3" 1>&6
18440 if test $ol_cv_db_db3 = yes ; then
18445 if test $ol_cv_lib_db = no ; then
18446 echo $ac_n "checking for Berkeley DB link (-ldb-3)""... $ac_c" 1>&6
18447 echo "configure:18448: checking for Berkeley DB link (-ldb-3)" >&5
18448 if eval "test \"\${ol_cv_db_db_3+set}\" = set"; then
18449 echo $ac_n "(cached) $ac_c" 1>&6
18454 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18456 cat > conftest.$ac_ext <<EOF
18457 #line 18458 "configure"
18458 #include "confdefs.h"
18460 #ifdef HAVE_DB_185_H
18461 # include <db_185.h>
18466 #ifndef DB_VERSION_MAJOR
18467 # define DB_VERSION_MAJOR 1
18471 #define NULL ((void*)0)
18476 #if DB_VERSION_MAJOR > 1
18479 int major, minor, patch;
18481 version = db_version( &major, &minor, &patch );
18483 if( major != DB_VERSION_MAJOR ||
18484 minor < DB_VERSION_MINOR )
18486 printf("Berkeley DB version mismatch\n"
18487 "\theader: %s\n\tlibrary: %s\n",
18488 DB_VERSION_STRING, version);
18494 #if DB_VERSION_MAJOR > 2
18495 db_env_create( NULL, 0 );
18496 #elif DB_VERSION_MAJOR > 1
18497 db_appexit( NULL );
18499 (void) dbopen( NULL, 0, 0, 0, NULL);
18504 if { (eval echo configure:18505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18508 echo "configure: failed program was:" >&5
18509 cat conftest.$ac_ext >&5
18519 echo "$ac_t""$ol_cv_db_db_3" 1>&6
18521 if test $ol_cv_db_db_3 = yes ; then
18522 ol_cv_lib_db=-ldb-3
18526 if test $ol_cv_lib_db = no ; then
18527 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
18528 echo "configure:18529: checking for Berkeley DB link (-ldb2)" >&5
18529 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
18530 echo $ac_n "(cached) $ac_c" 1>&6
18535 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18537 cat > conftest.$ac_ext <<EOF
18538 #line 18539 "configure"
18539 #include "confdefs.h"
18541 #ifdef HAVE_DB_185_H
18542 # include <db_185.h>
18547 #ifndef DB_VERSION_MAJOR
18548 # define DB_VERSION_MAJOR 1
18552 #define NULL ((void*)0)
18557 #if DB_VERSION_MAJOR > 1
18560 int major, minor, patch;
18562 version = db_version( &major, &minor, &patch );
18564 if( major != DB_VERSION_MAJOR ||
18565 minor < DB_VERSION_MINOR )
18567 printf("Berkeley DB version mismatch\n"
18568 "\theader: %s\n\tlibrary: %s\n",
18569 DB_VERSION_STRING, version);
18575 #if DB_VERSION_MAJOR > 2
18576 db_env_create( NULL, 0 );
18577 #elif DB_VERSION_MAJOR > 1
18578 db_appexit( NULL );
18580 (void) dbopen( NULL, 0, 0, 0, NULL);
18585 if { (eval echo configure:18586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18589 echo "configure: failed program was:" >&5
18590 cat conftest.$ac_ext >&5
18600 echo "$ac_t""$ol_cv_db_db2" 1>&6
18602 if test $ol_cv_db_db2 = yes ; then
18607 if test $ol_cv_lib_db = no ; then
18608 echo $ac_n "checking for Berkeley DB link (-ldb-2)""... $ac_c" 1>&6
18609 echo "configure:18610: checking for Berkeley DB link (-ldb-2)" >&5
18610 if eval "test \"\${ol_cv_db_db_2+set}\" = set"; then
18611 echo $ac_n "(cached) $ac_c" 1>&6
18616 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18618 cat > conftest.$ac_ext <<EOF
18619 #line 18620 "configure"
18620 #include "confdefs.h"
18622 #ifdef HAVE_DB_185_H
18623 # include <db_185.h>
18628 #ifndef DB_VERSION_MAJOR
18629 # define DB_VERSION_MAJOR 1
18633 #define NULL ((void*)0)
18638 #if DB_VERSION_MAJOR > 1
18641 int major, minor, patch;
18643 version = db_version( &major, &minor, &patch );
18645 if( major != DB_VERSION_MAJOR ||
18646 minor < DB_VERSION_MINOR )
18648 printf("Berkeley DB version mismatch\n"
18649 "\theader: %s\n\tlibrary: %s\n",
18650 DB_VERSION_STRING, version);
18656 #if DB_VERSION_MAJOR > 2
18657 db_env_create( NULL, 0 );
18658 #elif DB_VERSION_MAJOR > 1
18659 db_appexit( NULL );
18661 (void) dbopen( NULL, 0, 0, 0, NULL);
18666 if { (eval echo configure:18667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18670 echo "configure: failed program was:" >&5
18671 cat conftest.$ac_ext >&5
18681 echo "$ac_t""$ol_cv_db_db_2" 1>&6
18683 if test $ol_cv_db_db_2 = yes ; then
18684 ol_cv_lib_db=-ldb-2
18688 if test $ol_cv_lib_db = no ; then
18689 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
18690 echo "configure:18691: checking for Berkeley DB link (-ldb1)" >&5
18691 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
18692 echo $ac_n "(cached) $ac_c" 1>&6
18697 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18699 cat > conftest.$ac_ext <<EOF
18700 #line 18701 "configure"
18701 #include "confdefs.h"
18703 #ifdef HAVE_DB_185_H
18704 # include <db_185.h>
18709 #ifndef DB_VERSION_MAJOR
18710 # define DB_VERSION_MAJOR 1
18714 #define NULL ((void*)0)
18719 #if DB_VERSION_MAJOR > 1
18722 int major, minor, patch;
18724 version = db_version( &major, &minor, &patch );
18726 if( major != DB_VERSION_MAJOR ||
18727 minor < DB_VERSION_MINOR )
18729 printf("Berkeley DB version mismatch\n"
18730 "\theader: %s\n\tlibrary: %s\n",
18731 DB_VERSION_STRING, version);
18737 #if DB_VERSION_MAJOR > 2
18738 db_env_create( NULL, 0 );
18739 #elif DB_VERSION_MAJOR > 1
18740 db_appexit( NULL );
18742 (void) dbopen( NULL, 0, 0, 0, NULL);
18747 if { (eval echo configure:18748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18751 echo "configure: failed program was:" >&5
18752 cat conftest.$ac_ext >&5
18762 echo "$ac_t""$ol_cv_db_db1" 1>&6
18764 if test $ol_cv_db_db1 = yes ; then
18769 if test $ol_cv_lib_db = no ; then
18770 echo $ac_n "checking for Berkeley DB link (-ldb-1)""... $ac_c" 1>&6
18771 echo "configure:18772: checking for Berkeley DB link (-ldb-1)" >&5
18772 if eval "test \"\${ol_cv_db_db_1+set}\" = set"; then
18773 echo $ac_n "(cached) $ac_c" 1>&6
18778 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18780 cat > conftest.$ac_ext <<EOF
18781 #line 18782 "configure"
18782 #include "confdefs.h"
18784 #ifdef HAVE_DB_185_H
18785 # include <db_185.h>
18790 #ifndef DB_VERSION_MAJOR
18791 # define DB_VERSION_MAJOR 1
18795 #define NULL ((void*)0)
18800 #if DB_VERSION_MAJOR > 1
18803 int major, minor, patch;
18805 version = db_version( &major, &minor, &patch );
18807 if( major != DB_VERSION_MAJOR ||
18808 minor < DB_VERSION_MINOR )
18810 printf("Berkeley DB version mismatch\n"
18811 "\theader: %s\n\tlibrary: %s\n",
18812 DB_VERSION_STRING, version);
18818 #if DB_VERSION_MAJOR > 2
18819 db_env_create( NULL, 0 );
18820 #elif DB_VERSION_MAJOR > 1
18821 db_appexit( NULL );
18823 (void) dbopen( NULL, 0, 0, 0, NULL);
18828 if { (eval echo configure:18829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18832 echo "configure: failed program was:" >&5
18833 cat conftest.$ac_ext >&5
18843 echo "$ac_t""$ol_cv_db_db_1" 1>&6
18845 if test $ol_cv_db_db_1 = yes ; then
18846 ol_cv_lib_db=-ldb-1
18851 if test "$ol_cv_lib_db" != no ; then
18852 ol_cv_berkeley_db=yes
18858 ol_cv_berkeley_db=no
18861 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18862 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18863 echo "configure:18864: checking for $ac_hdr" >&5
18864 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
18865 echo $ac_n "(cached) $ac_c" 1>&6
18867 cat > conftest.$ac_ext <<EOF
18868 #line 18869 "configure"
18869 #include "confdefs.h"
18872 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18873 { (eval echo configure:18874: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18874 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18875 if test -z "$ac_err"; then
18877 eval "ac_cv_header_$ac_safe=yes"
18880 echo "configure: failed program was:" >&5
18881 cat conftest.$ac_ext >&5
18883 eval "ac_cv_header_$ac_safe=no"
18887 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18888 echo "$ac_t""yes" 1>&6
18889 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18890 cat >> confdefs.h <<EOF
18891 #define $ac_tr_hdr 1
18895 echo "$ac_t""no" 1>&6
18899 if test $ac_cv_header_db_h = yes; then
18901 if test $ol_cv_lib_db = no ; then
18902 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
18903 echo "configure:18904: checking for Berkeley DB link (default)" >&5
18904 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
18905 echo $ac_n "(cached) $ac_c" 1>&6
18910 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18912 cat > conftest.$ac_ext <<EOF
18913 #line 18914 "configure"
18914 #include "confdefs.h"
18916 #ifdef HAVE_DB_185_H
18917 # include <db_185.h>
18922 #ifndef DB_VERSION_MAJOR
18923 # define DB_VERSION_MAJOR 1
18927 #define NULL ((void*)0)
18932 #if DB_VERSION_MAJOR > 1
18935 int major, minor, patch;
18937 version = db_version( &major, &minor, &patch );
18939 if( major != DB_VERSION_MAJOR ||
18940 minor < DB_VERSION_MINOR )
18942 printf("Berkeley DB version mismatch\n"
18943 "\theader: %s\n\tlibrary: %s\n",
18944 DB_VERSION_STRING, version);
18950 #if DB_VERSION_MAJOR > 2
18951 db_env_create( NULL, 0 );
18952 #elif DB_VERSION_MAJOR > 1
18953 db_appexit( NULL );
18955 (void) dbopen( NULL, 0, 0, 0, NULL);
18960 if { (eval echo configure:18961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18964 echo "configure: failed program was:" >&5
18965 cat conftest.$ac_ext >&5
18975 echo "$ac_t""$ol_cv_db_none" 1>&6
18977 if test $ol_cv_db_none = yes ; then
18982 if test $ol_cv_lib_db = no ; then
18983 echo $ac_n "checking for Berkeley DB link (-ldb43)""... $ac_c" 1>&6
18984 echo "configure:18985: checking for Berkeley DB link (-ldb43)" >&5
18985 if eval "test \"\${ol_cv_db_db43+set}\" = set"; then
18986 echo $ac_n "(cached) $ac_c" 1>&6
18991 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18993 cat > conftest.$ac_ext <<EOF
18994 #line 18995 "configure"
18995 #include "confdefs.h"
18997 #ifdef HAVE_DB_185_H
18998 # include <db_185.h>
19003 #ifndef DB_VERSION_MAJOR
19004 # define DB_VERSION_MAJOR 1
19008 #define NULL ((void*)0)
19013 #if DB_VERSION_MAJOR > 1
19016 int major, minor, patch;
19018 version = db_version( &major, &minor, &patch );
19020 if( major != DB_VERSION_MAJOR ||
19021 minor < DB_VERSION_MINOR )
19023 printf("Berkeley DB version mismatch\n"
19024 "\theader: %s\n\tlibrary: %s\n",
19025 DB_VERSION_STRING, version);
19031 #if DB_VERSION_MAJOR > 2
19032 db_env_create( NULL, 0 );
19033 #elif DB_VERSION_MAJOR > 1
19034 db_appexit( NULL );
19036 (void) dbopen( NULL, 0, 0, 0, NULL);
19041 if { (eval echo configure:19042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19045 echo "configure: failed program was:" >&5
19046 cat conftest.$ac_ext >&5
19056 echo "$ac_t""$ol_cv_db_db43" 1>&6
19058 if test $ol_cv_db_db43 = yes ; then
19059 ol_cv_lib_db=-ldb43
19063 if test $ol_cv_lib_db = no ; then
19064 echo $ac_n "checking for Berkeley DB link (-ldb-43)""... $ac_c" 1>&6
19065 echo "configure:19066: checking for Berkeley DB link (-ldb-43)" >&5
19066 if eval "test \"\${ol_cv_db_db_43+set}\" = set"; then
19067 echo $ac_n "(cached) $ac_c" 1>&6
19072 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19074 cat > conftest.$ac_ext <<EOF
19075 #line 19076 "configure"
19076 #include "confdefs.h"
19078 #ifdef HAVE_DB_185_H
19079 # include <db_185.h>
19084 #ifndef DB_VERSION_MAJOR
19085 # define DB_VERSION_MAJOR 1
19089 #define NULL ((void*)0)
19094 #if DB_VERSION_MAJOR > 1
19097 int major, minor, patch;
19099 version = db_version( &major, &minor, &patch );
19101 if( major != DB_VERSION_MAJOR ||
19102 minor < DB_VERSION_MINOR )
19104 printf("Berkeley DB version mismatch\n"
19105 "\theader: %s\n\tlibrary: %s\n",
19106 DB_VERSION_STRING, version);
19112 #if DB_VERSION_MAJOR > 2
19113 db_env_create( NULL, 0 );
19114 #elif DB_VERSION_MAJOR > 1
19115 db_appexit( NULL );
19117 (void) dbopen( NULL, 0, 0, 0, NULL);
19122 if { (eval echo configure:19123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19126 echo "configure: failed program was:" >&5
19127 cat conftest.$ac_ext >&5
19137 echo "$ac_t""$ol_cv_db_db_43" 1>&6
19139 if test $ol_cv_db_db_43 = yes ; then
19140 ol_cv_lib_db=-ldb-43
19144 if test $ol_cv_lib_db = no ; then
19145 echo $ac_n "checking for Berkeley DB link (-ldb-4.3)""... $ac_c" 1>&6
19146 echo "configure:19147: checking for Berkeley DB link (-ldb-4.3)" >&5
19147 if eval "test \"\${ol_cv_db_db_4_dot_3+set}\" = set"; then
19148 echo $ac_n "(cached) $ac_c" 1>&6
19153 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19155 cat > conftest.$ac_ext <<EOF
19156 #line 19157 "configure"
19157 #include "confdefs.h"
19159 #ifdef HAVE_DB_185_H
19160 # include <db_185.h>
19165 #ifndef DB_VERSION_MAJOR
19166 # define DB_VERSION_MAJOR 1
19170 #define NULL ((void*)0)
19175 #if DB_VERSION_MAJOR > 1
19178 int major, minor, patch;
19180 version = db_version( &major, &minor, &patch );
19182 if( major != DB_VERSION_MAJOR ||
19183 minor < DB_VERSION_MINOR )
19185 printf("Berkeley DB version mismatch\n"
19186 "\theader: %s\n\tlibrary: %s\n",
19187 DB_VERSION_STRING, version);
19193 #if DB_VERSION_MAJOR > 2
19194 db_env_create( NULL, 0 );
19195 #elif DB_VERSION_MAJOR > 1
19196 db_appexit( NULL );
19198 (void) dbopen( NULL, 0, 0, 0, NULL);
19203 if { (eval echo configure:19204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19205 ol_cv_db_db_4_dot_3=yes
19207 echo "configure: failed program was:" >&5
19208 cat conftest.$ac_ext >&5
19210 ol_cv_db_db_4_dot_3=no
19218 echo "$ac_t""$ol_cv_db_db_4_dot_3" 1>&6
19220 if test $ol_cv_db_db_4_dot_3 = yes ; then
19221 ol_cv_lib_db=-ldb-4.3
19225 if test $ol_cv_lib_db = no ; then
19226 echo $ac_n "checking for Berkeley DB link (-ldb-4-3)""... $ac_c" 1>&6
19227 echo "configure:19228: checking for Berkeley DB link (-ldb-4-3)" >&5
19228 if eval "test \"\${ol_cv_db_db_4_3+set}\" = set"; then
19229 echo $ac_n "(cached) $ac_c" 1>&6
19234 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19236 cat > conftest.$ac_ext <<EOF
19237 #line 19238 "configure"
19238 #include "confdefs.h"
19240 #ifdef HAVE_DB_185_H
19241 # include <db_185.h>
19246 #ifndef DB_VERSION_MAJOR
19247 # define DB_VERSION_MAJOR 1
19251 #define NULL ((void*)0)
19256 #if DB_VERSION_MAJOR > 1
19259 int major, minor, patch;
19261 version = db_version( &major, &minor, &patch );
19263 if( major != DB_VERSION_MAJOR ||
19264 minor < DB_VERSION_MINOR )
19266 printf("Berkeley DB version mismatch\n"
19267 "\theader: %s\n\tlibrary: %s\n",
19268 DB_VERSION_STRING, version);
19274 #if DB_VERSION_MAJOR > 2
19275 db_env_create( NULL, 0 );
19276 #elif DB_VERSION_MAJOR > 1
19277 db_appexit( NULL );
19279 (void) dbopen( NULL, 0, 0, 0, NULL);
19284 if { (eval echo configure:19285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19286 ol_cv_db_db_4_3=yes
19288 echo "configure: failed program was:" >&5
19289 cat conftest.$ac_ext >&5
19299 echo "$ac_t""$ol_cv_db_db_4_3" 1>&6
19301 if test $ol_cv_db_db_4_3 = yes ; then
19302 ol_cv_lib_db=-ldb-4-3
19306 if test $ol_cv_lib_db = no ; then
19307 echo $ac_n "checking for Berkeley DB link (-ldb42)""... $ac_c" 1>&6
19308 echo "configure:19309: checking for Berkeley DB link (-ldb42)" >&5
19309 if eval "test \"\${ol_cv_db_db42+set}\" = set"; then
19310 echo $ac_n "(cached) $ac_c" 1>&6
19315 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19317 cat > conftest.$ac_ext <<EOF
19318 #line 19319 "configure"
19319 #include "confdefs.h"
19321 #ifdef HAVE_DB_185_H
19322 # include <db_185.h>
19327 #ifndef DB_VERSION_MAJOR
19328 # define DB_VERSION_MAJOR 1
19332 #define NULL ((void*)0)
19337 #if DB_VERSION_MAJOR > 1
19340 int major, minor, patch;
19342 version = db_version( &major, &minor, &patch );
19344 if( major != DB_VERSION_MAJOR ||
19345 minor < DB_VERSION_MINOR )
19347 printf("Berkeley DB version mismatch\n"
19348 "\theader: %s\n\tlibrary: %s\n",
19349 DB_VERSION_STRING, version);
19355 #if DB_VERSION_MAJOR > 2
19356 db_env_create( NULL, 0 );
19357 #elif DB_VERSION_MAJOR > 1
19358 db_appexit( NULL );
19360 (void) dbopen( NULL, 0, 0, 0, NULL);
19365 if { (eval echo configure:19366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19369 echo "configure: failed program was:" >&5
19370 cat conftest.$ac_ext >&5
19380 echo "$ac_t""$ol_cv_db_db42" 1>&6
19382 if test $ol_cv_db_db42 = yes ; then
19383 ol_cv_lib_db=-ldb42
19387 if test $ol_cv_lib_db = no ; then
19388 echo $ac_n "checking for Berkeley DB link (-ldb-42)""... $ac_c" 1>&6
19389 echo "configure:19390: checking for Berkeley DB link (-ldb-42)" >&5
19390 if eval "test \"\${ol_cv_db_db_42+set}\" = set"; then
19391 echo $ac_n "(cached) $ac_c" 1>&6
19396 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19398 cat > conftest.$ac_ext <<EOF
19399 #line 19400 "configure"
19400 #include "confdefs.h"
19402 #ifdef HAVE_DB_185_H
19403 # include <db_185.h>
19408 #ifndef DB_VERSION_MAJOR
19409 # define DB_VERSION_MAJOR 1
19413 #define NULL ((void*)0)
19418 #if DB_VERSION_MAJOR > 1
19421 int major, minor, patch;
19423 version = db_version( &major, &minor, &patch );
19425 if( major != DB_VERSION_MAJOR ||
19426 minor < DB_VERSION_MINOR )
19428 printf("Berkeley DB version mismatch\n"
19429 "\theader: %s\n\tlibrary: %s\n",
19430 DB_VERSION_STRING, version);
19436 #if DB_VERSION_MAJOR > 2
19437 db_env_create( NULL, 0 );
19438 #elif DB_VERSION_MAJOR > 1
19439 db_appexit( NULL );
19441 (void) dbopen( NULL, 0, 0, 0, NULL);
19446 if { (eval echo configure:19447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19450 echo "configure: failed program was:" >&5
19451 cat conftest.$ac_ext >&5
19461 echo "$ac_t""$ol_cv_db_db_42" 1>&6
19463 if test $ol_cv_db_db_42 = yes ; then
19464 ol_cv_lib_db=-ldb-42
19468 if test $ol_cv_lib_db = no ; then
19469 echo $ac_n "checking for Berkeley DB link (-ldb-4.2)""... $ac_c" 1>&6
19470 echo "configure:19471: checking for Berkeley DB link (-ldb-4.2)" >&5
19471 if eval "test \"\${ol_cv_db_db_4_dot_2+set}\" = set"; then
19472 echo $ac_n "(cached) $ac_c" 1>&6
19477 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19479 cat > conftest.$ac_ext <<EOF
19480 #line 19481 "configure"
19481 #include "confdefs.h"
19483 #ifdef HAVE_DB_185_H
19484 # include <db_185.h>
19489 #ifndef DB_VERSION_MAJOR
19490 # define DB_VERSION_MAJOR 1
19494 #define NULL ((void*)0)
19499 #if DB_VERSION_MAJOR > 1
19502 int major, minor, patch;
19504 version = db_version( &major, &minor, &patch );
19506 if( major != DB_VERSION_MAJOR ||
19507 minor < DB_VERSION_MINOR )
19509 printf("Berkeley DB version mismatch\n"
19510 "\theader: %s\n\tlibrary: %s\n",
19511 DB_VERSION_STRING, version);
19517 #if DB_VERSION_MAJOR > 2
19518 db_env_create( NULL, 0 );
19519 #elif DB_VERSION_MAJOR > 1
19520 db_appexit( NULL );
19522 (void) dbopen( NULL, 0, 0, 0, NULL);
19527 if { (eval echo configure:19528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19529 ol_cv_db_db_4_dot_2=yes
19531 echo "configure: failed program was:" >&5
19532 cat conftest.$ac_ext >&5
19534 ol_cv_db_db_4_dot_2=no
19542 echo "$ac_t""$ol_cv_db_db_4_dot_2" 1>&6
19544 if test $ol_cv_db_db_4_dot_2 = yes ; then
19545 ol_cv_lib_db=-ldb-4.2
19549 if test $ol_cv_lib_db = no ; then
19550 echo $ac_n "checking for Berkeley DB link (-ldb-4-2)""... $ac_c" 1>&6
19551 echo "configure:19552: checking for Berkeley DB link (-ldb-4-2)" >&5
19552 if eval "test \"\${ol_cv_db_db_4_2+set}\" = set"; then
19553 echo $ac_n "(cached) $ac_c" 1>&6
19558 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19560 cat > conftest.$ac_ext <<EOF
19561 #line 19562 "configure"
19562 #include "confdefs.h"
19564 #ifdef HAVE_DB_185_H
19565 # include <db_185.h>
19570 #ifndef DB_VERSION_MAJOR
19571 # define DB_VERSION_MAJOR 1
19575 #define NULL ((void*)0)
19580 #if DB_VERSION_MAJOR > 1
19583 int major, minor, patch;
19585 version = db_version( &major, &minor, &patch );
19587 if( major != DB_VERSION_MAJOR ||
19588 minor < DB_VERSION_MINOR )
19590 printf("Berkeley DB version mismatch\n"
19591 "\theader: %s\n\tlibrary: %s\n",
19592 DB_VERSION_STRING, version);
19598 #if DB_VERSION_MAJOR > 2
19599 db_env_create( NULL, 0 );
19600 #elif DB_VERSION_MAJOR > 1
19601 db_appexit( NULL );
19603 (void) dbopen( NULL, 0, 0, 0, NULL);
19608 if { (eval echo configure:19609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19610 ol_cv_db_db_4_2=yes
19612 echo "configure: failed program was:" >&5
19613 cat conftest.$ac_ext >&5
19623 echo "$ac_t""$ol_cv_db_db_4_2" 1>&6
19625 if test $ol_cv_db_db_4_2 = yes ; then
19626 ol_cv_lib_db=-ldb-4-2
19630 if test $ol_cv_lib_db = no ; then
19631 echo $ac_n "checking for Berkeley DB link (-ldb-4)""... $ac_c" 1>&6
19632 echo "configure:19633: checking for Berkeley DB link (-ldb-4)" >&5
19633 if eval "test \"\${ol_cv_db_db_4+set}\" = set"; then
19634 echo $ac_n "(cached) $ac_c" 1>&6
19639 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19641 cat > conftest.$ac_ext <<EOF
19642 #line 19643 "configure"
19643 #include "confdefs.h"
19645 #ifdef HAVE_DB_185_H
19646 # include <db_185.h>
19651 #ifndef DB_VERSION_MAJOR
19652 # define DB_VERSION_MAJOR 1
19656 #define NULL ((void*)0)
19661 #if DB_VERSION_MAJOR > 1
19664 int major, minor, patch;
19666 version = db_version( &major, &minor, &patch );
19668 if( major != DB_VERSION_MAJOR ||
19669 minor < DB_VERSION_MINOR )
19671 printf("Berkeley DB version mismatch\n"
19672 "\theader: %s\n\tlibrary: %s\n",
19673 DB_VERSION_STRING, version);
19679 #if DB_VERSION_MAJOR > 2
19680 db_env_create( NULL, 0 );
19681 #elif DB_VERSION_MAJOR > 1
19682 db_appexit( NULL );
19684 (void) dbopen( NULL, 0, 0, 0, NULL);
19689 if { (eval echo configure:19690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19693 echo "configure: failed program was:" >&5
19694 cat conftest.$ac_ext >&5
19704 echo "$ac_t""$ol_cv_db_db_4" 1>&6
19706 if test $ol_cv_db_db_4 = yes ; then
19707 ol_cv_lib_db=-ldb-4
19711 if test $ol_cv_lib_db = no ; then
19712 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
19713 echo "configure:19714: checking for Berkeley DB link (-ldb4)" >&5
19714 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
19715 echo $ac_n "(cached) $ac_c" 1>&6
19720 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19722 cat > conftest.$ac_ext <<EOF
19723 #line 19724 "configure"
19724 #include "confdefs.h"
19726 #ifdef HAVE_DB_185_H
19727 # include <db_185.h>
19732 #ifndef DB_VERSION_MAJOR
19733 # define DB_VERSION_MAJOR 1
19737 #define NULL ((void*)0)
19742 #if DB_VERSION_MAJOR > 1
19745 int major, minor, patch;
19747 version = db_version( &major, &minor, &patch );
19749 if( major != DB_VERSION_MAJOR ||
19750 minor < DB_VERSION_MINOR )
19752 printf("Berkeley DB version mismatch\n"
19753 "\theader: %s\n\tlibrary: %s\n",
19754 DB_VERSION_STRING, version);
19760 #if DB_VERSION_MAJOR > 2
19761 db_env_create( NULL, 0 );
19762 #elif DB_VERSION_MAJOR > 1
19763 db_appexit( NULL );
19765 (void) dbopen( NULL, 0, 0, 0, NULL);
19770 if { (eval echo configure:19771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19774 echo "configure: failed program was:" >&5
19775 cat conftest.$ac_ext >&5
19785 echo "$ac_t""$ol_cv_db_db4" 1>&6
19787 if test $ol_cv_db_db4 = yes ; then
19792 if test $ol_cv_lib_db = no ; then
19793 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
19794 echo "configure:19795: checking for Berkeley DB link (-ldb)" >&5
19795 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
19796 echo $ac_n "(cached) $ac_c" 1>&6
19801 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19803 cat > conftest.$ac_ext <<EOF
19804 #line 19805 "configure"
19805 #include "confdefs.h"
19807 #ifdef HAVE_DB_185_H
19808 # include <db_185.h>
19813 #ifndef DB_VERSION_MAJOR
19814 # define DB_VERSION_MAJOR 1
19818 #define NULL ((void*)0)
19823 #if DB_VERSION_MAJOR > 1
19826 int major, minor, patch;
19828 version = db_version( &major, &minor, &patch );
19830 if( major != DB_VERSION_MAJOR ||
19831 minor < DB_VERSION_MINOR )
19833 printf("Berkeley DB version mismatch\n"
19834 "\theader: %s\n\tlibrary: %s\n",
19835 DB_VERSION_STRING, version);
19841 #if DB_VERSION_MAJOR > 2
19842 db_env_create( NULL, 0 );
19843 #elif DB_VERSION_MAJOR > 1
19844 db_appexit( NULL );
19846 (void) dbopen( NULL, 0, 0, 0, NULL);
19851 if { (eval echo configure:19852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19855 echo "configure: failed program was:" >&5
19856 cat conftest.$ac_ext >&5
19866 echo "$ac_t""$ol_cv_db_db" 1>&6
19868 if test $ol_cv_db_db = yes ; then
19873 if test $ol_cv_lib_db = no ; then
19874 echo $ac_n "checking for Berkeley DB link (-ldb41)""... $ac_c" 1>&6
19875 echo "configure:19876: checking for Berkeley DB link (-ldb41)" >&5
19876 if eval "test \"\${ol_cv_db_db41+set}\" = set"; then
19877 echo $ac_n "(cached) $ac_c" 1>&6
19882 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19884 cat > conftest.$ac_ext <<EOF
19885 #line 19886 "configure"
19886 #include "confdefs.h"
19888 #ifdef HAVE_DB_185_H
19889 # include <db_185.h>
19894 #ifndef DB_VERSION_MAJOR
19895 # define DB_VERSION_MAJOR 1
19899 #define NULL ((void*)0)
19904 #if DB_VERSION_MAJOR > 1
19907 int major, minor, patch;
19909 version = db_version( &major, &minor, &patch );
19911 if( major != DB_VERSION_MAJOR ||
19912 minor < DB_VERSION_MINOR )
19914 printf("Berkeley DB version mismatch\n"
19915 "\theader: %s\n\tlibrary: %s\n",
19916 DB_VERSION_STRING, version);
19922 #if DB_VERSION_MAJOR > 2
19923 db_env_create( NULL, 0 );
19924 #elif DB_VERSION_MAJOR > 1
19925 db_appexit( NULL );
19927 (void) dbopen( NULL, 0, 0, 0, NULL);
19932 if { (eval echo configure:19933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19936 echo "configure: failed program was:" >&5
19937 cat conftest.$ac_ext >&5
19947 echo "$ac_t""$ol_cv_db_db41" 1>&6
19949 if test $ol_cv_db_db41 = yes ; then
19950 ol_cv_lib_db=-ldb41
19954 if test $ol_cv_lib_db = no ; then
19955 echo $ac_n "checking for Berkeley DB link (-ldb-41)""... $ac_c" 1>&6
19956 echo "configure:19957: checking for Berkeley DB link (-ldb-41)" >&5
19957 if eval "test \"\${ol_cv_db_db_41+set}\" = set"; then
19958 echo $ac_n "(cached) $ac_c" 1>&6
19963 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19965 cat > conftest.$ac_ext <<EOF
19966 #line 19967 "configure"
19967 #include "confdefs.h"
19969 #ifdef HAVE_DB_185_H
19970 # include <db_185.h>
19975 #ifndef DB_VERSION_MAJOR
19976 # define DB_VERSION_MAJOR 1
19980 #define NULL ((void*)0)
19985 #if DB_VERSION_MAJOR > 1
19988 int major, minor, patch;
19990 version = db_version( &major, &minor, &patch );
19992 if( major != DB_VERSION_MAJOR ||
19993 minor < DB_VERSION_MINOR )
19995 printf("Berkeley DB version mismatch\n"
19996 "\theader: %s\n\tlibrary: %s\n",
19997 DB_VERSION_STRING, version);
20003 #if DB_VERSION_MAJOR > 2
20004 db_env_create( NULL, 0 );
20005 #elif DB_VERSION_MAJOR > 1
20006 db_appexit( NULL );
20008 (void) dbopen( NULL, 0, 0, 0, NULL);
20013 if { (eval echo configure:20014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20017 echo "configure: failed program was:" >&5
20018 cat conftest.$ac_ext >&5
20028 echo "$ac_t""$ol_cv_db_db_41" 1>&6
20030 if test $ol_cv_db_db_41 = yes ; then
20031 ol_cv_lib_db=-ldb-41
20035 if test $ol_cv_lib_db = no ; then
20036 echo $ac_n "checking for Berkeley DB link (-ldb-4.1)""... $ac_c" 1>&6
20037 echo "configure:20038: checking for Berkeley DB link (-ldb-4.1)" >&5
20038 if eval "test \"\${ol_cv_db_db_4_dot_1+set}\" = set"; then
20039 echo $ac_n "(cached) $ac_c" 1>&6
20044 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20046 cat > conftest.$ac_ext <<EOF
20047 #line 20048 "configure"
20048 #include "confdefs.h"
20050 #ifdef HAVE_DB_185_H
20051 # include <db_185.h>
20056 #ifndef DB_VERSION_MAJOR
20057 # define DB_VERSION_MAJOR 1
20061 #define NULL ((void*)0)
20066 #if DB_VERSION_MAJOR > 1
20069 int major, minor, patch;
20071 version = db_version( &major, &minor, &patch );
20073 if( major != DB_VERSION_MAJOR ||
20074 minor < DB_VERSION_MINOR )
20076 printf("Berkeley DB version mismatch\n"
20077 "\theader: %s\n\tlibrary: %s\n",
20078 DB_VERSION_STRING, version);
20084 #if DB_VERSION_MAJOR > 2
20085 db_env_create( NULL, 0 );
20086 #elif DB_VERSION_MAJOR > 1
20087 db_appexit( NULL );
20089 (void) dbopen( NULL, 0, 0, 0, NULL);
20094 if { (eval echo configure:20095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20096 ol_cv_db_db_4_dot_1=yes
20098 echo "configure: failed program was:" >&5
20099 cat conftest.$ac_ext >&5
20101 ol_cv_db_db_4_dot_1=no
20109 echo "$ac_t""$ol_cv_db_db_4_dot_1" 1>&6
20111 if test $ol_cv_db_db_4_dot_1 = yes ; then
20112 ol_cv_lib_db=-ldb-4.1
20116 if test $ol_cv_lib_db = no ; then
20117 echo $ac_n "checking for Berkeley DB link (-ldb-4-1)""... $ac_c" 1>&6
20118 echo "configure:20119: checking for Berkeley DB link (-ldb-4-1)" >&5
20119 if eval "test \"\${ol_cv_db_db_4_1+set}\" = set"; then
20120 echo $ac_n "(cached) $ac_c" 1>&6
20125 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20127 cat > conftest.$ac_ext <<EOF
20128 #line 20129 "configure"
20129 #include "confdefs.h"
20131 #ifdef HAVE_DB_185_H
20132 # include <db_185.h>
20137 #ifndef DB_VERSION_MAJOR
20138 # define DB_VERSION_MAJOR 1
20142 #define NULL ((void*)0)
20147 #if DB_VERSION_MAJOR > 1
20150 int major, minor, patch;
20152 version = db_version( &major, &minor, &patch );
20154 if( major != DB_VERSION_MAJOR ||
20155 minor < DB_VERSION_MINOR )
20157 printf("Berkeley DB version mismatch\n"
20158 "\theader: %s\n\tlibrary: %s\n",
20159 DB_VERSION_STRING, version);
20165 #if DB_VERSION_MAJOR > 2
20166 db_env_create( NULL, 0 );
20167 #elif DB_VERSION_MAJOR > 1
20168 db_appexit( NULL );
20170 (void) dbopen( NULL, 0, 0, 0, NULL);
20175 if { (eval echo configure:20176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20177 ol_cv_db_db_4_1=yes
20179 echo "configure: failed program was:" >&5
20180 cat conftest.$ac_ext >&5
20190 echo "$ac_t""$ol_cv_db_db_4_1" 1>&6
20192 if test $ol_cv_db_db_4_1 = yes ; then
20193 ol_cv_lib_db=-ldb-4-1
20197 if test $ol_cv_lib_db = no ; then
20198 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
20199 echo "configure:20200: checking for Berkeley DB link (-ldb3)" >&5
20200 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
20201 echo $ac_n "(cached) $ac_c" 1>&6
20206 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20208 cat > conftest.$ac_ext <<EOF
20209 #line 20210 "configure"
20210 #include "confdefs.h"
20212 #ifdef HAVE_DB_185_H
20213 # include <db_185.h>
20218 #ifndef DB_VERSION_MAJOR
20219 # define DB_VERSION_MAJOR 1
20223 #define NULL ((void*)0)
20228 #if DB_VERSION_MAJOR > 1
20231 int major, minor, patch;
20233 version = db_version( &major, &minor, &patch );
20235 if( major != DB_VERSION_MAJOR ||
20236 minor < DB_VERSION_MINOR )
20238 printf("Berkeley DB version mismatch\n"
20239 "\theader: %s\n\tlibrary: %s\n",
20240 DB_VERSION_STRING, version);
20246 #if DB_VERSION_MAJOR > 2
20247 db_env_create( NULL, 0 );
20248 #elif DB_VERSION_MAJOR > 1
20249 db_appexit( NULL );
20251 (void) dbopen( NULL, 0, 0, 0, NULL);
20256 if { (eval echo configure:20257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20260 echo "configure: failed program was:" >&5
20261 cat conftest.$ac_ext >&5
20271 echo "$ac_t""$ol_cv_db_db3" 1>&6
20273 if test $ol_cv_db_db3 = yes ; then
20278 if test $ol_cv_lib_db = no ; then
20279 echo $ac_n "checking for Berkeley DB link (-ldb-3)""... $ac_c" 1>&6
20280 echo "configure:20281: checking for Berkeley DB link (-ldb-3)" >&5
20281 if eval "test \"\${ol_cv_db_db_3+set}\" = set"; then
20282 echo $ac_n "(cached) $ac_c" 1>&6
20287 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20289 cat > conftest.$ac_ext <<EOF
20290 #line 20291 "configure"
20291 #include "confdefs.h"
20293 #ifdef HAVE_DB_185_H
20294 # include <db_185.h>
20299 #ifndef DB_VERSION_MAJOR
20300 # define DB_VERSION_MAJOR 1
20304 #define NULL ((void*)0)
20309 #if DB_VERSION_MAJOR > 1
20312 int major, minor, patch;
20314 version = db_version( &major, &minor, &patch );
20316 if( major != DB_VERSION_MAJOR ||
20317 minor < DB_VERSION_MINOR )
20319 printf("Berkeley DB version mismatch\n"
20320 "\theader: %s\n\tlibrary: %s\n",
20321 DB_VERSION_STRING, version);
20327 #if DB_VERSION_MAJOR > 2
20328 db_env_create( NULL, 0 );
20329 #elif DB_VERSION_MAJOR > 1
20330 db_appexit( NULL );
20332 (void) dbopen( NULL, 0, 0, 0, NULL);
20337 if { (eval echo configure:20338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20341 echo "configure: failed program was:" >&5
20342 cat conftest.$ac_ext >&5
20352 echo "$ac_t""$ol_cv_db_db_3" 1>&6
20354 if test $ol_cv_db_db_3 = yes ; then
20355 ol_cv_lib_db=-ldb-3
20359 if test $ol_cv_lib_db = no ; then
20360 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
20361 echo "configure:20362: checking for Berkeley DB link (-ldb2)" >&5
20362 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
20363 echo $ac_n "(cached) $ac_c" 1>&6
20368 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20370 cat > conftest.$ac_ext <<EOF
20371 #line 20372 "configure"
20372 #include "confdefs.h"
20374 #ifdef HAVE_DB_185_H
20375 # include <db_185.h>
20380 #ifndef DB_VERSION_MAJOR
20381 # define DB_VERSION_MAJOR 1
20385 #define NULL ((void*)0)
20390 #if DB_VERSION_MAJOR > 1
20393 int major, minor, patch;
20395 version = db_version( &major, &minor, &patch );
20397 if( major != DB_VERSION_MAJOR ||
20398 minor < DB_VERSION_MINOR )
20400 printf("Berkeley DB version mismatch\n"
20401 "\theader: %s\n\tlibrary: %s\n",
20402 DB_VERSION_STRING, version);
20408 #if DB_VERSION_MAJOR > 2
20409 db_env_create( NULL, 0 );
20410 #elif DB_VERSION_MAJOR > 1
20411 db_appexit( NULL );
20413 (void) dbopen( NULL, 0, 0, 0, NULL);
20418 if { (eval echo configure:20419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20422 echo "configure: failed program was:" >&5
20423 cat conftest.$ac_ext >&5
20433 echo "$ac_t""$ol_cv_db_db2" 1>&6
20435 if test $ol_cv_db_db2 = yes ; then
20440 if test $ol_cv_lib_db = no ; then
20441 echo $ac_n "checking for Berkeley DB link (-ldb-2)""... $ac_c" 1>&6
20442 echo "configure:20443: checking for Berkeley DB link (-ldb-2)" >&5
20443 if eval "test \"\${ol_cv_db_db_2+set}\" = set"; then
20444 echo $ac_n "(cached) $ac_c" 1>&6
20449 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20451 cat > conftest.$ac_ext <<EOF
20452 #line 20453 "configure"
20453 #include "confdefs.h"
20455 #ifdef HAVE_DB_185_H
20456 # include <db_185.h>
20461 #ifndef DB_VERSION_MAJOR
20462 # define DB_VERSION_MAJOR 1
20466 #define NULL ((void*)0)
20471 #if DB_VERSION_MAJOR > 1
20474 int major, minor, patch;
20476 version = db_version( &major, &minor, &patch );
20478 if( major != DB_VERSION_MAJOR ||
20479 minor < DB_VERSION_MINOR )
20481 printf("Berkeley DB version mismatch\n"
20482 "\theader: %s\n\tlibrary: %s\n",
20483 DB_VERSION_STRING, version);
20489 #if DB_VERSION_MAJOR > 2
20490 db_env_create( NULL, 0 );
20491 #elif DB_VERSION_MAJOR > 1
20492 db_appexit( NULL );
20494 (void) dbopen( NULL, 0, 0, 0, NULL);
20499 if { (eval echo configure:20500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20503 echo "configure: failed program was:" >&5
20504 cat conftest.$ac_ext >&5
20514 echo "$ac_t""$ol_cv_db_db_2" 1>&6
20516 if test $ol_cv_db_db_2 = yes ; then
20517 ol_cv_lib_db=-ldb-2
20521 if test $ol_cv_lib_db = no ; then
20522 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
20523 echo "configure:20524: checking for Berkeley DB link (-ldb1)" >&5
20524 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
20525 echo $ac_n "(cached) $ac_c" 1>&6
20530 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20532 cat > conftest.$ac_ext <<EOF
20533 #line 20534 "configure"
20534 #include "confdefs.h"
20536 #ifdef HAVE_DB_185_H
20537 # include <db_185.h>
20542 #ifndef DB_VERSION_MAJOR
20543 # define DB_VERSION_MAJOR 1
20547 #define NULL ((void*)0)
20552 #if DB_VERSION_MAJOR > 1
20555 int major, minor, patch;
20557 version = db_version( &major, &minor, &patch );
20559 if( major != DB_VERSION_MAJOR ||
20560 minor < DB_VERSION_MINOR )
20562 printf("Berkeley DB version mismatch\n"
20563 "\theader: %s\n\tlibrary: %s\n",
20564 DB_VERSION_STRING, version);
20570 #if DB_VERSION_MAJOR > 2
20571 db_env_create( NULL, 0 );
20572 #elif DB_VERSION_MAJOR > 1
20573 db_appexit( NULL );
20575 (void) dbopen( NULL, 0, 0, 0, NULL);
20580 if { (eval echo configure:20581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20584 echo "configure: failed program was:" >&5
20585 cat conftest.$ac_ext >&5
20595 echo "$ac_t""$ol_cv_db_db1" 1>&6
20597 if test $ol_cv_db_db1 = yes ; then
20602 if test $ol_cv_lib_db = no ; then
20603 echo $ac_n "checking for Berkeley DB link (-ldb-1)""... $ac_c" 1>&6
20604 echo "configure:20605: checking for Berkeley DB link (-ldb-1)" >&5
20605 if eval "test \"\${ol_cv_db_db_1+set}\" = set"; then
20606 echo $ac_n "(cached) $ac_c" 1>&6
20611 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20613 cat > conftest.$ac_ext <<EOF
20614 #line 20615 "configure"
20615 #include "confdefs.h"
20617 #ifdef HAVE_DB_185_H
20618 # include <db_185.h>
20623 #ifndef DB_VERSION_MAJOR
20624 # define DB_VERSION_MAJOR 1
20628 #define NULL ((void*)0)
20633 #if DB_VERSION_MAJOR > 1
20636 int major, minor, patch;
20638 version = db_version( &major, &minor, &patch );
20640 if( major != DB_VERSION_MAJOR ||
20641 minor < DB_VERSION_MINOR )
20643 printf("Berkeley DB version mismatch\n"
20644 "\theader: %s\n\tlibrary: %s\n",
20645 DB_VERSION_STRING, version);
20651 #if DB_VERSION_MAJOR > 2
20652 db_env_create( NULL, 0 );
20653 #elif DB_VERSION_MAJOR > 1
20654 db_appexit( NULL );
20656 (void) dbopen( NULL, 0, 0, 0, NULL);
20661 if { (eval echo configure:20662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20665 echo "configure: failed program was:" >&5
20666 cat conftest.$ac_ext >&5
20676 echo "$ac_t""$ol_cv_db_db_1" 1>&6
20678 if test $ol_cv_db_db_1 = yes ; then
20679 ol_cv_lib_db=-ldb-1
20684 if test "$ol_cv_lib_db" != no ; then
20685 ol_cv_berkeley_db=yes
20686 echo $ac_n "checking for Berkeley DB version match""... $ac_c" 1>&6
20687 echo "configure:20688: checking for Berkeley DB version match" >&5
20688 if eval "test \"\${ol_cv_berkeley_db_version+set}\" = set"; then
20689 echo $ac_n "(cached) $ac_c" 1>&6
20693 LIBS="$LTHREAD_LIBS $LIBS"
20694 if test $ol_cv_lib_db != yes ; then
20695 LIBS="$ol_cv_lib_db $LIBS"
20698 if test "$cross_compiling" = yes; then
20699 ol_cv_berkeley_db_version=cross
20701 cat > conftest.$ac_ext <<EOF
20702 #line 20703 "configure"
20703 #include "confdefs.h"
20705 #ifdef HAVE_DB_185_H
20710 #ifndef DB_VERSION_MAJOR
20711 # define DB_VERSION_MAJOR 1
20714 #define NULL ((void *)0)
20718 #if DB_VERSION_MAJOR > 1
20720 int major, minor, patch;
20722 version = db_version( &major, &minor, &patch );
20724 if( major != DB_VERSION_MAJOR || minor < DB_VERSION_MINOR ) {
20725 printf("Berkeley DB version mismatch\n"
20726 "\theader: %s\n\tlibrary: %s\n",
20727 DB_VERSION_STRING, version);
20735 if { (eval echo configure:20736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
20737 ol_cv_berkeley_db_version=yes
20739 echo "configure: failed program was:" >&5
20740 cat conftest.$ac_ext >&5
20742 ol_cv_berkeley_db_version=no
20752 echo "$ac_t""$ol_cv_berkeley_db_version" 1>&6
20754 if test $ol_cv_berkeley_db_version = no ; then
20755 { echo "configure: error: Berkeley DB version mismatch" 1>&2; exit 1; }
20758 echo $ac_n "checking for Berkeley DB thread support""... $ac_c" 1>&6
20759 echo "configure:20760: checking for Berkeley DB thread support" >&5
20760 if eval "test \"\${ol_cv_berkeley_db_thread+set}\" = set"; then
20761 echo $ac_n "(cached) $ac_c" 1>&6
20765 LIBS="$LTHREAD_LIBS $LIBS"
20766 if test $ol_cv_lib_db != yes ; then
20767 LIBS="$ol_cv_lib_db $LIBS"
20770 if test "$cross_compiling" = yes; then
20771 ol_cv_berkeley_db_thread=cross
20773 cat > conftest.$ac_ext <<EOF
20774 #line 20775 "configure"
20775 #include "confdefs.h"
20777 #ifdef HAVE_DB_185_H
20783 #define NULL ((void *)0)
20788 u_int32_t flags = DB_CREATE |
20794 #if DB_VERSION_MAJOR > 2
20795 DB_ENV *env = NULL;
20797 rc = db_env_create( &env, 0 );
20799 flags |= DB_INIT_MPOOL;
20800 #ifdef DB_MPOOL_PRIVATE
20801 flags |= DB_MPOOL_PRIVATE;
20805 printf("BerkeleyDB: %s\n", db_strerror(rc) );
20809 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
20810 rc = env->open( env, NULL, flags, 0 );
20812 rc = env->open( env, NULL, NULL, flags, 0 );
20816 rc = env->close( env, 0 );
20820 printf("BerkeleyDB: %s\n", db_strerror(rc) );
20826 memset( &env, '\0', sizeof(env) );
20828 rc = db_appinit( NULL, NULL, &env, flags );
20831 db_appexit( &env );
20834 unlink("__db_mpool.share");
20835 unlink("__db_lock.share");
20841 if { (eval echo configure:20842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
20843 ol_cv_berkeley_db_thread=yes
20845 echo "configure: failed program was:" >&5
20846 cat conftest.$ac_ext >&5
20848 ol_cv_berkeley_db_thread=no
20858 echo "$ac_t""$ol_cv_berkeley_db_thread" 1>&6
20860 if test $ol_cv_berkeley_db_thread != no ; then
20861 cat >> confdefs.h <<\EOF
20862 #define HAVE_BERKELEY_DB_THREAD 1
20872 if test $ol_cv_berkeley_db != no ; then
20873 cat >> confdefs.h <<\EOF
20874 #define HAVE_BERKELEY_DB 1
20878 ol_link_ldbm=berkeley
20879 ol_with_ldbm_api=berkeley
20881 if test $ol_with_ldbm_type = hash ; then
20882 cat >> confdefs.h <<\EOF
20883 #define LDBM_USE_DBHASH 1
20887 cat >> confdefs.h <<\EOF
20888 #define LDBM_USE_DBBTREE 1
20893 if test $ol_cv_lib_db != yes ; then
20894 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
20899 if test $ol_enable_bdb != no -o $ol_enable_hdb != no; then
20900 if test $ol_link_ldbm != berkeley ; then
20901 { echo "configure: error: BDB/HDB: BerkeleyDB not available" 1>&2; exit 1; }
20903 echo $ac_n "checking Berkeley DB version for BDB backend""... $ac_c" 1>&6
20904 echo "configure:20905: checking Berkeley DB version for BDB backend" >&5
20905 if eval "test \"\${ol_cv_bdb_compat+set}\" = set"; then
20906 echo $ac_n "(cached) $ac_c" 1>&6
20909 cat > conftest.$ac_ext <<EOF
20910 #line 20911 "configure"
20911 #include "confdefs.h"
20915 /* this check could be improved */
20916 #ifndef DB_VERSION_MAJOR
20917 # define DB_VERSION_MAJOR 1
20919 #ifndef DB_VERSION_MINOR
20920 # define DB_VERSION_MINOR 0
20923 /* require 4.2 or later */
20924 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2)
20925 __db_version_compat
20929 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20930 egrep "__db_version_compat" >/dev/null 2>&1; then
20932 ol_cv_bdb_compat=yes
20935 ol_cv_bdb_compat=no
20941 echo "$ac_t""$ol_cv_bdb_compat" 1>&6
20944 if test $ol_cv_bdb_compat != yes ; then
20945 { echo "configure: error: BDB/HDB: BerkeleyDB version incompatible" 1>&2; exit 1; }
20950 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
20951 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
20952 ol_with_ldbm_api=none
20955 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
20956 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
20957 echo "configure:20958: checking for MDBM library" >&5
20958 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
20959 echo $ac_n "(cached) $ac_c" 1>&6
20962 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
20963 echo "configure:20964: checking for mdbm_set_chain" >&5
20964 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
20965 echo $ac_n "(cached) $ac_c" 1>&6
20967 cat > conftest.$ac_ext <<EOF
20968 #line 20969 "configure"
20969 #include "confdefs.h"
20970 /* System header to define __stub macros and hopefully few prototypes,
20971 which can conflict with char mdbm_set_chain(); below. */
20972 #include <assert.h>
20973 /* Override any gcc2 internal prototype to avoid an error. */
20974 /* We use char because int might match the return type of a gcc2
20975 builtin and then its argument prototype would still apply. */
20976 char mdbm_set_chain();
20981 /* The GNU C library defines this for functions which it implements
20982 to always fail with ENOSYS. Some functions are actually named
20983 something starting with __ and the normal name is an alias. */
20984 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
20987 f = mdbm_set_chain;
20992 if { (eval echo configure:20993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20994 eval "ac_cv_func_mdbm_set_chain=yes"
20996 echo "configure: failed program was:" >&5
20997 cat conftest.$ac_ext >&5
20999 eval "ac_cv_func_mdbm_set_chain=no"
21004 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
21005 echo "$ac_t""yes" 1>&6
21008 echo "$ac_t""no" 1>&6
21010 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
21011 echo "configure:21012: checking for mdbm_set_chain in -lmdbm" >&5
21012 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
21013 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21014 echo $ac_n "(cached) $ac_c" 1>&6
21016 ac_save_LIBS="$LIBS"
21017 LIBS="-lmdbm $LIBS"
21018 cat > conftest.$ac_ext <<EOF
21019 #line 21020 "configure"
21020 #include "confdefs.h"
21021 /* Override any gcc2 internal prototype to avoid an error. */
21022 /* We use char because int might match the return type of a gcc2
21023 builtin and then its argument prototype would still apply. */
21024 char mdbm_set_chain();
21030 if { (eval echo configure:21031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21032 eval "ac_cv_lib_$ac_lib_var=yes"
21034 echo "configure: failed program was:" >&5
21035 cat conftest.$ac_ext >&5
21037 eval "ac_cv_lib_$ac_lib_var=no"
21040 LIBS="$ac_save_LIBS"
21043 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21044 echo "$ac_t""yes" 1>&6
21045 ol_cv_lib_mdbm=-lmdbm
21047 echo "$ac_t""no" 1>&6
21058 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
21061 for ac_hdr in mdbm.h
21063 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21064 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21065 echo "configure:21066: checking for $ac_hdr" >&5
21066 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
21067 echo $ac_n "(cached) $ac_c" 1>&6
21069 cat > conftest.$ac_ext <<EOF
21070 #line 21071 "configure"
21071 #include "confdefs.h"
21074 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21075 { (eval echo configure:21076: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21076 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21077 if test -z "$ac_err"; then
21079 eval "ac_cv_header_$ac_safe=yes"
21082 echo "configure: failed program was:" >&5
21083 cat conftest.$ac_ext >&5
21085 eval "ac_cv_header_$ac_safe=no"
21089 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21090 echo "$ac_t""yes" 1>&6
21091 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21092 cat >> confdefs.h <<EOF
21093 #define $ac_tr_hdr 1
21097 echo "$ac_t""no" 1>&6
21101 echo $ac_n "checking for db""... $ac_c" 1>&6
21102 echo "configure:21103: checking for db" >&5
21103 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
21104 echo $ac_n "(cached) $ac_c" 1>&6
21107 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
21115 echo "$ac_t""$ol_cv_mdbm" 1>&6
21116 if test $ol_cv_mdbm = yes ; then
21117 cat >> confdefs.h <<\EOF
21118 #define HAVE_MDBM 1
21124 if test $ol_cv_mdbm = yes ; then
21126 ol_with_ldbm_api=mdbm
21127 if test $ol_cv_lib_mdbm != yes ; then
21128 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
21133 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
21134 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
21135 echo "configure:21136: checking for GDBM library" >&5
21136 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
21137 echo $ac_n "(cached) $ac_c" 1>&6
21140 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
21141 echo "configure:21142: checking for gdbm_open" >&5
21142 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
21143 echo $ac_n "(cached) $ac_c" 1>&6
21145 cat > conftest.$ac_ext <<EOF
21146 #line 21147 "configure"
21147 #include "confdefs.h"
21148 /* System header to define __stub macros and hopefully few prototypes,
21149 which can conflict with char gdbm_open(); below. */
21150 #include <assert.h>
21151 /* Override any gcc2 internal prototype to avoid an error. */
21152 /* We use char because int might match the return type of a gcc2
21153 builtin and then its argument prototype would still apply. */
21159 /* The GNU C library defines this for functions which it implements
21160 to always fail with ENOSYS. Some functions are actually named
21161 something starting with __ and the normal name is an alias. */
21162 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
21170 if { (eval echo configure:21171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21172 eval "ac_cv_func_gdbm_open=yes"
21174 echo "configure: failed program was:" >&5
21175 cat conftest.$ac_ext >&5
21177 eval "ac_cv_func_gdbm_open=no"
21182 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
21183 echo "$ac_t""yes" 1>&6
21186 echo "$ac_t""no" 1>&6
21188 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
21189 echo "configure:21190: checking for gdbm_open in -lgdbm" >&5
21190 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
21191 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21192 echo $ac_n "(cached) $ac_c" 1>&6
21194 ac_save_LIBS="$LIBS"
21195 LIBS="-lgdbm $LIBS"
21196 cat > conftest.$ac_ext <<EOF
21197 #line 21198 "configure"
21198 #include "confdefs.h"
21199 /* Override any gcc2 internal prototype to avoid an error. */
21200 /* We use char because int might match the return type of a gcc2
21201 builtin and then its argument prototype would still apply. */
21208 if { (eval echo configure:21209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21210 eval "ac_cv_lib_$ac_lib_var=yes"
21212 echo "configure: failed program was:" >&5
21213 cat conftest.$ac_ext >&5
21215 eval "ac_cv_lib_$ac_lib_var=no"
21218 LIBS="$ac_save_LIBS"
21221 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21222 echo "$ac_t""yes" 1>&6
21223 ol_cv_lib_gdbm=-lgdbm
21225 echo "$ac_t""no" 1>&6
21236 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
21239 for ac_hdr in gdbm.h
21241 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21242 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21243 echo "configure:21244: checking for $ac_hdr" >&5
21244 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
21245 echo $ac_n "(cached) $ac_c" 1>&6
21247 cat > conftest.$ac_ext <<EOF
21248 #line 21249 "configure"
21249 #include "confdefs.h"
21252 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21253 { (eval echo configure:21254: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21254 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21255 if test -z "$ac_err"; then
21257 eval "ac_cv_header_$ac_safe=yes"
21260 echo "configure: failed program was:" >&5
21261 cat conftest.$ac_ext >&5
21263 eval "ac_cv_header_$ac_safe=no"
21267 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21268 echo "$ac_t""yes" 1>&6
21269 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21270 cat >> confdefs.h <<EOF
21271 #define $ac_tr_hdr 1
21275 echo "$ac_t""no" 1>&6
21279 echo $ac_n "checking for db""... $ac_c" 1>&6
21280 echo "configure:21281: checking for db" >&5
21281 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
21282 echo $ac_n "(cached) $ac_c" 1>&6
21285 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
21293 echo "$ac_t""$ol_cv_gdbm" 1>&6
21294 if test $ol_cv_gdbm = yes ; then
21295 cat >> confdefs.h <<\EOF
21296 #define HAVE_GDBM 1
21302 if test $ol_cv_gdbm = yes ; then
21304 ol_with_ldbm_api=gdbm
21306 if test $ol_cv_lib_gdbm != yes ; then
21307 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
21312 if test $ol_with_ldbm_api = ndbm ; then
21313 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
21314 echo "configure:21315: checking for NDBM library" >&5
21315 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
21316 echo $ac_n "(cached) $ac_c" 1>&6
21319 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
21320 echo "configure:21321: checking for dbm_open" >&5
21321 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
21322 echo $ac_n "(cached) $ac_c" 1>&6
21324 cat > conftest.$ac_ext <<EOF
21325 #line 21326 "configure"
21326 #include "confdefs.h"
21327 /* System header to define __stub macros and hopefully few prototypes,
21328 which can conflict with char dbm_open(); below. */
21329 #include <assert.h>
21330 /* Override any gcc2 internal prototype to avoid an error. */
21331 /* We use char because int might match the return type of a gcc2
21332 builtin and then its argument prototype would still apply. */
21338 /* The GNU C library defines this for functions which it implements
21339 to always fail with ENOSYS. Some functions are actually named
21340 something starting with __ and the normal name is an alias. */
21341 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
21349 if { (eval echo configure:21350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21351 eval "ac_cv_func_dbm_open=yes"
21353 echo "configure: failed program was:" >&5
21354 cat conftest.$ac_ext >&5
21356 eval "ac_cv_func_dbm_open=no"
21361 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
21362 echo "$ac_t""yes" 1>&6
21365 echo "$ac_t""no" 1>&6
21367 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
21368 echo "configure:21369: checking for dbm_open in -lndbm" >&5
21369 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
21370 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21371 echo $ac_n "(cached) $ac_c" 1>&6
21373 ac_save_LIBS="$LIBS"
21374 LIBS="-lndbm $LIBS"
21375 cat > conftest.$ac_ext <<EOF
21376 #line 21377 "configure"
21377 #include "confdefs.h"
21378 /* Override any gcc2 internal prototype to avoid an error. */
21379 /* We use char because int might match the return type of a gcc2
21380 builtin and then its argument prototype would still apply. */
21387 if { (eval echo configure:21388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21389 eval "ac_cv_lib_$ac_lib_var=yes"
21391 echo "configure: failed program was:" >&5
21392 cat conftest.$ac_ext >&5
21394 eval "ac_cv_lib_$ac_lib_var=no"
21397 LIBS="$ac_save_LIBS"
21400 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21401 echo "$ac_t""yes" 1>&6
21402 ol_cv_lib_ndbm=-lndbm
21404 echo "$ac_t""no" 1>&6
21406 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
21407 echo "configure:21408: checking for dbm_open in -ldbm" >&5
21408 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
21409 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21410 echo $ac_n "(cached) $ac_c" 1>&6
21412 ac_save_LIBS="$LIBS"
21414 cat > conftest.$ac_ext <<EOF
21415 #line 21416 "configure"
21416 #include "confdefs.h"
21417 /* Override any gcc2 internal prototype to avoid an error. */
21418 /* We use char because int might match the return type of a gcc2
21419 builtin and then its argument prototype would still apply. */
21426 if { (eval echo configure:21427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21428 eval "ac_cv_lib_$ac_lib_var=yes"
21430 echo "configure: failed program was:" >&5
21431 cat conftest.$ac_ext >&5
21433 eval "ac_cv_lib_$ac_lib_var=no"
21436 LIBS="$ac_save_LIBS"
21439 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21440 echo "$ac_t""yes" 1>&6
21441 ol_cv_lib_ndbm=-ldbm
21443 echo "$ac_t""no" 1>&6
21456 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
21459 for ac_hdr in ndbm.h
21461 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21462 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21463 echo "configure:21464: checking for $ac_hdr" >&5
21464 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
21465 echo $ac_n "(cached) $ac_c" 1>&6
21467 cat > conftest.$ac_ext <<EOF
21468 #line 21469 "configure"
21469 #include "confdefs.h"
21472 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21473 { (eval echo configure:21474: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21474 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21475 if test -z "$ac_err"; then
21477 eval "ac_cv_header_$ac_safe=yes"
21480 echo "configure: failed program was:" >&5
21481 cat conftest.$ac_ext >&5
21483 eval "ac_cv_header_$ac_safe=no"
21487 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21488 echo "$ac_t""yes" 1>&6
21489 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21490 cat >> confdefs.h <<EOF
21491 #define $ac_tr_hdr 1
21495 echo "$ac_t""no" 1>&6
21499 echo $ac_n "checking for db""... $ac_c" 1>&6
21500 echo "configure:21501: checking for db" >&5
21501 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
21502 echo $ac_n "(cached) $ac_c" 1>&6
21505 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
21513 echo "$ac_t""$ol_cv_ndbm" 1>&6
21514 if test $ol_cv_ndbm = yes ; then
21515 cat >> confdefs.h <<\EOF
21516 #define HAVE_NDBM 1
21522 if test $ol_cv_ndbm = yes ; then
21524 ol_with_ldbm_api=ndbm
21526 if test $ol_cv_lib_ndbm != yes ; then
21527 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
21532 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
21533 { echo "configure: error: could not find suitable LDBM backend" 1>&2; exit 1; }
21536 if test $ol_enable_bdb = yes -o \
21537 $ol_enable_hdb = yes -o \
21538 $ol_enable_ldbm = yes ; then
21539 SLAPD_LIBS="$SLAPD_LIBS \$(LDBM_LIBS)"
21543 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
21544 BUILD_LIBS_DYNAMIC=shared
21545 cat >> confdefs.h <<\EOF
21546 #define LDAP_LIBS_DYNAMIC 1
21551 BUILD_LIBS_DYNAMIC=static
21555 if test $ol_enable_wrappers != no ; then
21556 for ac_hdr in tcpd.h
21558 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21559 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21560 echo "configure:21561: checking for $ac_hdr" >&5
21561 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
21562 echo $ac_n "(cached) $ac_c" 1>&6
21564 cat > conftest.$ac_ext <<EOF
21565 #line 21566 "configure"
21566 #include "confdefs.h"
21569 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21570 { (eval echo configure:21571: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21571 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21572 if test -z "$ac_err"; then
21574 eval "ac_cv_header_$ac_safe=yes"
21577 echo "configure: failed program was:" >&5
21578 cat conftest.$ac_ext >&5
21580 eval "ac_cv_header_$ac_safe=no"
21584 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21585 echo "$ac_t""yes" 1>&6
21586 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21587 cat >> confdefs.h <<EOF
21588 #define $ac_tr_hdr 1
21591 echo $ac_n "checking for TCP wrappers library""... $ac_c" 1>&6
21592 echo "configure:21593: checking for TCP wrappers library" >&5
21594 LIBS="$LIBS -lwrap"
21595 cat > conftest.$ac_ext <<EOF
21596 #line 21597 "configure"
21597 #include "confdefs.h"
21600 int allow_severity = 0;
21601 int deny_severity = 0;
21603 struct request_info *req;
21611 if { (eval echo configure:21612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21613 echo "$ac_t""-lwrap" 1>&6
21617 echo "configure: failed program was:" >&5
21618 cat conftest.$ac_ext >&5
21622 cat > conftest.$ac_ext <<EOF
21623 #line 21624 "configure"
21624 #include "confdefs.h"
21627 int allow_severity = 0;
21628 int deny_severity = 0;
21630 struct request_info *req;
21638 if { (eval echo configure:21639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21640 echo "$ac_t""-lwrap -lnsl" 1>&6
21642 LIBS="$save_LIBS -lnsl"
21644 echo "configure: failed program was:" >&5
21645 cat conftest.$ac_ext >&5
21648 echo "$ac_t""no" 1>&6
21656 echo "$ac_t""no" 1>&6
21662 if test $have_wrappers = yes ; then
21663 cat >> confdefs.h <<\EOF
21664 #define HAVE_TCPD 1
21668 elif test $ol_enable_wrappers = yes ; then
21669 { echo "configure: error: could not find TCP wrappers, select apppropriate options or disable" 1>&2; exit 1; }
21671 echo "configure: warning: could not find TCP wrappers, support disabled" 1>&2
21676 if test $ol_enable_syslog != no ; then
21677 echo $ac_n "checking for openlog""... $ac_c" 1>&6
21678 echo "configure:21679: checking for openlog" >&5
21679 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
21680 echo $ac_n "(cached) $ac_c" 1>&6
21682 cat > conftest.$ac_ext <<EOF
21683 #line 21684 "configure"
21684 #include "confdefs.h"
21685 /* System header to define __stub macros and hopefully few prototypes,
21686 which can conflict with char openlog(); below. */
21687 #include <assert.h>
21688 /* Override any gcc2 internal prototype to avoid an error. */
21689 /* We use char because int might match the return type of a gcc2
21690 builtin and then its argument prototype would still apply. */
21696 /* The GNU C library defines this for functions which it implements
21697 to always fail with ENOSYS. Some functions are actually named
21698 something starting with __ and the normal name is an alias. */
21699 #if defined (__stub_openlog) || defined (__stub___openlog)
21707 if { (eval echo configure:21708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21709 eval "ac_cv_func_openlog=yes"
21711 echo "configure: failed program was:" >&5
21712 cat conftest.$ac_ext >&5
21714 eval "ac_cv_func_openlog=no"
21719 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
21720 echo "$ac_t""yes" 1>&6
21723 echo "$ac_t""no" 1>&6
21726 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
21727 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
21729 ol_enable_syslog=$ac_cv_func_openlog
21734 if test $ol_enable_sql != no ; then
21735 for ac_hdr in sql.h sqlext.h
21737 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21738 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21739 echo "configure:21740: checking for $ac_hdr" >&5
21740 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
21741 echo $ac_n "(cached) $ac_c" 1>&6
21743 cat > conftest.$ac_ext <<EOF
21744 #line 21745 "configure"
21745 #include "confdefs.h"
21748 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21749 { (eval echo configure:21750: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21750 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21751 if test -z "$ac_err"; then
21753 eval "ac_cv_header_$ac_safe=yes"
21756 echo "configure: failed program was:" >&5
21757 cat conftest.$ac_ext >&5
21759 eval "ac_cv_header_$ac_safe=no"
21763 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21764 echo "$ac_t""yes" 1>&6
21765 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21766 cat >> confdefs.h <<EOF
21767 #define $ac_tr_hdr 1
21771 echo "$ac_t""no" 1>&6
21772 { echo "configure: error: could not locate SQL headers" 1>&2; exit 1; }
21778 echo $ac_n "checking for SQLDriverConnect in -liodbc""... $ac_c" 1>&6
21779 echo "configure:21780: checking for SQLDriverConnect in -liodbc" >&5
21780 ac_lib_var=`echo iodbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
21781 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21782 echo $ac_n "(cached) $ac_c" 1>&6
21784 ac_save_LIBS="$LIBS"
21785 LIBS="-liodbc $LIBS"
21786 cat > conftest.$ac_ext <<EOF
21787 #line 21788 "configure"
21788 #include "confdefs.h"
21789 /* Override any gcc2 internal prototype to avoid an error. */
21790 /* We use char because int might match the return type of a gcc2
21791 builtin and then its argument prototype would still apply. */
21792 char SQLDriverConnect();
21798 if { (eval echo configure:21799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21800 eval "ac_cv_lib_$ac_lib_var=yes"
21802 echo "configure: failed program was:" >&5
21803 cat conftest.$ac_ext >&5
21805 eval "ac_cv_lib_$ac_lib_var=no"
21808 LIBS="$ac_save_LIBS"
21811 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21812 echo "$ac_t""yes" 1>&6
21815 echo "$ac_t""no" 1>&6
21819 if test $have_iodbc = yes ; then
21820 ol_link_sql="-liodbc"
21822 echo $ac_n "checking for SQLDriverConnect in -lodbc""... $ac_c" 1>&6
21823 echo "configure:21824: checking for SQLDriverConnect in -lodbc" >&5
21824 ac_lib_var=`echo odbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
21825 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21826 echo $ac_n "(cached) $ac_c" 1>&6
21828 ac_save_LIBS="$LIBS"
21829 LIBS="-lodbc $LIBS"
21830 cat > conftest.$ac_ext <<EOF
21831 #line 21832 "configure"
21832 #include "confdefs.h"
21833 /* Override any gcc2 internal prototype to avoid an error. */
21834 /* We use char because int might match the return type of a gcc2
21835 builtin and then its argument prototype would still apply. */
21836 char SQLDriverConnect();
21842 if { (eval echo configure:21843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21844 eval "ac_cv_lib_$ac_lib_var=yes"
21846 echo "configure: failed program was:" >&5
21847 cat conftest.$ac_ext >&5
21849 eval "ac_cv_lib_$ac_lib_var=no"
21852 LIBS="$ac_save_LIBS"
21855 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21856 echo "$ac_t""yes" 1>&6
21859 echo "$ac_t""no" 1>&6
21863 if test $have_odbc = yes ; then
21864 ol_link_sql="-lodbc"
21868 if test $ol_link_sql != no ; then
21869 SLAPD_SQL_LIBS="$ol_link_sql"
21871 elif test $ol_enable_sql != auto ; then
21872 { echo "configure: error: could not locate suitable ODBC library" 1>&2; exit 1; }
21879 if test $ol_with_cyrus_sasl != no ; then
21880 for ac_hdr in sasl/sasl.h sasl.h
21882 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21883 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21884 echo "configure:21885: checking for $ac_hdr" >&5
21885 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
21886 echo $ac_n "(cached) $ac_c" 1>&6
21888 cat > conftest.$ac_ext <<EOF
21889 #line 21890 "configure"
21890 #include "confdefs.h"
21893 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21894 { (eval echo configure:21895: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21895 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21896 if test -z "$ac_err"; then
21898 eval "ac_cv_header_$ac_safe=yes"
21901 echo "configure: failed program was:" >&5
21902 cat conftest.$ac_ext >&5
21904 eval "ac_cv_header_$ac_safe=no"
21908 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21909 echo "$ac_t""yes" 1>&6
21910 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21911 cat >> confdefs.h <<EOF
21912 #define $ac_tr_hdr 1
21916 echo "$ac_t""no" 1>&6
21921 if test $ac_cv_header_sasl_sasl_h = yes -o $ac_cv_header_sasl_h = yes; then
21922 echo $ac_n "checking for sasl_client_init in -lsasl2""... $ac_c" 1>&6
21923 echo "configure:21924: checking for sasl_client_init in -lsasl2" >&5
21924 ac_lib_var=`echo sasl2'_'sasl_client_init | sed 'y%./+-:%__p__%'`
21925 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21926 echo $ac_n "(cached) $ac_c" 1>&6
21928 ac_save_LIBS="$LIBS"
21929 LIBS="-lsasl2 $LIBS"
21930 cat > conftest.$ac_ext <<EOF
21931 #line 21932 "configure"
21932 #include "confdefs.h"
21933 /* Override any gcc2 internal prototype to avoid an error. */
21934 /* We use char because int might match the return type of a gcc2
21935 builtin and then its argument prototype would still apply. */
21936 char sasl_client_init();
21942 if { (eval echo configure:21943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21944 eval "ac_cv_lib_$ac_lib_var=yes"
21946 echo "configure: failed program was:" >&5
21947 cat conftest.$ac_ext >&5
21949 eval "ac_cv_lib_$ac_lib_var=no"
21952 LIBS="$ac_save_LIBS"
21955 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21956 echo "$ac_t""yes" 1>&6
21957 ol_link_sasl="-lsasl2"
21959 echo "$ac_t""no" 1>&6
21960 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
21961 echo "configure:21962: checking for sasl_client_init in -lsasl" >&5
21962 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
21963 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21964 echo $ac_n "(cached) $ac_c" 1>&6
21966 ac_save_LIBS="$LIBS"
21967 LIBS="-lsasl $LIBS"
21968 cat > conftest.$ac_ext <<EOF
21969 #line 21970 "configure"
21970 #include "confdefs.h"
21971 /* Override any gcc2 internal prototype to avoid an error. */
21972 /* We use char because int might match the return type of a gcc2
21973 builtin and then its argument prototype would still apply. */
21974 char sasl_client_init();
21980 if { (eval echo configure:21981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21982 eval "ac_cv_lib_$ac_lib_var=yes"
21984 echo "configure: failed program was:" >&5
21985 cat conftest.$ac_ext >&5
21987 eval "ac_cv_lib_$ac_lib_var=no"
21990 LIBS="$ac_save_LIBS"
21993 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21994 echo "$ac_t""yes" 1>&6
21995 ol_link_sasl="-lsasl"
21997 echo "$ac_t""no" 1>&6
22004 if test $ol_link_sasl = no ; then
22005 if test $ol_with_cyrus_sasl != auto ; then
22006 { echo "configure: error: Could not locate Cyrus SASL" 1>&2; exit 1; }
22008 echo "configure: warning: Could not locate Cyrus SASL" 1>&2
22009 echo "configure: warning: SASL authentication not supported!" 1>&2
22010 if test $ol_link_tls = no ; then
22011 echo "configure: warning: Strong authentication not supported!" 1>&2
22015 echo $ac_n "checking Cyrus SASL library version""... $ac_c" 1>&6
22016 echo "configure:22017: checking Cyrus SASL library version" >&5
22017 if eval "test \"\${ol_cv_sasl_compat+set}\" = set"; then
22018 echo $ac_n "(cached) $ac_c" 1>&6
22021 cat > conftest.$ac_ext <<EOF
22022 #line 22023 "configure"
22023 #include "confdefs.h"
22025 #ifdef HAVE_SASL_SASL_H
22026 #include <sasl/sasl.h>
22031 /* Require 2.1.15+ */
22032 #if SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
22033 char *__sasl_compat = "2.2+ or better okay (we guess)";
22034 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
22035 && SASL_VERSION_STEP >=15
22036 char *__sasl_compat = "2.1.15+ or better okay";
22040 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22041 egrep "__sasl_compat" >/dev/null 2>&1; then
22043 ol_cv_sasl_compat=yes
22046 ol_cv_sasl_compat=no
22052 echo "$ac_t""$ol_cv_sasl_compat" 1>&6
22054 if test $ol_cv_sasl_compat = no ; then
22056 { echo "configure: error: Cyrus SASL library located but is incompatible" 1>&2; exit 1; }
22059 cat >> confdefs.h <<\EOF
22060 #define HAVE_CYRUS_SASL 1
22063 SASL_LIBS="$ol_link_sasl"
22064 if test $ol_enable_spasswd != no ; then
22065 ol_link_spasswd=yes
22068 ac_save_LIBS="$LIBS"
22069 LIBS="$LIBS $ol_link_sasl"
22070 echo $ac_n "checking for sasl_version""... $ac_c" 1>&6
22071 echo "configure:22072: checking for sasl_version" >&5
22072 if eval "test \"\${ac_cv_func_sasl_version+set}\" = set"; then
22073 echo $ac_n "(cached) $ac_c" 1>&6
22075 cat > conftest.$ac_ext <<EOF
22076 #line 22077 "configure"
22077 #include "confdefs.h"
22078 /* System header to define __stub macros and hopefully few prototypes,
22079 which can conflict with char sasl_version(); below. */
22080 #include <assert.h>
22081 /* Override any gcc2 internal prototype to avoid an error. */
22082 /* We use char because int might match the return type of a gcc2
22083 builtin and then its argument prototype would still apply. */
22084 char sasl_version();
22089 /* The GNU C library defines this for functions which it implements
22090 to always fail with ENOSYS. Some functions are actually named
22091 something starting with __ and the normal name is an alias. */
22092 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
22100 if { (eval echo configure:22101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22102 eval "ac_cv_func_sasl_version=yes"
22104 echo "configure: failed program was:" >&5
22105 cat conftest.$ac_ext >&5
22107 eval "ac_cv_func_sasl_version=no"
22112 if eval "test \"`echo '$ac_cv_func_'sasl_version`\" = yes"; then
22113 echo "$ac_t""yes" 1>&6
22114 cat >> confdefs.h <<\EOF
22115 #define HAVE_SASL_VERSION 1
22119 echo "$ac_t""no" 1>&6
22122 LIBS="$ac_save_LIBS"
22128 echo "configure: warning: SASL authentication not supported!" 1>&2
22129 if test $ol_link_tls = no ; then
22130 echo "configure: warning: Strong authentication not supported!" 1>&2
22134 if test $cross_compiling != yes -a "$ac_cv_mingw32" != yes ; then
22136 if test -r /dev/urandom ; then
22137 dev="/dev/urandom";
22138 elif test -r /idev/urandom ; then
22139 dev="/idev/urandom";
22140 elif test -r /dev/srandom ; then
22141 dev="/dev/srandom";
22142 elif test -r /dev/random ; then
22144 elif test -r /idev/random ; then
22145 dev="/idev/random";
22148 if test $dev != no ; then
22149 cat >> confdefs.h <<EOF
22150 #define URANDOM_DEVICE "$dev"
22157 if test $ol_with_fetch != no ; then
22159 LIBS="-lfetch -lcom_err $LIBS"
22160 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
22161 echo "configure:22162: checking fetch(3) library" >&5
22162 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
22163 echo $ac_n "(cached) $ac_c" 1>&6
22166 cat > conftest.$ac_ext <<EOF
22167 #line 22168 "configure"
22168 #include "confdefs.h"
22170 #include <sys/param.h>
22174 struct url *u = fetchParseURL("file:///");
22177 if { (eval echo configure:22178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22179 ol_cv_lib_fetch=yes
22181 echo "configure: failed program was:" >&5
22182 cat conftest.$ac_ext >&5
22189 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
22191 if test $ol_cv_lib_fetch != no ; then
22192 ol_link_fetch="-lfetch -lcom_err"
22193 cat >> confdefs.h <<\EOF
22194 #define HAVE_FETCH 1
22200 if test $ol_cv_lib_fetch != no ; then
22201 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
22202 ol_link_fetch=freebsd
22204 elif test $ol_with_fetch != auto ; then
22205 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
22209 if test $ol_enable_crypt != no ; then
22211 LIBS="$TLS_LIBS $LIBS"
22213 echo $ac_n "checking for crypt""... $ac_c" 1>&6
22214 echo "configure:22215: checking for crypt" >&5
22215 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
22216 echo $ac_n "(cached) $ac_c" 1>&6
22218 cat > conftest.$ac_ext <<EOF
22219 #line 22220 "configure"
22220 #include "confdefs.h"
22221 /* System header to define __stub macros and hopefully few prototypes,
22222 which can conflict with char crypt(); below. */
22223 #include <assert.h>
22224 /* Override any gcc2 internal prototype to avoid an error. */
22225 /* We use char because int might match the return type of a gcc2
22226 builtin and then its argument prototype would still apply. */
22232 /* The GNU C library defines this for functions which it implements
22233 to always fail with ENOSYS. Some functions are actually named
22234 something starting with __ and the normal name is an alias. */
22235 #if defined (__stub_crypt) || defined (__stub___crypt)
22243 if { (eval echo configure:22244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22245 eval "ac_cv_func_crypt=yes"
22247 echo "configure: failed program was:" >&5
22248 cat conftest.$ac_ext >&5
22250 eval "ac_cv_func_crypt=no"
22255 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
22256 echo "$ac_t""yes" 1>&6
22259 echo "$ac_t""no" 1>&6
22262 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
22263 echo "configure:22264: checking for crypt in -lcrypt" >&5
22264 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
22265 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
22266 echo $ac_n "(cached) $ac_c" 1>&6
22268 ac_save_LIBS="$LIBS"
22269 LIBS="-lcrypt $LIBS"
22270 cat > conftest.$ac_ext <<EOF
22271 #line 22272 "configure"
22272 #include "confdefs.h"
22273 /* Override any gcc2 internal prototype to avoid an error. */
22274 /* We use char because int might match the return type of a gcc2
22275 builtin and then its argument prototype would still apply. */
22282 if { (eval echo configure:22283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22284 eval "ac_cv_lib_$ac_lib_var=yes"
22286 echo "configure: failed program was:" >&5
22287 cat conftest.$ac_ext >&5
22289 eval "ac_cv_lib_$ac_lib_var=no"
22292 LIBS="$ac_save_LIBS"
22295 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
22296 echo "$ac_t""yes" 1>&6
22297 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
22300 echo "$ac_t""no" 1>&6
22309 if test $have_crypt = yes ; then
22310 cat >> confdefs.h <<\EOF
22311 #define HAVE_CRYPT 1
22315 echo "configure: warning: could not find crypt" 1>&2
22316 if test $ol_enable_crypt = yes ; then
22317 { echo "configure: error: could not find crypt, select appropriate options or disable" 1>&2; exit 1; }
22320 echo "configure: warning: disabling crypt support" 1>&2
22325 if test $ol_enable_proctitle != no ; then
22326 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
22327 echo "configure:22328: checking for setproctitle" >&5
22328 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
22329 echo $ac_n "(cached) $ac_c" 1>&6
22331 cat > conftest.$ac_ext <<EOF
22332 #line 22333 "configure"
22333 #include "confdefs.h"
22334 /* System header to define __stub macros and hopefully few prototypes,
22335 which can conflict with char setproctitle(); below. */
22336 #include <assert.h>
22337 /* Override any gcc2 internal prototype to avoid an error. */
22338 /* We use char because int might match the return type of a gcc2
22339 builtin and then its argument prototype would still apply. */
22340 char setproctitle();
22345 /* The GNU C library defines this for functions which it implements
22346 to always fail with ENOSYS. Some functions are actually named
22347 something starting with __ and the normal name is an alias. */
22348 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
22356 if { (eval echo configure:22357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22358 eval "ac_cv_func_setproctitle=yes"
22360 echo "configure: failed program was:" >&5
22361 cat conftest.$ac_ext >&5
22363 eval "ac_cv_func_setproctitle=no"
22368 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
22369 echo "$ac_t""yes" 1>&6
22370 have_setproctitle=yes
22372 echo "$ac_t""no" 1>&6
22374 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
22375 echo "configure:22376: checking for setproctitle in -lutil" >&5
22376 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
22377 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
22378 echo $ac_n "(cached) $ac_c" 1>&6
22380 ac_save_LIBS="$LIBS"
22381 LIBS="-lutil $LIBS"
22382 cat > conftest.$ac_ext <<EOF
22383 #line 22384 "configure"
22384 #include "confdefs.h"
22385 /* Override any gcc2 internal prototype to avoid an error. */
22386 /* We use char because int might match the return type of a gcc2
22387 builtin and then its argument prototype would still apply. */
22388 char setproctitle();
22394 if { (eval echo configure:22395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22396 eval "ac_cv_lib_$ac_lib_var=yes"
22398 echo "configure: failed program was:" >&5
22399 cat conftest.$ac_ext >&5
22401 eval "ac_cv_lib_$ac_lib_var=no"
22404 LIBS="$ac_save_LIBS"
22407 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
22408 echo "$ac_t""yes" 1>&6
22409 have_setproctitle=yes
22410 LUTIL_LIBS="$LUTIL_LIBS -lutil"
22412 echo "$ac_t""no" 1>&6
22413 have_setproctitle=no
22414 LIBOBJS="$LIBOBJS setproctitle.o"
22415 LIBSRCS="$LIBSRCS setproctitle.c"
22421 if test $have_setproctitle = yes ; then
22422 cat >> confdefs.h <<\EOF
22423 #define HAVE_SETPROCTITLE 1
22429 if test $ol_enable_slp != no ; then
22430 for ac_hdr in slp.h
22432 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22433 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22434 echo "configure:22435: checking for $ac_hdr" >&5
22435 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
22436 echo $ac_n "(cached) $ac_c" 1>&6
22438 cat > conftest.$ac_ext <<EOF
22439 #line 22440 "configure"
22440 #include "confdefs.h"
22443 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22444 { (eval echo configure:22445: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22445 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22446 if test -z "$ac_err"; then
22448 eval "ac_cv_header_$ac_safe=yes"
22451 echo "configure: failed program was:" >&5
22452 cat conftest.$ac_ext >&5
22454 eval "ac_cv_header_$ac_safe=no"
22458 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22459 echo "$ac_t""yes" 1>&6
22460 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22461 cat >> confdefs.h <<EOF
22462 #define $ac_tr_hdr 1
22466 echo "$ac_t""no" 1>&6
22471 if test $ac_cv_header_slp_h = yes ; then
22472 echo $ac_n "checking for SLPOpen in -lslp""... $ac_c" 1>&6
22473 echo "configure:22474: checking for SLPOpen in -lslp" >&5
22474 ac_lib_var=`echo slp'_'SLPOpen | sed 'y%./+-:%__p__%'`
22475 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
22476 echo $ac_n "(cached) $ac_c" 1>&6
22478 ac_save_LIBS="$LIBS"
22480 cat > conftest.$ac_ext <<EOF
22481 #line 22482 "configure"
22482 #include "confdefs.h"
22483 /* Override any gcc2 internal prototype to avoid an error. */
22484 /* We use char because int might match the return type of a gcc2
22485 builtin and then its argument prototype would still apply. */
22492 if { (eval echo configure:22493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22494 eval "ac_cv_lib_$ac_lib_var=yes"
22496 echo "configure: failed program was:" >&5
22497 cat conftest.$ac_ext >&5
22499 eval "ac_cv_lib_$ac_lib_var=no"
22502 LIBS="$ac_save_LIBS"
22505 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
22506 echo "$ac_t""yes" 1>&6
22509 echo "$ac_t""no" 1>&6
22513 if test $have_slp = yes ; then
22514 cat >> confdefs.h <<\EOF
22518 SLAPD_SLP_LIBS=-lslp
22521 elif test $ol_enable_slp = yes ; then
22522 { echo "configure: error: SLP not found" 1>&2; exit 1; }
22526 if test "$ol_with_multiple_precision" != "no" ; then
22530 for ac_hdr in openssl/bn.h bn.h
22532 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22533 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22534 echo "configure:22535: checking for $ac_hdr" >&5
22535 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
22536 echo $ac_n "(cached) $ac_c" 1>&6
22538 cat > conftest.$ac_ext <<EOF
22539 #line 22540 "configure"
22540 #include "confdefs.h"
22543 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22544 { (eval echo configure:22545: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22545 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22546 if test -z "$ac_err"; then
22548 eval "ac_cv_header_$ac_safe=yes"
22551 echo "configure: failed program was:" >&5
22552 cat conftest.$ac_ext >&5
22554 eval "ac_cv_header_$ac_safe=no"
22558 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22559 echo "$ac_t""yes" 1>&6
22560 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22561 cat >> confdefs.h <<EOF
22562 #define $ac_tr_hdr 1
22566 echo "$ac_t""no" 1>&6
22570 for ac_hdr in openssl/crypto.h crypto.h
22572 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22573 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22574 echo "configure:22575: checking for $ac_hdr" >&5
22575 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
22576 echo $ac_n "(cached) $ac_c" 1>&6
22578 cat > conftest.$ac_ext <<EOF
22579 #line 22580 "configure"
22580 #include "confdefs.h"
22583 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22584 { (eval echo configure:22585: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22585 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22586 if test -z "$ac_err"; then
22588 eval "ac_cv_header_$ac_safe=yes"
22591 echo "configure: failed program was:" >&5
22592 cat conftest.$ac_ext >&5
22594 eval "ac_cv_header_$ac_safe=no"
22598 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22599 echo "$ac_t""yes" 1>&6
22600 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22601 cat >> confdefs.h <<EOF
22602 #define $ac_tr_hdr 1
22606 echo "$ac_t""no" 1>&6
22610 for ac_hdr in gmp.h
22612 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22613 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22614 echo "configure:22615: checking for $ac_hdr" >&5
22615 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
22616 echo $ac_n "(cached) $ac_c" 1>&6
22618 cat > conftest.$ac_ext <<EOF
22619 #line 22620 "configure"
22620 #include "confdefs.h"
22623 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22624 { (eval echo configure:22625: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22625 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22626 if test -z "$ac_err"; then
22628 eval "ac_cv_header_$ac_safe=yes"
22631 echo "configure: failed program was:" >&5
22632 cat conftest.$ac_ext >&5
22634 eval "ac_cv_header_$ac_safe=no"
22638 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22639 echo "$ac_t""yes" 1>&6
22640 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22641 cat >> confdefs.h <<EOF
22642 #define $ac_tr_hdr 1
22646 echo "$ac_t""no" 1>&6
22651 if test "$ol_with_tls" = "found" ; then
22653 ol_have_crypto_h=no
22655 if test "$ac_cv_header_openssl_bn_h" = "yes" \
22656 -o "$ac_cv_header_bn_h" = "yes" ; then
22660 if test "$ac_cv_header_openssl_crypto_h" = "yes" \
22661 -o "$ac_cv_header_crypto_h" = "yes" ; then
22662 ol_have_crypto_h=yes
22665 if test "$ol_have_bn_h" = "yes" \
22666 -a "$ol_have_crypto_h" = "yes" ; then
22671 if test $ac_cv_header_gmp_h = yes ; then
22672 echo $ac_n "checking for __gmpz_add_ui in -lgmp""... $ac_c" 1>&6
22673 echo "configure:22674: checking for __gmpz_add_ui in -lgmp" >&5
22674 ac_lib_var=`echo gmp'_'__gmpz_add_ui | sed 'y%./+-:%__p__%'`
22675 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
22676 echo $ac_n "(cached) $ac_c" 1>&6
22678 ac_save_LIBS="$LIBS"
22680 cat > conftest.$ac_ext <<EOF
22681 #line 22682 "configure"
22682 #include "confdefs.h"
22683 /* Override any gcc2 internal prototype to avoid an error. */
22684 /* We use char because int might match the return type of a gcc2
22685 builtin and then its argument prototype would still apply. */
22686 char __gmpz_add_ui();
22692 if { (eval echo configure:22693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22694 eval "ac_cv_lib_$ac_lib_var=yes"
22696 echo "configure: failed program was:" >&5
22697 cat conftest.$ac_ext >&5
22699 eval "ac_cv_lib_$ac_lib_var=no"
22702 LIBS="$ac_save_LIBS"
22705 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
22706 echo "$ac_t""yes" 1>&6
22709 echo "$ac_t""no" 1>&6
22713 if test $have_gmp = yes ; then
22718 echo $ac_n "checking for multiple precision support""... $ac_c" 1>&6
22719 echo "configure:22720: checking for multiple precision support" >&5
22721 ol_mp_support="none"
22722 case "$ol_with_multiple_precision" in
22724 if test "$ol_have_bignum" = "yes" ; then
22725 ol_mp_support="bignum"
22727 if test "$ol_have_gmp" = "yes" ; then
22728 ol_mp_support="gmp"
22733 if test "$ol_have_bignum" != "yes" ; then
22734 { echo "configure: error: OpenSSL's BIGNUM not available" 1>&2; exit 1; }
22736 ol_mp_support="bignum"
22739 if test "$ol_have_gmp" != "yes" ; then
22740 { echo "configure: error: GMP not available" 1>&2; exit 1; }
22742 ol_mp_support="gmp"
22745 if test "$ol_have_bignum" = "yes" ; then
22746 ol_mp_support="bignum"
22747 elif test "$ol_have_gmp" = "yes" ; then
22748 ol_mp_support="gmp"
22750 { echo "configure: error: not available" 1>&2; exit 1; }
22755 case "$ol_mp_support" in
22757 cat >> confdefs.h <<\EOF
22758 #define HAVE_BIGNUM 1
22763 cat >> confdefs.h <<\EOF
22767 SLAPD_GMP_LIBS=-lgmp
22773 echo "$ac_t""$ol_mp_support" 1>&6
22777 echo $ac_n "checking long long""... $ac_c" 1>&6
22778 echo "configure:22779: checking long long" >&5
22779 if eval "test \"\${ol_cv_type_long_long+set}\" = set"; then
22780 echo $ac_n "(cached) $ac_c" 1>&6
22783 cat > conftest.$ac_ext <<EOF
22784 #line 22785 "configure"
22785 #include "confdefs.h"
22791 if { (eval echo configure:22792: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22793 ol_cv_type_long_long=yes
22795 echo "configure: failed program was:" >&5
22796 cat conftest.$ac_ext >&5
22798 ol_cv_type_long_long=no
22803 echo "$ac_t""$ol_cv_type_long_long" 1>&6
22804 if test $ol_cv_type_long_long = yes; then
22805 cat >> confdefs.h <<\EOF
22806 #define HAVE_LONG_LONG 1
22811 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
22812 echo "configure:22813: checking for ANSI C header files" >&5
22813 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
22814 echo $ac_n "(cached) $ac_c" 1>&6
22816 cat > conftest.$ac_ext <<EOF
22817 #line 22818 "configure"
22818 #include "confdefs.h"
22819 #include <stdlib.h>
22820 #include <stdarg.h>
22821 #include <string.h>
22824 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22825 { (eval echo configure:22826: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22826 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22827 if test -z "$ac_err"; then
22829 ac_cv_header_stdc=yes
22832 echo "configure: failed program was:" >&5
22833 cat conftest.$ac_ext >&5
22835 ac_cv_header_stdc=no
22839 if test $ac_cv_header_stdc = yes; then
22840 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
22841 cat > conftest.$ac_ext <<EOF
22842 #line 22843 "configure"
22843 #include "confdefs.h"
22844 #include <string.h>
22846 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22847 egrep "memchr" >/dev/null 2>&1; then
22851 ac_cv_header_stdc=no
22857 if test $ac_cv_header_stdc = yes; then
22858 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
22859 cat > conftest.$ac_ext <<EOF
22860 #line 22861 "configure"
22861 #include "confdefs.h"
22862 #include <stdlib.h>
22864 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22865 egrep "free" >/dev/null 2>&1; then
22869 ac_cv_header_stdc=no
22875 if test $ac_cv_header_stdc = yes; then
22876 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
22877 if test "$cross_compiling" = yes; then
22880 cat > conftest.$ac_ext <<EOF
22881 #line 22882 "configure"
22882 #include "confdefs.h"
22884 #if ((' ' & 0x0FF) == 0x020)
22885 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22886 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22888 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
22889 || ('j' <= (c) && (c) <= 'r') \
22890 || ('s' <= (c) && (c) <= 'z'))
22891 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22893 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22894 int main () { int i; for (i = 0; i < 256; i++)
22895 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
22899 if { (eval echo configure:22900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
22903 echo "configure: failed program was:" >&5
22904 cat conftest.$ac_ext >&5
22906 ac_cv_header_stdc=no
22914 echo "$ac_t""$ac_cv_header_stdc" 1>&6
22915 if test $ac_cv_header_stdc = yes; then
22916 cat >> confdefs.h <<\EOF
22917 #define STDC_HEADERS 1
22922 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
22923 echo "configure:22924: checking for mode_t" >&5
22924 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
22925 echo $ac_n "(cached) $ac_c" 1>&6
22927 cat > conftest.$ac_ext <<EOF
22928 #line 22929 "configure"
22929 #include "confdefs.h"
22930 #include <sys/types.h>
22932 #include <stdlib.h>
22933 #include <stddef.h>
22937 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22938 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
22940 eval "ac_cv_type_mode_t=yes"
22943 eval "ac_cv_type_mode_t=no"
22948 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
22949 echo "$ac_t""yes" 1>&6
22951 echo "$ac_t""no" 1>&6
22952 cat >> confdefs.h <<EOF
22958 echo $ac_n "checking for off_t""... $ac_c" 1>&6
22959 echo "configure:22960: checking for off_t" >&5
22960 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
22961 echo $ac_n "(cached) $ac_c" 1>&6
22963 cat > conftest.$ac_ext <<EOF
22964 #line 22965 "configure"
22965 #include "confdefs.h"
22966 #include <sys/types.h>
22968 #include <stdlib.h>
22969 #include <stddef.h>
22973 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22974 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
22976 eval "ac_cv_type_off_t=yes"
22979 eval "ac_cv_type_off_t=no"
22984 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
22985 echo "$ac_t""yes" 1>&6
22987 echo "$ac_t""no" 1>&6
22988 cat >> confdefs.h <<EOF
22994 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
22995 echo "configure:22996: checking for pid_t" >&5
22996 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
22997 echo $ac_n "(cached) $ac_c" 1>&6
22999 cat > conftest.$ac_ext <<EOF
23000 #line 23001 "configure"
23001 #include "confdefs.h"
23002 #include <sys/types.h>
23004 #include <stdlib.h>
23005 #include <stddef.h>
23009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23010 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
23012 eval "ac_cv_type_pid_t=yes"
23015 eval "ac_cv_type_pid_t=no"
23020 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
23021 echo "$ac_t""yes" 1>&6
23023 echo "$ac_t""no" 1>&6
23024 cat >> confdefs.h <<EOF
23030 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
23031 echo "configure:23032: checking for ptrdiff_t" >&5
23032 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
23033 echo $ac_n "(cached) $ac_c" 1>&6
23035 cat > conftest.$ac_ext <<EOF
23036 #line 23037 "configure"
23037 #include "confdefs.h"
23038 #include <stddef.h>
23043 if { (eval echo configure:23044: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23045 am_cv_type_ptrdiff_t=yes
23047 echo "configure: failed program was:" >&5
23048 cat conftest.$ac_ext >&5
23050 am_cv_type_ptrdiff_t=no
23055 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
23056 if test $am_cv_type_ptrdiff_t = yes; then
23057 cat >> confdefs.h <<\EOF
23058 #define HAVE_PTRDIFF_T 1
23063 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
23064 echo "configure:23065: checking return type of signal handlers" >&5
23065 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
23066 echo $ac_n "(cached) $ac_c" 1>&6
23068 cat > conftest.$ac_ext <<EOF
23069 #line 23070 "configure"
23070 #include "confdefs.h"
23071 #include <sys/types.h>
23072 #include <signal.h>
23077 extern "C" void (*signal (int, void (*)(int)))(int);
23079 void (*signal ()) ();
23086 if { (eval echo configure:23087: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23088 ac_cv_type_signal=void
23090 echo "configure: failed program was:" >&5
23091 cat conftest.$ac_ext >&5
23093 ac_cv_type_signal=int
23098 echo "$ac_t""$ac_cv_type_signal" 1>&6
23099 cat >> confdefs.h <<EOF
23100 #define RETSIGTYPE $ac_cv_type_signal
23104 echo $ac_n "checking for size_t""... $ac_c" 1>&6
23105 echo "configure:23106: checking for size_t" >&5
23106 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
23107 echo $ac_n "(cached) $ac_c" 1>&6
23109 cat > conftest.$ac_ext <<EOF
23110 #line 23111 "configure"
23111 #include "confdefs.h"
23112 #include <sys/types.h>
23114 #include <stdlib.h>
23115 #include <stddef.h>
23119 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23120 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
23122 eval "ac_cv_type_size_t=yes"
23125 eval "ac_cv_type_size_t=no"
23130 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
23131 echo "$ac_t""yes" 1>&6
23133 echo "$ac_t""no" 1>&6
23134 cat >> confdefs.h <<EOF
23135 #define size_t unsigned
23141 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
23142 echo "configure:23143: checking for ssize_t" >&5
23143 if eval "test \"\${ac_cv_type_ssize_t+set}\" = set"; then
23144 echo $ac_n "(cached) $ac_c" 1>&6
23146 cat > conftest.$ac_ext <<EOF
23147 #line 23148 "configure"
23148 #include "confdefs.h"
23149 #include <sys/types.h>
23151 #include <stdlib.h>
23152 #include <stddef.h>
23156 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23157 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
23159 eval "ac_cv_type_ssize_t=yes"
23162 eval "ac_cv_type_ssize_t=no"
23167 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
23168 echo "$ac_t""yes" 1>&6
23170 echo "$ac_t""no" 1>&6
23171 cat >> confdefs.h <<EOF
23172 #define ssize_t signed int
23177 echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
23178 echo "configure:23179: checking for caddr_t" >&5
23179 if eval "test \"\${ac_cv_type_caddr_t+set}\" = set"; then
23180 echo $ac_n "(cached) $ac_c" 1>&6
23182 cat > conftest.$ac_ext <<EOF
23183 #line 23184 "configure"
23184 #include "confdefs.h"
23185 #include <sys/types.h>
23187 #include <stdlib.h>
23188 #include <stddef.h>
23192 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23193 egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
23195 eval "ac_cv_type_caddr_t=yes"
23198 eval "ac_cv_type_caddr_t=no"
23203 if eval "test \"`echo '$ac_cv_type_'caddr_t`\" = yes"; then
23204 echo "$ac_t""yes" 1>&6
23206 echo "$ac_t""no" 1>&6
23207 cat >> confdefs.h <<EOF
23208 #define caddr_t char *
23214 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
23215 echo "configure:23216: checking for socklen_t" >&5
23216 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
23217 echo $ac_n "(cached) $ac_c" 1>&6
23219 cat > conftest.$ac_ext <<EOF
23220 #line 23221 "configure"
23221 #include "confdefs.h"
23223 #ifdef HAVE_SYS_TYPES_H
23224 #include <sys/types.h>
23226 #ifdef HAVE_SYS_SOCKET_H
23227 #include <sys/socket.h>
23234 if { (eval echo configure:23235: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23236 ol_cv_type_socklen_t=yes
23238 echo "configure: failed program was:" >&5
23239 cat conftest.$ac_ext >&5
23241 ol_cv_type_socklen_t=no
23246 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
23247 if test $ol_cv_type_socklen_t = no; then
23248 cat >> confdefs.h <<\EOF
23249 #define socklen_t int
23254 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
23255 echo "configure:23256: checking for member st_blksize in aggregate type struct stat" >&5
23256 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
23257 echo $ac_n "(cached) $ac_c" 1>&6
23259 cat > conftest.$ac_ext <<EOF
23260 #line 23261 "configure"
23261 #include "confdefs.h"
23262 #include <sys/types.h>
23263 #include <sys/stat.h>
23265 struct stat foo; foo.st_blksize;
23268 if { (eval echo configure:23269: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23270 ac_cv_c_struct_member_st_blksize=yes
23272 echo "configure: failed program was:" >&5
23273 cat conftest.$ac_ext >&5
23275 ac_cv_c_struct_member_st_blksize=no
23280 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
23281 st_blksize="$ac_cv_c_struct_member_st_blksize"
23282 if test $ac_cv_c_struct_member_st_blksize = yes; then
23283 cat >> confdefs.h <<\EOF
23284 #define HAVE_ST_BLKSIZE 1
23289 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
23290 echo "configure:23291: checking whether time.h and sys/time.h may both be included" >&5
23291 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
23292 echo $ac_n "(cached) $ac_c" 1>&6
23294 cat > conftest.$ac_ext <<EOF
23295 #line 23296 "configure"
23296 #include "confdefs.h"
23297 #include <sys/types.h>
23298 #include <sys/time.h>
23304 if { (eval echo configure:23305: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23306 ac_cv_header_time=yes
23308 echo "configure: failed program was:" >&5
23309 cat conftest.$ac_ext >&5
23311 ac_cv_header_time=no
23316 echo "$ac_t""$ac_cv_header_time" 1>&6
23317 if test $ac_cv_header_time = yes; then
23318 cat >> confdefs.h <<\EOF
23319 #define TIME_WITH_SYS_TIME 1
23324 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
23325 echo "configure:23326: checking whether struct tm is in sys/time.h or time.h" >&5
23326 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
23327 echo $ac_n "(cached) $ac_c" 1>&6
23329 cat > conftest.$ac_ext <<EOF
23330 #line 23331 "configure"
23331 #include "confdefs.h"
23332 #include <sys/types.h>
23335 struct tm *tp; tp->tm_sec;
23338 if { (eval echo configure:23339: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23340 ac_cv_struct_tm=time.h
23342 echo "configure: failed program was:" >&5
23343 cat conftest.$ac_ext >&5
23345 ac_cv_struct_tm=sys/time.h
23350 echo "$ac_t""$ac_cv_struct_tm" 1>&6
23351 if test $ac_cv_struct_tm = sys/time.h; then
23352 cat >> confdefs.h <<\EOF
23353 #define TM_IN_SYS_TIME 1
23358 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
23359 echo "configure:23360: checking for uid_t in sys/types.h" >&5
23360 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
23361 echo $ac_n "(cached) $ac_c" 1>&6
23363 cat > conftest.$ac_ext <<EOF
23364 #line 23365 "configure"
23365 #include "confdefs.h"
23366 #include <sys/types.h>
23368 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23369 egrep "uid_t" >/dev/null 2>&1; then
23371 ac_cv_type_uid_t=yes
23374 ac_cv_type_uid_t=no
23380 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
23381 if test $ac_cv_type_uid_t = no; then
23382 cat >> confdefs.h <<\EOF
23386 cat >> confdefs.h <<\EOF
23392 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
23393 echo "configure:23394: checking for sig_atomic_t" >&5
23394 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
23395 echo $ac_n "(cached) $ac_c" 1>&6
23397 cat > conftest.$ac_ext <<EOF
23398 #line 23399 "configure"
23399 #include "confdefs.h"
23400 #include <signal.h>
23402 sig_atomic_t atomic;
23405 if { (eval echo configure:23406: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23407 ol_cv_type_sig_atomic_t=yes
23409 echo "configure: failed program was:" >&5
23410 cat conftest.$ac_ext >&5
23412 ol_cv_type_sig_atomic_t=no
23417 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
23418 if test $ol_cv_type_sig_atomic_t = no; then
23419 cat >> confdefs.h <<\EOF
23420 #define sig_atomic_t int
23427 # test for pw_gecos in struct passwd
23428 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
23429 echo "configure:23430: checking struct passwd for pw_gecos" >&5
23430 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
23431 echo $ac_n "(cached) $ac_c" 1>&6
23434 cat > conftest.$ac_ext <<EOF
23435 #line 23436 "configure"
23436 #include "confdefs.h"
23441 pwd.pw_gecos = pwd.pw_name;
23445 if { (eval echo configure:23446: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23447 ol_cv_struct_passwd_pw_gecos=yes
23449 echo "configure: failed program was:" >&5
23450 cat conftest.$ac_ext >&5
23452 ol_cv_struct_passwd_pw_gecos=no
23457 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
23458 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
23459 cat >> confdefs.h <<\EOF
23460 #define HAVE_PW_GECOS 1
23465 # test for pw_passwd in struct passwd
23466 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
23467 echo "configure:23468: checking struct passwd for pw_passwd" >&5
23468 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
23469 echo $ac_n "(cached) $ac_c" 1>&6
23472 cat > conftest.$ac_ext <<EOF
23473 #line 23474 "configure"
23474 #include "confdefs.h"
23479 pwd.pw_passwd = pwd.pw_name;
23483 if { (eval echo configure:23484: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23485 ol_cv_struct_passwd_pw_passwd=yes
23487 echo "configure: failed program was:" >&5
23488 cat conftest.$ac_ext >&5
23490 ol_cv_struct_passwd_pw_passwd=no
23495 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
23496 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
23497 cat >> confdefs.h <<\EOF
23498 #define HAVE_PW_PASSWD 1
23504 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
23505 echo "configure:23506: checking if toupper() requires islower()" >&5
23506 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
23507 echo $ac_n "(cached) $ac_c" 1>&6
23510 if test "$cross_compiling" = yes; then
23511 ol_cv_c_upper_lower=safe
23513 cat > conftest.$ac_ext <<EOF
23514 #line 23515 "configure"
23515 #include "confdefs.h"
23520 if ('C' == toupper('C'))
23526 if { (eval echo configure:23527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
23528 ol_cv_c_upper_lower=no
23530 echo "configure: failed program was:" >&5
23531 cat conftest.$ac_ext >&5
23533 ol_cv_c_upper_lower=yes
23540 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
23541 if test $ol_cv_c_upper_lower != no ; then
23542 cat >> confdefs.h <<\EOF
23543 #define C_UPPER_LOWER 1
23548 echo $ac_n "checking for working const""... $ac_c" 1>&6
23549 echo "configure:23550: checking for working const" >&5
23550 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
23551 echo $ac_n "(cached) $ac_c" 1>&6
23553 cat > conftest.$ac_ext <<EOF
23554 #line 23555 "configure"
23555 #include "confdefs.h"
23559 /* Ultrix mips cc rejects this. */
23560 typedef int charset[2]; const charset x;
23561 /* SunOS 4.1.1 cc rejects this. */
23562 char const *const *ccp;
23564 /* NEC SVR4.0.2 mips cc rejects this. */
23565 struct point {int x, y;};
23566 static struct point const zero = {0,0};
23567 /* AIX XL C 1.02.0.0 rejects this.
23568 It does not let you subtract one const X* pointer from another in an arm
23569 of an if-expression whose if-part is not a constant expression */
23570 const char *g = "string";
23571 ccp = &g + (g ? g-g : 0);
23572 /* HPUX 7.0 cc rejects these. */
23575 ccp = (char const *const *) p;
23576 { /* SCO 3.2v4 cc rejects this. */
23578 char const *s = 0 ? (char *) 0 : (char const *) 0;
23582 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
23583 int x[] = {25, 17};
23584 const int *foo = &x[0];
23587 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23588 typedef const int *iptr;
23592 { /* AIX XL C 1.02.0.0 rejects this saying
23593 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23594 struct s { int j; const int *ap[3]; };
23595 struct s *b; b->j = 5;
23597 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23598 const int foo = 10;
23603 if { (eval echo configure:23604: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23607 echo "configure: failed program was:" >&5
23608 cat conftest.$ac_ext >&5
23615 echo "$ac_t""$ac_cv_c_const" 1>&6
23616 if test $ac_cv_c_const = no; then
23617 cat >> confdefs.h <<\EOF
23623 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
23624 echo "configure:23625: checking if compiler understands volatile" >&5
23625 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
23626 echo $ac_n "(cached) $ac_c" 1>&6
23628 cat > conftest.$ac_ext <<EOF
23629 #line 23630 "configure"
23630 #include "confdefs.h"
23633 volatile int a; int * volatile b = x ? &y : &z;
23634 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
23638 if { (eval echo configure:23639: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23640 ol_cv_c_volatile=yes
23642 echo "configure: failed program was:" >&5
23643 cat conftest.$ac_ext >&5
23645 ol_cv_c_volatile=no
23650 echo "$ac_t""$ol_cv_c_volatile" 1>&6
23651 if test $ol_cv_c_volatile = yes; then
23654 cat >> confdefs.h <<\EOF
23661 if test $cross_compiling = yes ; then
23662 echo "configure: warning: Crossing compiling... all bets are off!" 1>&2
23663 cat >> confdefs.h <<\EOF
23664 #define CROSS_COMPILING 1
23668 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
23669 echo "configure:23670: checking whether byte ordering is bigendian" >&5
23670 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
23671 echo $ac_n "(cached) $ac_c" 1>&6
23673 ac_cv_c_bigendian=unknown
23674 # See if sys/param.h defines the BYTE_ORDER macro.
23675 cat > conftest.$ac_ext <<EOF
23676 #line 23677 "configure"
23677 #include "confdefs.h"
23678 #include <sys/types.h>
23679 #include <sys/param.h>
23682 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
23683 bogus endian macros
23687 if { (eval echo configure:23688: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23689 # It does; now see whether it defined to BIG_ENDIAN or not.
23690 cat > conftest.$ac_ext <<EOF
23691 #line 23692 "configure"
23692 #include "confdefs.h"
23693 #include <sys/types.h>
23694 #include <sys/param.h>
23697 #if BYTE_ORDER != BIG_ENDIAN
23702 if { (eval echo configure:23703: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23704 ac_cv_c_bigendian=yes
23706 echo "configure: failed program was:" >&5
23707 cat conftest.$ac_ext >&5
23709 ac_cv_c_bigendian=no
23713 echo "configure: failed program was:" >&5
23714 cat conftest.$ac_ext >&5
23717 if test $ac_cv_c_bigendian = unknown; then
23718 if test "$cross_compiling" = yes; then
23719 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
23721 cat > conftest.$ac_ext <<EOF
23722 #line 23723 "configure"
23723 #include "confdefs.h"
23725 /* Are we little or big endian? From Harbison&Steele. */
23729 char c[sizeof (long)];
23732 exit (u.c[sizeof (long) - 1] == 1);
23735 if { (eval echo configure:23736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
23737 ac_cv_c_bigendian=no
23739 echo "configure: failed program was:" >&5
23740 cat conftest.$ac_ext >&5
23742 ac_cv_c_bigendian=yes
23750 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
23751 if test $ac_cv_c_bigendian = yes; then
23752 cat >> confdefs.h <<\EOF
23753 #define WORDS_BIGENDIAN 1
23760 echo $ac_n "checking size of short""... $ac_c" 1>&6
23761 echo "configure:23762: checking size of short" >&5
23762 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
23763 echo $ac_n "(cached) $ac_c" 1>&6
23765 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23766 cat > conftest.$ac_ext <<EOF
23767 #line 23768 "configure"
23768 #include "confdefs.h"
23769 #include "confdefs.h"
23770 #include <stdlib.h>
23771 #include <sys/types.h>
23775 switch (0) case 0: case (sizeof (short) == $ac_size):;
23778 if { (eval echo configure:23779: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23780 ac_cv_sizeof_short=$ac_size
23782 echo "configure: failed program was:" >&5
23783 cat conftest.$ac_ext >&5
23786 if test x$ac_cv_sizeof_short != x ; then break; fi
23791 if test x$ac_cv_sizeof_short = x ; then
23792 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
23794 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
23795 cat >> confdefs.h <<EOF
23796 #define SIZEOF_SHORT $ac_cv_sizeof_short
23800 echo $ac_n "checking size of int""... $ac_c" 1>&6
23801 echo "configure:23802: checking size of int" >&5
23802 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
23803 echo $ac_n "(cached) $ac_c" 1>&6
23805 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23806 cat > conftest.$ac_ext <<EOF
23807 #line 23808 "configure"
23808 #include "confdefs.h"
23809 #include "confdefs.h"
23810 #include <stdlib.h>
23811 #include <sys/types.h>
23815 switch (0) case 0: case (sizeof (int) == $ac_size):;
23818 if { (eval echo configure:23819: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23820 ac_cv_sizeof_int=$ac_size
23822 echo "configure: failed program was:" >&5
23823 cat conftest.$ac_ext >&5
23826 if test x$ac_cv_sizeof_int != x ; then break; fi
23831 if test x$ac_cv_sizeof_int = x ; then
23832 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
23834 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
23835 cat >> confdefs.h <<EOF
23836 #define SIZEOF_INT $ac_cv_sizeof_int
23840 echo $ac_n "checking size of long""... $ac_c" 1>&6
23841 echo "configure:23842: checking size of long" >&5
23842 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
23843 echo $ac_n "(cached) $ac_c" 1>&6
23845 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23846 cat > conftest.$ac_ext <<EOF
23847 #line 23848 "configure"
23848 #include "confdefs.h"
23849 #include "confdefs.h"
23850 #include <stdlib.h>
23851 #include <sys/types.h>
23855 switch (0) case 0: case (sizeof (long) == $ac_size):;
23858 if { (eval echo configure:23859: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23860 ac_cv_sizeof_long=$ac_size
23862 echo "configure: failed program was:" >&5
23863 cat conftest.$ac_ext >&5
23866 if test x$ac_cv_sizeof_long != x ; then break; fi
23871 if test x$ac_cv_sizeof_long = x ; then
23872 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
23874 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
23875 cat >> confdefs.h <<EOF
23876 #define SIZEOF_LONG $ac_cv_sizeof_long
23880 echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
23881 echo "configure:23882: checking size of wchar_t" >&5
23882 if eval "test \"\${ac_cv_sizeof_wchar_t+set}\" = set"; then
23883 echo $ac_n "(cached) $ac_c" 1>&6
23885 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23886 cat > conftest.$ac_ext <<EOF
23887 #line 23888 "configure"
23888 #include "confdefs.h"
23889 #include "confdefs.h"
23890 #include <stdlib.h>
23891 #include <sys/types.h>
23895 switch (0) case 0: case (sizeof (wchar_t) == $ac_size):;
23898 if { (eval echo configure:23899: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23900 ac_cv_sizeof_wchar_t=$ac_size
23902 echo "configure: failed program was:" >&5
23903 cat conftest.$ac_ext >&5
23906 if test x$ac_cv_sizeof_wchar_t != x ; then break; fi
23911 if test x$ac_cv_sizeof_wchar_t = x ; then
23912 { echo "configure: error: cannot determine a size for wchar_t" 1>&2; exit 1; }
23914 echo "$ac_t""$ac_cv_sizeof_wchar_t" 1>&6
23915 cat >> confdefs.h <<EOF
23916 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
23921 if test "$ac_cv_sizeof_int" -lt 4 ; then
23922 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
23924 cat >> confdefs.h <<\EOF
23925 #define LBER_INT_T long
23929 cat >> confdefs.h <<\EOF
23930 #define LBER_INT_T int
23935 cat >> confdefs.h <<\EOF
23936 #define LBER_LEN_T long
23939 cat >> confdefs.h <<\EOF
23940 #define LBER_SOCKET_T int
23943 cat >> confdefs.h <<\EOF
23944 #define LBER_TAG_T long
23948 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
23949 echo "configure:23950: checking for 8-bit clean memcmp" >&5
23950 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
23951 echo $ac_n "(cached) $ac_c" 1>&6
23953 if test "$cross_compiling" = yes; then
23954 ac_cv_func_memcmp_clean=no
23956 cat > conftest.$ac_ext <<EOF
23957 #line 23958 "configure"
23958 #include "confdefs.h"
23962 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
23963 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
23967 if { (eval echo configure:23968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
23969 ac_cv_func_memcmp_clean=yes
23971 echo "configure: failed program was:" >&5
23972 cat conftest.$ac_ext >&5
23974 ac_cv_func_memcmp_clean=no
23981 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
23982 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
23984 echo $ac_n "checking for strftime""... $ac_c" 1>&6
23985 echo "configure:23986: checking for strftime" >&5
23986 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
23987 echo $ac_n "(cached) $ac_c" 1>&6
23989 cat > conftest.$ac_ext <<EOF
23990 #line 23991 "configure"
23991 #include "confdefs.h"
23992 /* System header to define __stub macros and hopefully few prototypes,
23993 which can conflict with char strftime(); below. */
23994 #include <assert.h>
23995 /* Override any gcc2 internal prototype to avoid an error. */
23996 /* We use char because int might match the return type of a gcc2
23997 builtin and then its argument prototype would still apply. */
24003 /* The GNU C library defines this for functions which it implements
24004 to always fail with ENOSYS. Some functions are actually named
24005 something starting with __ and the normal name is an alias. */
24006 #if defined (__stub_strftime) || defined (__stub___strftime)
24014 if { (eval echo configure:24015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
24016 eval "ac_cv_func_strftime=yes"
24018 echo "configure: failed program was:" >&5
24019 cat conftest.$ac_ext >&5
24021 eval "ac_cv_func_strftime=no"
24026 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
24027 echo "$ac_t""yes" 1>&6
24028 cat >> confdefs.h <<\EOF
24029 #define HAVE_STRFTIME 1
24033 echo "$ac_t""no" 1>&6
24034 # strftime is in -lintl on SCO UNIX.
24035 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
24036 echo "configure:24037: checking for strftime in -lintl" >&5
24037 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
24038 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
24039 echo $ac_n "(cached) $ac_c" 1>&6
24041 ac_save_LIBS="$LIBS"
24042 LIBS="-lintl $LIBS"
24043 cat > conftest.$ac_ext <<EOF
24044 #line 24045 "configure"
24045 #include "confdefs.h"
24046 /* Override any gcc2 internal prototype to avoid an error. */
24047 /* We use char because int might match the return type of a gcc2
24048 builtin and then its argument prototype would still apply. */
24055 if { (eval echo configure:24056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
24057 eval "ac_cv_lib_$ac_lib_var=yes"
24059 echo "configure: failed program was:" >&5
24060 cat conftest.$ac_ext >&5
24062 eval "ac_cv_lib_$ac_lib_var=no"
24065 LIBS="$ac_save_LIBS"
24068 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
24069 echo "$ac_t""yes" 1>&6
24070 cat >> confdefs.h <<\EOF
24071 #define HAVE_STRFTIME 1
24074 LIBS="-lintl $LIBS"
24076 echo "$ac_t""no" 1>&6
24082 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
24083 echo "configure:24084: checking for inet_aton()" >&5
24084 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
24085 echo $ac_n "(cached) $ac_c" 1>&6
24087 cat > conftest.$ac_ext <<EOF
24088 #line 24089 "configure"
24089 #include "confdefs.h"
24091 #ifdef HAVE_SYS_TYPES_H
24092 # include <sys/types.h>
24094 #ifdef HAVE_SYS_SOCKET_H
24095 # include <sys/socket.h>
24096 # ifdef HAVE_SYS_SELECT_H
24097 # include <sys/select.h>
24099 # include <netinet/in.h>
24100 # ifdef HAVE_ARPA_INET_H
24101 # include <arpa/inet.h>
24107 int rc = inet_aton( "255.255.255.255", &in );
24110 if { (eval echo configure:24111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
24112 ol_cv_func_inet_aton=yes
24114 echo "configure: failed program was:" >&5
24115 cat conftest.$ac_ext >&5
24117 ol_cv_func_inet_aton=no
24122 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
24123 if test $ol_cv_func_inet_aton != no; then
24124 cat >> confdefs.h <<\EOF
24125 #define HAVE_INET_ATON 1
24131 echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
24132 echo "configure:24133: checking for _spawnlp" >&5
24133 if eval "test \"\${ac_cv_func__spawnlp+set}\" = set"; then
24134 echo $ac_n "(cached) $ac_c" 1>&6
24136 cat > conftest.$ac_ext <<EOF
24137 #line 24138 "configure"
24138 #include "confdefs.h"
24139 /* System header to define __stub macros and hopefully few prototypes,
24140 which can conflict with char _spawnlp(); below. */
24141 #include <assert.h>
24142 /* Override any gcc2 internal prototype to avoid an error. */
24143 /* We use char because int might match the return type of a gcc2
24144 builtin and then its argument prototype would still apply. */
24150 /* The GNU C library defines this for functions which it implements
24151 to always fail with ENOSYS. Some functions are actually named
24152 something starting with __ and the normal name is an alias. */
24153 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
24161 if { (eval echo configure:24162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
24163 eval "ac_cv_func__spawnlp=yes"
24165 echo "configure: failed program was:" >&5
24166 cat conftest.$ac_ext >&5
24168 eval "ac_cv_func__spawnlp=no"
24173 if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
24174 echo "$ac_t""yes" 1>&6
24175 cat >> confdefs.h <<\EOF
24176 #define HAVE_SPAWNLP 1
24180 echo "$ac_t""no" 1>&6
24184 echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
24185 echo "configure:24186: checking for _snprintf" >&5
24186 if eval "test \"\${ac_cv_func__snprintf+set}\" = set"; then
24187 echo $ac_n "(cached) $ac_c" 1>&6
24189 cat > conftest.$ac_ext <<EOF
24190 #line 24191 "configure"
24191 #include "confdefs.h"
24192 /* System header to define __stub macros and hopefully few prototypes,
24193 which can conflict with char _snprintf(); below. */
24194 #include <assert.h>
24195 /* Override any gcc2 internal prototype to avoid an error. */
24196 /* We use char because int might match the return type of a gcc2
24197 builtin and then its argument prototype would still apply. */
24203 /* The GNU C library defines this for functions which it implements
24204 to always fail with ENOSYS. Some functions are actually named
24205 something starting with __ and the normal name is an alias. */
24206 #if defined (__stub__snprintf) || defined (__stub____snprintf)
24214 if { (eval echo configure:24215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
24216 eval "ac_cv_func__snprintf=yes"
24218 echo "configure: failed program was:" >&5
24219 cat conftest.$ac_ext >&5
24221 eval "ac_cv_func__snprintf=no"
24226 if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
24227 echo "$ac_t""yes" 1>&6
24228 ac_cv_func_snprintf=yes
24229 cat >> confdefs.h <<\EOF
24230 #define snprintf _snprintf
24235 echo "$ac_t""no" 1>&6
24239 echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
24240 echo "configure:24241: checking for _vsnprintf" >&5
24241 if eval "test \"\${ac_cv_func__vsnprintf+set}\" = set"; then
24242 echo $ac_n "(cached) $ac_c" 1>&6
24244 cat > conftest.$ac_ext <<EOF
24245 #line 24246 "configure"
24246 #include "confdefs.h"
24247 /* System header to define __stub macros and hopefully few prototypes,
24248 which can conflict with char _vsnprintf(); below. */
24249 #include <assert.h>
24250 /* Override any gcc2 internal prototype to avoid an error. */
24251 /* We use char because int might match the return type of a gcc2
24252 builtin and then its argument prototype would still apply. */
24258 /* The GNU C library defines this for functions which it implements
24259 to always fail with ENOSYS. Some functions are actually named
24260 something starting with __ and the normal name is an alias. */
24261 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
24269 if { (eval echo configure:24270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
24271 eval "ac_cv_func__vsnprintf=yes"
24273 echo "configure: failed program was:" >&5
24274 cat conftest.$ac_ext >&5
24276 eval "ac_cv_func__vsnprintf=no"
24281 if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
24282 echo "$ac_t""yes" 1>&6
24283 ac_cv_func_vsnprintf=yes
24284 cat >> confdefs.h <<\EOF
24285 #define vsnprintf _vsnprintf
24290 echo "$ac_t""no" 1>&6
24294 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
24295 echo "configure:24296: checking for vprintf" >&5
24296 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
24297 echo $ac_n "(cached) $ac_c" 1>&6
24299 cat > conftest.$ac_ext <<EOF
24300 #line 24301 "configure"
24301 #include "confdefs.h"
24302 /* System header to define __stub macros and hopefully few prototypes,
24303 which can conflict with char vprintf(); below. */
24304 #include <assert.h>
24305 /* Override any gcc2 internal prototype to avoid an error. */
24306 /* We use char because int might match the return type of a gcc2
24307 builtin and then its argument prototype would still apply. */
24313 /* The GNU C library defines this for functions which it implements
24314 to always fail with ENOSYS. Some functions are actually named
24315 something starting with __ and the normal name is an alias. */
24316 #if defined (__stub_vprintf) || defined (__stub___vprintf)
24324 if { (eval echo configure:24325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
24326 eval "ac_cv_func_vprintf=yes"
24328 echo "configure: failed program was:" >&5
24329 cat conftest.$ac_ext >&5
24331 eval "ac_cv_func_vprintf=no"
24336 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
24337 echo "$ac_t""yes" 1>&6
24338 cat >> confdefs.h <<\EOF
24339 #define HAVE_VPRINTF 1
24343 echo "$ac_t""no" 1>&6
24346 if test "$ac_cv_func_vprintf" != yes; then
24347 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
24348 echo "configure:24349: checking for _doprnt" >&5
24349 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
24350 echo $ac_n "(cached) $ac_c" 1>&6
24352 cat > conftest.$ac_ext <<EOF
24353 #line 24354 "configure"
24354 #include "confdefs.h"
24355 /* System header to define __stub macros and hopefully few prototypes,
24356 which can conflict with char _doprnt(); below. */
24357 #include <assert.h>
24358 /* Override any gcc2 internal prototype to avoid an error. */
24359 /* We use char because int might match the return type of a gcc2
24360 builtin and then its argument prototype would still apply. */
24366 /* The GNU C library defines this for functions which it implements
24367 to always fail with ENOSYS. Some functions are actually named
24368 something starting with __ and the normal name is an alias. */
24369 #if defined (__stub__doprnt) || defined (__stub____doprnt)
24377 if { (eval echo configure:24378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
24379 eval "ac_cv_func__doprnt=yes"
24381 echo "configure: failed program was:" >&5
24382 cat conftest.$ac_ext >&5
24384 eval "ac_cv_func__doprnt=no"
24389 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
24390 echo "$ac_t""yes" 1>&6
24391 cat >> confdefs.h <<\EOF
24392 #define HAVE_DOPRNT 1
24396 echo "$ac_t""no" 1>&6
24402 if test $ac_cv_func_vprintf = yes ; then
24403 for ac_func in snprintf vsnprintf
24405 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
24406 echo "configure:24407: checking for $ac_func" >&5
24407 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
24408 echo $ac_n "(cached) $ac_c" 1>&6
24410 cat > conftest.$ac_ext <<EOF
24411 #line 24412 "configure"
24412 #include "confdefs.h"
24413 /* System header to define __stub macros and hopefully few prototypes,
24414 which can conflict with char $ac_func(); below. */
24415 #include <assert.h>
24416 /* Override any gcc2 internal prototype to avoid an error. */
24417 /* We use char because int might match the return type of a gcc2
24418 builtin and then its argument prototype would still apply. */
24424 /* The GNU C library defines this for functions which it implements
24425 to always fail with ENOSYS. Some functions are actually named
24426 something starting with __ and the normal name is an alias. */
24427 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24435 if { (eval echo configure:24436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
24437 eval "ac_cv_func_$ac_func=yes"
24439 echo "configure: failed program was:" >&5
24440 cat conftest.$ac_ext >&5
24442 eval "ac_cv_func_$ac_func=no"
24447 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
24448 echo "$ac_t""yes" 1>&6
24449 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
24450 cat >> confdefs.h <<EOF
24451 #define $ac_tr_func 1
24455 echo "$ac_t""no" 1>&6
24519 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
24520 echo "configure:24521: checking for $ac_func" >&5
24521 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
24522 echo $ac_n "(cached) $ac_c" 1>&6
24524 cat > conftest.$ac_ext <<EOF
24525 #line 24526 "configure"
24526 #include "confdefs.h"
24527 /* System header to define __stub macros and hopefully few prototypes,
24528 which can conflict with char $ac_func(); below. */
24529 #include <assert.h>
24530 /* Override any gcc2 internal prototype to avoid an error. */
24531 /* We use char because int might match the return type of a gcc2
24532 builtin and then its argument prototype would still apply. */
24538 /* The GNU C library defines this for functions which it implements
24539 to always fail with ENOSYS. Some functions are actually named
24540 something starting with __ and the normal name is an alias. */
24541 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24549 if { (eval echo configure:24550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
24551 eval "ac_cv_func_$ac_func=yes"
24553 echo "configure: failed program was:" >&5
24554 cat conftest.$ac_ext >&5
24556 eval "ac_cv_func_$ac_func=no"
24561 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
24562 echo "$ac_t""yes" 1>&6
24563 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
24564 cat >> confdefs.h <<EOF
24565 #define $ac_tr_func 1
24569 echo "$ac_t""no" 1>&6
24574 for ac_func in getopt getpeereid
24576 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
24577 echo "configure:24578: checking for $ac_func" >&5
24578 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
24579 echo $ac_n "(cached) $ac_c" 1>&6
24581 cat > conftest.$ac_ext <<EOF
24582 #line 24583 "configure"
24583 #include "confdefs.h"
24584 /* System header to define __stub macros and hopefully few prototypes,
24585 which can conflict with char $ac_func(); below. */
24586 #include <assert.h>
24587 /* Override any gcc2 internal prototype to avoid an error. */
24588 /* We use char because int might match the return type of a gcc2
24589 builtin and then its argument prototype would still apply. */
24595 /* The GNU C library defines this for functions which it implements
24596 to always fail with ENOSYS. Some functions are actually named
24597 something starting with __ and the normal name is an alias. */
24598 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24606 if { (eval echo configure:24607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
24608 eval "ac_cv_func_$ac_func=yes"
24610 echo "configure: failed program was:" >&5
24611 cat conftest.$ac_ext >&5
24613 eval "ac_cv_func_$ac_func=no"
24618 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
24619 echo "$ac_t""yes" 1>&6
24620 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
24621 cat >> confdefs.h <<EOF
24622 #define $ac_tr_func 1
24626 echo "$ac_t""no" 1>&6
24627 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
24633 if test "$ac_cv_func_getopt" != yes; then
24634 LIBSRCS="$LIBSRCS getopt.c"
24636 if test "$ac_cv_func_getpeereid" != yes; then
24637 echo $ac_n "checking for msg_accrights in msghdr""... $ac_c" 1>&6
24638 echo "configure:24639: checking for msg_accrights in msghdr" >&5
24639 if eval "test \"\${ol_cv_msghdr_msg_accrights+set}\" = set"; then
24640 echo $ac_n "(cached) $ac_c" 1>&6
24642 cat > conftest.$ac_ext <<EOF
24643 #line 24644 "configure"
24644 #include "confdefs.h"
24645 #include <sys/socket.h>
24647 struct msghdr m; m.msg_accrightslen=0
24650 if { (eval echo configure:24651: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
24652 ol_cv_msghdr_msg_accrights=yes
24654 echo "configure: failed program was:" >&5
24655 cat conftest.$ac_ext >&5
24657 ol_cv_msghdr_msg_accrights=no
24663 echo "$ac_t""$ol_cv_msghdr_msg_accrights" 1>&6
24664 if test $ol_cv_msghdr_msg_accrights = "yes" ; then
24665 cat >> confdefs.h <<\EOF
24666 #define HAVE_MSGHDR_MSG_ACCRIGHTS 1
24671 LIBSRCS="$LIBSRCS getpeereid.c"
24673 if test "$ac_cv_func_snprintf" != yes -o "$ac_cv_func_vsnprintf" != yes; then
24674 if test "$ac_cv_func_snprintf" != yes; then
24675 cat >> confdefs.h <<\EOF
24676 #define snprintf ber_pvt_snprintf
24680 if test "$ac_cv_func_vsnprintf" != yes; then
24681 cat >> confdefs.h <<\EOF
24682 #define vsnprintf ber_pvt_vsnprintf
24689 if test "$ol_enable_slapi" != no ; then
24690 for ac_hdr in ltdl.h
24692 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
24693 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
24694 echo "configure:24695: checking for $ac_hdr" >&5
24695 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
24696 echo $ac_n "(cached) $ac_c" 1>&6
24698 cat > conftest.$ac_ext <<EOF
24699 #line 24700 "configure"
24700 #include "confdefs.h"
24703 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
24704 { (eval echo configure:24705: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
24705 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
24706 if test -z "$ac_err"; then
24708 eval "ac_cv_header_$ac_safe=yes"
24711 echo "configure: failed program was:" >&5
24712 cat conftest.$ac_ext >&5
24714 eval "ac_cv_header_$ac_safe=no"
24718 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
24719 echo "$ac_t""yes" 1>&6
24720 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
24721 cat >> confdefs.h <<EOF
24722 #define $ac_tr_hdr 1
24726 echo "$ac_t""no" 1>&6
24731 if test $ac_cv_header_ltdl_h != yes ; then
24732 { echo "configure: error: could not locate <ltdl.h>" 1>&2; exit 1; }
24734 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
24735 echo "configure:24736: checking for lt_dlinit in -lltdl" >&5
24736 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
24737 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
24738 echo $ac_n "(cached) $ac_c" 1>&6
24740 ac_save_LIBS="$LIBS"
24741 LIBS="-lltdl $LIBS"
24742 cat > conftest.$ac_ext <<EOF
24743 #line 24744 "configure"
24744 #include "confdefs.h"
24745 /* Override any gcc2 internal prototype to avoid an error. */
24746 /* We use char because int might match the return type of a gcc2
24747 builtin and then its argument prototype would still apply. */
24754 if { (eval echo configure:24755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
24756 eval "ac_cv_lib_$ac_lib_var=yes"
24758 echo "configure: failed program was:" >&5
24759 cat conftest.$ac_ext >&5
24761 eval "ac_cv_lib_$ac_lib_var=no"
24764 LIBS="$ac_save_LIBS"
24767 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
24768 echo "$ac_t""yes" 1>&6
24771 LIBSLAPI=libslapi.a
24772 LIBSLAPITOOLS=../libslapi.a
24773 cat >> confdefs.h <<\EOF
24774 #define HAVE_LIBLTDL 1
24779 echo "$ac_t""no" 1>&6
24780 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
24784 cat >> confdefs.h <<\EOF
24785 #define LDAP_SLAPI 1
24790 if test "$ol_enable_debug" != no ; then
24791 cat >> confdefs.h <<\EOF
24792 #define LDAP_DEBUG 1
24796 if test "$ol_enable_syslog" = yes ; then
24797 cat >> confdefs.h <<\EOF
24798 #define LDAP_SYSLOG 1
24802 if test "$ol_link_kbind" != no ; then
24803 cat >> confdefs.h <<\EOF
24804 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
24808 if test "$ol_enable_proctitle" != no ; then
24809 cat >> confdefs.h <<\EOF
24810 #define LDAP_PROCTITLE 1
24814 if test "$ol_enable_referrals" != no ; then
24815 cat >> confdefs.h <<\EOF
24816 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
24820 if test "$ol_enable_local" != no; then
24821 cat >> confdefs.h <<\EOF
24822 #define LDAP_PF_LOCAL 1
24826 if test "$ol_link_ipv6" != no; then
24827 cat >> confdefs.h <<\EOF
24828 #define LDAP_PF_INET6 1
24832 if test "$ol_enable_cleartext" != no ; then
24833 cat >> confdefs.h <<\EOF
24834 #define SLAPD_CLEARTEXT 1
24838 if test "$ol_enable_crypt" != no ; then
24839 cat >> confdefs.h <<\EOF
24840 #define SLAPD_CRYPT 1
24844 if test "$ol_link_spasswd" != no ; then
24845 cat >> confdefs.h <<\EOF
24846 #define SLAPD_SPASSWD 1
24850 if test "$ol_enable_multimaster" != no ; then
24851 cat >> confdefs.h <<\EOF
24852 #define SLAPD_MULTIMASTER 1
24856 if test "$ol_enable_rlookups" != no ; then
24857 cat >> confdefs.h <<\EOF
24858 #define SLAPD_RLOOKUPS 1
24862 if test "$ol_enable_aci" != no ; then
24863 cat >> confdefs.h <<\EOF
24864 #define SLAPD_ACI_ENABLED 1
24869 if test "$ol_link_modules" != no ; then
24870 cat >> confdefs.h <<\EOF
24871 #define SLAPD_MODULES 1
24875 SLAPD_MODULES_LDFLAGS="-dlopen self"
24878 cat >> confdefs.h <<\EOF
24879 #define SLAPD_MOD_STATIC 1
24882 cat >> confdefs.h <<\EOF
24883 #define SLAPD_MOD_DYNAMIC 2
24887 if test "$ol_enable_bdb" != no ; then
24889 BUILD_BDB=$ol_enable_bdb
24890 if test "$ol_enable_bdb" = mod ; then
24891 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
24892 MFLAG=SLAPD_MOD_DYNAMIC
24894 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
24895 MFLAG=SLAPD_MOD_STATIC
24897 cat >> confdefs.h <<EOF
24898 #define SLAPD_BDB $MFLAG
24903 if test "$ol_enable_dnssrv" != no ; then
24905 BUILD_DNSSRV=$ol_enable_dnssrv
24906 if test "$ol_enable_dnssrv" = mod ; then
24907 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
24908 MFLAG=SLAPD_MOD_DYNAMIC
24910 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
24911 MFLAG=SLAPD_MOD_STATIC
24913 cat >> confdefs.h <<EOF
24914 #define SLAPD_DNSSRV $MFLAG
24919 if test "$ol_enable_hdb" != no ; then
24921 BUILD_HDB=$ol_enable_hdb
24922 if test "$ol_enable_hdb" = mod ; then
24923 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
24924 MFLAG=SLAPD_MOD_DYNAMIC
24926 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
24927 MFLAG=SLAPD_MOD_STATIC
24929 cat >> confdefs.h <<EOF
24930 #define SLAPD_HDB $MFLAG
24935 if test "$ol_enable_ldap" != no ; then
24937 BUILD_LDAP=$ol_enable_ldap
24938 if test "$ol_enable_ldap" = mod ; then
24939 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
24940 MFLAG=SLAPD_MOD_DYNAMIC
24942 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
24943 MFLAG=SLAPD_MOD_STATIC
24945 cat >> confdefs.h <<EOF
24946 #define SLAPD_LDAP $MFLAG
24951 if test "$ol_link_ldbm" != no -a $ol_enable_ldbm != no; then
24953 BUILD_LDBM=$ol_enable_ldbm
24954 if test "$ol_enable_ldbm" = mod ; then
24955 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
24956 MFLAG=SLAPD_MOD_DYNAMIC
24958 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
24959 MFLAG=SLAPD_MOD_STATIC
24961 cat >> confdefs.h <<EOF
24962 #define SLAPD_LDBM $MFLAG
24967 if test "$ol_enable_meta" != no ; then
24969 BUILD_META=$ol_enable_meta
24971 if test "$ol_enable_meta" = mod ; then
24972 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
24973 MFLAG=SLAPD_MOD_DYNAMIC
24975 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
24976 MFLAG=SLAPD_MOD_STATIC
24978 cat >> confdefs.h <<EOF
24979 #define SLAPD_META $MFLAG
24984 if test "$ol_enable_monitor" != no ; then
24986 BUILD_MONITOR=$ol_enable_monitor
24987 if test "$ol_enable_monitor" = mod ; then
24988 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
24989 MFLAG=SLAPD_MOD_DYNAMIC
24991 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
24992 MFLAG=SLAPD_MOD_STATIC
24994 cat >> confdefs.h <<EOF
24995 #define SLAPD_MONITOR $MFLAG
25000 if test "$ol_enable_null" != no ; then
25002 BUILD_NULL=$ol_enable_null
25003 if test "$ol_enable_null" = mod ; then
25004 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
25005 MFLAG=SLAPD_MOD_DYNAMIC
25007 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
25008 MFLAG=SLAPD_MOD_STATIC
25010 cat >> confdefs.h <<EOF
25011 #define SLAPD_NULL $MFLAG
25016 if test "$ol_enable_passwd" != no ; then
25018 BUILD_PASSWD=$ol_enable_passwd
25019 if test "$ol_enable_passwd" = mod ; then
25020 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
25021 MFLAG=SLAPD_MOD_DYNAMIC
25023 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
25024 MFLAG=SLAPD_MOD_STATIC
25026 cat >> confdefs.h <<EOF
25027 #define SLAPD_PASSWD $MFLAG
25032 if test "$ol_link_perl" != no ; then
25034 BUILD_PERL=$ol_enable_perl
25035 if test "$ol_enable_perl" = mod ; then
25036 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
25037 MFLAG=SLAPD_MOD_DYNAMIC
25039 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
25040 MFLAG=SLAPD_MOD_STATIC
25042 cat >> confdefs.h <<EOF
25043 #define SLAPD_PERL $MFLAG
25048 if test "$ol_enable_relay" != no ; then
25050 BUILD_RELAY=$ol_enable_relay
25051 if test "$ol_enable_relay" = mod ; then
25052 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
25053 MFLAG=SLAPD_MOD_DYNAMIC
25055 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
25056 MFLAG=SLAPD_MOD_STATIC
25058 cat >> confdefs.h <<EOF
25059 #define SLAPD_RELAY $MFLAG
25064 if test "$ol_enable_shell" != no ; then
25065 if test "$ol_link_thread" != no ; then
25066 echo "configure: warning: Use of --without-threads is recommended with back-shell" 1>&2
25069 BUILD_SHELL=$ol_enable_shell
25070 if test "$ol_enable_shell" = mod ; then
25071 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
25072 MFLAG=SLAPD_MOD_DYNAMIC
25074 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
25075 MFLAG=SLAPD_MOD_STATIC
25077 cat >> confdefs.h <<EOF
25078 #define SLAPD_SHELL $MFLAG
25083 if test "$ol_link_sql" != no ; then
25085 BUILD_SQL=$ol_enable_sql
25086 if test "$ol_enable_sql" = mod; then
25087 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
25088 MFLAG=SLAPD_MOD_DYNAMIC
25090 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
25091 MFLAG=SLAPD_MOD_STATIC
25093 cat >> confdefs.h <<EOF
25094 #define SLAPD_SQL $MFLAG
25099 if test "$ol_enable_chain" != no ; then
25100 BUILD_CHAIN=$ol_enable_chain
25101 if test "$ol_enable_chain" = mod ; then
25102 MFLAG=SLAPD_MOD_DYNAMIC
25103 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS chain.la"
25105 MFLAG=SLAPD_MOD_STATIC
25107 cat >> confdefs.h <<EOF
25108 #define SLAPD_OVER_CHAIN $MFLAG
25113 if test "$ol_enable_denyop" != no ; then
25114 BUILD_DENYOP=$ol_enable_denyop
25115 if test "$ol_enable_denyop" = mod ; then
25116 MFLAG=SLAPD_MOD_DYNAMIC
25117 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS denyop.la"
25119 MFLAG=SLAPD_MOD_STATIC
25121 cat >> confdefs.h <<EOF
25122 #define SLAPD_OVER_DENYOP $MFLAG
25127 if test "$ol_enable_dyngroup" != no ; then
25128 BUILD_DYNGROUP=$ol_enable_dyngroup
25129 if test "$ol_enable_dyngroup" = mod ; then
25130 MFLAG=SLAPD_MOD_DYNAMIC
25131 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
25133 MFLAG=SLAPD_MOD_STATIC
25135 cat >> confdefs.h <<EOF
25136 #define SLAPD_OVER_DYNGROUP $MFLAG
25141 if test "$ol_enable_glue" != no ; then
25142 BUILD_GLUE=$ol_enable_glue
25143 if test "$ol_enable_glue" = mod ; then
25144 MFLAG=SLAPD_MOD_DYNAMIC
25145 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS glue.la"
25147 MFLAG=SLAPD_MOD_STATIC
25149 cat >> confdefs.h <<EOF
25150 #define SLAPD_OVER_GLUE $MFLAG
25155 if test "$ol_enable_lastmod" != no ; then
25156 BUILD_LASTMOD=$ol_enable_lastmod
25157 if test "$ol_enable_lastmod" = mod ; then
25158 MFLAG=SLAPD_MOD_DYNAMIC
25159 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS lastmod.la"
25161 MFLAG=SLAPD_MOD_STATIC
25163 cat >> confdefs.h <<EOF
25164 #define SLAPD_OVER_LASTMOD $MFLAG
25169 if test "$ol_enable_ppolicy" != no ; then
25170 BUILD_PPOLICY=$ol_enable_ppolicy
25171 if test "$ol_enable_ppolicy" = mod ; then
25172 MFLAG=SLAPD_MOD_DYNAMIC
25173 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
25175 MFLAG=SLAPD_MOD_STATIC
25177 cat >> confdefs.h <<EOF
25178 #define SLAPD_OVER_PPOLICY $MFLAG
25183 if test "$ol_enable_proxycache" != no ; then
25184 BUILD_PROXYCACHE=$ol_enable_proxycache
25185 if test "$ol_enable_proxycache" = mod ; then
25186 MFLAG=SLAPD_MOD_DYNAMIC
25187 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
25189 MFLAG=SLAPD_MOD_STATIC
25191 cat >> confdefs.h <<EOF
25192 #define SLAPD_OVER_PROXYCACHE $MFLAG
25197 if test "$ol_enable_refint" != no ; then
25198 BUILD_REFINT=$ol_enable_refint
25199 if test "$ol_enable_refint" = mod ; then
25200 MFLAG=SLAPD_MOD_DYNAMIC
25201 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
25203 MFLAG=SLAPD_MOD_STATIC
25205 cat >> confdefs.h <<EOF
25206 #define SLAPD_OVER_REFINT $MFLAG
25211 if test "$ol_enable_rwm" != no ; then
25213 BUILD_RWM=$ol_enable_rwm
25214 if test "$ol_enable_rwm" = mod ; then
25215 MFLAG=SLAPD_MOD_DYNAMIC
25216 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
25218 MFLAG=SLAPD_MOD_STATIC
25220 cat >> confdefs.h <<EOF
25221 #define SLAPD_OVER_RWM $MFLAG
25226 if test "$ol_enable_syncprov" != no ; then
25227 BUILD_SYNCPROV=$ol_enable_syncprov
25228 if test "$ol_enable_syncprov" = mod ; then
25229 MFLAG=SLAPD_MOD_DYNAMIC
25230 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
25232 MFLAG=SLAPD_MOD_STATIC
25234 cat >> confdefs.h <<EOF
25235 #define SLAPD_OVER_SYNCPROV $MFLAG
25240 if test "$ol_enable_unique" != no ; then
25241 BUILD_UNIQUE=$ol_enable_unique
25242 if test "$ol_enable_unique" = mod ; then
25243 MFLAG=SLAPD_MOD_DYNAMIC
25244 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
25246 MFLAG=SLAPD_MOD_STATIC
25248 cat >> confdefs.h <<EOF
25249 #define SLAPD_OVER_UNIQUE $MFLAG
25254 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
25255 $BUILD_SLAPD = yes ; then
25259 if test "$ol_enable_rewrite" != no ; then
25260 cat >> confdefs.h <<\EOF
25261 #define ENABLE_REWRITE 1
25267 if test "$ol_enable_slapi" != no ; then
25268 cat >> confdefs.h <<\EOF
25269 #define ENABLE_SLAPI 1
25273 SLAPD_SLAPI_DEPEND=libslapi.a
25278 if test "$ac_cv_mingw32" = yes ; then
25280 SLAPD_MODULES_LDFLAGS=
25358 # Check whether --with-xxinstall or --without-xxinstall was given.
25359 if test "${with_xxinstall+set}" = set; then
25360 withval="$with_xxinstall"
25368 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
25370 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25371 # Let make expand exec_prefix.
25372 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25374 # Any assignment to VPATH causes Sun make to only execute
25375 # the first set of double-colon rules, so remove it if not needed.
25376 # If there is a colon in the path, we need to keep it.
25377 if test "x$srcdir" = x.; then
25378 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
25381 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
25383 DEFS=-DHAVE_CONFIG_H
25385 # Without the "./", some shells look in PATH for config.status.
25386 : ${CONFIG_STATUS=./config.status}
25388 echo creating $CONFIG_STATUS
25389 rm -f $CONFIG_STATUS
25390 cat > $CONFIG_STATUS <<EOF
25392 # Generated automatically by configure.
25393 # Run this file to recreate the current configuration.
25394 # This directory was configured as follows,
25395 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25397 # $0 $ac_configure_args
25399 # Compiler output produced by configure, useful for debugging
25400 # configure, is in ./config.log if it exists.
25402 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
25405 case "\$ac_option" in
25406 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25407 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
25408 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
25409 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
25410 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
25412 -help | --help | --hel | --he | --h)
25413 echo "\$ac_cs_usage"; exit 0 ;;
25414 *) echo "\$ac_cs_usage"; exit 1 ;;
25418 ac_given_srcdir=$srcdir
25419 ac_given_INSTALL="$INSTALL"
25421 trap 'rm -fr `echo "\
25422 Makefile:build/top.mk:Makefile.in:build/dir.mk \
25423 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
25424 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
25425 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
25426 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
25427 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
25428 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
25429 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
25430 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
25431 include/Makefile:build/top.mk:include/Makefile.in \
25432 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
25433 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
25434 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
25435 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
25436 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
25437 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
25438 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
25439 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
25440 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
25441 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
25442 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
25443 servers/slapd/back-hdb/Makefile:build/top.mk:servers/slapd/back-hdb/Makefile.in:build/mod.mk \
25444 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
25445 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
25446 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
25447 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
25448 servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk \
25449 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
25450 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
25451 servers/slapd/back-relay/Makefile:build/top.mk:servers/slapd/back-relay/Makefile.in:build/mod.mk \
25452 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
25453 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
25454 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
25455 servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk \
25456 servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk \
25457 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
25458 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
25460 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
25461 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
25463 cat >> $CONFIG_STATUS <<EOF
25465 # Protect against being on the right side of a sed subst in config.status.
25466 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
25467 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
25471 s%@CFLAGS@%$CFLAGS%g
25472 s%@CPPFLAGS@%$CPPFLAGS%g
25473 s%@CXXFLAGS@%$CXXFLAGS%g
25474 s%@FFLAGS@%$FFLAGS%g
25476 s%@LDFLAGS@%$LDFLAGS%g
25478 s%@exec_prefix@%$exec_prefix%g
25479 s%@prefix@%$prefix%g
25480 s%@program_transform_name@%$program_transform_name%g
25481 s%@bindir@%$bindir%g
25482 s%@sbindir@%$sbindir%g
25483 s%@libexecdir@%$libexecdir%g
25484 s%@datadir@%$datadir%g
25485 s%@sysconfdir@%$sysconfdir%g
25486 s%@sharedstatedir@%$sharedstatedir%g
25487 s%@localstatedir@%$localstatedir%g
25488 s%@libdir@%$libdir%g
25489 s%@includedir@%$includedir%g
25490 s%@oldincludedir@%$oldincludedir%g
25491 s%@infodir@%$infodir%g
25492 s%@mandir@%$mandir%g
25494 s%@host_alias@%$host_alias%g
25495 s%@host_cpu@%$host_cpu%g
25496 s%@host_vendor@%$host_vendor%g
25497 s%@host_os@%$host_os%g
25498 s%@target@%$target%g
25499 s%@target_alias@%$target_alias%g
25500 s%@target_cpu@%$target_cpu%g
25501 s%@target_vendor@%$target_vendor%g
25502 s%@target_os@%$target_os%g
25504 s%@build_alias@%$build_alias%g
25505 s%@build_cpu@%$build_cpu%g
25506 s%@build_vendor@%$build_vendor%g
25507 s%@build_os@%$build_os%g
25508 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
25509 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
25510 s%@INSTALL_DATA@%$INSTALL_DATA%g
25511 s%@PACKAGE@%$PACKAGE%g
25512 s%@VERSION@%$VERSION%g
25513 s%@ACLOCAL@%$ACLOCAL%g
25514 s%@AUTOCONF@%$AUTOCONF%g
25515 s%@AUTOMAKE@%$AUTOMAKE%g
25516 s%@AUTOHEADER@%$AUTOHEADER%g
25517 s%@MAKEINFO@%$MAKEINFO%g
25518 s%@install_sh@%$install_sh%g
25521 s%@AMTARFLAGS@%$AMTARFLAGS%g
25522 s%@SET_MAKE@%$SET_MAKE%g
25523 s%@OPENLDAP_LIBRELEASE@%$OPENLDAP_LIBRELEASE%g
25524 s%@OPENLDAP_LIBVERSION@%$OPENLDAP_LIBVERSION%g
25525 s%@OPENLDAP_RELEASE_DATE@%$OPENLDAP_RELEASE_DATE%g
25526 s%@top_builddir@%$top_builddir%g
25527 s%@ldap_subdir@%$ldap_subdir%g
25531 s%@OBJEXT@%$OBJEXT%g
25532 s%@EXEEXT@%$EXEEXT%g
25534 s%@RANLIB@%$RANLIB%g
25536 s%@DLLTOOL@%$DLLTOOL%g
25538 s%@OBJDUMP@%$OBJDUMP%g
25540 s%@LIBTOOL@%$LIBTOOL%g
25541 s%@PERLBIN@%$PERLBIN%g
25542 s%@OL_MKDEP@%$OL_MKDEP%g
25543 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
25544 s%@LTSTATIC@%$LTSTATIC%g
25545 s%@LIBOBJS@%$LIBOBJS%g
25546 s%@LIBSRCS@%$LIBSRCS%g
25548 s%@WITH_SASL@%$WITH_SASL%g
25549 s%@WITH_TLS@%$WITH_TLS%g
25550 s%@WITH_MODULES_ENABLED@%$WITH_MODULES_ENABLED%g
25551 s%@BUILD_LIBS_DYNAMIC@%$BUILD_LIBS_DYNAMIC%g
25552 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
25553 s%@BUILD_SLAPI@%$BUILD_SLAPI%g
25554 s%@SLAPD_SLAPI_DEPEND@%$SLAPD_SLAPI_DEPEND%g
25555 s%@BUILD_BDB@%$BUILD_BDB%g
25556 s%@BUILD_DNSSRV@%$BUILD_DNSSRV%g
25557 s%@BUILD_HDB@%$BUILD_HDB%g
25558 s%@BUILD_LDAP@%$BUILD_LDAP%g
25559 s%@BUILD_LDBM@%$BUILD_LDBM%g
25560 s%@BUILD_META@%$BUILD_META%g
25561 s%@BUILD_MONITOR@%$BUILD_MONITOR%g
25562 s%@BUILD_NULL@%$BUILD_NULL%g
25563 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
25564 s%@BUILD_RELAY@%$BUILD_RELAY%g
25565 s%@BUILD_PERL@%$BUILD_PERL%g
25566 s%@BUILD_SHELL@%$BUILD_SHELL%g
25567 s%@BUILD_SQL@%$BUILD_SQL%g
25568 s%@BUILD_CHAIN@%$BUILD_CHAIN%g
25569 s%@BUILD_DENYOP@%$BUILD_DENYOP%g
25570 s%@BUILD_DYNGROUP@%$BUILD_DYNGROUP%g
25571 s%@BUILD_GLUE@%$BUILD_GLUE%g
25572 s%@BUILD_LASTMOD@%$BUILD_LASTMOD%g
25573 s%@BUILD_PPOLICY@%$BUILD_PPOLICY%g
25574 s%@BUILD_PROXYCACHE@%$BUILD_PROXYCACHE%g
25575 s%@BUILD_REFINT@%$BUILD_REFINT%g
25576 s%@BUILD_RWM@%$BUILD_RWM%g
25577 s%@BUILD_SYNCPROV@%$BUILD_SYNCPROV%g
25578 s%@BUILD_UNIQUE@%$BUILD_UNIQUE%g
25579 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
25580 s%@LDAP_LIBS@%$LDAP_LIBS%g
25581 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
25582 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
25583 s%@LDBM_LIBS@%$LDBM_LIBS%g
25584 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
25585 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
25586 s%@WRAP_LIBS@%$WRAP_LIBS%g
25587 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
25588 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
25589 s%@SLAPD_NO_STATIC@%$SLAPD_NO_STATIC%g
25590 s%@SLAPD_STATIC_BACKENDS@%$SLAPD_STATIC_BACKENDS%g
25591 s%@SLAPD_DYNAMIC_BACKENDS@%$SLAPD_DYNAMIC_BACKENDS%g
25592 s%@SLAPD_DYNAMIC_OVERLAYS@%$SLAPD_DYNAMIC_OVERLAYS%g
25593 s%@PERL_CPPFLAGS@%$PERL_CPPFLAGS%g
25594 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
25595 s%@MOD_PERL_LDFLAGS@%$MOD_PERL_LDFLAGS%g
25596 s%@KRB4_LIBS@%$KRB4_LIBS%g
25597 s%@KRB5_LIBS@%$KRB5_LIBS%g
25598 s%@SASL_LIBS@%$SASL_LIBS%g
25599 s%@TLS_LIBS@%$TLS_LIBS%g
25600 s%@MODULES_LIBS@%$MODULES_LIBS%g
25601 s%@SLAPI_LIBS@%$SLAPI_LIBS%g
25602 s%@LIBSLAPI@%$LIBSLAPI%g
25603 s%@LIBSLAPITOOLS@%$LIBSLAPITOOLS%g
25604 s%@AUTH_LIBS@%$AUTH_LIBS%g
25605 s%@SLAPD_SLP_LIBS@%$SLAPD_SLP_LIBS%g
25606 s%@SLAPD_GMP_LIBS@%$SLAPD_GMP_LIBS%g
25607 s%@SLAPD_SQL_LDFLAGS@%$SLAPD_SQL_LDFLAGS%g
25608 s%@SLAPD_SQL_LIBS@%$SLAPD_SQL_LIBS%g
25609 s%@SLAPD_SQL_INCLUDES@%$SLAPD_SQL_INCLUDES%g
25614 cat >> $CONFIG_STATUS <<\EOF
25616 # Split the substitutions into bite-sized pieces for seds with
25617 # small command number limits, like on Digital OSF/1 and HP-UX.
25618 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
25619 ac_file=1 # Number of current file.
25620 ac_beg=1 # First line for current file.
25621 ac_end=$ac_max_sed_cmds # Line after last line for current file.
25624 while $ac_more_lines; do
25625 if test $ac_beg -gt 1; then
25626 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
25628 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
25630 if test ! -s conftest.s$ac_file; then
25631 ac_more_lines=false
25632 rm -f conftest.s$ac_file
25634 if test -z "$ac_sed_cmds"; then
25635 ac_sed_cmds="sed -f conftest.s$ac_file"
25637 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
25639 ac_file=`expr $ac_file + 1`
25641 ac_end=`expr $ac_end + $ac_max_sed_cmds`
25644 if test -z "$ac_sed_cmds"; then
25649 cat >> $CONFIG_STATUS <<EOF
25651 CONFIG_FILES=\${CONFIG_FILES-"\
25652 Makefile:build/top.mk:Makefile.in:build/dir.mk \
25653 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
25654 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
25655 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
25656 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
25657 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
25658 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
25659 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
25660 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
25661 include/Makefile:build/top.mk:include/Makefile.in \
25662 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
25663 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
25664 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
25665 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
25666 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
25667 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
25668 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
25669 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
25670 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
25671 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
25672 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
25673 servers/slapd/back-hdb/Makefile:build/top.mk:servers/slapd/back-hdb/Makefile.in:build/mod.mk \
25674 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
25675 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
25676 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
25677 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
25678 servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk \
25679 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
25680 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
25681 servers/slapd/back-relay/Makefile:build/top.mk:servers/slapd/back-relay/Makefile.in:build/mod.mk \
25682 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
25683 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
25684 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
25685 servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk \
25686 servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk \
25687 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
25688 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
25690 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
25693 cat >> $CONFIG_STATUS <<\EOF
25694 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
25695 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25697 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
25698 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
25699 *) ac_file_in="${ac_file}.in" ;;
25702 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
25704 # Remove last slash and all that follows it. Not all systems have dirname.
25705 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
25706 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
25707 # The file is in a subdirectory.
25708 test ! -d "$ac_dir" && mkdir "$ac_dir"
25709 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
25710 # A "../" for each directory in $ac_dir_suffix.
25711 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
25713 ac_dir_suffix= ac_dots=
25716 case "$ac_given_srcdir" in
25718 if test -z "$ac_dots"; then top_srcdir=.
25719 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
25720 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
25721 *) # Relative path.
25722 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
25723 top_srcdir="$ac_dots$ac_given_srcdir" ;;
25726 case "$ac_given_INSTALL" in
25727 [/$]*) INSTALL="$ac_given_INSTALL" ;;
25728 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
25731 echo creating "$ac_file"
25733 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
25735 *[Mm]akefile*) ac_comsub="1i\\
25736 # $configure_input" ;;
25740 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
25742 s%@configure_input@%$configure_input%g
25743 s%@srcdir@%$srcdir%g
25744 s%@top_srcdir@%$top_srcdir%g
25745 s%@INSTALL@%$INSTALL%g
25746 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
25750 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
25751 # NAME is the cpp macro being defined and VALUE is the value it is being given.
25753 # ac_d sets the value in "#define NAME VALUE" lines.
25754 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
25755 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
25758 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
25759 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
25760 ac_uB='\([ ]\)%\1#\2define\3'
25763 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
25764 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
25765 ac_eB='$%\1#\2define\3'
25769 if test "${CONFIG_HEADERS+set}" != set; then
25771 cat >> $CONFIG_STATUS <<EOF
25772 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
25774 cat >> $CONFIG_STATUS <<\EOF
25776 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
25777 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25779 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
25780 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
25781 *) ac_file_in="${ac_file}.in" ;;
25784 echo creating $ac_file
25786 rm -f conftest.frag conftest.in conftest.out
25787 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
25788 cat $ac_file_inputs > conftest.in
25792 # Transform confdefs.h into a sed script conftest.vals that substitutes
25793 # the proper values into config.h.in to produce config.h. And first:
25794 # Protect against being on the right side of a sed subst in config.status.
25795 # Protect against being in an unquoted here document in config.status.
25796 rm -f conftest.vals
25797 cat > conftest.hdr <<\EOF
25800 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
25804 sed -n -f conftest.hdr confdefs.h > conftest.vals
25807 # This sed command replaces #undef with comments. This is necessary, for
25808 # example, in the case of _POSIX_SOURCE, which is predefined and required
25809 # on some systems where configure will not decide to define it.
25810 cat >> conftest.vals <<\EOF
25811 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
25814 # Break up conftest.vals because some shells have a limit on
25815 # the size of here documents, and old seds have small limits too.
25817 rm -f conftest.tail
25820 ac_lines=`grep -c . conftest.vals`
25821 # grep -c gives empty output for an empty file on some AIX systems.
25822 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
25823 # Write a limited-size here document to conftest.frag.
25824 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
25825 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
25827 sed -f conftest.frag conftest.in > conftest.out
25829 mv conftest.out conftest.in
25830 ' >> $CONFIG_STATUS
25831 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
25832 rm -f conftest.vals
25833 mv conftest.tail conftest.vals
25835 rm -f conftest.vals
25837 cat >> $CONFIG_STATUS <<\EOF
25838 rm -f conftest.frag conftest.h
25839 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
25840 cat conftest.in >> conftest.h
25842 if cmp -s $ac_file conftest.h 2>/dev/null; then
25843 echo "$ac_file is unchanged"
25846 # Remove last slash and all that follows it. Not all systems have dirname.
25847 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
25848 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
25849 # The file is in a subdirectory.
25850 test ! -d "$ac_dir" && mkdir "$ac_dir"
25853 mv conftest.h $ac_file
25858 cat >> $CONFIG_STATUS <<EOF
25859 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
25861 cat >> $CONFIG_STATUS <<\EOF
25865 BACKENDSC="servers/slapd/backends.c"
25866 echo "Making $BACKENDSC"
25868 cat > $BACKENDSC << ENDX
25869 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
25871 * Copyright 1998-2005 The OpenLDAP Foundation.
25872 * All rights reserved.
25874 * Redistribution and use in source and binary forms, with or without
25875 * modification, are permitted only as authorized by the OpenLDAP
25878 * A copy of this license is available in the file LICENSE in the
25879 * top-level directory of the distribution or, alternatively, at
25880 * <http://www.OpenLDAP.org/license.html>.
25882 /* This file is automatically generated by configure; please do not edit. */
25884 #include "portable.h"
25888 if test "${STATIC_BACKENDS}"; then
25889 for b in ${STATIC_BACKENDS}; do
25890 bb=`echo "${b}" | sed -e 's/back-//'`
25891 cat >> $BACKENDSC << ENDX
25892 extern BI_init ${bb}_back_initialize;
25896 cat >> $BACKENDSC << ENDX
25898 BackendInfo slap_binfo[] = {
25901 for b in ${STATIC_BACKENDS}; do
25902 bb=`echo "${b}" | sed -e 's/back-//'`
25903 echo " Add ${bb} ..."
25904 cat >> $BACKENDSC << ENDX
25905 { "${bb}", ${bb}_back_initialize },
25909 cat >> $BACKENDSC << ENDX
25913 /* end of generated file */
25917 echo Please run \"make depend\" to build dependencies
25921 chmod +x $CONFIG_STATUS
25922 rm -fr confdefs* $ac_clean_files
25923 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1