3 # from OpenLDAP: pkg/ldap/configure.in,v 1.479 2003/05/31 00:54:06 kurt Exp
5 # Copyright 1998-2003 The OpenLDAP Foundation. All Rights Reserved.
7 # Redistribution and use in source and binary forms, with or without
8 # modification, are permitted only as authorized by the OpenLDAP
9 # Public License. A copy of this license is available at
10 # http://www.OpenLDAP.org/license.html or in file LICENSE in the
11 # top-level directory of the distribution.
13 echo "Copyright 1998-2003 The OpenLDAP Foundation, All Rights Reserved."
14 echo " Restrictions apply, see COPYRIGHT and LICENSE files."
16 # Guess values for system-dependent variables and create Makefiles.
17 # Generated automatically using autoconf version 2.13.1
18 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
20 # This configure script is free software; the Free Software Foundation
21 # gives unlimited permission to copy, distribute and modify it.
25 ac_default_prefix=/usr/local
26 # Any additions from configure.in:
27 ac_default_prefix=/usr/local
29 --with-subdir=DIR change default subdirectory used for installs"
31 --enable-debug enable debugging [yes]"
33 --enable-dynamic enable linking built binaries with dynamic libs [no]"
35 --enable-syslog enable syslog support [auto]"
37 --enable-proctitle enable proctitle support [yes]"
39 --enable-ipv6 enable IPv6 support [auto]"
41 --enable-local enable AF_LOCAL (AF_UNIX) socket support [auto]"
43 --enable-x-compile enable cross compiling [no]"
45 --with-cyrus-sasl with Cyrus SASL support [auto]"
47 --with-fetch with fetch(3) URL support [auto]"
49 --with-kerberos with Kerberos support [auto]"
51 --with-threads with threads [auto]"
53 --with-tls with TLS/SSL support [auto]"
55 --with-yielding-select with implicitly yielding select [auto]"
58 SLAPD (Standalone LDAP Daemon) Options:"
60 --enable-slapd enable building slapd [yes]"
62 --enable-aci enable per-object ACIs (experimental) [no]"
64 --enable-cleartext enable cleartext passwords [yes]"
66 --enable-crypt enable crypt(3) passwords [no]"
68 --enable-kpasswd enable Kerberos password verification [no]"
70 --enable-lmpasswd enable LAN Manager passwords [no]"
72 --enable-spasswd enable (Cyrus) SASL password verification [no]"
74 --enable-modules enable dynamic module support [no]"
76 --enable-rewrite enable DN rewriting in back-ldap and back-meta [no]"
78 --enable-rlookups enable reverse lookups of client hostnames [no]"
80 --enable-slapi enable SLAPI support (experimental) [no]"
82 --enable-slp enable SLPv2 support [no]"
84 --enable-wrappers enable tcp wrapper support [no]"
86 --enable-bdb enable Berkeley DB backend [yes]"
88 --with-bdb-module module type static|dynamic [static]"
90 --enable-dnssrv enable dnssrv backend [no]"
92 --with-dnssrv-module module type static|dynamic [static]"
94 --enable-hdb enable Hierarchical DB backend [no]"
96 --with-hdb-module module type static|dynamic [static]"
98 --enable-ldap enable ldap backend [no]"
100 --with-ldap-module module type static|dynamic [static]"
102 --enable-ldbm enable ldbm backend [no]"
104 --with-ldbm-api with LDBM API auto|berkeley|bcompat|mdbm|gdbm [auto]"
106 --with-ldbm-module module type static|dynamic [static]"
108 --with-ldbm-type use LDBM type auto|btree|hash [auto]"
110 --enable-meta enable metadirectory backend [no]"
112 --with-meta-module module type static|dynamic [static]"
114 --enable-monitor enable monitor backend [no]"
116 --with-monitor-module module type static|dynamic [static]"
118 --enable-null enable null backend [no]"
120 --with-null-module module type static|dynamic [static]"
122 --enable-passwd enable passwd backend [no]"
124 --with-passwd-module module type static|dynamic [static]"
126 --enable-perl enable perl backend [no]"
128 --with-perl-module module type static|dynamic [static]"
130 --enable-shell enable shell backend [no]"
132 --with-shell-module module type static|dynamic [static]"
134 --enable-sql enable sql backend [no]"
136 --with-sql-module module type static|dynamic [static]"
138 --enable-tcl enable tcl backend [no]"
140 --with-tcl-module module type static|dynamic [static]"
143 SLURPD (Replication Daemon) Options:"
145 --enable-slurpd enable building slurpd [auto]"
148 Library Generation & Linking Options"
150 --enable-static[=PKGS] build static libraries [default=yes]"
152 --enable-shared[=PKGS] build shared libraries [default=yes]"
154 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
156 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
158 # Find the correct PATH separator. Usually this is `:', but
159 # DJGPP uses `;' like DOS.
160 if test "X${PATH_SEPARATOR+set}" != Xset; then
161 UNAME=${UNAME-`uname 2>/dev/null`}
163 *-DOS) lt_cv_sys_path_separator=';' ;;
164 *) lt_cv_sys_path_separator=':' ;;
166 PATH_SEPARATOR=$lt_cv_sys_path_separator
170 # Check that we are running under the correct shell.
171 SHELL=${CONFIG_SHELL-/bin/sh}
175 # Remove one level of quotation (which was required for Make).
176 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
181 if test "X$1" = X--no-reexec; then
182 # Discard the --no-reexec flag, and continue.
184 elif test "X$1" = X--fallback-echo; then
185 # Avoid inline document here, it may be left over
187 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
188 # Yippee, $echo works!
191 # Restart under the correct shell.
192 exec $SHELL "$0" --no-reexec ${1+"$@"}
195 if test "X$1" = X--fallback-echo; then
196 # used as fallback echo
204 # The HP-UX ksh and POSIX shell print the target directory to stdout
206 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
208 if test -z "$ECHO"; then
209 if test "X${echo_test_string+set}" != Xset; then
210 # find a string as large as possible, as long as the shell can cope with it
211 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
212 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
213 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
214 echo_test_string="`eval $cmd`" &&
215 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
222 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
223 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
224 test "X$echo_testing_string" = "X$echo_test_string"; then
227 # The Solaris, AIX, and Digital Unix default echo programs unquote
228 # backslashes. This makes it impossible to quote backslashes using
229 # echo "$something" | sed 's/\\/\\\\/g'
231 # So, first we look for a working echo in the user's PATH.
233 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
234 for dir in $PATH /usr/ucb; do
235 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
236 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
237 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
238 test "X$echo_testing_string" = "X$echo_test_string"; then
245 if test "X$echo" = Xecho; then
246 # We didn't find a better echo, so look for alternatives.
247 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
248 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
249 test "X$echo_testing_string" = "X$echo_test_string"; then
250 # This shell has a builtin print -r that does the trick.
252 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
253 test "X$CONFIG_SHELL" != X/bin/ksh; then
254 # If we have ksh, try running configure again with it.
255 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
256 export ORIGINAL_CONFIG_SHELL
257 CONFIG_SHELL=/bin/ksh
259 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
263 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
264 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
265 test "X$echo_testing_string" = "X$echo_test_string"; then
268 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
269 test "X$echo_testing_string" = 'X\t' &&
270 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
271 test "X$echo_testing_string" = "X$echo_test_string"; then
272 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
274 SHELL="$CONFIG_SHELL"
276 echo="$CONFIG_SHELL $0 --fallback-echo"
277 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
278 test "X$echo_testing_string" = 'X\t' &&
279 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
280 test "X$echo_testing_string" = "X$echo_test_string"; then
281 echo="$CONFIG_SHELL $0 --fallback-echo"
283 # maybe with a smaller string...
286 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
287 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
294 if test "$prev" != 'sed 50q "$0"'; then
295 echo_test_string=`eval $prev`
296 export echo_test_string
297 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
299 # Oops. We lost completely, so just stick with echo.
308 # Copy echo and quote the copy suitably for passing to libtool from
309 # the Makefile, instead of quoting the original, which is used later.
311 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
312 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
317 --disable-libtool-lock avoid locking (might break parallel builds)"
319 --with-pic try to use only PIC/non-PIC objects [default=use both]"
322 See INSTALL file for further details."
324 # Initialize some variables set by options.
325 # The variables have the same names as the options, with
326 # dashes changed to underlines.
328 cache_file=./config.cache
337 program_transform_name=s,x,x,
345 bindir='${exec_prefix}/bin'
346 sbindir='${exec_prefix}/sbin'
347 libexecdir='${exec_prefix}/libexec'
348 datadir='${prefix}/share'
349 sysconfdir='${prefix}/etc'
350 sharedstatedir='${prefix}/com'
351 localstatedir='${prefix}/var'
352 libdir='${exec_prefix}/lib'
353 includedir='${prefix}/include'
354 oldincludedir='/usr/include'
355 infodir='${prefix}/info'
356 mandir='${prefix}/man'
358 # Initialize some other variables.
361 SHELL=${CONFIG_SHELL-/bin/sh}
362 # Maximum number of lines to put in a shell here document.
369 # If the previous option needs an argument, assign it.
370 if test -n "$ac_prev"; then
371 eval "$ac_prev=\$ac_option"
377 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
381 # Accept the important Cygnus configure options, so we can diagnose typos.
385 -bindir | --bindir | --bindi | --bind | --bin | --bi)
387 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
388 bindir="$ac_optarg" ;;
390 -build | --build | --buil | --bui | --bu)
392 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
393 build="$ac_optarg" ;;
395 -cache-file | --cache-file | --cache-fil | --cache-fi \
396 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
397 ac_prev=cache_file ;;
398 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
399 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
400 cache_file="$ac_optarg" ;;
402 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
404 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
406 datadir="$ac_optarg" ;;
408 -disable-* | --disable-*)
409 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
410 # Reject names that are not valid shell variable names.
411 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
412 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
414 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
415 eval "enable_${ac_feature}=no" ;;
417 -enable-* | --enable-*)
418 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
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'`
428 eval "enable_${ac_feature}='$ac_optarg'" ;;
430 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
431 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
432 | --exec | --exe | --ex)
433 ac_prev=exec_prefix ;;
434 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
435 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
436 | --exec=* | --exe=* | --ex=*)
437 exec_prefix="$ac_optarg" ;;
439 -gas | --gas | --ga | --g)
440 # Obsolete; use --with-gas.
443 -help | --help | --hel | --he)
444 # Omit some internal or obsolete options to make the list less imposing.
445 # This message is too long to be a string in the A/UX 3.1 sh.
447 Usage: configure [options] [host]
448 Options: [defaults in brackets after descriptions]
450 --cache-file=FILE cache test results in FILE
451 --help print this message
452 --no-create do not create output files
453 --quiet, --silent do not print \`checking...' messages
454 --version print the version of autoconf that created configure
455 Directory and file names:
456 --prefix=PREFIX install architecture-independent files in PREFIX
458 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
460 --bindir=DIR user executables in DIR [EPREFIX/bin]
461 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
462 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
463 --datadir=DIR read-only architecture-independent data in DIR
465 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
466 --sharedstatedir=DIR modifiable architecture-independent data in DIR
468 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
469 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
470 --includedir=DIR C header files in DIR [PREFIX/include]
471 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
472 --infodir=DIR info documentation in DIR [PREFIX/info]
473 --mandir=DIR man documentation in DIR [PREFIX/man]
474 --srcdir=DIR find the sources in DIR [configure dir or ..]
475 --program-prefix=PREFIX prepend PREFIX to installed program names
476 --program-suffix=SUFFIX append SUFFIX to installed program names
477 --program-transform-name=PROGRAM
478 run sed PROGRAM on installed program names
482 --build=BUILD configure for building on BUILD [BUILD=HOST]
483 --host=HOST configure for HOST [guessed]
484 --target=TARGET configure for TARGET [TARGET=HOST]
485 Features and packages:
486 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
487 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
488 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
489 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
490 --x-includes=DIR X include files are in DIR
491 --x-libraries=DIR X library files are in DIR
493 if test -n "$ac_help"; then
494 echo "--enable and --with options recognized:$ac_help"
498 -host | --host | --hos | --ho)
500 -host=* | --host=* | --hos=* | --ho=*)
503 -includedir | --includedir | --includedi | --included | --include \
504 | --includ | --inclu | --incl | --inc)
505 ac_prev=includedir ;;
506 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
507 | --includ=* | --inclu=* | --incl=* | --inc=*)
508 includedir="$ac_optarg" ;;
510 -infodir | --infodir | --infodi | --infod | --info | --inf)
512 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
513 infodir="$ac_optarg" ;;
515 -libdir | --libdir | --libdi | --libd)
517 -libdir=* | --libdir=* | --libdi=* | --libd=*)
518 libdir="$ac_optarg" ;;
520 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
521 | --libexe | --libex | --libe)
522 ac_prev=libexecdir ;;
523 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
524 | --libexe=* | --libex=* | --libe=*)
525 libexecdir="$ac_optarg" ;;
527 -localstatedir | --localstatedir | --localstatedi | --localstated \
528 | --localstate | --localstat | --localsta | --localst \
529 | --locals | --local | --loca | --loc | --lo)
530 ac_prev=localstatedir ;;
531 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
532 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
533 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
534 localstatedir="$ac_optarg" ;;
536 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
538 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
539 mandir="$ac_optarg" ;;
542 # Obsolete; use --without-fp.
545 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
549 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
550 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
553 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
554 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
555 | --oldin | --oldi | --old | --ol | --o)
556 ac_prev=oldincludedir ;;
557 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
558 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
559 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
560 oldincludedir="$ac_optarg" ;;
562 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
564 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
565 prefix="$ac_optarg" ;;
567 -program-prefix | --program-prefix | --program-prefi | --program-pref \
568 | --program-pre | --program-pr | --program-p)
569 ac_prev=program_prefix ;;
570 -program-prefix=* | --program-prefix=* | --program-prefi=* \
571 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
572 program_prefix="$ac_optarg" ;;
574 -program-suffix | --program-suffix | --program-suffi | --program-suff \
575 | --program-suf | --program-su | --program-s)
576 ac_prev=program_suffix ;;
577 -program-suffix=* | --program-suffix=* | --program-suffi=* \
578 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
579 program_suffix="$ac_optarg" ;;
581 -program-transform-name | --program-transform-name \
582 | --program-transform-nam | --program-transform-na \
583 | --program-transform-n | --program-transform- \
584 | --program-transform | --program-transfor \
585 | --program-transfo | --program-transf \
586 | --program-trans | --program-tran \
587 | --progr-tra | --program-tr | --program-t)
588 ac_prev=program_transform_name ;;
589 -program-transform-name=* | --program-transform-name=* \
590 | --program-transform-nam=* | --program-transform-na=* \
591 | --program-transform-n=* | --program-transform-=* \
592 | --program-transform=* | --program-transfor=* \
593 | --program-transfo=* | --program-transf=* \
594 | --program-trans=* | --program-tran=* \
595 | --progr-tra=* | --program-tr=* | --program-t=*)
596 program_transform_name="$ac_optarg" ;;
598 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
599 | -silent | --silent | --silen | --sile | --sil)
602 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
604 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
606 sbindir="$ac_optarg" ;;
608 -sharedstatedir | --sharedstatedir | --sharedstatedi \
609 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
610 | --sharedst | --shareds | --shared | --share | --shar \
612 ac_prev=sharedstatedir ;;
613 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
614 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
615 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
617 sharedstatedir="$ac_optarg" ;;
619 -site | --site | --sit)
621 -site=* | --site=* | --sit=*)
624 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
626 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
627 srcdir="$ac_optarg" ;;
629 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
630 | --syscon | --sysco | --sysc | --sys | --sy)
631 ac_prev=sysconfdir ;;
632 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
633 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
634 sysconfdir="$ac_optarg" ;;
636 -target | --target | --targe | --targ | --tar | --ta | --t)
638 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
639 target="$ac_optarg" ;;
641 -v | -verbose | --verbose | --verbos | --verbo | --verb)
644 -version | --version | --versio | --versi | --vers)
645 echo "configure generated by autoconf version 2.13.1"
649 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
650 # Reject names that are not valid shell variable names.
651 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
652 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
654 ac_package=`echo $ac_package| sed 's/-/_/g'`
659 eval "with_${ac_package}='$ac_optarg'" ;;
661 -without-* | --without-*)
662 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
663 # Reject names that are not valid shell variable names.
664 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
665 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
667 ac_package=`echo $ac_package| sed 's/-/_/g'`
668 eval "with_${ac_package}=no" ;;
671 # Obsolete; use --with-x.
674 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
675 | --x-incl | --x-inc | --x-in | --x-i)
676 ac_prev=x_includes ;;
677 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
678 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
679 x_includes="$ac_optarg" ;;
681 -x-libraries | --x-libraries | --x-librarie | --x-librari \
682 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
683 ac_prev=x_libraries ;;
684 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
685 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
686 x_libraries="$ac_optarg" ;;
688 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
692 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
693 echo "configure: warning: $ac_option: invalid host type" 1>&2
695 if test "x$nonopt" != xNONE; then
696 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
704 if test -n "$ac_prev"; then
705 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
708 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
710 # File descriptor usage:
713 # 2 errors and warnings
714 # 3 some systems may open it to /dev/tty
715 # 4 used on the Kubota Titan
716 # 6 checking for... messages and results
717 # 5 compiler messages saved in config.log
718 if test "$silent" = yes; then
726 This file contains any messages produced by compilers while
727 running configure, to aid debugging if configure makes a mistake.
730 # Strip out --no-create and --no-recursion so they do not pile up.
731 # Also quote any args containing shell metacharacters.
736 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
737 | --no-cr | --no-c) ;;
738 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
739 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
740 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
741 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
742 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
747 # Only set these to C if already set. These must not be set unconditionally
748 # because not all systems understand e.g. LANG=C (notably SCO).
749 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
750 # Non-C LC_CTYPE values break the ctype check.
751 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
752 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
753 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
754 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
756 # confdefs.h avoids OS command line length limits that DEFS can exceed.
757 rm -rf conftest* confdefs.h
758 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
761 # A filename unique to this package, relative to the directory that
762 # configure is in, which we can look for to find out if srcdir is correct.
763 ac_unique_file=build/version.sh
765 # Find the source files, if location was not specified.
766 if test -z "$srcdir"; then
767 ac_srcdir_defaulted=yes
768 # Try the directory containing this script, then its parent.
770 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
771 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
773 if test ! -r $srcdir/$ac_unique_file; then
777 ac_srcdir_defaulted=no
779 if test ! -r $srcdir/$ac_unique_file; then
780 if test "$ac_srcdir_defaulted" = yes; then
781 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
783 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
786 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
788 # Prefer explicitly selected file to automatically selected ones.
789 if test -z "$CONFIG_SITE"; then
790 if test "x$prefix" != xNONE; then
791 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
793 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
796 for ac_site_file in $CONFIG_SITE; do
797 if test -r "$ac_site_file"; then
798 echo "loading site script $ac_site_file"
805 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
806 ac_cpp='$CPP $CPPFLAGS'
807 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
808 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
809 cross_compiling=$ac_cv_prog_cc_cross
813 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
814 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
815 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
822 ac_n= ac_c='\c' ac_t=
826 # set unset (borrowed from autoconf 2.49c)
827 if (OL_FOO=OL_FOO; unset OL_FOO) >/dev/null 2>&1; then
833 $ol_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
836 for ac_dir in build $srcdir/build; do
837 if test -f $ac_dir/install-sh; then
839 ac_install_sh="$ac_aux_dir/install-sh -c"
841 elif test -f $ac_dir/install.sh; then
843 ac_install_sh="$ac_aux_dir/install.sh -c"
845 elif test -f $ac_dir/shtool; then
847 ac_install_sh="$ac_aux_dir/shtool install -c"
851 if test -z "$ac_aux_dir"; then
852 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
854 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
855 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
856 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
858 eval `$ac_aux_dir/version.sh`
859 if test -z "$OL_STRING"; then
860 { echo "configure: error: could not determine version" 1>&2; exit 1; }
863 if test -f "$ac_aux_dir/shtool" -a ! -d $ac_aux_dir/shtool; then
864 ac_cv_shtool="$ac_aux_dir/shtool"
866 { echo "configure: error: no shtool found in $ac_aux_dir" 1>&2; exit 1; }
869 SHTOOL="$ac_cv_shtool"
871 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
872 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
875 if test -d $ac_aux_dir/CVS; then
876 OPENLDAP_CVS="(from CVS sources) "
879 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
882 echo $ac_n "checking host system type""... $ac_c" 1>&6
883 echo "configure:884: checking host system type" >&5
884 if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
886 # Make sure we can run config.sub.
887 if $ac_config_sub sun4 >/dev/null 2>&1; then :
888 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
891 ac_cv_host_alias=$host
892 case "$ac_cv_host_alias" in
896 if ac_cv_host_alias=`$ac_config_guess`; then :
897 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
899 *) ac_cv_host_alias=$nonopt ;;
903 ac_cv_host=`$ac_config_sub $ac_cv_host_alias`
904 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
905 ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
906 ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
908 echo $ac_n "(cached) $ac_c" 1>&6
911 echo "$ac_t""$ac_cv_host" 1>&6
914 host_alias=$ac_cv_host_alias
915 host_cpu=$ac_cv_host_cpu
916 host_vendor=$ac_cv_host_vendor
917 host_os=$ac_cv_host_os
923 echo $ac_n "checking target system type""... $ac_c" 1>&6
924 echo "configure:925: checking target system type" >&5
925 if test "x$ac_cv_target" = "x" || (test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
927 # Make sure we can run config.sub.
928 if $ac_config_sub sun4 >/dev/null 2>&1; then :
929 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
932 ac_cv_target_alias=$target
933 case "$ac_cv_target_alias" in
937 ac_cv_target_alias=$host_alias ;;
939 *) ac_cv_target_alias=$nonopt ;;
943 ac_cv_target=`$ac_config_sub $ac_cv_target_alias`
944 ac_cv_target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
945 ac_cv_target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
946 ac_cv_target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
948 echo $ac_n "(cached) $ac_c" 1>&6
951 echo "$ac_t""$ac_cv_target" 1>&6
954 target_alias=$ac_cv_target_alias
955 target_cpu=$ac_cv_target_cpu
956 target_vendor=$ac_cv_target_vendor
957 target_os=$ac_cv_target_os
963 echo $ac_n "checking build system type""... $ac_c" 1>&6
964 echo "configure:965: checking build system type" >&5
965 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
967 # Make sure we can run config.sub.
968 if $ac_config_sub sun4 >/dev/null 2>&1; then :
969 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
972 ac_cv_build_alias=$build
973 case "$ac_cv_build_alias" in
977 ac_cv_build_alias=$host_alias ;;
979 *) ac_cv_build_alias=$nonopt ;;
983 ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
984 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
985 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
986 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
988 echo $ac_n "(cached) $ac_c" 1>&6
991 echo "$ac_t""$ac_cv_build" 1>&6
994 build_alias=$ac_cv_build_alias
995 build_cpu=$ac_cv_build_cpu
996 build_vendor=$ac_cv_build_vendor
997 build_os=$ac_cv_build_os
1003 # Do some error checking and defaulting for the host and target type.
1005 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1008 # 1. You are not allowed to specify --host, --target, and nonopt at the
1010 # 2. Host defaults to nonopt.
1011 # 3. If nonopt is not specified, then host defaults to the current host,
1012 # as determined by config.guess.
1013 # 4. Target and build default to nonopt.
1014 # 5. If nonopt is not specified, then target and build default to host.
1016 # The aliases save the names the user supplied, while $host etc.
1017 # will get canonicalized.
1018 case $host---$target---$nonopt in
1019 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1020 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1023 test "$host_alias" != "$target_alias" &&
1024 test "$program_prefix$program_suffix$program_transform_name" = \
1026 program_prefix=${target_alias}-
1029 # Find a good install program. We prefer a C program (faster),
1030 # so one script is as good as another. But avoid the broken or
1031 # incompatible versions:
1032 # SysV /etc/install, /usr/sbin/install
1033 # SunOS /usr/etc/install
1034 # IRIX /sbin/install
1036 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1037 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1038 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1039 # ./install, which can be erroneously created by make from ./install.sh.
1040 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1041 echo "configure:1042: checking for a BSD compatible install" >&5
1042 if test -z "$INSTALL"; then
1043 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
1044 echo $ac_n "(cached) $ac_c" 1>&6
1046 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1047 for ac_dir in $PATH; do
1048 # Account for people who put trailing slashes in PATH elements.
1050 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1052 # OSF1 and SCO ODT 3.0 have their own names for install.
1053 # Don't use installbsd from OSF since it installs stuff as root
1055 for ac_prog in ginstall scoinst install; do
1056 if test -f $ac_dir/$ac_prog; then
1057 if test $ac_prog = install &&
1058 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1059 # AIX install. It has an incompatible calling convention.
1061 elif test $ac_prog = install &&
1062 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
1063 # program-specific install script used by HP pwplus--don't use.
1066 ac_cv_path_install="$ac_dir/$ac_prog -c"
1077 if test "${ac_cv_path_install+set}" = set; then
1078 INSTALL="$ac_cv_path_install"
1080 # As a last resort, use the slow shell script. We don't cache a
1081 # path for INSTALL within a source directory, because that will
1082 # break other packages using the cache if that directory is
1083 # removed, or if the path is relative.
1084 INSTALL="$ac_install_sh"
1087 echo "$ac_t""$INSTALL" 1>&6
1089 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1090 # It thinks the first close brace ends the variable substitution.
1091 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1093 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1095 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1097 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1098 echo "configure:1099: checking whether build environment is sane" >&5
1101 echo timestamp > conftestfile
1102 # Do `set' in a subshell so we don't clobber the current shell's
1103 # arguments. Must try -L first in case configure is actually a
1104 # symlink; some systems play weird games with the mod time of symlinks
1105 # (eg FreeBSD returns the mod time of the symlink's containing
1108 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1109 if test "$*" = "X"; then
1111 set X `ls -t $srcdir/configure conftestfile`
1113 if test "$*" != "X $srcdir/configure conftestfile" \
1114 && test "$*" != "X conftestfile $srcdir/configure"; then
1116 # If neither matched, then we have a broken ls. This can happen
1117 # if, for instance, CONFIG_SHELL is bash and it inherits a
1118 # broken ls alias from the environment. This has actually
1119 # happened. Such a system could not be considered "sane".
1120 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1121 alias in your environment" 1>&2; exit 1; }
1124 test "$2" = conftestfile
1130 { echo "configure: error: newly created file is older than distributed files!
1131 Check your system clock" 1>&2; exit 1; }
1134 echo "$ac_t""yes" 1>&6
1135 if test "$program_transform_name" = s,x,x,; then
1136 program_transform_name=
1138 # Double any \ or $. echo might interpret backslashes.
1139 cat <<\EOF_SED > conftestsed
1140 s,\\,\\\\,g; s,\$,$$,g
1142 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1145 test "$program_prefix" != NONE &&
1146 program_transform_name="s,^,${program_prefix},;$program_transform_name"
1147 # Use a double $ so make ignores it.
1148 test "$program_suffix" != NONE &&
1149 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
1151 # sed with no file args requires a program.
1152 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1154 for ac_prog in mawk gawk nawk awk
1156 # Extract the first word of "$ac_prog", so it can be a program name with args.
1157 set dummy $ac_prog; ac_word=$2
1158 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1159 echo "configure:1160: checking for $ac_word" >&5
1160 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
1161 echo $ac_n "(cached) $ac_c" 1>&6
1163 if test -n "$AWK"; then
1164 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1166 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1168 for ac_dir in $ac_dummy; do
1169 test -z "$ac_dir" && ac_dir=.
1170 if test -f $ac_dir/$ac_word; then
1171 ac_cv_prog_AWK="$ac_prog"
1178 AWK="$ac_cv_prog_AWK"
1179 if test -n "$AWK"; then
1180 echo "$ac_t""$AWK" 1>&6
1182 echo "$ac_t""no" 1>&6
1185 test -n "$AWK" && break
1188 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1189 echo "configure:1190: checking whether ${MAKE-make} sets \${MAKE}" >&5
1190 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1191 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1192 echo $ac_n "(cached) $ac_c" 1>&6
1194 cat > conftestmake <<\EOF
1196 @echo 'ac_maketemp="${MAKE}"'
1198 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1199 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1200 if test -n "$ac_maketemp"; then
1201 eval ac_cv_prog_make_${ac_make}_set=yes
1203 eval ac_cv_prog_make_${ac_make}_set=no
1207 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1208 echo "$ac_t""yes" 1>&6
1211 echo "$ac_t""no" 1>&6
1212 SET_MAKE="MAKE=${MAKE-make}"
1221 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1222 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1227 missing_dir=`cd $ac_aux_dir && pwd`
1228 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1229 echo "configure:1230: checking for working aclocal" >&5
1230 # Run test in a subshell; some versions of sh will print an error if
1231 # an executable is not found, even if stderr is redirected.
1232 # Redirect stdin to placate older versions of autoconf. Sigh.
1233 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1235 echo "$ac_t""found" 1>&6
1237 ACLOCAL="$missing_dir/missing aclocal"
1238 echo "$ac_t""missing" 1>&6
1241 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1242 echo "configure:1243: checking for working autoconf" >&5
1243 # Run test in a subshell; some versions of sh will print an error if
1244 # an executable is not found, even if stderr is redirected.
1245 # Redirect stdin to placate older versions of autoconf. Sigh.
1246 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1248 echo "$ac_t""found" 1>&6
1250 AUTOCONF="$missing_dir/missing autoconf"
1251 echo "$ac_t""missing" 1>&6
1254 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1255 echo "configure:1256: checking for working automake" >&5
1256 # Run test in a subshell; some versions of sh will print an error if
1257 # an executable is not found, even if stderr is redirected.
1258 # Redirect stdin to placate older versions of autoconf. Sigh.
1259 if (automake --version) < /dev/null > /dev/null 2>&1; then
1261 echo "$ac_t""found" 1>&6
1263 AUTOMAKE="$missing_dir/missing automake"
1264 echo "$ac_t""missing" 1>&6
1267 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1268 echo "configure:1269: checking for working autoheader" >&5
1269 # Run test in a subshell; some versions of sh will print an error if
1270 # an executable is not found, even if stderr is redirected.
1271 # Redirect stdin to placate older versions of autoconf. Sigh.
1272 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1273 AUTOHEADER=autoheader
1274 echo "$ac_t""found" 1>&6
1276 AUTOHEADER="$missing_dir/missing autoheader"
1277 echo "$ac_t""missing" 1>&6
1280 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1281 echo "configure:1282: checking for working makeinfo" >&5
1282 # Run test in a subshell; some versions of sh will print an error if
1283 # an executable is not found, even if stderr is redirected.
1284 # Redirect stdin to placate older versions of autoconf. Sigh.
1285 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1287 echo "$ac_t""found" 1>&6
1289 MAKEINFO="$missing_dir/missing makeinfo"
1290 echo "$ac_t""missing" 1>&6
1293 install_sh="$missing_dir/install-sh"
1294 test -f "$install_sh" || install_sh="$missing_dir/install.sh"
1296 for ac_prog in gnutar gtar tar
1298 # Extract the first word of "$ac_prog", so it can be a program name with args.
1299 set dummy $ac_prog; ac_word=$2
1300 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1301 echo "configure:1302: checking for $ac_word" >&5
1302 if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then
1303 echo $ac_n "(cached) $ac_c" 1>&6
1305 if test -n "$AMTAR"; then
1306 ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
1308 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1310 for ac_dir in $ac_dummy; do
1311 test -z "$ac_dir" && ac_dir=.
1312 if test -f $ac_dir/$ac_word; then
1313 ac_cv_prog_AMTAR="$ac_prog"
1320 AMTAR="$ac_cv_prog_AMTAR"
1321 if test -n "$AMTAR"; then
1322 echo "$ac_t""$AMTAR" 1>&6
1324 echo "$ac_t""no" 1>&6
1327 test -n "$AMTAR" && break
1332 if test -n "$AMTAR"; then
1333 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
1338 cat >> confdefs.h <<EOF
1339 #define OPENLDAP_PACKAGE "$PACKAGE"
1342 cat >> confdefs.h <<EOF
1343 #define OPENLDAP_VERSION "$VERSION"
1347 cat >> confdefs.h <<EOF
1348 #define LDAP_VENDOR_VERSION $OL_API_INC
1351 cat >> confdefs.h <<EOF
1352 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
1355 cat >> confdefs.h <<EOF
1356 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
1359 cat >> confdefs.h <<EOF
1360 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
1364 OPENLDAP_LIBVERSION=$OL_API_LIB
1366 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
1370 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
1371 echo "configure:1372: checking configure arguments" >&5
1376 ldap_subdir="/openldap"
1378 # Check whether --with-subdir or --without-subdir was given.
1379 if test "${with_subdir+set}" = set; then
1380 withval="$with_subdir"
1387 ldap_subdir="$withval"
1390 ldap_subdir="/$withval"
1397 # OpenLDAP --enable-debug
1398 # Check whether --enable-debug or --disable-debug was given.
1399 if test "${enable_debug+set}" = set; then
1400 enableval="$enable_debug"
1403 for ol_val in auto yes no ; do
1404 if test "$enableval" = "$ol_val" ; then
1408 if test "$ol_arg" = "invalid" ; then
1409 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
1411 ol_enable_debug="$ol_arg"
1414 ol_enable_debug="yes"
1416 # end --enable-debug
1417 # OpenLDAP --enable-dynamic
1418 # Check whether --enable-dynamic or --disable-dynamic was given.
1419 if test "${enable_dynamic+set}" = set; then
1420 enableval="$enable_dynamic"
1423 for ol_val in auto yes no ; do
1424 if test "$enableval" = "$ol_val" ; then
1428 if test "$ol_arg" = "invalid" ; then
1429 { echo "configure: error: bad value $enableval for --enable-dynamic" 1>&2; exit 1; }
1431 ol_enable_dynamic="$ol_arg"
1434 ol_enable_dynamic="no"
1436 # end --enable-dynamic
1437 # OpenLDAP --enable-syslog
1438 # Check whether --enable-syslog or --disable-syslog was given.
1439 if test "${enable_syslog+set}" = set; then
1440 enableval="$enable_syslog"
1443 for ol_val in auto yes no ; do
1444 if test "$enableval" = "$ol_val" ; then
1448 if test "$ol_arg" = "invalid" ; then
1449 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
1451 ol_enable_syslog="$ol_arg"
1454 ol_enable_syslog="auto"
1456 # end --enable-syslog
1457 # OpenLDAP --enable-proctitle
1458 # Check whether --enable-proctitle or --disable-proctitle was given.
1459 if test "${enable_proctitle+set}" = set; then
1460 enableval="$enable_proctitle"
1463 for ol_val in auto yes no ; do
1464 if test "$enableval" = "$ol_val" ; then
1468 if test "$ol_arg" = "invalid" ; then
1469 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
1471 ol_enable_proctitle="$ol_arg"
1474 ol_enable_proctitle="yes"
1476 # end --enable-proctitle
1477 ol_enable_referrals=${ol_enable_referrals-no}
1478 ol_enable_kbind=${ol_enable_kbind-no}
1479 # OpenLDAP --enable-ipv6
1480 # Check whether --enable-ipv6 or --disable-ipv6 was given.
1481 if test "${enable_ipv6+set}" = set; then
1482 enableval="$enable_ipv6"
1485 for ol_val in auto yes no ; do
1486 if test "$enableval" = "$ol_val" ; then
1490 if test "$ol_arg" = "invalid" ; then
1491 { echo "configure: error: bad value $enableval for --enable-ipv6" 1>&2; exit 1; }
1493 ol_enable_ipv6="$ol_arg"
1496 ol_enable_ipv6="auto"
1499 # OpenLDAP --enable-local
1500 # Check whether --enable-local or --disable-local was given.
1501 if test "${enable_local+set}" = set; then
1502 enableval="$enable_local"
1505 for ol_val in auto yes no ; do
1506 if test "$enableval" = "$ol_val" ; then
1510 if test "$ol_arg" = "invalid" ; then
1511 { echo "configure: error: bad value $enableval for --enable-local" 1>&2; exit 1; }
1513 ol_enable_local="$ol_arg"
1516 ol_enable_local="auto"
1518 # end --enable-local
1519 # OpenLDAP --enable-x_compile
1520 # Check whether --enable-x_compile or --disable-x_compile was given.
1521 if test "${enable_x_compile+set}" = set; then
1522 enableval="$enable_x_compile"
1525 for ol_val in yes no ; do
1526 if test "$enableval" = "$ol_val" ; then
1530 if test "$ol_arg" = "invalid" ; then
1531 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1533 ol_enable_x_compile="$ol_arg"
1536 ol_enable_x_compile="no"
1538 # end --enable-x_compile
1541 # OpenLDAP --with-cyrus_sasl
1542 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
1543 if test "${with_cyrus_sasl+set}" = set; then
1544 withval="$with_cyrus_sasl"
1547 for ol_val in auto yes no ; do
1548 if test "$withval" = "$ol_val" ; then
1552 if test "$ol_arg" = "invalid" ; then
1553 { echo "configure: error: bad value $withval for --with-cyrus_sasl" 1>&2; exit 1; }
1555 ol_with_cyrus_sasl="$ol_arg"
1558 ol_with_cyrus_sasl="auto"
1560 # end --with-cyrus_sasl
1562 # OpenLDAP --with-fetch
1563 # Check whether --with-fetch or --without-fetch was given.
1564 if test "${with_fetch+set}" = set; then
1565 withval="$with_fetch"
1568 for ol_val in auto yes no ; do
1569 if test "$withval" = "$ol_val" ; then
1573 if test "$ol_arg" = "invalid" ; then
1574 { echo "configure: error: bad value $withval for --with-fetch" 1>&2; exit 1; }
1576 ol_with_fetch="$ol_arg"
1579 ol_with_fetch="auto"
1583 # OpenLDAP --with-kerberos
1584 # Check whether --with-kerberos or --without-kerberos was given.
1585 if test "${with_kerberos+set}" = set; then
1586 withval="$with_kerberos"
1589 for ol_val in auto k5 k5only k425 kth k4 afs yes no ; do
1590 if test "$withval" = "$ol_val" ; then
1594 if test "$ol_arg" = "invalid" ; then
1595 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1597 ol_with_kerberos="$ol_arg"
1600 ol_with_kerberos="auto"
1602 # end --with-kerberos
1604 # OpenLDAP --with-threads
1605 # Check whether --with-threads or --without-threads was given.
1606 if test "${with_threads+set}" = set; then
1607 withval="$with_threads"
1610 for ol_val in auto nt posix mach pth lwp yes no manual ; do
1611 if test "$withval" = "$ol_val" ; then
1615 if test "$ol_arg" = "invalid" ; then
1616 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1618 ol_with_threads="$ol_arg"
1621 ol_with_threads="auto"
1623 # end --with-threads
1625 # OpenLDAP --with-tls
1626 # Check whether --with-tls or --without-tls was given.
1627 if test "${with_tls+set}" = set; then
1631 for ol_val in auto ssleay openssl yes no ; do
1632 if test "$withval" = "$ol_val" ; then
1636 if test "$ol_arg" = "invalid" ; then
1637 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1639 ol_with_tls="$ol_arg"
1646 # OpenLDAP --with-yielding_select
1647 # Check whether --with-yielding_select or --without-yielding_select was given.
1648 if test "${with_yielding_select+set}" = set; then
1649 withval="$with_yielding_select"
1652 for ol_val in auto yes no manual ; do
1653 if test "$withval" = "$ol_val" ; then
1657 if test "$ol_arg" = "invalid" ; then
1658 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1660 ol_with_yielding_select="$ol_arg"
1663 ol_with_yielding_select="auto"
1665 # end --with-yielding_select
1669 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1670 if test "${with_xxslapdoptions+set}" = set; then
1671 withval="$with_xxslapdoptions"
1675 # OpenLDAP --enable-slapd
1676 # Check whether --enable-slapd or --disable-slapd was given.
1677 if test "${enable_slapd+set}" = set; then
1678 enableval="$enable_slapd"
1681 for ol_val in auto yes no ; do
1682 if test "$enableval" = "$ol_val" ; then
1686 if test "$ol_arg" = "invalid" ; then
1687 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1689 ol_enable_slapd="$ol_arg"
1692 ol_enable_slapd="yes"
1694 # end --enable-slapd
1695 # OpenLDAP --enable-aci
1696 # Check whether --enable-aci or --disable-aci was given.
1697 if test "${enable_aci+set}" = set; then
1698 enableval="$enable_aci"
1701 for ol_val in auto yes no ; do
1702 if test "$enableval" = "$ol_val" ; then
1706 if test "$ol_arg" = "invalid" ; then
1707 { echo "configure: error: bad value $enableval for --enable-aci" 1>&2; exit 1; }
1709 ol_enable_aci="$ol_arg"
1715 # OpenLDAP --enable-cleartext
1716 # Check whether --enable-cleartext or --disable-cleartext was given.
1717 if test "${enable_cleartext+set}" = set; then
1718 enableval="$enable_cleartext"
1721 for ol_val in auto yes no ; do
1722 if test "$enableval" = "$ol_val" ; then
1726 if test "$ol_arg" = "invalid" ; then
1727 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1729 ol_enable_cleartext="$ol_arg"
1732 ol_enable_cleartext="yes"
1734 # end --enable-cleartext
1735 # OpenLDAP --enable-crypt
1736 # Check whether --enable-crypt or --disable-crypt was given.
1737 if test "${enable_crypt+set}" = set; then
1738 enableval="$enable_crypt"
1741 for ol_val in auto yes no ; do
1742 if test "$enableval" = "$ol_val" ; then
1746 if test "$ol_arg" = "invalid" ; then
1747 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1749 ol_enable_crypt="$ol_arg"
1752 ol_enable_crypt="no"
1754 # end --enable-crypt
1755 # OpenLDAP --enable-kpasswd
1756 # Check whether --enable-kpasswd or --disable-kpasswd was given.
1757 if test "${enable_kpasswd+set}" = set; then
1758 enableval="$enable_kpasswd"
1761 for ol_val in auto yes no ; do
1762 if test "$enableval" = "$ol_val" ; then
1766 if test "$ol_arg" = "invalid" ; then
1767 { echo "configure: error: bad value $enableval for --enable-kpasswd" 1>&2; exit 1; }
1769 ol_enable_kpasswd="$ol_arg"
1772 ol_enable_kpasswd="no"
1774 # end --enable-kpasswd
1775 # OpenLDAP --enable-lmpasswd
1776 # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
1777 if test "${enable_lmpasswd+set}" = set; then
1778 enableval="$enable_lmpasswd"
1781 for ol_val in auto yes no ; do
1782 if test "$enableval" = "$ol_val" ; then
1786 if test "$ol_arg" = "invalid" ; then
1787 { echo "configure: error: bad value $enableval for --enable-lmpasswd" 1>&2; exit 1; }
1789 ol_enable_lmpasswd="$ol_arg"
1792 ol_enable_lmpasswd="no"
1794 # end --enable-lmpasswd
1795 # OpenLDAP --enable-spasswd
1796 # Check whether --enable-spasswd or --disable-spasswd was given.
1797 if test "${enable_spasswd+set}" = set; then
1798 enableval="$enable_spasswd"
1801 for ol_val in auto yes no ; do
1802 if test "$enableval" = "$ol_val" ; then
1806 if test "$ol_arg" = "invalid" ; then
1807 { echo "configure: error: bad value $enableval for --enable-spasswd" 1>&2; exit 1; }
1809 ol_enable_spasswd="$ol_arg"
1812 ol_enable_spasswd="no"
1814 # end --enable-spasswd
1815 # OpenLDAP --enable-modules
1816 # Check whether --enable-modules or --disable-modules was given.
1817 if test "${enable_modules+set}" = set; then
1818 enableval="$enable_modules"
1821 for ol_val in auto yes no ; do
1822 if test "$enableval" = "$ol_val" ; then
1826 if test "$ol_arg" = "invalid" ; then
1827 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1829 ol_enable_modules="$ol_arg"
1832 ol_enable_modules="no"
1834 # end --enable-modules
1835 ol_enable_multimaster=${ol_enable_multimaster-no}
1836 # OpenLDAP --enable-rewrite
1837 # Check whether --enable-rewrite or --disable-rewrite was given.
1838 if test "${enable_rewrite+set}" = set; then
1839 enableval="$enable_rewrite"
1842 for ol_val in auto yes no ; do
1843 if test "$enableval" = "$ol_val" ; then
1847 if test "$ol_arg" = "invalid" ; then
1848 { echo "configure: error: bad value $enableval for --enable-rewrite" 1>&2; exit 1; }
1850 ol_enable_rewrite="$ol_arg"
1853 ol_enable_rewrite="no"
1855 # end --enable-rewrite
1856 # OpenLDAP --enable-rlookups
1857 # Check whether --enable-rlookups or --disable-rlookups was given.
1858 if test "${enable_rlookups+set}" = set; then
1859 enableval="$enable_rlookups"
1862 for ol_val in auto yes no ; do
1863 if test "$enableval" = "$ol_val" ; then
1867 if test "$ol_arg" = "invalid" ; then
1868 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1870 ol_enable_rlookups="$ol_arg"
1873 ol_enable_rlookups="no"
1875 # end --enable-rlookups
1876 # OpenLDAP --enable-slapi
1877 # Check whether --enable-slapi or --disable-slapi was given.
1878 if test "${enable_slapi+set}" = set; then
1879 enableval="$enable_slapi"
1882 for ol_val in auto yes no ; do
1883 if test "$enableval" = "$ol_val" ; then
1887 if test "$ol_arg" = "invalid" ; then
1888 { echo "configure: error: bad value $enableval for --enable-slapi" 1>&2; exit 1; }
1890 ol_enable_slapi="$ol_arg"
1893 ol_enable_slapi="no"
1895 # end --enable-slapi
1896 # OpenLDAP --enable-slp
1897 # Check whether --enable-slp or --disable-slp was given.
1898 if test "${enable_slp+set}" = set; then
1899 enableval="$enable_slp"
1902 for ol_val in auto yes no ; do
1903 if test "$enableval" = "$ol_val" ; then
1907 if test "$ol_arg" = "invalid" ; then
1908 { echo "configure: error: bad value $enableval for --enable-slp" 1>&2; exit 1; }
1910 ol_enable_slp="$ol_arg"
1916 # OpenLDAP --enable-wrappers
1917 # Check whether --enable-wrappers or --disable-wrappers was given.
1918 if test "${enable_wrappers+set}" = set; then
1919 enableval="$enable_wrappers"
1922 for ol_val in auto yes no ; do
1923 if test "$enableval" = "$ol_val" ; then
1927 if test "$ol_arg" = "invalid" ; then
1928 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1930 ol_enable_wrappers="$ol_arg"
1933 ol_enable_wrappers="no"
1935 # end --enable-wrappers
1938 # OpenLDAP --enable-bdb
1939 # Check whether --enable-bdb or --disable-bdb was given.
1940 if test "${enable_bdb+set}" = set; then
1941 enableval="$enable_bdb"
1944 for ol_val in auto yes no ; do
1945 if test "$enableval" = "$ol_val" ; then
1949 if test "$ol_arg" = "invalid" ; then
1950 { echo "configure: error: bad value $enableval for --enable-bdb" 1>&2; exit 1; }
1952 ol_enable_bdb="$ol_arg"
1958 # OpenLDAP --with-bdb_module
1959 # Check whether --with-bdb_module or --without-bdb_module was given.
1960 if test "${with_bdb_module+set}" = set; then
1961 withval="$with_bdb_module"
1964 for ol_val in static dynamic ; do
1965 if test "$withval" = "$ol_val" ; then
1969 if test "$ol_arg" = "invalid" ; then
1970 { echo "configure: error: bad value $withval for --with-bdb_module" 1>&2; exit 1; }
1972 ol_with_bdb_module="$ol_arg"
1975 ol_with_bdb_module="static"
1977 # end --with-bdb_module
1979 # OpenLDAP --enable-dnssrv
1980 # Check whether --enable-dnssrv or --disable-dnssrv was given.
1981 if test "${enable_dnssrv+set}" = set; then
1982 enableval="$enable_dnssrv"
1985 for ol_val in auto yes no ; do
1986 if test "$enableval" = "$ol_val" ; then
1990 if test "$ol_arg" = "invalid" ; then
1991 { echo "configure: error: bad value $enableval for --enable-dnssrv" 1>&2; exit 1; }
1993 ol_enable_dnssrv="$ol_arg"
1996 ol_enable_dnssrv="no"
1998 # end --enable-dnssrv
1999 # OpenLDAP --with-dnssrv_module
2000 # Check whether --with-dnssrv_module or --without-dnssrv_module was given.
2001 if test "${with_dnssrv_module+set}" = set; then
2002 withval="$with_dnssrv_module"
2005 for ol_val in static dynamic ; do
2006 if test "$withval" = "$ol_val" ; then
2010 if test "$ol_arg" = "invalid" ; then
2011 { echo "configure: error: bad value $withval for --with-dnssrv_module" 1>&2; exit 1; }
2013 ol_with_dnssrv_module="$ol_arg"
2016 ol_with_dnssrv_module="static"
2018 # end --with-dnssrv_module
2020 # OpenLDAP --enable-hdb
2021 # Check whether --enable-hdb or --disable-hdb was given.
2022 if test "${enable_hdb+set}" = set; then
2023 enableval="$enable_hdb"
2026 for ol_val in auto yes no ; do
2027 if test "$enableval" = "$ol_val" ; then
2031 if test "$ol_arg" = "invalid" ; then
2032 { echo "configure: error: bad value $enableval for --enable-hdb" 1>&2; exit 1; }
2034 ol_enable_hdb="$ol_arg"
2040 # OpenLDAP --with-hdb_module
2041 # Check whether --with-hdb_module or --without-hdb_module was given.
2042 if test "${with_hdb_module+set}" = set; then
2043 withval="$with_hdb_module"
2046 for ol_val in static dynamic ; do
2047 if test "$withval" = "$ol_val" ; then
2051 if test "$ol_arg" = "invalid" ; then
2052 { echo "configure: error: bad value $withval for --with-hdb_module" 1>&2; exit 1; }
2054 ol_with_hdb_module="$ol_arg"
2057 ol_with_hdb_module="static"
2059 # end --with-hdb_module
2061 # OpenLDAP --enable-ldap
2062 # Check whether --enable-ldap or --disable-ldap was given.
2063 if test "${enable_ldap+set}" = set; then
2064 enableval="$enable_ldap"
2067 for ol_val in auto yes no ; do
2068 if test "$enableval" = "$ol_val" ; then
2072 if test "$ol_arg" = "invalid" ; then
2073 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
2075 ol_enable_ldap="$ol_arg"
2081 # OpenLDAP --with-ldap_module
2082 # Check whether --with-ldap_module or --without-ldap_module was given.
2083 if test "${with_ldap_module+set}" = set; then
2084 withval="$with_ldap_module"
2087 for ol_val in static dynamic ; do
2088 if test "$withval" = "$ol_val" ; then
2092 if test "$ol_arg" = "invalid" ; then
2093 { echo "configure: error: bad value $withval for --with-ldap_module" 1>&2; exit 1; }
2095 ol_with_ldap_module="$ol_arg"
2098 ol_with_ldap_module="static"
2100 # end --with-ldap_module
2102 # OpenLDAP --enable-ldbm
2103 # Check whether --enable-ldbm or --disable-ldbm was given.
2104 if test "${enable_ldbm+set}" = set; then
2105 enableval="$enable_ldbm"
2108 for ol_val in auto yes no ; do
2109 if test "$enableval" = "$ol_val" ; then
2113 if test "$ol_arg" = "invalid" ; then
2114 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
2116 ol_enable_ldbm="$ol_arg"
2122 # OpenLDAP --with-ldbm_api
2123 # Check whether --with-ldbm_api or --without-ldbm_api was given.
2124 if test "${with_ldbm_api+set}" = set; then
2125 withval="$with_ldbm_api"
2128 for ol_val in auto berkeley bcompat mdbm gdbm ; do
2129 if test "$withval" = "$ol_val" ; then
2133 if test "$ol_arg" = "invalid" ; then
2134 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
2136 ol_with_ldbm_api="$ol_arg"
2139 ol_with_ldbm_api="auto"
2141 # end --with-ldbm_api
2143 # OpenLDAP --with-ldbm_module
2144 # Check whether --with-ldbm_module or --without-ldbm_module was given.
2145 if test "${with_ldbm_module+set}" = set; then
2146 withval="$with_ldbm_module"
2149 for ol_val in static dynamic ; do
2150 if test "$withval" = "$ol_val" ; then
2154 if test "$ol_arg" = "invalid" ; then
2155 { echo "configure: error: bad value $withval for --with-ldbm_module" 1>&2; exit 1; }
2157 ol_with_ldbm_module="$ol_arg"
2160 ol_with_ldbm_module="static"
2162 # end --with-ldbm_module
2164 # OpenLDAP --with-ldbm_type
2165 # Check whether --with-ldbm_type or --without-ldbm_type was given.
2166 if test "${with_ldbm_type+set}" = set; then
2167 withval="$with_ldbm_type"
2170 for ol_val in auto btree hash ; do
2171 if test "$withval" = "$ol_val" ; then
2175 if test "$ol_arg" = "invalid" ; then
2176 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
2178 ol_with_ldbm_type="$ol_arg"
2181 ol_with_ldbm_type="auto"
2183 # end --with-ldbm_type
2185 # OpenLDAP --enable-meta
2186 # Check whether --enable-meta or --disable-meta was given.
2187 if test "${enable_meta+set}" = set; then
2188 enableval="$enable_meta"
2191 for ol_val in auto yes no ; do
2192 if test "$enableval" = "$ol_val" ; then
2196 if test "$ol_arg" = "invalid" ; then
2197 { echo "configure: error: bad value $enableval for --enable-meta" 1>&2; exit 1; }
2199 ol_enable_meta="$ol_arg"
2205 # OpenLDAP --with-meta_module
2206 # Check whether --with-meta_module or --without-meta_module was given.
2207 if test "${with_meta_module+set}" = set; then
2208 withval="$with_meta_module"
2211 for ol_val in static dynamic ; do
2212 if test "$withval" = "$ol_val" ; then
2216 if test "$ol_arg" = "invalid" ; then
2217 { echo "configure: error: bad value $withval for --with-meta_module" 1>&2; exit 1; }
2219 ol_with_meta_module="$ol_arg"
2222 ol_with_meta_module="static"
2224 # end --with-meta_module
2226 # OpenLDAP --enable-monitor
2227 # Check whether --enable-monitor or --disable-monitor was given.
2228 if test "${enable_monitor+set}" = set; then
2229 enableval="$enable_monitor"
2232 for ol_val in auto yes no ; do
2233 if test "$enableval" = "$ol_val" ; then
2237 if test "$ol_arg" = "invalid" ; then
2238 { echo "configure: error: bad value $enableval for --enable-monitor" 1>&2; exit 1; }
2240 ol_enable_monitor="$ol_arg"
2243 ol_enable_monitor="no"
2245 # end --enable-monitor
2246 # OpenLDAP --with-monitor_module
2247 # Check whether --with-monitor_module or --without-monitor_module was given.
2248 if test "${with_monitor_module+set}" = set; then
2249 withval="$with_monitor_module"
2252 for ol_val in static dynamic ; do
2253 if test "$withval" = "$ol_val" ; then
2257 if test "$ol_arg" = "invalid" ; then
2258 { echo "configure: error: bad value $withval for --with-monitor_module" 1>&2; exit 1; }
2260 ol_with_monitor_module="$ol_arg"
2263 ol_with_monitor_module="static"
2265 # end --with-monitor_module
2267 # OpenLDAP --enable-null
2268 # Check whether --enable-null or --disable-null was given.
2269 if test "${enable_null+set}" = set; then
2270 enableval="$enable_null"
2273 for ol_val in auto yes no ; do
2274 if test "$enableval" = "$ol_val" ; then
2278 if test "$ol_arg" = "invalid" ; then
2279 { echo "configure: error: bad value $enableval for --enable-null" 1>&2; exit 1; }
2281 ol_enable_null="$ol_arg"
2287 # OpenLDAP --with-null_module
2288 # Check whether --with-null_module or --without-null_module was given.
2289 if test "${with_null_module+set}" = set; then
2290 withval="$with_null_module"
2293 for ol_val in static dynamic ; do
2294 if test "$withval" = "$ol_val" ; then
2298 if test "$ol_arg" = "invalid" ; then
2299 { echo "configure: error: bad value $withval for --with-null_module" 1>&2; exit 1; }
2301 ol_with_null_module="$ol_arg"
2304 ol_with_null_module="static"
2306 # end --with-null_module
2308 # OpenLDAP --enable-passwd
2309 # Check whether --enable-passwd or --disable-passwd was given.
2310 if test "${enable_passwd+set}" = set; then
2311 enableval="$enable_passwd"
2314 for ol_val in auto yes no ; do
2315 if test "$enableval" = "$ol_val" ; then
2319 if test "$ol_arg" = "invalid" ; then
2320 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
2322 ol_enable_passwd="$ol_arg"
2325 ol_enable_passwd="no"
2327 # end --enable-passwd
2328 # OpenLDAP --with-passwd_module
2329 # Check whether --with-passwd_module or --without-passwd_module was given.
2330 if test "${with_passwd_module+set}" = set; then
2331 withval="$with_passwd_module"
2334 for ol_val in static dynamic ; do
2335 if test "$withval" = "$ol_val" ; then
2339 if test "$ol_arg" = "invalid" ; then
2340 { echo "configure: error: bad value $withval for --with-passwd_module" 1>&2; exit 1; }
2342 ol_with_passwd_module="$ol_arg"
2345 ol_with_passwd_module="static"
2347 # end --with-passwd_module
2349 # OpenLDAP --enable-perl
2350 # Check whether --enable-perl or --disable-perl was given.
2351 if test "${enable_perl+set}" = set; then
2352 enableval="$enable_perl"
2355 for ol_val in auto yes no ; do
2356 if test "$enableval" = "$ol_val" ; then
2360 if test "$ol_arg" = "invalid" ; then
2361 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
2363 ol_enable_perl="$ol_arg"
2369 # OpenLDAP --with-perl_module
2370 # Check whether --with-perl_module or --without-perl_module was given.
2371 if test "${with_perl_module+set}" = set; then
2372 withval="$with_perl_module"
2375 for ol_val in static dynamic ; do
2376 if test "$withval" = "$ol_val" ; then
2380 if test "$ol_arg" = "invalid" ; then
2381 { echo "configure: error: bad value $withval for --with-perl_module" 1>&2; exit 1; }
2383 ol_with_perl_module="$ol_arg"
2386 ol_with_perl_module="static"
2388 # end --with-perl_module
2390 # OpenLDAP --enable-shell
2391 # Check whether --enable-shell or --disable-shell was given.
2392 if test "${enable_shell+set}" = set; then
2393 enableval="$enable_shell"
2396 for ol_val in auto yes no ; do
2397 if test "$enableval" = "$ol_val" ; then
2401 if test "$ol_arg" = "invalid" ; then
2402 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
2404 ol_enable_shell="$ol_arg"
2407 ol_enable_shell="no"
2409 # end --enable-shell
2410 # OpenLDAP --with-shell_module
2411 # Check whether --with-shell_module or --without-shell_module was given.
2412 if test "${with_shell_module+set}" = set; then
2413 withval="$with_shell_module"
2416 for ol_val in static dynamic ; do
2417 if test "$withval" = "$ol_val" ; then
2421 if test "$ol_arg" = "invalid" ; then
2422 { echo "configure: error: bad value $withval for --with-shell_module" 1>&2; exit 1; }
2424 ol_with_shell_module="$ol_arg"
2427 ol_with_shell_module="static"
2429 # end --with-shell_module
2431 # OpenLDAP --enable-sql
2432 # Check whether --enable-sql or --disable-sql was given.
2433 if test "${enable_sql+set}" = set; then
2434 enableval="$enable_sql"
2437 for ol_val in auto yes no ; do
2438 if test "$enableval" = "$ol_val" ; then
2442 if test "$ol_arg" = "invalid" ; then
2443 { echo "configure: error: bad value $enableval for --enable-sql" 1>&2; exit 1; }
2445 ol_enable_sql="$ol_arg"
2451 # OpenLDAP --with-sql_module
2452 # Check whether --with-sql_module or --without-sql_module was given.
2453 if test "${with_sql_module+set}" = set; then
2454 withval="$with_sql_module"
2457 for ol_val in static dynamic ; do
2458 if test "$withval" = "$ol_val" ; then
2462 if test "$ol_arg" = "invalid" ; then
2463 { echo "configure: error: bad value $withval for --with-sql_module" 1>&2; exit 1; }
2465 ol_with_sql_module="$ol_arg"
2468 ol_with_sql_module="static"
2470 # end --with-sql_module
2472 # OpenLDAP --enable-tcl
2473 # Check whether --enable-tcl or --disable-tcl was given.
2474 if test "${enable_tcl+set}" = set; then
2475 enableval="$enable_tcl"
2478 for ol_val in auto yes no ; do
2479 if test "$enableval" = "$ol_val" ; then
2483 if test "$ol_arg" = "invalid" ; then
2484 { echo "configure: error: bad value $enableval for --enable-tcl" 1>&2; exit 1; }
2486 ol_enable_tcl="$ol_arg"
2492 # OpenLDAP --with-tcl_module
2493 # Check whether --with-tcl_module or --without-tcl_module was given.
2494 if test "${with_tcl_module+set}" = set; then
2495 withval="$with_tcl_module"
2498 for ol_val in static dynamic ; do
2499 if test "$withval" = "$ol_val" ; then
2503 if test "$ol_arg" = "invalid" ; then
2504 { echo "configure: error: bad value $withval for --with-tcl_module" 1>&2; exit 1; }
2506 ol_with_tcl_module="$ol_arg"
2509 ol_with_tcl_module="static"
2511 # end --with-tcl_module
2514 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
2515 if test "${with_xxslurpdoptions+set}" = set; then
2516 withval="$with_xxslurpdoptions"
2520 # OpenLDAP --enable-slurpd
2521 # Check whether --enable-slurpd or --disable-slurpd was given.
2522 if test "${enable_slurpd+set}" = set; then
2523 enableval="$enable_slurpd"
2526 for ol_val in auto yes no ; do
2527 if test "$enableval" = "$ol_val" ; then
2531 if test "$ol_arg" = "invalid" ; then
2532 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
2534 ol_enable_slurpd="$ol_arg"
2537 ol_enable_slurpd="auto"
2539 # end --enable-slurpd
2541 # Check whether --with-xxliboptions or --without-xxliboptions was given.
2542 if test "${with_xxliboptions+set}" = set; then
2543 withval="$with_xxliboptions"
2547 # Check whether --enable-static or --disable-static was given.
2548 if test "${enable_static+set}" = set; then
2549 enableval="$enable_static"
2550 p=${PACKAGE-default}
2552 yes) enable_static=yes ;;
2553 no) enable_static=no ;;
2556 # Look at the argument we got. We use all the common list separators.
2557 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2558 for pkg in $enableval; do
2559 if test "X$pkg" = "X$p"; then
2570 # Check whether --enable-shared or --disable-shared was given.
2571 if test "${enable_shared+set}" = set; then
2572 enableval="$enable_shared"
2573 p=${PACKAGE-default}
2575 yes) enable_shared=yes ;;
2576 no) enable_shared=no ;;
2579 # Look at the argument we got. We use all the common list separators.
2580 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2581 for pkg in $enableval; do
2582 if test "X$pkg" = "X$p"; then
2596 if test $ol_enable_slapd = no ; then
2597 if test $ol_enable_slapi = yes ; then
2598 echo "configure: warning: slapd disabled, ignoring --enable-slapi argument" 1>&2
2600 if test $ol_enable_bdb = yes ; then
2601 echo "configure: warning: slapd disabled, ignoring --enable-bdb argument" 1>&2
2603 if test $ol_enable_dnssrv = yes ; then
2604 echo "configure: warning: slapd disabled, ignoring --enable-dnssrv argument" 1>&2
2606 if test $ol_enable_hdb = yes ; then
2607 echo "configure: warning: slapd disabled, ignoring --enable-hdb argument" 1>&2
2609 if test $ol_enable_ldap = yes ; then
2610 echo "configure: warning: slapd disabled, ignoring --enable-ldap argument" 1>&2
2612 if test $ol_enable_ldbm = yes ; then
2613 echo "configure: warning: slapd disabled, ignoring --enable-ldbm argument" 1>&2
2615 if test $ol_enable_meta = yes ; then
2616 echo "configure: warning: slapd disabled, ignoring --enable-meta argument" 1>&2
2618 if test $ol_enable_monitor = yes ; then
2619 echo "configure: warning: slapd disabled, ignoring --enable-monitor argument" 1>&2
2621 if test $ol_enable_null = yes ; then
2622 echo "configure: warning: slapd disabled, ignoring --enable-null argument" 1>&2
2624 if test $ol_enable_passwd = yes ; then
2625 echo "configure: warning: slapd disabled, ignoring --enable-passwd argument" 1>&2
2627 if test $ol_enable_perl = yes ; then
2628 echo "configure: warning: slapd disabled, ignoring --enable-perl argument" 1>&2
2630 if test $ol_enable_shell = yes ; then
2631 echo "configure: warning: slapd disabled, ignoring --enable-shell argument" 1>&2
2633 if test $ol_enable_tcl = yes ; then
2634 echo "configure: warning: slapd disabled, ignoring --enable-tcl argument" 1>&2
2636 if test $ol_enable_sql = yes ; then
2637 echo "configure: warning: slapd disabled, ignoring --enable-sql argument" 1>&2
2639 if test $ol_enable_modules = yes ; then
2640 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2642 if test $ol_enable_multimaster = yes ; then
2643 echo "configure: warning: slapd disabled, ignoring --enable-multimaster argument" 1>&2
2645 if test $ol_enable_wrappers = yes ; then
2646 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2648 if test $ol_enable_rlookups = yes ; then
2649 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2651 if test $ol_enable_aci = yes ; then
2652 echo "configure: warning: slapd disabled, ignoring --enable-aci argument" 1>&2
2654 if test $ol_with_ldbm_api != auto ; then
2655 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2657 if test $ol_with_ldbm_type != auto ; then
2658 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2660 if test $ol_with_bdb_module != static ; then
2661 echo "configure: warning: slapd disabled, ignoring --with-bdb-module argument" 1>&2
2663 if test $ol_with_dnssrv_module != static ; then
2664 echo "configure: warning: slapd disabled, ignoring --with-dnssrv-module argument" 1>&2
2666 if test $ol_with_hdb_module != static ; then
2667 echo "configure: warning: slapd disabled, ignoring --with-hdb-module argument" 1>&2
2669 if test $ol_with_ldap_module != static ; then
2670 echo "configure: warning: slapd disabled, ignoring --with-ldap-module argument" 1>&2
2672 if test $ol_with_ldbm_module != static ; then
2673 echo "configure: warning: slapd disabled, ignoring --with-ldbm-module argument" 1>&2
2675 if test $ol_with_meta_module != static ; then
2676 echo "configure: warning: slapd disabled, ignoring --with-meta-module argument" 1>&2
2678 if test $ol_with_monitor_module != static ; then
2679 echo "configure: warning: slapd disabled, ignoring --with-monitor-module argument" 1>&2
2681 if test $ol_with_null_module != static ; then
2682 echo "configure: warning: slapd disabled, ignoring --with-null-module argument" 1>&2
2684 if test $ol_with_passwd_module != static ; then
2685 echo "configure: warning: slapd disabled, ignoring --with-passwd-module argument" 1>&2
2687 if test $ol_with_perl_module != static ; then
2688 echo "configure: warning: slapd disabled, ignoring --with-perl-module argument" 1>&2
2690 if test $ol_with_shell_module != static ; then
2691 echo "configure: warning: slapd disabled, ignoring --with-shell-module argument" 1>&2
2693 if test $ol_with_tcl_module != static ; then
2694 echo "configure: warning: slapd disabled, ignoring --with-tcl-module argument" 1>&2
2696 if test $ol_with_sql_module != static ; then
2697 echo "configure: warning: slapd disabled, ignoring --with-sql-module argument" 1>&2
2699 if test $ol_enable_slurpd = yes ; then
2700 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2702 if test $ol_enable_rewrite = yes ; then
2703 echo "configure: warning: slapd disabled, ignoring --enable-rewrite argument" 1>&2
2706 # force settings to no
2714 ol_enable_monitor=no
2722 ol_enable_modules=no
2723 ol_enable_multimaster=no
2724 ol_enable_rlookups=no
2726 ol_enable_wrappers=no
2727 ol_enable_dynamic=no
2730 ol_with_ldbm_type=no
2732 ol_with_bdb_module=static
2733 ol_with_dnssrv_module=static
2734 ol_with_hdb_module=static
2735 ol_with_ldap_module=static
2736 ol_with_ldbm_module=static
2737 ol_with_meta_module=static
2738 ol_with_monitor_module=static
2739 ol_with_null_module=static
2740 ol_with_passwd_module=static
2741 ol_with_perl_module=static
2742 ol_with_shell_module=static
2743 ol_with_tcl_module=static
2744 ol_with_sql_module=static
2748 ol_enable_rewrite=no
2750 elif test $ol_enable_ldbm = no ; then
2752 if test $ol_with_ldbm_api != auto ; then
2753 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2756 if test $ol_with_ldbm_type != auto ; then
2757 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2760 if test $ol_with_ldbm_module != static ; then
2761 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-module argument" 1>&2
2764 if test $ol_enable_modules != yes -a \
2765 $ol_enable_bdb = no -a \
2766 $ol_enable_dnssrv = no -a \
2767 $ol_enable_hdb = no -a \
2768 $ol_enable_ldap = no -a \
2769 $ol_enable_meta = no -a \
2770 $ol_enable_monitor = no -a \
2771 $ol_enable_null = no -a \
2772 $ol_enable_passwd = no -a \
2773 $ol_enable_perl = no -a \
2774 $ol_enable_shell = no -a \
2775 $ol_enable_sql = no -a \
2776 $ol_enable_tcl = no ; then
2778 if test $ol_enable_slapd = yes ; then
2779 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2781 echo "configure: warning: skipping slapd, no backend specified" 1>&2
2787 ol_with_ldbm_type=no
2788 ol_with_ldbm_module=static
2790 if test $ol_enable_bdb != no -o $ol_enable_hdb != no; then
2791 ol_with_ldbm_api=berkeley
2795 if test $ol_with_ldbm_api = gdbm -a \
2796 $ol_with_ldbm_type = btree ; then
2797 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2799 if test $ol_with_ldbm_api = mdbm -a \
2800 $ol_with_ldbm_type = btree ; then
2801 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2803 if test $ol_with_ldbm_api = ndbm -a \
2804 $ol_with_ldbm_type = btree ; then
2805 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2808 if test $ol_enable_bdb = yes -o $ol_enable_hdb = yes ; then
2809 if test $ol_with_ldbm_api = auto ; then
2810 ol_with_ldbm_api=berkeley
2811 elif test $ol_with_ldbm_api != berkeley ; then
2812 { echo "configure: error: LDBM API not compatible with BDB/HDB" 1>&2; exit 1; }
2815 elif test $ol_enable_bdb = auto ; then
2816 if test $ol_with_ldbm_api != berkeley \
2817 -o $ol_with_ldbm_api != auto ; then
2818 echo "configure: warning: LDBM API not compatible with BDB, disabling BDB" 1>&2
2824 if test $ol_enable_slurpd = yes ; then
2825 if test $ol_with_threads = no ; then
2826 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2830 if test $ol_enable_lmpasswd = yes ; then
2831 if test $ol_with_tls = no ; then
2832 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
2836 if test $ol_enable_kbind = yes -o $ol_enable_kpasswd = yes ; then
2837 if test $ol_with_kerberos = no ; then
2838 { echo "configure: error: options require --with-kerberos" 1>&2; exit 1; }
2839 elif test $ol_with_kerberos = auto ; then
2840 ol_with_kerberos=yes
2843 elif test $ol_enable_kbind = no -o $ol_enable_kpasswd = no ; then
2844 if test $ol_with_kerberos = auto ; then
2846 elif test $ol_with_kerberos != no ; then
2847 echo "configure: warning: Kerberos detection enabled unnecessarily" 1>&2;
2852 if test $ol_enable_spasswd = yes ; then
2853 if test $ol_with_cyrus_sasl = no ; then
2854 { echo "configure: error: options require --with-cyrus-sasl" 1>&2; exit 1; }
2856 ol_with_cyrus_sasl=yes
2859 echo "$ac_t""done" 1>&6
2892 BUILD_BDB_DYNAMIC=static
2893 BUILD_DNSSRV_DYNAMIC=static
2894 BUILD_HDB_DYNAMIC=static
2895 BUILD_LDAP_DYNAMIC=static
2896 BUILD_LDBM_DYNAMIC=static
2897 BUILD_META_DYNAMIC=static
2898 BUILD_MONITOR_DYNAMIC=static
2899 BUILD_NULL_DYNAMIC=static
2900 BUILD_PASSWD_DYNAMIC=static
2901 BUILD_PERL_DYNAMIC=static
2902 BUILD_SHELL_DYNAMIC=static
2903 BUILD_TCL_DYNAMIC=static
2904 BUILD_SQL_DYNAMIC=static
2906 SLAPD_MODULES_LDFLAGS=
2907 SLAPD_MODULES_CPPFLAGS=
2909 SLAPD_STATIC_BACKENDS=
2910 SLAPD_DYNAMIC_BACKENDS=
2935 # Find a good install program. We prefer a C program (faster),
2936 # so one script is as good as another. But avoid the broken or
2937 # incompatible versions:
2938 # SysV /etc/install, /usr/sbin/install
2939 # SunOS /usr/etc/install
2940 # IRIX /sbin/install
2942 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2943 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2944 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2945 # ./install, which can be erroneously created by make from ./install.sh.
2946 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2947 echo "configure:2948: checking for a BSD compatible install" >&5
2948 if test -z "$INSTALL"; then
2949 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
2950 echo $ac_n "(cached) $ac_c" 1>&6
2952 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2953 for ac_dir in $PATH; do
2954 # Account for people who put trailing slashes in PATH elements.
2956 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2958 # OSF1 and SCO ODT 3.0 have their own names for install.
2959 # Don't use installbsd from OSF since it installs stuff as root
2961 for ac_prog in ginstall scoinst install; do
2962 if test -f $ac_dir/$ac_prog; then
2963 if test $ac_prog = install &&
2964 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2965 # AIX install. It has an incompatible calling convention.
2967 elif test $ac_prog = install &&
2968 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
2969 # program-specific install script used by HP pwplus--don't use.
2972 ac_cv_path_install="$ac_dir/$ac_prog -c"
2983 if test "${ac_cv_path_install+set}" = set; then
2984 INSTALL="$ac_cv_path_install"
2986 # As a last resort, use the slow shell script. We don't cache a
2987 # path for INSTALL within a source directory, because that will
2988 # break other packages using the cache if that directory is
2989 # removed, or if the path is relative.
2990 INSTALL="$ac_install_sh"
2993 echo "$ac_t""$INSTALL" 1>&6
2995 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2996 # It thinks the first close brace ends the variable substitution.
2997 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2999 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3001 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3004 cat >> confdefs.h <<\EOF
3005 #define HAVE_MKVERSION 1
3013 *-*-aix*) if test -z "$CC" ; then
3014 case "$ol_with_threads" in
3015 auto | yes | posix) ol_aix_threads=yes ;;
3021 if test $ol_aix_threads = yes ; then
3022 if test -z "${CC}" ; then
3023 for ac_prog in cc_r xlc_r cc
3025 # Extract the first word of "$ac_prog", so it can be a program name with args.
3026 set dummy $ac_prog; ac_word=$2
3027 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3028 echo "configure:3029: checking for $ac_word" >&5
3029 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3030 echo $ac_n "(cached) $ac_c" 1>&6
3032 if test -n "$CC"; then
3033 ac_cv_prog_CC="$CC" # Let the user override the test.
3035 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3037 for ac_dir in $ac_dummy; do
3038 test -z "$ac_dir" && ac_dir=.
3039 if test -f $ac_dir/$ac_word; then
3040 ac_cv_prog_CC="$ac_prog"
3048 if test -n "$CC"; then
3049 echo "$ac_t""$CC" 1>&6
3051 echo "$ac_t""no" 1>&6
3054 test -n "$CC" && break
3058 if test "$CC" = cc ; then
3059 if test $ol_with_threads != auto ; then
3060 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
3062 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
3068 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
3069 ol_with_threads=posix
3070 ol_cv_pthread_create=yes
3074 if test -z "${CC}"; then
3075 for ac_prog in cc gcc
3077 # Extract the first word of "$ac_prog", so it can be a program name with args.
3078 set dummy $ac_prog; ac_word=$2
3079 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3080 echo "configure:3081: checking for $ac_word" >&5
3081 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3082 echo $ac_n "(cached) $ac_c" 1>&6
3084 if test -n "$CC"; then
3085 ac_cv_prog_CC="$CC" # Let the user override the test.
3087 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3089 for ac_dir in $ac_dummy; do
3090 test -z "$ac_dir" && ac_dir=.
3091 if test -f $ac_dir/$ac_word; then
3092 ac_cv_prog_CC="$ac_prog"
3100 if test -n "$CC"; then
3101 echo "$ac_t""$CC" 1>&6
3103 echo "$ac_t""no" 1>&6
3106 test -n "$CC" && break
3108 test -n "$CC" || CC="missing"
3111 if test "${CC}" = "missing" ; then
3112 { echo "configure: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." 1>&2; exit 1; }
3116 if test -z "${AR}"; then
3117 for ac_prog in ar gar
3119 # Extract the first word of "$ac_prog", so it can be a program name with args.
3120 set dummy $ac_prog; ac_word=$2
3121 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3122 echo "configure:3123: checking for $ac_word" >&5
3123 if eval "test \"\${ac_cv_prog_AR+set}\" = set"; then
3124 echo $ac_n "(cached) $ac_c" 1>&6
3126 if test -n "$AR"; then
3127 ac_cv_prog_AR="$AR" # Let the user override the test.
3129 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3131 for ac_dir in $ac_dummy; do
3132 test -z "$ac_dir" && ac_dir=.
3133 if test -f $ac_dir/$ac_word; then
3134 ac_cv_prog_AR="$ac_prog"
3142 if test -n "$AR"; then
3143 echo "$ac_t""$AR" 1>&6
3145 echo "$ac_t""no" 1>&6
3148 test -n "$AR" && break
3150 test -n "$AR" || AR="missing"
3153 if test "${AR}" = "missing" ; then
3154 { echo "configure: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." 1>&2; exit 1; }
3160 # Find the correct PATH separator. Usually this is `:', but
3161 # DJGPP uses `;' like DOS.
3162 if test "X${PATH_SEPARATOR+set}" != Xset; then
3163 UNAME=${UNAME-`uname 2>/dev/null`}
3165 *-DOS) lt_cv_sys_path_separator=';' ;;
3166 *) lt_cv_sys_path_separator=':' ;;
3168 PATH_SEPARATOR=$lt_cv_sys_path_separator
3171 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3172 echo "configure:3173: checking for Cygwin environment" >&5
3173 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
3174 echo $ac_n "(cached) $ac_c" 1>&6
3176 cat > conftest.$ac_ext <<EOF
3177 #line 3178 "configure"
3178 #include "confdefs.h"
3183 #define __CYGWIN__ __CYGWIN32__
3188 if { (eval echo configure:3189: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3192 echo "configure: failed program was:" >&5
3193 cat conftest.$ac_ext >&5
3200 echo "$ac_t""$ac_cv_cygwin" 1>&6
3202 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3203 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3204 echo "configure:3205: checking for mingw32 environment" >&5
3205 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
3206 echo $ac_n "(cached) $ac_c" 1>&6
3208 cat > conftest.$ac_ext <<EOF
3209 #line 3210 "configure"
3210 #include "confdefs.h"
3216 if { (eval echo configure:3217: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3220 echo "configure: failed program was:" >&5
3221 cat conftest.$ac_ext >&5
3228 echo "$ac_t""$ac_cv_mingw32" 1>&6
3230 test "$ac_cv_mingw32" = yes && MINGW32=yes
3231 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
3232 echo "configure:3233: checking for EMX OS/2 environment" >&5
3233 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
3234 echo $ac_n "(cached) $ac_c" 1>&6
3236 cat > conftest.$ac_ext <<EOF
3237 #line 3238 "configure"
3238 #include "confdefs.h"
3244 if { (eval echo configure:3245: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3248 echo "configure: failed program was:" >&5
3249 cat conftest.$ac_ext >&5
3256 echo "$ac_t""$ac_cv_emxos2" 1>&6
3258 test "$ac_cv_emxos2" = yes && EMXOS2=yes
3259 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3260 echo "configure:3261: checking how to run the C preprocessor" >&5
3261 # On Suns, sometimes $CPP names a directory.
3262 if test -n "$CPP" && test -d "$CPP"; then
3265 if test -z "$CPP"; then
3266 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
3267 echo $ac_n "(cached) $ac_c" 1>&6
3269 # This must be in double quotes, not single quotes, because CPP may get
3270 # substituted into the Makefile and "${CC-cc}" will confuse make.
3272 # On the NeXT, cc -E runs the code through the compiler's parser,
3273 # not just through cpp.
3274 cat > conftest.$ac_ext <<EOF
3275 #line 3276 "configure"
3276 #include "confdefs.h"
3280 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3281 { (eval echo configure:3282: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3282 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3283 if test -z "$ac_err"; then
3287 echo "configure: failed program was:" >&5
3288 cat conftest.$ac_ext >&5
3290 CPP="${CC-cc} -E -traditional-cpp"
3291 cat > conftest.$ac_ext <<EOF
3292 #line 3293 "configure"
3293 #include "confdefs.h"
3297 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3298 { (eval echo configure:3299: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3299 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3300 if test -z "$ac_err"; then
3304 echo "configure: failed program was:" >&5
3305 cat conftest.$ac_ext >&5
3307 CPP="${CC-cc} -nologo -E"
3308 cat > conftest.$ac_ext <<EOF
3309 #line 3310 "configure"
3310 #include "confdefs.h"
3314 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3315 { (eval echo configure:3316: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3316 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3317 if test -z "$ac_err"; then
3321 echo "configure: failed program was:" >&5
3322 cat conftest.$ac_ext >&5
3331 ac_cv_prog_CPP="$CPP"
3333 CPP="$ac_cv_prog_CPP"
3335 ac_cv_prog_CPP="$CPP"
3337 echo "$ac_t""$CPP" 1>&6
3339 # Check whether --enable-fast-install or --disable-fast-install was given.
3340 if test "${enable_fast_install+set}" = set; then
3341 enableval="$enable_fast_install"
3342 p=${PACKAGE-default}
3344 yes) enable_fast_install=yes ;;
3345 no) enable_fast_install=no ;;
3347 enable_fast_install=no
3348 # Look at the argument we got. We use all the common list separators.
3349 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3350 for pkg in $enableval; do
3351 if test "X$pkg" = "X$p"; then
3352 enable_fast_install=yes
3359 enable_fast_install=yes
3362 # Extract the first word of "gcc", so it can be a program name with args.
3363 set dummy gcc; ac_word=$2
3364 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3365 echo "configure:3366: checking for $ac_word" >&5
3366 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3367 echo $ac_n "(cached) $ac_c" 1>&6
3369 if test -n "$CC"; then
3370 ac_cv_prog_CC="$CC" # Let the user override the test.
3372 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3374 for ac_dir in $ac_dummy; do
3375 test -z "$ac_dir" && ac_dir=.
3376 if test -f $ac_dir/$ac_word; then
3385 if test -n "$CC"; then
3386 echo "$ac_t""$CC" 1>&6
3388 echo "$ac_t""no" 1>&6
3391 if test -z "$CC"; then
3392 # Extract the first word of "cc", so it can be a program name with args.
3393 set dummy cc; ac_word=$2
3394 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3395 echo "configure:3396: checking for $ac_word" >&5
3396 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3397 echo $ac_n "(cached) $ac_c" 1>&6
3399 if test -n "$CC"; then
3400 ac_cv_prog_CC="$CC" # Let the user override the test.
3402 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3405 for ac_dir in $ac_dummy; do
3406 test -z "$ac_dir" && ac_dir=.
3407 if test -f $ac_dir/$ac_word; then
3408 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
3409 ac_prog_rejected=yes
3417 if test $ac_prog_rejected = yes; then
3418 # We found a bogon in the path, so make sure we never use it.
3419 set dummy $ac_cv_prog_CC
3421 if test $# -gt 0; then
3422 # We chose a different compiler from the bogus one.
3423 # However, it has the same basename, so the bogon will be chosen
3424 # first if we set CC to just the basename; use the full file name.
3426 set dummy "$ac_dir/$ac_word" "$@"
3434 if test -n "$CC"; then
3435 echo "$ac_t""$CC" 1>&6
3437 echo "$ac_t""no" 1>&6
3440 if test -z "$CC"; then
3441 case "`uname -s`" in
3442 *win32* | *WIN32* | *CYGWIN*)
3443 # Extract the first word of "cl", so it can be a program name with args.
3444 set dummy cl; ac_word=$2
3445 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3446 echo "configure:3447: checking for $ac_word" >&5
3447 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3448 echo $ac_n "(cached) $ac_c" 1>&6
3450 if test -n "$CC"; then
3451 ac_cv_prog_CC="$CC" # Let the user override the test.
3453 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3455 for ac_dir in $ac_dummy; do
3456 test -z "$ac_dir" && ac_dir=.
3457 if test -f $ac_dir/$ac_word; then
3466 if test -n "$CC"; then
3467 echo "$ac_t""$CC" 1>&6
3469 echo "$ac_t""no" 1>&6
3474 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
3477 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
3478 echo "configure:3479: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
3481 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3482 ac_cpp='$CPP $CPPFLAGS'
3483 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3484 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3485 cross_compiling=$ac_cv_prog_cc_cross
3487 cat > conftest.$ac_ext << EOF
3489 #line 3490 "configure"
3490 #include "confdefs.h"
3494 if { (eval echo configure:3495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3495 ac_cv_prog_cc_works=yes
3496 # If we can't run a trivial program, we are probably using a cross compiler.
3497 if (./conftest; exit) 2>/dev/null; then
3498 ac_cv_prog_cc_cross=no
3500 ac_cv_prog_cc_cross=yes
3503 echo "configure: failed program was:" >&5
3504 cat conftest.$ac_ext >&5
3505 ac_cv_prog_cc_works=no
3509 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3510 ac_cpp='$CPP $CPPFLAGS'
3511 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3512 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3513 cross_compiling=$ac_cv_prog_cc_cross
3515 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
3516 if test $ac_cv_prog_cc_works = no; then
3517 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
3519 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
3520 echo "configure:3521: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
3521 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
3522 cross_compiling=$ac_cv_prog_cc_cross
3524 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
3525 echo "configure:3526: checking whether we are using GNU C" >&5
3526 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
3527 echo $ac_n "(cached) $ac_c" 1>&6
3529 cat > conftest.c <<EOF
3534 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:3535: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
3541 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
3543 if test $ac_cv_prog_gcc = yes; then
3549 ac_test_CFLAGS="${CFLAGS+set}"
3550 ac_save_CFLAGS="$CFLAGS"
3552 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
3553 echo "configure:3554: checking whether ${CC-cc} accepts -g" >&5
3554 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
3555 echo $ac_n "(cached) $ac_c" 1>&6
3557 echo 'void f(){}' > conftest.c
3558 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
3567 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
3568 if test "$ac_test_CFLAGS" = set; then
3569 CFLAGS="$ac_save_CFLAGS"
3570 elif test $ac_cv_prog_cc_g = yes; then
3571 if test "$GCC" = yes; then
3577 if test "$GCC" = yes; then
3584 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3585 if test "${with_gnu_ld+set}" = set; then
3586 withval="$with_gnu_ld"
3587 test "$withval" = no || with_gnu_ld=yes
3593 if test "$GCC" = yes; then
3594 # Check if gcc -print-prog-name=ld gives a path.
3595 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
3596 echo "configure:3597: checking for ld used by GCC" >&5
3599 # gcc leaves a trailing carriage return which upsets mingw
3600 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3602 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3605 # Accept absolute paths.
3606 [\\/]* | [A-Za-z]:[\\/]*)
3607 re_direlt='/[^/][^/]*/\.\./'
3608 # Canonicalize the path of ld
3609 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3610 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3611 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3613 test -z "$LD" && LD="$ac_prog"
3616 # If it fails, then pretend we aren't using GCC.
3620 # If it is relative, then search for the first ld in PATH.
3624 elif test "$with_gnu_ld" = yes; then
3625 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
3626 echo "configure:3627: checking for GNU ld" >&5
3628 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
3629 echo "configure:3630: checking for non-GNU ld" >&5
3631 if eval "test \"\${lt_cv_path_LD+set}\" = set"; then
3632 echo $ac_n "(cached) $ac_c" 1>&6
3634 if test -z "$LD"; then
3635 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3636 for ac_dir in $PATH; do
3637 test -z "$ac_dir" && ac_dir=.
3638 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3639 lt_cv_path_LD="$ac_dir/$ac_prog"
3640 # Check to see if the program is GNU ld. I'd rather use --version,
3641 # but apparently some GNU ld's only accept -v.
3642 # Break only if it was the GNU/non-GNU ld that we prefer.
3643 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3644 test "$with_gnu_ld" != no && break
3646 test "$with_gnu_ld" != yes && break
3652 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3657 if test -n "$LD"; then
3658 echo "$ac_t""$LD" 1>&6
3660 echo "$ac_t""no" 1>&6
3662 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
3663 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
3664 echo "configure:3665: checking if the linker ($LD) is GNU ld" >&5
3665 if eval "test \"\${lt_cv_prog_gnu_ld+set}\" = set"; then
3666 echo $ac_n "(cached) $ac_c" 1>&6
3668 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3669 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3670 lt_cv_prog_gnu_ld=yes
3672 lt_cv_prog_gnu_ld=no
3676 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
3677 with_gnu_ld=$lt_cv_prog_gnu_ld
3680 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
3681 echo "configure:3682: checking for $LD option to reload object files" >&5
3682 if eval "test \"\${lt_cv_ld_reload_flag+set}\" = set"; then
3683 echo $ac_n "(cached) $ac_c" 1>&6
3685 lt_cv_ld_reload_flag='-r'
3688 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
3689 reload_flag=$lt_cv_ld_reload_flag
3690 test -n "$reload_flag" && reload_flag=" $reload_flag"
3692 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
3693 echo "configure:3694: checking for BSD-compatible nm" >&5
3694 if eval "test \"\${lt_cv_path_NM+set}\" = set"; then
3695 echo $ac_n "(cached) $ac_c" 1>&6
3697 if test -n "$NM"; then
3698 # Let the user override the test.
3701 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3702 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3703 test -z "$ac_dir" && ac_dir=.
3704 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3705 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3706 # Check to see if the nm accepts a BSD-compat flag.
3707 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3708 # nm: unknown option "B" ignored
3709 # Tru64's nm complains that /dev/null is an invalid object file
3710 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3711 lt_cv_path_NM="$tmp_nm -B"
3713 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3714 lt_cv_path_NM="$tmp_nm -p"
3717 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3718 continue # so that we can try to find one that supports BSD flags
3723 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3728 echo "$ac_t""$NM" 1>&6
3730 echo $ac_n "checking for a sed that does not truncate output""... $ac_c" 1>&6
3731 echo "configure:3732: checking for a sed that does not truncate output" >&5
3732 if eval "test \"\${lt_cv_path_SED+set}\" = set"; then
3733 echo $ac_n "(cached) $ac_c" 1>&6
3735 # Loop through the user's path and test for sed and gsed.
3736 # Then use that list of sed's as ones to test for truncation.
3737 as_executable_p="test -f"
3738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3742 test -z "$as_dir" && as_dir=.
3743 for ac_prog in sed gsed; do
3744 for ac_exec_ext in '' $ac_executable_extensions; do
3745 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3746 _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3752 # Create a temporary directory, and hook for its removal unless debugging.
3755 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3756 trap '{ (exit 1); exit 1; }' 1 2 13 15
3759 # Create a (secure) tmp directory for tmp files.
3762 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3763 test -n "$tmp" && test -d "$tmp"
3766 tmp=$TMPDIR/sed$$-$RANDOM
3767 (umask 077 && mkdir $tmp)
3770 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3771 { (exit 1); exit 1; }
3775 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3776 # along with /bin/sed that truncates output.
3777 for _sed in $_sed_list /usr/xpg4/bin/sed; do
3778 test ! -f ${_sed} && break
3779 cat /dev/null > "$tmp/sed.in"
3781 echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
3782 # Check for GNU sed and select it if it is found.
3783 if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
3784 lt_cv_path_SED=${_sed}
3788 cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3789 mv "$tmp/sed.tmp" "$tmp/sed.in"
3790 cp "$tmp/sed.in" "$tmp/sed.nl"
3791 echo >>"$tmp/sed.nl"
3792 ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
3793 cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
3794 # 40000 chars as input seems more than enough
3795 test $_count -gt 10 && break
3796 _count=`expr $_count + 1`
3797 if test $_count -gt $_max; then
3799 lt_cv_path_SED=$_sed
3807 if test "X$SED" != "X"; then
3812 echo "$ac_t""$SED" 1>&6
3814 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3815 echo "configure:3816: checking whether ln -s works" >&5
3816 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3817 echo $ac_n "(cached) $ac_c" 1>&6
3820 if ln -s X conftestdata 2>/dev/null
3823 ac_cv_prog_LN_S="ln -s"
3828 LN_S="$ac_cv_prog_LN_S"
3829 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3830 echo "$ac_t""yes" 1>&6
3832 echo "$ac_t""no" 1>&6
3835 echo $ac_n "checking how to recognise dependent libraries""... $ac_c" 1>&6
3836 echo "configure:3837: checking how to recognise dependent libraries" >&5
3837 if eval "test \"\${lt_cv_deplibs_check_method+set}\" = set"; then
3838 echo $ac_n "(cached) $ac_c" 1>&6
3840 lt_cv_file_magic_cmd='$MAGIC_CMD'
3841 lt_cv_file_magic_test_file=
3842 lt_cv_deplibs_check_method='unknown'
3843 # Need to set the preceding variable on all platforms that support
3844 # interlibrary dependencies.
3845 # 'none' -- dependencies not supported.
3846 # `unknown' -- same as none, but documents that we really don't know.
3847 # 'pass_all' -- all dependencies passed with no checks.
3848 # 'test_compile' -- check by making test program.
3849 # 'file_magic [[regex]]' -- check by looking for files in library path
3850 # which responds to the $file_magic_cmd with a given egrep regex.
3851 # If you have `file' or equivalent on your system and you're not sure
3852 # whether `pass_all' will *always* work, you probably want this one.
3856 lt_cv_deplibs_check_method=pass_all
3860 lt_cv_deplibs_check_method=pass_all
3864 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3865 lt_cv_file_magic_cmd='/usr/bin/file -L'
3866 lt_cv_file_magic_test_file=/shlib/libc.so
3869 cygwin* | mingw* | pw32*)
3870 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3871 lt_cv_file_magic_cmd='$OBJDUMP -f'
3874 darwin* | rhapsody*)
3875 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3876 lt_cv_file_magic_cmd='/usr/bin/file -L'
3878 rhapsody* | darwin1.[012])
3879 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3882 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3888 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3891 # Not sure whether the presence of OpenBSD here was a mistake.
3892 # Let's accept both of them until this is cleared up.
3893 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3894 lt_cv_file_magic_cmd=/usr/bin/file
3895 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3899 lt_cv_deplibs_check_method=pass_all
3904 lt_cv_deplibs_check_method=pass_all
3908 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3909 lt_cv_file_magic_cmd=/usr/bin/file
3910 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3913 irix5* | irix6* | nonstopux*)
3915 irix5* | nonstopux*)
3916 # this will be overridden with pass_all, but let us keep it just in case
3917 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3921 *-32|*"-32 ") libmagic=32-bit;;
3922 *-n32|*"-n32 ") libmagic=N32;;
3923 *-64|*"-64 ") libmagic=64-bit;;
3924 *) libmagic=never-match;;
3926 # this will be overridden with pass_all, but let us keep it just in case
3927 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3930 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3931 lt_cv_deplibs_check_method=pass_all
3934 # This must be Linux ELF.
3937 alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64*)
3938 lt_cv_deplibs_check_method=pass_all ;;
3940 # glibc up to 2.1.1 does not perform some relocations on ARM
3941 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3943 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3947 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3948 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3950 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3955 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3956 lt_cv_file_magic_cmd=/usr/bin/file
3957 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3961 lt_cv_file_magic_cmd=/usr/bin/file
3962 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3963 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3964 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3966 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3970 osf3* | osf4* | osf5*)
3971 # this will be overridden with pass_all, but let us keep it just in case
3972 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3973 lt_cv_file_magic_test_file=/shlib/libc.so
3974 lt_cv_deplibs_check_method=pass_all
3978 lt_cv_deplibs_check_method=pass_all
3982 lt_cv_deplibs_check_method=pass_all
3983 lt_cv_file_magic_test_file=/lib/libc.so
3986 sysv5uw[78]* | sysv4*uw2*)
3987 lt_cv_deplibs_check_method=pass_all
3990 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3991 case $host_vendor in
3993 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
3994 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3997 lt_cv_deplibs_check_method=pass_all
4000 lt_cv_file_magic_cmd='/bin/file'
4001 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4004 lt_cv_file_magic_cmd='/bin/file'
4005 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4006 lt_cv_file_magic_test_file=/lib/libc.so
4009 lt_cv_deplibs_check_method=pass_all
4017 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
4018 file_magic_cmd=$lt_cv_file_magic_cmd
4019 deplibs_check_method=$lt_cv_deplibs_check_method
4021 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
4022 echo "configure:4023: checking for object suffix" >&5
4023 if eval "test \"\${ac_cv_objext+set}\" = set"; then
4024 echo $ac_n "(cached) $ac_c" 1>&6
4027 echo 'int i = 1;' > conftest.$ac_ext
4028 if { (eval echo configure:4029: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4029 for ac_file in conftest.*; do
4032 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
4036 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
4041 echo "$ac_t""$ac_cv_objext" 1>&6
4042 OBJEXT=$ac_cv_objext
4043 ac_objext=$ac_cv_objext
4048 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
4049 echo "configure:4050: checking for executable suffix" >&5
4050 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
4051 echo $ac_n "(cached) $ac_c" 1>&6
4053 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
4057 echo 'int main () { return 0; }' > conftest.$ac_ext
4059 if { (eval echo configure:4060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
4060 for file in conftest.*; do
4062 *.c | *.C | *.o | *.obj | *.xcoff) ;;
4063 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
4067 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
4070 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
4075 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
4076 echo "$ac_t""${ac_cv_exeext}" 1>&6
4079 if test $host != $build; then
4080 ac_tool_prefix=${host_alias}-
4088 # Check for command to grab the raw symbol name followed by C symbol from nm.
4089 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
4090 echo "configure:4091: checking command to parse $NM output" >&5
4091 if eval "test \"\${lt_cv_sys_global_symbol_pipe+set}\" = set"; then
4092 echo $ac_n "(cached) $ac_c" 1>&6
4095 # These are sane defaults that work on at least a few old systems.
4096 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4098 # Character class describing NM global symbol codes.
4099 symcode='[BCDEGRST]'
4101 # Regexp to match symbols that can be accessed directly from C.
4102 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4104 # Transform the above into a raw symbol and a C symbol.
4105 symxfrm='\1 \2\3 \3'
4107 # Transform an extracted symbol line into a proper C declaration
4108 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
4110 # Transform an extracted symbol line into symbol name and symbol address
4111 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
4113 # Define system-specific variables.
4118 cygwin* | mingw* | pw32*)
4119 symcode='[ABCDGISTW]'
4121 hpux*) # Its linker distinguishes data from code symbols
4122 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4123 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
4126 symcode='[BCDEGRST]'
4129 symcode='[BCDEGQRST]'
4139 # Handle CRLF in mingw tool chain
4143 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4147 # If we're using GNU nm, then use its standard symbol codes.
4148 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
4149 symcode='[ABCDGISTW]'
4152 # Try without a prefix undercore, then with it.
4153 for ac_symprfx in "" "_"; do
4155 # Write the raw and C identifiers.
4156 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4158 # Check to see that the pipe works correctly.
4161 cat > conftest.$ac_ext <<EOF
4166 void nm_test_func(){}
4170 int main(){nm_test_var='a';nm_test_func();return(0);}
4173 if { (eval echo configure:4174: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4174 # Now try to grab the symbols.
4176 if { (eval echo configure:4177: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5; } && test -s "$nlist"; then
4177 # Try sorting and uniquifying the output.
4178 if sort "$nlist" | uniq > "$nlist"T; then
4179 mv -f "$nlist"T "$nlist"
4184 # Make sure that we snagged all the symbols we need.
4185 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4186 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4187 cat <<EOF > conftest.$ac_ext
4193 # Now generate the symbol file.
4194 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4196 cat <<EOF >> conftest.$ac_ext
4197 #if defined (__STDC__) && __STDC__
4198 # define lt_ptr void *
4200 # define lt_ptr char *
4204 /* The mapping between symbol names and symbols. */
4209 lt_preloaded_symbols[] =
4212 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4213 cat <<\EOF >> conftest.$ac_ext
4221 # Now try linking the two files.
4222 mv conftest.$ac_objext conftstm.$ac_objext
4224 save_CFLAGS="$CFLAGS"
4225 LIBS="conftstm.$ac_objext"
4226 CFLAGS="$CFLAGS$no_builtin_flag"
4227 if { (eval echo configure:4228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
4231 CFLAGS="$save_CFLAGS"
4233 echo "cannot find nm_test_func in $nlist" >&5
4236 echo "cannot find nm_test_var in $nlist" >&5
4239 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4242 echo "$progname: failed program was:" >&5
4243 cat conftest.$ac_ext >&5
4245 rm -f conftest* conftst*
4247 # Do not use the global_symbol_pipe unless it works.
4248 if test "$pipe_works" = yes; then
4251 lt_cv_sys_global_symbol_pipe=
4257 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4258 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4259 global_symbol_to_cdecl=
4260 global_symbol_to_c_name_address=
4262 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4263 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4265 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4267 echo "$ac_t""failed" 1>&6
4269 echo "$ac_t""ok" 1>&6
4272 for ac_hdr in dlfcn.h
4274 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4275 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4276 echo "configure:4277: checking for $ac_hdr" >&5
4277 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4278 echo $ac_n "(cached) $ac_c" 1>&6
4280 cat > conftest.$ac_ext <<EOF
4281 #line 4282 "configure"
4282 #include "confdefs.h"
4285 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4286 { (eval echo configure:4287: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4287 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4288 if test -z "$ac_err"; then
4290 eval "ac_cv_header_$ac_safe=yes"
4293 echo "configure: failed program was:" >&5
4294 cat conftest.$ac_ext >&5
4296 eval "ac_cv_header_$ac_safe=no"
4300 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4301 echo "$ac_t""yes" 1>&6
4302 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4303 cat >> confdefs.h <<EOF
4304 #define $ac_tr_hdr 1
4308 echo "$ac_t""no" 1>&6
4317 # Only perform the check for file, if the check method requires it
4318 case $deplibs_check_method in
4320 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4321 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
4322 echo "configure:4323: checking for ${ac_tool_prefix}file" >&5
4323 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
4324 echo $ac_n "(cached) $ac_c" 1>&6
4328 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4331 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4334 ac_save_MAGIC_CMD="$MAGIC_CMD"
4335 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4336 ac_dummy="/usr/bin:$PATH"
4337 for ac_dir in $ac_dummy; do
4338 test -z "$ac_dir" && ac_dir=.
4339 if test -f $ac_dir/${ac_tool_prefix}file; then
4340 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4341 if test -n "$file_magic_test_file"; then
4342 case $deplibs_check_method in
4344 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4345 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4346 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4347 egrep "$file_magic_regex" > /dev/null; then
4352 *** Warning: the command libtool uses to detect shared libraries,
4353 *** $file_magic_cmd, produces output that libtool cannot recognize.
4354 *** The result is that libtool may fail to recognize shared libraries
4355 *** as such. This will affect the creation of libtool libraries that
4356 *** depend on shared libraries, but programs linked with such libtool
4357 *** libraries will work regardless of this problem. Nevertheless, you
4358 *** may want to report the problem to your system manager and/or to
4359 *** bug-libtool@gnu.org
4369 MAGIC_CMD="$ac_save_MAGIC_CMD"
4374 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4375 if test -n "$MAGIC_CMD"; then
4376 echo "$ac_t""$MAGIC_CMD" 1>&6
4378 echo "$ac_t""no" 1>&6
4381 if test -z "$lt_cv_path_MAGIC_CMD"; then
4382 if test -n "$ac_tool_prefix"; then
4383 echo $ac_n "checking for file""... $ac_c" 1>&6
4384 echo "configure:4385: checking for file" >&5
4385 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
4386 echo $ac_n "(cached) $ac_c" 1>&6
4390 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4393 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4396 ac_save_MAGIC_CMD="$MAGIC_CMD"
4397 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4398 ac_dummy="/usr/bin:$PATH"
4399 for ac_dir in $ac_dummy; do
4400 test -z "$ac_dir" && ac_dir=.
4401 if test -f $ac_dir/file; then
4402 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4403 if test -n "$file_magic_test_file"; then
4404 case $deplibs_check_method in
4406 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4407 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4408 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4409 egrep "$file_magic_regex" > /dev/null; then
4414 *** Warning: the command libtool uses to detect shared libraries,
4415 *** $file_magic_cmd, produces output that libtool cannot recognize.
4416 *** The result is that libtool may fail to recognize shared libraries
4417 *** as such. This will affect the creation of libtool libraries that
4418 *** depend on shared libraries, but programs linked with such libtool
4419 *** libraries will work regardless of this problem. Nevertheless, you
4420 *** may want to report the problem to your system manager and/or to
4421 *** bug-libtool@gnu.org
4431 MAGIC_CMD="$ac_save_MAGIC_CMD"
4436 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4437 if test -n "$MAGIC_CMD"; then
4438 echo "$ac_t""$MAGIC_CMD" 1>&6
4440 echo "$ac_t""no" 1>&6
4452 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4453 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4454 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4455 echo "configure:4456: checking for $ac_word" >&5
4456 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
4457 echo $ac_n "(cached) $ac_c" 1>&6
4459 if test -n "$RANLIB"; then
4460 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4462 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4464 for ac_dir in $ac_dummy; do
4465 test -z "$ac_dir" && ac_dir=.
4466 if test -f $ac_dir/$ac_word; then
4467 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4474 RANLIB="$ac_cv_prog_RANLIB"
4475 if test -n "$RANLIB"; then
4476 echo "$ac_t""$RANLIB" 1>&6
4478 echo "$ac_t""no" 1>&6
4482 if test -z "$ac_cv_prog_RANLIB"; then
4483 if test -n "$ac_tool_prefix"; then
4484 # Extract the first word of "ranlib", so it can be a program name with args.
4485 set dummy ranlib; ac_word=$2
4486 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4487 echo "configure:4488: checking for $ac_word" >&5
4488 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
4489 echo $ac_n "(cached) $ac_c" 1>&6
4491 if test -n "$RANLIB"; then
4492 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4494 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4496 for ac_dir in $ac_dummy; do
4497 test -z "$ac_dir" && ac_dir=.
4498 if test -f $ac_dir/$ac_word; then
4499 ac_cv_prog_RANLIB="ranlib"
4504 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
4507 RANLIB="$ac_cv_prog_RANLIB"
4508 if test -n "$RANLIB"; then
4509 echo "$ac_t""$RANLIB" 1>&6
4511 echo "$ac_t""no" 1>&6
4519 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4520 set dummy ${ac_tool_prefix}strip; ac_word=$2
4521 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4522 echo "configure:4523: checking for $ac_word" >&5
4523 if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then
4524 echo $ac_n "(cached) $ac_c" 1>&6
4526 if test -n "$STRIP"; then
4527 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4529 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4531 for ac_dir in $ac_dummy; do
4532 test -z "$ac_dir" && ac_dir=.
4533 if test -f $ac_dir/$ac_word; then
4534 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4541 STRIP="$ac_cv_prog_STRIP"
4542 if test -n "$STRIP"; then
4543 echo "$ac_t""$STRIP" 1>&6
4545 echo "$ac_t""no" 1>&6
4549 if test -z "$ac_cv_prog_STRIP"; then
4550 if test -n "$ac_tool_prefix"; then
4551 # Extract the first word of "strip", so it can be a program name with args.
4552 set dummy strip; ac_word=$2
4553 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4554 echo "configure:4555: checking for $ac_word" >&5
4555 if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then
4556 echo $ac_n "(cached) $ac_c" 1>&6
4558 if test -n "$STRIP"; then
4559 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4561 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4563 for ac_dir in $ac_dummy; do
4564 test -z "$ac_dir" && ac_dir=.
4565 if test -f $ac_dir/$ac_word; then
4566 ac_cv_prog_STRIP="strip"
4571 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
4574 STRIP="$ac_cv_prog_STRIP"
4575 if test -n "$STRIP"; then
4576 echo "$ac_t""$STRIP" 1>&6
4578 echo "$ac_t""no" 1>&6
4588 enable_win32_dll=yes
4590 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4591 if test "${enable_libtool_lock+set}" = set; then
4592 enableval="$enable_libtool_lock"
4596 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4598 # Some flags need to be propagated to the compiler or linker for good
4602 # Find out which ABI we are using.
4603 echo '#line 4604 "configure"' > conftest.$ac_ext
4604 if { (eval echo configure:4605: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4605 case `/usr/bin/file conftest.$ac_objext` in
4621 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4622 SAVE_CFLAGS="$CFLAGS"
4623 CFLAGS="$CFLAGS -belf"
4624 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
4625 echo "configure:4626: checking whether the C compiler needs -belf" >&5
4626 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
4627 echo $ac_n "(cached) $ac_c" 1>&6
4631 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4632 ac_cpp='$CPP $CPPFLAGS'
4633 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4634 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4635 cross_compiling=$ac_cv_prog_cc_cross
4637 cat > conftest.$ac_ext <<EOF
4638 #line 4639 "configure"
4639 #include "confdefs.h"
4645 if { (eval echo configure:4646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4647 lt_cv_cc_needs_belf=yes
4649 echo "configure: failed program was:" >&5
4650 cat conftest.$ac_ext >&5
4652 lt_cv_cc_needs_belf=no
4656 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4657 ac_cpp='$CPP $CPPFLAGS'
4658 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4659 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4660 cross_compiling=$ac_cv_prog_cc_cross
4664 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
4665 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4666 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4667 CFLAGS="$SAVE_CFLAGS"
4671 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4672 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4673 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4674 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4675 echo "configure:4676: checking for $ac_word" >&5
4676 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
4677 echo $ac_n "(cached) $ac_c" 1>&6
4679 if test -n "$DLLTOOL"; then
4680 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4682 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4684 for ac_dir in $ac_dummy; do
4685 test -z "$ac_dir" && ac_dir=.
4686 if test -f $ac_dir/$ac_word; then
4687 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4694 DLLTOOL="$ac_cv_prog_DLLTOOL"
4695 if test -n "$DLLTOOL"; then
4696 echo "$ac_t""$DLLTOOL" 1>&6
4698 echo "$ac_t""no" 1>&6
4702 if test -z "$ac_cv_prog_DLLTOOL"; then
4703 if test -n "$ac_tool_prefix"; then
4704 # Extract the first word of "dlltool", so it can be a program name with args.
4705 set dummy dlltool; ac_word=$2
4706 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4707 echo "configure:4708: checking for $ac_word" >&5
4708 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
4709 echo $ac_n "(cached) $ac_c" 1>&6
4711 if test -n "$DLLTOOL"; then
4712 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4714 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4716 for ac_dir in $ac_dummy; do
4717 test -z "$ac_dir" && ac_dir=.
4718 if test -f $ac_dir/$ac_word; then
4719 ac_cv_prog_DLLTOOL="dlltool"
4724 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
4727 DLLTOOL="$ac_cv_prog_DLLTOOL"
4728 if test -n "$DLLTOOL"; then
4729 echo "$ac_t""$DLLTOOL" 1>&6
4731 echo "$ac_t""no" 1>&6
4739 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4740 set dummy ${ac_tool_prefix}as; ac_word=$2
4741 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4742 echo "configure:4743: checking for $ac_word" >&5
4743 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
4744 echo $ac_n "(cached) $ac_c" 1>&6
4746 if test -n "$AS"; then
4747 ac_cv_prog_AS="$AS" # Let the user override the test.
4749 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4751 for ac_dir in $ac_dummy; do
4752 test -z "$ac_dir" && ac_dir=.
4753 if test -f $ac_dir/$ac_word; then
4754 ac_cv_prog_AS="${ac_tool_prefix}as"
4762 if test -n "$AS"; then
4763 echo "$ac_t""$AS" 1>&6
4765 echo "$ac_t""no" 1>&6
4769 if test -z "$ac_cv_prog_AS"; then
4770 if test -n "$ac_tool_prefix"; then
4771 # Extract the first word of "as", so it can be a program name with args.
4772 set dummy as; ac_word=$2
4773 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4774 echo "configure:4775: checking for $ac_word" >&5
4775 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
4776 echo $ac_n "(cached) $ac_c" 1>&6
4778 if test -n "$AS"; then
4779 ac_cv_prog_AS="$AS" # Let the user override the test.
4781 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4783 for ac_dir in $ac_dummy; do
4784 test -z "$ac_dir" && ac_dir=.
4785 if test -f $ac_dir/$ac_word; then
4791 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
4795 if test -n "$AS"; then
4796 echo "$ac_t""$AS" 1>&6
4798 echo "$ac_t""no" 1>&6
4806 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4807 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4808 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4809 echo "configure:4810: checking for $ac_word" >&5
4810 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
4811 echo $ac_n "(cached) $ac_c" 1>&6
4813 if test -n "$OBJDUMP"; then
4814 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4816 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4818 for ac_dir in $ac_dummy; do
4819 test -z "$ac_dir" && ac_dir=.
4820 if test -f $ac_dir/$ac_word; then
4821 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4828 OBJDUMP="$ac_cv_prog_OBJDUMP"
4829 if test -n "$OBJDUMP"; then
4830 echo "$ac_t""$OBJDUMP" 1>&6
4832 echo "$ac_t""no" 1>&6
4836 if test -z "$ac_cv_prog_OBJDUMP"; then
4837 if test -n "$ac_tool_prefix"; then
4838 # Extract the first word of "objdump", so it can be a program name with args.
4839 set dummy objdump; ac_word=$2
4840 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4841 echo "configure:4842: checking for $ac_word" >&5
4842 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
4843 echo $ac_n "(cached) $ac_c" 1>&6
4845 if test -n "$OBJDUMP"; then
4846 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4848 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4850 for ac_dir in $ac_dummy; do
4851 test -z "$ac_dir" && ac_dir=.
4852 if test -f $ac_dir/$ac_word; then
4853 ac_cv_prog_OBJDUMP="objdump"
4858 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
4861 OBJDUMP="$ac_cv_prog_OBJDUMP"
4862 if test -n "$OBJDUMP"; then
4863 echo "$ac_t""$OBJDUMP" 1>&6
4865 echo "$ac_t""no" 1>&6
4874 # recent cygwin and mingw systems supply a stub DllMain which the user
4875 # can override, but on older systems we have to supply one
4876 echo $ac_n "checking if libtool should supply DllMain function""... $ac_c" 1>&6
4877 echo "configure:4878: checking if libtool should supply DllMain function" >&5
4878 if eval "test \"\${lt_cv_need_dllmain+set}\" = set"; then
4879 echo $ac_n "(cached) $ac_c" 1>&6
4881 cat > conftest.$ac_ext <<EOF
4882 #line 4883 "configure"
4883 #include "confdefs.h"
4886 extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
4890 if { (eval echo configure:4891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4892 lt_cv_need_dllmain=no
4894 echo "configure: failed program was:" >&5
4895 cat conftest.$ac_ext >&5
4897 lt_cv_need_dllmain=yes
4902 echo "$ac_t""$lt_cv_need_dllmain" 1>&6
4905 *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
4906 # old mingw systems require "-dll" to link a DLL, while more recent ones
4908 SAVE_CFLAGS="$CFLAGS"
4909 CFLAGS="$CFLAGS -mdll"
4910 echo $ac_n "checking how to link DLLs""... $ac_c" 1>&6
4911 echo "configure:4912: checking how to link DLLs" >&5
4912 if eval "test \"\${lt_cv_cc_dll_switch+set}\" = set"; then
4913 echo $ac_n "(cached) $ac_c" 1>&6
4915 cat > conftest.$ac_ext <<EOF
4916 #line 4917 "configure"
4917 #include "confdefs.h"
4923 if { (eval echo configure:4924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4925 lt_cv_cc_dll_switch=-mdll
4927 echo "configure: failed program was:" >&5
4928 cat conftest.$ac_ext >&5
4930 lt_cv_cc_dll_switch=-dll
4935 echo "$ac_t""$lt_cv_cc_dll_switch" 1>&6
4936 CFLAGS="$SAVE_CFLAGS" ;;
4937 *-*-cygwin* | *-*-pw32*)
4938 # cygwin systems need to pass --dll to the linker, and not link
4939 # crt.o which will require a WinMain@16 definition.
4940 lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
4946 # Sed substitution that helps us do robust quoting. It backslashifies
4947 # metacharacters that are still active within double-quoted strings.
4948 Xsed='sed -e s/^X//'
4949 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4951 # Same as above, but do not quote variable references.
4952 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4954 # Sed substitution to delay expansion of an escaped shell variable in a
4955 # double_quote_subst'ed string.
4956 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4962 default_ofile=libtool
4963 can_build_shared=yes
4965 # All known linkers require a `.a' archive for static linking (except M$VC,
4966 # which needs '.lib').
4968 ltmain="$ac_aux_dir/ltmain.sh"
4969 ofile="$default_ofile"
4970 with_gnu_ld="$lt_cv_prog_gnu_ld"
4971 need_locks="$enable_libtool_lock"
4974 old_CFLAGS="$CFLAGS"
4976 # Set sane defaults for various variables
4977 test -z "$AR" && AR=ar
4978 test -z "$AR_FLAGS" && AR_FLAGS=cru
4979 test -z "$AS" && AS=as
4980 test -z "$CC" && CC=cc
4981 test -z "$DLLTOOL" && DLLTOOL=dlltool
4982 test -z "$LD" && LD=ld
4983 test -z "$LN_S" && LN_S="ln -s"
4984 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4985 test -z "$NM" && NM=nm
4986 test -z "$OBJDUMP" && OBJDUMP=objdump
4987 test -z "$RANLIB" && RANLIB=:
4988 test -z "$STRIP" && STRIP=:
4989 test -z "$ac_objext" && ac_objext=o
4991 if test x"$host" != x"$build"; then
4992 ac_tool_prefix=${host_alias}-
4997 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
5000 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
5005 # AIX sometimes has problems with the GCC collect2 program. For some
5006 # reason, if we set the COLLECT_NAMES environment variable, the problems
5007 # vanish in a puff of smoke.
5008 if test "X${COLLECT_NAMES+set}" != Xset; then
5010 export COLLECT_NAMES
5015 # Determine commands to create old-style static archives.
5016 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5017 old_postinstall_cmds='chmod 644 $oldlib'
5018 old_postuninstall_cmds=
5020 if test -n "$RANLIB"; then
5023 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5026 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5029 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5032 # Allow CC to be a program name with arguments.
5036 echo $ac_n "checking for objdir""... $ac_c" 1>&6
5037 echo "configure:5038: checking for objdir" >&5
5038 rm -f .libs 2>/dev/null
5039 mkdir .libs 2>/dev/null
5040 if test -d .libs; then
5043 # MS-DOS does not allow filenames that begin with a dot.
5046 rmdir .libs 2>/dev/null
5047 echo "$ac_t""$objdir" 1>&6
5050 # Check whether --with-pic or --without-pic was given.
5051 if test "${with_pic+set}" = set; then
5058 test -z "$pic_mode" && pic_mode=default
5060 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
5061 # in isolation, and that seeing it set (from the cache) indicates that
5062 # the associated values are set (in the cache) correctly too.
5063 echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6
5064 echo "configure:5065: checking for $compiler option to produce PIC" >&5
5065 if eval "test \"\${lt_cv_prog_cc_pic+set}\" = set"; then
5066 echo $ac_n "(cached) $ac_c" 1>&6
5069 lt_cv_prog_cc_shlib=
5071 lt_cv_prog_cc_static=
5072 lt_cv_prog_cc_no_builtin=
5073 lt_cv_prog_cc_can_build_shared=$can_build_shared
5075 if test "$GCC" = yes; then
5076 lt_cv_prog_cc_wl='-Wl,'
5077 lt_cv_prog_cc_static='-static'
5081 # Below there is a dirty hack to force normal static linking with -ldl
5082 # The problem is because libdl dynamically linked with both libc and
5083 # libC (AIX C++ library), which obviously doesn't included in libraries
5084 # list by gcc. This cause undefined symbols with -static flags.
5085 # This hack allows C programs to be linked with "-static -ldl", but
5086 # not sure about C++ programs.
5087 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5090 # FIXME: we need at least 68020 code to build shared libraries, but
5091 # adding the `-m68020' flag to GCC prevents building anything better,
5093 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5095 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5096 # PIC is the default for these OSes.
5098 darwin* | rhapsody*)
5099 # PIC is the default on this platform
5100 # Common symbols not allowed in MH_DYLIB files
5101 lt_cv_prog_cc_pic='-fno-common'
5103 cygwin* | mingw* | pw32* | os2*)
5104 # This hack is so that the source file can tell whether it is being
5105 # built for inclusion in a dll (and should export symbols for example).
5106 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5109 if test -d /usr/nec; then
5110 lt_cv_prog_cc_pic=-Kconform_pic
5114 lt_cv_prog_cc_pic='-fPIC'
5118 # PORTME Check for PIC flags for the system compiler.
5120 aix3* | aix4* | aix5*)
5121 lt_cv_prog_cc_wl='-Wl,'
5122 # All AIX code is PIC.
5123 if test "$host_cpu" = ia64; then
5124 # AIX 5 now supports IA64 processor
5125 lt_cv_prog_cc_static='-Bstatic'
5127 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5131 hpux9* | hpux10* | hpux11*)
5132 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5133 lt_cv_prog_cc_wl='-Wl,'
5134 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5135 lt_cv_prog_cc_pic='+Z'
5138 irix5* | irix6* | nonstopux*)
5139 lt_cv_prog_cc_wl='-Wl,'
5140 lt_cv_prog_cc_static='-non_shared'
5141 # PIC (with -KPIC) is the default.
5144 cygwin* | mingw* | pw32* | os2*)
5145 # This hack is so that the source file can tell whether it is being
5146 # built for inclusion in a dll (and should export symbols for example).
5147 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5151 lt_cv_prog_cc_pic='-KPIC'
5152 lt_cv_prog_cc_static='-Bstatic'
5155 osf3* | osf4* | osf5*)
5156 # All OSF/1 code is PIC.
5157 lt_cv_prog_cc_wl='-Wl,'
5158 lt_cv_prog_cc_static='-non_shared'
5162 lt_cv_prog_cc_pic='-Kpic'
5163 lt_cv_prog_cc_static='-dn'
5164 lt_cv_prog_cc_shlib='-belf'
5168 lt_cv_prog_cc_pic='-KPIC'
5169 lt_cv_prog_cc_static='-Bstatic'
5170 lt_cv_prog_cc_wl='-Wl,'
5174 lt_cv_prog_cc_pic='-PIC'
5175 lt_cv_prog_cc_static='-Bstatic'
5176 lt_cv_prog_cc_wl='-Qoption ld '
5179 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5180 lt_cv_prog_cc_pic='-KPIC'
5181 lt_cv_prog_cc_static='-Bstatic'
5182 lt_cv_prog_cc_wl='-Wl,'
5186 lt_cv_prog_cc_pic='-pic'
5187 lt_cv_prog_cc_static='-Bstatic'
5191 if test -d /usr/nec ;then
5192 lt_cv_prog_cc_pic='-Kconform_pic'
5193 lt_cv_prog_cc_static='-Bstatic'
5198 lt_cv_prog_cc_can_build_shared=no
5205 if test -z "$lt_cv_prog_cc_pic"; then
5206 echo "$ac_t""none" 1>&6
5208 echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6
5210 # Check to make sure the pic_flag actually works.
5211 echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6
5212 echo "configure:5213: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5213 if eval "test \"\${lt_cv_prog_cc_pic_works+set}\" = set"; then
5214 echo $ac_n "(cached) $ac_c" 1>&6
5216 save_CFLAGS="$CFLAGS"
5217 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5218 cat > conftest.$ac_ext <<EOF
5219 #line 5220 "configure"
5220 #include "confdefs.h"
5226 if { (eval echo configure:5227: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5229 hpux9* | hpux10* | hpux11*)
5230 # On HP-UX, both CC and GCC only warn that PIC is supported... then
5231 # they create non-PIC objects. So, if there were any warnings, we
5232 # assume that PIC is not supported.
5233 if test -s conftest.err; then
5234 lt_cv_prog_cc_pic_works=no
5236 lt_cv_prog_cc_pic_works=yes
5240 lt_cv_prog_cc_pic_works=yes
5245 echo "configure: failed program was:" >&5
5246 cat conftest.$ac_ext >&5
5248 lt_cv_prog_cc_pic_works=no
5252 CFLAGS="$save_CFLAGS"
5257 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5259 lt_cv_prog_cc_can_build_shared=no
5261 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5264 echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6
5267 # Check for any special shared library compilation flags.
5268 if test -n "$lt_cv_prog_cc_shlib"; then
5269 echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2
5270 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5272 echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2
5273 lt_cv_prog_cc_can_build_shared=no
5277 echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6
5278 echo "configure:5279: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5279 if eval "test \"\${lt_cv_prog_cc_static_works+set}\" = set"; then
5280 echo $ac_n "(cached) $ac_c" 1>&6
5282 lt_cv_prog_cc_static_works=no
5283 save_LDFLAGS="$LDFLAGS"
5284 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5285 cat > conftest.$ac_ext <<EOF
5286 #line 5287 "configure"
5287 #include "confdefs.h"
5293 if { (eval echo configure:5294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5295 lt_cv_prog_cc_static_works=yes
5297 echo "configure: failed program was:" >&5
5298 cat conftest.$ac_ext >&5
5301 LDFLAGS="$save_LDFLAGS"
5306 # Belt *and* braces to stop my trousers falling down:
5307 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5308 echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6
5310 pic_flag="$lt_cv_prog_cc_pic"
5311 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5312 wl="$lt_cv_prog_cc_wl"
5313 link_static_flag="$lt_cv_prog_cc_static"
5314 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5315 can_build_shared="$lt_cv_prog_cc_can_build_shared"
5318 # Check to see if options -o and -c are simultaneously supported by compiler
5319 echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6
5320 echo "configure:5321: checking if $compiler supports -c -o file.$ac_objext" >&5
5321 if eval "test \"\${lt_cv_compiler_c_o+set}\" = set"; then
5322 echo $ac_n "(cached) $ac_c" 1>&6
5325 $rm -r conftest 2>/dev/null
5328 echo "int some_variable = 0;" > conftest.$ac_ext
5330 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5331 # that will create temporary files in the current directory regardless of
5332 # the output directory. Thus, making CWD read-only will cause this test
5333 # to fail, enabling locking or at least warning the user not to do parallel
5336 save_CFLAGS="$CFLAGS"
5337 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5339 if { (eval echo configure:5340: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5340 # The compiler can only warn and ignore the option if not recognized
5341 # So say no if there are warnings
5342 if test -s out/conftest.err; then
5343 lt_cv_compiler_c_o=no
5345 lt_cv_compiler_c_o=yes
5348 # Append any errors to the config.log.
5349 cat out/conftest.err 1>&5
5350 lt_cv_compiler_c_o=no
5352 CFLAGS="$save_CFLAGS"
5358 $rm -r conftest 2>/dev/null
5362 compiler_c_o=$lt_cv_compiler_c_o
5363 echo "$ac_t""$compiler_c_o" 1>&6
5365 if test x"$compiler_c_o" = x"yes"; then
5366 # Check to see if we can write to a .lo
5367 echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6
5368 echo "configure:5369: checking if $compiler supports -c -o file.lo" >&5
5369 if eval "test \"\${lt_cv_compiler_o_lo+set}\" = set"; then
5370 echo $ac_n "(cached) $ac_c" 1>&6
5373 lt_cv_compiler_o_lo=no
5374 save_CFLAGS="$CFLAGS"
5375 CFLAGS="$CFLAGS -c -o conftest.lo"
5376 save_objext="$ac_objext"
5378 cat > conftest.$ac_ext <<EOF
5379 #line 5380 "configure"
5380 #include "confdefs.h"
5383 int some_variable = 0;
5386 if { (eval echo configure:5387: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5388 # The compiler can only warn and ignore the option if not recognized
5389 # So say no if there are warnings
5390 if test -s conftest.err; then
5391 lt_cv_compiler_o_lo=no
5393 lt_cv_compiler_o_lo=yes
5397 echo "configure: failed program was:" >&5
5398 cat conftest.$ac_ext >&5
5401 ac_objext="$save_objext"
5402 CFLAGS="$save_CFLAGS"
5406 compiler_o_lo=$lt_cv_compiler_o_lo
5407 echo "$ac_t""$compiler_o_lo" 1>&6
5412 # Check to see if we can do hard links to lock some files if needed
5413 hard_links="nottested"
5414 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5415 # do not overwrite the value of need_locks provided by the user
5416 echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6
5417 echo "configure:5418: checking if we can lock with hard links" >&5
5420 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5422 ln conftest.a conftest.b 2>&5 || hard_links=no
5423 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5424 echo "$ac_t""$hard_links" 1>&6
5425 if test "$hard_links" = no; then
5426 echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2
5433 if test "$GCC" = yes; then
5434 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5435 echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6
5436 echo "configure:5437: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5437 echo "int some_variable = 0;" > conftest.$ac_ext
5438 save_CFLAGS="$CFLAGS"
5439 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5440 compiler_rtti_exceptions=no
5441 cat > conftest.$ac_ext <<EOF
5442 #line 5443 "configure"
5443 #include "confdefs.h"
5446 int some_variable = 0;
5449 if { (eval echo configure:5450: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5451 # The compiler can only warn and ignore the option if not recognized
5452 # So say no if there are warnings
5453 if test -s conftest.err; then
5454 compiler_rtti_exceptions=no
5456 compiler_rtti_exceptions=yes
5460 echo "configure: failed program was:" >&5
5461 cat conftest.$ac_ext >&5
5464 CFLAGS="$save_CFLAGS"
5465 echo "$ac_t""$compiler_rtti_exceptions" 1>&6
5467 if test "$compiler_rtti_exceptions" = "yes"; then
5468 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5470 no_builtin_flag=' -fno-builtin'
5474 # See if the linker supports building shared libraries.
5475 echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6
5476 echo "configure:5477: checking whether the linker ($LD) supports shared libraries" >&5
5478 allow_undefined_flag=
5480 need_lib_prefix=unknown
5481 need_version=unknown
5482 # when you set need_version to no, make sure it does not cause -set_version
5483 # flags to be left without arguments
5485 archive_expsym_cmds=
5486 old_archive_from_new_cmds=
5487 old_archive_from_expsyms_cmds=
5488 export_dynamic_flag_spec=
5489 whole_archive_flag_spec=
5490 thread_safe_flag_spec=
5491 hardcode_into_libs=no
5492 hardcode_libdir_flag_spec=
5493 hardcode_libdir_separator=
5496 hardcode_shlibpath_var=unsupported
5498 link_all_deplibs=unknown
5499 always_export_symbols=no
5500 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5501 # include_expsyms should be a list of space-separated symbols to be *always*
5502 # included in the symbol list
5504 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5505 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5506 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5507 # as well as any symbol that contains `d'.
5508 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5509 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5510 # platforms (ab)use it in PIC code, but their linkers get confused if
5511 # the symbol is explicitly referenced. Since portable code cannot
5512 # rely on this symbol name, it's probably fine to never include it in
5513 # preloaded symbol tables.
5514 extract_expsyms_cmds=
5517 cygwin* | mingw* | pw32*)
5518 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5519 # When not using gcc, we currently assume that we are using
5520 # Microsoft Visual C++.
5521 if test "$GCC" != yes; then
5531 if test "$with_gnu_ld" = yes; then
5532 # If archive_cmds runs LD, not CC, wlarc should be empty
5535 # See if GNU ld supports shared libraries.
5537 aix3* | aix4* | aix5*)
5538 # On AIX, the GNU linker is very broken
5539 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5543 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5544 *** to be unable to reliably create shared libraries on AIX.
5545 *** Therefore, libtool is disabling shared libraries support. If you
5546 *** really care for shared libraries, you may want to modify your PATH
5547 *** so that a non-GNU linker is found, and then restart.
5553 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
5554 hardcode_libdir_flag_spec='-L$libdir'
5555 hardcode_minus_L=yes
5557 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5558 # that the semantics of dynamic libraries on AmigaOS, at least up
5559 # to version 4, is to share data among multiple programs linked
5560 # with the same dynamic library. Since this doesn't match the
5561 # behavior of shared libraries on other platforms, we can use
5567 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5568 allow_undefined_flag=unsupported
5569 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5570 # support --undefined. This deserves some investigation. FIXME
5571 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5577 cygwin* | mingw* | pw32*)
5578 # hardcode_libdir_flag_spec is actually meaningless, as there is
5579 # no search path for DLLs.
5580 hardcode_libdir_flag_spec='-L$libdir'
5581 allow_undefined_flag=unsupported
5582 always_export_symbols=yes
5584 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5585 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5586 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5587 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5588 else $CC -o impgen impgen.c ; fi)~
5589 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5591 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5593 # cygwin and mingw dlls have different entry points and sets of symbols
5595 # FIXME: what about values for MSVC?
5596 dll_entry=__cygwin_dll_entry@12
5597 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5601 dll_entry=_DllMainCRTStartup@12
5602 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5606 # mingw and cygwin differ, and it's simplest to just exclude the union
5607 # of the two symbol sets.
5608 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5610 # recent cygwin and mingw systems supply a stub DllMain which the user
5611 # can override, but on older systems we have to supply one (in ltdll.c)
5612 if test "x$lt_cv_need_dllmain" = "xyes"; then
5613 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5614 ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
5615 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5621 # Extract the symbol export list from an `--export-all' def file,
5622 # then regenerate the def file from the symbol export list, so that
5623 # the compiled dll only exports the symbol export list.
5624 # Be careful not to strip the DATA tag left be newer dlltools.
5625 export_symbols_cmds="$ltdll_cmds"'
5626 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5627 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5629 # If the export-symbols file already is a .def file (1st line
5630 # is EXPORTS), use it as is.
5631 # If DATA tags from a recent dlltool are present, honour them!
5632 archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
5633 cp $export_symbols $output_objdir/$soname-def;
5635 echo EXPORTS > $output_objdir/$soname-def;
5637 cat $export_symbols | while read symbol; do
5640 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5641 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
5642 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5644 _lt_hint=`expr 1 + \$_lt_hint`;
5648 $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
5649 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
5650 $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
5651 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
5652 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5656 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5657 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5660 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5661 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5666 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5670 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5671 *** create shared libraries on Solaris systems. Therefore, libtool
5672 *** is disabling shared libraries support. We urge you to upgrade GNU
5673 *** binutils to release 2.9.1 or newer. Another option is to modify
5674 *** your PATH or compiler configuration so that the native linker is
5675 *** used, and then restart.
5678 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5679 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5680 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5687 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5690 hardcode_shlibpath_var=no
5694 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5695 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5696 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5703 if test "$ld_shlibs" = yes; then
5704 runpath_var=LD_RUN_PATH
5705 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5706 export_dynamic_flag_spec='${wl}--export-dynamic'
5708 cygwin* | mingw* | pw32*)
5709 # dlltool doesn't understand --whole-archive et. al.
5710 whole_archive_flag_spec=
5713 # ancient GNU ld didn't support --whole-archive et. al.
5714 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5715 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5717 whole_archive_flag_spec=
5723 # PORTME fill in a description of your system's linker (not GNU ld)
5726 allow_undefined_flag=unsupported
5727 always_export_symbols=yes
5728 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
5729 # Note: this linker hardcodes the directories in LIBPATH if there
5730 # are no directories specified by -L.
5731 hardcode_minus_L=yes
5732 if test "$GCC" = yes && test -z "$link_static_flag"; then
5733 # Neither direct hardcoding nor static linking is supported with a
5735 hardcode_direct=unsupported
5740 if test "$host_cpu" = ia64; then
5741 # On IA64, the linker does run time linking by default, so we don't
5742 # have to do anything special.
5743 aix_use_runtimelinking=no
5744 exp_sym_flag='-Bexport'
5747 aix_use_runtimelinking=no
5749 # Test if we are trying to use run time linking or normal
5750 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5751 # need to do runtime linking.
5752 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5753 for ld_flag in $LDFLAGS; do
5756 aix_use_runtimelinking=yes
5763 exp_sym_flag='-bexport'
5764 no_entry_flag='-bnoentry'
5767 # When large executables or shared objects are built, AIX ld can
5768 # have problems creating the table of contents. If linking a library
5769 # or program results in "error TOC overflow" add -mminimal-toc to
5770 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5771 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5775 hardcode_libdir_separator=':'
5776 if test "$GCC" = yes; then
5777 case $host_os in aix4.[012]|aix4.[012].*)
5778 collect2name=`${CC} -print-prog-name=collect2`
5779 if test -f "$collect2name" && \
5780 strings "$collect2name" | grep resolve_lib_name >/dev/null
5782 # We have reworked collect2
5785 # We have old collect2
5786 hardcode_direct=unsupported
5787 # It fails to find uninstalled libraries when the uninstalled
5788 # path is not listed in the libpath. Setting hardcode_minus_L
5789 # to unsupported forces relinking
5790 hardcode_minus_L=yes
5791 hardcode_libdir_flag_spec='-L$libdir'
5792 hardcode_libdir_separator=
5796 shared_flag='-shared'
5799 if test "$host_cpu" = ia64; then
5800 shared_flag='${wl}-G'
5802 if test "$aix_use_runtimelinking" = yes; then
5803 shared_flag='${wl}-G'
5805 shared_flag='${wl}-bM:SRE'
5810 # It seems that -bexpall can do strange things, so it is better to
5811 # generate a list of symbols to export.
5812 always_export_symbols=yes
5813 if test "$aix_use_runtimelinking" = yes; then
5814 # Warning - without using the other runtime loading flags (-brtl),
5815 # -berok will link without error, but may produce a broken library.
5816 allow_undefined_flag='-berok'
5817 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5818 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5820 if test "$host_cpu" = ia64; then
5821 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5822 allow_undefined_flag="-z nodefs"
5823 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
5825 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5826 # Warning - without using the other run time loading flags,
5827 # -berok will link without error, but may produce a broken library.
5828 allow_undefined_flag='${wl}-berok'
5829 # This is a bit strange, but is similar to how AIX traditionally builds
5830 # it's shared libraries.
5831 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
5837 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
5838 hardcode_libdir_flag_spec='-L$libdir'
5839 hardcode_minus_L=yes
5840 # see comment about different semantics on the GNU ld section
5844 cygwin* | mingw* | pw32*)
5845 # When not using gcc, we currently assume that we are using
5846 # Microsoft Visual C++.
5847 # hardcode_libdir_flag_spec is actually meaningless, as there is
5848 # no search path for DLLs.
5849 hardcode_libdir_flag_spec=' '
5850 allow_undefined_flag=unsupported
5851 # Tell ltmain to make .lib files, not .a files.
5853 # FIXME: Setting linknames here is a bad hack.
5854 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5855 # The linker will automatically build a .lib file if we build a DLL.
5856 old_archive_from_new_cmds='true'
5857 # FIXME: Should let the user specify the lib program.
5858 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5859 fix_srcfile_path='`cygpath -w "$srcfile"`'
5862 darwin* | rhapsody*)
5864 rhapsody* | darwin1.[012])
5865 allow_undefined_flag='-undefined suppress'
5868 allow_undefined_flag='-flat_namespace -undefined suppress'
5871 # FIXME: Relying on posixy $() will cause problems for
5872 # cross-compilation, but unfortunately the echo tests do not
5873 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
5874 # `"' quotes if we put them in here... so don't!
5875 archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
5876 # We need to add '_' to the symbols in $export_symbols first
5877 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5879 hardcode_shlibpath_var=no
5880 whole_archive_flag_spec='-all_load $convenience'
5887 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5888 # support. Future versions do this automatically, but an explicit c++rt0.o
5889 # does not break anything, and helps significantly (at the cost of a little
5892 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5893 hardcode_libdir_flag_spec='-R$libdir'
5895 hardcode_shlibpath_var=no
5898 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5900 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5902 hardcode_minus_L=yes
5903 hardcode_shlibpath_var=no
5906 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5908 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5909 hardcode_libdir_flag_spec='-R$libdir'
5911 hardcode_shlibpath_var=no
5914 hpux9* | hpux10* | hpux11*)
5916 hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
5917 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5919 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5920 hardcode_libdir_separator=:
5922 hardcode_minus_L=yes # Not in the search PATH, but as the default
5923 # location of the library.
5924 export_dynamic_flag_spec='${wl}-E'
5927 irix5* | irix6* | nonstopux*)
5928 if test "$GCC" = yes; then
5929 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5930 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5932 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5933 hardcode_libdir_flag_spec='-rpath $libdir'
5935 hardcode_libdir_separator=:
5936 link_all_deplibs=yes
5940 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5941 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5943 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5945 hardcode_libdir_flag_spec='-R$libdir'
5947 hardcode_shlibpath_var=no
5951 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5953 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5954 hardcode_libdir_separator=:
5955 hardcode_shlibpath_var=no
5960 hardcode_shlibpath_var=no
5961 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5962 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5963 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5964 export_dynamic_flag_spec='${wl}-E'
5967 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5968 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5969 hardcode_libdir_flag_spec='-R$libdir'
5972 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5973 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5980 hardcode_libdir_flag_spec='-L$libdir'
5981 hardcode_minus_L=yes
5982 allow_undefined_flag=unsupported
5983 archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
5984 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5988 if test "$GCC" = yes; then
5989 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5990 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5992 allow_undefined_flag=' -expect_unresolved \*'
5993 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5995 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5996 hardcode_libdir_separator=:
5999 osf4* | osf5*) # as osf3* with the addition of -msym flag
6000 if test "$GCC" = yes; then
6001 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6002 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6003 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6005 allow_undefined_flag=' -expect_unresolved \*'
6006 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6007 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6008 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
6010 #Both c and cxx compiler support -rpath directly
6011 hardcode_libdir_flag_spec='-rpath $libdir'
6013 hardcode_libdir_separator=:
6017 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6018 hardcode_shlibpath_var=no
6019 runpath_var=LD_RUN_PATH
6020 hardcode_runpath_var=yes
6021 export_dynamic_flag_spec='${wl}-Bexport'
6025 # gcc --version < 3.0 without binutils cannot create self contained
6026 # shared libraries reliably, requiring libgcc.a to resolve some of
6027 # the object symbols generated in some cases. Libraries that use
6028 # assert need libgcc.a to resolve __eprintf, for example. Linking
6029 # a copy of libgcc.a into every shared library to guarantee resolving
6030 # such symbols causes other problems: According to Tim Van Holder
6031 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
6032 # (to the application) exception stack for one thing.
6033 no_undefined_flag=' -z defs'
6034 if test "$GCC" = yes; then
6035 case `$CC --version 2>/dev/null` in
6039 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
6040 *** create self contained shared libraries on Solaris systems, without
6041 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
6042 *** -no-undefined support, which will at least allow you to build shared
6043 *** libraries. However, you may find that when you link such libraries
6044 *** into an application without using GCC, you have to manually add
6045 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
6046 *** upgrade to a newer version of GCC. Another option is to rebuild your
6047 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
6054 # $CC -shared without GNU ld will not create a library from C++
6055 # object files and a static libstdc++, better avoid it by now
6056 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6057 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6058 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6059 hardcode_libdir_flag_spec='-R$libdir'
6060 hardcode_shlibpath_var=no
6062 solaris2.[0-5] | solaris2.[0-5].*) ;;
6063 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6064 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6066 link_all_deplibs=yes
6070 if test "x$host_vendor" = xsequent; then
6071 # Use $CC to link under sequent, because it throws in some extra .o
6072 # files that make .init and .fini sections work.
6073 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6075 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6077 hardcode_libdir_flag_spec='-L$libdir'
6079 hardcode_minus_L=yes
6080 hardcode_shlibpath_var=no
6084 case $host_vendor in
6086 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6087 hardcode_direct=yes # is this really true???
6090 ## LD is ld it makes a PLAMLIB
6091 ## CC just makes a GrossModule.
6092 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6093 reload_cmds='$CC -r -o $output$reload_objs'
6097 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6098 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6101 runpath_var='LD_RUN_PATH'
6102 hardcode_shlibpath_var=no
6106 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6107 hardcode_shlibpath_var=no
6108 export_dynamic_flag_spec='-Bexport'
6112 no_undefined_flag=' -z text'
6113 # $CC -shared without GNU ld will not create a library from C++
6114 # object files and a static libstdc++, better avoid it by now
6115 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6116 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6117 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6118 hardcode_libdir_flag_spec=
6119 hardcode_shlibpath_var=no
6120 runpath_var='LD_RUN_PATH'
6124 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6125 hardcode_libdir_flag_spec='-L$libdir'
6126 hardcode_shlibpath_var=no
6130 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6131 hardcode_libdir_flag_spec='-L$libdir'
6132 hardcode_shlibpath_var=no
6136 if test -d /usr/nec; then
6137 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6138 hardcode_shlibpath_var=no
6139 runpath_var=LD_RUN_PATH
6140 hardcode_runpath_var=yes
6146 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6149 hardcode_shlibpath_var=no
6150 hardcode_runpath_var=yes
6151 runpath_var=LD_RUN_PATH
6154 sysv5uw7* | unixware7*)
6155 no_undefined_flag='${wl}-z ${wl}text'
6156 if test "$GCC" = yes; then
6157 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6159 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6161 runpath_var='LD_RUN_PATH'
6162 hardcode_shlibpath_var=no
6170 echo "$ac_t""$ld_shlibs" 1>&6
6171 test "$ld_shlibs" = no && can_build_shared=no
6173 # Check hardcoding attributes.
6174 echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6
6175 echo "configure:6176: checking how to hardcode library paths into programs" >&5
6177 if test -n "$hardcode_libdir_flag_spec" || \
6178 test -n "$runpath_var"; then
6180 # We can hardcode non-existant directories.
6181 if test "$hardcode_direct" != no &&
6182 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6183 # have to relink, otherwise we might link with an installed library
6184 # when we should be linking with a yet-to-be-installed one
6185 ## test "$hardcode_shlibpath_var" != no &&
6186 test "$hardcode_minus_L" != no; then
6187 # Linking always hardcodes the temporary library directory.
6188 hardcode_action=relink
6190 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6191 hardcode_action=immediate
6194 # We cannot hardcode anything, or else we can only hardcode existing
6196 hardcode_action=unsupported
6198 echo "$ac_t""$hardcode_action" 1>&6
6202 echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6
6203 echo "configure:6204: checking whether stripping libraries is possible" >&5
6204 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6205 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6206 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6207 echo "$ac_t""yes" 1>&6
6209 echo "$ac_t""no" 1>&6
6212 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6213 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6215 # PORTME Fill in your ld.so characteristics
6216 echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6
6217 echo "configure:6218: checking dynamic linker characteristics" >&5
6219 libname_spec='lib$name'
6226 shlibpath_overrides_runpath=unknown
6228 dynamic_linker="$host_os ld.so"
6229 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6230 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6235 library_names_spec='${libname}${release}.so$versuffix $libname.a'
6236 shlibpath_var=LIBPATH
6238 # AIX has no versioning support, so we append a major version to the name.
6239 soname_spec='${libname}${release}.so$major'
6246 hardcode_into_libs=yes
6247 if test "$host_cpu" = ia64; then
6248 # AIX 5 supports IA64
6249 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6250 shlibpath_var=LD_LIBRARY_PATH
6252 # With GCC up to 2.95.x, collect2 would create an import file
6253 # for dependence libraries. The import file would start with
6254 # the line `#! .'. This would cause the generated library to
6255 # depend on `.', always an invalid library. This was fixed in
6256 # development snapshots of GCC prior to 3.0.
6258 aix4 | aix4.[01] | aix4.[01].*)
6259 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6261 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6268 # AIX (on Power*) has no versioning support, so currently we can
6269 # not hardcode correct soname into executable. Probably we can
6270 # add versioning support to collect2, so additional links can
6271 # be useful in future.
6272 if test "$aix_use_runtimelinking" = yes; then
6273 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6274 # instead of lib<name>.a to let people know that these are not
6275 # typical AIX shared libraries.
6276 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6278 # We preserve .a as extension for shared libraries through AIX4.2
6279 # and later when we are not doing run time linking.
6280 library_names_spec='${libname}${release}.a $libname.a'
6281 soname_spec='${libname}${release}.so$major'
6283 shlibpath_var=LIBPATH
6285 hardcode_into_libs=yes
6289 library_names_spec='$libname.ixlibrary $libname.a'
6290 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6291 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
6295 library_names_spec='${libname}.so'
6296 dynamic_linker="$host_os ld.so"
6297 shlibpath_var=LIBRARY_PATH
6303 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6304 soname_spec='${libname}${release}.so$major'
6305 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6306 shlibpath_var=LD_LIBRARY_PATH
6307 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6308 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6309 export_dynamic_flag_spec=-rdynamic
6310 # the default ld.so.conf also contains /usr/contrib/lib and
6311 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6312 # libtool to hard-code these into programs
6315 cygwin* | mingw* | pw32*)
6316 version_type=windows
6319 case $GCC,$host_os in
6321 library_names_spec='$libname.dll.a'
6322 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6323 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6324 dldir=$destdir/`dirname \$dlpath`~
6325 test -d \$dldir || mkdir -p \$dldir~
6326 $install_prog .libs/$dlname \$dldir/$dlname'
6327 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6328 dlpath=$dir/\$dldll~
6332 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6333 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
6336 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6339 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6342 dynamic_linker='Win32 ld.exe'
6343 # FIXME: first we should search . and the directory the executable is in
6347 darwin* | rhapsody*)
6348 dynamic_linker="$host_os dyld"
6352 # FIXME: Relying on posixy $() will cause problems for
6353 # cross-compilation, but unfortunately the echo tests do not
6354 # yet detect zsh echo's removal of \ escapes.
6355 library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
6356 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6357 shlibpath_overrides_runpath=yes
6358 shlibpath_var=DYLD_LIBRARY_PATH
6366 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6367 version_type=freebsd-$objformat
6368 case $version_type in
6370 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6375 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6379 shlibpath_var=LD_LIBRARY_PATH
6382 shlibpath_overrides_runpath=yes
6385 shlibpath_overrides_runpath=no
6386 hardcode_into_libs=yes
6395 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6396 soname_spec='${libname}${release}.so$major'
6397 shlibpath_var=LD_LIBRARY_PATH
6398 hardcode_into_libs=yes
6401 hpux9* | hpux10* | hpux11*)
6402 # Give a soname corresponding to the major version so that dld.sl refuses to
6403 # link against other versions.
6404 dynamic_linker="$host_os dld.sl"
6408 shlibpath_var=SHLIB_PATH
6409 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6410 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6411 soname_spec='${libname}${release}.sl$major'
6412 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6413 postinstall_cmds='chmod 555 $lib'
6416 irix5* | irix6* | nonstopux*)
6418 nonstopux*) version_type=nonstopux ;;
6419 *) version_type=irix ;;
6423 soname_spec='${libname}${release}.so$major'
6424 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6426 irix5* | nonstopux*)
6430 case $LD in # libtool.m4 will add one of these switches to LD
6431 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6432 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6433 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6434 *) libsuff= shlibsuff= libmagic=never-match;;
6438 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6439 shlibpath_overrides_runpath=no
6440 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6441 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6444 # No shared lib support for Linux oldld, aout, or coff.
6445 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6449 # This must be Linux ELF.
6454 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6455 soname_spec='${libname}${release}.so$major'
6456 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6457 shlibpath_var=LD_LIBRARY_PATH
6458 shlibpath_overrides_runpath=no
6459 # This implies no fast_install, which is unacceptable.
6460 # Some rework will be needed to allow for fast_install
6461 # before this can be enabled.
6462 hardcode_into_libs=yes
6464 # We used to test for /lib/ld.so.1 and disable shared libraries on
6465 # powerpc, because MkLinux only supported shared libraries with the
6466 # GNU dynamic linker. Since this was broken with cross compilers,
6467 # most powerpc-linux boxes support dynamic linking these days and
6468 # people can always --disable-shared, the test was removed, and we
6469 # assume the GNU/Linux dynamic linker is in use.
6470 dynamic_linker='GNU/Linux ld.so'
6477 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6478 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6479 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6480 dynamic_linker='NetBSD (a.out) ld.so'
6482 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6483 soname_spec='${libname}${release}.so$major'
6484 dynamic_linker='NetBSD ld.elf_so'
6486 shlibpath_var=LD_LIBRARY_PATH
6487 shlibpath_overrides_runpath=yes
6488 hardcode_into_libs=yes
6493 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6494 shlibpath_var=LD_LIBRARY_PATH
6495 shlibpath_overrides_runpath=yes
6502 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6504 openbsd2.[89] | openbsd2.[89].*)
6505 shlibpath_overrides_runpath=no
6508 shlibpath_overrides_runpath=yes
6512 shlibpath_overrides_runpath=yes
6514 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6515 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6516 shlibpath_var=LD_LIBRARY_PATH
6520 libname_spec='$name'
6522 library_names_spec='$libname.dll $libname.a'
6523 dynamic_linker='OS/2 ld.exe'
6524 shlibpath_var=LIBPATH
6527 osf3* | osf4* | osf5*)
6530 soname_spec='${libname}${release}.so$major'
6531 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6532 shlibpath_var=LD_LIBRARY_PATH
6533 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6534 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6535 hardcode_into_libs=yes
6540 soname_spec='${libname}${release}.so$major'
6541 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6542 shlibpath_var=LD_LIBRARY_PATH
6549 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6550 soname_spec='${libname}${release}.so$major'
6551 shlibpath_var=LD_LIBRARY_PATH
6552 shlibpath_overrides_runpath=yes
6553 hardcode_into_libs=yes
6554 # ldd complains unless libraries are executable
6555 postinstall_cmds='chmod +x $lib'
6560 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6561 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6562 shlibpath_var=LD_LIBRARY_PATH
6563 shlibpath_overrides_runpath=yes
6564 if test "$with_gnu_ld" = yes; then
6570 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6572 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6573 soname_spec='${libname}${release}.so$major'
6574 shlibpath_var=LD_LIBRARY_PATH
6575 case $host_vendor in
6577 shlibpath_overrides_runpath=no
6579 export_dynamic_flag_spec='${wl}-Blargedynsym'
6580 runpath_var=LD_RUN_PATH
6588 shlibpath_overrides_runpath=no
6589 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6596 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6597 soname_spec='${libname}${release}.so$major'
6598 shlibpath_var=LD_LIBRARY_PATH
6605 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6606 soname_spec='${libname}${release}.so$major'
6607 shlibpath_var=LD_LIBRARY_PATH
6611 if test -d /usr/nec ;then
6613 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6614 soname_spec='$libname.so.$major'
6615 shlibpath_var=LD_LIBRARY_PATH
6623 echo "$ac_t""$dynamic_linker" 1>&6
6624 test "$dynamic_linker" = no && can_build_shared=no
6626 # Report the final consequences.
6627 echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6
6628 echo "configure:6629: checking if libtool supports shared libraries" >&5
6629 echo "$ac_t""$can_build_shared" 1>&6
6631 echo $ac_n "checking whether to build shared libraries""... $ac_c" 1>&6
6632 echo "configure:6633: checking whether to build shared libraries" >&5
6633 test "$can_build_shared" = "no" && enable_shared=no
6635 # On AIX, shared libraries and static libraries use the same namespace, and
6636 # are all built from PIC.
6639 test "$enable_shared" = yes && enable_static=no
6640 if test -n "$RANLIB"; then
6641 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6642 postinstall_cmds='$RANLIB $lib'
6647 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6648 test "$enable_shared" = yes && enable_static=no
6652 echo "$ac_t""$enable_shared" 1>&6
6654 echo $ac_n "checking whether to build static libraries""... $ac_c" 1>&6
6655 echo "configure:6656: checking whether to build static libraries" >&5
6656 # Make sure either enable_shared or enable_static is yes.
6657 test "$enable_shared" = yes || enable_static=yes
6658 echo "$ac_t""$enable_static" 1>&6
6660 if test "$hardcode_action" = relink; then
6661 # Fast installation is not supported
6662 enable_fast_install=no
6663 elif test "$shlibpath_overrides_runpath" = yes ||
6664 test "$enable_shared" = no; then
6665 # Fast installation is not necessary
6666 enable_fast_install=needless
6669 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6670 if test "$GCC" = yes; then
6671 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6674 if test "x$enable_dlopen" != xyes; then
6675 enable_dlopen=unknown
6676 enable_dlopen_self=unknown
6677 enable_dlopen_self_static=unknown
6684 lt_cv_dlopen="load_add_on"
6686 lt_cv_dlopen_self=yes
6689 cygwin* | mingw* | pw32*)
6690 lt_cv_dlopen="LoadLibrary"
6695 echo $ac_n "checking for shl_load""... $ac_c" 1>&6
6696 echo "configure:6697: checking for shl_load" >&5
6697 if eval "test \"\${ac_cv_func_shl_load+set}\" = set"; then
6698 echo $ac_n "(cached) $ac_c" 1>&6
6700 cat > conftest.$ac_ext <<EOF
6701 #line 6702 "configure"
6702 #include "confdefs.h"
6703 /* System header to define __stub macros and hopefully few prototypes,
6704 which can conflict with char shl_load(); below. */
6706 /* Override any gcc2 internal prototype to avoid an error. */
6707 /* We use char because int might match the return type of a gcc2
6708 builtin and then its argument prototype would still apply. */
6714 /* The GNU C library defines this for functions which it implements
6715 to always fail with ENOSYS. Some functions are actually named
6716 something starting with __ and the normal name is an alias. */
6717 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6725 if { (eval echo configure:6726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6727 eval "ac_cv_func_shl_load=yes"
6729 echo "configure: failed program was:" >&5
6730 cat conftest.$ac_ext >&5
6732 eval "ac_cv_func_shl_load=no"
6737 if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
6738 echo "$ac_t""yes" 1>&6
6739 lt_cv_dlopen="shl_load"
6741 echo "$ac_t""no" 1>&6
6742 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
6743 echo "configure:6744: checking for shl_load in -ldld" >&5
6744 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-:%__p__%'`
6745 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6746 echo $ac_n "(cached) $ac_c" 1>&6
6748 ac_save_LIBS="$LIBS"
6750 cat > conftest.$ac_ext <<EOF
6751 #line 6752 "configure"
6752 #include "confdefs.h"
6753 /* Override any gcc2 internal prototype to avoid an error. */
6754 /* We use char because int might match the return type of a gcc2
6755 builtin and then its argument prototype would still apply. */
6762 if { (eval echo configure:6763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6764 eval "ac_cv_lib_$ac_lib_var=yes"
6766 echo "configure: failed program was:" >&5
6767 cat conftest.$ac_ext >&5
6769 eval "ac_cv_lib_$ac_lib_var=no"
6772 LIBS="$ac_save_LIBS"
6775 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6776 echo "$ac_t""yes" 1>&6
6777 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6779 echo "$ac_t""no" 1>&6
6780 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
6781 echo "configure:6782: checking for dlopen" >&5
6782 if eval "test \"\${ac_cv_func_dlopen+set}\" = set"; then
6783 echo $ac_n "(cached) $ac_c" 1>&6
6785 cat > conftest.$ac_ext <<EOF
6786 #line 6787 "configure"
6787 #include "confdefs.h"
6788 /* System header to define __stub macros and hopefully few prototypes,
6789 which can conflict with char dlopen(); below. */
6791 /* Override any gcc2 internal prototype to avoid an error. */
6792 /* We use char because int might match the return type of a gcc2
6793 builtin and then its argument prototype would still apply. */
6799 /* The GNU C library defines this for functions which it implements
6800 to always fail with ENOSYS. Some functions are actually named
6801 something starting with __ and the normal name is an alias. */
6802 #if defined (__stub_dlopen) || defined (__stub___dlopen)
6810 if { (eval echo configure:6811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6812 eval "ac_cv_func_dlopen=yes"
6814 echo "configure: failed program was:" >&5
6815 cat conftest.$ac_ext >&5
6817 eval "ac_cv_func_dlopen=no"
6822 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
6823 echo "$ac_t""yes" 1>&6
6824 lt_cv_dlopen="dlopen"
6826 echo "$ac_t""no" 1>&6
6827 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
6828 echo "configure:6829: checking for dlopen in -ldl" >&5
6829 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-:%__p__%'`
6830 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6831 echo $ac_n "(cached) $ac_c" 1>&6
6833 ac_save_LIBS="$LIBS"
6835 cat > conftest.$ac_ext <<EOF
6836 #line 6837 "configure"
6837 #include "confdefs.h"
6838 /* Override any gcc2 internal prototype to avoid an error. */
6839 /* We use char because int might match the return type of a gcc2
6840 builtin and then its argument prototype would still apply. */
6847 if { (eval echo configure:6848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6849 eval "ac_cv_lib_$ac_lib_var=yes"
6851 echo "configure: failed program was:" >&5
6852 cat conftest.$ac_ext >&5
6854 eval "ac_cv_lib_$ac_lib_var=no"
6857 LIBS="$ac_save_LIBS"
6860 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6861 echo "$ac_t""yes" 1>&6
6862 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6864 echo "$ac_t""no" 1>&6
6865 echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
6866 echo "configure:6867: checking for dlopen in -lsvld" >&5
6867 ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-:%__p__%'`
6868 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6869 echo $ac_n "(cached) $ac_c" 1>&6
6871 ac_save_LIBS="$LIBS"
6873 cat > conftest.$ac_ext <<EOF
6874 #line 6875 "configure"
6875 #include "confdefs.h"
6876 /* Override any gcc2 internal prototype to avoid an error. */
6877 /* We use char because int might match the return type of a gcc2
6878 builtin and then its argument prototype would still apply. */
6885 if { (eval echo configure:6886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6887 eval "ac_cv_lib_$ac_lib_var=yes"
6889 echo "configure: failed program was:" >&5
6890 cat conftest.$ac_ext >&5
6892 eval "ac_cv_lib_$ac_lib_var=no"
6895 LIBS="$ac_save_LIBS"
6898 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6899 echo "$ac_t""yes" 1>&6
6900 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6902 echo "$ac_t""no" 1>&6
6903 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
6904 echo "configure:6905: checking for dld_link in -ldld" >&5
6905 ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-:%__p__%'`
6906 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6907 echo $ac_n "(cached) $ac_c" 1>&6
6909 ac_save_LIBS="$LIBS"
6911 cat > conftest.$ac_ext <<EOF
6912 #line 6913 "configure"
6913 #include "confdefs.h"
6914 /* Override any gcc2 internal prototype to avoid an error. */
6915 /* We use char because int might match the return type of a gcc2
6916 builtin and then its argument prototype would still apply. */
6923 if { (eval echo configure:6924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6925 eval "ac_cv_lib_$ac_lib_var=yes"
6927 echo "configure: failed program was:" >&5
6928 cat conftest.$ac_ext >&5
6930 eval "ac_cv_lib_$ac_lib_var=no"
6933 LIBS="$ac_save_LIBS"
6936 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6937 echo "$ac_t""yes" 1>&6
6938 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6940 echo "$ac_t""no" 1>&6
6961 if test "x$lt_cv_dlopen" != xno; then
6967 case $lt_cv_dlopen in
6969 save_CPPFLAGS="$CPPFLAGS"
6970 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6972 save_LDFLAGS="$LDFLAGS"
6973 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6976 LIBS="$lt_cv_dlopen_libs $LIBS"
6978 echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
6979 echo "configure:6980: checking whether a program can dlopen itself" >&5
6980 if eval "test \"\${lt_cv_dlopen_self+set}\" = set"; then
6981 echo $ac_n "(cached) $ac_c" 1>&6
6983 if test "$cross_compiling" = yes; then :
6984 lt_cv_dlopen_self=cross
6986 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6987 lt_status=$lt_dlunknown
6988 cat > conftest.$ac_ext <<EOF
6989 #line 6990 "configure"
6990 #include "confdefs.h"
6999 # define LT_DLGLOBAL RTLD_GLOBAL
7002 # define LT_DLGLOBAL DL_GLOBAL
7004 # define LT_DLGLOBAL 0
7008 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7009 find out it does not work in some platform. */
7010 #ifndef LT_DLLAZY_OR_NOW
7012 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7015 # define LT_DLLAZY_OR_NOW DL_LAZY
7018 # define LT_DLLAZY_OR_NOW RTLD_NOW
7021 # define LT_DLLAZY_OR_NOW DL_NOW
7023 # define LT_DLLAZY_OR_NOW 0
7031 extern "C" void exit (int);
7034 void fnord() { int i=42;}
7037 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7038 int status = $lt_dlunknown;
7042 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7043 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7044 /* dlclose (self); */
7050 if { (eval echo configure:7051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
7051 (./conftest; exit; ) 2>/dev/null
7054 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7055 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7056 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7059 # compilation failed
7060 lt_cv_dlopen_self=no
7068 echo "$ac_t""$lt_cv_dlopen_self" 1>&6
7070 if test "x$lt_cv_dlopen_self" = xyes; then
7071 LDFLAGS="$LDFLAGS $link_static_flag"
7072 echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
7073 echo "configure:7074: checking whether a statically linked program can dlopen itself" >&5
7074 if eval "test \"\${lt_cv_dlopen_self_static+set}\" = set"; then
7075 echo $ac_n "(cached) $ac_c" 1>&6
7077 if test "$cross_compiling" = yes; then :
7078 lt_cv_dlopen_self_static=cross
7080 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7081 lt_status=$lt_dlunknown
7082 cat > conftest.$ac_ext <<EOF
7083 #line 7084 "configure"
7084 #include "confdefs.h"
7093 # define LT_DLGLOBAL RTLD_GLOBAL
7096 # define LT_DLGLOBAL DL_GLOBAL
7098 # define LT_DLGLOBAL 0
7102 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7103 find out it does not work in some platform. */
7104 #ifndef LT_DLLAZY_OR_NOW
7106 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7109 # define LT_DLLAZY_OR_NOW DL_LAZY
7112 # define LT_DLLAZY_OR_NOW RTLD_NOW
7115 # define LT_DLLAZY_OR_NOW DL_NOW
7117 # define LT_DLLAZY_OR_NOW 0
7125 extern "C" void exit (int);
7128 void fnord() { int i=42;}
7131 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7132 int status = $lt_dlunknown;
7136 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7137 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7138 /* dlclose (self); */
7144 if { (eval echo configure:7145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
7145 (./conftest; exit; ) 2>/dev/null
7148 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7149 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7150 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7153 # compilation failed
7154 lt_cv_dlopen_self_static=no
7162 echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6
7165 CPPFLAGS="$save_CPPFLAGS"
7166 LDFLAGS="$save_LDFLAGS"
7171 case $lt_cv_dlopen_self in
7172 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7173 *) enable_dlopen_self=unknown ;;
7176 case $lt_cv_dlopen_self_static in
7177 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7178 *) enable_dlopen_self_static=unknown ;;
7183 if test "$enable_shared" = yes && test "$GCC" = yes; then
7184 case $archive_cmds in
7186 # FIXME: we may have to deal with multi-command sequences.
7189 # Test whether the compiler implicitly links with -lc since on some
7190 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7191 # to ld, don't add -lc before -lgcc.
7192 echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6
7193 echo "configure:7194: checking whether -lc should be explicitly linked in" >&5
7194 if eval "test \"\${lt_cv_archive_cmds_need_lc+set}\" = set"; then
7195 echo $ac_n "(cached) $ac_c" 1>&6
7198 echo 'static int dummy;' > conftest.$ac_ext
7200 if { (eval echo configure:7201: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7203 libobjs=conftest.$ac_objext
7205 wl=$lt_cv_prog_cc_wl
7211 save_allow_undefined_flag=$allow_undefined_flag
7212 allow_undefined_flag=
7213 if { (eval echo configure:7214: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\") 1>&5; (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5; }
7215 lt_cv_archive_cmds_need_lc=no
7217 lt_cv_archive_cmds_need_lc=yes
7219 allow_undefined_flag=$save_allow_undefined_flag
7221 cat conftest.err 1>&5
7225 echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6
7229 need_lc=${lt_cv_archive_cmds_need_lc-yes}
7231 # The second clause should only fire when bootstrapping the
7232 # libtool distribution, otherwise you forgot to ship ltmain.sh
7233 # with your package, and you will get complaints that there are
7234 # no rules to generate ltmain.sh.
7235 if test -f "$ltmain"; then
7238 # If there is no Makefile yet, we rely on a make rule to execute
7239 # `config.status --recheck' to rerun these tests and create the
7240 # libtool script then.
7241 test -f Makefile && make "$ltmain"
7244 if test -f "$ltmain"; then
7245 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7248 echo creating $ofile
7250 # Now quote all the things that may contain metacharacters while being
7251 # careful not to overquote the AC_SUBSTed values. We take copies of the
7252 # variables and quote the copies for generation of the libtool script.
7253 for var in echo old_CC old_CFLAGS SED \
7254 AR AR_FLAGS CC LD LN_S NM SHELL \
7255 reload_flag reload_cmds wl \
7256 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7257 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7258 library_names_spec soname_spec \
7259 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7260 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7261 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7262 old_striplib striplib file_magic_cmd export_symbols_cmds \
7263 deplibs_check_method allow_undefined_flag no_undefined_flag \
7264 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7265 global_symbol_to_c_name_address \
7266 hardcode_libdir_flag_spec hardcode_libdir_separator \
7267 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7268 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7271 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7272 old_postinstall_cmds | old_postuninstall_cmds | \
7273 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7274 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7275 postinstall_cmds | postuninstall_cmds | \
7276 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7277 # Double-quote double-evaled strings.
7278 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7281 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7286 cat <<__EOF__ > "${ofile}T"
7289 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7290 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7291 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7293 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7294 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7296 # This program is free software; you can redistribute it and/or modify
7297 # it under the terms of the GNU General Public License as published by
7298 # the Free Software Foundation; either version 2 of the License, or
7299 # (at your option) any later version.
7301 # This program is distributed in the hope that it will be useful, but
7302 # WITHOUT ANY WARRANTY; without even the implied warranty of
7303 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7304 # General Public License for more details.
7306 # You should have received a copy of the GNU General Public License
7307 # along with this program; if not, write to the Free Software
7308 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7310 # As a special exception to the GNU General Public License, if you
7311 # distribute this file as part of a program that contains a
7312 # configuration script generated by Autoconf, you may include it under
7313 # the same distribution terms that you use for the rest of that program.
7315 # A sed that does not truncate output.
7318 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7319 Xsed="${SED} -e s/^X//"
7321 # The HP-UX ksh and POSIX shell print the target directory to stdout
7323 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7325 # ### BEGIN LIBTOOL CONFIG
7327 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7329 # Shell to use when invoking shell scripts.
7332 # Whether or not to build shared libraries.
7333 build_libtool_libs=$enable_shared
7335 # Whether or not to build static libraries.
7336 build_old_libs=$enable_static
7338 # Whether or not to add -lc for building shared libraries.
7339 build_libtool_need_lc=$need_lc
7341 # Whether or not to optimize for fast installation.
7342 fast_install=$enable_fast_install
7345 host_alias=$host_alias
7348 # An echo program that does not interpret backslashes.
7353 AR_FLAGS=$lt_AR_FLAGS
7355 # The default C compiler.
7358 # Is the compiler the GNU C compiler?
7361 # The linker used to build libraries.
7364 # Whether we need hard or soft links.
7367 # A BSD-compatible nm program.
7370 # A symbol stripping program
7373 # Used to examine libraries when file_magic_cmd begins "file"
7374 MAGIC_CMD=$MAGIC_CMD
7376 # Used on cygwin: DLL creation program.
7379 # Used on cygwin: object dumper.
7382 # Used on cygwin: assembler.
7385 # The name of the directory that contains temporary libtool files.
7388 # How to create reloadable object files.
7389 reload_flag=$lt_reload_flag
7390 reload_cmds=$lt_reload_cmds
7392 # How to pass a linker flag through the compiler.
7395 # Object file suffix (normally "o").
7398 # Old archive suffix (normally "a").
7401 # Executable file suffix (normally "").
7404 # Additional compiler flags for building library objects.
7405 pic_flag=$lt_pic_flag
7408 # Does compiler simultaneously support -c and -o options?
7409 compiler_c_o=$lt_compiler_c_o
7411 # Can we write directly to a .lo ?
7412 compiler_o_lo=$lt_compiler_o_lo
7414 # Must we lock files when doing compilation ?
7415 need_locks=$lt_need_locks
7417 # Do we need the lib prefix for modules?
7418 need_lib_prefix=$need_lib_prefix
7420 # Do we need a version for libraries?
7421 need_version=$need_version
7423 # Whether dlopen is supported.
7424 dlopen_support=$enable_dlopen
7426 # Whether dlopen of programs is supported.
7427 dlopen_self=$enable_dlopen_self
7429 # Whether dlopen of statically linked programs is supported.
7430 dlopen_self_static=$enable_dlopen_self_static
7432 # Compiler flag to prevent dynamic linking.
7433 link_static_flag=$lt_link_static_flag
7435 # Compiler flag to turn off builtin functions.
7436 no_builtin_flag=$lt_no_builtin_flag
7438 # Compiler flag to allow reflexive dlopens.
7439 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7441 # Compiler flag to generate shared objects directly from archives.
7442 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7444 # Compiler flag to generate thread-safe objects.
7445 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7447 # Library versioning type.
7448 version_type=$version_type
7450 # Format of library name prefix.
7451 libname_spec=$lt_libname_spec
7453 # List of archive names. First name is the real one, the rest are links.
7454 # The last name is the one that the linker finds with -lNAME.
7455 library_names_spec=$lt_library_names_spec
7457 # The coded name of the library, if different from the real name.
7458 soname_spec=$lt_soname_spec
7460 # Commands used to build and install an old-style archive.
7462 old_archive_cmds=$lt_old_archive_cmds
7463 old_postinstall_cmds=$lt_old_postinstall_cmds
7464 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7466 # Create an old-style archive from a shared archive.
7467 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7469 # Create a temporary old-style archive to link instead of a shared archive.
7470 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7472 # Commands used to build and install a shared archive.
7473 archive_cmds=$lt_archive_cmds
7474 archive_expsym_cmds=$lt_archive_expsym_cmds
7475 postinstall_cmds=$lt_postinstall_cmds
7476 postuninstall_cmds=$lt_postuninstall_cmds
7478 # Commands to strip libraries.
7479 old_striplib=$lt_old_striplib
7480 striplib=$lt_striplib
7482 # Method to check whether dependent libraries are shared objects.
7483 deplibs_check_method=$lt_deplibs_check_method
7485 # Command to use when deplibs_check_method == file_magic.
7486 file_magic_cmd=$lt_file_magic_cmd
7488 # Flag that allows shared libraries with undefined symbols to be built.
7489 allow_undefined_flag=$lt_allow_undefined_flag
7491 # Flag that forces no undefined symbols.
7492 no_undefined_flag=$lt_no_undefined_flag
7494 # Commands used to finish a libtool library installation in a directory.
7495 finish_cmds=$lt_finish_cmds
7497 # Same as above, but a single script fragment to be evaled but not shown.
7498 finish_eval=$lt_finish_eval
7500 # Take the output of nm and produce a listing of raw symbols and C names.
7501 global_symbol_pipe=$lt_global_symbol_pipe
7503 # Transform the output of nm in a proper C declaration
7504 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7506 # Transform the output of nm in a C name address pair
7507 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7509 # This is the shared library runtime path variable.
7510 runpath_var=$runpath_var
7512 # This is the shared library path variable.
7513 shlibpath_var=$shlibpath_var
7515 # Is shlibpath searched before the hard-coded library search path?
7516 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7518 # How to hardcode a shared library path into an executable.
7519 hardcode_action=$hardcode_action
7521 # Whether we should hardcode library paths into libraries.
7522 hardcode_into_libs=$hardcode_into_libs
7524 # Flag to hardcode \$libdir into a binary during linking.
7525 # This must work even if \$libdir does not exist.
7526 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7528 # Whether we need a single -rpath flag with a separated argument.
7529 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7531 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7533 hardcode_direct=$hardcode_direct
7535 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7537 hardcode_minus_L=$hardcode_minus_L
7539 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7540 # the resulting binary.
7541 hardcode_shlibpath_var=$hardcode_shlibpath_var
7543 # Variables whose values should be saved in libtool wrapper scripts and
7544 # restored at relink time.
7545 variables_saved_for_relink="$variables_saved_for_relink"
7547 # Whether libtool must link a program against all its dependency libraries.
7548 link_all_deplibs=$link_all_deplibs
7550 # Compile-time system search path for libraries
7551 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7553 # Run-time system search path for libraries
7554 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7556 # Fix the shell variable \$srcfile for the compiler.
7557 fix_srcfile_path="$fix_srcfile_path"
7559 # Set to yes if exported symbols are required.
7560 always_export_symbols=$always_export_symbols
7562 # The commands to list exported symbols.
7563 export_symbols_cmds=$lt_export_symbols_cmds
7565 # The commands to extract the exported symbol list from a shared archive.
7566 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7568 # Symbols that should not be listed in the preloaded symbols.
7569 exclude_expsyms=$lt_exclude_expsyms
7571 # Symbols that must always be exported.
7572 include_expsyms=$lt_include_expsyms
7574 # ### END LIBTOOL CONFIG
7580 cat <<\EOF >> "${ofile}T"
7582 # AIX sometimes has problems with the GCC collect2 program. For some
7583 # reason, if we set the COLLECT_NAMES environment variable, the problems
7584 # vanish in a puff of smoke.
7585 if test "X${COLLECT_NAMES+set}" != Xset; then
7587 export COLLECT_NAMES
7594 cygwin* | mingw* | pw32* | os2*)
7595 cat <<'EOF' >> "${ofile}T"
7596 # This is a source program that is used to create dlls on Windows
7597 # Don't remove nor modify the starting and closing comments
7598 # /* ltdll.c starts here */
7599 # #define WIN32_LEAN_AND_MEAN
7600 # #include <windows.h>
7601 # #undef WIN32_LEAN_AND_MEAN
7602 # #include <stdio.h>
7604 # #ifndef __CYGWIN__
7605 # # ifdef __CYGWIN32__
7606 # # define __CYGWIN__ __CYGWIN32__
7610 # #ifdef __cplusplus
7613 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7614 # #ifdef __cplusplus
7619 # #include <cygwin/cygwin_dll.h>
7620 # DECLARE_CYGWIN_DLL( DllMain );
7622 # HINSTANCE __hDllInstance_base;
7625 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7627 # __hDllInstance_base = hInst;
7630 # /* ltdll.c ends here */
7631 # This is a source program that is used to create import libraries
7632 # on Windows for dlls which lack them. Don't remove nor modify the
7633 # starting and closing comments
7634 # /* impgen.c starts here */
7635 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7637 # This file is part of GNU libtool.
7639 # This program is free software; you can redistribute it and/or modify
7640 # it under the terms of the GNU General Public License as published by
7641 # the Free Software Foundation; either version 2 of the License, or
7642 # (at your option) any later version.
7644 # This program is distributed in the hope that it will be useful,
7645 # but WITHOUT ANY WARRANTY; without even the implied warranty of
7646 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7647 # GNU General Public License for more details.
7649 # You should have received a copy of the GNU General Public License
7650 # along with this program; if not, write to the Free Software
7651 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7654 # #include <stdio.h> /* for printf() */
7655 # #include <unistd.h> /* for open(), lseek(), read() */
7656 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7657 # #include <string.h> /* for strdup() */
7659 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
7661 # #define O_BINARY 0
7664 # static unsigned int
7665 # pe_get16 (fd, offset)
7669 # unsigned char b[2];
7670 # lseek (fd, offset, SEEK_SET);
7672 # return b[0] + (b[1]<<8);
7675 # static unsigned int
7676 # pe_get32 (fd, offset)
7680 # unsigned char b[4];
7681 # lseek (fd, offset, SEEK_SET);
7683 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7686 # static unsigned int
7690 # unsigned char *b = ptr;
7691 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7700 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7701 # unsigned long export_rva, export_size, nsections, secptr, expptr;
7702 # unsigned long name_rvas, nexp;
7703 # unsigned char *expdata, *erva;
7704 # char *filename, *dll_name;
7706 # filename = argv[1];
7708 # dll = open(filename, O_RDONLY|O_BINARY);
7712 # dll_name = filename;
7714 # for (i=0; filename[i]; i++)
7715 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7716 # dll_name = filename + i +1;
7718 # pe_header_offset = pe_get32 (dll, 0x3c);
7719 # opthdr_ofs = pe_header_offset + 4 + 20;
7720 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
7722 # if (num_entries < 1) /* no exports */
7725 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
7726 # export_size = pe_get32 (dll, opthdr_ofs + 100);
7727 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7728 # secptr = (pe_header_offset + 4 + 20 +
7729 # pe_get16 (dll, pe_header_offset + 4 + 16));
7732 # for (i = 0; i < nsections; i++)
7735 # unsigned long secptr1 = secptr + 40 * i;
7736 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7737 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7738 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7739 # lseek(dll, secptr1, SEEK_SET);
7740 # read(dll, sname, 8);
7741 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
7743 # expptr = fptr + (export_rva - vaddr);
7744 # if (export_rva + export_size > vaddr + vsize)
7745 # export_size = vsize - (export_rva - vaddr);
7750 # expdata = (unsigned char*)malloc(export_size);
7751 # lseek (dll, expptr, SEEK_SET);
7752 # read (dll, expdata, export_size);
7753 # erva = expdata - export_rva;
7755 # nexp = pe_as32 (expdata+24);
7756 # name_rvas = pe_as32 (expdata+32);
7758 # printf ("EXPORTS\n");
7759 # for (i = 0; i<nexp; i++)
7761 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7762 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7767 # /* impgen.c ends here */
7773 # We use sed instead of cat because bash on DJGPP gets confused if
7774 # if finds mixed CR/LF and LF-only lines. Since sed operates in
7775 # text mode, it properly converts lines to CR/LF. This bash problem
7776 # is reportedly fixed, but why not run on old versions too?
7777 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7779 mv -f "${ofile}T" "$ofile" || \
7780 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7788 # This can be used to rebuild libtool when needed
7789 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7791 # Always use our own libtool.
7792 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7794 # Prevent multiple expansion
7798 # test for ln hardlink support
7799 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
7800 echo "configure:7801: checking whether ln works" >&5
7801 if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then
7802 echo $ac_n "(cached) $ac_c" 1>&6
7804 rm -f conftest.src conftest.dst
7805 echo "conftest" > conftest.src
7806 if ln conftest.src conftest.dst 2>/dev/null
7808 ol_cv_prog_LN_H="ln"
7810 ol_cv_prog_LN_H="cp"
7812 rm -f conftest.src conftest.dst
7815 LN_H="$ol_cv_prog_LN_H"
7816 if test "$ol_cv_prog_LN_H" = "ln"; then
7817 echo "$ac_t""yes" 1>&6
7819 echo "$ac_t""no" 1>&6
7822 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
7823 echo "configure:7824: checking whether ln -s works" >&5
7824 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
7825 echo $ac_n "(cached) $ac_c" 1>&6
7828 if ln -s X conftestdata 2>/dev/null
7831 ac_cv_prog_LN_S="ln -s"
7836 LN_S="$ac_cv_prog_LN_S"
7837 if test "$ac_cv_prog_LN_S" = "ln -s"; then
7838 echo "$ac_t""yes" 1>&6
7840 echo "$ac_t""no" 1>&6
7845 if test $ol_enable_perl != no ; then
7846 # Extract the first word of "perl", so it can be a program name with args.
7847 set dummy perl; ac_word=$2
7848 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7849 echo "configure:7850: checking for $ac_word" >&5
7850 if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then
7851 echo $ac_n "(cached) $ac_c" 1>&6
7855 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
7858 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
7861 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7863 for ac_dir in $ac_dummy; do
7864 test -z "$ac_dir" && ac_dir=.
7865 if test -f $ac_dir/$ac_word; then
7866 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
7871 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
7875 PERLBIN="$ac_cv_path_PERLBIN"
7876 if test -n "$PERLBIN"; then
7877 echo "$ac_t""$PERLBIN" 1>&6
7879 echo "$ac_t""no" 1>&6
7883 if test "no$PERLBIN" = "no" ; then
7884 if test $ol_enable_perl = yes ; then
7885 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
7889 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
7890 if test x"$ol_with_perl_module" = "xstatic" ; then
7891 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
7893 MOD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
7899 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
7900 echo "configure:7901: checking how to run the C preprocessor" >&5
7901 # On Suns, sometimes $CPP names a directory.
7902 if test -n "$CPP" && test -d "$CPP"; then
7905 if test -z "$CPP"; then
7906 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
7907 echo $ac_n "(cached) $ac_c" 1>&6
7909 # This must be in double quotes, not single quotes, because CPP may get
7910 # substituted into the Makefile and "${CC-cc}" will confuse make.
7912 # On the NeXT, cc -E runs the code through the compiler's parser,
7913 # not just through cpp.
7914 cat > conftest.$ac_ext <<EOF
7915 #line 7916 "configure"
7916 #include "confdefs.h"
7920 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7921 { (eval echo configure:7922: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7922 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7923 if test -z "$ac_err"; then
7927 echo "configure: failed program was:" >&5
7928 cat conftest.$ac_ext >&5
7930 CPP="${CC-cc} -E -traditional-cpp"
7931 cat > conftest.$ac_ext <<EOF
7932 #line 7933 "configure"
7933 #include "confdefs.h"
7937 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7938 { (eval echo configure:7939: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7939 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7940 if test -z "$ac_err"; then
7944 echo "configure: failed program was:" >&5
7945 cat conftest.$ac_ext >&5
7947 CPP="${CC-cc} -nologo -E"
7948 cat > conftest.$ac_ext <<EOF
7949 #line 7950 "configure"
7950 #include "confdefs.h"
7954 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7955 { (eval echo configure:7956: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7956 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7957 if test -z "$ac_err"; then
7961 echo "configure: failed program was:" >&5
7962 cat conftest.$ac_ext >&5
7971 ac_cv_prog_CPP="$CPP"
7973 CPP="$ac_cv_prog_CPP"
7975 ac_cv_prog_CPP="$CPP"
7977 echo "$ac_t""$CPP" 1>&6
7980 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
7981 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
7983 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
7984 echo "configure: warning: programs compiled here do run here..." 1>&2
7985 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
7987 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
7988 echo "configure: warning: programs compiled here do not run here..." 1>&2
7989 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
7993 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
7994 echo "configure:7995: checking for Cygwin environment" >&5
7995 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
7996 echo $ac_n "(cached) $ac_c" 1>&6
7998 cat > conftest.$ac_ext <<EOF
7999 #line 8000 "configure"
8000 #include "confdefs.h"
8005 #define __CYGWIN__ __CYGWIN32__
8010 if { (eval echo configure:8011: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8014 echo "configure: failed program was:" >&5
8015 cat conftest.$ac_ext >&5
8022 echo "$ac_t""$ac_cv_cygwin" 1>&6
8024 test "$ac_cv_cygwin" = yes && CYGWIN=yes
8025 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
8026 echo "configure:8027: checking for mingw32 environment" >&5
8027 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
8028 echo $ac_n "(cached) $ac_c" 1>&6
8030 cat > conftest.$ac_ext <<EOF
8031 #line 8032 "configure"
8032 #include "confdefs.h"
8038 if { (eval echo configure:8039: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8042 echo "configure: failed program was:" >&5
8043 cat conftest.$ac_ext >&5
8050 echo "$ac_t""$ac_cv_mingw32" 1>&6
8052 test "$ac_cv_mingw32" = yes && MINGW32=yes
8056 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
8057 echo "configure:8058: checking for executable suffix" >&5
8058 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
8059 echo $ac_n "(cached) $ac_c" 1>&6
8061 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
8065 echo 'int main () { return 0; }' > conftest.$ac_ext
8067 if { (eval echo configure:8068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
8068 for file in conftest.*; do
8070 *.c | *.C | *.o | *.obj | *.xcoff) ;;
8071 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
8075 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
8078 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
8083 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
8084 echo "$ac_t""${ac_cv_exeext}" 1>&6
8087 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
8088 echo "configure:8089: checking for object suffix" >&5
8089 if eval "test \"\${ac_cv_objext+set}\" = set"; then
8090 echo $ac_n "(cached) $ac_c" 1>&6
8093 echo 'int i = 1;' > conftest.$ac_ext
8094 if { (eval echo configure:8095: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8095 for ac_file in conftest.*; do
8098 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
8102 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
8107 echo "$ac_t""$ac_cv_objext" 1>&6
8108 OBJEXT=$ac_cv_objext
8109 ac_objext=$ac_cv_objext
8112 cat >> confdefs.h <<EOF
8113 #define EXEEXT "${EXEEXT}"
8117 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
8118 echo "configure:8119: checking for be_app in -lbe" >&5
8119 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
8120 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8121 echo $ac_n "(cached) $ac_c" 1>&6
8123 ac_save_LIBS="$LIBS"
8124 LIBS="-lbe -lroot -lnet $LIBS"
8125 cat > conftest.$ac_ext <<EOF
8126 #line 8127 "configure"
8127 #include "confdefs.h"
8128 /* Override any gcc2 internal prototype to avoid an error. */
8129 /* We use char because int might match the return type of a gcc2
8130 builtin and then its argument prototype would still apply. */
8137 if { (eval echo configure:8138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8139 eval "ac_cv_lib_$ac_lib_var=yes"
8141 echo "configure: failed program was:" >&5
8142 cat conftest.$ac_ext >&5
8144 eval "ac_cv_lib_$ac_lib_var=no"
8147 LIBS="$ac_save_LIBS"
8150 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8151 echo "$ac_t""yes" 1>&6
8152 LIBS="$LIBS -lbe -lroot -lnet"
8154 echo "$ac_t""no" 1>&6
8162 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
8163 echo "configure:8164: checking for ${CC-cc} option to accept ANSI C" >&5
8164 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
8165 echo $ac_n "(cached) $ac_c" 1>&6
8167 am_cv_prog_cc_stdc=no
8169 # Don't try gcc -ansi; that turns off useful extensions and
8170 # breaks some systems' header files.
8171 # AIX -qlanglvl=ansi
8172 # Ultrix and OSF/1 -std1
8173 # HP-UX 10.20 and later -Ae
8174 # HP-UX older versions -Aa -D_HPUX_SOURCE
8175 # SVR4 -Xc -D__EXTENSIONS__
8176 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
8178 CC="$ac_save_CC $ac_arg"
8179 cat > conftest.$ac_ext <<EOF
8180 #line 8181 "configure"
8181 #include "confdefs.h"
8184 #include <sys/types.h>
8185 #include <sys/stat.h>
8186 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
8187 struct buf { int x; };
8188 FILE * (*rcsopen) (struct buf *, struct stat *, int);
8189 static char *e (p, i)
8195 static char *f (char * (*g) (char **, int), char **p, ...)
8200 s = g (p, va_arg (v,int));
8204 int test (int i, double x);
8205 struct s1 {int (*f) (int a);};
8206 struct s2 {int (*f) (double a);};
8207 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
8213 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
8217 if { (eval echo configure:8218: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8219 am_cv_prog_cc_stdc="$ac_arg"; break
8221 echo "configure: failed program was:" >&5
8222 cat conftest.$ac_ext >&5
8230 if test -z "$am_cv_prog_cc_stdc"; then
8231 echo "$ac_t""none needed" 1>&6
8233 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
8235 case "x$am_cv_prog_cc_stdc" in
8237 *) CC="$CC $am_cv_prog_cc_stdc" ;;
8240 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
8241 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
8244 # test for make depend flag
8247 if test -z "${MKDEP}"; then
8249 if test -z "${MKDEP_FLAGS}"; then
8250 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
8251 echo "configure:8252: checking for ${OL_MKDEP} depend flag" >&5
8252 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
8253 echo $ac_n "(cached) $ac_c" 1>&6
8257 for flag in "-M" "-xM"; do
8258 cat > conftest.c <<EOF
8261 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:8262: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
8262 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
8264 if test ! -f conftest."${ac_object}" ; then
8266 OL_MKDEP_FLAGS="$flag"
8275 echo "$ac_t""$ol_cv_mkdep" 1>&6
8278 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
8283 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
8288 if test "${ol_cv_mkdep}" = no ; then
8289 # this will soon become an error
8290 echo "configure: warning: do not know how to generate dependencies" 1>&2
8293 echo $ac_n "checking for afopen in -ls""... $ac_c" 1>&6
8294 echo "configure:8295: checking for afopen in -ls" >&5
8295 ac_lib_var=`echo s'_'afopen | sed 'y%./+-:%__p__%'`
8296 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8297 echo $ac_n "(cached) $ac_c" 1>&6
8299 ac_save_LIBS="$LIBS"
8301 cat > conftest.$ac_ext <<EOF
8302 #line 8303 "configure"
8303 #include "confdefs.h"
8304 /* Override any gcc2 internal prototype to avoid an error. */
8305 /* We use char because int might match the return type of a gcc2
8306 builtin and then its argument prototype would still apply. */
8313 if { (eval echo configure:8314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8315 eval "ac_cv_lib_$ac_lib_var=yes"
8317 echo "configure: failed program was:" >&5
8318 cat conftest.$ac_ext >&5
8320 eval "ac_cv_lib_$ac_lib_var=no"
8323 LIBS="$ac_save_LIBS"
8326 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8327 echo "$ac_t""yes" 1>&6
8330 cat >> confdefs.h <<\EOF
8331 #define HAVE_AIX_SECURITY 1
8336 echo "$ac_t""no" 1>&6
8342 ac_cv_func_getopt=no
8343 cat >> confdefs.h <<\EOF
8344 #define BOTH_STRINGS_H 1
8351 if test $ol_enable_modules != no ; then
8352 for ac_hdr in ltdl.h
8354 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8355 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8356 echo "configure:8357: checking for $ac_hdr" >&5
8357 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8358 echo $ac_n "(cached) $ac_c" 1>&6
8360 cat > conftest.$ac_ext <<EOF
8361 #line 8362 "configure"
8362 #include "confdefs.h"
8365 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8366 { (eval echo configure:8367: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8367 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8368 if test -z "$ac_err"; then
8370 eval "ac_cv_header_$ac_safe=yes"
8373 echo "configure: failed program was:" >&5
8374 cat conftest.$ac_ext >&5
8376 eval "ac_cv_header_$ac_safe=no"
8380 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8381 echo "$ac_t""yes" 1>&6
8382 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8383 cat >> confdefs.h <<EOF
8384 #define $ac_tr_hdr 1
8388 echo "$ac_t""no" 1>&6
8393 if test $ac_cv_header_ltdl_h = no ; then
8394 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
8397 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
8398 echo "configure:8399: checking for lt_dlinit in -lltdl" >&5
8399 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
8400 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8401 echo $ac_n "(cached) $ac_c" 1>&6
8403 ac_save_LIBS="$LIBS"
8405 cat > conftest.$ac_ext <<EOF
8406 #line 8407 "configure"
8407 #include "confdefs.h"
8408 /* Override any gcc2 internal prototype to avoid an error. */
8409 /* We use char because int might match the return type of a gcc2
8410 builtin and then its argument prototype would still apply. */
8417 if { (eval echo configure:8418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8419 eval "ac_cv_lib_$ac_lib_var=yes"
8421 echo "configure: failed program was:" >&5
8422 cat conftest.$ac_ext >&5
8424 eval "ac_cv_lib_$ac_lib_var=no"
8427 LIBS="$ac_save_LIBS"
8430 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8431 echo "$ac_t""yes" 1>&6
8434 cat >> confdefs.h <<\EOF
8435 #define HAVE_LIBLTDL 1
8440 echo "$ac_t""no" 1>&6
8444 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
8445 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
8449 ol_with_bdb_module=static
8450 ol_with_dnssrv_module=static
8451 ol_with_hdb_module=static
8452 ol_with_ldap_module=static
8453 ol_with_ldbm_module=static
8454 ol_with_meta_module=static
8455 ol_with_monitor_module=static
8456 ol_with_null_module=static
8457 ol_with_passwd_module=static
8458 ol_with_perl_module=static
8459 ol_with_shell_module=static
8460 ol_with_tcl_module=static
8461 ol_with_sql_module=static
8465 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
8466 echo "configure:8467: checking for EBCDIC" >&5
8467 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
8468 echo $ac_n "(cached) $ac_c" 1>&6
8471 cat > conftest.$ac_ext <<EOF
8472 #line 8473 "configure"
8473 #include "confdefs.h"
8476 #include <__ASCII__/generate_error.h>
8480 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8481 { (eval echo configure:8482: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8482 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8483 if test -z "$ac_err"; then
8485 ol_cv_cpp_ebcdic=yes
8488 echo "configure: failed program was:" >&5
8489 cat conftest.$ac_ext >&5
8496 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
8497 if test $ol_cv_cpp_ebcdic = yes ; then
8498 cat >> confdefs.h <<\EOF
8499 #define HAVE_EBCDIC 1
8504 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
8505 echo "configure:8506: checking for ANSI C header files" >&5
8506 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
8507 echo $ac_n "(cached) $ac_c" 1>&6
8509 cat > conftest.$ac_ext <<EOF
8510 #line 8511 "configure"
8511 #include "confdefs.h"
8517 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8518 { (eval echo configure:8519: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8519 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8520 if test -z "$ac_err"; then
8522 ol_cv_header_stdc=yes
8525 echo "configure: failed program was:" >&5
8526 cat conftest.$ac_ext >&5
8528 ol_cv_header_stdc=no
8532 if test $ol_cv_header_stdc = yes; then
8533 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8534 cat > conftest.$ac_ext <<EOF
8535 #line 8536 "configure"
8536 #include "confdefs.h"
8539 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8540 egrep "memchr" >/dev/null 2>&1; then
8544 ol_cv_header_stdc=no
8550 if test $ol_cv_header_stdc = yes; then
8551 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8552 cat > conftest.$ac_ext <<EOF
8553 #line 8554 "configure"
8554 #include "confdefs.h"
8557 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8558 egrep "free" >/dev/null 2>&1; then
8562 ol_cv_header_stdc=no
8568 if test $ol_cv_header_stdc = yes; then
8569 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8570 if test "$cross_compiling" = yes; then
8573 cat > conftest.$ac_ext <<EOF
8574 #line 8575 "configure"
8575 #include "confdefs.h"
8578 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8579 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8581 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
8582 || ('j' <= (c) && (c) <= 'r') \
8583 || ('s' <= (c) && (c) <= 'z'))
8584 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8586 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8587 int main () { int i; for (i = 0; i < 256; i++)
8588 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
8592 if { (eval echo configure:8593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8596 echo "configure: failed program was:" >&5
8597 cat conftest.$ac_ext >&5
8599 ol_cv_header_stdc=no
8607 echo "$ac_t""$ol_cv_header_stdc" 1>&6
8608 if test $ol_cv_header_stdc = yes; then
8609 cat >> confdefs.h <<\EOF
8610 #define STDC_HEADERS 1
8614 ac_cv_header_stdc=disable
8617 if test $ol_cv_header_stdc != yes; then
8618 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
8622 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
8624 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8625 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
8626 echo "configure:8627: checking for $ac_hdr that defines DIR" >&5
8627 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
8628 echo $ac_n "(cached) $ac_c" 1>&6
8630 cat > conftest.$ac_ext <<EOF
8631 #line 8632 "configure"
8632 #include "confdefs.h"
8633 #include <sys/types.h>
8639 if { (eval echo configure:8640: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8641 eval "ac_cv_header_dirent_$ac_safe=yes"
8643 echo "configure: failed program was:" >&5
8644 cat conftest.$ac_ext >&5
8646 eval "ac_cv_header_dirent_$ac_safe=no"
8650 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
8651 echo "$ac_t""yes" 1>&6
8652 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8653 cat >> confdefs.h <<EOF
8654 #define $ac_tr_hdr 1
8656 ac_header_dirent=$ac_hdr; break
8658 echo "$ac_t""no" 1>&6
8661 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8662 if test $ac_header_dirent = dirent.h; then
8663 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
8664 echo "configure:8665: checking for opendir in -ldir" >&5
8665 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
8666 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8667 echo $ac_n "(cached) $ac_c" 1>&6
8669 ac_save_LIBS="$LIBS"
8671 cat > conftest.$ac_ext <<EOF
8672 #line 8673 "configure"
8673 #include "confdefs.h"
8674 /* Override any gcc2 internal prototype to avoid an error. */
8675 /* We use char because int might match the return type of a gcc2
8676 builtin and then its argument prototype would still apply. */
8683 if { (eval echo configure:8684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8685 eval "ac_cv_lib_$ac_lib_var=yes"
8687 echo "configure: failed program was:" >&5
8688 cat conftest.$ac_ext >&5
8690 eval "ac_cv_lib_$ac_lib_var=no"
8693 LIBS="$ac_save_LIBS"
8696 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8697 echo "$ac_t""yes" 1>&6
8700 echo "$ac_t""no" 1>&6
8704 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
8705 echo "configure:8706: checking for opendir in -lx" >&5
8706 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
8707 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8708 echo $ac_n "(cached) $ac_c" 1>&6
8710 ac_save_LIBS="$LIBS"
8712 cat > conftest.$ac_ext <<EOF
8713 #line 8714 "configure"
8714 #include "confdefs.h"
8715 /* Override any gcc2 internal prototype to avoid an error. */
8716 /* We use char because int might match the return type of a gcc2
8717 builtin and then its argument prototype would still apply. */
8724 if { (eval echo configure:8725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8726 eval "ac_cv_lib_$ac_lib_var=yes"
8728 echo "configure: failed program was:" >&5
8729 cat conftest.$ac_ext >&5
8731 eval "ac_cv_lib_$ac_lib_var=no"
8734 LIBS="$ac_save_LIBS"
8737 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8738 echo "$ac_t""yes" 1>&6
8741 echo "$ac_t""no" 1>&6
8746 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
8747 echo "configure:8748: checking for sys/wait.h that is POSIX.1 compatible" >&5
8748 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
8749 echo $ac_n "(cached) $ac_c" 1>&6
8751 cat > conftest.$ac_ext <<EOF
8752 #line 8753 "configure"
8753 #include "confdefs.h"
8754 #include <sys/types.h>
8755 #include <sys/wait.h>
8757 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8760 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8765 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8768 if { (eval echo configure:8769: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8770 ac_cv_header_sys_wait_h=yes
8772 echo "configure: failed program was:" >&5
8773 cat conftest.$ac_ext >&5
8775 ac_cv_header_sys_wait_h=no
8780 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
8781 if test $ac_cv_header_sys_wait_h = yes; then
8782 cat >> confdefs.h <<\EOF
8783 #define HAVE_SYS_WAIT_H 1
8788 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
8789 echo "configure:8790: checking POSIX termios" >&5
8790 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
8791 echo $ac_n "(cached) $ac_c" 1>&6
8793 cat > conftest.$ac_ext <<EOF
8794 #line 8795 "configure"
8795 #include "confdefs.h"
8796 #include <sys/types.h>
8798 #include <termios.h>
8800 /* SunOS 4.0.3 has termios.h but not the library calls. */
8804 if { (eval echo configure:8805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8806 am_cv_sys_posix_termios=yes
8808 echo "configure: failed program was:" >&5
8809 cat conftest.$ac_ext >&5
8811 am_cv_sys_posix_termios=no
8816 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
8819 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
8820 echo "configure:8821: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
8821 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
8822 echo $ac_n "(cached) $ac_c" 1>&6
8824 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
8826 gwinsz_in_termios_h=no
8827 if test $am_cv_sys_posix_termios = yes; then
8828 cat > conftest.$ac_ext <<EOF
8829 #line 8830 "configure"
8830 #include "confdefs.h"
8831 #include <sys/types.h>
8832 # include <termios.h>
8838 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8839 egrep "yes" >/dev/null 2>&1; then
8841 gwinsz_in_termios_h=yes
8847 if test $gwinsz_in_termios_h = no; then
8848 cat > conftest.$ac_ext <<EOF
8849 #line 8850 "configure"
8850 #include "confdefs.h"
8851 #include <sys/types.h>
8852 # include <sys/ioctl.h>
8858 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8859 egrep "yes" >/dev/null 2>&1; then
8861 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
8869 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
8870 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
8871 cat >> confdefs.h <<\EOF
8872 #define GWINSZ_IN_SYS_IOCTL 1
8877 if test $am_cv_sys_posix_termios = yes ; then
8878 cat >> confdefs.h <<\EOF
8879 #define HAVE_POSIX_TERMIOS 1
8934 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8935 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8936 echo "configure:8937: checking for $ac_hdr" >&5
8937 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8938 echo $ac_n "(cached) $ac_c" 1>&6
8940 cat > conftest.$ac_ext <<EOF
8941 #line 8942 "configure"
8942 #include "confdefs.h"
8945 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8946 { (eval echo configure:8947: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8947 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8948 if test -z "$ac_err"; then
8950 eval "ac_cv_header_$ac_safe=yes"
8953 echo "configure: failed program was:" >&5
8954 cat conftest.$ac_ext >&5
8956 eval "ac_cv_header_$ac_safe=no"
8960 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8961 echo "$ac_t""yes" 1>&6
8962 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8963 cat >> confdefs.h <<EOF
8964 #define $ac_tr_hdr 1
8968 echo "$ac_t""no" 1>&6
8975 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
8976 echo "configure:8977: checking for dlopen" >&5
8977 if eval "test \"\${ac_cv_func_dlopen+set}\" = set"; then
8978 echo $ac_n "(cached) $ac_c" 1>&6
8980 cat > conftest.$ac_ext <<EOF
8981 #line 8982 "configure"
8982 #include "confdefs.h"
8983 /* System header to define __stub macros and hopefully few prototypes,
8984 which can conflict with char dlopen(); below. */
8986 /* Override any gcc2 internal prototype to avoid an error. */
8987 /* We use char because int might match the return type of a gcc2
8988 builtin and then its argument prototype would still apply. */
8994 /* The GNU C library defines this for functions which it implements
8995 to always fail with ENOSYS. Some functions are actually named
8996 something starting with __ and the normal name is an alias. */
8997 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9005 if { (eval echo configure:9006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9007 eval "ac_cv_func_dlopen=yes"
9009 echo "configure: failed program was:" >&5
9010 cat conftest.$ac_ext >&5
9012 eval "ac_cv_func_dlopen=no"
9017 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
9018 echo "$ac_t""yes" 1>&6
9021 echo "$ac_t""no" 1>&6
9022 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
9023 echo "configure:9024: checking for dlopen in -ldl" >&5
9024 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-:%__p__%'`
9025 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9026 echo $ac_n "(cached) $ac_c" 1>&6
9028 ac_save_LIBS="$LIBS"
9030 cat > conftest.$ac_ext <<EOF
9031 #line 9032 "configure"
9032 #include "confdefs.h"
9033 /* Override any gcc2 internal prototype to avoid an error. */
9034 /* We use char because int might match the return type of a gcc2
9035 builtin and then its argument prototype would still apply. */
9042 if { (eval echo configure:9043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9044 eval "ac_cv_lib_$ac_lib_var=yes"
9046 echo "configure: failed program was:" >&5
9047 cat conftest.$ac_ext >&5
9049 eval "ac_cv_lib_$ac_lib_var=no"
9052 LIBS="$ac_save_LIBS"
9055 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9056 echo "$ac_t""yes" 1>&6
9057 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9058 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9059 cat >> confdefs.h <<EOF
9060 #define $ac_tr_lib 1
9066 echo "$ac_t""no" 1>&6
9072 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
9073 echo "configure:9074: checking for sigset in -lV3" >&5
9074 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
9075 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9076 echo $ac_n "(cached) $ac_c" 1>&6
9078 ac_save_LIBS="$LIBS"
9080 cat > conftest.$ac_ext <<EOF
9081 #line 9082 "configure"
9082 #include "confdefs.h"
9083 /* Override any gcc2 internal prototype to avoid an error. */
9084 /* We use char because int might match the return type of a gcc2
9085 builtin and then its argument prototype would still apply. */
9092 if { (eval echo configure:9093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9094 eval "ac_cv_lib_$ac_lib_var=yes"
9096 echo "configure: failed program was:" >&5
9097 cat conftest.$ac_ext >&5
9099 eval "ac_cv_lib_$ac_lib_var=no"
9102 LIBS="$ac_save_LIBS"
9105 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9106 echo "$ac_t""yes" 1>&6
9107 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9108 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9109 cat >> confdefs.h <<EOF
9110 #define $ac_tr_lib 1
9116 echo "$ac_t""no" 1>&6
9120 echo $ac_n "checking for winsock""... $ac_c" 1>&6
9121 echo "configure:9122: checking for winsock" >&5
9123 for curlib in ws2_32 wsock32; do
9124 LIBS="$LIBS -l$curlib"
9125 cat > conftest.$ac_ext <<EOF
9126 #line 9127 "configure"
9127 #include "confdefs.h"
9131 char closesocket@4();
9132 char gethostname@8();
9143 if { (eval echo configure:9144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9147 echo "configure: failed program was:" >&5
9148 cat conftest.$ac_ext >&5
9154 if test $have_winsock = yes; then
9155 cat >> confdefs.h <<\EOF
9156 #define HAVE_WINSOCK 1
9159 ac_cv_func_socket=yes
9160 ac_cv_func_select=yes
9161 ac_cv_func_closesocket=yes
9162 ac_cv_func_gethostname=yes
9163 if test $curlib = ws2_32; then
9164 have_winsock=winsock2
9165 cat >> confdefs.h <<\EOF
9166 #define HAVE_WINSOCK2 1
9174 echo "$ac_t""$have_winsock" 1>&6
9177 echo $ac_n "checking for socket""... $ac_c" 1>&6
9178 echo "configure:9179: checking for socket" >&5
9179 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
9180 echo $ac_n "(cached) $ac_c" 1>&6
9182 cat > conftest.$ac_ext <<EOF
9183 #line 9184 "configure"
9184 #include "confdefs.h"
9185 /* System header to define __stub macros and hopefully few prototypes,
9186 which can conflict with char socket(); below. */
9188 /* Override any gcc2 internal prototype to avoid an error. */
9189 /* We use char because int might match the return type of a gcc2
9190 builtin and then its argument prototype would still apply. */
9196 /* The GNU C library defines this for functions which it implements
9197 to always fail with ENOSYS. Some functions are actually named
9198 something starting with __ and the normal name is an alias. */
9199 #if defined (__stub_socket) || defined (__stub___socket)
9207 if { (eval echo configure:9208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9209 eval "ac_cv_func_socket=yes"
9211 echo "configure: failed program was:" >&5
9212 cat conftest.$ac_ext >&5
9214 eval "ac_cv_func_socket=no"
9219 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
9220 echo "$ac_t""yes" 1>&6
9223 echo "$ac_t""no" 1>&6
9225 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
9226 echo "configure:9227: checking for main in -lsocket" >&5
9227 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
9228 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9229 echo $ac_n "(cached) $ac_c" 1>&6
9231 ac_save_LIBS="$LIBS"
9232 LIBS="-lsocket $LIBS"
9233 cat > conftest.$ac_ext <<EOF
9234 #line 9235 "configure"
9235 #include "confdefs.h"
9241 if { (eval echo configure:9242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9243 eval "ac_cv_lib_$ac_lib_var=yes"
9245 echo "configure: failed program was:" >&5
9246 cat conftest.$ac_ext >&5
9248 eval "ac_cv_lib_$ac_lib_var=no"
9251 LIBS="$ac_save_LIBS"
9254 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9255 echo "$ac_t""yes" 1>&6
9256 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9257 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9258 cat >> confdefs.h <<EOF
9259 #define $ac_tr_lib 1
9262 LIBS="-lsocket $LIBS"
9265 echo "$ac_t""no" 1>&6
9268 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
9269 echo "configure:9270: checking for main in -lnet" >&5
9270 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
9271 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9272 echo $ac_n "(cached) $ac_c" 1>&6
9274 ac_save_LIBS="$LIBS"
9276 cat > conftest.$ac_ext <<EOF
9277 #line 9278 "configure"
9278 #include "confdefs.h"
9284 if { (eval echo configure:9285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9286 eval "ac_cv_lib_$ac_lib_var=yes"
9288 echo "configure: failed program was:" >&5
9289 cat conftest.$ac_ext >&5
9291 eval "ac_cv_lib_$ac_lib_var=no"
9294 LIBS="$ac_save_LIBS"
9297 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9298 echo "$ac_t""yes" 1>&6
9299 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9300 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9301 cat >> confdefs.h <<EOF
9302 #define $ac_tr_lib 1
9308 echo "$ac_t""no" 1>&6
9311 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
9312 echo "configure:9313: checking for main in -lnsl_s" >&5
9313 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
9314 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9315 echo $ac_n "(cached) $ac_c" 1>&6
9317 ac_save_LIBS="$LIBS"
9318 LIBS="-lnsl_s $LIBS"
9319 cat > conftest.$ac_ext <<EOF
9320 #line 9321 "configure"
9321 #include "confdefs.h"
9327 if { (eval echo configure:9328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9329 eval "ac_cv_lib_$ac_lib_var=yes"
9331 echo "configure: failed program was:" >&5
9332 cat conftest.$ac_ext >&5
9334 eval "ac_cv_lib_$ac_lib_var=no"
9337 LIBS="$ac_save_LIBS"
9340 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9341 echo "$ac_t""yes" 1>&6
9342 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9343 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9344 cat >> confdefs.h <<EOF
9345 #define $ac_tr_lib 1
9348 LIBS="-lnsl_s $LIBS"
9351 echo "$ac_t""no" 1>&6
9354 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
9355 echo "configure:9356: checking for main in -lnsl" >&5
9356 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
9357 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9358 echo $ac_n "(cached) $ac_c" 1>&6
9360 ac_save_LIBS="$LIBS"
9362 cat > conftest.$ac_ext <<EOF
9363 #line 9364 "configure"
9364 #include "confdefs.h"
9370 if { (eval echo configure:9371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9372 eval "ac_cv_lib_$ac_lib_var=yes"
9374 echo "configure: failed program was:" >&5
9375 cat conftest.$ac_ext >&5
9377 eval "ac_cv_lib_$ac_lib_var=no"
9380 LIBS="$ac_save_LIBS"
9383 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9384 echo "$ac_t""yes" 1>&6
9385 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9386 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9387 cat >> confdefs.h <<EOF
9388 #define $ac_tr_lib 1
9394 echo "$ac_t""no" 1>&6
9397 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
9398 echo "configure:9399: checking for socket in -linet" >&5
9399 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
9400 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9401 echo $ac_n "(cached) $ac_c" 1>&6
9403 ac_save_LIBS="$LIBS"
9405 cat > conftest.$ac_ext <<EOF
9406 #line 9407 "configure"
9407 #include "confdefs.h"
9408 /* Override any gcc2 internal prototype to avoid an error. */
9409 /* We use char because int might match the return type of a gcc2
9410 builtin and then its argument prototype would still apply. */
9417 if { (eval echo configure:9418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9419 eval "ac_cv_lib_$ac_lib_var=yes"
9421 echo "configure: failed program was:" >&5
9422 cat conftest.$ac_ext >&5
9424 eval "ac_cv_lib_$ac_lib_var=no"
9427 LIBS="$ac_save_LIBS"
9430 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9431 echo "$ac_t""yes" 1>&6
9432 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9433 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9434 cat >> confdefs.h <<EOF
9435 #define $ac_tr_lib 1
9441 echo "$ac_t""no" 1>&6
9444 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
9445 echo "configure:9446: checking for main in -lgen" >&5
9446 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
9447 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9448 echo $ac_n "(cached) $ac_c" 1>&6
9450 ac_save_LIBS="$LIBS"
9452 cat > conftest.$ac_ext <<EOF
9453 #line 9454 "configure"
9454 #include "confdefs.h"
9460 if { (eval echo configure:9461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9462 eval "ac_cv_lib_$ac_lib_var=yes"
9464 echo "configure: failed program was:" >&5
9465 cat conftest.$ac_ext >&5
9467 eval "ac_cv_lib_$ac_lib_var=no"
9470 LIBS="$ac_save_LIBS"
9473 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9474 echo "$ac_t""yes" 1>&6
9475 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9476 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9477 cat >> confdefs.h <<EOF
9478 #define $ac_tr_lib 1
9484 echo "$ac_t""no" 1>&6
9491 echo $ac_n "checking for select""... $ac_c" 1>&6
9492 echo "configure:9493: checking for select" >&5
9493 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
9494 echo $ac_n "(cached) $ac_c" 1>&6
9496 cat > conftest.$ac_ext <<EOF
9497 #line 9498 "configure"
9498 #include "confdefs.h"
9499 /* System header to define __stub macros and hopefully few prototypes,
9500 which can conflict with char select(); below. */
9502 /* Override any gcc2 internal prototype to avoid an error. */
9503 /* We use char because int might match the return type of a gcc2
9504 builtin and then its argument prototype would still apply. */
9510 /* The GNU C library defines this for functions which it implements
9511 to always fail with ENOSYS. Some functions are actually named
9512 something starting with __ and the normal name is an alias. */
9513 #if defined (__stub_select) || defined (__stub___select)
9521 if { (eval echo configure:9522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9523 eval "ac_cv_func_select=yes"
9525 echo "configure: failed program was:" >&5
9526 cat conftest.$ac_ext >&5
9528 eval "ac_cv_func_select=no"
9533 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
9534 echo "$ac_t""yes" 1>&6
9537 echo "$ac_t""no" 1>&6
9538 { echo "configure: error: select() required." 1>&2; exit 1; }
9542 if test "${ac_cv_header_winsock_h}" != yes; then
9543 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
9544 echo "configure:9545: checking types of arguments for select()" >&5
9545 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
9546 echo $ac_n "(cached) $ac_c" 1>&6
9548 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
9549 echo $ac_n "(cached) $ac_c" 1>&6
9551 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
9552 echo $ac_n "(cached) $ac_c" 1>&6
9554 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
9555 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
9556 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
9557 cat > conftest.$ac_ext <<EOF
9558 #line 9559 "configure"
9559 #include "confdefs.h"
9560 #ifdef HAVE_SYS_TYPES_H
9561 #include <sys/types.h>
9563 #ifdef HAVE_SYS_TIME_H
9564 #include <sys/time.h>
9566 #ifdef HAVE_SYS_SELECT_H
9567 #include <sys/select.h>
9569 #ifdef HAVE_SYS_SOCKET_H
9570 #include <sys/socket.h>
9572 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);
9577 if { (eval echo configure:9578: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9579 ac_not_found=no ; break 3
9581 echo "configure: failed program was:" >&5
9582 cat conftest.$ac_ext >&5
9596 if test "$ac_not_found" = yes; then
9597 ac_cv_func_select_arg1=int
9598 ac_cv_func_select_arg234='int *'
9599 ac_cv_func_select_arg5='struct timeval *'
9601 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
9602 cat >> confdefs.h <<EOF
9603 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
9606 cat >> confdefs.h <<EOF
9607 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
9610 cat >> confdefs.h <<EOF
9611 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
9618 for ac_hdr in regex.h
9620 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9621 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9622 echo "configure:9623: checking for $ac_hdr" >&5
9623 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9624 echo $ac_n "(cached) $ac_c" 1>&6
9626 cat > conftest.$ac_ext <<EOF
9627 #line 9628 "configure"
9628 #include "confdefs.h"
9631 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9632 { (eval echo configure:9633: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9633 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9634 if test -z "$ac_err"; then
9636 eval "ac_cv_header_$ac_safe=yes"
9639 echo "configure: failed program was:" >&5
9640 cat conftest.$ac_ext >&5
9642 eval "ac_cv_header_$ac_safe=no"
9646 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9647 echo "$ac_t""yes" 1>&6
9648 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9649 cat >> confdefs.h <<EOF
9650 #define $ac_tr_hdr 1
9654 echo "$ac_t""no" 1>&6
9658 if test "$ac_cv_header_regex_h" != yes ; then
9659 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
9662 echo $ac_n "checking for library containing regfree""... $ac_c" 1>&6
9663 echo "configure:9664: checking for library containing regfree" >&5
9664 if eval "test \"\${ac_cv_search_regfree+set}\" = set"; then
9665 echo $ac_n "(cached) $ac_c" 1>&6
9667 ac_func_search_save_LIBS="$LIBS"
9668 ac_cv_search_regfree="no"
9669 cat > conftest.$ac_ext <<EOF
9670 #line 9671 "configure"
9671 #include "confdefs.h"
9672 /* Override any gcc2 internal prototype to avoid an error. */
9673 /* We use char because int might match the return type of a gcc2
9674 builtin and then its argument prototype would still apply. */
9681 if { (eval echo configure:9682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9683 ac_cv_search_regfree="none required"
9685 echo "configure: failed program was:" >&5
9686 cat conftest.$ac_ext >&5
9689 test "$ac_cv_search_regfree" = "no" && for ac_lib in regex gnuregex; do
9690 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9691 cat > conftest.$ac_ext <<EOF
9692 #line 9693 "configure"
9693 #include "confdefs.h"
9694 /* Override any gcc2 internal prototype to avoid an error. */
9695 /* We use char because int might match the return type of a gcc2
9696 builtin and then its argument prototype would still apply. */
9703 if { (eval echo configure:9704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9705 ac_cv_search_regfree="-l$ac_lib"
9708 echo "configure: failed program was:" >&5
9709 cat conftest.$ac_ext >&5
9713 LIBS="$ac_func_search_save_LIBS"
9716 echo "$ac_t""$ac_cv_search_regfree" 1>&6
9717 if test "$ac_cv_search_regfree" != "no"; then
9718 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
9721 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
9725 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
9726 echo "configure:9727: checking for compatible POSIX regex" >&5
9727 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
9728 echo $ac_n "(cached) $ac_c" 1>&6
9731 if test "$cross_compiling" = yes; then
9732 ol_cv_c_posix_regex=cross
9734 cat > conftest.$ac_ext <<EOF
9735 #line 9736 "configure"
9736 #include "confdefs.h"
9738 #include <sys/types.h>
9740 static char *pattern, *string;
9748 if(regcomp(&re, pattern, 0)) {
9752 string = "ALL MATCH";
9754 rc = regexec(&re, string, 0, (void*)0, 0);
9761 if { (eval echo configure:9762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9763 ol_cv_c_posix_regex=yes
9765 echo "configure: failed program was:" >&5
9766 cat conftest.$ac_ext >&5
9768 ol_cv_c_posix_regex=no
9775 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
9777 if test "$ol_cv_c_posix_regex" = no ; then
9778 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
9783 for ac_hdr in sys/uuid.h
9785 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9786 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9787 echo "configure:9788: checking for $ac_hdr" >&5
9788 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9789 echo $ac_n "(cached) $ac_c" 1>&6
9791 cat > conftest.$ac_ext <<EOF
9792 #line 9793 "configure"
9793 #include "confdefs.h"
9796 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9797 { (eval echo configure:9798: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9798 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9799 if test -z "$ac_err"; then
9801 eval "ac_cv_header_$ac_safe=yes"
9804 echo "configure: failed program was:" >&5
9805 cat conftest.$ac_ext >&5
9807 eval "ac_cv_header_$ac_safe=no"
9811 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9812 echo "$ac_t""yes" 1>&6
9813 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9814 cat >> confdefs.h <<EOF
9815 #define $ac_tr_hdr 1
9819 echo "$ac_t""no" 1>&6
9823 if test $ac_cv_header_sys_uuid_h = yes ; then
9826 echo $ac_n "checking for library containing uuid_to_str""... $ac_c" 1>&6
9827 echo "configure:9828: checking for library containing uuid_to_str" >&5
9828 if eval "test \"\${ac_cv_search_uuid_to_str+set}\" = set"; then
9829 echo $ac_n "(cached) $ac_c" 1>&6
9831 ac_func_search_save_LIBS="$LIBS"
9832 ac_cv_search_uuid_to_str="no"
9833 cat > conftest.$ac_ext <<EOF
9834 #line 9835 "configure"
9835 #include "confdefs.h"
9836 /* Override any gcc2 internal prototype to avoid an error. */
9837 /* We use char because int might match the return type of a gcc2
9838 builtin and then its argument prototype would still apply. */
9845 if { (eval echo configure:9846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9847 ac_cv_search_uuid_to_str="none required"
9849 echo "configure: failed program was:" >&5
9850 cat conftest.$ac_ext >&5
9853 test "$ac_cv_search_uuid_to_str" = "no" && for ac_lib in uuid; do
9854 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9855 cat > conftest.$ac_ext <<EOF
9856 #line 9857 "configure"
9857 #include "confdefs.h"
9858 /* Override any gcc2 internal prototype to avoid an error. */
9859 /* We use char because int might match the return type of a gcc2
9860 builtin and then its argument prototype would still apply. */
9867 if { (eval echo configure:9868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9869 ac_cv_search_uuid_to_str="-l$ac_lib"
9872 echo "configure: failed program was:" >&5
9873 cat conftest.$ac_ext >&5
9877 LIBS="$ac_func_search_save_LIBS"
9880 echo "$ac_t""$ac_cv_search_uuid_to_str" 1>&6
9881 if test "$ac_cv_search_uuid_to_str" != "no"; then
9882 test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
9889 if test have_uuid = yes ; then
9890 cat >> confdefs.h <<\EOF
9891 #define HAVE_UUID_TO_STR 1
9895 test "$ac_cv_search_uuid_to_str" = "none required" || \
9896 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
9900 if test $have_uuid = no ; then
9901 echo $ac_n "checking to see if -lrpcrt4 is needed for win32 UUID support""... $ac_c" 1>&6
9902 echo "configure:9903: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
9904 LIBS="$LIBS -lrpcrt4"
9905 cat > conftest.$ac_ext <<EOF
9906 #line 9907 "configure"
9907 #include "confdefs.h"
9909 char UuidCreate@4();
9910 char UuidToStringA@8();
9919 if { (eval echo configure:9920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9923 echo "configure: failed program was:" >&5
9924 cat conftest.$ac_ext >&5
9929 if test $need_rpcrt = yes; then
9930 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
9933 echo "$ac_t""$need_rpcrt" 1>&6
9937 echo $ac_n "checking for res_query""... $ac_c" 1>&6
9938 echo "configure:9939: checking for res_query" >&5
9939 if eval "test \"\${ac_cv_func_res_query+set}\" = set"; then
9940 echo $ac_n "(cached) $ac_c" 1>&6
9942 cat > conftest.$ac_ext <<EOF
9943 #line 9944 "configure"
9944 #include "confdefs.h"
9945 /* System header to define __stub macros and hopefully few prototypes,
9946 which can conflict with char res_query(); below. */
9948 /* Override any gcc2 internal prototype to avoid an error. */
9949 /* We use char because int might match the return type of a gcc2
9950 builtin and then its argument prototype would still apply. */
9956 /* The GNU C library defines this for functions which it implements
9957 to always fail with ENOSYS. Some functions are actually named
9958 something starting with __ and the normal name is an alias. */
9959 #if defined (__stub_res_query) || defined (__stub___res_query)
9967 if { (eval echo configure:9968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9969 eval "ac_cv_func_res_query=yes"
9971 echo "configure: failed program was:" >&5
9972 cat conftest.$ac_ext >&5
9974 eval "ac_cv_func_res_query=no"
9979 if eval "test \"`echo '$ac_cv_func_'res_query`\" = yes"; then
9980 echo "$ac_t""yes" 1>&6
9983 echo "$ac_t""no" 1>&6
9986 if test $ac_cv_func_res_query = no ; then
9987 echo $ac_n "checking for __res_query""... $ac_c" 1>&6
9988 echo "configure:9989: checking for __res_query" >&5
9989 if eval "test \"\${ac_cv_func___res_query+set}\" = set"; then
9990 echo $ac_n "(cached) $ac_c" 1>&6
9992 cat > conftest.$ac_ext <<EOF
9993 #line 9994 "configure"
9994 #include "confdefs.h"
9995 /* System header to define __stub macros and hopefully few prototypes,
9996 which can conflict with char __res_query(); below. */
9998 /* Override any gcc2 internal prototype to avoid an error. */
9999 /* We use char because int might match the return type of a gcc2
10000 builtin and then its argument prototype would still apply. */
10001 char __res_query();
10006 /* The GNU C library defines this for functions which it implements
10007 to always fail with ENOSYS. Some functions are actually named
10008 something starting with __ and the normal name is an alias. */
10009 #if defined (__stub___res_query) || defined (__stub_____res_query)
10017 if { (eval echo configure:10018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10019 eval "ac_cv_func___res_query=yes"
10021 echo "configure: failed program was:" >&5
10022 cat conftest.$ac_ext >&5
10024 eval "ac_cv_func___res_query=no"
10029 if eval "test \"`echo '$ac_cv_func_'__res_query`\" = yes"; then
10030 echo "$ac_t""yes" 1>&6
10033 echo "$ac_t""no" 1>&6
10036 ac_cv_func_res_query=$ac_cv_func___res_query
10039 if test $ac_cv_func_res_query = no ; then
10040 echo $ac_n "checking for res_query in -lbind""... $ac_c" 1>&6
10041 echo "configure:10042: checking for res_query in -lbind" >&5
10042 ac_lib_var=`echo bind'_'res_query | sed 'y%./+-:%__p__%'`
10043 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10044 echo $ac_n "(cached) $ac_c" 1>&6
10046 ac_save_LIBS="$LIBS"
10047 LIBS="-lbind $LIBS"
10048 cat > conftest.$ac_ext <<EOF
10049 #line 10050 "configure"
10050 #include "confdefs.h"
10051 /* Override any gcc2 internal prototype to avoid an error. */
10052 /* We use char because int might match the return type of a gcc2
10053 builtin and then its argument prototype would still apply. */
10060 if { (eval echo configure:10061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10062 eval "ac_cv_lib_$ac_lib_var=yes"
10064 echo "configure: failed program was:" >&5
10065 cat conftest.$ac_ext >&5
10067 eval "ac_cv_lib_$ac_lib_var=no"
10070 LIBS="$ac_save_LIBS"
10073 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10074 echo "$ac_t""yes" 1>&6
10075 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10076 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10077 cat >> confdefs.h <<EOF
10078 #define $ac_tr_lib 1
10081 LIBS="-lbind $LIBS"
10084 echo "$ac_t""no" 1>&6
10087 ac_cv_func_res_query=$ac_cv_lib_bind_res_query
10090 if test $ac_cv_func_res_query = no ; then
10091 echo $ac_n "checking for __res_query in -lbind""... $ac_c" 1>&6
10092 echo "configure:10093: checking for __res_query in -lbind" >&5
10093 ac_lib_var=`echo bind'_'__res_query | sed 'y%./+-:%__p__%'`
10094 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10095 echo $ac_n "(cached) $ac_c" 1>&6
10097 ac_save_LIBS="$LIBS"
10098 LIBS="-lbind $LIBS"
10099 cat > conftest.$ac_ext <<EOF
10100 #line 10101 "configure"
10101 #include "confdefs.h"
10102 /* Override any gcc2 internal prototype to avoid an error. */
10103 /* We use char because int might match the return type of a gcc2
10104 builtin and then its argument prototype would still apply. */
10105 char __res_query();
10111 if { (eval echo configure:10112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10113 eval "ac_cv_lib_$ac_lib_var=yes"
10115 echo "configure: failed program was:" >&5
10116 cat conftest.$ac_ext >&5
10118 eval "ac_cv_lib_$ac_lib_var=no"
10121 LIBS="$ac_save_LIBS"
10124 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10125 echo "$ac_t""yes" 1>&6
10126 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10127 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10128 cat >> confdefs.h <<EOF
10129 #define $ac_tr_lib 1
10132 LIBS="-lbind $LIBS"
10135 echo "$ac_t""no" 1>&6
10138 ac_cv_func_res_query=$ac_cv_lib_bind___res_query
10141 if test $ac_cv_func_res_query = no ; then
10142 echo $ac_n "checking for res_query in -lresolv""... $ac_c" 1>&6
10143 echo "configure:10144: checking for res_query in -lresolv" >&5
10144 ac_lib_var=`echo resolv'_'res_query | sed 'y%./+-:%__p__%'`
10145 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10146 echo $ac_n "(cached) $ac_c" 1>&6
10148 ac_save_LIBS="$LIBS"
10149 LIBS="-lresolv $LIBS"
10150 cat > conftest.$ac_ext <<EOF
10151 #line 10152 "configure"
10152 #include "confdefs.h"
10153 /* Override any gcc2 internal prototype to avoid an error. */
10154 /* We use char because int might match the return type of a gcc2
10155 builtin and then its argument prototype would still apply. */
10162 if { (eval echo configure:10163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10164 eval "ac_cv_lib_$ac_lib_var=yes"
10166 echo "configure: failed program was:" >&5
10167 cat conftest.$ac_ext >&5
10169 eval "ac_cv_lib_$ac_lib_var=no"
10172 LIBS="$ac_save_LIBS"
10175 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10176 echo "$ac_t""yes" 1>&6
10177 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10178 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10179 cat >> confdefs.h <<EOF
10180 #define $ac_tr_lib 1
10183 LIBS="-lresolv $LIBS"
10186 echo "$ac_t""no" 1>&6
10189 ac_cv_func_res_query=$ac_cv_lib_resolv_res_query
10192 if test $ac_cv_func_res_query = no ; then
10193 echo $ac_n "checking for __res_query in -lresolv""... $ac_c" 1>&6
10194 echo "configure:10195: checking for __res_query in -lresolv" >&5
10195 ac_lib_var=`echo resolv'_'__res_query | sed 'y%./+-:%__p__%'`
10196 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10197 echo $ac_n "(cached) $ac_c" 1>&6
10199 ac_save_LIBS="$LIBS"
10200 LIBS="-lresolv $LIBS"
10201 cat > conftest.$ac_ext <<EOF
10202 #line 10203 "configure"
10203 #include "confdefs.h"
10204 /* Override any gcc2 internal prototype to avoid an error. */
10205 /* We use char because int might match the return type of a gcc2
10206 builtin and then its argument prototype would still apply. */
10207 char __res_query();
10213 if { (eval echo configure:10214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10215 eval "ac_cv_lib_$ac_lib_var=yes"
10217 echo "configure: failed program was:" >&5
10218 cat conftest.$ac_ext >&5
10220 eval "ac_cv_lib_$ac_lib_var=no"
10223 LIBS="$ac_save_LIBS"
10226 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10227 echo "$ac_t""yes" 1>&6
10228 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10229 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10230 cat >> confdefs.h <<EOF
10231 #define $ac_tr_lib 1
10234 LIBS="-lresolv $LIBS"
10237 echo "$ac_t""no" 1>&6
10240 ac_cv_func_res_query=$ac_cv_lib_resolv___res_query
10243 if test "$ac_cv_func_res_query" = yes ; then
10244 cat >> confdefs.h <<\EOF
10245 #define HAVE_RES_QUERY 1
10249 if test $ol_enable_dnssrv != no ; then
10254 if test "$ol_enable_dnssrv" = yes -a "$ol_link_dnssrv" = no ; then
10255 { echo "configure: error: DNSSRV requires res_query()" 1>&2; exit 1; }
10258 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
10260 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10261 echo "configure:10262: checking for $ac_func" >&5
10262 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10263 echo $ac_n "(cached) $ac_c" 1>&6
10265 cat > conftest.$ac_ext <<EOF
10266 #line 10267 "configure"
10267 #include "confdefs.h"
10268 /* System header to define __stub macros and hopefully few prototypes,
10269 which can conflict with char $ac_func(); below. */
10270 #include <assert.h>
10271 /* Override any gcc2 internal prototype to avoid an error. */
10272 /* We use char because int might match the return type of a gcc2
10273 builtin and then its argument prototype would still apply. */
10279 /* The GNU C library defines this for functions which it implements
10280 to always fail with ENOSYS. Some functions are actually named
10281 something starting with __ and the normal name is an alias. */
10282 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10290 if { (eval echo configure:10291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10292 eval "ac_cv_func_$ac_func=yes"
10294 echo "configure: failed program was:" >&5
10295 cat conftest.$ac_ext >&5
10297 eval "ac_cv_func_$ac_func=no"
10302 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10303 echo "$ac_t""yes" 1>&6
10304 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10305 cat >> confdefs.h <<EOF
10306 #define $ac_tr_func 1
10310 echo "$ac_t""no" 1>&6
10316 if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then
10317 if test $ol_enable_ipv6 = yes ; then
10318 { echo "configure: error: IPv6 support requires getaddrinfo() and inet_ntop()" 1>&2; exit 1; }
10320 elif test $ol_enable_ipv6 != no ; then
10321 echo $ac_n "checking INET6_ADDRSTRLEN""... $ac_c" 1>&6
10322 echo "configure:10323: checking INET6_ADDRSTRLEN" >&5
10323 if eval "test \"\${ol_cv_inet6_addrstrlen+set}\" = set"; then
10324 echo $ac_n "(cached) $ac_c" 1>&6
10327 cat > conftest.$ac_ext <<EOF
10328 #line 10329 "configure"
10329 #include "confdefs.h"
10331 # include <netinet/in.h>
10332 # ifdef INET6_ADDRSTRLEN
10333 __has_inet6_addrstrlen__;
10337 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10338 egrep "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
10340 ol_cv_inet6_addrstrlen=yes
10343 ol_cv_inet6_addrstrlen=no
10349 echo "$ac_t""$ol_cv_inet6_addrstrlen" 1>&6
10352 echo $ac_n "checking struct sockaddr_storage""... $ac_c" 1>&6
10353 echo "configure:10354: checking struct sockaddr_storage" >&5
10354 if eval "test \"\${ol_cv_struct_sockaddr_storage+set}\" = set"; then
10355 echo $ac_n "(cached) $ac_c" 1>&6
10358 cat > conftest.$ac_ext <<EOF
10359 #line 10360 "configure"
10360 #include "confdefs.h"
10362 #include <sys/types.h>
10363 #include <sys/socket.h>
10367 struct sockaddr_storage ss;
10371 if { (eval echo configure:10372: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10373 ol_cv_struct_sockaddr_storage=yes
10375 echo "configure: failed program was:" >&5
10376 cat conftest.$ac_ext >&5
10378 ol_cv_struct_sockaddr_storage=no
10383 echo "$ac_t""$ol_cv_struct_sockaddr_storage" 1>&6
10385 if test $ol_cv_inet6_addrstrlen = yes \
10386 -a $ol_cv_struct_sockaddr_storage = yes ; then
10388 elif test $ol_enable_ipv6 = yes \
10389 -a $ol_cv_inet6_addrstrlen = no ; then
10390 { echo "configure: error: IPv6 support requires INET6_ADDRSTRLEN" 1>&2; exit 1; }
10391 elif test $ol_enable_ipv6 = yes \
10392 -a $ol_cv_struct_sockaddr_storage = no ; then
10393 { echo "configure: error: IPv6 support requires struct sockaddr_storage" 1>&2; exit 1; }
10397 if test $ol_enable_local != no ; then
10398 for ac_hdr in sys/un.h
10400 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10401 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10402 echo "configure:10403: checking for $ac_hdr" >&5
10403 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10404 echo $ac_n "(cached) $ac_c" 1>&6
10406 cat > conftest.$ac_ext <<EOF
10407 #line 10408 "configure"
10408 #include "confdefs.h"
10411 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10412 { (eval echo configure:10413: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10413 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10414 if test -z "$ac_err"; then
10416 eval "ac_cv_header_$ac_safe=yes"
10419 echo "configure: failed program was:" >&5
10420 cat conftest.$ac_ext >&5
10422 eval "ac_cv_header_$ac_safe=no"
10426 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10427 echo "$ac_t""yes" 1>&6
10428 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10429 cat >> confdefs.h <<EOF
10430 #define $ac_tr_hdr 1
10434 echo "$ac_t""no" 1>&6
10439 if test $ol_enable_local = auto ; then
10440 ol_enable_local=$ac_cv_header_sys_un_h
10441 elif test $ac_cv_header_sys_un_h = no ; then
10442 { echo "configure: error: AF_LOCAL domain support requires sys/un.h" 1>&2; exit 1; }
10451 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
10452 -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
10453 -o $ol_with_kerberos = k425 ; then
10455 for ac_hdr in krb5.h
10457 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10458 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10459 echo "configure:10460: checking for $ac_hdr" >&5
10460 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10461 echo $ac_n "(cached) $ac_c" 1>&6
10463 cat > conftest.$ac_ext <<EOF
10464 #line 10465 "configure"
10465 #include "confdefs.h"
10468 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10469 { (eval echo configure:10470: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10470 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10471 if test -z "$ac_err"; then
10473 eval "ac_cv_header_$ac_safe=yes"
10476 echo "configure: failed program was:" >&5
10477 cat conftest.$ac_ext >&5
10479 eval "ac_cv_header_$ac_safe=no"
10483 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10484 echo "$ac_t""yes" 1>&6
10485 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10486 cat >> confdefs.h <<EOF
10487 #define $ac_tr_hdr 1
10491 echo "$ac_t""no" 1>&6
10496 if test $ac_cv_header_krb5_h = yes ; then
10497 for ac_hdr in heim_err.h
10499 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10500 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10501 echo "configure:10502: checking for $ac_hdr" >&5
10502 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10503 echo $ac_n "(cached) $ac_c" 1>&6
10505 cat > conftest.$ac_ext <<EOF
10506 #line 10507 "configure"
10507 #include "confdefs.h"
10510 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10511 { (eval echo configure:10512: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10512 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10513 if test -z "$ac_err"; then
10515 eval "ac_cv_header_$ac_safe=yes"
10518 echo "configure: failed program was:" >&5
10519 cat conftest.$ac_ext >&5
10521 eval "ac_cv_header_$ac_safe=no"
10525 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10526 echo "$ac_t""yes" 1>&6
10527 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10528 cat >> confdefs.h <<EOF
10529 #define $ac_tr_hdr 1
10533 echo "$ac_t""no" 1>&6
10537 if test $ac_cv_header_heim_err_h = yes ; then
10543 if test $krb5_impl = mit; then
10544 echo $ac_n "checking for main in -lk5crypto""... $ac_c" 1>&6
10545 echo "configure:10546: checking for main in -lk5crypto" >&5
10546 ac_lib_var=`echo k5crypto'_'main | sed 'y%./+-:%__p__%'`
10547 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10548 echo $ac_n "(cached) $ac_c" 1>&6
10550 ac_save_LIBS="$LIBS"
10551 LIBS="-lk5crypto $LIBS"
10552 cat > conftest.$ac_ext <<EOF
10553 #line 10554 "configure"
10554 #include "confdefs.h"
10560 if { (eval echo configure:10561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10562 eval "ac_cv_lib_$ac_lib_var=yes"
10564 echo "configure: failed program was:" >&5
10565 cat conftest.$ac_ext >&5
10567 eval "ac_cv_lib_$ac_lib_var=no"
10570 LIBS="$ac_save_LIBS"
10573 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10574 echo "$ac_t""yes" 1>&6
10575 krb5crypto=k5crypto
10577 echo "$ac_t""no" 1>&6
10582 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
10583 echo "configure:10584: checking for main in -lkrb5" >&5
10584 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
10585 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10586 echo $ac_n "(cached) $ac_c" 1>&6
10588 ac_save_LIBS="$LIBS"
10589 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
10590 cat > conftest.$ac_ext <<EOF
10591 #line 10592 "configure"
10592 #include "confdefs.h"
10598 if { (eval echo configure:10599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10600 eval "ac_cv_lib_$ac_lib_var=yes"
10602 echo "configure: failed program was:" >&5
10603 cat conftest.$ac_ext >&5
10605 eval "ac_cv_lib_$ac_lib_var=no"
10608 LIBS="$ac_save_LIBS"
10611 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10612 echo "$ac_t""yes" 1>&6
10614 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
10616 echo "$ac_t""no" 1>&6
10621 elif test $krb5_impl = heimdal; then
10622 echo $ac_n "checking for main in -ldes""... $ac_c" 1>&6
10623 echo "configure:10624: checking for main in -ldes" >&5
10624 ac_lib_var=`echo des'_'main | sed 'y%./+-:%__p__%'`
10625 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10626 echo $ac_n "(cached) $ac_c" 1>&6
10628 ac_save_LIBS="$LIBS"
10630 cat > conftest.$ac_ext <<EOF
10631 #line 10632 "configure"
10632 #include "confdefs.h"
10638 if { (eval echo configure:10639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10640 eval "ac_cv_lib_$ac_lib_var=yes"
10642 echo "configure: failed program was:" >&5
10643 cat conftest.$ac_ext >&5
10645 eval "ac_cv_lib_$ac_lib_var=no"
10648 LIBS="$ac_save_LIBS"
10651 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10652 echo "$ac_t""yes" 1>&6
10655 echo "$ac_t""no" 1>&6
10660 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
10661 echo "configure:10662: checking for main in -lkrb5" >&5
10662 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
10663 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10664 echo $ac_n "(cached) $ac_c" 1>&6
10666 ac_save_LIBS="$LIBS"
10667 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
10668 cat > conftest.$ac_ext <<EOF
10669 #line 10670 "configure"
10670 #include "confdefs.h"
10676 if { (eval echo configure:10677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10678 eval "ac_cv_lib_$ac_lib_var=yes"
10680 echo "configure: failed program was:" >&5
10681 cat conftest.$ac_ext >&5
10683 eval "ac_cv_lib_$ac_lib_var=no"
10686 LIBS="$ac_save_LIBS"
10689 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10690 echo "$ac_t""yes" 1>&6
10692 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
10694 echo "$ac_t""no" 1>&6
10699 cat >> confdefs.h <<\EOF
10700 #define HAVE_HEIMDAL_KERBEROS 1
10706 echo "configure: warning: Unrecognized Kerberos5 Implementation" 1>&2
10709 if test $have_krb5 = yes ; then
10712 cat >> confdefs.h <<\EOF
10713 #define HAVE_KRB5 1
10717 if test $ol_enable_kpasswd != no ; then
10718 ol_link_kpasswd=yes;
10721 if test $ol_with_kerberos = k5only ; then
10722 ol_with_kerberos=found
10725 elif test $ol_with_kerberos != auto ; then
10726 { echo "configure: error: Required Kerberos 5 support not available" 1>&2; exit 1; }
10732 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
10733 $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
10735 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
10737 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10738 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10739 echo "configure:10740: checking for $ac_hdr" >&5
10740 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10741 echo $ac_n "(cached) $ac_c" 1>&6
10743 cat > conftest.$ac_ext <<EOF
10744 #line 10745 "configure"
10745 #include "confdefs.h"
10748 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10749 { (eval echo configure:10750: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10750 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10751 if test -z "$ac_err"; then
10753 eval "ac_cv_header_$ac_safe=yes"
10756 echo "configure: failed program was:" >&5
10757 cat conftest.$ac_ext >&5
10759 eval "ac_cv_header_$ac_safe=no"
10763 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10764 echo "$ac_t""yes" 1>&6
10765 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10766 cat >> confdefs.h <<EOF
10767 #define $ac_tr_hdr 1
10771 echo "$ac_t""no" 1>&6
10776 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
10777 if test $krb5_impl = mit; then
10778 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
10779 echo "configure:10780: checking for main in -lkrb4" >&5
10780 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
10781 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10782 echo $ac_n "(cached) $ac_c" 1>&6
10784 ac_save_LIBS="$LIBS"
10785 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
10786 cat > conftest.$ac_ext <<EOF
10787 #line 10788 "configure"
10788 #include "confdefs.h"
10794 if { (eval echo configure:10795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10796 eval "ac_cv_lib_$ac_lib_var=yes"
10798 echo "configure: failed program was:" >&5
10799 cat conftest.$ac_ext >&5
10801 eval "ac_cv_lib_$ac_lib_var=no"
10804 LIBS="$ac_save_LIBS"
10807 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10808 echo "$ac_t""yes" 1>&6
10810 KRB4_LIBS="-lkrb4 -ldes425"
10812 echo "$ac_t""no" 1>&6
10817 elif test $krb5_impl = heimdal; then
10818 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
10819 echo "configure:10820: checking for main in -lkrb4" >&5
10820 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
10821 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10822 echo $ac_n "(cached) $ac_c" 1>&6
10824 ac_save_LIBS="$LIBS"
10825 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
10826 cat > conftest.$ac_ext <<EOF
10827 #line 10828 "configure"
10828 #include "confdefs.h"
10834 if { (eval echo configure:10835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10836 eval "ac_cv_lib_$ac_lib_var=yes"
10838 echo "configure: failed program was:" >&5
10839 cat conftest.$ac_ext >&5
10841 eval "ac_cv_lib_$ac_lib_var=no"
10844 LIBS="$ac_save_LIBS"
10847 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10848 echo "$ac_t""yes" 1>&6
10852 echo "$ac_t""no" 1>&6
10859 echo "configure: warning: Unrecongized Kerberos V Implementation" 1>&2
10862 if test $have_k425 = yes ; then
10863 ol_with_kerberos=found
10866 cat >> confdefs.h <<\EOF
10867 #define HAVE_KRB425 1
10870 cat >> confdefs.h <<\EOF
10871 #define HAVE_KRB4 1
10875 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
10876 echo "configure:10877: checking for des_debug in Kerberos libraries" >&5
10877 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
10878 echo $ac_n "(cached) $ac_c" 1>&6
10882 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
10883 cat > conftest.$ac_ext <<EOF
10884 #line 10885 "configure"
10885 #include "confdefs.h"
10887 #include <kerberosIV/krb.h>
10888 #include <kerberosIV/des.h>
10889 extern int des_debug;
10897 if { (eval echo configure:10898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10899 ol_cv_var_des_debug=yes
10901 echo "configure: failed program was:" >&5
10902 cat conftest.$ac_ext >&5
10904 ol_cv_var_des_debug=no
10911 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
10913 if test $ol_cv_var_des_debug = yes ; then
10914 cat >> confdefs.h <<\EOF
10915 #define HAVE_DES_DEBUG 1
10925 if test $ol_link_krb5 = yes ; then
10926 ol_with_kerberos=found
10929 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
10930 -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
10932 for ac_hdr in krb.h des.h krb-archaeology.h
10934 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10935 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10936 echo "configure:10937: checking for $ac_hdr" >&5
10937 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10938 echo $ac_n "(cached) $ac_c" 1>&6
10940 cat > conftest.$ac_ext <<EOF
10941 #line 10942 "configure"
10942 #include "confdefs.h"
10945 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10946 { (eval echo configure:10947: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10947 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10948 if test -z "$ac_err"; then
10950 eval "ac_cv_header_$ac_safe=yes"
10953 echo "configure: failed program was:" >&5
10954 cat conftest.$ac_ext >&5
10956 eval "ac_cv_header_$ac_safe=no"
10960 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10961 echo "$ac_t""yes" 1>&6
10962 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10963 cat >> confdefs.h <<EOF
10964 #define $ac_tr_hdr 1
10968 echo "$ac_t""no" 1>&6
10973 if test $ac_cv_header_krb_h = yes ; then
10974 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
10975 echo "configure:10976: checking for main in -lkrb" >&5
10976 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
10977 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10978 echo $ac_n "(cached) $ac_c" 1>&6
10980 ac_save_LIBS="$LIBS"
10981 LIBS="-lkrb -ldes $LIBS"
10982 cat > conftest.$ac_ext <<EOF
10983 #line 10984 "configure"
10984 #include "confdefs.h"
10990 if { (eval echo configure:10991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10992 eval "ac_cv_lib_$ac_lib_var=yes"
10994 echo "configure: failed program was:" >&5
10995 cat conftest.$ac_ext >&5
10997 eval "ac_cv_lib_$ac_lib_var=no"
11000 LIBS="$ac_save_LIBS"
11003 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11004 echo "$ac_t""yes" 1>&6
11007 echo "$ac_t""no" 1>&6
11012 if test $have_k4 = yes ; then
11013 ol_with_kerberos=found
11016 cat >> confdefs.h <<\EOF
11017 #define HAVE_KRB4 1
11021 KRB4_LIBS="-lkrb -ldes"
11023 if test $ac_cv_header_krb_archaeology_h = yes ; then
11024 cat >> confdefs.h <<\EOF
11025 #define HAVE_KTH_KERBEROS 1
11033 if test $ol_link_krb4 = yes -a $ol_enable_kpasswd != no ; then
11034 ol_link_kpasswd=yes
11037 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
11040 elif test $ol_enable_kbind = yes ; then
11041 { echo "configure: error: Kerberos IV detection failed" 1>&2; exit 1; }
11044 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
11045 cat >> confdefs.h <<\EOF
11046 #define HAVE_KERBEROS 1
11050 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
11051 { echo "configure: error: Kerberos detection failed" 1>&2; exit 1; }
11055 if test $ol_with_tls != no ; then
11056 for ac_hdr in openssl/ssl.h ssl.h
11058 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11059 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11060 echo "configure:11061: checking for $ac_hdr" >&5
11061 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11062 echo $ac_n "(cached) $ac_c" 1>&6
11064 cat > conftest.$ac_ext <<EOF
11065 #line 11066 "configure"
11066 #include "confdefs.h"
11069 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11070 { (eval echo configure:11071: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11071 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11072 if test -z "$ac_err"; then
11074 eval "ac_cv_header_$ac_safe=yes"
11077 echo "configure: failed program was:" >&5
11078 cat conftest.$ac_ext >&5
11080 eval "ac_cv_header_$ac_safe=no"
11084 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11085 echo "$ac_t""yes" 1>&6
11086 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11087 cat >> confdefs.h <<EOF
11088 #define $ac_tr_hdr 1
11092 echo "$ac_t""no" 1>&6
11097 if test $ac_cv_header_openssl_ssl_h = yes \
11098 -o $ac_cv_header_ssl_h = yes ; then
11099 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
11100 echo "configure:11101: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
11101 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
11102 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11103 echo $ac_n "(cached) $ac_c" 1>&6
11105 ac_save_LIBS="$LIBS"
11106 LIBS="-lssl -lcrypto $LIBS"
11107 cat > conftest.$ac_ext <<EOF
11108 #line 11109 "configure"
11109 #include "confdefs.h"
11110 /* Override any gcc2 internal prototype to avoid an error. */
11111 /* We use char because int might match the return type of a gcc2
11112 builtin and then its argument prototype would still apply. */
11113 char SSLeay_add_ssl_algorithms();
11116 SSLeay_add_ssl_algorithms()
11119 if { (eval echo configure:11120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11121 eval "ac_cv_lib_$ac_lib_var=yes"
11123 echo "configure: failed program was:" >&5
11124 cat conftest.$ac_ext >&5
11126 eval "ac_cv_lib_$ac_lib_var=no"
11129 LIBS="$ac_save_LIBS"
11132 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11133 echo "$ac_t""yes" 1>&6
11137 echo "$ac_t""no" 1>&6
11142 if test $have_ssleay = no ; then
11143 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
11144 echo "configure:11145: checking for SSL_library_init in -lssl" >&5
11145 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
11146 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11147 echo $ac_n "(cached) $ac_c" 1>&6
11149 ac_save_LIBS="$LIBS"
11150 LIBS="-lssl -lcrypto $LIBS"
11151 cat > conftest.$ac_ext <<EOF
11152 #line 11153 "configure"
11153 #include "confdefs.h"
11154 /* Override any gcc2 internal prototype to avoid an error. */
11155 /* We use char because int might match the return type of a gcc2
11156 builtin and then its argument prototype would still apply. */
11157 char SSL_library_init();
11163 if { (eval echo configure:11164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11165 eval "ac_cv_lib_$ac_lib_var=yes"
11167 echo "configure: failed program was:" >&5
11168 cat conftest.$ac_ext >&5
11170 eval "ac_cv_lib_$ac_lib_var=no"
11173 LIBS="$ac_save_LIBS"
11176 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11177 echo "$ac_t""yes" 1>&6
11181 echo "$ac_t""no" 1>&6
11187 if test $have_ssleay = no ; then
11188 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
11189 echo "configure:11190: checking for ssl3_accept in -lssl" >&5
11190 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
11191 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11192 echo $ac_n "(cached) $ac_c" 1>&6
11194 ac_save_LIBS="$LIBS"
11195 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
11196 cat > conftest.$ac_ext <<EOF
11197 #line 11198 "configure"
11198 #include "confdefs.h"
11199 /* Override any gcc2 internal prototype to avoid an error. */
11200 /* We use char because int might match the return type of a gcc2
11201 builtin and then its argument prototype would still apply. */
11202 char ssl3_accept();
11208 if { (eval echo configure:11209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11210 eval "ac_cv_lib_$ac_lib_var=yes"
11212 echo "configure: failed program was:" >&5
11213 cat conftest.$ac_ext >&5
11215 eval "ac_cv_lib_$ac_lib_var=no"
11218 LIBS="$ac_save_LIBS"
11221 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11222 echo "$ac_t""yes" 1>&6
11226 echo "$ac_t""no" 1>&6
11232 if test $have_ssleay = yes ; then
11236 cat >> confdefs.h <<\EOF
11237 #define HAVE_SSLEAY 1
11241 if test $need_rsaref = yes; then
11242 cat >> confdefs.h <<\EOF
11243 #define HAVE_RSAREF 1
11247 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
11249 TLS_LIBS="-lssl -lcrypto"
11255 echo "configure: warning: TLS data protection not supported!" 1>&2
11258 if test $ol_link_tls = yes ; then
11259 cat >> confdefs.h <<\EOF
11264 elif test $ol_with_tls = auto ; then
11265 echo "configure: warning: Could not locate TLS/SSL package" 1>&2
11266 echo "configure: warning: TLS data protection not supported!" 1>&2
11268 elif test $ol_with_tls != no ; then
11269 { echo "configure: error: Could not locate TLS/SSL package" 1>&2; exit 1; }
11272 if test $ol_enable_lmpasswd != no; then
11273 if test $ol_link_tls != yes ; then
11274 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
11277 cat >> confdefs.h <<\EOF
11278 #define SLAPD_LMHASH 1
11285 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11286 -o $ol_with_threads = nt ; then
11289 echo $ac_n "checking for _beginthread""... $ac_c" 1>&6
11290 echo "configure:11291: checking for _beginthread" >&5
11291 if eval "test \"\${ac_cv_func__beginthread+set}\" = set"; then
11292 echo $ac_n "(cached) $ac_c" 1>&6
11294 cat > conftest.$ac_ext <<EOF
11295 #line 11296 "configure"
11296 #include "confdefs.h"
11297 /* System header to define __stub macros and hopefully few prototypes,
11298 which can conflict with char _beginthread(); below. */
11299 #include <assert.h>
11300 /* Override any gcc2 internal prototype to avoid an error. */
11301 /* We use char because int might match the return type of a gcc2
11302 builtin and then its argument prototype would still apply. */
11303 char _beginthread();
11308 /* The GNU C library defines this for functions which it implements
11309 to always fail with ENOSYS. Some functions are actually named
11310 something starting with __ and the normal name is an alias. */
11311 #if defined (__stub__beginthread) || defined (__stub____beginthread)
11319 if { (eval echo configure:11320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11321 eval "ac_cv_func__beginthread=yes"
11323 echo "configure: failed program was:" >&5
11324 cat conftest.$ac_ext >&5
11326 eval "ac_cv_func__beginthread=no"
11331 if eval "test \"`echo '$ac_cv_func_'_beginthread`\" = yes"; then
11332 echo "$ac_t""yes" 1>&6
11335 echo "$ac_t""no" 1>&6
11339 if test $ac_cv_func__beginthread = yes ; then
11340 cat >> confdefs.h <<\EOF
11341 #define HAVE_NT_THREADS 1
11344 ol_cv_nt_threads=yes
11348 if test "$ol_cv_nt_threads" = yes ; then
11350 ol_with_threads=found
11351 ol_with_yielding_select=yes
11353 cat >> confdefs.h <<\EOF
11354 #define HAVE_NT_SERVICE_MANAGER 1
11357 cat >> confdefs.h <<\EOF
11358 #define HAVE_NT_EVENT_LOG 1
11363 if test $ol_with_threads = nt ; then
11364 { echo "configure: error: could not locate NT Threads" 1>&2; exit 1; }
11368 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11369 -o $ol_with_threads = posix ; then
11371 for ac_hdr in pthread.h
11373 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11374 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11375 echo "configure:11376: checking for $ac_hdr" >&5
11376 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11377 echo $ac_n "(cached) $ac_c" 1>&6
11379 cat > conftest.$ac_ext <<EOF
11380 #line 11381 "configure"
11381 #include "confdefs.h"
11384 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11385 { (eval echo configure:11386: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11386 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11387 if test -z "$ac_err"; then
11389 eval "ac_cv_header_$ac_safe=yes"
11392 echo "configure: failed program was:" >&5
11393 cat conftest.$ac_ext >&5
11395 eval "ac_cv_header_$ac_safe=no"
11399 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11400 echo "$ac_t""yes" 1>&6
11401 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11402 cat >> confdefs.h <<EOF
11403 #define $ac_tr_hdr 1
11407 echo "$ac_t""no" 1>&6
11412 if test $ac_cv_header_pthread_h = yes ; then
11413 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
11414 echo "configure:11415: checking POSIX thread version" >&5
11415 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
11416 echo $ac_n "(cached) $ac_c" 1>&6
11419 cat > conftest.$ac_ext <<EOF
11420 #line 11421 "configure"
11421 #include "confdefs.h"
11423 # include <pthread.h>
11427 int i = PTHREAD_CREATE_JOINABLE;
11431 if { (eval echo configure:11432: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11434 cat > conftest.$ac_ext <<EOF
11435 #line 11436 "configure"
11436 #include "confdefs.h"
11437 #include <pthread.h>
11439 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11440 egrep "pthread_detach" >/dev/null 2>&1; then
11442 ol_cv_pthread_version=10
11445 ol_cv_pthread_version=8
11450 echo "configure: failed program was:" >&5
11451 cat conftest.$ac_ext >&5
11454 cat > conftest.$ac_ext <<EOF
11455 #line 11456 "configure"
11456 #include "confdefs.h"
11458 # include <pthread.h>
11459 # ifdef PTHREAD_CREATE_UNDETACHED
11464 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11465 egrep "draft7" >/dev/null 2>&1; then
11467 ol_cv_pthread_version=7
11471 cat > conftest.$ac_ext <<EOF
11472 #line 11473 "configure"
11473 #include "confdefs.h"
11474 #include <pthread.h>
11476 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11477 egrep "pthread_attr_init" >/dev/null 2>&1; then
11479 ol_cv_pthread_version=6
11483 cat > conftest.$ac_ext <<EOF
11484 #line 11485 "configure"
11485 #include "confdefs.h"
11487 # include <pthread.h>
11488 #ifdef PTHREAD_MUTEX_INITIALIZER
11493 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11494 egrep "draft5" >/dev/null 2>&1; then
11496 ol_cv_pthread_version=5
11499 ol_cv_pthread_version=4
11514 echo "$ac_t""$ol_cv_pthread_version" 1>&6
11517 if test $ol_cv_pthread_version != 0 ; then
11518 cat >> confdefs.h <<EOF
11519 #define HAVE_PTHREADS $ol_cv_pthread_version
11523 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
11526 # consider threads found
11527 ol_with_threads=found
11530 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
11531 echo "configure:11532: checking for LinuxThreads pthread.h" >&5
11532 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
11533 echo $ac_n "(cached) $ac_c" 1>&6
11535 cat > conftest.$ac_ext <<EOF
11536 #line 11537 "configure"
11537 #include "confdefs.h"
11538 #include <pthread.h>
11540 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11541 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
11543 ol_cv_header_linux_threads=yes
11546 ol_cv_header_linux_threads=no
11553 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
11554 if test $ol_cv_header_linux_threads = yes; then
11555 cat >> confdefs.h <<\EOF
11556 #define HAVE_LINUX_THREADS 1
11562 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
11563 echo "configure:11564: checking for GNU Pth pthread.h" >&5
11564 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
11565 echo $ac_n "(cached) $ac_c" 1>&6
11567 cat > conftest.$ac_ext <<EOF
11568 #line 11569 "configure"
11569 #include "confdefs.h"
11570 #include <pthread.h>
11571 #ifdef _POSIX_THREAD_IS_GNU_PTH
11576 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11577 egrep "__gnu_pth__" >/dev/null 2>&1; then
11579 ol_cv_header_gnu_pth_pthread_h=yes
11582 ol_cv_header_gnu_pth_pthread_h=no
11589 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
11592 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
11593 for ac_hdr in sched.h
11595 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11596 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11597 echo "configure:11598: checking for $ac_hdr" >&5
11598 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11599 echo $ac_n "(cached) $ac_c" 1>&6
11601 cat > conftest.$ac_ext <<EOF
11602 #line 11603 "configure"
11603 #include "confdefs.h"
11606 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11607 { (eval echo configure:11608: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11608 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11609 if test -z "$ac_err"; then
11611 eval "ac_cv_header_$ac_safe=yes"
11614 echo "configure: failed program was:" >&5
11615 cat conftest.$ac_ext >&5
11617 eval "ac_cv_header_$ac_safe=no"
11621 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11622 echo "$ac_t""yes" 1>&6
11623 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11624 cat >> confdefs.h <<EOF
11625 #define $ac_tr_hdr 1
11629 echo "$ac_t""no" 1>&6
11636 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
11637 echo "configure:11638: checking for pthread_create in default libraries" >&5
11638 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
11639 echo $ac_n "(cached) $ac_c" 1>&6
11642 if test "$cross_compiling" = yes; then
11643 cat > conftest.$ac_ext <<EOF
11644 #line 11645 "configure"
11645 #include "confdefs.h"
11646 /* pthread test headers */
11647 #include <pthread.h>
11648 #if HAVE_PTHREADS < 7
11652 #define NULL (void*)0
11655 static void *task(p)
11658 return (void *) (p == NULL);
11663 /* pthread test function */
11664 #ifndef PTHREAD_CREATE_DETACHED
11665 #define PTHREAD_CREATE_DETACHED 1
11669 int detach = PTHREAD_CREATE_DETACHED;
11671 #if HAVE_PTHREADS > 4
11672 /* Final pthreads */
11673 pthread_attr_t attr;
11675 status = pthread_attr_init(&attr);
11676 if( status ) return status;
11678 #if HAVE_PTHREADS < 7
11679 status = pthread_attr_setdetachstate(&attr, &detach);
11680 if( status < 0 ) status = errno;
11682 status = pthread_attr_setdetachstate(&attr, detach);
11684 if( status ) return status;
11685 status = pthread_create( &t, &attr, task, NULL );
11686 #if HAVE_PTHREADS < 7
11687 if( status < 0 ) status = errno;
11689 if( status ) return status;
11691 /* Draft 4 pthreads */
11692 status = pthread_create( &t, pthread_attr_default, task, NULL );
11693 if( status ) return errno;
11695 /* give thread a chance to complete */
11696 /* it should remain joinable and hence detachable */
11699 status = pthread_detach( &t );
11700 if( status ) return errno;
11703 #ifdef HAVE_LINUX_THREADS
11704 pthread_kill_other_threads_np();
11711 if { (eval echo configure:11712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11713 ol_cv_pthread_create=yes
11715 echo "configure: failed program was:" >&5
11716 cat conftest.$ac_ext >&5
11718 ol_cv_pthread_create=no
11722 cat > conftest.$ac_ext <<EOF
11723 #line 11724 "configure"
11724 #include "confdefs.h"
11725 /* pthread test headers */
11726 #include <pthread.h>
11727 #if HAVE_PTHREADS < 7
11731 #define NULL (void*)0
11734 static void *task(p)
11737 return (void *) (p == NULL);
11741 int main(argc, argv)
11746 /* pthread test function */
11747 #ifndef PTHREAD_CREATE_DETACHED
11748 #define PTHREAD_CREATE_DETACHED 1
11752 int detach = PTHREAD_CREATE_DETACHED;
11754 #if HAVE_PTHREADS > 4
11755 /* Final pthreads */
11756 pthread_attr_t attr;
11758 status = pthread_attr_init(&attr);
11759 if( status ) return status;
11761 #if HAVE_PTHREADS < 7
11762 status = pthread_attr_setdetachstate(&attr, &detach);
11763 if( status < 0 ) status = errno;
11765 status = pthread_attr_setdetachstate(&attr, detach);
11767 if( status ) return status;
11768 status = pthread_create( &t, &attr, task, NULL );
11769 #if HAVE_PTHREADS < 7
11770 if( status < 0 ) status = errno;
11772 if( status ) return status;
11774 /* Draft 4 pthreads */
11775 status = pthread_create( &t, pthread_attr_default, task, NULL );
11776 if( status ) return errno;
11778 /* give thread a chance to complete */
11779 /* it should remain joinable and hence detachable */
11782 status = pthread_detach( &t );
11783 if( status ) return errno;
11786 #ifdef HAVE_LINUX_THREADS
11787 pthread_kill_other_threads_np();
11795 if { (eval echo configure:11796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11797 ol_cv_pthread_create=yes
11799 echo "configure: failed program was:" >&5
11800 cat conftest.$ac_ext >&5
11802 ol_cv_pthread_create=no
11809 echo "$ac_t""$ol_cv_pthread_create" 1>&6
11811 if test $ol_cv_pthread_create != no ; then
11812 ol_link_threads=posix
11813 ol_link_pthreads=""
11816 # Pthread try link: -kthread (ol_cv_pthread_kthread)
11817 if test "$ol_link_threads" = no ; then
11819 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
11820 echo "configure:11821: checking for pthread link with -kthread" >&5
11821 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
11822 echo $ac_n "(cached) $ac_c" 1>&6
11827 LIBS="-kthread $LIBS"
11829 if test "$cross_compiling" = yes; then
11830 cat > conftest.$ac_ext <<EOF
11831 #line 11832 "configure"
11832 #include "confdefs.h"
11833 /* pthread test headers */
11834 #include <pthread.h>
11835 #if HAVE_PTHREADS < 7
11839 #define NULL (void*)0
11842 static void *task(p)
11845 return (void *) (p == NULL);
11850 /* pthread test function */
11851 #ifndef PTHREAD_CREATE_DETACHED
11852 #define PTHREAD_CREATE_DETACHED 1
11856 int detach = PTHREAD_CREATE_DETACHED;
11858 #if HAVE_PTHREADS > 4
11859 /* Final pthreads */
11860 pthread_attr_t attr;
11862 status = pthread_attr_init(&attr);
11863 if( status ) return status;
11865 #if HAVE_PTHREADS < 7
11866 status = pthread_attr_setdetachstate(&attr, &detach);
11867 if( status < 0 ) status = errno;
11869 status = pthread_attr_setdetachstate(&attr, detach);
11871 if( status ) return status;
11872 status = pthread_create( &t, &attr, task, NULL );
11873 #if HAVE_PTHREADS < 7
11874 if( status < 0 ) status = errno;
11876 if( status ) return status;
11878 /* Draft 4 pthreads */
11879 status = pthread_create( &t, pthread_attr_default, task, NULL );
11880 if( status ) return errno;
11882 /* give thread a chance to complete */
11883 /* it should remain joinable and hence detachable */
11886 status = pthread_detach( &t );
11887 if( status ) return errno;
11890 #ifdef HAVE_LINUX_THREADS
11891 pthread_kill_other_threads_np();
11898 if { (eval echo configure:11899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11900 ol_cv_pthread_kthread=yes
11902 echo "configure: failed program was:" >&5
11903 cat conftest.$ac_ext >&5
11905 ol_cv_pthread_kthread=no
11909 cat > conftest.$ac_ext <<EOF
11910 #line 11911 "configure"
11911 #include "confdefs.h"
11912 /* pthread test headers */
11913 #include <pthread.h>
11914 #if HAVE_PTHREADS < 7
11918 #define NULL (void*)0
11921 static void *task(p)
11924 return (void *) (p == NULL);
11928 int main(argc, argv)
11933 /* pthread test function */
11934 #ifndef PTHREAD_CREATE_DETACHED
11935 #define PTHREAD_CREATE_DETACHED 1
11939 int detach = PTHREAD_CREATE_DETACHED;
11941 #if HAVE_PTHREADS > 4
11942 /* Final pthreads */
11943 pthread_attr_t attr;
11945 status = pthread_attr_init(&attr);
11946 if( status ) return status;
11948 #if HAVE_PTHREADS < 7
11949 status = pthread_attr_setdetachstate(&attr, &detach);
11950 if( status < 0 ) status = errno;
11952 status = pthread_attr_setdetachstate(&attr, detach);
11954 if( status ) return status;
11955 status = pthread_create( &t, &attr, task, NULL );
11956 #if HAVE_PTHREADS < 7
11957 if( status < 0 ) status = errno;
11959 if( status ) return status;
11961 /* Draft 4 pthreads */
11962 status = pthread_create( &t, pthread_attr_default, task, NULL );
11963 if( status ) return errno;
11965 /* give thread a chance to complete */
11966 /* it should remain joinable and hence detachable */
11969 status = pthread_detach( &t );
11970 if( status ) return errno;
11973 #ifdef HAVE_LINUX_THREADS
11974 pthread_kill_other_threads_np();
11982 if { (eval echo configure:11983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11984 ol_cv_pthread_kthread=yes
11986 echo "configure: failed program was:" >&5
11987 cat conftest.$ac_ext >&5
11989 ol_cv_pthread_kthread=no
12000 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
12002 if test $ol_cv_pthread_kthread = yes ; then
12003 ol_link_pthreads="-kthread"
12004 ol_link_threads=posix
12008 # Pthread try link: -pthread (ol_cv_pthread_pthread)
12009 if test "$ol_link_threads" = no ; then
12011 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
12012 echo "configure:12013: checking for pthread link with -pthread" >&5
12013 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
12014 echo $ac_n "(cached) $ac_c" 1>&6
12019 LIBS="-pthread $LIBS"
12021 if test "$cross_compiling" = yes; then
12022 cat > conftest.$ac_ext <<EOF
12023 #line 12024 "configure"
12024 #include "confdefs.h"
12025 /* pthread test headers */
12026 #include <pthread.h>
12027 #if HAVE_PTHREADS < 7
12031 #define NULL (void*)0
12034 static void *task(p)
12037 return (void *) (p == NULL);
12042 /* pthread test function */
12043 #ifndef PTHREAD_CREATE_DETACHED
12044 #define PTHREAD_CREATE_DETACHED 1
12048 int detach = PTHREAD_CREATE_DETACHED;
12050 #if HAVE_PTHREADS > 4
12051 /* Final pthreads */
12052 pthread_attr_t attr;
12054 status = pthread_attr_init(&attr);
12055 if( status ) return status;
12057 #if HAVE_PTHREADS < 7
12058 status = pthread_attr_setdetachstate(&attr, &detach);
12059 if( status < 0 ) status = errno;
12061 status = pthread_attr_setdetachstate(&attr, detach);
12063 if( status ) return status;
12064 status = pthread_create( &t, &attr, task, NULL );
12065 #if HAVE_PTHREADS < 7
12066 if( status < 0 ) status = errno;
12068 if( status ) return status;
12070 /* Draft 4 pthreads */
12071 status = pthread_create( &t, pthread_attr_default, task, NULL );
12072 if( status ) return errno;
12074 /* give thread a chance to complete */
12075 /* it should remain joinable and hence detachable */
12078 status = pthread_detach( &t );
12079 if( status ) return errno;
12082 #ifdef HAVE_LINUX_THREADS
12083 pthread_kill_other_threads_np();
12090 if { (eval echo configure:12091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12092 ol_cv_pthread_pthread=yes
12094 echo "configure: failed program was:" >&5
12095 cat conftest.$ac_ext >&5
12097 ol_cv_pthread_pthread=no
12101 cat > conftest.$ac_ext <<EOF
12102 #line 12103 "configure"
12103 #include "confdefs.h"
12104 /* pthread test headers */
12105 #include <pthread.h>
12106 #if HAVE_PTHREADS < 7
12110 #define NULL (void*)0
12113 static void *task(p)
12116 return (void *) (p == NULL);
12120 int main(argc, argv)
12125 /* pthread test function */
12126 #ifndef PTHREAD_CREATE_DETACHED
12127 #define PTHREAD_CREATE_DETACHED 1
12131 int detach = PTHREAD_CREATE_DETACHED;
12133 #if HAVE_PTHREADS > 4
12134 /* Final pthreads */
12135 pthread_attr_t attr;
12137 status = pthread_attr_init(&attr);
12138 if( status ) return status;
12140 #if HAVE_PTHREADS < 7
12141 status = pthread_attr_setdetachstate(&attr, &detach);
12142 if( status < 0 ) status = errno;
12144 status = pthread_attr_setdetachstate(&attr, detach);
12146 if( status ) return status;
12147 status = pthread_create( &t, &attr, task, NULL );
12148 #if HAVE_PTHREADS < 7
12149 if( status < 0 ) status = errno;
12151 if( status ) return status;
12153 /* Draft 4 pthreads */
12154 status = pthread_create( &t, pthread_attr_default, task, NULL );
12155 if( status ) return errno;
12157 /* give thread a chance to complete */
12158 /* it should remain joinable and hence detachable */
12161 status = pthread_detach( &t );
12162 if( status ) return errno;
12165 #ifdef HAVE_LINUX_THREADS
12166 pthread_kill_other_threads_np();
12174 if { (eval echo configure:12175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12176 ol_cv_pthread_pthread=yes
12178 echo "configure: failed program was:" >&5
12179 cat conftest.$ac_ext >&5
12181 ol_cv_pthread_pthread=no
12192 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
12194 if test $ol_cv_pthread_pthread = yes ; then
12195 ol_link_pthreads="-pthread"
12196 ol_link_threads=posix
12200 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
12201 if test "$ol_link_threads" = no ; then
12203 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
12204 echo "configure:12205: checking for pthread link with -pthreads" >&5
12205 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
12206 echo $ac_n "(cached) $ac_c" 1>&6
12211 LIBS="-pthreads $LIBS"
12213 if test "$cross_compiling" = yes; then
12214 cat > conftest.$ac_ext <<EOF
12215 #line 12216 "configure"
12216 #include "confdefs.h"
12217 /* pthread test headers */
12218 #include <pthread.h>
12219 #if HAVE_PTHREADS < 7
12223 #define NULL (void*)0
12226 static void *task(p)
12229 return (void *) (p == NULL);
12234 /* pthread test function */
12235 #ifndef PTHREAD_CREATE_DETACHED
12236 #define PTHREAD_CREATE_DETACHED 1
12240 int detach = PTHREAD_CREATE_DETACHED;
12242 #if HAVE_PTHREADS > 4
12243 /* Final pthreads */
12244 pthread_attr_t attr;
12246 status = pthread_attr_init(&attr);
12247 if( status ) return status;
12249 #if HAVE_PTHREADS < 7
12250 status = pthread_attr_setdetachstate(&attr, &detach);
12251 if( status < 0 ) status = errno;
12253 status = pthread_attr_setdetachstate(&attr, detach);
12255 if( status ) return status;
12256 status = pthread_create( &t, &attr, task, NULL );
12257 #if HAVE_PTHREADS < 7
12258 if( status < 0 ) status = errno;
12260 if( status ) return status;
12262 /* Draft 4 pthreads */
12263 status = pthread_create( &t, pthread_attr_default, task, NULL );
12264 if( status ) return errno;
12266 /* give thread a chance to complete */
12267 /* it should remain joinable and hence detachable */
12270 status = pthread_detach( &t );
12271 if( status ) return errno;
12274 #ifdef HAVE_LINUX_THREADS
12275 pthread_kill_other_threads_np();
12282 if { (eval echo configure:12283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12284 ol_cv_pthread_pthreads=yes
12286 echo "configure: failed program was:" >&5
12287 cat conftest.$ac_ext >&5
12289 ol_cv_pthread_pthreads=no
12293 cat > conftest.$ac_ext <<EOF
12294 #line 12295 "configure"
12295 #include "confdefs.h"
12296 /* pthread test headers */
12297 #include <pthread.h>
12298 #if HAVE_PTHREADS < 7
12302 #define NULL (void*)0
12305 static void *task(p)
12308 return (void *) (p == NULL);
12312 int main(argc, argv)
12317 /* pthread test function */
12318 #ifndef PTHREAD_CREATE_DETACHED
12319 #define PTHREAD_CREATE_DETACHED 1
12323 int detach = PTHREAD_CREATE_DETACHED;
12325 #if HAVE_PTHREADS > 4
12326 /* Final pthreads */
12327 pthread_attr_t attr;
12329 status = pthread_attr_init(&attr);
12330 if( status ) return status;
12332 #if HAVE_PTHREADS < 7
12333 status = pthread_attr_setdetachstate(&attr, &detach);
12334 if( status < 0 ) status = errno;
12336 status = pthread_attr_setdetachstate(&attr, detach);
12338 if( status ) return status;
12339 status = pthread_create( &t, &attr, task, NULL );
12340 #if HAVE_PTHREADS < 7
12341 if( status < 0 ) status = errno;
12343 if( status ) return status;
12345 /* Draft 4 pthreads */
12346 status = pthread_create( &t, pthread_attr_default, task, NULL );
12347 if( status ) return errno;
12349 /* give thread a chance to complete */
12350 /* it should remain joinable and hence detachable */
12353 status = pthread_detach( &t );
12354 if( status ) return errno;
12357 #ifdef HAVE_LINUX_THREADS
12358 pthread_kill_other_threads_np();
12366 if { (eval echo configure:12367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12368 ol_cv_pthread_pthreads=yes
12370 echo "configure: failed program was:" >&5
12371 cat conftest.$ac_ext >&5
12373 ol_cv_pthread_pthreads=no
12384 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
12386 if test $ol_cv_pthread_pthreads = yes ; then
12387 ol_link_pthreads="-pthreads"
12388 ol_link_threads=posix
12392 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
12393 if test "$ol_link_threads" = no ; then
12395 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
12396 echo "configure:12397: checking for pthread link with -mthreads" >&5
12397 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
12398 echo $ac_n "(cached) $ac_c" 1>&6
12403 LIBS="-mthreads $LIBS"
12405 if test "$cross_compiling" = yes; then
12406 cat > conftest.$ac_ext <<EOF
12407 #line 12408 "configure"
12408 #include "confdefs.h"
12409 /* pthread test headers */
12410 #include <pthread.h>
12411 #if HAVE_PTHREADS < 7
12415 #define NULL (void*)0
12418 static void *task(p)
12421 return (void *) (p == NULL);
12426 /* pthread test function */
12427 #ifndef PTHREAD_CREATE_DETACHED
12428 #define PTHREAD_CREATE_DETACHED 1
12432 int detach = PTHREAD_CREATE_DETACHED;
12434 #if HAVE_PTHREADS > 4
12435 /* Final pthreads */
12436 pthread_attr_t attr;
12438 status = pthread_attr_init(&attr);
12439 if( status ) return status;
12441 #if HAVE_PTHREADS < 7
12442 status = pthread_attr_setdetachstate(&attr, &detach);
12443 if( status < 0 ) status = errno;
12445 status = pthread_attr_setdetachstate(&attr, detach);
12447 if( status ) return status;
12448 status = pthread_create( &t, &attr, task, NULL );
12449 #if HAVE_PTHREADS < 7
12450 if( status < 0 ) status = errno;
12452 if( status ) return status;
12454 /* Draft 4 pthreads */
12455 status = pthread_create( &t, pthread_attr_default, task, NULL );
12456 if( status ) return errno;
12458 /* give thread a chance to complete */
12459 /* it should remain joinable and hence detachable */
12462 status = pthread_detach( &t );
12463 if( status ) return errno;
12466 #ifdef HAVE_LINUX_THREADS
12467 pthread_kill_other_threads_np();
12474 if { (eval echo configure:12475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12476 ol_cv_pthread_mthreads=yes
12478 echo "configure: failed program was:" >&5
12479 cat conftest.$ac_ext >&5
12481 ol_cv_pthread_mthreads=no
12485 cat > conftest.$ac_ext <<EOF
12486 #line 12487 "configure"
12487 #include "confdefs.h"
12488 /* pthread test headers */
12489 #include <pthread.h>
12490 #if HAVE_PTHREADS < 7
12494 #define NULL (void*)0
12497 static void *task(p)
12500 return (void *) (p == NULL);
12504 int main(argc, argv)
12509 /* pthread test function */
12510 #ifndef PTHREAD_CREATE_DETACHED
12511 #define PTHREAD_CREATE_DETACHED 1
12515 int detach = PTHREAD_CREATE_DETACHED;
12517 #if HAVE_PTHREADS > 4
12518 /* Final pthreads */
12519 pthread_attr_t attr;
12521 status = pthread_attr_init(&attr);
12522 if( status ) return status;
12524 #if HAVE_PTHREADS < 7
12525 status = pthread_attr_setdetachstate(&attr, &detach);
12526 if( status < 0 ) status = errno;
12528 status = pthread_attr_setdetachstate(&attr, detach);
12530 if( status ) return status;
12531 status = pthread_create( &t, &attr, task, NULL );
12532 #if HAVE_PTHREADS < 7
12533 if( status < 0 ) status = errno;
12535 if( status ) return status;
12537 /* Draft 4 pthreads */
12538 status = pthread_create( &t, pthread_attr_default, task, NULL );
12539 if( status ) return errno;
12541 /* give thread a chance to complete */
12542 /* it should remain joinable and hence detachable */
12545 status = pthread_detach( &t );
12546 if( status ) return errno;
12549 #ifdef HAVE_LINUX_THREADS
12550 pthread_kill_other_threads_np();
12558 if { (eval echo configure:12559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12560 ol_cv_pthread_mthreads=yes
12562 echo "configure: failed program was:" >&5
12563 cat conftest.$ac_ext >&5
12565 ol_cv_pthread_mthreads=no
12576 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
12578 if test $ol_cv_pthread_mthreads = yes ; then
12579 ol_link_pthreads="-mthreads"
12580 ol_link_threads=posix
12584 # Pthread try link: -thread (ol_cv_pthread_thread)
12585 if test "$ol_link_threads" = no ; then
12587 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
12588 echo "configure:12589: checking for pthread link with -thread" >&5
12589 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
12590 echo $ac_n "(cached) $ac_c" 1>&6
12595 LIBS="-thread $LIBS"
12597 if test "$cross_compiling" = yes; then
12598 cat > conftest.$ac_ext <<EOF
12599 #line 12600 "configure"
12600 #include "confdefs.h"
12601 /* pthread test headers */
12602 #include <pthread.h>
12603 #if HAVE_PTHREADS < 7
12607 #define NULL (void*)0
12610 static void *task(p)
12613 return (void *) (p == NULL);
12618 /* pthread test function */
12619 #ifndef PTHREAD_CREATE_DETACHED
12620 #define PTHREAD_CREATE_DETACHED 1
12624 int detach = PTHREAD_CREATE_DETACHED;
12626 #if HAVE_PTHREADS > 4
12627 /* Final pthreads */
12628 pthread_attr_t attr;
12630 status = pthread_attr_init(&attr);
12631 if( status ) return status;
12633 #if HAVE_PTHREADS < 7
12634 status = pthread_attr_setdetachstate(&attr, &detach);
12635 if( status < 0 ) status = errno;
12637 status = pthread_attr_setdetachstate(&attr, detach);
12639 if( status ) return status;
12640 status = pthread_create( &t, &attr, task, NULL );
12641 #if HAVE_PTHREADS < 7
12642 if( status < 0 ) status = errno;
12644 if( status ) return status;
12646 /* Draft 4 pthreads */
12647 status = pthread_create( &t, pthread_attr_default, task, NULL );
12648 if( status ) return errno;
12650 /* give thread a chance to complete */
12651 /* it should remain joinable and hence detachable */
12654 status = pthread_detach( &t );
12655 if( status ) return errno;
12658 #ifdef HAVE_LINUX_THREADS
12659 pthread_kill_other_threads_np();
12666 if { (eval echo configure:12667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12668 ol_cv_pthread_thread=yes
12670 echo "configure: failed program was:" >&5
12671 cat conftest.$ac_ext >&5
12673 ol_cv_pthread_thread=no
12677 cat > conftest.$ac_ext <<EOF
12678 #line 12679 "configure"
12679 #include "confdefs.h"
12680 /* pthread test headers */
12681 #include <pthread.h>
12682 #if HAVE_PTHREADS < 7
12686 #define NULL (void*)0
12689 static void *task(p)
12692 return (void *) (p == NULL);
12696 int main(argc, argv)
12701 /* pthread test function */
12702 #ifndef PTHREAD_CREATE_DETACHED
12703 #define PTHREAD_CREATE_DETACHED 1
12707 int detach = PTHREAD_CREATE_DETACHED;
12709 #if HAVE_PTHREADS > 4
12710 /* Final pthreads */
12711 pthread_attr_t attr;
12713 status = pthread_attr_init(&attr);
12714 if( status ) return status;
12716 #if HAVE_PTHREADS < 7
12717 status = pthread_attr_setdetachstate(&attr, &detach);
12718 if( status < 0 ) status = errno;
12720 status = pthread_attr_setdetachstate(&attr, detach);
12722 if( status ) return status;
12723 status = pthread_create( &t, &attr, task, NULL );
12724 #if HAVE_PTHREADS < 7
12725 if( status < 0 ) status = errno;
12727 if( status ) return status;
12729 /* Draft 4 pthreads */
12730 status = pthread_create( &t, pthread_attr_default, task, NULL );
12731 if( status ) return errno;
12733 /* give thread a chance to complete */
12734 /* it should remain joinable and hence detachable */
12737 status = pthread_detach( &t );
12738 if( status ) return errno;
12741 #ifdef HAVE_LINUX_THREADS
12742 pthread_kill_other_threads_np();
12750 if { (eval echo configure:12751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12752 ol_cv_pthread_thread=yes
12754 echo "configure: failed program was:" >&5
12755 cat conftest.$ac_ext >&5
12757 ol_cv_pthread_thread=no
12768 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
12770 if test $ol_cv_pthread_thread = yes ; then
12771 ol_link_pthreads="-thread"
12772 ol_link_threads=posix
12777 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
12778 if test "$ol_link_threads" = no ; then
12779 # try -lpthread -lmach -lexc -lc_r
12780 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
12781 echo "configure:12782: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
12782 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
12783 echo $ac_n "(cached) $ac_c" 1>&6
12788 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
12790 if test "$cross_compiling" = yes; then
12791 cat > conftest.$ac_ext <<EOF
12792 #line 12793 "configure"
12793 #include "confdefs.h"
12794 /* pthread test headers */
12795 #include <pthread.h>
12796 #if HAVE_PTHREADS < 7
12800 #define NULL (void*)0
12803 static void *task(p)
12806 return (void *) (p == NULL);
12811 /* pthread test function */
12812 #ifndef PTHREAD_CREATE_DETACHED
12813 #define PTHREAD_CREATE_DETACHED 1
12817 int detach = PTHREAD_CREATE_DETACHED;
12819 #if HAVE_PTHREADS > 4
12820 /* Final pthreads */
12821 pthread_attr_t attr;
12823 status = pthread_attr_init(&attr);
12824 if( status ) return status;
12826 #if HAVE_PTHREADS < 7
12827 status = pthread_attr_setdetachstate(&attr, &detach);
12828 if( status < 0 ) status = errno;
12830 status = pthread_attr_setdetachstate(&attr, detach);
12832 if( status ) return status;
12833 status = pthread_create( &t, &attr, task, NULL );
12834 #if HAVE_PTHREADS < 7
12835 if( status < 0 ) status = errno;
12837 if( status ) return status;
12839 /* Draft 4 pthreads */
12840 status = pthread_create( &t, pthread_attr_default, task, NULL );
12841 if( status ) return errno;
12843 /* give thread a chance to complete */
12844 /* it should remain joinable and hence detachable */
12847 status = pthread_detach( &t );
12848 if( status ) return errno;
12851 #ifdef HAVE_LINUX_THREADS
12852 pthread_kill_other_threads_np();
12859 if { (eval echo configure:12860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12861 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
12863 echo "configure: failed program was:" >&5
12864 cat conftest.$ac_ext >&5
12866 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
12870 cat > conftest.$ac_ext <<EOF
12871 #line 12872 "configure"
12872 #include "confdefs.h"
12873 /* pthread test headers */
12874 #include <pthread.h>
12875 #if HAVE_PTHREADS < 7
12879 #define NULL (void*)0
12882 static void *task(p)
12885 return (void *) (p == NULL);
12889 int main(argc, argv)
12894 /* pthread test function */
12895 #ifndef PTHREAD_CREATE_DETACHED
12896 #define PTHREAD_CREATE_DETACHED 1
12900 int detach = PTHREAD_CREATE_DETACHED;
12902 #if HAVE_PTHREADS > 4
12903 /* Final pthreads */
12904 pthread_attr_t attr;
12906 status = pthread_attr_init(&attr);
12907 if( status ) return status;
12909 #if HAVE_PTHREADS < 7
12910 status = pthread_attr_setdetachstate(&attr, &detach);
12911 if( status < 0 ) status = errno;
12913 status = pthread_attr_setdetachstate(&attr, detach);
12915 if( status ) return status;
12916 status = pthread_create( &t, &attr, task, NULL );
12917 #if HAVE_PTHREADS < 7
12918 if( status < 0 ) status = errno;
12920 if( status ) return status;
12922 /* Draft 4 pthreads */
12923 status = pthread_create( &t, pthread_attr_default, task, NULL );
12924 if( status ) return errno;
12926 /* give thread a chance to complete */
12927 /* it should remain joinable and hence detachable */
12930 status = pthread_detach( &t );
12931 if( status ) return errno;
12934 #ifdef HAVE_LINUX_THREADS
12935 pthread_kill_other_threads_np();
12943 if { (eval echo configure:12944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12945 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
12947 echo "configure: failed program was:" >&5
12948 cat conftest.$ac_ext >&5
12950 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
12961 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
12963 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
12964 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
12965 ol_link_threads=posix
12969 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
12970 if test "$ol_link_threads" = no ; then
12971 # try -lpthread -lmach -lexc
12972 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
12973 echo "configure:12974: checking for pthread link with -lpthread -lmach -lexc" >&5
12974 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
12975 echo $ac_n "(cached) $ac_c" 1>&6
12980 LIBS="-lpthread -lmach -lexc $LIBS"
12982 if test "$cross_compiling" = yes; then
12983 cat > conftest.$ac_ext <<EOF
12984 #line 12985 "configure"
12985 #include "confdefs.h"
12986 /* pthread test headers */
12987 #include <pthread.h>
12988 #if HAVE_PTHREADS < 7
12992 #define NULL (void*)0
12995 static void *task(p)
12998 return (void *) (p == NULL);
13003 /* pthread test function */
13004 #ifndef PTHREAD_CREATE_DETACHED
13005 #define PTHREAD_CREATE_DETACHED 1
13009 int detach = PTHREAD_CREATE_DETACHED;
13011 #if HAVE_PTHREADS > 4
13012 /* Final pthreads */
13013 pthread_attr_t attr;
13015 status = pthread_attr_init(&attr);
13016 if( status ) return status;
13018 #if HAVE_PTHREADS < 7
13019 status = pthread_attr_setdetachstate(&attr, &detach);
13020 if( status < 0 ) status = errno;
13022 status = pthread_attr_setdetachstate(&attr, detach);
13024 if( status ) return status;
13025 status = pthread_create( &t, &attr, task, NULL );
13026 #if HAVE_PTHREADS < 7
13027 if( status < 0 ) status = errno;
13029 if( status ) return status;
13031 /* Draft 4 pthreads */
13032 status = pthread_create( &t, pthread_attr_default, task, NULL );
13033 if( status ) return errno;
13035 /* give thread a chance to complete */
13036 /* it should remain joinable and hence detachable */
13039 status = pthread_detach( &t );
13040 if( status ) return errno;
13043 #ifdef HAVE_LINUX_THREADS
13044 pthread_kill_other_threads_np();
13051 if { (eval echo configure:13052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13053 ol_cv_pthread_lpthread_lmach_lexc=yes
13055 echo "configure: failed program was:" >&5
13056 cat conftest.$ac_ext >&5
13058 ol_cv_pthread_lpthread_lmach_lexc=no
13062 cat > conftest.$ac_ext <<EOF
13063 #line 13064 "configure"
13064 #include "confdefs.h"
13065 /* pthread test headers */
13066 #include <pthread.h>
13067 #if HAVE_PTHREADS < 7
13071 #define NULL (void*)0
13074 static void *task(p)
13077 return (void *) (p == NULL);
13081 int main(argc, argv)
13086 /* pthread test function */
13087 #ifndef PTHREAD_CREATE_DETACHED
13088 #define PTHREAD_CREATE_DETACHED 1
13092 int detach = PTHREAD_CREATE_DETACHED;
13094 #if HAVE_PTHREADS > 4
13095 /* Final pthreads */
13096 pthread_attr_t attr;
13098 status = pthread_attr_init(&attr);
13099 if( status ) return status;
13101 #if HAVE_PTHREADS < 7
13102 status = pthread_attr_setdetachstate(&attr, &detach);
13103 if( status < 0 ) status = errno;
13105 status = pthread_attr_setdetachstate(&attr, detach);
13107 if( status ) return status;
13108 status = pthread_create( &t, &attr, task, NULL );
13109 #if HAVE_PTHREADS < 7
13110 if( status < 0 ) status = errno;
13112 if( status ) return status;
13114 /* Draft 4 pthreads */
13115 status = pthread_create( &t, pthread_attr_default, task, NULL );
13116 if( status ) return errno;
13118 /* give thread a chance to complete */
13119 /* it should remain joinable and hence detachable */
13122 status = pthread_detach( &t );
13123 if( status ) return errno;
13126 #ifdef HAVE_LINUX_THREADS
13127 pthread_kill_other_threads_np();
13135 if { (eval echo configure:13136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13137 ol_cv_pthread_lpthread_lmach_lexc=yes
13139 echo "configure: failed program was:" >&5
13140 cat conftest.$ac_ext >&5
13142 ol_cv_pthread_lpthread_lmach_lexc=no
13153 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
13155 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
13156 ol_link_pthreads="-lpthread -lmach -lexc"
13157 ol_link_threads=posix
13162 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
13163 if test "$ol_link_threads" = no ; then
13164 # try -lpthread -Wl,-woff,85
13165 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
13166 echo "configure:13167: checking for pthread link with -lpthread -Wl,-woff,85" >&5
13167 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
13168 echo $ac_n "(cached) $ac_c" 1>&6
13173 LIBS="-lpthread -Wl,-woff,85 $LIBS"
13175 if test "$cross_compiling" = yes; then
13176 cat > conftest.$ac_ext <<EOF
13177 #line 13178 "configure"
13178 #include "confdefs.h"
13179 /* pthread test headers */
13180 #include <pthread.h>
13181 #if HAVE_PTHREADS < 7
13185 #define NULL (void*)0
13188 static void *task(p)
13191 return (void *) (p == NULL);
13196 /* pthread test function */
13197 #ifndef PTHREAD_CREATE_DETACHED
13198 #define PTHREAD_CREATE_DETACHED 1
13202 int detach = PTHREAD_CREATE_DETACHED;
13204 #if HAVE_PTHREADS > 4
13205 /* Final pthreads */
13206 pthread_attr_t attr;
13208 status = pthread_attr_init(&attr);
13209 if( status ) return status;
13211 #if HAVE_PTHREADS < 7
13212 status = pthread_attr_setdetachstate(&attr, &detach);
13213 if( status < 0 ) status = errno;
13215 status = pthread_attr_setdetachstate(&attr, detach);
13217 if( status ) return status;
13218 status = pthread_create( &t, &attr, task, NULL );
13219 #if HAVE_PTHREADS < 7
13220 if( status < 0 ) status = errno;
13222 if( status ) return status;
13224 /* Draft 4 pthreads */
13225 status = pthread_create( &t, pthread_attr_default, task, NULL );
13226 if( status ) return errno;
13228 /* give thread a chance to complete */
13229 /* it should remain joinable and hence detachable */
13232 status = pthread_detach( &t );
13233 if( status ) return errno;
13236 #ifdef HAVE_LINUX_THREADS
13237 pthread_kill_other_threads_np();
13244 if { (eval echo configure:13245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13246 ol_cv_pthread_lib_lpthread_woff=yes
13248 echo "configure: failed program was:" >&5
13249 cat conftest.$ac_ext >&5
13251 ol_cv_pthread_lib_lpthread_woff=no
13255 cat > conftest.$ac_ext <<EOF
13256 #line 13257 "configure"
13257 #include "confdefs.h"
13258 /* pthread test headers */
13259 #include <pthread.h>
13260 #if HAVE_PTHREADS < 7
13264 #define NULL (void*)0
13267 static void *task(p)
13270 return (void *) (p == NULL);
13274 int main(argc, argv)
13279 /* pthread test function */
13280 #ifndef PTHREAD_CREATE_DETACHED
13281 #define PTHREAD_CREATE_DETACHED 1
13285 int detach = PTHREAD_CREATE_DETACHED;
13287 #if HAVE_PTHREADS > 4
13288 /* Final pthreads */
13289 pthread_attr_t attr;
13291 status = pthread_attr_init(&attr);
13292 if( status ) return status;
13294 #if HAVE_PTHREADS < 7
13295 status = pthread_attr_setdetachstate(&attr, &detach);
13296 if( status < 0 ) status = errno;
13298 status = pthread_attr_setdetachstate(&attr, detach);
13300 if( status ) return status;
13301 status = pthread_create( &t, &attr, task, NULL );
13302 #if HAVE_PTHREADS < 7
13303 if( status < 0 ) status = errno;
13305 if( status ) return status;
13307 /* Draft 4 pthreads */
13308 status = pthread_create( &t, pthread_attr_default, task, NULL );
13309 if( status ) return errno;
13311 /* give thread a chance to complete */
13312 /* it should remain joinable and hence detachable */
13315 status = pthread_detach( &t );
13316 if( status ) return errno;
13319 #ifdef HAVE_LINUX_THREADS
13320 pthread_kill_other_threads_np();
13328 if { (eval echo configure:13329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13330 ol_cv_pthread_lib_lpthread_woff=yes
13332 echo "configure: failed program was:" >&5
13333 cat conftest.$ac_ext >&5
13335 ol_cv_pthread_lib_lpthread_woff=no
13346 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
13348 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
13349 ol_link_pthreads="-lpthread -Wl,-woff,85"
13350 ol_link_threads=posix
13355 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
13356 if test "$ol_link_threads" = no ; then
13358 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
13359 echo "configure:13360: checking for pthread link with -lpthread" >&5
13360 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
13361 echo $ac_n "(cached) $ac_c" 1>&6
13366 LIBS="-lpthread $LIBS"
13368 if test "$cross_compiling" = yes; then
13369 cat > conftest.$ac_ext <<EOF
13370 #line 13371 "configure"
13371 #include "confdefs.h"
13372 /* pthread test headers */
13373 #include <pthread.h>
13374 #if HAVE_PTHREADS < 7
13378 #define NULL (void*)0
13381 static void *task(p)
13384 return (void *) (p == NULL);
13389 /* pthread test function */
13390 #ifndef PTHREAD_CREATE_DETACHED
13391 #define PTHREAD_CREATE_DETACHED 1
13395 int detach = PTHREAD_CREATE_DETACHED;
13397 #if HAVE_PTHREADS > 4
13398 /* Final pthreads */
13399 pthread_attr_t attr;
13401 status = pthread_attr_init(&attr);
13402 if( status ) return status;
13404 #if HAVE_PTHREADS < 7
13405 status = pthread_attr_setdetachstate(&attr, &detach);
13406 if( status < 0 ) status = errno;
13408 status = pthread_attr_setdetachstate(&attr, detach);
13410 if( status ) return status;
13411 status = pthread_create( &t, &attr, task, NULL );
13412 #if HAVE_PTHREADS < 7
13413 if( status < 0 ) status = errno;
13415 if( status ) return status;
13417 /* Draft 4 pthreads */
13418 status = pthread_create( &t, pthread_attr_default, task, NULL );
13419 if( status ) return errno;
13421 /* give thread a chance to complete */
13422 /* it should remain joinable and hence detachable */
13425 status = pthread_detach( &t );
13426 if( status ) return errno;
13429 #ifdef HAVE_LINUX_THREADS
13430 pthread_kill_other_threads_np();
13437 if { (eval echo configure:13438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13439 ol_cv_pthread_lpthread=yes
13441 echo "configure: failed program was:" >&5
13442 cat conftest.$ac_ext >&5
13444 ol_cv_pthread_lpthread=no
13448 cat > conftest.$ac_ext <<EOF
13449 #line 13450 "configure"
13450 #include "confdefs.h"
13451 /* pthread test headers */
13452 #include <pthread.h>
13453 #if HAVE_PTHREADS < 7
13457 #define NULL (void*)0
13460 static void *task(p)
13463 return (void *) (p == NULL);
13467 int main(argc, argv)
13472 /* pthread test function */
13473 #ifndef PTHREAD_CREATE_DETACHED
13474 #define PTHREAD_CREATE_DETACHED 1
13478 int detach = PTHREAD_CREATE_DETACHED;
13480 #if HAVE_PTHREADS > 4
13481 /* Final pthreads */
13482 pthread_attr_t attr;
13484 status = pthread_attr_init(&attr);
13485 if( status ) return status;
13487 #if HAVE_PTHREADS < 7
13488 status = pthread_attr_setdetachstate(&attr, &detach);
13489 if( status < 0 ) status = errno;
13491 status = pthread_attr_setdetachstate(&attr, detach);
13493 if( status ) return status;
13494 status = pthread_create( &t, &attr, task, NULL );
13495 #if HAVE_PTHREADS < 7
13496 if( status < 0 ) status = errno;
13498 if( status ) return status;
13500 /* Draft 4 pthreads */
13501 status = pthread_create( &t, pthread_attr_default, task, NULL );
13502 if( status ) return errno;
13504 /* give thread a chance to complete */
13505 /* it should remain joinable and hence detachable */
13508 status = pthread_detach( &t );
13509 if( status ) return errno;
13512 #ifdef HAVE_LINUX_THREADS
13513 pthread_kill_other_threads_np();
13521 if { (eval echo configure:13522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13523 ol_cv_pthread_lpthread=yes
13525 echo "configure: failed program was:" >&5
13526 cat conftest.$ac_ext >&5
13528 ol_cv_pthread_lpthread=no
13539 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
13541 if test $ol_cv_pthread_lpthread = yes ; then
13542 ol_link_pthreads="-lpthread"
13543 ol_link_threads=posix
13547 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
13548 if test "$ol_link_threads" = no ; then
13550 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
13551 echo "configure:13552: checking for pthread link with -lc_r" >&5
13552 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
13553 echo $ac_n "(cached) $ac_c" 1>&6
13560 if test "$cross_compiling" = yes; then
13561 cat > conftest.$ac_ext <<EOF
13562 #line 13563 "configure"
13563 #include "confdefs.h"
13564 /* pthread test headers */
13565 #include <pthread.h>
13566 #if HAVE_PTHREADS < 7
13570 #define NULL (void*)0
13573 static void *task(p)
13576 return (void *) (p == NULL);
13581 /* pthread test function */
13582 #ifndef PTHREAD_CREATE_DETACHED
13583 #define PTHREAD_CREATE_DETACHED 1
13587 int detach = PTHREAD_CREATE_DETACHED;
13589 #if HAVE_PTHREADS > 4
13590 /* Final pthreads */
13591 pthread_attr_t attr;
13593 status = pthread_attr_init(&attr);
13594 if( status ) return status;
13596 #if HAVE_PTHREADS < 7
13597 status = pthread_attr_setdetachstate(&attr, &detach);
13598 if( status < 0 ) status = errno;
13600 status = pthread_attr_setdetachstate(&attr, detach);
13602 if( status ) return status;
13603 status = pthread_create( &t, &attr, task, NULL );
13604 #if HAVE_PTHREADS < 7
13605 if( status < 0 ) status = errno;
13607 if( status ) return status;
13609 /* Draft 4 pthreads */
13610 status = pthread_create( &t, pthread_attr_default, task, NULL );
13611 if( status ) return errno;
13613 /* give thread a chance to complete */
13614 /* it should remain joinable and hence detachable */
13617 status = pthread_detach( &t );
13618 if( status ) return errno;
13621 #ifdef HAVE_LINUX_THREADS
13622 pthread_kill_other_threads_np();
13629 if { (eval echo configure:13630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13631 ol_cv_pthread_lc_r=yes
13633 echo "configure: failed program was:" >&5
13634 cat conftest.$ac_ext >&5
13636 ol_cv_pthread_lc_r=no
13640 cat > conftest.$ac_ext <<EOF
13641 #line 13642 "configure"
13642 #include "confdefs.h"
13643 /* pthread test headers */
13644 #include <pthread.h>
13645 #if HAVE_PTHREADS < 7
13649 #define NULL (void*)0
13652 static void *task(p)
13655 return (void *) (p == NULL);
13659 int main(argc, argv)
13664 /* pthread test function */
13665 #ifndef PTHREAD_CREATE_DETACHED
13666 #define PTHREAD_CREATE_DETACHED 1
13670 int detach = PTHREAD_CREATE_DETACHED;
13672 #if HAVE_PTHREADS > 4
13673 /* Final pthreads */
13674 pthread_attr_t attr;
13676 status = pthread_attr_init(&attr);
13677 if( status ) return status;
13679 #if HAVE_PTHREADS < 7
13680 status = pthread_attr_setdetachstate(&attr, &detach);
13681 if( status < 0 ) status = errno;
13683 status = pthread_attr_setdetachstate(&attr, detach);
13685 if( status ) return status;
13686 status = pthread_create( &t, &attr, task, NULL );
13687 #if HAVE_PTHREADS < 7
13688 if( status < 0 ) status = errno;
13690 if( status ) return status;
13692 /* Draft 4 pthreads */
13693 status = pthread_create( &t, pthread_attr_default, task, NULL );
13694 if( status ) return errno;
13696 /* give thread a chance to complete */
13697 /* it should remain joinable and hence detachable */
13700 status = pthread_detach( &t );
13701 if( status ) return errno;
13704 #ifdef HAVE_LINUX_THREADS
13705 pthread_kill_other_threads_np();
13713 if { (eval echo configure:13714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13715 ol_cv_pthread_lc_r=yes
13717 echo "configure: failed program was:" >&5
13718 cat conftest.$ac_ext >&5
13720 ol_cv_pthread_lc_r=no
13731 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
13733 if test $ol_cv_pthread_lc_r = yes ; then
13734 ol_link_pthreads="-lc_r"
13735 ol_link_threads=posix
13740 # Pthread try link: -threads (ol_cv_pthread_threads)
13741 if test "$ol_link_threads" = no ; then
13743 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
13744 echo "configure:13745: checking for pthread link with -threads" >&5
13745 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
13746 echo $ac_n "(cached) $ac_c" 1>&6
13751 LIBS="-threads $LIBS"
13753 if test "$cross_compiling" = yes; then
13754 cat > conftest.$ac_ext <<EOF
13755 #line 13756 "configure"
13756 #include "confdefs.h"
13757 /* pthread test headers */
13758 #include <pthread.h>
13759 #if HAVE_PTHREADS < 7
13763 #define NULL (void*)0
13766 static void *task(p)
13769 return (void *) (p == NULL);
13774 /* pthread test function */
13775 #ifndef PTHREAD_CREATE_DETACHED
13776 #define PTHREAD_CREATE_DETACHED 1
13780 int detach = PTHREAD_CREATE_DETACHED;
13782 #if HAVE_PTHREADS > 4
13783 /* Final pthreads */
13784 pthread_attr_t attr;
13786 status = pthread_attr_init(&attr);
13787 if( status ) return status;
13789 #if HAVE_PTHREADS < 7
13790 status = pthread_attr_setdetachstate(&attr, &detach);
13791 if( status < 0 ) status = errno;
13793 status = pthread_attr_setdetachstate(&attr, detach);
13795 if( status ) return status;
13796 status = pthread_create( &t, &attr, task, NULL );
13797 #if HAVE_PTHREADS < 7
13798 if( status < 0 ) status = errno;
13800 if( status ) return status;
13802 /* Draft 4 pthreads */
13803 status = pthread_create( &t, pthread_attr_default, task, NULL );
13804 if( status ) return errno;
13806 /* give thread a chance to complete */
13807 /* it should remain joinable and hence detachable */
13810 status = pthread_detach( &t );
13811 if( status ) return errno;
13814 #ifdef HAVE_LINUX_THREADS
13815 pthread_kill_other_threads_np();
13822 if { (eval echo configure:13823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13824 ol_cv_pthread_threads=yes
13826 echo "configure: failed program was:" >&5
13827 cat conftest.$ac_ext >&5
13829 ol_cv_pthread_threads=no
13833 cat > conftest.$ac_ext <<EOF
13834 #line 13835 "configure"
13835 #include "confdefs.h"
13836 /* pthread test headers */
13837 #include <pthread.h>
13838 #if HAVE_PTHREADS < 7
13842 #define NULL (void*)0
13845 static void *task(p)
13848 return (void *) (p == NULL);
13852 int main(argc, argv)
13857 /* pthread test function */
13858 #ifndef PTHREAD_CREATE_DETACHED
13859 #define PTHREAD_CREATE_DETACHED 1
13863 int detach = PTHREAD_CREATE_DETACHED;
13865 #if HAVE_PTHREADS > 4
13866 /* Final pthreads */
13867 pthread_attr_t attr;
13869 status = pthread_attr_init(&attr);
13870 if( status ) return status;
13872 #if HAVE_PTHREADS < 7
13873 status = pthread_attr_setdetachstate(&attr, &detach);
13874 if( status < 0 ) status = errno;
13876 status = pthread_attr_setdetachstate(&attr, detach);
13878 if( status ) return status;
13879 status = pthread_create( &t, &attr, task, NULL );
13880 #if HAVE_PTHREADS < 7
13881 if( status < 0 ) status = errno;
13883 if( status ) return status;
13885 /* Draft 4 pthreads */
13886 status = pthread_create( &t, pthread_attr_default, task, NULL );
13887 if( status ) return errno;
13889 /* give thread a chance to complete */
13890 /* it should remain joinable and hence detachable */
13893 status = pthread_detach( &t );
13894 if( status ) return errno;
13897 #ifdef HAVE_LINUX_THREADS
13898 pthread_kill_other_threads_np();
13906 if { (eval echo configure:13907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13908 ol_cv_pthread_threads=yes
13910 echo "configure: failed program was:" >&5
13911 cat conftest.$ac_ext >&5
13913 ol_cv_pthread_threads=no
13924 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
13926 if test $ol_cv_pthread_threads = yes ; then
13927 ol_link_pthreads="-threads"
13928 ol_link_threads=posix
13933 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
13934 if test "$ol_link_threads" = no ; then
13935 # try -lpthreads -lmach -lexc -lc_r
13936 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
13937 echo "configure:13938: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
13938 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
13939 echo $ac_n "(cached) $ac_c" 1>&6
13944 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
13946 if test "$cross_compiling" = yes; then
13947 cat > conftest.$ac_ext <<EOF
13948 #line 13949 "configure"
13949 #include "confdefs.h"
13950 /* pthread test headers */
13951 #include <pthread.h>
13952 #if HAVE_PTHREADS < 7
13956 #define NULL (void*)0
13959 static void *task(p)
13962 return (void *) (p == NULL);
13967 /* pthread test function */
13968 #ifndef PTHREAD_CREATE_DETACHED
13969 #define PTHREAD_CREATE_DETACHED 1
13973 int detach = PTHREAD_CREATE_DETACHED;
13975 #if HAVE_PTHREADS > 4
13976 /* Final pthreads */
13977 pthread_attr_t attr;
13979 status = pthread_attr_init(&attr);
13980 if( status ) return status;
13982 #if HAVE_PTHREADS < 7
13983 status = pthread_attr_setdetachstate(&attr, &detach);
13984 if( status < 0 ) status = errno;
13986 status = pthread_attr_setdetachstate(&attr, detach);
13988 if( status ) return status;
13989 status = pthread_create( &t, &attr, task, NULL );
13990 #if HAVE_PTHREADS < 7
13991 if( status < 0 ) status = errno;
13993 if( status ) return status;
13995 /* Draft 4 pthreads */
13996 status = pthread_create( &t, pthread_attr_default, task, NULL );
13997 if( status ) return errno;
13999 /* give thread a chance to complete */
14000 /* it should remain joinable and hence detachable */
14003 status = pthread_detach( &t );
14004 if( status ) return errno;
14007 #ifdef HAVE_LINUX_THREADS
14008 pthread_kill_other_threads_np();
14015 if { (eval echo configure:14016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14017 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
14019 echo "configure: failed program was:" >&5
14020 cat conftest.$ac_ext >&5
14022 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
14026 cat > conftest.$ac_ext <<EOF
14027 #line 14028 "configure"
14028 #include "confdefs.h"
14029 /* pthread test headers */
14030 #include <pthread.h>
14031 #if HAVE_PTHREADS < 7
14035 #define NULL (void*)0
14038 static void *task(p)
14041 return (void *) (p == NULL);
14045 int main(argc, argv)
14050 /* pthread test function */
14051 #ifndef PTHREAD_CREATE_DETACHED
14052 #define PTHREAD_CREATE_DETACHED 1
14056 int detach = PTHREAD_CREATE_DETACHED;
14058 #if HAVE_PTHREADS > 4
14059 /* Final pthreads */
14060 pthread_attr_t attr;
14062 status = pthread_attr_init(&attr);
14063 if( status ) return status;
14065 #if HAVE_PTHREADS < 7
14066 status = pthread_attr_setdetachstate(&attr, &detach);
14067 if( status < 0 ) status = errno;
14069 status = pthread_attr_setdetachstate(&attr, detach);
14071 if( status ) return status;
14072 status = pthread_create( &t, &attr, task, NULL );
14073 #if HAVE_PTHREADS < 7
14074 if( status < 0 ) status = errno;
14076 if( status ) return status;
14078 /* Draft 4 pthreads */
14079 status = pthread_create( &t, pthread_attr_default, task, NULL );
14080 if( status ) return errno;
14082 /* give thread a chance to complete */
14083 /* it should remain joinable and hence detachable */
14086 status = pthread_detach( &t );
14087 if( status ) return errno;
14090 #ifdef HAVE_LINUX_THREADS
14091 pthread_kill_other_threads_np();
14099 if { (eval echo configure:14100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14101 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
14103 echo "configure: failed program was:" >&5
14104 cat conftest.$ac_ext >&5
14106 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
14117 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
14119 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
14120 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
14121 ol_link_threads=posix
14125 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
14126 if test "$ol_link_threads" = no ; then
14127 # try -lpthreads -lmach -lexc
14128 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
14129 echo "configure:14130: checking for pthread link with -lpthreads -lmach -lexc" >&5
14130 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
14131 echo $ac_n "(cached) $ac_c" 1>&6
14136 LIBS="-lpthreads -lmach -lexc $LIBS"
14138 if test "$cross_compiling" = yes; then
14139 cat > conftest.$ac_ext <<EOF
14140 #line 14141 "configure"
14141 #include "confdefs.h"
14142 /* pthread test headers */
14143 #include <pthread.h>
14144 #if HAVE_PTHREADS < 7
14148 #define NULL (void*)0
14151 static void *task(p)
14154 return (void *) (p == NULL);
14159 /* pthread test function */
14160 #ifndef PTHREAD_CREATE_DETACHED
14161 #define PTHREAD_CREATE_DETACHED 1
14165 int detach = PTHREAD_CREATE_DETACHED;
14167 #if HAVE_PTHREADS > 4
14168 /* Final pthreads */
14169 pthread_attr_t attr;
14171 status = pthread_attr_init(&attr);
14172 if( status ) return status;
14174 #if HAVE_PTHREADS < 7
14175 status = pthread_attr_setdetachstate(&attr, &detach);
14176 if( status < 0 ) status = errno;
14178 status = pthread_attr_setdetachstate(&attr, detach);
14180 if( status ) return status;
14181 status = pthread_create( &t, &attr, task, NULL );
14182 #if HAVE_PTHREADS < 7
14183 if( status < 0 ) status = errno;
14185 if( status ) return status;
14187 /* Draft 4 pthreads */
14188 status = pthread_create( &t, pthread_attr_default, task, NULL );
14189 if( status ) return errno;
14191 /* give thread a chance to complete */
14192 /* it should remain joinable and hence detachable */
14195 status = pthread_detach( &t );
14196 if( status ) return errno;
14199 #ifdef HAVE_LINUX_THREADS
14200 pthread_kill_other_threads_np();
14207 if { (eval echo configure:14208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14209 ol_cv_pthread_lpthreads_lmach_lexc=yes
14211 echo "configure: failed program was:" >&5
14212 cat conftest.$ac_ext >&5
14214 ol_cv_pthread_lpthreads_lmach_lexc=no
14218 cat > conftest.$ac_ext <<EOF
14219 #line 14220 "configure"
14220 #include "confdefs.h"
14221 /* pthread test headers */
14222 #include <pthread.h>
14223 #if HAVE_PTHREADS < 7
14227 #define NULL (void*)0
14230 static void *task(p)
14233 return (void *) (p == NULL);
14237 int main(argc, argv)
14242 /* pthread test function */
14243 #ifndef PTHREAD_CREATE_DETACHED
14244 #define PTHREAD_CREATE_DETACHED 1
14248 int detach = PTHREAD_CREATE_DETACHED;
14250 #if HAVE_PTHREADS > 4
14251 /* Final pthreads */
14252 pthread_attr_t attr;
14254 status = pthread_attr_init(&attr);
14255 if( status ) return status;
14257 #if HAVE_PTHREADS < 7
14258 status = pthread_attr_setdetachstate(&attr, &detach);
14259 if( status < 0 ) status = errno;
14261 status = pthread_attr_setdetachstate(&attr, detach);
14263 if( status ) return status;
14264 status = pthread_create( &t, &attr, task, NULL );
14265 #if HAVE_PTHREADS < 7
14266 if( status < 0 ) status = errno;
14268 if( status ) return status;
14270 /* Draft 4 pthreads */
14271 status = pthread_create( &t, pthread_attr_default, task, NULL );
14272 if( status ) return errno;
14274 /* give thread a chance to complete */
14275 /* it should remain joinable and hence detachable */
14278 status = pthread_detach( &t );
14279 if( status ) return errno;
14282 #ifdef HAVE_LINUX_THREADS
14283 pthread_kill_other_threads_np();
14291 if { (eval echo configure:14292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14293 ol_cv_pthread_lpthreads_lmach_lexc=yes
14295 echo "configure: failed program was:" >&5
14296 cat conftest.$ac_ext >&5
14298 ol_cv_pthread_lpthreads_lmach_lexc=no
14309 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
14311 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
14312 ol_link_pthreads="-lpthreads -lmach -lexc"
14313 ol_link_threads=posix
14317 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
14318 if test "$ol_link_threads" = no ; then
14319 # try -lpthreads -lexc
14320 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
14321 echo "configure:14322: checking for pthread link with -lpthreads -lexc" >&5
14322 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
14323 echo $ac_n "(cached) $ac_c" 1>&6
14328 LIBS="-lpthreads -lexc $LIBS"
14330 if test "$cross_compiling" = yes; then
14331 cat > conftest.$ac_ext <<EOF
14332 #line 14333 "configure"
14333 #include "confdefs.h"
14334 /* pthread test headers */
14335 #include <pthread.h>
14336 #if HAVE_PTHREADS < 7
14340 #define NULL (void*)0
14343 static void *task(p)
14346 return (void *) (p == NULL);
14351 /* pthread test function */
14352 #ifndef PTHREAD_CREATE_DETACHED
14353 #define PTHREAD_CREATE_DETACHED 1
14357 int detach = PTHREAD_CREATE_DETACHED;
14359 #if HAVE_PTHREADS > 4
14360 /* Final pthreads */
14361 pthread_attr_t attr;
14363 status = pthread_attr_init(&attr);
14364 if( status ) return status;
14366 #if HAVE_PTHREADS < 7
14367 status = pthread_attr_setdetachstate(&attr, &detach);
14368 if( status < 0 ) status = errno;
14370 status = pthread_attr_setdetachstate(&attr, detach);
14372 if( status ) return status;
14373 status = pthread_create( &t, &attr, task, NULL );
14374 #if HAVE_PTHREADS < 7
14375 if( status < 0 ) status = errno;
14377 if( status ) return status;
14379 /* Draft 4 pthreads */
14380 status = pthread_create( &t, pthread_attr_default, task, NULL );
14381 if( status ) return errno;
14383 /* give thread a chance to complete */
14384 /* it should remain joinable and hence detachable */
14387 status = pthread_detach( &t );
14388 if( status ) return errno;
14391 #ifdef HAVE_LINUX_THREADS
14392 pthread_kill_other_threads_np();
14399 if { (eval echo configure:14400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14401 ol_cv_pthread_lpthreads_lexc=yes
14403 echo "configure: failed program was:" >&5
14404 cat conftest.$ac_ext >&5
14406 ol_cv_pthread_lpthreads_lexc=no
14410 cat > conftest.$ac_ext <<EOF
14411 #line 14412 "configure"
14412 #include "confdefs.h"
14413 /* pthread test headers */
14414 #include <pthread.h>
14415 #if HAVE_PTHREADS < 7
14419 #define NULL (void*)0
14422 static void *task(p)
14425 return (void *) (p == NULL);
14429 int main(argc, argv)
14434 /* pthread test function */
14435 #ifndef PTHREAD_CREATE_DETACHED
14436 #define PTHREAD_CREATE_DETACHED 1
14440 int detach = PTHREAD_CREATE_DETACHED;
14442 #if HAVE_PTHREADS > 4
14443 /* Final pthreads */
14444 pthread_attr_t attr;
14446 status = pthread_attr_init(&attr);
14447 if( status ) return status;
14449 #if HAVE_PTHREADS < 7
14450 status = pthread_attr_setdetachstate(&attr, &detach);
14451 if( status < 0 ) status = errno;
14453 status = pthread_attr_setdetachstate(&attr, detach);
14455 if( status ) return status;
14456 status = pthread_create( &t, &attr, task, NULL );
14457 #if HAVE_PTHREADS < 7
14458 if( status < 0 ) status = errno;
14460 if( status ) return status;
14462 /* Draft 4 pthreads */
14463 status = pthread_create( &t, pthread_attr_default, task, NULL );
14464 if( status ) return errno;
14466 /* give thread a chance to complete */
14467 /* it should remain joinable and hence detachable */
14470 status = pthread_detach( &t );
14471 if( status ) return errno;
14474 #ifdef HAVE_LINUX_THREADS
14475 pthread_kill_other_threads_np();
14483 if { (eval echo configure:14484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14485 ol_cv_pthread_lpthreads_lexc=yes
14487 echo "configure: failed program was:" >&5
14488 cat conftest.$ac_ext >&5
14490 ol_cv_pthread_lpthreads_lexc=no
14501 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
14503 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
14504 ol_link_pthreads="-lpthreads -lexc"
14505 ol_link_threads=posix
14510 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
14511 if test "$ol_link_threads" = no ; then
14513 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
14514 echo "configure:14515: checking for pthread link with -lpthreads" >&5
14515 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
14516 echo $ac_n "(cached) $ac_c" 1>&6
14521 LIBS="-lpthreads $LIBS"
14523 if test "$cross_compiling" = yes; then
14524 cat > conftest.$ac_ext <<EOF
14525 #line 14526 "configure"
14526 #include "confdefs.h"
14527 /* pthread test headers */
14528 #include <pthread.h>
14529 #if HAVE_PTHREADS < 7
14533 #define NULL (void*)0
14536 static void *task(p)
14539 return (void *) (p == NULL);
14544 /* pthread test function */
14545 #ifndef PTHREAD_CREATE_DETACHED
14546 #define PTHREAD_CREATE_DETACHED 1
14550 int detach = PTHREAD_CREATE_DETACHED;
14552 #if HAVE_PTHREADS > 4
14553 /* Final pthreads */
14554 pthread_attr_t attr;
14556 status = pthread_attr_init(&attr);
14557 if( status ) return status;
14559 #if HAVE_PTHREADS < 7
14560 status = pthread_attr_setdetachstate(&attr, &detach);
14561 if( status < 0 ) status = errno;
14563 status = pthread_attr_setdetachstate(&attr, detach);
14565 if( status ) return status;
14566 status = pthread_create( &t, &attr, task, NULL );
14567 #if HAVE_PTHREADS < 7
14568 if( status < 0 ) status = errno;
14570 if( status ) return status;
14572 /* Draft 4 pthreads */
14573 status = pthread_create( &t, pthread_attr_default, task, NULL );
14574 if( status ) return errno;
14576 /* give thread a chance to complete */
14577 /* it should remain joinable and hence detachable */
14580 status = pthread_detach( &t );
14581 if( status ) return errno;
14584 #ifdef HAVE_LINUX_THREADS
14585 pthread_kill_other_threads_np();
14592 if { (eval echo configure:14593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14594 ol_cv_pthread_lib_lpthreads=yes
14596 echo "configure: failed program was:" >&5
14597 cat conftest.$ac_ext >&5
14599 ol_cv_pthread_lib_lpthreads=no
14603 cat > conftest.$ac_ext <<EOF
14604 #line 14605 "configure"
14605 #include "confdefs.h"
14606 /* pthread test headers */
14607 #include <pthread.h>
14608 #if HAVE_PTHREADS < 7
14612 #define NULL (void*)0
14615 static void *task(p)
14618 return (void *) (p == NULL);
14622 int main(argc, argv)
14627 /* pthread test function */
14628 #ifndef PTHREAD_CREATE_DETACHED
14629 #define PTHREAD_CREATE_DETACHED 1
14633 int detach = PTHREAD_CREATE_DETACHED;
14635 #if HAVE_PTHREADS > 4
14636 /* Final pthreads */
14637 pthread_attr_t attr;
14639 status = pthread_attr_init(&attr);
14640 if( status ) return status;
14642 #if HAVE_PTHREADS < 7
14643 status = pthread_attr_setdetachstate(&attr, &detach);
14644 if( status < 0 ) status = errno;
14646 status = pthread_attr_setdetachstate(&attr, detach);
14648 if( status ) return status;
14649 status = pthread_create( &t, &attr, task, NULL );
14650 #if HAVE_PTHREADS < 7
14651 if( status < 0 ) status = errno;
14653 if( status ) return status;
14655 /* Draft 4 pthreads */
14656 status = pthread_create( &t, pthread_attr_default, task, NULL );
14657 if( status ) return errno;
14659 /* give thread a chance to complete */
14660 /* it should remain joinable and hence detachable */
14663 status = pthread_detach( &t );
14664 if( status ) return errno;
14667 #ifdef HAVE_LINUX_THREADS
14668 pthread_kill_other_threads_np();
14676 if { (eval echo configure:14677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14678 ol_cv_pthread_lib_lpthreads=yes
14680 echo "configure: failed program was:" >&5
14681 cat conftest.$ac_ext >&5
14683 ol_cv_pthread_lib_lpthreads=no
14694 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
14696 if test $ol_cv_pthread_lib_lpthreads = yes ; then
14697 ol_link_pthreads="-lpthreads"
14698 ol_link_threads=posix
14703 if test $ol_link_threads != no ; then
14704 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
14706 save_CPPFLAGS="$CPPFLAGS"
14708 LIBS="$LTHREAD_LIBS $LIBS"
14710 for ac_func in sched_yield pthread_yield thr_yield
14712 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14713 echo "configure:14714: checking for $ac_func" >&5
14714 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14715 echo $ac_n "(cached) $ac_c" 1>&6
14717 cat > conftest.$ac_ext <<EOF
14718 #line 14719 "configure"
14719 #include "confdefs.h"
14720 /* System header to define __stub macros and hopefully few prototypes,
14721 which can conflict with char $ac_func(); below. */
14722 #include <assert.h>
14723 /* Override any gcc2 internal prototype to avoid an error. */
14724 /* We use char because int might match the return type of a gcc2
14725 builtin and then its argument prototype would still apply. */
14731 /* The GNU C library defines this for functions which it implements
14732 to always fail with ENOSYS. Some functions are actually named
14733 something starting with __ and the normal name is an alias. */
14734 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14742 if { (eval echo configure:14743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14744 eval "ac_cv_func_$ac_func=yes"
14746 echo "configure: failed program was:" >&5
14747 cat conftest.$ac_ext >&5
14749 eval "ac_cv_func_$ac_func=no"
14754 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14755 echo "$ac_t""yes" 1>&6
14756 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14757 cat >> confdefs.h <<EOF
14758 #define $ac_tr_func 1
14762 echo "$ac_t""no" 1>&6
14767 if test $ac_cv_func_sched_yield = no -a \
14768 $ac_cv_func_pthread_yield = no -a \
14769 $ac_cv_func_thr_yield = no ; then
14770 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
14771 echo "configure:14772: checking for sched_yield in -lrt" >&5
14772 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
14773 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14774 echo $ac_n "(cached) $ac_c" 1>&6
14776 ac_save_LIBS="$LIBS"
14778 cat > conftest.$ac_ext <<EOF
14779 #line 14780 "configure"
14780 #include "confdefs.h"
14781 /* Override any gcc2 internal prototype to avoid an error. */
14782 /* We use char because int might match the return type of a gcc2
14783 builtin and then its argument prototype would still apply. */
14784 char sched_yield();
14790 if { (eval echo configure:14791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14792 eval "ac_cv_lib_$ac_lib_var=yes"
14794 echo "configure: failed program was:" >&5
14795 cat conftest.$ac_ext >&5
14797 eval "ac_cv_lib_$ac_lib_var=no"
14800 LIBS="$ac_save_LIBS"
14803 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14804 echo "$ac_t""yes" 1>&6
14805 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
14806 cat >> confdefs.h <<\EOF
14807 #define HAVE_SCHED_YIELD 1
14810 ac_cv_func_sched_yield=yes
14812 echo "$ac_t""no" 1>&6
14813 ac_cv_func_sched_yield=no
14817 if test $ac_cv_func_sched_yield = no -a \
14818 $ac_cv_func_pthread_yield = no -a \
14819 "$ac_cv_func_thr_yield" = no ; then
14820 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
14823 for ac_func in pthread_kill pthread_rwlock_destroy
14825 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14826 echo "configure:14827: checking for $ac_func" >&5
14827 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14828 echo $ac_n "(cached) $ac_c" 1>&6
14830 cat > conftest.$ac_ext <<EOF
14831 #line 14832 "configure"
14832 #include "confdefs.h"
14833 /* System header to define __stub macros and hopefully few prototypes,
14834 which can conflict with char $ac_func(); below. */
14835 #include <assert.h>
14836 /* Override any gcc2 internal prototype to avoid an error. */
14837 /* We use char because int might match the return type of a gcc2
14838 builtin and then its argument prototype would still apply. */
14844 /* The GNU C library defines this for functions which it implements
14845 to always fail with ENOSYS. Some functions are actually named
14846 something starting with __ and the normal name is an alias. */
14847 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14855 if { (eval echo configure:14856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14857 eval "ac_cv_func_$ac_func=yes"
14859 echo "configure: failed program was:" >&5
14860 cat conftest.$ac_ext >&5
14862 eval "ac_cv_func_$ac_func=no"
14867 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14868 echo "$ac_t""yes" 1>&6
14869 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14870 cat >> confdefs.h <<EOF
14871 #define $ac_tr_func 1
14875 echo "$ac_t""no" 1>&6
14880 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
14881 echo "configure:14882: checking for pthread_detach with <pthread.h>" >&5
14882 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
14883 echo $ac_n "(cached) $ac_c" 1>&6
14886 cat > conftest.$ac_ext <<EOF
14887 #line 14888 "configure"
14888 #include "confdefs.h"
14890 #include <pthread.h>
14892 #define NULL (void*)0
14896 pthread_detach(NULL);
14899 if { (eval echo configure:14900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14901 ol_cv_func_pthread_detach=yes
14903 echo "configure: failed program was:" >&5
14904 cat conftest.$ac_ext >&5
14906 ol_cv_func_pthread_detach=no
14912 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
14914 if test $ol_cv_func_pthread_detach = no ; then
14915 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
14918 cat >> confdefs.h <<\EOF
14919 #define HAVE_PTHREAD_DETACH 1
14924 pthread_setconcurrency \
14925 pthread_getconcurrency \
14926 thr_setconcurrency \
14927 thr_getconcurrency \
14930 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14931 echo "configure:14932: checking for $ac_func" >&5
14932 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14933 echo $ac_n "(cached) $ac_c" 1>&6
14935 cat > conftest.$ac_ext <<EOF
14936 #line 14937 "configure"
14937 #include "confdefs.h"
14938 /* System header to define __stub macros and hopefully few prototypes,
14939 which can conflict with char $ac_func(); below. */
14940 #include <assert.h>
14941 /* Override any gcc2 internal prototype to avoid an error. */
14942 /* We use char because int might match the return type of a gcc2
14943 builtin and then its argument prototype would still apply. */
14949 /* The GNU C library defines this for functions which it implements
14950 to always fail with ENOSYS. Some functions are actually named
14951 something starting with __ and the normal name is an alias. */
14952 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14960 if { (eval echo configure:14961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14962 eval "ac_cv_func_$ac_func=yes"
14964 echo "configure: failed program was:" >&5
14965 cat conftest.$ac_ext >&5
14967 eval "ac_cv_func_$ac_func=no"
14972 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14973 echo "$ac_t""yes" 1>&6
14974 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14975 cat >> confdefs.h <<EOF
14976 #define $ac_tr_func 1
14980 echo "$ac_t""no" 1>&6
14986 for ac_func in pthread_kill_other_threads_np
14988 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14989 echo "configure:14990: checking for $ac_func" >&5
14990 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14991 echo $ac_n "(cached) $ac_c" 1>&6
14993 cat > conftest.$ac_ext <<EOF
14994 #line 14995 "configure"
14995 #include "confdefs.h"
14996 /* System header to define __stub macros and hopefully few prototypes,
14997 which can conflict with char $ac_func(); below. */
14998 #include <assert.h>
14999 /* Override any gcc2 internal prototype to avoid an error. */
15000 /* We use char because int might match the return type of a gcc2
15001 builtin and then its argument prototype would still apply. */
15007 /* The GNU C library defines this for functions which it implements
15008 to always fail with ENOSYS. Some functions are actually named
15009 something starting with __ and the normal name is an alias. */
15010 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15018 if { (eval echo configure:15019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15020 eval "ac_cv_func_$ac_func=yes"
15022 echo "configure: failed program was:" >&5
15023 cat conftest.$ac_ext >&5
15025 eval "ac_cv_func_$ac_func=no"
15030 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15031 echo "$ac_t""yes" 1>&6
15032 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15033 cat >> confdefs.h <<EOF
15034 #define $ac_tr_func 1
15038 echo "$ac_t""no" 1>&6
15042 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
15043 echo "configure:15044: checking for LinuxThreads implementation" >&5
15044 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
15045 echo $ac_n "(cached) $ac_c" 1>&6
15047 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
15050 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
15055 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
15056 echo "configure:15057: checking for LinuxThreads consistency" >&5
15057 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
15058 echo $ac_n "(cached) $ac_c" 1>&6
15061 if test $ol_cv_header_linux_threads = yes -a \
15062 $ol_cv_sys_linux_threads = yes; then
15063 ol_cv_linux_threads=yes
15064 elif test $ol_cv_header_linux_threads = no -a \
15065 $ol_cv_sys_linux_threads = no; then
15066 ol_cv_linux_threads=no
15068 ol_cv_linux_threads=error
15073 echo "$ac_t""$ol_cv_linux_threads" 1>&6
15076 if test $ol_cv_linux_threads = error; then
15077 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
15080 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
15081 echo "configure:15082: checking if pthread_create() works" >&5
15082 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
15083 echo $ac_n "(cached) $ac_c" 1>&6
15086 if test "$cross_compiling" = yes; then
15087 ol_cv_pthread_create_works=yes
15089 cat > conftest.$ac_ext <<EOF
15090 #line 15091 "configure"
15091 #include "confdefs.h"
15092 /* pthread test headers */
15093 #include <pthread.h>
15094 #if HAVE_PTHREADS < 7
15098 #define NULL (void*)0
15101 static void *task(p)
15104 return (void *) (p == NULL);
15108 int main(argc, argv)
15113 /* pthread test function */
15114 #ifndef PTHREAD_CREATE_DETACHED
15115 #define PTHREAD_CREATE_DETACHED 1
15119 int detach = PTHREAD_CREATE_DETACHED;
15121 #if HAVE_PTHREADS > 4
15122 /* Final pthreads */
15123 pthread_attr_t attr;
15125 status = pthread_attr_init(&attr);
15126 if( status ) return status;
15128 #if HAVE_PTHREADS < 7
15129 status = pthread_attr_setdetachstate(&attr, &detach);
15130 if( status < 0 ) status = errno;
15132 status = pthread_attr_setdetachstate(&attr, detach);
15134 if( status ) return status;
15135 status = pthread_create( &t, &attr, task, NULL );
15136 #if HAVE_PTHREADS < 7
15137 if( status < 0 ) status = errno;
15139 if( status ) return status;
15141 /* Draft 4 pthreads */
15142 status = pthread_create( &t, pthread_attr_default, task, NULL );
15143 if( status ) return errno;
15145 /* give thread a chance to complete */
15146 /* it should remain joinable and hence detachable */
15149 status = pthread_detach( &t );
15150 if( status ) return errno;
15153 #ifdef HAVE_LINUX_THREADS
15154 pthread_kill_other_threads_np();
15162 if { (eval echo configure:15163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15164 ol_cv_pthread_create_works=yes
15166 echo "configure: failed program was:" >&5
15167 cat conftest.$ac_ext >&5
15169 ol_cv_pthread_create_works=no
15176 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
15178 if test $ol_cv_pthread_create_works = no ; then
15179 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
15182 if test $ol_with_yielding_select = auto ; then
15183 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
15184 echo "configure:15185: checking if select yields when using pthreads" >&5
15185 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
15186 echo $ac_n "(cached) $ac_c" 1>&6
15189 if test "$cross_compiling" = yes; then
15190 ol_cv_pthread_select_yields=cross
15192 cat > conftest.$ac_ext <<EOF
15193 #line 15194 "configure"
15194 #include "confdefs.h"
15196 #include <sys/types.h>
15197 #include <sys/time.h>
15198 #include <unistd.h>
15199 #include <pthread.h>
15201 #define NULL (void*) 0
15204 static int fildes[2];
15206 static void *task(p)
15218 FD_SET(fildes[0], &rfds);
15220 /* we're not interested in any fds */
15221 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
15228 exit(0); /* if we exit here, the select blocked the whole process */
15231 int main(argc, argv)
15237 /* create a pipe to select */
15238 if(pipe(&fildes[0])) {
15243 #ifdef HAVE_PTHREAD_SETCONCURRENCY
15244 (void) pthread_setconcurrency(2);
15246 #ifdef HAVE_THR_SETCONCURRENCY
15247 /* Set Solaris LWP concurrency to 2 */
15248 thr_setconcurrency(2);
15252 #if HAVE_PTHREADS < 6
15253 pthread_create(&t, pthread_attr_default, task, NULL);
15255 pthread_create(&t, NULL, task, NULL);
15258 /* make sure task runs first */
15261 #elif defined( HAVE_SCHED_YIELD )
15263 #elif defined( HAVE_PTHREAD_YIELD )
15270 if { (eval echo configure:15271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15272 ol_cv_pthread_select_yields=no
15274 echo "configure: failed program was:" >&5
15275 cat conftest.$ac_ext >&5
15277 ol_cv_pthread_select_yields=yes
15284 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
15286 if test $ol_cv_pthread_select_yields = cross ; then
15287 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
15290 if test $ol_cv_pthread_select_yields = yes ; then
15291 ol_with_yielding_select=yes
15295 CPPFLAGS="$save_CPPFLAGS"
15298 { echo "configure: error: could not locate usable POSIX Threads" 1>&2; exit 1; }
15302 if test $ol_with_threads = posix ; then
15303 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
15307 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15308 -o $ol_with_threads = mach ; then
15310 for ac_hdr in mach/cthreads.h cthreads.h
15312 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15313 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15314 echo "configure:15315: checking for $ac_hdr" >&5
15315 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15316 echo $ac_n "(cached) $ac_c" 1>&6
15318 cat > conftest.$ac_ext <<EOF
15319 #line 15320 "configure"
15320 #include "confdefs.h"
15323 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15324 { (eval echo configure:15325: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15325 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15326 if test -z "$ac_err"; then
15328 eval "ac_cv_header_$ac_safe=yes"
15331 echo "configure: failed program was:" >&5
15332 cat conftest.$ac_ext >&5
15334 eval "ac_cv_header_$ac_safe=no"
15338 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15339 echo "$ac_t""yes" 1>&6
15340 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15341 cat >> confdefs.h <<EOF
15342 #define $ac_tr_hdr 1
15346 echo "$ac_t""no" 1>&6
15350 if test $ac_cv_header_mach_cthreads_h = yes ; then
15351 ol_with_threads=found
15353 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
15354 echo "configure:15355: checking for cthread_fork" >&5
15355 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
15356 echo $ac_n "(cached) $ac_c" 1>&6
15358 cat > conftest.$ac_ext <<EOF
15359 #line 15360 "configure"
15360 #include "confdefs.h"
15361 /* System header to define __stub macros and hopefully few prototypes,
15362 which can conflict with char cthread_fork(); below. */
15363 #include <assert.h>
15364 /* Override any gcc2 internal prototype to avoid an error. */
15365 /* We use char because int might match the return type of a gcc2
15366 builtin and then its argument prototype would still apply. */
15367 char cthread_fork();
15372 /* The GNU C library defines this for functions which it implements
15373 to always fail with ENOSYS. Some functions are actually named
15374 something starting with __ and the normal name is an alias. */
15375 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
15383 if { (eval echo configure:15384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15385 eval "ac_cv_func_cthread_fork=yes"
15387 echo "configure: failed program was:" >&5
15388 cat conftest.$ac_ext >&5
15390 eval "ac_cv_func_cthread_fork=no"
15395 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
15396 echo "$ac_t""yes" 1>&6
15397 ol_link_threads=yes
15399 echo "$ac_t""no" 1>&6
15403 if test $ol_link_threads = no ; then
15404 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
15405 echo "configure:15406: checking for cthread_fork with -all_load" >&5
15406 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
15407 echo $ac_n "(cached) $ac_c" 1>&6
15411 LIBS="-all_load $LIBS"
15412 cat > conftest.$ac_ext <<EOF
15413 #line 15414 "configure"
15414 #include "confdefs.h"
15415 #include <mach/cthreads.h>
15418 cthread_fork((void *)0, (void *)0);
15422 if { (eval echo configure:15423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15424 ol_cv_cthread_all_load=yes
15426 echo "configure: failed program was:" >&5
15427 cat conftest.$ac_ext >&5
15429 ol_cv_cthread_all_load=no
15436 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
15438 if test $ol_cv_cthread_all_load = yes ; then
15439 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
15440 ol_link_threads=mach
15441 ol_with_threads=found
15445 elif test $ac_cv_header_cthreads_h = yes ; then
15447 ol_with_threads=found
15450 LIBS="$LIBS -lthreads"
15451 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
15452 echo "configure:15453: checking for cthread_fork" >&5
15453 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
15454 echo $ac_n "(cached) $ac_c" 1>&6
15456 cat > conftest.$ac_ext <<EOF
15457 #line 15458 "configure"
15458 #include "confdefs.h"
15459 /* System header to define __stub macros and hopefully few prototypes,
15460 which can conflict with char cthread_fork(); below. */
15461 #include <assert.h>
15462 /* Override any gcc2 internal prototype to avoid an error. */
15463 /* We use char because int might match the return type of a gcc2
15464 builtin and then its argument prototype would still apply. */
15465 char cthread_fork();
15470 /* The GNU C library defines this for functions which it implements
15471 to always fail with ENOSYS. Some functions are actually named
15472 something starting with __ and the normal name is an alias. */
15473 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
15481 if { (eval echo configure:15482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15483 eval "ac_cv_func_cthread_fork=yes"
15485 echo "configure: failed program was:" >&5
15486 cat conftest.$ac_ext >&5
15488 eval "ac_cv_func_cthread_fork=no"
15493 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
15494 echo "$ac_t""yes" 1>&6
15495 ol_link_threads=yes
15497 echo "$ac_t""no" 1>&6
15502 if test $ol_link_threads = yes ; then
15503 LTHREAD_LIBS="-lthreads"
15504 ol_link_threads=mach
15505 ol_with_threads=found
15507 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
15510 elif test $ol_with_threads = mach ; then
15511 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
15514 if test $ol_link_threads = mach ; then
15515 cat >> confdefs.h <<\EOF
15516 #define HAVE_MACH_CTHREADS 1
15519 elif test $ol_with_threads = found ; then
15520 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
15524 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15525 -o $ol_with_threads = pth ; then
15527 for ac_hdr in pth.h
15529 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15530 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15531 echo "configure:15532: checking for $ac_hdr" >&5
15532 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15533 echo $ac_n "(cached) $ac_c" 1>&6
15535 cat > conftest.$ac_ext <<EOF
15536 #line 15537 "configure"
15537 #include "confdefs.h"
15540 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15541 { (eval echo configure:15542: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15542 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15543 if test -z "$ac_err"; then
15545 eval "ac_cv_header_$ac_safe=yes"
15548 echo "configure: failed program was:" >&5
15549 cat conftest.$ac_ext >&5
15551 eval "ac_cv_header_$ac_safe=no"
15555 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15556 echo "$ac_t""yes" 1>&6
15557 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15558 cat >> confdefs.h <<EOF
15559 #define $ac_tr_hdr 1
15563 echo "$ac_t""no" 1>&6
15568 if test $ac_cv_header_pth_h = yes ; then
15569 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
15570 echo "configure:15571: checking for pth_version in -lpth" >&5
15571 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
15572 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15573 echo $ac_n "(cached) $ac_c" 1>&6
15575 ac_save_LIBS="$LIBS"
15577 cat > conftest.$ac_ext <<EOF
15578 #line 15579 "configure"
15579 #include "confdefs.h"
15580 /* Override any gcc2 internal prototype to avoid an error. */
15581 /* We use char because int might match the return type of a gcc2
15582 builtin and then its argument prototype would still apply. */
15583 char pth_version();
15589 if { (eval echo configure:15590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15591 eval "ac_cv_lib_$ac_lib_var=yes"
15593 echo "configure: failed program was:" >&5
15594 cat conftest.$ac_ext >&5
15596 eval "ac_cv_lib_$ac_lib_var=no"
15599 LIBS="$ac_save_LIBS"
15602 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15603 echo "$ac_t""yes" 1>&6
15606 echo "$ac_t""no" 1>&6
15611 if test $have_pth = yes ; then
15612 cat >> confdefs.h <<\EOF
15613 #define HAVE_GNU_PTH 1
15616 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
15617 ol_link_threads=pth
15618 ol_with_threads=found
15620 if test $ol_with_yielding_select = auto ; then
15621 ol_with_yielding_select=yes
15627 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15628 -o $ol_with_threads = lwp ; then
15630 for ac_hdr in thread.h synch.h
15632 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15633 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15634 echo "configure:15635: checking for $ac_hdr" >&5
15635 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15636 echo $ac_n "(cached) $ac_c" 1>&6
15638 cat > conftest.$ac_ext <<EOF
15639 #line 15640 "configure"
15640 #include "confdefs.h"
15643 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15644 { (eval echo configure:15645: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15645 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15646 if test -z "$ac_err"; then
15648 eval "ac_cv_header_$ac_safe=yes"
15651 echo "configure: failed program was:" >&5
15652 cat conftest.$ac_ext >&5
15654 eval "ac_cv_header_$ac_safe=no"
15658 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15659 echo "$ac_t""yes" 1>&6
15660 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15661 cat >> confdefs.h <<EOF
15662 #define $ac_tr_hdr 1
15666 echo "$ac_t""no" 1>&6
15670 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
15671 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
15672 echo "configure:15673: checking for thr_create in -lthread" >&5
15673 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
15674 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15675 echo $ac_n "(cached) $ac_c" 1>&6
15677 ac_save_LIBS="$LIBS"
15678 LIBS="-lthread $LIBS"
15679 cat > conftest.$ac_ext <<EOF
15680 #line 15681 "configure"
15681 #include "confdefs.h"
15682 /* Override any gcc2 internal prototype to avoid an error. */
15683 /* We use char because int might match the return type of a gcc2
15684 builtin and then its argument prototype would still apply. */
15691 if { (eval echo configure:15692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15693 eval "ac_cv_lib_$ac_lib_var=yes"
15695 echo "configure: failed program was:" >&5
15696 cat conftest.$ac_ext >&5
15698 eval "ac_cv_lib_$ac_lib_var=no"
15701 LIBS="$ac_save_LIBS"
15704 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15705 echo "$ac_t""yes" 1>&6
15708 echo "$ac_t""no" 1>&6
15713 if test $have_thr = yes ; then
15714 cat >> confdefs.h <<\EOF
15718 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
15719 ol_link_threads=thr
15721 if test $ol_with_yielding_select = auto ; then
15722 ol_with_yielding_select=yes
15726 thr_setconcurrency \
15727 thr_getconcurrency \
15730 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15731 echo "configure:15732: checking for $ac_func" >&5
15732 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15733 echo $ac_n "(cached) $ac_c" 1>&6
15735 cat > conftest.$ac_ext <<EOF
15736 #line 15737 "configure"
15737 #include "confdefs.h"
15738 /* System header to define __stub macros and hopefully few prototypes,
15739 which can conflict with char $ac_func(); below. */
15740 #include <assert.h>
15741 /* Override any gcc2 internal prototype to avoid an error. */
15742 /* We use char because int might match the return type of a gcc2
15743 builtin and then its argument prototype would still apply. */
15749 /* The GNU C library defines this for functions which it implements
15750 to always fail with ENOSYS. Some functions are actually named
15751 something starting with __ and the normal name is an alias. */
15752 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15760 if { (eval echo configure:15761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15762 eval "ac_cv_func_$ac_func=yes"
15764 echo "configure: failed program was:" >&5
15765 cat conftest.$ac_ext >&5
15767 eval "ac_cv_func_$ac_func=no"
15772 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15773 echo "$ac_t""yes" 1>&6
15774 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15775 cat >> confdefs.h <<EOF
15776 #define $ac_tr_func 1
15780 echo "$ac_t""no" 1>&6
15787 for ac_hdr in lwp/lwp.h
15789 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15790 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15791 echo "configure:15792: checking for $ac_hdr" >&5
15792 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15793 echo $ac_n "(cached) $ac_c" 1>&6
15795 cat > conftest.$ac_ext <<EOF
15796 #line 15797 "configure"
15797 #include "confdefs.h"
15800 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15801 { (eval echo configure:15802: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15802 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15803 if test -z "$ac_err"; then
15805 eval "ac_cv_header_$ac_safe=yes"
15808 echo "configure: failed program was:" >&5
15809 cat conftest.$ac_ext >&5
15811 eval "ac_cv_header_$ac_safe=no"
15815 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15816 echo "$ac_t""yes" 1>&6
15817 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15818 cat >> confdefs.h <<EOF
15819 #define $ac_tr_hdr 1
15823 echo "$ac_t""no" 1>&6
15827 if test $ac_cv_header_lwp_lwp_h = yes ; then
15828 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
15829 echo "configure:15830: checking for lwp_create in -llwp" >&5
15830 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
15831 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15832 echo $ac_n "(cached) $ac_c" 1>&6
15834 ac_save_LIBS="$LIBS"
15836 cat > conftest.$ac_ext <<EOF
15837 #line 15838 "configure"
15838 #include "confdefs.h"
15839 /* Override any gcc2 internal prototype to avoid an error. */
15840 /* We use char because int might match the return type of a gcc2
15841 builtin and then its argument prototype would still apply. */
15848 if { (eval echo configure:15849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15850 eval "ac_cv_lib_$ac_lib_var=yes"
15852 echo "configure: failed program was:" >&5
15853 cat conftest.$ac_ext >&5
15855 eval "ac_cv_lib_$ac_lib_var=no"
15858 LIBS="$ac_save_LIBS"
15861 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15862 echo "$ac_t""yes" 1>&6
15865 echo "$ac_t""no" 1>&6
15870 if test $have_lwp = yes ; then
15871 cat >> confdefs.h <<\EOF
15875 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
15876 ol_link_threads=lwp
15878 if test $ol_with_yielding_select = auto ; then
15879 ol_with_yielding_select=no
15885 if test $ol_with_yielding_select = yes ; then
15886 cat >> confdefs.h <<\EOF
15887 #define HAVE_YIELDING_SELECT 1
15892 if test $ol_with_threads = manual ; then
15893 ol_link_threads=yes
15895 echo "configure: warning: thread defines and link options must be set manually" 1>&2
15897 for ac_hdr in pthread.h sched.h
15899 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15900 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15901 echo "configure:15902: checking for $ac_hdr" >&5
15902 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15903 echo $ac_n "(cached) $ac_c" 1>&6
15905 cat > conftest.$ac_ext <<EOF
15906 #line 15907 "configure"
15907 #include "confdefs.h"
15910 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15911 { (eval echo configure:15912: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15912 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15913 if test -z "$ac_err"; then
15915 eval "ac_cv_header_$ac_safe=yes"
15918 echo "configure: failed program was:" >&5
15919 cat conftest.$ac_ext >&5
15921 eval "ac_cv_header_$ac_safe=no"
15925 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15926 echo "$ac_t""yes" 1>&6
15927 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15928 cat >> confdefs.h <<EOF
15929 #define $ac_tr_hdr 1
15933 echo "$ac_t""no" 1>&6
15937 for ac_func in sched_yield pthread_yield
15939 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15940 echo "configure:15941: checking for $ac_func" >&5
15941 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15942 echo $ac_n "(cached) $ac_c" 1>&6
15944 cat > conftest.$ac_ext <<EOF
15945 #line 15946 "configure"
15946 #include "confdefs.h"
15947 /* System header to define __stub macros and hopefully few prototypes,
15948 which can conflict with char $ac_func(); below. */
15949 #include <assert.h>
15950 /* Override any gcc2 internal prototype to avoid an error. */
15951 /* We use char because int might match the return type of a gcc2
15952 builtin and then its argument prototype would still apply. */
15958 /* The GNU C library defines this for functions which it implements
15959 to always fail with ENOSYS. Some functions are actually named
15960 something starting with __ and the normal name is an alias. */
15961 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15969 if { (eval echo configure:15970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15971 eval "ac_cv_func_$ac_func=yes"
15973 echo "configure: failed program was:" >&5
15974 cat conftest.$ac_ext >&5
15976 eval "ac_cv_func_$ac_func=no"
15981 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15982 echo "$ac_t""yes" 1>&6
15983 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15984 cat >> confdefs.h <<EOF
15985 #define $ac_tr_func 1
15989 echo "$ac_t""no" 1>&6
15994 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
15995 echo "configure:15996: checking for LinuxThreads pthread.h" >&5
15996 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
15997 echo $ac_n "(cached) $ac_c" 1>&6
15999 cat > conftest.$ac_ext <<EOF
16000 #line 16001 "configure"
16001 #include "confdefs.h"
16002 #include <pthread.h>
16004 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16005 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
16007 ol_cv_header_linux_threads=yes
16010 ol_cv_header_linux_threads=no
16017 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
16018 if test $ol_cv_header_linux_threads = yes; then
16019 cat >> confdefs.h <<\EOF
16020 #define HAVE_LINUX_THREADS 1
16026 for ac_hdr in mach/cthreads.h
16028 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16029 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16030 echo "configure:16031: checking for $ac_hdr" >&5
16031 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16032 echo $ac_n "(cached) $ac_c" 1>&6
16034 cat > conftest.$ac_ext <<EOF
16035 #line 16036 "configure"
16036 #include "confdefs.h"
16039 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16040 { (eval echo configure:16041: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16041 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16042 if test -z "$ac_err"; then
16044 eval "ac_cv_header_$ac_safe=yes"
16047 echo "configure: failed program was:" >&5
16048 cat conftest.$ac_ext >&5
16050 eval "ac_cv_header_$ac_safe=no"
16054 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16055 echo "$ac_t""yes" 1>&6
16056 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16057 cat >> confdefs.h <<EOF
16058 #define $ac_tr_hdr 1
16062 echo "$ac_t""no" 1>&6
16066 for ac_hdr in lwp/lwp.h
16068 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16069 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16070 echo "configure:16071: checking for $ac_hdr" >&5
16071 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16072 echo $ac_n "(cached) $ac_c" 1>&6
16074 cat > conftest.$ac_ext <<EOF
16075 #line 16076 "configure"
16076 #include "confdefs.h"
16079 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16080 { (eval echo configure:16081: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16081 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16082 if test -z "$ac_err"; then
16084 eval "ac_cv_header_$ac_safe=yes"
16087 echo "configure: failed program was:" >&5
16088 cat conftest.$ac_ext >&5
16090 eval "ac_cv_header_$ac_safe=no"
16094 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16095 echo "$ac_t""yes" 1>&6
16096 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16097 cat >> confdefs.h <<EOF
16098 #define $ac_tr_hdr 1
16102 echo "$ac_t""no" 1>&6
16106 for ac_hdr in thread.h synch.h
16108 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16109 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16110 echo "configure:16111: checking for $ac_hdr" >&5
16111 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16112 echo $ac_n "(cached) $ac_c" 1>&6
16114 cat > conftest.$ac_ext <<EOF
16115 #line 16116 "configure"
16116 #include "confdefs.h"
16119 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16120 { (eval echo configure:16121: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16121 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16122 if test -z "$ac_err"; then
16124 eval "ac_cv_header_$ac_safe=yes"
16127 echo "configure: failed program was:" >&5
16128 cat conftest.$ac_ext >&5
16130 eval "ac_cv_header_$ac_safe=no"
16134 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16135 echo "$ac_t""yes" 1>&6
16136 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16137 cat >> confdefs.h <<EOF
16138 #define $ac_tr_hdr 1
16142 echo "$ac_t""no" 1>&6
16148 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
16149 cat >> confdefs.h <<\EOF
16150 #define REENTRANT 1
16153 cat >> confdefs.h <<\EOF
16154 #define _REENTRANT 1
16157 cat >> confdefs.h <<\EOF
16158 #define THREAD_SAFE 1
16161 cat >> confdefs.h <<\EOF
16162 #define _THREAD_SAFE 1
16165 cat >> confdefs.h <<\EOF
16166 #define THREADSAFE 1
16169 cat >> confdefs.h <<\EOF
16170 #define _THREADSAFE 1
16173 cat >> confdefs.h <<\EOF
16174 #define _SGI_MP_SOURCE 1
16178 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
16179 echo "configure:16180: checking for thread specific errno" >&5
16180 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
16181 echo $ac_n "(cached) $ac_c" 1>&6
16184 cat > conftest.$ac_ext <<EOF
16185 #line 16186 "configure"
16186 #include "confdefs.h"
16192 if { (eval echo configure:16193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16194 ol_cv_errno_thread_specific=yes
16196 echo "configure: failed program was:" >&5
16197 cat conftest.$ac_ext >&5
16199 ol_cv_errno_thread_specific=no
16205 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
16207 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
16208 echo "configure:16209: checking for thread specific h_errno" >&5
16209 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
16210 echo $ac_n "(cached) $ac_c" 1>&6
16213 cat > conftest.$ac_ext <<EOF
16214 #line 16215 "configure"
16215 #include "confdefs.h"
16221 if { (eval echo configure:16222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16223 ol_cv_h_errno_thread_specific=yes
16225 echo "configure: failed program was:" >&5
16226 cat conftest.$ac_ext >&5
16228 ol_cv_h_errno_thread_specific=no
16234 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
16236 if test $ol_cv_errno_thread_specific != yes \
16237 -o $ol_cv_h_errno_thread_specific != yes ; then
16238 LIBS="$LTHREAD_LIBS $LIBS"
16244 if test $ol_link_threads = no ; then
16245 if test $ol_with_threads = yes ; then
16246 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
16249 if test $ol_with_threads = auto ; then
16250 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
16254 cat >> confdefs.h <<\EOF
16255 #define NO_THREADS 1
16261 if test $ol_link_threads != no ; then
16262 cat >> confdefs.h <<\EOF
16263 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
16270 gethostbyname_r gethostbyaddr_r \
16273 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16274 echo "configure:16275: checking for $ac_func" >&5
16275 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
16276 echo $ac_n "(cached) $ac_c" 1>&6
16278 cat > conftest.$ac_ext <<EOF
16279 #line 16280 "configure"
16280 #include "confdefs.h"
16281 /* System header to define __stub macros and hopefully few prototypes,
16282 which can conflict with char $ac_func(); below. */
16283 #include <assert.h>
16284 /* Override any gcc2 internal prototype to avoid an error. */
16285 /* We use char because int might match the return type of a gcc2
16286 builtin and then its argument prototype would still apply. */
16292 /* The GNU C library defines this for functions which it implements
16293 to always fail with ENOSYS. Some functions are actually named
16294 something starting with __ and the normal name is an alias. */
16295 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16303 if { (eval echo configure:16304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16305 eval "ac_cv_func_$ac_func=yes"
16307 echo "configure: failed program was:" >&5
16308 cat conftest.$ac_ext >&5
16310 eval "ac_cv_func_$ac_func=no"
16315 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16316 echo "$ac_t""yes" 1>&6
16317 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16318 cat >> confdefs.h <<EOF
16319 #define $ac_tr_func 1
16323 echo "$ac_t""no" 1>&6
16328 if test "$ac_cv_func_ctime_r" = no ; then
16329 ol_cv_func_ctime_r_nargs=0
16331 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
16332 echo "configure:16333: checking number of arguments of ctime_r" >&5
16333 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
16334 echo $ac_n "(cached) $ac_c" 1>&6
16336 cat > conftest.$ac_ext <<EOF
16337 #line 16338 "configure"
16338 #include "confdefs.h"
16341 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
16344 if { (eval echo configure:16345: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16346 ol_cv_func_ctime_r_nargs3=yes
16348 echo "configure: failed program was:" >&5
16349 cat conftest.$ac_ext >&5
16351 ol_cv_func_ctime_r_nargs3=no
16355 cat > conftest.$ac_ext <<EOF
16356 #line 16357 "configure"
16357 #include "confdefs.h"
16360 time_t ti; char *buffer; ctime_r(&ti,buffer);
16363 if { (eval echo configure:16364: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16365 ol_cv_func_ctime_r_nargs2=yes
16367 echo "configure: failed program was:" >&5
16368 cat conftest.$ac_ext >&5
16370 ol_cv_func_ctime_r_nargs2=no
16374 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
16375 $ol_cv_func_ctime_r_nargs2 = no ; then
16377 ol_cv_func_ctime_r_nargs=3
16379 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
16380 $ol_cv_func_ctime_r_nargs2 = yes ; then
16382 ol_cv_func_ctime_r_nargs=2
16385 ol_cv_func_ctime_r_nargs=0
16390 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
16392 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
16393 cat >> confdefs.h <<EOF
16394 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
16401 if test "$ac_cv_func_gethostbyname_r" = yes ; then
16402 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
16403 echo "configure:16404: checking number of arguments of gethostbyname_r" >&5
16404 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
16405 echo $ac_n "(cached) $ac_c" 1>&6
16407 cat > conftest.$ac_ext <<EOF
16408 #line 16409 "configure"
16409 #include "confdefs.h"
16410 #include <sys/types.h>
16411 #include <sys/socket.h>
16412 #include <netinet/in.h>
16414 #define BUFSIZE (sizeof(struct hostent)+10)
16416 struct hostent hent; char buffer[BUFSIZE];
16417 int bufsize=BUFSIZE;int h_errno;
16418 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
16419 buffer, bufsize, &h_errno);
16422 if { (eval echo configure:16423: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16424 ol_cv_func_gethostbyname_r_nargs5=yes
16426 echo "configure: failed program was:" >&5
16427 cat conftest.$ac_ext >&5
16429 ol_cv_func_gethostbyname_r_nargs5=no
16433 cat > conftest.$ac_ext <<EOF
16434 #line 16435 "configure"
16435 #include "confdefs.h"
16436 #include <sys/types.h>
16437 #include <sys/socket.h>
16438 #include <netinet/in.h>
16440 #define BUFSIZE (sizeof(struct hostent)+10)
16442 struct hostent hent;struct hostent *rhent;
16443 char buffer[BUFSIZE];
16444 int bufsize=BUFSIZE;int h_errno;
16445 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
16449 if { (eval echo configure:16450: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16451 ol_cv_func_gethostbyname_r_nargs6=yes
16453 echo "configure: failed program was:" >&5
16454 cat conftest.$ac_ext >&5
16456 ol_cv_func_gethostbyname_r_nargs6=no
16460 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
16461 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
16463 ol_cv_func_gethostbyname_r_nargs=5
16465 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
16466 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
16468 ol_cv_func_gethostbyname_r_nargs=6
16471 ol_cv_func_gethostbyname_r_nargs=0
16476 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
16477 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
16478 cat >> confdefs.h <<EOF
16479 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
16485 ol_cv_func_gethostbyname_r_nargs=0
16488 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
16489 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
16490 echo "configure:16491: checking number of arguments of gethostbyaddr_r" >&5
16491 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
16492 echo $ac_n "(cached) $ac_c" 1>&6
16494 cat > conftest.$ac_ext <<EOF
16495 #line 16496 "configure"
16496 #include "confdefs.h"
16497 #include <sys/types.h>
16498 #include <sys/socket.h>
16499 #include <netinet/in.h>
16501 #define BUFSIZE (sizeof(struct hostent)+10)
16503 struct hostent hent; char buffer[BUFSIZE];
16504 struct in_addr add;
16505 size_t alen=sizeof(struct in_addr);
16506 int bufsize=BUFSIZE;int h_errno;
16507 (void)gethostbyaddr_r( (void *)&(add.s_addr),
16508 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
16511 if { (eval echo configure:16512: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16513 ol_cv_func_gethostbyaddr_r_nargs7=yes
16515 echo "configure: failed program was:" >&5
16516 cat conftest.$ac_ext >&5
16518 ol_cv_func_gethostbyaddr_r_nargs7=no
16522 cat > conftest.$ac_ext <<EOF
16523 #line 16524 "configure"
16524 #include "confdefs.h"
16525 #include <sys/types.h>
16526 #include <sys/socket.h>
16527 #include <netinet/in.h>
16529 #define BUFSIZE (sizeof(struct hostent)+10)
16531 struct hostent hent;
16532 struct hostent *rhent; char buffer[BUFSIZE];
16533 struct in_addr add;
16534 size_t alen=sizeof(struct in_addr);
16535 int bufsize=BUFSIZE;int h_errno;
16536 (void)gethostbyaddr_r( (void *)&(add.s_addr),
16537 alen, AF_INET, &hent, buffer, bufsize,
16541 if { (eval echo configure:16542: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16543 ol_cv_func_gethostbyaddr_r_nargs8=yes
16545 echo "configure: failed program was:" >&5
16546 cat conftest.$ac_ext >&5
16548 ol_cv_func_gethostbyaddr_r_nargs8=no
16552 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
16553 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
16555 ol_cv_func_gethostbyaddr_r_nargs=7
16557 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
16558 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
16560 ol_cv_func_gethostbyaddr_r_nargs=8
16563 ol_cv_func_gethostbyaddr_r_nargs=0
16568 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
16569 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
16570 cat >> confdefs.h <<EOF
16571 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
16577 ol_cv_func_gethostbyaddr_r_nargs=0
16582 if test $ol_with_ldbm_api = auto \
16583 -o $ol_with_ldbm_api = berkeley \
16584 -o $ol_with_ldbm_api = bcompat ; then
16586 if test $ol_with_ldbm_api = bcompat; then \
16587 for ac_hdr in db_185.h db.h
16589 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16590 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16591 echo "configure:16592: checking for $ac_hdr" >&5
16592 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16593 echo $ac_n "(cached) $ac_c" 1>&6
16595 cat > conftest.$ac_ext <<EOF
16596 #line 16597 "configure"
16597 #include "confdefs.h"
16600 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16601 { (eval echo configure:16602: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16602 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16603 if test -z "$ac_err"; then
16605 eval "ac_cv_header_$ac_safe=yes"
16608 echo "configure: failed program was:" >&5
16609 cat conftest.$ac_ext >&5
16611 eval "ac_cv_header_$ac_safe=no"
16615 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16616 echo "$ac_t""yes" 1>&6
16617 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16618 cat >> confdefs.h <<EOF
16619 #define $ac_tr_hdr 1
16623 echo "$ac_t""no" 1>&6
16627 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
16628 echo $ac_n "checking if Berkeley DB header compatibility""... $ac_c" 1>&6
16629 echo "configure:16630: checking if Berkeley DB header compatibility" >&5
16630 if eval "test \"\${ol_cv_header_db1+set}\" = set"; then
16631 echo $ac_n "(cached) $ac_c" 1>&6
16634 cat > conftest.$ac_ext <<EOF
16635 #line 16636 "configure"
16636 #include "confdefs.h"
16639 # include <db_185.h>
16644 /* this check could be improved */
16645 #ifndef DB_VERSION_MAJOR
16646 # define DB_VERSION_MAJOR 1
16649 #if DB_VERSION_MAJOR == 1
16654 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16655 egrep "__db_version_1" >/dev/null 2>&1; then
16657 ol_cv_header_db1=yes
16660 ol_cv_header_db1=no
16666 echo "$ac_t""$ol_cv_header_db1" 1>&6
16668 if test $ol_cv_header_db1 = yes ; then
16670 if test $ol_cv_lib_db = no ; then
16671 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
16672 echo "configure:16673: checking for Berkeley DB link (default)" >&5
16673 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
16674 echo $ac_n "(cached) $ac_c" 1>&6
16679 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16681 cat > conftest.$ac_ext <<EOF
16682 #line 16683 "configure"
16683 #include "confdefs.h"
16685 #ifdef HAVE_DB_185_H
16686 # include <db_185.h>
16691 #ifndef DB_VERSION_MAJOR
16692 # define DB_VERSION_MAJOR 1
16696 #define NULL ((void*)0)
16701 #if DB_VERSION_MAJOR > 1
16704 int major, minor, patch;
16706 version = db_version( &major, &minor, &patch );
16708 if( major != DB_VERSION_MAJOR ||
16709 minor < DB_VERSION_MINOR )
16711 printf("Berkeley DB version mismatch\n"
16712 "\texpected: %s\n\tgot: %s\n",
16713 DB_VERSION_STRING, version);
16719 #if DB_VERSION_MAJOR > 2
16720 db_env_create( NULL, 0 );
16721 #elif DB_VERSION_MAJOR > 1
16722 db_appexit( NULL );
16724 (void) dbopen( NULL, 0, 0, 0, NULL);
16729 if { (eval echo configure:16730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16733 echo "configure: failed program was:" >&5
16734 cat conftest.$ac_ext >&5
16744 echo "$ac_t""$ol_cv_db_none" 1>&6
16746 if test $ol_cv_db_none = yes ; then
16751 if test $ol_cv_lib_db = no ; then
16752 echo $ac_n "checking for Berkeley DB link (-ldb41)""... $ac_c" 1>&6
16753 echo "configure:16754: checking for Berkeley DB link (-ldb41)" >&5
16754 if eval "test \"\${ol_cv_db_db41+set}\" = set"; then
16755 echo $ac_n "(cached) $ac_c" 1>&6
16760 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16762 cat > conftest.$ac_ext <<EOF
16763 #line 16764 "configure"
16764 #include "confdefs.h"
16766 #ifdef HAVE_DB_185_H
16767 # include <db_185.h>
16772 #ifndef DB_VERSION_MAJOR
16773 # define DB_VERSION_MAJOR 1
16777 #define NULL ((void*)0)
16782 #if DB_VERSION_MAJOR > 1
16785 int major, minor, patch;
16787 version = db_version( &major, &minor, &patch );
16789 if( major != DB_VERSION_MAJOR ||
16790 minor < DB_VERSION_MINOR )
16792 printf("Berkeley DB version mismatch\n"
16793 "\texpected: %s\n\tgot: %s\n",
16794 DB_VERSION_STRING, version);
16800 #if DB_VERSION_MAJOR > 2
16801 db_env_create( NULL, 0 );
16802 #elif DB_VERSION_MAJOR > 1
16803 db_appexit( NULL );
16805 (void) dbopen( NULL, 0, 0, 0, NULL);
16810 if { (eval echo configure:16811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16814 echo "configure: failed program was:" >&5
16815 cat conftest.$ac_ext >&5
16825 echo "$ac_t""$ol_cv_db_db41" 1>&6
16827 if test $ol_cv_db_db41 = yes ; then
16828 ol_cv_lib_db=-ldb41
16832 if test $ol_cv_lib_db = no ; then
16833 echo $ac_n "checking for Berkeley DB link (-ldb-41)""... $ac_c" 1>&6
16834 echo "configure:16835: checking for Berkeley DB link (-ldb-41)" >&5
16835 if eval "test \"\${ol_cv_db_db_41+set}\" = set"; then
16836 echo $ac_n "(cached) $ac_c" 1>&6
16841 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16843 cat > conftest.$ac_ext <<EOF
16844 #line 16845 "configure"
16845 #include "confdefs.h"
16847 #ifdef HAVE_DB_185_H
16848 # include <db_185.h>
16853 #ifndef DB_VERSION_MAJOR
16854 # define DB_VERSION_MAJOR 1
16858 #define NULL ((void*)0)
16863 #if DB_VERSION_MAJOR > 1
16866 int major, minor, patch;
16868 version = db_version( &major, &minor, &patch );
16870 if( major != DB_VERSION_MAJOR ||
16871 minor < DB_VERSION_MINOR )
16873 printf("Berkeley DB version mismatch\n"
16874 "\texpected: %s\n\tgot: %s\n",
16875 DB_VERSION_STRING, version);
16881 #if DB_VERSION_MAJOR > 2
16882 db_env_create( NULL, 0 );
16883 #elif DB_VERSION_MAJOR > 1
16884 db_appexit( NULL );
16886 (void) dbopen( NULL, 0, 0, 0, NULL);
16891 if { (eval echo configure:16892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16895 echo "configure: failed program was:" >&5
16896 cat conftest.$ac_ext >&5
16906 echo "$ac_t""$ol_cv_db_db_41" 1>&6
16908 if test $ol_cv_db_db_41 = yes ; then
16909 ol_cv_lib_db=-ldb-41
16913 if test $ol_cv_lib_db = no ; then
16914 echo $ac_n "checking for Berkeley DB link (-ldb-4.1)""... $ac_c" 1>&6
16915 echo "configure:16916: checking for Berkeley DB link (-ldb-4.1)" >&5
16916 if eval "test \"\${ol_cv_db_db_4_dot_1+set}\" = set"; then
16917 echo $ac_n "(cached) $ac_c" 1>&6
16922 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16924 cat > conftest.$ac_ext <<EOF
16925 #line 16926 "configure"
16926 #include "confdefs.h"
16928 #ifdef HAVE_DB_185_H
16929 # include <db_185.h>
16934 #ifndef DB_VERSION_MAJOR
16935 # define DB_VERSION_MAJOR 1
16939 #define NULL ((void*)0)
16944 #if DB_VERSION_MAJOR > 1
16947 int major, minor, patch;
16949 version = db_version( &major, &minor, &patch );
16951 if( major != DB_VERSION_MAJOR ||
16952 minor < DB_VERSION_MINOR )
16954 printf("Berkeley DB version mismatch\n"
16955 "\texpected: %s\n\tgot: %s\n",
16956 DB_VERSION_STRING, version);
16962 #if DB_VERSION_MAJOR > 2
16963 db_env_create( NULL, 0 );
16964 #elif DB_VERSION_MAJOR > 1
16965 db_appexit( NULL );
16967 (void) dbopen( NULL, 0, 0, 0, NULL);
16972 if { (eval echo configure:16973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16974 ol_cv_db_db_4_dot_1=yes
16976 echo "configure: failed program was:" >&5
16977 cat conftest.$ac_ext >&5
16979 ol_cv_db_db_4_dot_1=no
16987 echo "$ac_t""$ol_cv_db_db_4_dot_1" 1>&6
16989 if test $ol_cv_db_db_4_dot_1 = yes ; then
16990 ol_cv_lib_db=-ldb-4.1
16994 if test $ol_cv_lib_db = no ; then
16995 echo $ac_n "checking for Berkeley DB link (-ldb-4-1)""... $ac_c" 1>&6
16996 echo "configure:16997: checking for Berkeley DB link (-ldb-4-1)" >&5
16997 if eval "test \"\${ol_cv_db_db_4_1+set}\" = set"; then
16998 echo $ac_n "(cached) $ac_c" 1>&6
17003 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17005 cat > conftest.$ac_ext <<EOF
17006 #line 17007 "configure"
17007 #include "confdefs.h"
17009 #ifdef HAVE_DB_185_H
17010 # include <db_185.h>
17015 #ifndef DB_VERSION_MAJOR
17016 # define DB_VERSION_MAJOR 1
17020 #define NULL ((void*)0)
17025 #if DB_VERSION_MAJOR > 1
17028 int major, minor, patch;
17030 version = db_version( &major, &minor, &patch );
17032 if( major != DB_VERSION_MAJOR ||
17033 minor < DB_VERSION_MINOR )
17035 printf("Berkeley DB version mismatch\n"
17036 "\texpected: %s\n\tgot: %s\n",
17037 DB_VERSION_STRING, version);
17043 #if DB_VERSION_MAJOR > 2
17044 db_env_create( NULL, 0 );
17045 #elif DB_VERSION_MAJOR > 1
17046 db_appexit( NULL );
17048 (void) dbopen( NULL, 0, 0, 0, NULL);
17053 if { (eval echo configure:17054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17055 ol_cv_db_db_4_1=yes
17057 echo "configure: failed program was:" >&5
17058 cat conftest.$ac_ext >&5
17068 echo "$ac_t""$ol_cv_db_db_4_1" 1>&6
17070 if test $ol_cv_db_db_4_1 = yes ; then
17071 ol_cv_lib_db=-ldb-4-1
17075 if test $ol_cv_lib_db = no ; then
17076 echo $ac_n "checking for Berkeley DB link (-ldb-4)""... $ac_c" 1>&6
17077 echo "configure:17078: checking for Berkeley DB link (-ldb-4)" >&5
17078 if eval "test \"\${ol_cv_db_db_4+set}\" = set"; then
17079 echo $ac_n "(cached) $ac_c" 1>&6
17084 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17086 cat > conftest.$ac_ext <<EOF
17087 #line 17088 "configure"
17088 #include "confdefs.h"
17090 #ifdef HAVE_DB_185_H
17091 # include <db_185.h>
17096 #ifndef DB_VERSION_MAJOR
17097 # define DB_VERSION_MAJOR 1
17101 #define NULL ((void*)0)
17106 #if DB_VERSION_MAJOR > 1
17109 int major, minor, patch;
17111 version = db_version( &major, &minor, &patch );
17113 if( major != DB_VERSION_MAJOR ||
17114 minor < DB_VERSION_MINOR )
17116 printf("Berkeley DB version mismatch\n"
17117 "\texpected: %s\n\tgot: %s\n",
17118 DB_VERSION_STRING, version);
17124 #if DB_VERSION_MAJOR > 2
17125 db_env_create( NULL, 0 );
17126 #elif DB_VERSION_MAJOR > 1
17127 db_appexit( NULL );
17129 (void) dbopen( NULL, 0, 0, 0, NULL);
17134 if { (eval echo configure:17135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17138 echo "configure: failed program was:" >&5
17139 cat conftest.$ac_ext >&5
17149 echo "$ac_t""$ol_cv_db_db_4" 1>&6
17151 if test $ol_cv_db_db_4 = yes ; then
17152 ol_cv_lib_db=-ldb-4
17156 if test $ol_cv_lib_db = no ; then
17157 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
17158 echo "configure:17159: checking for Berkeley DB link (-ldb4)" >&5
17159 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
17160 echo $ac_n "(cached) $ac_c" 1>&6
17165 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17167 cat > conftest.$ac_ext <<EOF
17168 #line 17169 "configure"
17169 #include "confdefs.h"
17171 #ifdef HAVE_DB_185_H
17172 # include <db_185.h>
17177 #ifndef DB_VERSION_MAJOR
17178 # define DB_VERSION_MAJOR 1
17182 #define NULL ((void*)0)
17187 #if DB_VERSION_MAJOR > 1
17190 int major, minor, patch;
17192 version = db_version( &major, &minor, &patch );
17194 if( major != DB_VERSION_MAJOR ||
17195 minor < DB_VERSION_MINOR )
17197 printf("Berkeley DB version mismatch\n"
17198 "\texpected: %s\n\tgot: %s\n",
17199 DB_VERSION_STRING, version);
17205 #if DB_VERSION_MAJOR > 2
17206 db_env_create( NULL, 0 );
17207 #elif DB_VERSION_MAJOR > 1
17208 db_appexit( NULL );
17210 (void) dbopen( NULL, 0, 0, 0, NULL);
17215 if { (eval echo configure:17216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17219 echo "configure: failed program was:" >&5
17220 cat conftest.$ac_ext >&5
17230 echo "$ac_t""$ol_cv_db_db4" 1>&6
17232 if test $ol_cv_db_db4 = yes ; then
17237 if test $ol_cv_lib_db = no ; then
17238 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
17239 echo "configure:17240: checking for Berkeley DB link (-ldb)" >&5
17240 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
17241 echo $ac_n "(cached) $ac_c" 1>&6
17246 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17248 cat > conftest.$ac_ext <<EOF
17249 #line 17250 "configure"
17250 #include "confdefs.h"
17252 #ifdef HAVE_DB_185_H
17253 # include <db_185.h>
17258 #ifndef DB_VERSION_MAJOR
17259 # define DB_VERSION_MAJOR 1
17263 #define NULL ((void*)0)
17268 #if DB_VERSION_MAJOR > 1
17271 int major, minor, patch;
17273 version = db_version( &major, &minor, &patch );
17275 if( major != DB_VERSION_MAJOR ||
17276 minor < DB_VERSION_MINOR )
17278 printf("Berkeley DB version mismatch\n"
17279 "\texpected: %s\n\tgot: %s\n",
17280 DB_VERSION_STRING, version);
17286 #if DB_VERSION_MAJOR > 2
17287 db_env_create( NULL, 0 );
17288 #elif DB_VERSION_MAJOR > 1
17289 db_appexit( NULL );
17291 (void) dbopen( NULL, 0, 0, 0, NULL);
17296 if { (eval echo configure:17297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17300 echo "configure: failed program was:" >&5
17301 cat conftest.$ac_ext >&5
17311 echo "$ac_t""$ol_cv_db_db" 1>&6
17313 if test $ol_cv_db_db = yes ; then
17318 if test $ol_cv_lib_db = no ; then
17319 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
17320 echo "configure:17321: checking for Berkeley DB link (-ldb3)" >&5
17321 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
17322 echo $ac_n "(cached) $ac_c" 1>&6
17327 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17329 cat > conftest.$ac_ext <<EOF
17330 #line 17331 "configure"
17331 #include "confdefs.h"
17333 #ifdef HAVE_DB_185_H
17334 # include <db_185.h>
17339 #ifndef DB_VERSION_MAJOR
17340 # define DB_VERSION_MAJOR 1
17344 #define NULL ((void*)0)
17349 #if DB_VERSION_MAJOR > 1
17352 int major, minor, patch;
17354 version = db_version( &major, &minor, &patch );
17356 if( major != DB_VERSION_MAJOR ||
17357 minor < DB_VERSION_MINOR )
17359 printf("Berkeley DB version mismatch\n"
17360 "\texpected: %s\n\tgot: %s\n",
17361 DB_VERSION_STRING, version);
17367 #if DB_VERSION_MAJOR > 2
17368 db_env_create( NULL, 0 );
17369 #elif DB_VERSION_MAJOR > 1
17370 db_appexit( NULL );
17372 (void) dbopen( NULL, 0, 0, 0, NULL);
17377 if { (eval echo configure:17378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17381 echo "configure: failed program was:" >&5
17382 cat conftest.$ac_ext >&5
17392 echo "$ac_t""$ol_cv_db_db3" 1>&6
17394 if test $ol_cv_db_db3 = yes ; then
17399 if test $ol_cv_lib_db = no ; then
17400 echo $ac_n "checking for Berkeley DB link (-ldb-3)""... $ac_c" 1>&6
17401 echo "configure:17402: checking for Berkeley DB link (-ldb-3)" >&5
17402 if eval "test \"\${ol_cv_db_db_3+set}\" = set"; then
17403 echo $ac_n "(cached) $ac_c" 1>&6
17408 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17410 cat > conftest.$ac_ext <<EOF
17411 #line 17412 "configure"
17412 #include "confdefs.h"
17414 #ifdef HAVE_DB_185_H
17415 # include <db_185.h>
17420 #ifndef DB_VERSION_MAJOR
17421 # define DB_VERSION_MAJOR 1
17425 #define NULL ((void*)0)
17430 #if DB_VERSION_MAJOR > 1
17433 int major, minor, patch;
17435 version = db_version( &major, &minor, &patch );
17437 if( major != DB_VERSION_MAJOR ||
17438 minor < DB_VERSION_MINOR )
17440 printf("Berkeley DB version mismatch\n"
17441 "\texpected: %s\n\tgot: %s\n",
17442 DB_VERSION_STRING, version);
17448 #if DB_VERSION_MAJOR > 2
17449 db_env_create( NULL, 0 );
17450 #elif DB_VERSION_MAJOR > 1
17451 db_appexit( NULL );
17453 (void) dbopen( NULL, 0, 0, 0, NULL);
17458 if { (eval echo configure:17459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17462 echo "configure: failed program was:" >&5
17463 cat conftest.$ac_ext >&5
17473 echo "$ac_t""$ol_cv_db_db_3" 1>&6
17475 if test $ol_cv_db_db_3 = yes ; then
17476 ol_cv_lib_db=-ldb-3
17480 if test $ol_cv_lib_db = no ; then
17481 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
17482 echo "configure:17483: checking for Berkeley DB link (-ldb2)" >&5
17483 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
17484 echo $ac_n "(cached) $ac_c" 1>&6
17489 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17491 cat > conftest.$ac_ext <<EOF
17492 #line 17493 "configure"
17493 #include "confdefs.h"
17495 #ifdef HAVE_DB_185_H
17496 # include <db_185.h>
17501 #ifndef DB_VERSION_MAJOR
17502 # define DB_VERSION_MAJOR 1
17506 #define NULL ((void*)0)
17511 #if DB_VERSION_MAJOR > 1
17514 int major, minor, patch;
17516 version = db_version( &major, &minor, &patch );
17518 if( major != DB_VERSION_MAJOR ||
17519 minor < DB_VERSION_MINOR )
17521 printf("Berkeley DB version mismatch\n"
17522 "\texpected: %s\n\tgot: %s\n",
17523 DB_VERSION_STRING, version);
17529 #if DB_VERSION_MAJOR > 2
17530 db_env_create( NULL, 0 );
17531 #elif DB_VERSION_MAJOR > 1
17532 db_appexit( NULL );
17534 (void) dbopen( NULL, 0, 0, 0, NULL);
17539 if { (eval echo configure:17540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17543 echo "configure: failed program was:" >&5
17544 cat conftest.$ac_ext >&5
17554 echo "$ac_t""$ol_cv_db_db2" 1>&6
17556 if test $ol_cv_db_db2 = yes ; then
17561 if test $ol_cv_lib_db = no ; then
17562 echo $ac_n "checking for Berkeley DB link (-ldb-2)""... $ac_c" 1>&6
17563 echo "configure:17564: checking for Berkeley DB link (-ldb-2)" >&5
17564 if eval "test \"\${ol_cv_db_db_2+set}\" = set"; then
17565 echo $ac_n "(cached) $ac_c" 1>&6
17570 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17572 cat > conftest.$ac_ext <<EOF
17573 #line 17574 "configure"
17574 #include "confdefs.h"
17576 #ifdef HAVE_DB_185_H
17577 # include <db_185.h>
17582 #ifndef DB_VERSION_MAJOR
17583 # define DB_VERSION_MAJOR 1
17587 #define NULL ((void*)0)
17592 #if DB_VERSION_MAJOR > 1
17595 int major, minor, patch;
17597 version = db_version( &major, &minor, &patch );
17599 if( major != DB_VERSION_MAJOR ||
17600 minor < DB_VERSION_MINOR )
17602 printf("Berkeley DB version mismatch\n"
17603 "\texpected: %s\n\tgot: %s\n",
17604 DB_VERSION_STRING, version);
17610 #if DB_VERSION_MAJOR > 2
17611 db_env_create( NULL, 0 );
17612 #elif DB_VERSION_MAJOR > 1
17613 db_appexit( NULL );
17615 (void) dbopen( NULL, 0, 0, 0, NULL);
17620 if { (eval echo configure:17621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17624 echo "configure: failed program was:" >&5
17625 cat conftest.$ac_ext >&5
17635 echo "$ac_t""$ol_cv_db_db_2" 1>&6
17637 if test $ol_cv_db_db_2 = yes ; then
17638 ol_cv_lib_db=-ldb-2
17642 if test $ol_cv_lib_db = no ; then
17643 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
17644 echo "configure:17645: checking for Berkeley DB link (-ldb1)" >&5
17645 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
17646 echo $ac_n "(cached) $ac_c" 1>&6
17651 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17653 cat > conftest.$ac_ext <<EOF
17654 #line 17655 "configure"
17655 #include "confdefs.h"
17657 #ifdef HAVE_DB_185_H
17658 # include <db_185.h>
17663 #ifndef DB_VERSION_MAJOR
17664 # define DB_VERSION_MAJOR 1
17668 #define NULL ((void*)0)
17673 #if DB_VERSION_MAJOR > 1
17676 int major, minor, patch;
17678 version = db_version( &major, &minor, &patch );
17680 if( major != DB_VERSION_MAJOR ||
17681 minor < DB_VERSION_MINOR )
17683 printf("Berkeley DB version mismatch\n"
17684 "\texpected: %s\n\tgot: %s\n",
17685 DB_VERSION_STRING, version);
17691 #if DB_VERSION_MAJOR > 2
17692 db_env_create( NULL, 0 );
17693 #elif DB_VERSION_MAJOR > 1
17694 db_appexit( NULL );
17696 (void) dbopen( NULL, 0, 0, 0, NULL);
17701 if { (eval echo configure:17702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17705 echo "configure: failed program was:" >&5
17706 cat conftest.$ac_ext >&5
17716 echo "$ac_t""$ol_cv_db_db1" 1>&6
17718 if test $ol_cv_db_db1 = yes ; then
17723 if test $ol_cv_lib_db = no ; then
17724 echo $ac_n "checking for Berkeley DB link (-ldb-1)""... $ac_c" 1>&6
17725 echo "configure:17726: checking for Berkeley DB link (-ldb-1)" >&5
17726 if eval "test \"\${ol_cv_db_db_1+set}\" = set"; then
17727 echo $ac_n "(cached) $ac_c" 1>&6
17732 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17734 cat > conftest.$ac_ext <<EOF
17735 #line 17736 "configure"
17736 #include "confdefs.h"
17738 #ifdef HAVE_DB_185_H
17739 # include <db_185.h>
17744 #ifndef DB_VERSION_MAJOR
17745 # define DB_VERSION_MAJOR 1
17749 #define NULL ((void*)0)
17754 #if DB_VERSION_MAJOR > 1
17757 int major, minor, patch;
17759 version = db_version( &major, &minor, &patch );
17761 if( major != DB_VERSION_MAJOR ||
17762 minor < DB_VERSION_MINOR )
17764 printf("Berkeley DB version mismatch\n"
17765 "\texpected: %s\n\tgot: %s\n",
17766 DB_VERSION_STRING, version);
17772 #if DB_VERSION_MAJOR > 2
17773 db_env_create( NULL, 0 );
17774 #elif DB_VERSION_MAJOR > 1
17775 db_appexit( NULL );
17777 (void) dbopen( NULL, 0, 0, 0, NULL);
17782 if { (eval echo configure:17783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17786 echo "configure: failed program was:" >&5
17787 cat conftest.$ac_ext >&5
17797 echo "$ac_t""$ol_cv_db_db_1" 1>&6
17799 if test $ol_cv_db_db_1 = yes ; then
17800 ol_cv_lib_db=-ldb-1
17805 if test "$ol_cv_lib_db" != no ; then
17806 ol_cv_berkeley_db=yes
17812 ol_cv_berkeley_db=no
17815 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17816 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17817 echo "configure:17818: checking for $ac_hdr" >&5
17818 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
17819 echo $ac_n "(cached) $ac_c" 1>&6
17821 cat > conftest.$ac_ext <<EOF
17822 #line 17823 "configure"
17823 #include "confdefs.h"
17826 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17827 { (eval echo configure:17828: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17828 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17829 if test -z "$ac_err"; then
17831 eval "ac_cv_header_$ac_safe=yes"
17834 echo "configure: failed program was:" >&5
17835 cat conftest.$ac_ext >&5
17837 eval "ac_cv_header_$ac_safe=no"
17841 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17842 echo "$ac_t""yes" 1>&6
17843 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17844 cat >> confdefs.h <<EOF
17845 #define $ac_tr_hdr 1
17849 echo "$ac_t""no" 1>&6
17853 if test $ac_cv_header_db_h = yes; then
17855 if test $ol_cv_lib_db = no ; then
17856 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
17857 echo "configure:17858: checking for Berkeley DB link (default)" >&5
17858 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
17859 echo $ac_n "(cached) $ac_c" 1>&6
17864 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17866 cat > conftest.$ac_ext <<EOF
17867 #line 17868 "configure"
17868 #include "confdefs.h"
17870 #ifdef HAVE_DB_185_H
17871 # include <db_185.h>
17876 #ifndef DB_VERSION_MAJOR
17877 # define DB_VERSION_MAJOR 1
17881 #define NULL ((void*)0)
17886 #if DB_VERSION_MAJOR > 1
17889 int major, minor, patch;
17891 version = db_version( &major, &minor, &patch );
17893 if( major != DB_VERSION_MAJOR ||
17894 minor < DB_VERSION_MINOR )
17896 printf("Berkeley DB version mismatch\n"
17897 "\texpected: %s\n\tgot: %s\n",
17898 DB_VERSION_STRING, version);
17904 #if DB_VERSION_MAJOR > 2
17905 db_env_create( NULL, 0 );
17906 #elif DB_VERSION_MAJOR > 1
17907 db_appexit( NULL );
17909 (void) dbopen( NULL, 0, 0, 0, NULL);
17914 if { (eval echo configure:17915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17918 echo "configure: failed program was:" >&5
17919 cat conftest.$ac_ext >&5
17929 echo "$ac_t""$ol_cv_db_none" 1>&6
17931 if test $ol_cv_db_none = yes ; then
17936 if test $ol_cv_lib_db = no ; then
17937 echo $ac_n "checking for Berkeley DB link (-ldb41)""... $ac_c" 1>&6
17938 echo "configure:17939: checking for Berkeley DB link (-ldb41)" >&5
17939 if eval "test \"\${ol_cv_db_db41+set}\" = set"; then
17940 echo $ac_n "(cached) $ac_c" 1>&6
17945 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17947 cat > conftest.$ac_ext <<EOF
17948 #line 17949 "configure"
17949 #include "confdefs.h"
17951 #ifdef HAVE_DB_185_H
17952 # include <db_185.h>
17957 #ifndef DB_VERSION_MAJOR
17958 # define DB_VERSION_MAJOR 1
17962 #define NULL ((void*)0)
17967 #if DB_VERSION_MAJOR > 1
17970 int major, minor, patch;
17972 version = db_version( &major, &minor, &patch );
17974 if( major != DB_VERSION_MAJOR ||
17975 minor < DB_VERSION_MINOR )
17977 printf("Berkeley DB version mismatch\n"
17978 "\texpected: %s\n\tgot: %s\n",
17979 DB_VERSION_STRING, version);
17985 #if DB_VERSION_MAJOR > 2
17986 db_env_create( NULL, 0 );
17987 #elif DB_VERSION_MAJOR > 1
17988 db_appexit( NULL );
17990 (void) dbopen( NULL, 0, 0, 0, NULL);
17995 if { (eval echo configure:17996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17999 echo "configure: failed program was:" >&5
18000 cat conftest.$ac_ext >&5
18010 echo "$ac_t""$ol_cv_db_db41" 1>&6
18012 if test $ol_cv_db_db41 = yes ; then
18013 ol_cv_lib_db=-ldb41
18017 if test $ol_cv_lib_db = no ; then
18018 echo $ac_n "checking for Berkeley DB link (-ldb-41)""... $ac_c" 1>&6
18019 echo "configure:18020: checking for Berkeley DB link (-ldb-41)" >&5
18020 if eval "test \"\${ol_cv_db_db_41+set}\" = set"; then
18021 echo $ac_n "(cached) $ac_c" 1>&6
18026 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18028 cat > conftest.$ac_ext <<EOF
18029 #line 18030 "configure"
18030 #include "confdefs.h"
18032 #ifdef HAVE_DB_185_H
18033 # include <db_185.h>
18038 #ifndef DB_VERSION_MAJOR
18039 # define DB_VERSION_MAJOR 1
18043 #define NULL ((void*)0)
18048 #if DB_VERSION_MAJOR > 1
18051 int major, minor, patch;
18053 version = db_version( &major, &minor, &patch );
18055 if( major != DB_VERSION_MAJOR ||
18056 minor < DB_VERSION_MINOR )
18058 printf("Berkeley DB version mismatch\n"
18059 "\texpected: %s\n\tgot: %s\n",
18060 DB_VERSION_STRING, version);
18066 #if DB_VERSION_MAJOR > 2
18067 db_env_create( NULL, 0 );
18068 #elif DB_VERSION_MAJOR > 1
18069 db_appexit( NULL );
18071 (void) dbopen( NULL, 0, 0, 0, NULL);
18076 if { (eval echo configure:18077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18080 echo "configure: failed program was:" >&5
18081 cat conftest.$ac_ext >&5
18091 echo "$ac_t""$ol_cv_db_db_41" 1>&6
18093 if test $ol_cv_db_db_41 = yes ; then
18094 ol_cv_lib_db=-ldb-41
18098 if test $ol_cv_lib_db = no ; then
18099 echo $ac_n "checking for Berkeley DB link (-ldb-4.1)""... $ac_c" 1>&6
18100 echo "configure:18101: checking for Berkeley DB link (-ldb-4.1)" >&5
18101 if eval "test \"\${ol_cv_db_db_4_dot_1+set}\" = set"; then
18102 echo $ac_n "(cached) $ac_c" 1>&6
18107 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18109 cat > conftest.$ac_ext <<EOF
18110 #line 18111 "configure"
18111 #include "confdefs.h"
18113 #ifdef HAVE_DB_185_H
18114 # include <db_185.h>
18119 #ifndef DB_VERSION_MAJOR
18120 # define DB_VERSION_MAJOR 1
18124 #define NULL ((void*)0)
18129 #if DB_VERSION_MAJOR > 1
18132 int major, minor, patch;
18134 version = db_version( &major, &minor, &patch );
18136 if( major != DB_VERSION_MAJOR ||
18137 minor < DB_VERSION_MINOR )
18139 printf("Berkeley DB version mismatch\n"
18140 "\texpected: %s\n\tgot: %s\n",
18141 DB_VERSION_STRING, version);
18147 #if DB_VERSION_MAJOR > 2
18148 db_env_create( NULL, 0 );
18149 #elif DB_VERSION_MAJOR > 1
18150 db_appexit( NULL );
18152 (void) dbopen( NULL, 0, 0, 0, NULL);
18157 if { (eval echo configure:18158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18159 ol_cv_db_db_4_dot_1=yes
18161 echo "configure: failed program was:" >&5
18162 cat conftest.$ac_ext >&5
18164 ol_cv_db_db_4_dot_1=no
18172 echo "$ac_t""$ol_cv_db_db_4_dot_1" 1>&6
18174 if test $ol_cv_db_db_4_dot_1 = yes ; then
18175 ol_cv_lib_db=-ldb-4.1
18179 if test $ol_cv_lib_db = no ; then
18180 echo $ac_n "checking for Berkeley DB link (-ldb-4-1)""... $ac_c" 1>&6
18181 echo "configure:18182: checking for Berkeley DB link (-ldb-4-1)" >&5
18182 if eval "test \"\${ol_cv_db_db_4_1+set}\" = set"; then
18183 echo $ac_n "(cached) $ac_c" 1>&6
18188 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18190 cat > conftest.$ac_ext <<EOF
18191 #line 18192 "configure"
18192 #include "confdefs.h"
18194 #ifdef HAVE_DB_185_H
18195 # include <db_185.h>
18200 #ifndef DB_VERSION_MAJOR
18201 # define DB_VERSION_MAJOR 1
18205 #define NULL ((void*)0)
18210 #if DB_VERSION_MAJOR > 1
18213 int major, minor, patch;
18215 version = db_version( &major, &minor, &patch );
18217 if( major != DB_VERSION_MAJOR ||
18218 minor < DB_VERSION_MINOR )
18220 printf("Berkeley DB version mismatch\n"
18221 "\texpected: %s\n\tgot: %s\n",
18222 DB_VERSION_STRING, version);
18228 #if DB_VERSION_MAJOR > 2
18229 db_env_create( NULL, 0 );
18230 #elif DB_VERSION_MAJOR > 1
18231 db_appexit( NULL );
18233 (void) dbopen( NULL, 0, 0, 0, NULL);
18238 if { (eval echo configure:18239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18240 ol_cv_db_db_4_1=yes
18242 echo "configure: failed program was:" >&5
18243 cat conftest.$ac_ext >&5
18253 echo "$ac_t""$ol_cv_db_db_4_1" 1>&6
18255 if test $ol_cv_db_db_4_1 = yes ; then
18256 ol_cv_lib_db=-ldb-4-1
18260 if test $ol_cv_lib_db = no ; then
18261 echo $ac_n "checking for Berkeley DB link (-ldb-4)""... $ac_c" 1>&6
18262 echo "configure:18263: checking for Berkeley DB link (-ldb-4)" >&5
18263 if eval "test \"\${ol_cv_db_db_4+set}\" = set"; then
18264 echo $ac_n "(cached) $ac_c" 1>&6
18269 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18271 cat > conftest.$ac_ext <<EOF
18272 #line 18273 "configure"
18273 #include "confdefs.h"
18275 #ifdef HAVE_DB_185_H
18276 # include <db_185.h>
18281 #ifndef DB_VERSION_MAJOR
18282 # define DB_VERSION_MAJOR 1
18286 #define NULL ((void*)0)
18291 #if DB_VERSION_MAJOR > 1
18294 int major, minor, patch;
18296 version = db_version( &major, &minor, &patch );
18298 if( major != DB_VERSION_MAJOR ||
18299 minor < DB_VERSION_MINOR )
18301 printf("Berkeley DB version mismatch\n"
18302 "\texpected: %s\n\tgot: %s\n",
18303 DB_VERSION_STRING, version);
18309 #if DB_VERSION_MAJOR > 2
18310 db_env_create( NULL, 0 );
18311 #elif DB_VERSION_MAJOR > 1
18312 db_appexit( NULL );
18314 (void) dbopen( NULL, 0, 0, 0, NULL);
18319 if { (eval echo configure:18320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18323 echo "configure: failed program was:" >&5
18324 cat conftest.$ac_ext >&5
18334 echo "$ac_t""$ol_cv_db_db_4" 1>&6
18336 if test $ol_cv_db_db_4 = yes ; then
18337 ol_cv_lib_db=-ldb-4
18341 if test $ol_cv_lib_db = no ; then
18342 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
18343 echo "configure:18344: checking for Berkeley DB link (-ldb4)" >&5
18344 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
18345 echo $ac_n "(cached) $ac_c" 1>&6
18350 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18352 cat > conftest.$ac_ext <<EOF
18353 #line 18354 "configure"
18354 #include "confdefs.h"
18356 #ifdef HAVE_DB_185_H
18357 # include <db_185.h>
18362 #ifndef DB_VERSION_MAJOR
18363 # define DB_VERSION_MAJOR 1
18367 #define NULL ((void*)0)
18372 #if DB_VERSION_MAJOR > 1
18375 int major, minor, patch;
18377 version = db_version( &major, &minor, &patch );
18379 if( major != DB_VERSION_MAJOR ||
18380 minor < DB_VERSION_MINOR )
18382 printf("Berkeley DB version mismatch\n"
18383 "\texpected: %s\n\tgot: %s\n",
18384 DB_VERSION_STRING, version);
18390 #if DB_VERSION_MAJOR > 2
18391 db_env_create( NULL, 0 );
18392 #elif DB_VERSION_MAJOR > 1
18393 db_appexit( NULL );
18395 (void) dbopen( NULL, 0, 0, 0, NULL);
18400 if { (eval echo configure:18401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18404 echo "configure: failed program was:" >&5
18405 cat conftest.$ac_ext >&5
18415 echo "$ac_t""$ol_cv_db_db4" 1>&6
18417 if test $ol_cv_db_db4 = yes ; then
18422 if test $ol_cv_lib_db = no ; then
18423 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
18424 echo "configure:18425: checking for Berkeley DB link (-ldb)" >&5
18425 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
18426 echo $ac_n "(cached) $ac_c" 1>&6
18431 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18433 cat > conftest.$ac_ext <<EOF
18434 #line 18435 "configure"
18435 #include "confdefs.h"
18437 #ifdef HAVE_DB_185_H
18438 # include <db_185.h>
18443 #ifndef DB_VERSION_MAJOR
18444 # define DB_VERSION_MAJOR 1
18448 #define NULL ((void*)0)
18453 #if DB_VERSION_MAJOR > 1
18456 int major, minor, patch;
18458 version = db_version( &major, &minor, &patch );
18460 if( major != DB_VERSION_MAJOR ||
18461 minor < DB_VERSION_MINOR )
18463 printf("Berkeley DB version mismatch\n"
18464 "\texpected: %s\n\tgot: %s\n",
18465 DB_VERSION_STRING, version);
18471 #if DB_VERSION_MAJOR > 2
18472 db_env_create( NULL, 0 );
18473 #elif DB_VERSION_MAJOR > 1
18474 db_appexit( NULL );
18476 (void) dbopen( NULL, 0, 0, 0, NULL);
18481 if { (eval echo configure:18482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18485 echo "configure: failed program was:" >&5
18486 cat conftest.$ac_ext >&5
18496 echo "$ac_t""$ol_cv_db_db" 1>&6
18498 if test $ol_cv_db_db = yes ; then
18503 if test $ol_cv_lib_db = no ; then
18504 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
18505 echo "configure:18506: checking for Berkeley DB link (-ldb3)" >&5
18506 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
18507 echo $ac_n "(cached) $ac_c" 1>&6
18512 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18514 cat > conftest.$ac_ext <<EOF
18515 #line 18516 "configure"
18516 #include "confdefs.h"
18518 #ifdef HAVE_DB_185_H
18519 # include <db_185.h>
18524 #ifndef DB_VERSION_MAJOR
18525 # define DB_VERSION_MAJOR 1
18529 #define NULL ((void*)0)
18534 #if DB_VERSION_MAJOR > 1
18537 int major, minor, patch;
18539 version = db_version( &major, &minor, &patch );
18541 if( major != DB_VERSION_MAJOR ||
18542 minor < DB_VERSION_MINOR )
18544 printf("Berkeley DB version mismatch\n"
18545 "\texpected: %s\n\tgot: %s\n",
18546 DB_VERSION_STRING, version);
18552 #if DB_VERSION_MAJOR > 2
18553 db_env_create( NULL, 0 );
18554 #elif DB_VERSION_MAJOR > 1
18555 db_appexit( NULL );
18557 (void) dbopen( NULL, 0, 0, 0, NULL);
18562 if { (eval echo configure:18563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18566 echo "configure: failed program was:" >&5
18567 cat conftest.$ac_ext >&5
18577 echo "$ac_t""$ol_cv_db_db3" 1>&6
18579 if test $ol_cv_db_db3 = yes ; then
18584 if test $ol_cv_lib_db = no ; then
18585 echo $ac_n "checking for Berkeley DB link (-ldb-3)""... $ac_c" 1>&6
18586 echo "configure:18587: checking for Berkeley DB link (-ldb-3)" >&5
18587 if eval "test \"\${ol_cv_db_db_3+set}\" = set"; then
18588 echo $ac_n "(cached) $ac_c" 1>&6
18593 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18595 cat > conftest.$ac_ext <<EOF
18596 #line 18597 "configure"
18597 #include "confdefs.h"
18599 #ifdef HAVE_DB_185_H
18600 # include <db_185.h>
18605 #ifndef DB_VERSION_MAJOR
18606 # define DB_VERSION_MAJOR 1
18610 #define NULL ((void*)0)
18615 #if DB_VERSION_MAJOR > 1
18618 int major, minor, patch;
18620 version = db_version( &major, &minor, &patch );
18622 if( major != DB_VERSION_MAJOR ||
18623 minor < DB_VERSION_MINOR )
18625 printf("Berkeley DB version mismatch\n"
18626 "\texpected: %s\n\tgot: %s\n",
18627 DB_VERSION_STRING, version);
18633 #if DB_VERSION_MAJOR > 2
18634 db_env_create( NULL, 0 );
18635 #elif DB_VERSION_MAJOR > 1
18636 db_appexit( NULL );
18638 (void) dbopen( NULL, 0, 0, 0, NULL);
18643 if { (eval echo configure:18644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18647 echo "configure: failed program was:" >&5
18648 cat conftest.$ac_ext >&5
18658 echo "$ac_t""$ol_cv_db_db_3" 1>&6
18660 if test $ol_cv_db_db_3 = yes ; then
18661 ol_cv_lib_db=-ldb-3
18665 if test $ol_cv_lib_db = no ; then
18666 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
18667 echo "configure:18668: checking for Berkeley DB link (-ldb2)" >&5
18668 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
18669 echo $ac_n "(cached) $ac_c" 1>&6
18674 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18676 cat > conftest.$ac_ext <<EOF
18677 #line 18678 "configure"
18678 #include "confdefs.h"
18680 #ifdef HAVE_DB_185_H
18681 # include <db_185.h>
18686 #ifndef DB_VERSION_MAJOR
18687 # define DB_VERSION_MAJOR 1
18691 #define NULL ((void*)0)
18696 #if DB_VERSION_MAJOR > 1
18699 int major, minor, patch;
18701 version = db_version( &major, &minor, &patch );
18703 if( major != DB_VERSION_MAJOR ||
18704 minor < DB_VERSION_MINOR )
18706 printf("Berkeley DB version mismatch\n"
18707 "\texpected: %s\n\tgot: %s\n",
18708 DB_VERSION_STRING, version);
18714 #if DB_VERSION_MAJOR > 2
18715 db_env_create( NULL, 0 );
18716 #elif DB_VERSION_MAJOR > 1
18717 db_appexit( NULL );
18719 (void) dbopen( NULL, 0, 0, 0, NULL);
18724 if { (eval echo configure:18725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18728 echo "configure: failed program was:" >&5
18729 cat conftest.$ac_ext >&5
18739 echo "$ac_t""$ol_cv_db_db2" 1>&6
18741 if test $ol_cv_db_db2 = yes ; then
18746 if test $ol_cv_lib_db = no ; then
18747 echo $ac_n "checking for Berkeley DB link (-ldb-2)""... $ac_c" 1>&6
18748 echo "configure:18749: checking for Berkeley DB link (-ldb-2)" >&5
18749 if eval "test \"\${ol_cv_db_db_2+set}\" = set"; then
18750 echo $ac_n "(cached) $ac_c" 1>&6
18755 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18757 cat > conftest.$ac_ext <<EOF
18758 #line 18759 "configure"
18759 #include "confdefs.h"
18761 #ifdef HAVE_DB_185_H
18762 # include <db_185.h>
18767 #ifndef DB_VERSION_MAJOR
18768 # define DB_VERSION_MAJOR 1
18772 #define NULL ((void*)0)
18777 #if DB_VERSION_MAJOR > 1
18780 int major, minor, patch;
18782 version = db_version( &major, &minor, &patch );
18784 if( major != DB_VERSION_MAJOR ||
18785 minor < DB_VERSION_MINOR )
18787 printf("Berkeley DB version mismatch\n"
18788 "\texpected: %s\n\tgot: %s\n",
18789 DB_VERSION_STRING, version);
18795 #if DB_VERSION_MAJOR > 2
18796 db_env_create( NULL, 0 );
18797 #elif DB_VERSION_MAJOR > 1
18798 db_appexit( NULL );
18800 (void) dbopen( NULL, 0, 0, 0, NULL);
18805 if { (eval echo configure:18806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18809 echo "configure: failed program was:" >&5
18810 cat conftest.$ac_ext >&5
18820 echo "$ac_t""$ol_cv_db_db_2" 1>&6
18822 if test $ol_cv_db_db_2 = yes ; then
18823 ol_cv_lib_db=-ldb-2
18827 if test $ol_cv_lib_db = no ; then
18828 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
18829 echo "configure:18830: checking for Berkeley DB link (-ldb1)" >&5
18830 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
18831 echo $ac_n "(cached) $ac_c" 1>&6
18836 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18838 cat > conftest.$ac_ext <<EOF
18839 #line 18840 "configure"
18840 #include "confdefs.h"
18842 #ifdef HAVE_DB_185_H
18843 # include <db_185.h>
18848 #ifndef DB_VERSION_MAJOR
18849 # define DB_VERSION_MAJOR 1
18853 #define NULL ((void*)0)
18858 #if DB_VERSION_MAJOR > 1
18861 int major, minor, patch;
18863 version = db_version( &major, &minor, &patch );
18865 if( major != DB_VERSION_MAJOR ||
18866 minor < DB_VERSION_MINOR )
18868 printf("Berkeley DB version mismatch\n"
18869 "\texpected: %s\n\tgot: %s\n",
18870 DB_VERSION_STRING, version);
18876 #if DB_VERSION_MAJOR > 2
18877 db_env_create( NULL, 0 );
18878 #elif DB_VERSION_MAJOR > 1
18879 db_appexit( NULL );
18881 (void) dbopen( NULL, 0, 0, 0, NULL);
18886 if { (eval echo configure:18887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18890 echo "configure: failed program was:" >&5
18891 cat conftest.$ac_ext >&5
18901 echo "$ac_t""$ol_cv_db_db1" 1>&6
18903 if test $ol_cv_db_db1 = yes ; then
18908 if test $ol_cv_lib_db = no ; then
18909 echo $ac_n "checking for Berkeley DB link (-ldb-1)""... $ac_c" 1>&6
18910 echo "configure:18911: checking for Berkeley DB link (-ldb-1)" >&5
18911 if eval "test \"\${ol_cv_db_db_1+set}\" = set"; then
18912 echo $ac_n "(cached) $ac_c" 1>&6
18917 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18919 cat > conftest.$ac_ext <<EOF
18920 #line 18921 "configure"
18921 #include "confdefs.h"
18923 #ifdef HAVE_DB_185_H
18924 # include <db_185.h>
18929 #ifndef DB_VERSION_MAJOR
18930 # define DB_VERSION_MAJOR 1
18934 #define NULL ((void*)0)
18939 #if DB_VERSION_MAJOR > 1
18942 int major, minor, patch;
18944 version = db_version( &major, &minor, &patch );
18946 if( major != DB_VERSION_MAJOR ||
18947 minor < DB_VERSION_MINOR )
18949 printf("Berkeley DB version mismatch\n"
18950 "\texpected: %s\n\tgot: %s\n",
18951 DB_VERSION_STRING, version);
18957 #if DB_VERSION_MAJOR > 2
18958 db_env_create( NULL, 0 );
18959 #elif DB_VERSION_MAJOR > 1
18960 db_appexit( NULL );
18962 (void) dbopen( NULL, 0, 0, 0, NULL);
18967 if { (eval echo configure:18968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18971 echo "configure: failed program was:" >&5
18972 cat conftest.$ac_ext >&5
18982 echo "$ac_t""$ol_cv_db_db_1" 1>&6
18984 if test $ol_cv_db_db_1 = yes ; then
18985 ol_cv_lib_db=-ldb-1
18990 if test "$ol_cv_lib_db" != no ; then
18991 ol_cv_berkeley_db=yes
18992 echo $ac_n "checking for Berkeley DB thread support""... $ac_c" 1>&6
18993 echo "configure:18994: checking for Berkeley DB thread support" >&5
18994 if eval "test \"\${ol_cv_berkeley_db_thread+set}\" = set"; then
18995 echo $ac_n "(cached) $ac_c" 1>&6
18999 LIBS="$LTHREAD_LIBS $LIBS"
19000 if test $ol_cv_lib_db != yes ; then
19001 LIBS="$ol_cv_lib_db $LIBS"
19004 if test "$cross_compiling" = yes; then
19005 ol_cv_berkeley_db_thread=cross
19007 cat > conftest.$ac_ext <<EOF
19008 #line 19009 "configure"
19009 #include "confdefs.h"
19011 #ifdef HAVE_DB_185_H
19017 #define NULL ((void *)0)
19022 u_int32_t flags = DB_CREATE |
19028 #if DB_VERSION_MAJOR > 2
19029 DB_ENV *env = NULL;
19031 rc = db_env_create( &env, 0 );
19033 flags |= DB_INIT_MPOOL;
19034 #ifdef DB_MPOOL_PRIVATE
19035 flags |= DB_MPOOL_PRIVATE;
19039 printf("BerkeleyDB: %s\n", db_strerror(rc) );
19043 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
19044 rc = env->open( env, NULL, flags, 0 );
19046 rc = env->open( env, NULL, NULL, flags, 0 );
19050 rc = env->close( env, 0 );
19054 printf("BerkeleyDB: %s\n", db_strerror(rc) );
19060 memset( &env, '\0', sizeof(env) );
19062 rc = db_appinit( NULL, NULL, &env, flags );
19065 db_appexit( &env );
19068 unlink("__db_mpool.share");
19069 unlink("__db_lock.share");
19075 if { (eval echo configure:19076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
19077 ol_cv_berkeley_db_thread=yes
19079 echo "configure: failed program was:" >&5
19080 cat conftest.$ac_ext >&5
19082 ol_cv_berkeley_db_thread=no
19092 echo "$ac_t""$ol_cv_berkeley_db_thread" 1>&6
19094 if test $ol_cv_berkeley_db_thread != no ; then
19095 cat >> confdefs.h <<\EOF
19096 #define HAVE_BERKELEY_DB_THREAD 1
19106 if test $ol_cv_berkeley_db != no ; then
19107 cat >> confdefs.h <<\EOF
19108 #define HAVE_BERKELEY_DB 1
19112 ol_link_ldbm=berkeley
19113 ol_with_ldbm_api=berkeley
19115 if test $ol_with_ldbm_type = hash ; then
19116 cat >> confdefs.h <<\EOF
19117 #define LDBM_USE_DBHASH 1
19121 cat >> confdefs.h <<\EOF
19122 #define LDBM_USE_DBBTREE 1
19127 if test $ol_cv_lib_db != yes ; then
19128 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
19133 if test $ol_enable_bdb = yes -a $ol_link_ldbm != berkeley ; then
19134 { echo "configure: error: BDB: BerkeleyDB not available" 1>&2; exit 1; }
19135 elif test $ol_enable_bdb != no -a $ol_link_ldbm = berkeley ; then
19136 echo $ac_n "checking Berkeley DB version for BDB backend""... $ac_c" 1>&6
19137 echo "configure:19138: checking Berkeley DB version for BDB backend" >&5
19138 if eval "test \"\${ol_cv_bdb_compat+set}\" = set"; then
19139 echo $ac_n "(cached) $ac_c" 1>&6
19142 cat > conftest.$ac_ext <<EOF
19143 #line 19144 "configure"
19144 #include "confdefs.h"
19148 /* this check could be improved */
19149 #ifndef DB_VERSION_MAJOR
19150 # define DB_VERSION_MAJOR 1
19152 #ifndef DB_VERSION_MINOR
19153 # define DB_VERSION_MINOR 0
19156 /* require 4.1 or later */
19157 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 1)
19158 __db_version_compat
19162 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19163 egrep "__db_version_compat" >/dev/null 2>&1; then
19165 ol_cv_bdb_compat=yes
19168 ol_cv_bdb_compat=no
19174 echo "$ac_t""$ol_cv_bdb_compat" 1>&6
19177 if test $ol_cv_bdb_compat = yes ; then
19179 elif test $ol_enable_bdb = yes ; then
19180 { echo "configure: error: BDB: BerkeleyDB version incompatible" 1>&2; exit 1; }
19185 if test $ol_enable_hdb = yes -a $ol_link_ldbm != berkeley ; then
19186 { echo "configure: error: HDB: BerkeleyDB not available" 1>&2; exit 1; }
19189 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
19190 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
19191 ol_with_ldbm_api=none
19194 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
19195 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
19196 echo "configure:19197: checking for MDBM library" >&5
19197 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
19198 echo $ac_n "(cached) $ac_c" 1>&6
19201 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
19202 echo "configure:19203: checking for mdbm_set_chain" >&5
19203 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
19204 echo $ac_n "(cached) $ac_c" 1>&6
19206 cat > conftest.$ac_ext <<EOF
19207 #line 19208 "configure"
19208 #include "confdefs.h"
19209 /* System header to define __stub macros and hopefully few prototypes,
19210 which can conflict with char mdbm_set_chain(); below. */
19211 #include <assert.h>
19212 /* Override any gcc2 internal prototype to avoid an error. */
19213 /* We use char because int might match the return type of a gcc2
19214 builtin and then its argument prototype would still apply. */
19215 char mdbm_set_chain();
19220 /* The GNU C library defines this for functions which it implements
19221 to always fail with ENOSYS. Some functions are actually named
19222 something starting with __ and the normal name is an alias. */
19223 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
19226 f = mdbm_set_chain;
19231 if { (eval echo configure:19232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19233 eval "ac_cv_func_mdbm_set_chain=yes"
19235 echo "configure: failed program was:" >&5
19236 cat conftest.$ac_ext >&5
19238 eval "ac_cv_func_mdbm_set_chain=no"
19243 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
19244 echo "$ac_t""yes" 1>&6
19247 echo "$ac_t""no" 1>&6
19249 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
19250 echo "configure:19251: checking for mdbm_set_chain in -lmdbm" >&5
19251 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
19252 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19253 echo $ac_n "(cached) $ac_c" 1>&6
19255 ac_save_LIBS="$LIBS"
19256 LIBS="-lmdbm $LIBS"
19257 cat > conftest.$ac_ext <<EOF
19258 #line 19259 "configure"
19259 #include "confdefs.h"
19260 /* Override any gcc2 internal prototype to avoid an error. */
19261 /* We use char because int might match the return type of a gcc2
19262 builtin and then its argument prototype would still apply. */
19263 char mdbm_set_chain();
19269 if { (eval echo configure:19270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19271 eval "ac_cv_lib_$ac_lib_var=yes"
19273 echo "configure: failed program was:" >&5
19274 cat conftest.$ac_ext >&5
19276 eval "ac_cv_lib_$ac_lib_var=no"
19279 LIBS="$ac_save_LIBS"
19282 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19283 echo "$ac_t""yes" 1>&6
19284 ol_cv_lib_mdbm=-lmdbm
19286 echo "$ac_t""no" 1>&6
19297 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
19300 for ac_hdr in mdbm.h
19302 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19303 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19304 echo "configure:19305: checking for $ac_hdr" >&5
19305 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19306 echo $ac_n "(cached) $ac_c" 1>&6
19308 cat > conftest.$ac_ext <<EOF
19309 #line 19310 "configure"
19310 #include "confdefs.h"
19313 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19314 { (eval echo configure:19315: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19315 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19316 if test -z "$ac_err"; then
19318 eval "ac_cv_header_$ac_safe=yes"
19321 echo "configure: failed program was:" >&5
19322 cat conftest.$ac_ext >&5
19324 eval "ac_cv_header_$ac_safe=no"
19328 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19329 echo "$ac_t""yes" 1>&6
19330 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19331 cat >> confdefs.h <<EOF
19332 #define $ac_tr_hdr 1
19336 echo "$ac_t""no" 1>&6
19340 echo $ac_n "checking for db""... $ac_c" 1>&6
19341 echo "configure:19342: checking for db" >&5
19342 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
19343 echo $ac_n "(cached) $ac_c" 1>&6
19346 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
19354 echo "$ac_t""$ol_cv_mdbm" 1>&6
19355 if test $ol_cv_mdbm = yes ; then
19356 cat >> confdefs.h <<\EOF
19357 #define HAVE_MDBM 1
19363 if test $ol_cv_mdbm = yes ; then
19365 ol_with_ldbm_api=mdbm
19366 if test $ol_cv_lib_mdbm != yes ; then
19367 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
19372 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
19373 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
19374 echo "configure:19375: checking for GDBM library" >&5
19375 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
19376 echo $ac_n "(cached) $ac_c" 1>&6
19379 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
19380 echo "configure:19381: checking for gdbm_open" >&5
19381 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
19382 echo $ac_n "(cached) $ac_c" 1>&6
19384 cat > conftest.$ac_ext <<EOF
19385 #line 19386 "configure"
19386 #include "confdefs.h"
19387 /* System header to define __stub macros and hopefully few prototypes,
19388 which can conflict with char gdbm_open(); below. */
19389 #include <assert.h>
19390 /* Override any gcc2 internal prototype to avoid an error. */
19391 /* We use char because int might match the return type of a gcc2
19392 builtin and then its argument prototype would still apply. */
19398 /* The GNU C library defines this for functions which it implements
19399 to always fail with ENOSYS. Some functions are actually named
19400 something starting with __ and the normal name is an alias. */
19401 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
19409 if { (eval echo configure:19410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19411 eval "ac_cv_func_gdbm_open=yes"
19413 echo "configure: failed program was:" >&5
19414 cat conftest.$ac_ext >&5
19416 eval "ac_cv_func_gdbm_open=no"
19421 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
19422 echo "$ac_t""yes" 1>&6
19425 echo "$ac_t""no" 1>&6
19427 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
19428 echo "configure:19429: checking for gdbm_open in -lgdbm" >&5
19429 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
19430 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19431 echo $ac_n "(cached) $ac_c" 1>&6
19433 ac_save_LIBS="$LIBS"
19434 LIBS="-lgdbm $LIBS"
19435 cat > conftest.$ac_ext <<EOF
19436 #line 19437 "configure"
19437 #include "confdefs.h"
19438 /* Override any gcc2 internal prototype to avoid an error. */
19439 /* We use char because int might match the return type of a gcc2
19440 builtin and then its argument prototype would still apply. */
19447 if { (eval echo configure:19448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19449 eval "ac_cv_lib_$ac_lib_var=yes"
19451 echo "configure: failed program was:" >&5
19452 cat conftest.$ac_ext >&5
19454 eval "ac_cv_lib_$ac_lib_var=no"
19457 LIBS="$ac_save_LIBS"
19460 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19461 echo "$ac_t""yes" 1>&6
19462 ol_cv_lib_gdbm=-lgdbm
19464 echo "$ac_t""no" 1>&6
19475 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
19478 for ac_hdr in gdbm.h
19480 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19481 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19482 echo "configure:19483: checking for $ac_hdr" >&5
19483 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19484 echo $ac_n "(cached) $ac_c" 1>&6
19486 cat > conftest.$ac_ext <<EOF
19487 #line 19488 "configure"
19488 #include "confdefs.h"
19491 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19492 { (eval echo configure:19493: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19493 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19494 if test -z "$ac_err"; then
19496 eval "ac_cv_header_$ac_safe=yes"
19499 echo "configure: failed program was:" >&5
19500 cat conftest.$ac_ext >&5
19502 eval "ac_cv_header_$ac_safe=no"
19506 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19507 echo "$ac_t""yes" 1>&6
19508 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19509 cat >> confdefs.h <<EOF
19510 #define $ac_tr_hdr 1
19514 echo "$ac_t""no" 1>&6
19518 echo $ac_n "checking for db""... $ac_c" 1>&6
19519 echo "configure:19520: checking for db" >&5
19520 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
19521 echo $ac_n "(cached) $ac_c" 1>&6
19524 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
19532 echo "$ac_t""$ol_cv_gdbm" 1>&6
19533 if test $ol_cv_gdbm = yes ; then
19534 cat >> confdefs.h <<\EOF
19535 #define HAVE_GDBM 1
19541 if test $ol_cv_gdbm = yes ; then
19543 ol_with_ldbm_api=gdbm
19545 if test $ol_cv_lib_gdbm != yes ; then
19546 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
19551 if test $ol_with_ldbm_api = ndbm ; then
19552 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
19553 echo "configure:19554: checking for NDBM library" >&5
19554 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
19555 echo $ac_n "(cached) $ac_c" 1>&6
19558 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
19559 echo "configure:19560: checking for dbm_open" >&5
19560 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
19561 echo $ac_n "(cached) $ac_c" 1>&6
19563 cat > conftest.$ac_ext <<EOF
19564 #line 19565 "configure"
19565 #include "confdefs.h"
19566 /* System header to define __stub macros and hopefully few prototypes,
19567 which can conflict with char dbm_open(); below. */
19568 #include <assert.h>
19569 /* Override any gcc2 internal prototype to avoid an error. */
19570 /* We use char because int might match the return type of a gcc2
19571 builtin and then its argument prototype would still apply. */
19577 /* The GNU C library defines this for functions which it implements
19578 to always fail with ENOSYS. Some functions are actually named
19579 something starting with __ and the normal name is an alias. */
19580 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
19588 if { (eval echo configure:19589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19590 eval "ac_cv_func_dbm_open=yes"
19592 echo "configure: failed program was:" >&5
19593 cat conftest.$ac_ext >&5
19595 eval "ac_cv_func_dbm_open=no"
19600 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
19601 echo "$ac_t""yes" 1>&6
19604 echo "$ac_t""no" 1>&6
19606 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
19607 echo "configure:19608: checking for dbm_open in -lndbm" >&5
19608 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
19609 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19610 echo $ac_n "(cached) $ac_c" 1>&6
19612 ac_save_LIBS="$LIBS"
19613 LIBS="-lndbm $LIBS"
19614 cat > conftest.$ac_ext <<EOF
19615 #line 19616 "configure"
19616 #include "confdefs.h"
19617 /* Override any gcc2 internal prototype to avoid an error. */
19618 /* We use char because int might match the return type of a gcc2
19619 builtin and then its argument prototype would still apply. */
19626 if { (eval echo configure:19627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19628 eval "ac_cv_lib_$ac_lib_var=yes"
19630 echo "configure: failed program was:" >&5
19631 cat conftest.$ac_ext >&5
19633 eval "ac_cv_lib_$ac_lib_var=no"
19636 LIBS="$ac_save_LIBS"
19639 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19640 echo "$ac_t""yes" 1>&6
19641 ol_cv_lib_ndbm=-lndbm
19643 echo "$ac_t""no" 1>&6
19645 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
19646 echo "configure:19647: checking for dbm_open in -ldbm" >&5
19647 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
19648 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19649 echo $ac_n "(cached) $ac_c" 1>&6
19651 ac_save_LIBS="$LIBS"
19653 cat > conftest.$ac_ext <<EOF
19654 #line 19655 "configure"
19655 #include "confdefs.h"
19656 /* Override any gcc2 internal prototype to avoid an error. */
19657 /* We use char because int might match the return type of a gcc2
19658 builtin and then its argument prototype would still apply. */
19665 if { (eval echo configure:19666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19667 eval "ac_cv_lib_$ac_lib_var=yes"
19669 echo "configure: failed program was:" >&5
19670 cat conftest.$ac_ext >&5
19672 eval "ac_cv_lib_$ac_lib_var=no"
19675 LIBS="$ac_save_LIBS"
19678 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19679 echo "$ac_t""yes" 1>&6
19680 ol_cv_lib_ndbm=-ldbm
19682 echo "$ac_t""no" 1>&6
19695 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
19698 for ac_hdr in ndbm.h
19700 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19701 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19702 echo "configure:19703: checking for $ac_hdr" >&5
19703 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19704 echo $ac_n "(cached) $ac_c" 1>&6
19706 cat > conftest.$ac_ext <<EOF
19707 #line 19708 "configure"
19708 #include "confdefs.h"
19711 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19712 { (eval echo configure:19713: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19713 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19714 if test -z "$ac_err"; then
19716 eval "ac_cv_header_$ac_safe=yes"
19719 echo "configure: failed program was:" >&5
19720 cat conftest.$ac_ext >&5
19722 eval "ac_cv_header_$ac_safe=no"
19726 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19727 echo "$ac_t""yes" 1>&6
19728 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19729 cat >> confdefs.h <<EOF
19730 #define $ac_tr_hdr 1
19734 echo "$ac_t""no" 1>&6
19738 echo $ac_n "checking for db""... $ac_c" 1>&6
19739 echo "configure:19740: checking for db" >&5
19740 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
19741 echo $ac_n "(cached) $ac_c" 1>&6
19744 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
19752 echo "$ac_t""$ol_cv_ndbm" 1>&6
19753 if test $ol_cv_ndbm = yes ; then
19754 cat >> confdefs.h <<\EOF
19755 #define HAVE_NDBM 1
19761 if test $ol_cv_ndbm = yes ; then
19763 ol_with_ldbm_api=ndbm
19765 if test $ol_cv_lib_ndbm != yes ; then
19766 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
19771 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
19772 echo "configure: warning: could not find suitable LDBM backend" 1>&2
19773 if test $ol_enable_ldbm = yes ; then
19774 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
19777 echo "configure: warning: disabling LDBM" 1>&2
19782 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
19783 BUILD_LIBS_DYNAMIC=shared
19784 cat >> confdefs.h <<\EOF
19785 #define LDAP_LIBS_DYNAMIC 1
19790 BUILD_LIBS_DYNAMIC=static
19794 if test $ol_enable_wrappers != no ; then
19795 for ac_hdr in tcpd.h
19797 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19798 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19799 echo "configure:19800: checking for $ac_hdr" >&5
19800 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19801 echo $ac_n "(cached) $ac_c" 1>&6
19803 cat > conftest.$ac_ext <<EOF
19804 #line 19805 "configure"
19805 #include "confdefs.h"
19808 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19809 { (eval echo configure:19810: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19810 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19811 if test -z "$ac_err"; then
19813 eval "ac_cv_header_$ac_safe=yes"
19816 echo "configure: failed program was:" >&5
19817 cat conftest.$ac_ext >&5
19819 eval "ac_cv_header_$ac_safe=no"
19823 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19824 echo "$ac_t""yes" 1>&6
19825 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19826 cat >> confdefs.h <<EOF
19827 #define $ac_tr_hdr 1
19830 echo $ac_n "checking for TCP wrappers library""... $ac_c" 1>&6
19831 echo "configure:19832: checking for TCP wrappers library" >&5
19833 LIBS="$LIBS -lwrap"
19834 cat > conftest.$ac_ext <<EOF
19835 #line 19836 "configure"
19836 #include "confdefs.h"
19839 int allow_severity = 0;
19840 int deny_severity = 0;
19842 struct request_info *req;
19850 if { (eval echo configure:19851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19852 echo "$ac_t""-lwrap" 1>&6
19856 echo "configure: failed program was:" >&5
19857 cat conftest.$ac_ext >&5
19861 cat > conftest.$ac_ext <<EOF
19862 #line 19863 "configure"
19863 #include "confdefs.h"
19866 int allow_severity = 0;
19867 int deny_severity = 0;
19869 struct request_info *req;
19877 if { (eval echo configure:19878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19879 echo "$ac_t""-lwrap -lnsl" 1>&6
19881 LIBS="$save_LIBS -lnsl"
19883 echo "configure: failed program was:" >&5
19884 cat conftest.$ac_ext >&5
19887 echo "$ac_t""no" 1>&6
19895 echo "$ac_t""no" 1>&6
19901 if test $have_wrappers = yes ; then
19902 cat >> confdefs.h <<\EOF
19903 #define HAVE_TCPD 1
19907 elif test $ol_enable_wrappers = yes ; then
19908 { echo "configure: error: could not find TCP wrappers, select apppropriate options ore disable" 1>&2; exit 1; }
19910 echo "configure: warning: could not find TCP wrappers, support disabled" 1>&2
19915 if test $ol_enable_syslog != no ; then
19916 echo $ac_n "checking for openlog""... $ac_c" 1>&6
19917 echo "configure:19918: checking for openlog" >&5
19918 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
19919 echo $ac_n "(cached) $ac_c" 1>&6
19921 cat > conftest.$ac_ext <<EOF
19922 #line 19923 "configure"
19923 #include "confdefs.h"
19924 /* System header to define __stub macros and hopefully few prototypes,
19925 which can conflict with char openlog(); below. */
19926 #include <assert.h>
19927 /* Override any gcc2 internal prototype to avoid an error. */
19928 /* We use char because int might match the return type of a gcc2
19929 builtin and then its argument prototype would still apply. */
19935 /* The GNU C library defines this for functions which it implements
19936 to always fail with ENOSYS. Some functions are actually named
19937 something starting with __ and the normal name is an alias. */
19938 #if defined (__stub_openlog) || defined (__stub___openlog)
19946 if { (eval echo configure:19947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19948 eval "ac_cv_func_openlog=yes"
19950 echo "configure: failed program was:" >&5
19951 cat conftest.$ac_ext >&5
19953 eval "ac_cv_func_openlog=no"
19958 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
19959 echo "$ac_t""yes" 1>&6
19962 echo "$ac_t""no" 1>&6
19965 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
19966 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
19968 ol_enable_syslog=$ac_cv_func_openlog
19973 if test $ol_enable_sql != no ; then
19974 for ac_hdr in sql.h sqlext.h
19976 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19977 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19978 echo "configure:19979: checking for $ac_hdr" >&5
19979 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19980 echo $ac_n "(cached) $ac_c" 1>&6
19982 cat > conftest.$ac_ext <<EOF
19983 #line 19984 "configure"
19984 #include "confdefs.h"
19987 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19988 { (eval echo configure:19989: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19989 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19990 if test -z "$ac_err"; then
19992 eval "ac_cv_header_$ac_safe=yes"
19995 echo "configure: failed program was:" >&5
19996 cat conftest.$ac_ext >&5
19998 eval "ac_cv_header_$ac_safe=no"
20002 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20003 echo "$ac_t""yes" 1>&6
20004 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20005 cat >> confdefs.h <<EOF
20006 #define $ac_tr_hdr 1
20010 echo "$ac_t""no" 1>&6
20011 { echo "configure: error: could not locate SQL headers" 1>&2; exit 1; }
20017 echo $ac_n "checking for SQLDriverConnect in -liodbc""... $ac_c" 1>&6
20018 echo "configure:20019: checking for SQLDriverConnect in -liodbc" >&5
20019 ac_lib_var=`echo iodbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
20020 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20021 echo $ac_n "(cached) $ac_c" 1>&6
20023 ac_save_LIBS="$LIBS"
20024 LIBS="-liodbc $LIBS"
20025 cat > conftest.$ac_ext <<EOF
20026 #line 20027 "configure"
20027 #include "confdefs.h"
20028 /* Override any gcc2 internal prototype to avoid an error. */
20029 /* We use char because int might match the return type of a gcc2
20030 builtin and then its argument prototype would still apply. */
20031 char SQLDriverConnect();
20037 if { (eval echo configure:20038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20039 eval "ac_cv_lib_$ac_lib_var=yes"
20041 echo "configure: failed program was:" >&5
20042 cat conftest.$ac_ext >&5
20044 eval "ac_cv_lib_$ac_lib_var=no"
20047 LIBS="$ac_save_LIBS"
20050 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20051 echo "$ac_t""yes" 1>&6
20054 echo "$ac_t""no" 1>&6
20058 if test $have_iodbc = yes ; then
20059 ol_link_sql="-liodbc"
20061 echo $ac_n "checking for SQLDriverConnect in -lodbc""... $ac_c" 1>&6
20062 echo "configure:20063: checking for SQLDriverConnect in -lodbc" >&5
20063 ac_lib_var=`echo odbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
20064 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20065 echo $ac_n "(cached) $ac_c" 1>&6
20067 ac_save_LIBS="$LIBS"
20068 LIBS="-lodbc $LIBS"
20069 cat > conftest.$ac_ext <<EOF
20070 #line 20071 "configure"
20071 #include "confdefs.h"
20072 /* Override any gcc2 internal prototype to avoid an error. */
20073 /* We use char because int might match the return type of a gcc2
20074 builtin and then its argument prototype would still apply. */
20075 char SQLDriverConnect();
20081 if { (eval echo configure:20082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20083 eval "ac_cv_lib_$ac_lib_var=yes"
20085 echo "configure: failed program was:" >&5
20086 cat conftest.$ac_ext >&5
20088 eval "ac_cv_lib_$ac_lib_var=no"
20091 LIBS="$ac_save_LIBS"
20094 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20095 echo "$ac_t""yes" 1>&6
20098 echo "$ac_t""no" 1>&6
20102 if test $have_odbc = yes ; then
20103 ol_link_sql="-lodbc"
20107 if test $ol_link_sql != no ; then
20108 SLAPD_SQL_LIBS="$ol_link_sql"
20110 elif test $ol_enable_sql != auto ; then
20111 { echo "configure: error: could not locate suitable ODBC library" 1>&2; exit 1; }
20115 if test $ol_enable_tcl != no ; then
20116 for ac_hdr in tcl.h
20118 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20119 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20120 echo "configure:20121: checking for $ac_hdr" >&5
20121 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20122 echo $ac_n "(cached) $ac_c" 1>&6
20124 cat > conftest.$ac_ext <<EOF
20125 #line 20126 "configure"
20126 #include "confdefs.h"
20129 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20130 { (eval echo configure:20131: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20131 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20132 if test -z "$ac_err"; then
20134 eval "ac_cv_header_$ac_safe=yes"
20137 echo "configure: failed program was:" >&5
20138 cat conftest.$ac_ext >&5
20140 eval "ac_cv_header_$ac_safe=no"
20144 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20145 echo "$ac_t""yes" 1>&6
20146 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20147 cat >> confdefs.h <<EOF
20148 #define $ac_tr_hdr 1
20152 echo "$ac_t""no" 1>&6
20157 if test $ac_cv_header_tcl_h != yes ; then
20160 for lib in tcl tcl7.6 tcl8.0 tcl8.2 ; do
20161 echo $ac_n "checking for main in -l$lib""... $ac_c" 1>&6
20162 echo "configure:20163: checking for main in -l$lib" >&5
20163 ac_lib_var=`echo $lib'_'main | sed 'y%./+-:%__p__%'`
20164 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20165 echo $ac_n "(cached) $ac_c" 1>&6
20167 ac_save_LIBS="$LIBS"
20168 LIBS="-l$lib $LIBS"
20169 cat > conftest.$ac_ext <<EOF
20170 #line 20171 "configure"
20171 #include "confdefs.h"
20177 if { (eval echo configure:20178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20179 eval "ac_cv_lib_$ac_lib_var=yes"
20181 echo "configure: failed program was:" >&5
20182 cat conftest.$ac_ext >&5
20184 eval "ac_cv_lib_$ac_lib_var=no"
20187 LIBS="$ac_save_LIBS"
20190 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20191 echo "$ac_t""yes" 1>&6
20193 if test x"$ol_with_tcl_module" = "xstatic" ; then
20194 SLAPD_LIBS="$SLAPD_LIBS -l${lib}"
20196 MOD_TCL_LIB="-l${lib}"
20199 echo "$ac_t""no" 1>&6
20206 if test $have_tcl != yes ; then
20207 echo "configure: warning: could not find -ltcl" 1>&2
20208 if test $ol_enable_tcl = yes ; then
20209 { echo "configure: error: could not find tcl, select appropriate options or disable" 1>&2; exit 1; }
20217 for ac_hdr in termcap.h ncurses.h
20219 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20220 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20221 echo "configure:20222: checking for $ac_hdr" >&5
20222 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20223 echo $ac_n "(cached) $ac_c" 1>&6
20225 cat > conftest.$ac_ext <<EOF
20226 #line 20227 "configure"
20227 #include "confdefs.h"
20230 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20231 { (eval echo configure:20232: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20232 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20233 if test -z "$ac_err"; then
20235 eval "ac_cv_header_$ac_safe=yes"
20238 echo "configure: failed program was:" >&5
20239 cat conftest.$ac_ext >&5
20241 eval "ac_cv_header_$ac_safe=no"
20245 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20246 echo "$ac_t""yes" 1>&6
20247 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20248 cat >> confdefs.h <<EOF
20249 #define $ac_tr_hdr 1
20253 echo "$ac_t""no" 1>&6
20258 if test $ol_link_termcap = no ; then
20259 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
20260 echo "configure:20261: checking for tputs in -ltermcap" >&5
20261 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-:%__p__%'`
20262 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20263 echo $ac_n "(cached) $ac_c" 1>&6
20265 ac_save_LIBS="$LIBS"
20266 LIBS="-ltermcap $LIBS"
20267 cat > conftest.$ac_ext <<EOF
20268 #line 20269 "configure"
20269 #include "confdefs.h"
20270 /* Override any gcc2 internal prototype to avoid an error. */
20271 /* We use char because int might match the return type of a gcc2
20272 builtin and then its argument prototype would still apply. */
20279 if { (eval echo configure:20280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20281 eval "ac_cv_lib_$ac_lib_var=yes"
20283 echo "configure: failed program was:" >&5
20284 cat conftest.$ac_ext >&5
20286 eval "ac_cv_lib_$ac_lib_var=no"
20289 LIBS="$ac_save_LIBS"
20292 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20293 echo "$ac_t""yes" 1>&6
20296 echo "$ac_t""no" 1>&6
20300 if test $have_termcap = yes ; then
20301 cat >> confdefs.h <<\EOF
20302 #define HAVE_TERMCAP 1
20305 ol_link_termcap=yes
20306 TERMCAP_LIBS=-ltermcap
20310 if test $ol_link_termcap = no ; then
20311 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
20312 echo "configure:20313: checking for initscr in -lncurses" >&5
20313 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-:%__p__%'`
20314 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20315 echo $ac_n "(cached) $ac_c" 1>&6
20317 ac_save_LIBS="$LIBS"
20318 LIBS="-lncurses $LIBS"
20319 cat > conftest.$ac_ext <<EOF
20320 #line 20321 "configure"
20321 #include "confdefs.h"
20322 /* Override any gcc2 internal prototype to avoid an error. */
20323 /* We use char because int might match the return type of a gcc2
20324 builtin and then its argument prototype would still apply. */
20331 if { (eval echo configure:20332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20333 eval "ac_cv_lib_$ac_lib_var=yes"
20335 echo "configure: failed program was:" >&5
20336 cat conftest.$ac_ext >&5
20338 eval "ac_cv_lib_$ac_lib_var=no"
20341 LIBS="$ac_save_LIBS"
20344 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20345 echo "$ac_t""yes" 1>&6
20348 echo "$ac_t""no" 1>&6
20352 if test $have_ncurses = yes ; then
20353 cat >> confdefs.h <<\EOF
20354 #define HAVE_NCURSES 1
20357 ol_link_termcap=yes
20358 TERMCAP_LIBS=-lncurses
20362 if test $ol_link_termcap = no ; then
20363 cat >> confdefs.h <<\EOF
20364 #define NO_TERMCAP 1
20372 if test $ol_with_cyrus_sasl != no ; then
20373 for ac_hdr in sasl/sasl.h sasl.h
20375 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20376 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20377 echo "configure:20378: checking for $ac_hdr" >&5
20378 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20379 echo $ac_n "(cached) $ac_c" 1>&6
20381 cat > conftest.$ac_ext <<EOF
20382 #line 20383 "configure"
20383 #include "confdefs.h"
20386 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20387 { (eval echo configure:20388: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20388 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20389 if test -z "$ac_err"; then
20391 eval "ac_cv_header_$ac_safe=yes"
20394 echo "configure: failed program was:" >&5
20395 cat conftest.$ac_ext >&5
20397 eval "ac_cv_header_$ac_safe=no"
20401 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20402 echo "$ac_t""yes" 1>&6
20403 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20404 cat >> confdefs.h <<EOF
20405 #define $ac_tr_hdr 1
20409 echo "$ac_t""no" 1>&6
20414 if test $ac_cv_header_sasl_sasl_h = yes -o $ac_cv_header_sasl_h = yes; then
20415 echo $ac_n "checking for sasl_client_init in -lsasl2""... $ac_c" 1>&6
20416 echo "configure:20417: checking for sasl_client_init in -lsasl2" >&5
20417 ac_lib_var=`echo sasl2'_'sasl_client_init | sed 'y%./+-:%__p__%'`
20418 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20419 echo $ac_n "(cached) $ac_c" 1>&6
20421 ac_save_LIBS="$LIBS"
20422 LIBS="-lsasl2 $LIBS"
20423 cat > conftest.$ac_ext <<EOF
20424 #line 20425 "configure"
20425 #include "confdefs.h"
20426 /* Override any gcc2 internal prototype to avoid an error. */
20427 /* We use char because int might match the return type of a gcc2
20428 builtin and then its argument prototype would still apply. */
20429 char sasl_client_init();
20435 if { (eval echo configure:20436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20437 eval "ac_cv_lib_$ac_lib_var=yes"
20439 echo "configure: failed program was:" >&5
20440 cat conftest.$ac_ext >&5
20442 eval "ac_cv_lib_$ac_lib_var=no"
20445 LIBS="$ac_save_LIBS"
20448 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20449 echo "$ac_t""yes" 1>&6
20450 ol_link_sasl="-lsasl2"
20452 echo "$ac_t""no" 1>&6
20453 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
20454 echo "configure:20455: checking for sasl_client_init in -lsasl" >&5
20455 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
20456 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20457 echo $ac_n "(cached) $ac_c" 1>&6
20459 ac_save_LIBS="$LIBS"
20460 LIBS="-lsasl $LIBS"
20461 cat > conftest.$ac_ext <<EOF
20462 #line 20463 "configure"
20463 #include "confdefs.h"
20464 /* Override any gcc2 internal prototype to avoid an error. */
20465 /* We use char because int might match the return type of a gcc2
20466 builtin and then its argument prototype would still apply. */
20467 char sasl_client_init();
20473 if { (eval echo configure:20474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20475 eval "ac_cv_lib_$ac_lib_var=yes"
20477 echo "configure: failed program was:" >&5
20478 cat conftest.$ac_ext >&5
20480 eval "ac_cv_lib_$ac_lib_var=no"
20483 LIBS="$ac_save_LIBS"
20486 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20487 echo "$ac_t""yes" 1>&6
20488 ol_link_sasl="-lsasl"
20490 echo "$ac_t""no" 1>&6
20497 if test $ol_link_sasl = no ; then
20498 if test $ol_with_cyrus_sasl != auto ; then
20499 { echo "configure: error: Could not locate Cyrus SASL" 1>&2; exit 1; }
20501 echo "configure: warning: Could not locate Cyrus SASL" 1>&2
20502 echo "configure: warning: SASL authentication not supported!" 1>&2
20503 if test $ol_link_tls = no ; then
20504 echo "configure: warning: Strong authentication not supported!" 1>&2
20508 echo $ac_n "checking Cyrus SASL library version""... $ac_c" 1>&6
20509 echo "configure:20510: checking Cyrus SASL library version" >&5
20510 if eval "test \"\${ol_cv_sasl_compat+set}\" = set"; then
20511 echo $ac_n "(cached) $ac_c" 1>&6
20514 cat > conftest.$ac_ext <<EOF
20515 #line 20516 "configure"
20516 #include "confdefs.h"
20518 #ifdef HAVE_SASL_SASL_H
20519 #include <sasl/sasl.h>
20524 /* require 2.1.3 or later */
20525 #if SASL_VERSION_MAJOR == 1 && SASL_VERSION_MINOR >= 5
20526 char *__sasl_compat = "1.5.x okay";
20527 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
20528 __sasl_compat "2.2+ or better okay (we guess)";
20529 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
20530 && SASL_VERSION_STEP >=3
20531 __sasl_compat = "2.1.3+ or better okay";
20535 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20536 egrep "__sasl_compat" >/dev/null 2>&1; then
20538 ol_cv_sasl_compat=yes
20541 ol_cv_sasl_compat=no
20547 echo "$ac_t""$ol_cv_sasl_compat" 1>&6
20549 if test $ol_cv_sasl_compat = no ; then
20551 { echo "configure: error: Cyrus SASL library located but incompatible" 1>&2; exit 1; }
20554 cat >> confdefs.h <<\EOF
20555 #define HAVE_CYRUS_SASL 1
20558 SASL_LIBS="$ol_link_sasl"
20559 if test $ol_enable_spasswd != no ; then
20560 ol_link_spasswd=yes
20563 ac_save_LIBS="$LIBS"
20564 LIBS="$LIBS $ol_link_sasl"
20565 echo $ac_n "checking for sasl_version""... $ac_c" 1>&6
20566 echo "configure:20567: checking for sasl_version" >&5
20567 if eval "test \"\${ac_cv_func_sasl_version+set}\" = set"; then
20568 echo $ac_n "(cached) $ac_c" 1>&6
20570 cat > conftest.$ac_ext <<EOF
20571 #line 20572 "configure"
20572 #include "confdefs.h"
20573 /* System header to define __stub macros and hopefully few prototypes,
20574 which can conflict with char sasl_version(); below. */
20575 #include <assert.h>
20576 /* Override any gcc2 internal prototype to avoid an error. */
20577 /* We use char because int might match the return type of a gcc2
20578 builtin and then its argument prototype would still apply. */
20579 char sasl_version();
20584 /* The GNU C library defines this for functions which it implements
20585 to always fail with ENOSYS. Some functions are actually named
20586 something starting with __ and the normal name is an alias. */
20587 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
20595 if { (eval echo configure:20596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20597 eval "ac_cv_func_sasl_version=yes"
20599 echo "configure: failed program was:" >&5
20600 cat conftest.$ac_ext >&5
20602 eval "ac_cv_func_sasl_version=no"
20607 if eval "test \"`echo '$ac_cv_func_'sasl_version`\" = yes"; then
20608 echo "$ac_t""yes" 1>&6
20609 cat >> confdefs.h <<\EOF
20610 #define HAVE_SASL_VERSION 1
20614 echo "$ac_t""no" 1>&6
20617 LIBS="$ac_save_LIBS"
20621 echo "configure: warning: SASL authentication not supported!" 1>&2
20622 if test $ol_link_tls = no ; then
20623 echo "configure: warning: Strong authentication not supported!" 1>&2
20627 if test $cross_compiling != yes -a "$ac_cv_mingw32" != yes ; then
20629 if test -r /dev/urandom ; then
20630 dev="/dev/urandom";
20631 elif test -r /idev/urandom ; then
20632 dev="/idev/urandom";
20633 elif test -r /dev/srandom ; then
20634 dev="/dev/srandom";
20635 elif test -r /dev/random ; then
20637 elif test -r /idev/random ; then
20638 dev="/idev/random";
20641 if test $dev != no ; then
20642 cat >> confdefs.h <<EOF
20643 #define URANDOM_DEVICE "$dev"
20650 if test $ol_with_fetch != no ; then
20652 LIBS="-lfetch -lcom_err $LIBS"
20653 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
20654 echo "configure:20655: checking fetch(3) library" >&5
20655 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
20656 echo $ac_n "(cached) $ac_c" 1>&6
20659 cat > conftest.$ac_ext <<EOF
20660 #line 20661 "configure"
20661 #include "confdefs.h"
20663 #include <sys/param.h>
20667 struct url *u = fetchParseURL("file:///");
20670 if { (eval echo configure:20671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20672 ol_cv_lib_fetch=yes
20674 echo "configure: failed program was:" >&5
20675 cat conftest.$ac_ext >&5
20682 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
20684 if test $ol_cv_lib_fetch != no ; then
20685 ol_link_fetch="-lfetch -lcom_err"
20686 cat >> confdefs.h <<\EOF
20687 #define HAVE_FETCH 1
20693 if test $ol_cv_lib_fetch != no ; then
20694 LDIF_LIBS="$LDIF_LIBS $ol_link_fetch"
20695 ol_link_fetch=freebsd
20697 elif test $ol_with_fetch != auto ; then
20698 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
20702 if test $ol_enable_crypt != no ; then
20704 LIBS="$TLS_LIBS $LIBS"
20706 echo $ac_n "checking for crypt""... $ac_c" 1>&6
20707 echo "configure:20708: checking for crypt" >&5
20708 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
20709 echo $ac_n "(cached) $ac_c" 1>&6
20711 cat > conftest.$ac_ext <<EOF
20712 #line 20713 "configure"
20713 #include "confdefs.h"
20714 /* System header to define __stub macros and hopefully few prototypes,
20715 which can conflict with char crypt(); below. */
20716 #include <assert.h>
20717 /* Override any gcc2 internal prototype to avoid an error. */
20718 /* We use char because int might match the return type of a gcc2
20719 builtin and then its argument prototype would still apply. */
20725 /* The GNU C library defines this for functions which it implements
20726 to always fail with ENOSYS. Some functions are actually named
20727 something starting with __ and the normal name is an alias. */
20728 #if defined (__stub_crypt) || defined (__stub___crypt)
20736 if { (eval echo configure:20737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20738 eval "ac_cv_func_crypt=yes"
20740 echo "configure: failed program was:" >&5
20741 cat conftest.$ac_ext >&5
20743 eval "ac_cv_func_crypt=no"
20748 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
20749 echo "$ac_t""yes" 1>&6
20752 echo "$ac_t""no" 1>&6
20755 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
20756 echo "configure:20757: checking for crypt in -lcrypt" >&5
20757 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
20758 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20759 echo $ac_n "(cached) $ac_c" 1>&6
20761 ac_save_LIBS="$LIBS"
20762 LIBS="-lcrypt $LIBS"
20763 cat > conftest.$ac_ext <<EOF
20764 #line 20765 "configure"
20765 #include "confdefs.h"
20766 /* Override any gcc2 internal prototype to avoid an error. */
20767 /* We use char because int might match the return type of a gcc2
20768 builtin and then its argument prototype would still apply. */
20775 if { (eval echo configure:20776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20777 eval "ac_cv_lib_$ac_lib_var=yes"
20779 echo "configure: failed program was:" >&5
20780 cat conftest.$ac_ext >&5
20782 eval "ac_cv_lib_$ac_lib_var=no"
20785 LIBS="$ac_save_LIBS"
20788 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20789 echo "$ac_t""yes" 1>&6
20790 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
20793 echo "$ac_t""no" 1>&6
20802 if test $have_crypt = yes ; then
20803 cat >> confdefs.h <<\EOF
20804 #define HAVE_CRYPT 1
20808 echo "configure: warning: could not find crypt" 1>&2
20809 if test $ol_enable_crypt = yes ; then
20810 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
20813 echo "configure: warning: disabling crypt support" 1>&2
20818 if test $ol_enable_proctitle != no ; then
20819 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
20820 echo "configure:20821: checking for setproctitle" >&5
20821 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
20822 echo $ac_n "(cached) $ac_c" 1>&6
20824 cat > conftest.$ac_ext <<EOF
20825 #line 20826 "configure"
20826 #include "confdefs.h"
20827 /* System header to define __stub macros and hopefully few prototypes,
20828 which can conflict with char setproctitle(); below. */
20829 #include <assert.h>
20830 /* Override any gcc2 internal prototype to avoid an error. */
20831 /* We use char because int might match the return type of a gcc2
20832 builtin and then its argument prototype would still apply. */
20833 char setproctitle();
20838 /* The GNU C library defines this for functions which it implements
20839 to always fail with ENOSYS. Some functions are actually named
20840 something starting with __ and the normal name is an alias. */
20841 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
20849 if { (eval echo configure:20850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20851 eval "ac_cv_func_setproctitle=yes"
20853 echo "configure: failed program was:" >&5
20854 cat conftest.$ac_ext >&5
20856 eval "ac_cv_func_setproctitle=no"
20861 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
20862 echo "$ac_t""yes" 1>&6
20863 have_setproctitle=yes
20865 echo "$ac_t""no" 1>&6
20867 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
20868 echo "configure:20869: checking for setproctitle in -lutil" >&5
20869 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
20870 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20871 echo $ac_n "(cached) $ac_c" 1>&6
20873 ac_save_LIBS="$LIBS"
20874 LIBS="-lutil $LIBS"
20875 cat > conftest.$ac_ext <<EOF
20876 #line 20877 "configure"
20877 #include "confdefs.h"
20878 /* Override any gcc2 internal prototype to avoid an error. */
20879 /* We use char because int might match the return type of a gcc2
20880 builtin and then its argument prototype would still apply. */
20881 char setproctitle();
20887 if { (eval echo configure:20888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20889 eval "ac_cv_lib_$ac_lib_var=yes"
20891 echo "configure: failed program was:" >&5
20892 cat conftest.$ac_ext >&5
20894 eval "ac_cv_lib_$ac_lib_var=no"
20897 LIBS="$ac_save_LIBS"
20900 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20901 echo "$ac_t""yes" 1>&6
20902 have_setproctitle=yes
20903 LUTIL_LIBS="$LUTIL_LIBS -lutil"
20905 echo "$ac_t""no" 1>&6
20906 have_setproctitle=no
20907 LIBOBJS="$LIBOBJS setproctitle.o"
20908 LIBSRCS="$LIBSRCS setproctitle.c"
20914 if test $have_setproctitle = yes ; then
20915 cat >> confdefs.h <<\EOF
20916 #define HAVE_SETPROCTITLE 1
20922 if test $ol_enable_slp != no ; then
20923 for ac_hdr in slp.h
20925 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20926 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20927 echo "configure:20928: checking for $ac_hdr" >&5
20928 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20929 echo $ac_n "(cached) $ac_c" 1>&6
20931 cat > conftest.$ac_ext <<EOF
20932 #line 20933 "configure"
20933 #include "confdefs.h"
20936 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20937 { (eval echo configure:20938: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20938 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20939 if test -z "$ac_err"; then
20941 eval "ac_cv_header_$ac_safe=yes"
20944 echo "configure: failed program was:" >&5
20945 cat conftest.$ac_ext >&5
20947 eval "ac_cv_header_$ac_safe=no"
20951 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20952 echo "$ac_t""yes" 1>&6
20953 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20954 cat >> confdefs.h <<EOF
20955 #define $ac_tr_hdr 1
20959 echo "$ac_t""no" 1>&6
20964 if test $ac_cv_header_slp_h = yes ; then
20965 echo $ac_n "checking for SLPOpen in -lslp""... $ac_c" 1>&6
20966 echo "configure:20967: checking for SLPOpen in -lslp" >&5
20967 ac_lib_var=`echo slp'_'SLPOpen | sed 'y%./+-:%__p__%'`
20968 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20969 echo $ac_n "(cached) $ac_c" 1>&6
20971 ac_save_LIBS="$LIBS"
20973 cat > conftest.$ac_ext <<EOF
20974 #line 20975 "configure"
20975 #include "confdefs.h"
20976 /* Override any gcc2 internal prototype to avoid an error. */
20977 /* We use char because int might match the return type of a gcc2
20978 builtin and then its argument prototype would still apply. */
20985 if { (eval echo configure:20986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20987 eval "ac_cv_lib_$ac_lib_var=yes"
20989 echo "configure: failed program was:" >&5
20990 cat conftest.$ac_ext >&5
20992 eval "ac_cv_lib_$ac_lib_var=no"
20995 LIBS="$ac_save_LIBS"
20998 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20999 echo "$ac_t""yes" 1>&6
21002 echo "$ac_t""no" 1>&6
21006 if test $have_slp = yes ; then
21007 cat >> confdefs.h <<\EOF
21011 SLAPD_SLP_LIBS=-lslp
21014 elif test $ol_enable_slp = yes ; then
21015 { echo "configure: error: SLP not found" 1>&2; exit 1; }
21019 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
21020 echo "configure:21021: checking for ANSI C header files" >&5
21021 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
21022 echo $ac_n "(cached) $ac_c" 1>&6
21024 cat > conftest.$ac_ext <<EOF
21025 #line 21026 "configure"
21026 #include "confdefs.h"
21027 #include <stdlib.h>
21028 #include <stdarg.h>
21029 #include <string.h>
21032 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21033 { (eval echo configure:21034: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21034 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21035 if test -z "$ac_err"; then
21037 ac_cv_header_stdc=yes
21040 echo "configure: failed program was:" >&5
21041 cat conftest.$ac_ext >&5
21043 ac_cv_header_stdc=no
21047 if test $ac_cv_header_stdc = yes; then
21048 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21049 cat > conftest.$ac_ext <<EOF
21050 #line 21051 "configure"
21051 #include "confdefs.h"
21052 #include <string.h>
21054 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21055 egrep "memchr" >/dev/null 2>&1; then
21059 ac_cv_header_stdc=no
21065 if test $ac_cv_header_stdc = yes; then
21066 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21067 cat > conftest.$ac_ext <<EOF
21068 #line 21069 "configure"
21069 #include "confdefs.h"
21070 #include <stdlib.h>
21072 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21073 egrep "free" >/dev/null 2>&1; then
21077 ac_cv_header_stdc=no
21083 if test $ac_cv_header_stdc = yes; then
21084 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21085 if test "$cross_compiling" = yes; then
21088 cat > conftest.$ac_ext <<EOF
21089 #line 21090 "configure"
21090 #include "confdefs.h"
21092 #if ((' ' & 0x0FF) == 0x020)
21093 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21094 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21096 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
21097 || ('j' <= (c) && (c) <= 'r') \
21098 || ('s' <= (c) && (c) <= 'z'))
21099 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21101 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21102 int main () { int i; for (i = 0; i < 256; i++)
21103 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
21107 if { (eval echo configure:21108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21111 echo "configure: failed program was:" >&5
21112 cat conftest.$ac_ext >&5
21114 ac_cv_header_stdc=no
21122 echo "$ac_t""$ac_cv_header_stdc" 1>&6
21123 if test $ac_cv_header_stdc = yes; then
21124 cat >> confdefs.h <<\EOF
21125 #define STDC_HEADERS 1
21130 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
21131 echo "configure:21132: checking for mode_t" >&5
21132 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
21133 echo $ac_n "(cached) $ac_c" 1>&6
21135 cat > conftest.$ac_ext <<EOF
21136 #line 21137 "configure"
21137 #include "confdefs.h"
21138 #include <sys/types.h>
21140 #include <stdlib.h>
21141 #include <stddef.h>
21145 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21146 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21148 eval "ac_cv_type_mode_t=yes"
21151 eval "ac_cv_type_mode_t=no"
21156 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
21157 echo "$ac_t""yes" 1>&6
21159 echo "$ac_t""no" 1>&6
21160 cat >> confdefs.h <<EOF
21166 echo $ac_n "checking for off_t""... $ac_c" 1>&6
21167 echo "configure:21168: checking for off_t" >&5
21168 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
21169 echo $ac_n "(cached) $ac_c" 1>&6
21171 cat > conftest.$ac_ext <<EOF
21172 #line 21173 "configure"
21173 #include "confdefs.h"
21174 #include <sys/types.h>
21176 #include <stdlib.h>
21177 #include <stddef.h>
21181 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21182 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21184 eval "ac_cv_type_off_t=yes"
21187 eval "ac_cv_type_off_t=no"
21192 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
21193 echo "$ac_t""yes" 1>&6
21195 echo "$ac_t""no" 1>&6
21196 cat >> confdefs.h <<EOF
21202 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
21203 echo "configure:21204: checking for pid_t" >&5
21204 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
21205 echo $ac_n "(cached) $ac_c" 1>&6
21207 cat > conftest.$ac_ext <<EOF
21208 #line 21209 "configure"
21209 #include "confdefs.h"
21210 #include <sys/types.h>
21212 #include <stdlib.h>
21213 #include <stddef.h>
21217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21218 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21220 eval "ac_cv_type_pid_t=yes"
21223 eval "ac_cv_type_pid_t=no"
21228 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
21229 echo "$ac_t""yes" 1>&6
21231 echo "$ac_t""no" 1>&6
21232 cat >> confdefs.h <<EOF
21238 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
21239 echo "configure:21240: checking for ptrdiff_t" >&5
21240 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
21241 echo $ac_n "(cached) $ac_c" 1>&6
21243 cat > conftest.$ac_ext <<EOF
21244 #line 21245 "configure"
21245 #include "confdefs.h"
21246 #include <stddef.h>
21251 if { (eval echo configure:21252: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21253 am_cv_type_ptrdiff_t=yes
21255 echo "configure: failed program was:" >&5
21256 cat conftest.$ac_ext >&5
21258 am_cv_type_ptrdiff_t=no
21263 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
21264 if test $am_cv_type_ptrdiff_t = yes; then
21265 cat >> confdefs.h <<\EOF
21266 #define HAVE_PTRDIFF_T 1
21271 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
21272 echo "configure:21273: checking return type of signal handlers" >&5
21273 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
21274 echo $ac_n "(cached) $ac_c" 1>&6
21276 cat > conftest.$ac_ext <<EOF
21277 #line 21278 "configure"
21278 #include "confdefs.h"
21279 #include <sys/types.h>
21280 #include <signal.h>
21285 extern "C" void (*signal (int, void (*)(int)))(int);
21287 void (*signal ()) ();
21294 if { (eval echo configure:21295: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21296 ac_cv_type_signal=void
21298 echo "configure: failed program was:" >&5
21299 cat conftest.$ac_ext >&5
21301 ac_cv_type_signal=int
21306 echo "$ac_t""$ac_cv_type_signal" 1>&6
21307 cat >> confdefs.h <<EOF
21308 #define RETSIGTYPE $ac_cv_type_signal
21312 echo $ac_n "checking for size_t""... $ac_c" 1>&6
21313 echo "configure:21314: checking for size_t" >&5
21314 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
21315 echo $ac_n "(cached) $ac_c" 1>&6
21317 cat > conftest.$ac_ext <<EOF
21318 #line 21319 "configure"
21319 #include "confdefs.h"
21320 #include <sys/types.h>
21322 #include <stdlib.h>
21323 #include <stddef.h>
21327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21328 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21330 eval "ac_cv_type_size_t=yes"
21333 eval "ac_cv_type_size_t=no"
21338 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
21339 echo "$ac_t""yes" 1>&6
21341 echo "$ac_t""no" 1>&6
21342 cat >> confdefs.h <<EOF
21343 #define size_t unsigned
21349 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
21350 echo "configure:21351: checking for ssize_t" >&5
21351 if eval "test \"\${ac_cv_type_ssize_t+set}\" = set"; then
21352 echo $ac_n "(cached) $ac_c" 1>&6
21354 cat > conftest.$ac_ext <<EOF
21355 #line 21356 "configure"
21356 #include "confdefs.h"
21357 #include <sys/types.h>
21359 #include <stdlib.h>
21360 #include <stddef.h>
21364 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21365 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21367 eval "ac_cv_type_ssize_t=yes"
21370 eval "ac_cv_type_ssize_t=no"
21375 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
21376 echo "$ac_t""yes" 1>&6
21378 echo "$ac_t""no" 1>&6
21379 cat >> confdefs.h <<EOF
21380 #define ssize_t signed int
21385 echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
21386 echo "configure:21387: checking for caddr_t" >&5
21387 if eval "test \"\${ac_cv_type_caddr_t+set}\" = set"; then
21388 echo $ac_n "(cached) $ac_c" 1>&6
21390 cat > conftest.$ac_ext <<EOF
21391 #line 21392 "configure"
21392 #include "confdefs.h"
21393 #include <sys/types.h>
21395 #include <stdlib.h>
21396 #include <stddef.h>
21400 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21401 egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21403 eval "ac_cv_type_caddr_t=yes"
21406 eval "ac_cv_type_caddr_t=no"
21411 if eval "test \"`echo '$ac_cv_type_'caddr_t`\" = yes"; then
21412 echo "$ac_t""yes" 1>&6
21414 echo "$ac_t""no" 1>&6
21415 cat >> confdefs.h <<EOF
21416 #define caddr_t char *
21422 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
21423 echo "configure:21424: checking for socklen_t" >&5
21424 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
21425 echo $ac_n "(cached) $ac_c" 1>&6
21427 cat > conftest.$ac_ext <<EOF
21428 #line 21429 "configure"
21429 #include "confdefs.h"
21431 #ifdef HAVE_SYS_TYPES_H
21432 #include <sys/types.h>
21434 #ifdef HAVE_SYS_SOCKET_H
21435 #include <sys/socket.h>
21442 if { (eval echo configure:21443: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21444 ol_cv_type_socklen_t=yes
21446 echo "configure: failed program was:" >&5
21447 cat conftest.$ac_ext >&5
21449 ol_cv_type_socklen_t=no
21454 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
21455 if test $ol_cv_type_socklen_t = no; then
21456 cat >> confdefs.h <<\EOF
21457 #define socklen_t int
21462 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
21463 echo "configure:21464: checking for member st_blksize in aggregate type struct stat" >&5
21464 if eval "test \"\${ac_cv_c_struct_member_st_blksize+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"
21470 #include <sys/types.h>
21471 #include <sys/stat.h>
21473 struct stat foo; foo.st_blksize;
21476 if { (eval echo configure:21477: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21478 ac_cv_c_struct_member_st_blksize=yes
21480 echo "configure: failed program was:" >&5
21481 cat conftest.$ac_ext >&5
21483 ac_cv_c_struct_member_st_blksize=no
21488 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
21489 st_blksize="$ac_cv_c_struct_member_st_blksize"
21490 if test $ac_cv_c_struct_member_st_blksize = yes; then
21491 cat >> confdefs.h <<\EOF
21492 #define HAVE_ST_BLKSIZE 1
21497 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
21498 echo "configure:21499: checking whether time.h and sys/time.h may both be included" >&5
21499 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
21500 echo $ac_n "(cached) $ac_c" 1>&6
21502 cat > conftest.$ac_ext <<EOF
21503 #line 21504 "configure"
21504 #include "confdefs.h"
21505 #include <sys/types.h>
21506 #include <sys/time.h>
21512 if { (eval echo configure:21513: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21514 ac_cv_header_time=yes
21516 echo "configure: failed program was:" >&5
21517 cat conftest.$ac_ext >&5
21519 ac_cv_header_time=no
21524 echo "$ac_t""$ac_cv_header_time" 1>&6
21525 if test $ac_cv_header_time = yes; then
21526 cat >> confdefs.h <<\EOF
21527 #define TIME_WITH_SYS_TIME 1
21532 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
21533 echo "configure:21534: checking whether struct tm is in sys/time.h or time.h" >&5
21534 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
21535 echo $ac_n "(cached) $ac_c" 1>&6
21537 cat > conftest.$ac_ext <<EOF
21538 #line 21539 "configure"
21539 #include "confdefs.h"
21540 #include <sys/types.h>
21543 struct tm *tp; tp->tm_sec;
21546 if { (eval echo configure:21547: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21548 ac_cv_struct_tm=time.h
21550 echo "configure: failed program was:" >&5
21551 cat conftest.$ac_ext >&5
21553 ac_cv_struct_tm=sys/time.h
21558 echo "$ac_t""$ac_cv_struct_tm" 1>&6
21559 if test $ac_cv_struct_tm = sys/time.h; then
21560 cat >> confdefs.h <<\EOF
21561 #define TM_IN_SYS_TIME 1
21566 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
21567 echo "configure:21568: checking for uid_t in sys/types.h" >&5
21568 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
21569 echo $ac_n "(cached) $ac_c" 1>&6
21571 cat > conftest.$ac_ext <<EOF
21572 #line 21573 "configure"
21573 #include "confdefs.h"
21574 #include <sys/types.h>
21576 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21577 egrep "uid_t" >/dev/null 2>&1; then
21579 ac_cv_type_uid_t=yes
21582 ac_cv_type_uid_t=no
21588 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
21589 if test $ac_cv_type_uid_t = no; then
21590 cat >> confdefs.h <<\EOF
21594 cat >> confdefs.h <<\EOF
21600 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
21601 echo "configure:21602: checking for sig_atomic_t" >&5
21602 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
21603 echo $ac_n "(cached) $ac_c" 1>&6
21605 cat > conftest.$ac_ext <<EOF
21606 #line 21607 "configure"
21607 #include "confdefs.h"
21608 #include <signal.h>
21610 sig_atomic_t atomic;
21613 if { (eval echo configure:21614: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21615 ol_cv_type_sig_atomic_t=yes
21617 echo "configure: failed program was:" >&5
21618 cat conftest.$ac_ext >&5
21620 ol_cv_type_sig_atomic_t=no
21625 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
21626 if test $ol_cv_type_sig_atomic_t = no; then
21627 cat >> confdefs.h <<\EOF
21628 #define sig_atomic_t int
21635 # test for pw_gecos in struct passwd
21636 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
21637 echo "configure:21638: checking struct passwd for pw_gecos" >&5
21638 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
21639 echo $ac_n "(cached) $ac_c" 1>&6
21642 cat > conftest.$ac_ext <<EOF
21643 #line 21644 "configure"
21644 #include "confdefs.h"
21649 pwd.pw_gecos = pwd.pw_name;
21653 if { (eval echo configure:21654: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21655 ol_cv_struct_passwd_pw_gecos=yes
21657 echo "configure: failed program was:" >&5
21658 cat conftest.$ac_ext >&5
21660 ol_cv_struct_passwd_pw_gecos=no
21665 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
21666 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
21667 cat >> confdefs.h <<\EOF
21668 #define HAVE_PW_GECOS 1
21673 # test for pw_passwd in struct passwd
21674 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
21675 echo "configure:21676: checking struct passwd for pw_passwd" >&5
21676 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
21677 echo $ac_n "(cached) $ac_c" 1>&6
21680 cat > conftest.$ac_ext <<EOF
21681 #line 21682 "configure"
21682 #include "confdefs.h"
21687 pwd.pw_passwd = pwd.pw_name;
21691 if { (eval echo configure:21692: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21693 ol_cv_struct_passwd_pw_passwd=yes
21695 echo "configure: failed program was:" >&5
21696 cat conftest.$ac_ext >&5
21698 ol_cv_struct_passwd_pw_passwd=no
21703 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
21704 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
21705 cat >> confdefs.h <<\EOF
21706 #define HAVE_PW_PASSWD 1
21712 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
21713 echo "configure:21714: checking if toupper() requires islower()" >&5
21714 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
21715 echo $ac_n "(cached) $ac_c" 1>&6
21718 if test "$cross_compiling" = yes; then
21719 ol_cv_c_upper_lower=safe
21721 cat > conftest.$ac_ext <<EOF
21722 #line 21723 "configure"
21723 #include "confdefs.h"
21728 if ('C' == toupper('C'))
21734 if { (eval echo configure:21735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21736 ol_cv_c_upper_lower=no
21738 echo "configure: failed program was:" >&5
21739 cat conftest.$ac_ext >&5
21741 ol_cv_c_upper_lower=yes
21748 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
21749 if test $ol_cv_c_upper_lower != no ; then
21750 cat >> confdefs.h <<\EOF
21751 #define C_UPPER_LOWER 1
21756 echo $ac_n "checking for working const""... $ac_c" 1>&6
21757 echo "configure:21758: checking for working const" >&5
21758 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
21759 echo $ac_n "(cached) $ac_c" 1>&6
21761 cat > conftest.$ac_ext <<EOF
21762 #line 21763 "configure"
21763 #include "confdefs.h"
21767 /* Ultrix mips cc rejects this. */
21768 typedef int charset[2]; const charset x;
21769 /* SunOS 4.1.1 cc rejects this. */
21770 char const *const *ccp;
21772 /* NEC SVR4.0.2 mips cc rejects this. */
21773 struct point {int x, y;};
21774 static struct point const zero = {0,0};
21775 /* AIX XL C 1.02.0.0 rejects this.
21776 It does not let you subtract one const X* pointer from another in an arm
21777 of an if-expression whose if-part is not a constant expression */
21778 const char *g = "string";
21779 ccp = &g + (g ? g-g : 0);
21780 /* HPUX 7.0 cc rejects these. */
21783 ccp = (char const *const *) p;
21784 { /* SCO 3.2v4 cc rejects this. */
21786 char const *s = 0 ? (char *) 0 : (char const *) 0;
21790 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21791 int x[] = {25, 17};
21792 const int *foo = &x[0];
21795 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21796 typedef const int *iptr;
21800 { /* AIX XL C 1.02.0.0 rejects this saying
21801 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21802 struct s { int j; const int *ap[3]; };
21803 struct s *b; b->j = 5;
21805 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21806 const int foo = 10;
21811 if { (eval echo configure:21812: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21815 echo "configure: failed program was:" >&5
21816 cat conftest.$ac_ext >&5
21823 echo "$ac_t""$ac_cv_c_const" 1>&6
21824 if test $ac_cv_c_const = no; then
21825 cat >> confdefs.h <<\EOF
21831 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
21832 echo "configure:21833: checking if compiler understands volatile" >&5
21833 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
21834 echo $ac_n "(cached) $ac_c" 1>&6
21836 cat > conftest.$ac_ext <<EOF
21837 #line 21838 "configure"
21838 #include "confdefs.h"
21841 volatile int a; int * volatile b = x ? &y : &z;
21842 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
21846 if { (eval echo configure:21847: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21848 ol_cv_c_volatile=yes
21850 echo "configure: failed program was:" >&5
21851 cat conftest.$ac_ext >&5
21853 ol_cv_c_volatile=no
21858 echo "$ac_t""$ol_cv_c_volatile" 1>&6
21859 if test $ol_cv_c_volatile = yes; then
21862 cat >> confdefs.h <<\EOF
21869 if test $cross_compiling = yes ; then
21870 cat >> confdefs.h <<\EOF
21871 #define CROSS_COMPILING 1
21875 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
21876 echo "configure:21877: checking whether byte ordering is bigendian" >&5
21877 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
21878 echo $ac_n "(cached) $ac_c" 1>&6
21880 ac_cv_c_bigendian=unknown
21881 # See if sys/param.h defines the BYTE_ORDER macro.
21882 cat > conftest.$ac_ext <<EOF
21883 #line 21884 "configure"
21884 #include "confdefs.h"
21885 #include <sys/types.h>
21886 #include <sys/param.h>
21889 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
21890 bogus endian macros
21894 if { (eval echo configure:21895: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21896 # It does; now see whether it defined to BIG_ENDIAN or not.
21897 cat > conftest.$ac_ext <<EOF
21898 #line 21899 "configure"
21899 #include "confdefs.h"
21900 #include <sys/types.h>
21901 #include <sys/param.h>
21904 #if BYTE_ORDER != BIG_ENDIAN
21909 if { (eval echo configure:21910: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21911 ac_cv_c_bigendian=yes
21913 echo "configure: failed program was:" >&5
21914 cat conftest.$ac_ext >&5
21916 ac_cv_c_bigendian=no
21920 echo "configure: failed program was:" >&5
21921 cat conftest.$ac_ext >&5
21924 if test $ac_cv_c_bigendian = unknown; then
21925 if test "$cross_compiling" = yes; then
21926 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
21928 cat > conftest.$ac_ext <<EOF
21929 #line 21930 "configure"
21930 #include "confdefs.h"
21932 /* Are we little or big endian? From Harbison&Steele. */
21936 char c[sizeof (long)];
21939 exit (u.c[sizeof (long) - 1] == 1);
21942 if { (eval echo configure:21943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21944 ac_cv_c_bigendian=no
21946 echo "configure: failed program was:" >&5
21947 cat conftest.$ac_ext >&5
21949 ac_cv_c_bigendian=yes
21957 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
21958 if test $ac_cv_c_bigendian = yes; then
21959 cat >> confdefs.h <<\EOF
21960 #define WORDS_BIGENDIAN 1
21967 echo $ac_n "checking size of short""... $ac_c" 1>&6
21968 echo "configure:21969: checking size of short" >&5
21969 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
21970 echo $ac_n "(cached) $ac_c" 1>&6
21972 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
21973 cat > conftest.$ac_ext <<EOF
21974 #line 21975 "configure"
21975 #include "confdefs.h"
21976 #include "confdefs.h"
21977 #include <sys/types.h>
21981 switch (0) case 0: case (sizeof (short) == $ac_size):;
21984 if { (eval echo configure:21985: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21986 ac_cv_sizeof_short=$ac_size
21988 echo "configure: failed program was:" >&5
21989 cat conftest.$ac_ext >&5
21992 if test x$ac_cv_sizeof_short != x ; then break; fi
21997 if test x$ac_cv_sizeof_short = x ; then
21998 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
22000 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
22001 cat >> confdefs.h <<EOF
22002 #define SIZEOF_SHORT $ac_cv_sizeof_short
22006 echo $ac_n "checking size of int""... $ac_c" 1>&6
22007 echo "configure:22008: checking size of int" >&5
22008 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
22009 echo $ac_n "(cached) $ac_c" 1>&6
22011 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22012 cat > conftest.$ac_ext <<EOF
22013 #line 22014 "configure"
22014 #include "confdefs.h"
22015 #include "confdefs.h"
22016 #include <sys/types.h>
22020 switch (0) case 0: case (sizeof (int) == $ac_size):;
22023 if { (eval echo configure:22024: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22025 ac_cv_sizeof_int=$ac_size
22027 echo "configure: failed program was:" >&5
22028 cat conftest.$ac_ext >&5
22031 if test x$ac_cv_sizeof_int != x ; then break; fi
22036 if test x$ac_cv_sizeof_int = x ; then
22037 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
22039 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
22040 cat >> confdefs.h <<EOF
22041 #define SIZEOF_INT $ac_cv_sizeof_int
22045 echo $ac_n "checking size of long""... $ac_c" 1>&6
22046 echo "configure:22047: checking size of long" >&5
22047 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
22048 echo $ac_n "(cached) $ac_c" 1>&6
22050 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22051 cat > conftest.$ac_ext <<EOF
22052 #line 22053 "configure"
22053 #include "confdefs.h"
22054 #include "confdefs.h"
22055 #include <sys/types.h>
22059 switch (0) case 0: case (sizeof (long) == $ac_size):;
22062 if { (eval echo configure:22063: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22064 ac_cv_sizeof_long=$ac_size
22066 echo "configure: failed program was:" >&5
22067 cat conftest.$ac_ext >&5
22070 if test x$ac_cv_sizeof_long != x ; then break; fi
22075 if test x$ac_cv_sizeof_long = x ; then
22076 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
22078 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
22079 cat >> confdefs.h <<EOF
22080 #define SIZEOF_LONG $ac_cv_sizeof_long
22085 if test "$ac_cv_sizeof_int" -lt 4 ; then
22086 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
22088 cat >> confdefs.h <<\EOF
22089 #define LBER_INT_T long
22093 cat >> confdefs.h <<\EOF
22094 #define LBER_INT_T int
22099 cat >> confdefs.h <<\EOF
22100 #define LBER_LEN_T long
22103 cat >> confdefs.h <<\EOF
22104 #define LBER_SOCKET_T int
22107 cat >> confdefs.h <<\EOF
22108 #define LBER_TAG_T long
22112 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
22113 echo "configure:22114: checking for 8-bit clean memcmp" >&5
22114 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
22115 echo $ac_n "(cached) $ac_c" 1>&6
22117 if test "$cross_compiling" = yes; then
22118 ac_cv_func_memcmp_clean=no
22120 cat > conftest.$ac_ext <<EOF
22121 #line 22122 "configure"
22122 #include "confdefs.h"
22126 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
22127 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
22131 if { (eval echo configure:22132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
22133 ac_cv_func_memcmp_clean=yes
22135 echo "configure: failed program was:" >&5
22136 cat conftest.$ac_ext >&5
22138 ac_cv_func_memcmp_clean=no
22145 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
22146 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
22148 echo $ac_n "checking for strftime""... $ac_c" 1>&6
22149 echo "configure:22150: checking for strftime" >&5
22150 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
22151 echo $ac_n "(cached) $ac_c" 1>&6
22153 cat > conftest.$ac_ext <<EOF
22154 #line 22155 "configure"
22155 #include "confdefs.h"
22156 /* System header to define __stub macros and hopefully few prototypes,
22157 which can conflict with char strftime(); below. */
22158 #include <assert.h>
22159 /* Override any gcc2 internal prototype to avoid an error. */
22160 /* We use char because int might match the return type of a gcc2
22161 builtin and then its argument prototype would still apply. */
22167 /* The GNU C library defines this for functions which it implements
22168 to always fail with ENOSYS. Some functions are actually named
22169 something starting with __ and the normal name is an alias. */
22170 #if defined (__stub_strftime) || defined (__stub___strftime)
22178 if { (eval echo configure:22179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22180 eval "ac_cv_func_strftime=yes"
22182 echo "configure: failed program was:" >&5
22183 cat conftest.$ac_ext >&5
22185 eval "ac_cv_func_strftime=no"
22190 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
22191 echo "$ac_t""yes" 1>&6
22192 cat >> confdefs.h <<\EOF
22193 #define HAVE_STRFTIME 1
22197 echo "$ac_t""no" 1>&6
22198 # strftime is in -lintl on SCO UNIX.
22199 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
22200 echo "configure:22201: checking for strftime in -lintl" >&5
22201 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
22202 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
22203 echo $ac_n "(cached) $ac_c" 1>&6
22205 ac_save_LIBS="$LIBS"
22206 LIBS="-lintl $LIBS"
22207 cat > conftest.$ac_ext <<EOF
22208 #line 22209 "configure"
22209 #include "confdefs.h"
22210 /* Override any gcc2 internal prototype to avoid an error. */
22211 /* We use char because int might match the return type of a gcc2
22212 builtin and then its argument prototype would still apply. */
22219 if { (eval echo configure:22220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22221 eval "ac_cv_lib_$ac_lib_var=yes"
22223 echo "configure: failed program was:" >&5
22224 cat conftest.$ac_ext >&5
22226 eval "ac_cv_lib_$ac_lib_var=no"
22229 LIBS="$ac_save_LIBS"
22232 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
22233 echo "$ac_t""yes" 1>&6
22234 cat >> confdefs.h <<\EOF
22235 #define HAVE_STRFTIME 1
22238 LIBS="-lintl $LIBS"
22240 echo "$ac_t""no" 1>&6
22246 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
22247 echo "configure:22248: checking for inet_aton()" >&5
22248 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
22249 echo $ac_n "(cached) $ac_c" 1>&6
22251 cat > conftest.$ac_ext <<EOF
22252 #line 22253 "configure"
22253 #include "confdefs.h"
22255 #ifdef HAVE_SYS_TYPES_H
22256 # include <sys/types.h>
22258 #ifdef HAVE_SYS_SOCKET_H
22259 # include <sys/socket.h>
22260 # ifdef HAVE_SYS_SELECT_H
22261 # include <sys/select.h>
22263 # include <netinet/in.h>
22264 # ifdef HAVE_ARPA_INET_H
22265 # include <arpa/inet.h>
22271 int rc = inet_aton( "255.255.255.255", &in );
22274 if { (eval echo configure:22275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22276 ol_cv_func_inet_aton=yes
22278 echo "configure: failed program was:" >&5
22279 cat conftest.$ac_ext >&5
22281 ol_cv_func_inet_aton=no
22286 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
22287 if test $ol_cv_func_inet_aton != no; then
22288 cat >> confdefs.h <<\EOF
22289 #define HAVE_INET_ATON 1
22295 echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
22296 echo "configure:22297: checking for _spawnlp" >&5
22297 if eval "test \"\${ac_cv_func__spawnlp+set}\" = set"; then
22298 echo $ac_n "(cached) $ac_c" 1>&6
22300 cat > conftest.$ac_ext <<EOF
22301 #line 22302 "configure"
22302 #include "confdefs.h"
22303 /* System header to define __stub macros and hopefully few prototypes,
22304 which can conflict with char _spawnlp(); below. */
22305 #include <assert.h>
22306 /* Override any gcc2 internal prototype to avoid an error. */
22307 /* We use char because int might match the return type of a gcc2
22308 builtin and then its argument prototype would still apply. */
22314 /* The GNU C library defines this for functions which it implements
22315 to always fail with ENOSYS. Some functions are actually named
22316 something starting with __ and the normal name is an alias. */
22317 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
22325 if { (eval echo configure:22326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22327 eval "ac_cv_func__spawnlp=yes"
22329 echo "configure: failed program was:" >&5
22330 cat conftest.$ac_ext >&5
22332 eval "ac_cv_func__spawnlp=no"
22337 if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
22338 echo "$ac_t""yes" 1>&6
22339 cat >> confdefs.h <<\EOF
22340 #define HAVE_SPAWNLP 1
22344 echo "$ac_t""no" 1>&6
22348 echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
22349 echo "configure:22350: checking for _snprintf" >&5
22350 if eval "test \"\${ac_cv_func__snprintf+set}\" = set"; then
22351 echo $ac_n "(cached) $ac_c" 1>&6
22353 cat > conftest.$ac_ext <<EOF
22354 #line 22355 "configure"
22355 #include "confdefs.h"
22356 /* System header to define __stub macros and hopefully few prototypes,
22357 which can conflict with char _snprintf(); below. */
22358 #include <assert.h>
22359 /* Override any gcc2 internal prototype to avoid an error. */
22360 /* We use char because int might match the return type of a gcc2
22361 builtin and then its argument prototype would still apply. */
22367 /* The GNU C library defines this for functions which it implements
22368 to always fail with ENOSYS. Some functions are actually named
22369 something starting with __ and the normal name is an alias. */
22370 #if defined (__stub__snprintf) || defined (__stub____snprintf)
22378 if { (eval echo configure:22379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22380 eval "ac_cv_func__snprintf=yes"
22382 echo "configure: failed program was:" >&5
22383 cat conftest.$ac_ext >&5
22385 eval "ac_cv_func__snprintf=no"
22390 if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
22391 echo "$ac_t""yes" 1>&6
22392 ac_cv_func_snprintf=yes
22393 cat >> confdefs.h <<\EOF
22394 #define snprintf _snprintf
22399 echo "$ac_t""no" 1>&6
22403 echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
22404 echo "configure:22405: checking for _vsnprintf" >&5
22405 if eval "test \"\${ac_cv_func__vsnprintf+set}\" = set"; then
22406 echo $ac_n "(cached) $ac_c" 1>&6
22408 cat > conftest.$ac_ext <<EOF
22409 #line 22410 "configure"
22410 #include "confdefs.h"
22411 /* System header to define __stub macros and hopefully few prototypes,
22412 which can conflict with char _vsnprintf(); below. */
22413 #include <assert.h>
22414 /* Override any gcc2 internal prototype to avoid an error. */
22415 /* We use char because int might match the return type of a gcc2
22416 builtin and then its argument prototype would still apply. */
22422 /* The GNU C library defines this for functions which it implements
22423 to always fail with ENOSYS. Some functions are actually named
22424 something starting with __ and the normal name is an alias. */
22425 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
22433 if { (eval echo configure:22434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22435 eval "ac_cv_func__vsnprintf=yes"
22437 echo "configure: failed program was:" >&5
22438 cat conftest.$ac_ext >&5
22440 eval "ac_cv_func__vsnprintf=no"
22445 if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
22446 echo "$ac_t""yes" 1>&6
22447 ac_cv_func_vsnprintf=yes
22448 cat >> confdefs.h <<\EOF
22449 #define vsnprintf _vsnprintf
22454 echo "$ac_t""no" 1>&6
22458 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
22459 echo "configure:22460: checking for vprintf" >&5
22460 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
22461 echo $ac_n "(cached) $ac_c" 1>&6
22463 cat > conftest.$ac_ext <<EOF
22464 #line 22465 "configure"
22465 #include "confdefs.h"
22466 /* System header to define __stub macros and hopefully few prototypes,
22467 which can conflict with char vprintf(); below. */
22468 #include <assert.h>
22469 /* Override any gcc2 internal prototype to avoid an error. */
22470 /* We use char because int might match the return type of a gcc2
22471 builtin and then its argument prototype would still apply. */
22477 /* The GNU C library defines this for functions which it implements
22478 to always fail with ENOSYS. Some functions are actually named
22479 something starting with __ and the normal name is an alias. */
22480 #if defined (__stub_vprintf) || defined (__stub___vprintf)
22488 if { (eval echo configure:22489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22490 eval "ac_cv_func_vprintf=yes"
22492 echo "configure: failed program was:" >&5
22493 cat conftest.$ac_ext >&5
22495 eval "ac_cv_func_vprintf=no"
22500 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
22501 echo "$ac_t""yes" 1>&6
22502 cat >> confdefs.h <<\EOF
22503 #define HAVE_VPRINTF 1
22507 echo "$ac_t""no" 1>&6
22510 if test "$ac_cv_func_vprintf" != yes; then
22511 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
22512 echo "configure:22513: checking for _doprnt" >&5
22513 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
22514 echo $ac_n "(cached) $ac_c" 1>&6
22516 cat > conftest.$ac_ext <<EOF
22517 #line 22518 "configure"
22518 #include "confdefs.h"
22519 /* System header to define __stub macros and hopefully few prototypes,
22520 which can conflict with char _doprnt(); below. */
22521 #include <assert.h>
22522 /* Override any gcc2 internal prototype to avoid an error. */
22523 /* We use char because int might match the return type of a gcc2
22524 builtin and then its argument prototype would still apply. */
22530 /* The GNU C library defines this for functions which it implements
22531 to always fail with ENOSYS. Some functions are actually named
22532 something starting with __ and the normal name is an alias. */
22533 #if defined (__stub__doprnt) || defined (__stub____doprnt)
22541 if { (eval echo configure:22542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22543 eval "ac_cv_func__doprnt=yes"
22545 echo "configure: failed program was:" >&5
22546 cat conftest.$ac_ext >&5
22548 eval "ac_cv_func__doprnt=no"
22553 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
22554 echo "$ac_t""yes" 1>&6
22555 cat >> confdefs.h <<\EOF
22556 #define HAVE_DOPRNT 1
22560 echo "$ac_t""no" 1>&6
22566 if test $ac_cv_func_vprintf = yes ; then
22567 for ac_func in snprintf vsnprintf
22569 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22570 echo "configure:22571: checking for $ac_func" >&5
22571 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
22572 echo $ac_n "(cached) $ac_c" 1>&6
22574 cat > conftest.$ac_ext <<EOF
22575 #line 22576 "configure"
22576 #include "confdefs.h"
22577 /* System header to define __stub macros and hopefully few prototypes,
22578 which can conflict with char $ac_func(); below. */
22579 #include <assert.h>
22580 /* Override any gcc2 internal prototype to avoid an error. */
22581 /* We use char because int might match the return type of a gcc2
22582 builtin and then its argument prototype would still apply. */
22588 /* The GNU C library defines this for functions which it implements
22589 to always fail with ENOSYS. Some functions are actually named
22590 something starting with __ and the normal name is an alias. */
22591 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22599 if { (eval echo configure:22600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22601 eval "ac_cv_func_$ac_func=yes"
22603 echo "configure: failed program was:" >&5
22604 cat conftest.$ac_ext >&5
22606 eval "ac_cv_func_$ac_func=no"
22611 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22612 echo "$ac_t""yes" 1>&6
22613 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22614 cat >> confdefs.h <<EOF
22615 #define $ac_tr_func 1
22619 echo "$ac_t""no" 1>&6
22681 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22682 echo "configure:22683: checking for $ac_func" >&5
22683 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
22684 echo $ac_n "(cached) $ac_c" 1>&6
22686 cat > conftest.$ac_ext <<EOF
22687 #line 22688 "configure"
22688 #include "confdefs.h"
22689 /* System header to define __stub macros and hopefully few prototypes,
22690 which can conflict with char $ac_func(); below. */
22691 #include <assert.h>
22692 /* Override any gcc2 internal prototype to avoid an error. */
22693 /* We use char because int might match the return type of a gcc2
22694 builtin and then its argument prototype would still apply. */
22700 /* The GNU C library defines this for functions which it implements
22701 to always fail with ENOSYS. Some functions are actually named
22702 something starting with __ and the normal name is an alias. */
22703 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22711 if { (eval echo configure:22712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22713 eval "ac_cv_func_$ac_func=yes"
22715 echo "configure: failed program was:" >&5
22716 cat conftest.$ac_ext >&5
22718 eval "ac_cv_func_$ac_func=no"
22723 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22724 echo "$ac_t""yes" 1>&6
22725 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22726 cat >> confdefs.h <<EOF
22727 #define $ac_tr_func 1
22731 echo "$ac_t""no" 1>&6
22736 for ac_func in getopt getpeereid
22738 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22739 echo "configure:22740: checking for $ac_func" >&5
22740 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
22741 echo $ac_n "(cached) $ac_c" 1>&6
22743 cat > conftest.$ac_ext <<EOF
22744 #line 22745 "configure"
22745 #include "confdefs.h"
22746 /* System header to define __stub macros and hopefully few prototypes,
22747 which can conflict with char $ac_func(); below. */
22748 #include <assert.h>
22749 /* Override any gcc2 internal prototype to avoid an error. */
22750 /* We use char because int might match the return type of a gcc2
22751 builtin and then its argument prototype would still apply. */
22757 /* The GNU C library defines this for functions which it implements
22758 to always fail with ENOSYS. Some functions are actually named
22759 something starting with __ and the normal name is an alias. */
22760 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22768 if { (eval echo configure:22769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22770 eval "ac_cv_func_$ac_func=yes"
22772 echo "configure: failed program was:" >&5
22773 cat conftest.$ac_ext >&5
22775 eval "ac_cv_func_$ac_func=no"
22780 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22781 echo "$ac_t""yes" 1>&6
22782 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22783 cat >> confdefs.h <<EOF
22784 #define $ac_tr_func 1
22788 echo "$ac_t""no" 1>&6
22789 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
22795 if test "$ac_cv_func_getopt" != yes; then
22796 LIBSRCS="$LIBSRCS getopt.c"
22798 if test "$ac_cv_func_getpeereid" != yes; then
22799 echo $ac_n "checking for msg_accrights in msghdr""... $ac_c" 1>&6
22800 echo "configure:22801: checking for msg_accrights in msghdr" >&5
22801 if eval "test \"\${ol_cv_msghdr_msg_accrights+set}\" = set"; then
22802 echo $ac_n "(cached) $ac_c" 1>&6
22804 cat > conftest.$ac_ext <<EOF
22805 #line 22806 "configure"
22806 #include "confdefs.h"
22807 #include <sys/socket.h>
22809 struct msghdr m; m.msg_accrightslen=0
22812 if { (eval echo configure:22813: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22814 ol_cv_msghdr_msg_accrights=yes
22816 echo "configure: failed program was:" >&5
22817 cat conftest.$ac_ext >&5
22819 ol_cv_msghdr_msg_accrights=no
22825 echo "$ac_t""$ol_cv_msghdr_msg_accrights" 1>&6
22826 if test $ol_cv_msghdr_msg_accrights = "yes" ; then
22827 cat >> confdefs.h <<\EOF
22828 #define HAVE_MSGHDR_MSG_ACCRIGHTS 1
22833 LIBSRCS="$LIBSRCS getpeereid.c"
22835 if test "$ac_cv_func_snprintf" != yes -o "$ac_cv_func_vsnprintf" != yes; then
22836 if test "$ac_cv_func_snprintf" != yes; then
22837 cat >> confdefs.h <<\EOF
22838 #define snprintf ber_pvt_snprintf
22842 if test "$ac_cv_func_vsnprintf" != yes; then
22843 cat >> confdefs.h <<\EOF
22844 #define vsnprintf ber_pvt_vsnprintf
22850 # Check Configuration
22851 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
22852 echo "configure:22853: checking declaration of sys_errlist" >&5
22853 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
22854 echo $ac_n "(cached) $ac_c" 1>&6
22857 cat > conftest.$ac_ext <<EOF
22858 #line 22859 "configure"
22859 #include "confdefs.h"
22862 #include <sys/types.h>
22865 #include <stdlib.h>
22868 char *c = (char *) *sys_errlist
22871 if { (eval echo configure:22872: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22873 ol_cv_dcl_sys_errlist=yes
22874 ol_cv_have_sys_errlist=yes
22876 echo "configure: failed program was:" >&5
22877 cat conftest.$ac_ext >&5
22879 ol_cv_dcl_sys_errlist=no
22884 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
22886 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
22887 if test $ol_cv_dcl_sys_errlist = no ; then
22888 cat >> confdefs.h <<\EOF
22889 #define DECL_SYS_ERRLIST 1
22893 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
22894 echo "configure:22895: checking existence of sys_errlist" >&5
22895 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
22896 echo $ac_n "(cached) $ac_c" 1>&6
22899 cat > conftest.$ac_ext <<EOF
22900 #line 22901 "configure"
22901 #include "confdefs.h"
22904 char *c = (char *) *sys_errlist
22907 if { (eval echo configure:22908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22909 ol_cv_have_sys_errlist=yes
22911 echo "configure: failed program was:" >&5
22912 cat conftest.$ac_ext >&5
22914 ol_cv_have_sys_errlist=no
22919 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
22921 if test $ol_cv_have_sys_errlist = yes ; then
22922 cat >> confdefs.h <<\EOF
22923 #define HAVE_SYS_ERRLIST 1
22930 if test "$ol_enable_slapi" != no ; then
22931 for ac_hdr in ltdl.h
22933 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22934 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22935 echo "configure:22936: checking for $ac_hdr" >&5
22936 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
22937 echo $ac_n "(cached) $ac_c" 1>&6
22939 cat > conftest.$ac_ext <<EOF
22940 #line 22941 "configure"
22941 #include "confdefs.h"
22944 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22945 { (eval echo configure:22946: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22946 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22947 if test -z "$ac_err"; then
22949 eval "ac_cv_header_$ac_safe=yes"
22952 echo "configure: failed program was:" >&5
22953 cat conftest.$ac_ext >&5
22955 eval "ac_cv_header_$ac_safe=no"
22959 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22960 echo "$ac_t""yes" 1>&6
22961 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22962 cat >> confdefs.h <<EOF
22963 #define $ac_tr_hdr 1
22967 echo "$ac_t""no" 1>&6
22972 if test $ac_cv_header_ltdl_h != yes ; then
22973 { echo "configure: error: could not locate <ltdl.h>" 1>&2; exit 1; }
22975 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
22976 echo "configure:22977: checking for lt_dlinit in -lltdl" >&5
22977 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
22978 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
22979 echo $ac_n "(cached) $ac_c" 1>&6
22981 ac_save_LIBS="$LIBS"
22982 LIBS="-lltdl $LIBS"
22983 cat > conftest.$ac_ext <<EOF
22984 #line 22985 "configure"
22985 #include "confdefs.h"
22986 /* Override any gcc2 internal prototype to avoid an error. */
22987 /* We use char because int might match the return type of a gcc2
22988 builtin and then its argument prototype would still apply. */
22995 if { (eval echo configure:22996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22997 eval "ac_cv_lib_$ac_lib_var=yes"
22999 echo "configure: failed program was:" >&5
23000 cat conftest.$ac_ext >&5
23002 eval "ac_cv_lib_$ac_lib_var=no"
23005 LIBS="$ac_save_LIBS"
23008 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
23009 echo "$ac_t""yes" 1>&6
23012 LIBSLAPI=libslapi.a
23013 LIBSLAPITOOLS=../libslapi.a
23014 cat >> confdefs.h <<\EOF
23015 #define HAVE_LIBLTDL 1
23020 echo "$ac_t""no" 1>&6
23021 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
23025 cat >> confdefs.h <<\EOF
23026 #define LDAP_SLAPI 1
23031 if test "$ol_enable_debug" != no ; then
23032 cat >> confdefs.h <<\EOF
23033 #define LDAP_DEBUG 1
23037 if test "$ol_enable_syslog" = yes ; then
23038 cat >> confdefs.h <<\EOF
23039 #define LDAP_SYSLOG 1
23043 if test "$ol_link_kbind" != no ; then
23044 cat >> confdefs.h <<\EOF
23045 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
23049 if test "$ol_enable_proctitle" != no ; then
23050 cat >> confdefs.h <<\EOF
23051 #define LDAP_PROCTITLE 1
23055 if test "$ol_enable_referrals" != no ; then
23056 cat >> confdefs.h <<\EOF
23057 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
23061 if test "$ol_enable_local" != no; then
23062 cat >> confdefs.h <<\EOF
23063 #define LDAP_PF_LOCAL 1
23067 if test "$ol_link_ipv6" != no; then
23068 cat >> confdefs.h <<\EOF
23069 #define LDAP_PF_INET6 1
23073 if test "$ol_enable_cleartext" != no ; then
23074 cat >> confdefs.h <<\EOF
23075 #define SLAPD_CLEARTEXT 1
23079 if test "$ol_enable_crypt" != no ; then
23080 cat >> confdefs.h <<\EOF
23081 #define SLAPD_CRYPT 1
23085 if test "$ol_link_kpasswd" != no ; then
23086 cat >> confdefs.h <<\EOF
23087 #define SLAPD_KPASSWD 1
23091 if test "$ol_link_spasswd" != no ; then
23092 cat >> confdefs.h <<\EOF
23093 #define SLAPD_SPASSWD 1
23097 if test "$ol_enable_multimaster" != no ; then
23098 cat >> confdefs.h <<\EOF
23099 #define SLAPD_MULTIMASTER 1
23103 if test "$ol_enable_rlookups" != no ; then
23104 cat >> confdefs.h <<\EOF
23105 #define SLAPD_RLOOKUPS 1
23109 if test "$ol_enable_aci" != no ; then
23110 cat >> confdefs.h <<\EOF
23111 #define SLAPD_ACI_ENABLED 1
23116 if test "$ol_link_modules" != no ; then
23117 cat >> confdefs.h <<\EOF
23118 #define SLAPD_MODULES 1
23122 SLAPD_MODULES_LDFLAGS="-dlopen self"
23125 if test "$ol_enable_bdb" != no ; then
23126 cat >> confdefs.h <<\EOF
23127 #define SLAPD_BDB 1
23132 if test "$ol_with_bdb_module" != static ; then
23133 cat >> confdefs.h <<\EOF
23134 #define SLAPD_BDB_DYNAMIC 1
23138 BUILD_BDB_DYNAMIC=shared
23139 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
23141 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
23145 if test "$ol_link_dnssrv" != no ; then
23146 cat >> confdefs.h <<\EOF
23147 #define SLAPD_DNSSRV 1
23152 if test "$ol_with_dnssrv_module" != static ; then
23153 cat >> confdefs.h <<\EOF
23154 #define SLAPD_DNSSRV_DYNAMIC 1
23158 BUILD_DNSSRV_DYNAMIC=shared
23159 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
23161 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
23165 if test "$ol_enable_hdb" != no ; then
23166 cat >> confdefs.h <<\EOF
23167 #define SLAPD_HDB 1
23172 if test "$ol_with_hdb_module" != static ; then
23173 cat >> confdefs.h <<\EOF
23174 #define SLAPD_HDB_DYNAMIC 1
23178 BUILD_HDB_DYNAMIC=shared
23179 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
23181 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
23185 if test "$ol_enable_ldap" != no ; then
23186 cat >> confdefs.h <<\EOF
23187 #define SLAPD_LDAP 1
23192 if test "$ol_with_ldap_module" != static ; then
23193 cat >> confdefs.h <<\EOF
23194 #define SLAPD_LDAP_DYNAMIC 1
23198 BUILD_LDAP_DYNAMIC=shared
23199 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
23201 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
23205 if test "$ol_link_ldbm" != no -a $ol_enable_ldbm != no; then
23206 cat >> confdefs.h <<\EOF
23207 #define SLAPD_LDBM 1
23212 if test "$ol_with_ldbm_module" != static ; then
23213 cat >> confdefs.h <<\EOF
23214 #define SLAPD_LDBM_DYNAMIC 1
23218 BUILD_LDBM_DYNAMIC=shared
23219 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
23221 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
23225 if test "$ol_enable_meta" != no ; then
23226 if test "$ol_enable_ldap" = no ; then
23227 { echo "configure: error: need --enable-ldap to use --enable-meta" 1>&2; exit 1; }
23229 if test "$ol_enable_rewrite" = no ; then
23230 { echo "configure: error: need --enable-rewrite to use --enable-meta" 1>&2; exit 1; }
23232 cat >> confdefs.h <<\EOF
23233 #define SLAPD_META 1
23239 if test "$ol_with_meta_module" != static ; then
23240 cat >> confdefs.h <<\EOF
23241 #define SLAPD_META_DYNAMIC 1
23245 BUILD_META_DYNAMIC=shared
23246 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
23248 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
23252 if test "$ol_enable_monitor" != no ; then
23253 cat >> confdefs.h <<\EOF
23254 #define SLAPD_MONITOR 1
23259 if test "$ol_with_monitor_module" != static ; then
23260 cat >> confdefs.h <<\EOF
23261 #define SLAPD_MONITOR_DYNAMIC 1
23265 BUILD_MONITOR_DYNAMIC=shared
23266 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
23268 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
23272 if test "$ol_enable_null" != no ; then
23273 cat >> confdefs.h <<\EOF
23274 #define SLAPD_NULL 1
23279 if test "$ol_with_null_module" != static ; then
23280 cat >> confdefs.h <<\EOF
23281 #define SLAPD_NULL_DYNAMIC 1
23285 BUILD_NULL_DYNAMIC=shared
23286 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
23288 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
23292 if test "$ol_enable_passwd" != no ; then
23293 cat >> confdefs.h <<\EOF
23294 #define SLAPD_PASSWD 1
23299 if test "$ol_with_passwd_module" != static ; then
23300 cat >> confdefs.h <<\EOF
23301 #define SLAPD_PASSWD_DYNAMIC 1
23305 BUILD_PASSWD_DYNAMIC=shared
23306 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
23308 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
23312 if test "$ol_link_perl" != no ; then
23313 cat >> confdefs.h <<\EOF
23314 #define SLAPD_PERL 1
23319 if test "$ol_with_perl_module" != static ; then
23320 cat >> confdefs.h <<\EOF
23321 #define SLAPD_PERL_DYNAMIC 1
23325 BUILD_PERL_DYNAMIC=shared
23326 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
23328 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
23332 if test "$ol_enable_shell" != no ; then
23333 if test "$ol_link_thread" != no ; then
23334 echo "configure: warning: Use of --without-threads is recommended with back-shell" 1>&2
23336 cat >> confdefs.h <<\EOF
23337 #define SLAPD_SHELL 1
23342 if test "$ol_with_shell_module" != static ; then
23343 cat >> confdefs.h <<\EOF
23344 #define SLAPD_SHELL_DYNAMIC 1
23348 BUILD_SHELL_DYNAMIC=shared
23349 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
23351 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
23355 if test "$ol_enable_tcl" != no ; then
23356 cat >> confdefs.h <<\EOF
23357 #define SLAPD_TCL 1
23362 if test "$ol_with_tcl_module" != static; then
23363 cat >> confdefs.h <<\EOF
23364 #define SLAPD_TCL_DYNAMIC 1
23368 BUILD_TCL_DYNAMIC=shared
23369 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-tcl"
23371 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-tcl"
23375 if test "$ol_link_sql" != no ; then
23376 cat >> confdefs.h <<\EOF
23377 #define SLAPD_SQL 1
23382 if test "$ol_with_sql_module" != static; then
23383 cat >> confdefs.h <<\EOF
23384 #define SLAPD_SQL_DYNAMIC 1
23388 BUILD_SQL_DYNAMIC=shared
23389 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
23391 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
23395 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
23396 $BUILD_SLAPD = yes ; then
23400 if test "$ol_enable_rewrite" != no ; then
23401 cat >> confdefs.h <<\EOF
23402 #define ENABLE_REWRITE 1
23408 if test "$ol_enable_slapi" != no ; then
23409 cat >> confdefs.h <<\EOF
23410 #define ENABLE_SLAPI 1
23414 SLAPD_SLAPI_DEPEND=libslapi.a
23419 if test "$ac_cv_mingw32" = yes ; then
23421 SLAPD_MODULES_LDFLAGS=
23426 if test -z "$SLAPD_STATIC_BACKENDS"; then
23427 SLAPD_NO_STATIC='#'
23505 # Check whether --with-xxinstall or --without-xxinstall was given.
23506 if test "${with_xxinstall+set}" = set; then
23507 withval="$with_xxinstall"
23515 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
23517 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23518 # Let make expand exec_prefix.
23519 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23521 # Any assignment to VPATH causes Sun make to only execute
23522 # the first set of double-colon rules, so remove it if not needed.
23523 # If there is a colon in the path, we need to keep it.
23524 if test "x$srcdir" = x.; then
23525 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
23528 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
23530 DEFS=-DHAVE_CONFIG_H
23532 # Without the "./", some shells look in PATH for config.status.
23533 : ${CONFIG_STATUS=./config.status}
23535 echo creating $CONFIG_STATUS
23536 rm -f $CONFIG_STATUS
23537 cat > $CONFIG_STATUS <<EOF
23539 # Generated automatically by configure.
23540 # Run this file to recreate the current configuration.
23541 # This directory was configured as follows,
23542 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23544 # $0 $ac_configure_args
23546 # Compiler output produced by configure, useful for debugging
23547 # configure, is in ./config.log if it exists.
23549 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
23552 case "\$ac_option" in
23553 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23554 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
23555 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
23556 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
23557 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
23559 -help | --help | --hel | --he | --h)
23560 echo "\$ac_cs_usage"; exit 0 ;;
23561 *) echo "\$ac_cs_usage"; exit 1 ;;
23565 ac_given_srcdir=$srcdir
23566 ac_given_INSTALL="$INSTALL"
23568 trap 'rm -fr `echo "\
23569 Makefile:build/top.mk:Makefile.in:build/dir.mk \
23570 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
23571 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
23572 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
23573 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
23574 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
23575 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
23576 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
23577 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
23578 include/Makefile:build/top.mk:include/Makefile.in \
23579 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
23580 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
23581 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
23582 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
23583 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
23584 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
23585 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
23586 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
23587 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
23588 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
23589 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
23590 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
23591 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
23592 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
23593 servers/slapd/back-hdb/Makefile:build/top.mk:servers/slapd/back-hdb/Makefile.in:build/mod.mk \
23594 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
23595 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
23596 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
23597 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
23598 servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk \
23599 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
23600 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
23601 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
23602 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
23603 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
23604 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
23605 servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk \
23606 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
23607 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
23608 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
23609 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
23610 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
23612 cat >> $CONFIG_STATUS <<EOF
23614 # Protect against being on the right side of a sed subst in config.status.
23615 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
23616 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
23620 s%@CFLAGS@%$CFLAGS%g
23621 s%@CPPFLAGS@%$CPPFLAGS%g
23622 s%@CXXFLAGS@%$CXXFLAGS%g
23623 s%@FFLAGS@%$FFLAGS%g
23625 s%@LDFLAGS@%$LDFLAGS%g
23627 s%@exec_prefix@%$exec_prefix%g
23628 s%@prefix@%$prefix%g
23629 s%@program_transform_name@%$program_transform_name%g
23630 s%@bindir@%$bindir%g
23631 s%@sbindir@%$sbindir%g
23632 s%@libexecdir@%$libexecdir%g
23633 s%@datadir@%$datadir%g
23634 s%@sysconfdir@%$sysconfdir%g
23635 s%@sharedstatedir@%$sharedstatedir%g
23636 s%@localstatedir@%$localstatedir%g
23637 s%@libdir@%$libdir%g
23638 s%@includedir@%$includedir%g
23639 s%@oldincludedir@%$oldincludedir%g
23640 s%@infodir@%$infodir%g
23641 s%@mandir@%$mandir%g
23643 s%@host_alias@%$host_alias%g
23644 s%@host_cpu@%$host_cpu%g
23645 s%@host_vendor@%$host_vendor%g
23646 s%@host_os@%$host_os%g
23647 s%@target@%$target%g
23648 s%@target_alias@%$target_alias%g
23649 s%@target_cpu@%$target_cpu%g
23650 s%@target_vendor@%$target_vendor%g
23651 s%@target_os@%$target_os%g
23653 s%@build_alias@%$build_alias%g
23654 s%@build_cpu@%$build_cpu%g
23655 s%@build_vendor@%$build_vendor%g
23656 s%@build_os@%$build_os%g
23657 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
23658 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
23659 s%@INSTALL_DATA@%$INSTALL_DATA%g
23660 s%@PACKAGE@%$PACKAGE%g
23661 s%@VERSION@%$VERSION%g
23662 s%@ACLOCAL@%$ACLOCAL%g
23663 s%@AUTOCONF@%$AUTOCONF%g
23664 s%@AUTOMAKE@%$AUTOMAKE%g
23665 s%@AUTOHEADER@%$AUTOHEADER%g
23666 s%@MAKEINFO@%$MAKEINFO%g
23667 s%@install_sh@%$install_sh%g
23670 s%@AMTARFLAGS@%$AMTARFLAGS%g
23671 s%@SET_MAKE@%$SET_MAKE%g
23672 s%@OPENLDAP_LIBVERSION@%$OPENLDAP_LIBVERSION%g
23673 s%@OPENLDAP_RELEASE_DATE@%$OPENLDAP_RELEASE_DATE%g
23674 s%@top_builddir@%$top_builddir%g
23675 s%@ldap_subdir@%$ldap_subdir%g
23679 s%@OBJEXT@%$OBJEXT%g
23680 s%@EXEEXT@%$EXEEXT%g
23682 s%@RANLIB@%$RANLIB%g
23684 s%@DLLTOOL@%$DLLTOOL%g
23686 s%@OBJDUMP@%$OBJDUMP%g
23688 s%@LIBTOOL@%$LIBTOOL%g
23690 s%@PERLBIN@%$PERLBIN%g
23691 s%@OL_MKDEP@%$OL_MKDEP%g
23692 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
23693 s%@LTSTATIC@%$LTSTATIC%g
23694 s%@LIBOBJS@%$LIBOBJS%g
23695 s%@LIBSRCS@%$LIBSRCS%g
23697 s%@BUILD_LIBS_DYNAMIC@%$BUILD_LIBS_DYNAMIC%g
23698 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
23699 s%@BUILD_SLAPI@%$BUILD_SLAPI%g
23700 s%@SLAPD_SLAPI_DEPEND@%$SLAPD_SLAPI_DEPEND%g
23701 s%@BUILD_BDB@%$BUILD_BDB%g
23702 s%@BUILD_DNSSRV@%$BUILD_DNSSRV%g
23703 s%@BUILD_HDB@%$BUILD_HDB%g
23704 s%@BUILD_LDAP@%$BUILD_LDAP%g
23705 s%@BUILD_LDBM@%$BUILD_LDBM%g
23706 s%@BUILD_META@%$BUILD_META%g
23707 s%@BUILD_MONITOR@%$BUILD_MONITOR%g
23708 s%@BUILD_NULL@%$BUILD_NULL%g
23709 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
23710 s%@BUILD_PERL@%$BUILD_PERL%g
23711 s%@BUILD_SHELL@%$BUILD_SHELL%g
23712 s%@BUILD_SQL@%$BUILD_SQL%g
23713 s%@BUILD_TCL@%$BUILD_TCL%g
23714 s%@BUILD_BDB_DYNAMIC@%$BUILD_BDB_DYNAMIC%g
23715 s%@BUILD_DNSSRV_DYNAMIC@%$BUILD_DNSSRV_DYNAMIC%g
23716 s%@BUILD_HDB_DYNAMIC@%$BUILD_HDB_DYNAMIC%g
23717 s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
23718 s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
23719 s%@BUILD_META_DYNAMIC@%$BUILD_META_DYNAMIC%g
23720 s%@BUILD_MONITOR_DYNAMIC@%$BUILD_MONITOR_DYNAMIC%g
23721 s%@BUILD_NULL_DYNAMIC@%$BUILD_NULL_DYNAMIC%g
23722 s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
23723 s%@BUILD_PERL_DYNAMIC@%$BUILD_PERL_DYNAMIC%g
23724 s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
23725 s%@BUILD_SQL_DYNAMIC@%$BUILD_SQL_DYNAMIC%g
23726 s%@BUILD_TCL_DYNAMIC@%$BUILD_TCL_DYNAMIC%g
23727 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
23728 s%@LDAP_LIBS@%$LDAP_LIBS%g
23729 s%@LDIF_LIBS@%$LDIF_LIBS%g
23730 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
23731 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
23732 s%@LDBM_LIBS@%$LDBM_LIBS%g
23733 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
23734 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
23735 s%@WRAP_LIBS@%$WRAP_LIBS%g
23736 s%@MOD_TCL_LIB@%$MOD_TCL_LIB%g
23737 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
23738 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
23739 s%@SLAPD_NO_STATIC@%$SLAPD_NO_STATIC%g
23740 s%@SLAPD_STATIC_BACKENDS@%$SLAPD_STATIC_BACKENDS%g
23741 s%@SLAPD_DYNAMIC_BACKENDS@%$SLAPD_DYNAMIC_BACKENDS%g
23742 s%@PERL_CPPFLAGS@%$PERL_CPPFLAGS%g
23743 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
23744 s%@MOD_PERL_LDFLAGS@%$MOD_PERL_LDFLAGS%g
23745 s%@KRB4_LIBS@%$KRB4_LIBS%g
23746 s%@KRB5_LIBS@%$KRB5_LIBS%g
23747 s%@SASL_LIBS@%$SASL_LIBS%g
23748 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
23749 s%@TLS_LIBS@%$TLS_LIBS%g
23750 s%@MODULES_LIBS@%$MODULES_LIBS%g
23751 s%@SLAPI_LIBS@%$SLAPI_LIBS%g
23752 s%@LIBSLAPI@%$LIBSLAPI%g
23753 s%@LIBSLAPITOOLS@%$LIBSLAPITOOLS%g
23754 s%@AUTH_LIBS@%$AUTH_LIBS%g
23755 s%@SLAPD_SLP_LIBS@%$SLAPD_SLP_LIBS%g
23756 s%@SLAPD_SQL_LDFLAGS@%$SLAPD_SQL_LDFLAGS%g
23757 s%@SLAPD_SQL_LIBS@%$SLAPD_SQL_LIBS%g
23758 s%@SLAPD_SQL_INCLUDES@%$SLAPD_SQL_INCLUDES%g
23763 cat >> $CONFIG_STATUS <<\EOF
23765 # Split the substitutions into bite-sized pieces for seds with
23766 # small command number limits, like on Digital OSF/1 and HP-UX.
23767 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
23768 ac_file=1 # Number of current file.
23769 ac_beg=1 # First line for current file.
23770 ac_end=$ac_max_sed_cmds # Line after last line for current file.
23773 while $ac_more_lines; do
23774 if test $ac_beg -gt 1; then
23775 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
23777 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
23779 if test ! -s conftest.s$ac_file; then
23780 ac_more_lines=false
23781 rm -f conftest.s$ac_file
23783 if test -z "$ac_sed_cmds"; then
23784 ac_sed_cmds="sed -f conftest.s$ac_file"
23786 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
23788 ac_file=`expr $ac_file + 1`
23790 ac_end=`expr $ac_end + $ac_max_sed_cmds`
23793 if test -z "$ac_sed_cmds"; then
23798 cat >> $CONFIG_STATUS <<EOF
23800 CONFIG_FILES=\${CONFIG_FILES-"\
23801 Makefile:build/top.mk:Makefile.in:build/dir.mk \
23802 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
23803 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
23804 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
23805 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
23806 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
23807 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
23808 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
23809 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
23810 include/Makefile:build/top.mk:include/Makefile.in \
23811 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
23812 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
23813 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
23814 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
23815 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
23816 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
23817 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
23818 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
23819 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
23820 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
23821 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
23822 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
23823 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
23824 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
23825 servers/slapd/back-hdb/Makefile:build/top.mk:servers/slapd/back-hdb/Makefile.in:build/mod.mk \
23826 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
23827 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
23828 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
23829 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
23830 servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk \
23831 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
23832 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
23833 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
23834 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
23835 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
23836 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
23837 servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk \
23838 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
23839 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
23840 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
23841 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
23844 cat >> $CONFIG_STATUS <<\EOF
23845 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
23846 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23848 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
23849 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
23850 *) ac_file_in="${ac_file}.in" ;;
23853 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
23855 # Remove last slash and all that follows it. Not all systems have dirname.
23856 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
23857 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
23858 # The file is in a subdirectory.
23859 test ! -d "$ac_dir" && mkdir "$ac_dir"
23860 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
23861 # A "../" for each directory in $ac_dir_suffix.
23862 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
23864 ac_dir_suffix= ac_dots=
23867 case "$ac_given_srcdir" in
23869 if test -z "$ac_dots"; then top_srcdir=.
23870 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
23871 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
23872 *) # Relative path.
23873 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
23874 top_srcdir="$ac_dots$ac_given_srcdir" ;;
23877 case "$ac_given_INSTALL" in
23878 [/$]*) INSTALL="$ac_given_INSTALL" ;;
23879 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
23882 echo creating "$ac_file"
23884 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
23886 *[Mm]akefile*) ac_comsub="1i\\
23887 # $configure_input" ;;
23891 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
23893 s%@configure_input@%$configure_input%g
23894 s%@srcdir@%$srcdir%g
23895 s%@top_srcdir@%$top_srcdir%g
23896 s%@INSTALL@%$INSTALL%g
23897 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
23901 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23902 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23904 # ac_d sets the value in "#define NAME VALUE" lines.
23905 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23906 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
23909 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
23910 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23911 ac_uB='\([ ]\)%\1#\2define\3'
23914 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23915 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23916 ac_eB='$%\1#\2define\3'
23920 if test "${CONFIG_HEADERS+set}" != set; then
23922 cat >> $CONFIG_STATUS <<EOF
23923 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
23925 cat >> $CONFIG_STATUS <<\EOF
23927 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
23928 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23930 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
23931 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
23932 *) ac_file_in="${ac_file}.in" ;;
23935 echo creating $ac_file
23937 rm -f conftest.frag conftest.in conftest.out
23938 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
23939 cat $ac_file_inputs > conftest.in
23943 # Transform confdefs.h into a sed script conftest.vals that substitutes
23944 # the proper values into config.h.in to produce config.h. And first:
23945 # Protect against being on the right side of a sed subst in config.status.
23946 # Protect against being in an unquoted here document in config.status.
23947 rm -f conftest.vals
23948 cat > conftest.hdr <<\EOF
23951 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
23955 sed -n -f conftest.hdr confdefs.h > conftest.vals
23958 # This sed command replaces #undef with comments. This is necessary, for
23959 # example, in the case of _POSIX_SOURCE, which is predefined and required
23960 # on some systems where configure will not decide to define it.
23961 cat >> conftest.vals <<\EOF
23962 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
23965 # Break up conftest.vals because some shells have a limit on
23966 # the size of here documents, and old seds have small limits too.
23968 rm -f conftest.tail
23971 ac_lines=`grep -c . conftest.vals`
23972 # grep -c gives empty output for an empty file on some AIX systems.
23973 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
23974 # Write a limited-size here document to conftest.frag.
23975 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
23976 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
23978 sed -f conftest.frag conftest.in > conftest.out
23980 mv conftest.out conftest.in
23981 ' >> $CONFIG_STATUS
23982 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
23983 rm -f conftest.vals
23984 mv conftest.tail conftest.vals
23986 rm -f conftest.vals
23988 cat >> $CONFIG_STATUS <<\EOF
23989 rm -f conftest.frag conftest.h
23990 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
23991 cat conftest.in >> conftest.h
23993 if cmp -s $ac_file conftest.h 2>/dev/null; then
23994 echo "$ac_file is unchanged"
23997 # Remove last slash and all that follows it. Not all systems have dirname.
23998 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
23999 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24000 # The file is in a subdirectory.
24001 test ! -d "$ac_dir" && mkdir "$ac_dir"
24004 mv conftest.h $ac_file
24009 cat >> $CONFIG_STATUS <<EOF
24012 cat >> $CONFIG_STATUS <<\EOF
24015 echo Please run \"make depend\" to build dependencies
24019 chmod +x $CONFIG_STATUS
24020 rm -fr confdefs* $ac_clean_files
24021 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1