3 # from OpenLDAP: pkg/ldap/configure.in,v 1.403 2002/02/10 16:51:30 kurt Exp
5 # Copyright 1998-2002 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-2002 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-syslog enable syslog support [auto]"
35 --enable-proctitle enable proctitle support [yes]"
37 --enable-cache enable caching (experimental) [no]"
39 --enable-referrals enable LDAPv2+ Referrals (experimental) [no]"
41 --enable-kbind enable LDAPv2+ Kerberos IV bind (deprecated) [no]"
43 --enable-ipv6 enable IPv6 support [auto]"
45 --enable-local enable AF_LOCAL (AF_UNIX) socket support [auto]"
47 --enable-rewrite enable rewrite [no]"
49 --enable-x-compile enable cross compiling [no]"
51 --with-cyrus-sasl with Cyrus SASL support [auto]"
53 --with-fetch with fetch URL support [auto]"
55 --with-kerberos with Kerberos support [auto]"
57 --with-readline with readline support [auto]"
59 --with-threads with threads [auto]"
61 --with-tls with TLS/SSL support [auto]"
63 --with-yielding-select with implicitly yielding select [auto]"
66 SLAPD (Standalone LDAP Daemon) Options:"
68 --enable-slapd enable building slapd [yes]"
70 --enable-aci enable per-object ACIs (experimental) [no]"
72 --enable-cleartext enable cleartext passwords [yes]"
74 --enable-crypt enable crypt(3) passwords [no]"
76 --enable-dynamic enable linking built binaries with dynamic libs [no]"
78 --enable-kpasswd enable Kerberos password verification [no]"
80 --enable-lmpasswd enable LAN Manager passwords [no]"
82 --enable-spasswd enable (Cyrus) SASL password verification [no]"
84 --enable-modules enable dynamic module support [no]"
86 --enable-phonetic enable phonetic/soundex [no]"
88 --enable-rlookups enable reverse lookups [no]"
90 --enable-slp enable SLPv2 support [no]"
92 --enable-wrappers enable tcp wrapper support [no]"
94 --enable-bdb enable Berkeley DB backend [yes]"
96 --with-bdb-module module type [static]"
98 --enable-dnssrv enable dnssrv backend [no]"
100 --with-dnssrv-module module type [static]"
102 --enable-ldap enable ldap backend [no]"
104 --with-ldap-module module type [static]"
106 --enable-ldbm enable ldbm backend [no]"
108 --with-ldbm-api with LDBM API [auto]"
110 --with-ldbm-module module type [static]"
112 --with-ldbm-type use LDBM type [auto]"
114 --enable-meta enable metadirectory backend [no]"
116 --with-meta-module module type [static]"
118 --enable-monitor enable monitor backend [no]"
120 --with-monitor-module module type [static]"
122 --enable-passwd enable passwd backend [no]"
124 --with-passwd-module module type [static]"
126 --enable-perl enable perl backend [no]"
128 --with-perl-module module type [static]"
130 --enable-shell enable shell backend [no]"
132 --with-shell-module module type [static]"
134 --enable-sql enable sql backend [no]"
136 --with-sql-module module type [static]"
138 --enable-tcl enable tcl backend [no]"
140 --with-tcl-module module type [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"
872 TB=`$SHTOOL echo -e %B`
873 TN=`$SHTOOL echo -e %b`
875 echo "Configuring $TB$OL_STRING$TN ..."
878 echo $ac_n "checking host system type""... $ac_c" 1>&6
879 echo "configure:880: checking host system type" >&5
880 if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
882 # Make sure we can run config.sub.
883 if $ac_config_sub sun4 >/dev/null 2>&1; then :
884 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
887 ac_cv_host_alias=$host
888 case "$ac_cv_host_alias" in
892 if ac_cv_host_alias=`$ac_config_guess`; then :
893 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
895 *) ac_cv_host_alias=$nonopt ;;
899 ac_cv_host=`$ac_config_sub $ac_cv_host_alias`
900 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
901 ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
902 ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
904 echo $ac_n "(cached) $ac_c" 1>&6
907 echo "$ac_t""$ac_cv_host" 1>&6
910 host_alias=$ac_cv_host_alias
911 host_cpu=$ac_cv_host_cpu
912 host_vendor=$ac_cv_host_vendor
913 host_os=$ac_cv_host_os
919 echo $ac_n "checking target system type""... $ac_c" 1>&6
920 echo "configure:921: checking target system type" >&5
921 if test "x$ac_cv_target" = "x" || (test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
923 # Make sure we can run config.sub.
924 if $ac_config_sub sun4 >/dev/null 2>&1; then :
925 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
928 ac_cv_target_alias=$target
929 case "$ac_cv_target_alias" in
933 ac_cv_target_alias=$host_alias ;;
935 *) ac_cv_target_alias=$nonopt ;;
939 ac_cv_target=`$ac_config_sub $ac_cv_target_alias`
940 ac_cv_target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
941 ac_cv_target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
942 ac_cv_target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
944 echo $ac_n "(cached) $ac_c" 1>&6
947 echo "$ac_t""$ac_cv_target" 1>&6
950 target_alias=$ac_cv_target_alias
951 target_cpu=$ac_cv_target_cpu
952 target_vendor=$ac_cv_target_vendor
953 target_os=$ac_cv_target_os
959 echo $ac_n "checking build system type""... $ac_c" 1>&6
960 echo "configure:961: checking build system type" >&5
961 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
963 # Make sure we can run config.sub.
964 if $ac_config_sub sun4 >/dev/null 2>&1; then :
965 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
968 ac_cv_build_alias=$build
969 case "$ac_cv_build_alias" in
973 ac_cv_build_alias=$host_alias ;;
975 *) ac_cv_build_alias=$nonopt ;;
979 ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
980 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
981 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
982 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
984 echo $ac_n "(cached) $ac_c" 1>&6
987 echo "$ac_t""$ac_cv_build" 1>&6
990 build_alias=$ac_cv_build_alias
991 build_cpu=$ac_cv_build_cpu
992 build_vendor=$ac_cv_build_vendor
993 build_os=$ac_cv_build_os
999 # Do some error checking and defaulting for the host and target type.
1001 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1004 # 1. You are not allowed to specify --host, --target, and nonopt at the
1006 # 2. Host defaults to nonopt.
1007 # 3. If nonopt is not specified, then host defaults to the current host,
1008 # as determined by config.guess.
1009 # 4. Target and build default to nonopt.
1010 # 5. If nonopt is not specified, then target and build default to host.
1012 # The aliases save the names the user supplied, while $host etc.
1013 # will get canonicalized.
1014 case $host---$target---$nonopt in
1015 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1016 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1019 test "$host_alias" != "$target_alias" &&
1020 test "$program_prefix$program_suffix$program_transform_name" = \
1022 program_prefix=${target_alias}-
1025 # Find a good install program. We prefer a C program (faster),
1026 # so one script is as good as another. But avoid the broken or
1027 # incompatible versions:
1028 # SysV /etc/install, /usr/sbin/install
1029 # SunOS /usr/etc/install
1030 # IRIX /sbin/install
1032 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1033 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1034 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1035 # ./install, which can be erroneously created by make from ./install.sh.
1036 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1037 echo "configure:1038: checking for a BSD compatible install" >&5
1038 if test -z "$INSTALL"; then
1039 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
1040 echo $ac_n "(cached) $ac_c" 1>&6
1042 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1043 for ac_dir in $PATH; do
1044 # Account for people who put trailing slashes in PATH elements.
1046 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1048 # OSF1 and SCO ODT 3.0 have their own names for install.
1049 # Don't use installbsd from OSF since it installs stuff as root
1051 for ac_prog in ginstall scoinst install; do
1052 if test -f $ac_dir/$ac_prog; then
1053 if test $ac_prog = install &&
1054 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1055 # AIX install. It has an incompatible calling convention.
1057 elif test $ac_prog = install &&
1058 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
1059 # program-specific install script used by HP pwplus--don't use.
1062 ac_cv_path_install="$ac_dir/$ac_prog -c"
1073 if test "${ac_cv_path_install+set}" = set; then
1074 INSTALL="$ac_cv_path_install"
1076 # As a last resort, use the slow shell script. We don't cache a
1077 # path for INSTALL within a source directory, because that will
1078 # break other packages using the cache if that directory is
1079 # removed, or if the path is relative.
1080 INSTALL="$ac_install_sh"
1083 echo "$ac_t""$INSTALL" 1>&6
1085 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1086 # It thinks the first close brace ends the variable substitution.
1087 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1089 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1091 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1093 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1094 echo "configure:1095: checking whether build environment is sane" >&5
1097 echo timestamp > conftestfile
1098 # Do `set' in a subshell so we don't clobber the current shell's
1099 # arguments. Must try -L first in case configure is actually a
1100 # symlink; some systems play weird games with the mod time of symlinks
1101 # (eg FreeBSD returns the mod time of the symlink's containing
1104 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1105 if test "$*" = "X"; then
1107 set X `ls -t $srcdir/configure conftestfile`
1109 if test "$*" != "X $srcdir/configure conftestfile" \
1110 && test "$*" != "X conftestfile $srcdir/configure"; then
1112 # If neither matched, then we have a broken ls. This can happen
1113 # if, for instance, CONFIG_SHELL is bash and it inherits a
1114 # broken ls alias from the environment. This has actually
1115 # happened. Such a system could not be considered "sane".
1116 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1117 alias in your environment" 1>&2; exit 1; }
1120 test "$2" = conftestfile
1126 { echo "configure: error: newly created file is older than distributed files!
1127 Check your system clock" 1>&2; exit 1; }
1130 echo "$ac_t""yes" 1>&6
1131 if test "$program_transform_name" = s,x,x,; then
1132 program_transform_name=
1134 # Double any \ or $. echo might interpret backslashes.
1135 cat <<\EOF_SED > conftestsed
1136 s,\\,\\\\,g; s,\$,$$,g
1138 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1141 test "$program_prefix" != NONE &&
1142 program_transform_name="s,^,${program_prefix},;$program_transform_name"
1143 # Use a double $ so make ignores it.
1144 test "$program_suffix" != NONE &&
1145 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
1147 # sed with no file args requires a program.
1148 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1150 for ac_prog in mawk gawk nawk awk
1152 # Extract the first word of "$ac_prog", so it can be a program name with args.
1153 set dummy $ac_prog; ac_word=$2
1154 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1155 echo "configure:1156: checking for $ac_word" >&5
1156 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
1157 echo $ac_n "(cached) $ac_c" 1>&6
1159 if test -n "$AWK"; then
1160 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1162 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1164 for ac_dir in $ac_dummy; do
1165 test -z "$ac_dir" && ac_dir=.
1166 if test -f $ac_dir/$ac_word; then
1167 ac_cv_prog_AWK="$ac_prog"
1174 AWK="$ac_cv_prog_AWK"
1175 if test -n "$AWK"; then
1176 echo "$ac_t""$AWK" 1>&6
1178 echo "$ac_t""no" 1>&6
1181 test -n "$AWK" && break
1184 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1185 echo "configure:1186: checking whether ${MAKE-make} sets \${MAKE}" >&5
1186 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1187 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1188 echo $ac_n "(cached) $ac_c" 1>&6
1190 cat > conftestmake <<\EOF
1192 @echo 'ac_maketemp="${MAKE}"'
1194 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1195 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1196 if test -n "$ac_maketemp"; then
1197 eval ac_cv_prog_make_${ac_make}_set=yes
1199 eval ac_cv_prog_make_${ac_make}_set=no
1203 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1204 echo "$ac_t""yes" 1>&6
1207 echo "$ac_t""no" 1>&6
1208 SET_MAKE="MAKE=${MAKE-make}"
1217 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1218 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1223 missing_dir=`cd $ac_aux_dir && pwd`
1224 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1225 echo "configure:1226: checking for working aclocal" >&5
1226 # Run test in a subshell; some versions of sh will print an error if
1227 # an executable is not found, even if stderr is redirected.
1228 # Redirect stdin to placate older versions of autoconf. Sigh.
1229 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1231 echo "$ac_t""found" 1>&6
1233 ACLOCAL="$missing_dir/missing aclocal"
1234 echo "$ac_t""missing" 1>&6
1237 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1238 echo "configure:1239: checking for working autoconf" >&5
1239 # Run test in a subshell; some versions of sh will print an error if
1240 # an executable is not found, even if stderr is redirected.
1241 # Redirect stdin to placate older versions of autoconf. Sigh.
1242 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1244 echo "$ac_t""found" 1>&6
1246 AUTOCONF="$missing_dir/missing autoconf"
1247 echo "$ac_t""missing" 1>&6
1250 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1251 echo "configure:1252: checking for working automake" >&5
1252 # Run test in a subshell; some versions of sh will print an error if
1253 # an executable is not found, even if stderr is redirected.
1254 # Redirect stdin to placate older versions of autoconf. Sigh.
1255 if (automake --version) < /dev/null > /dev/null 2>&1; then
1257 echo "$ac_t""found" 1>&6
1259 AUTOMAKE="$missing_dir/missing automake"
1260 echo "$ac_t""missing" 1>&6
1263 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1264 echo "configure:1265: checking for working autoheader" >&5
1265 # Run test in a subshell; some versions of sh will print an error if
1266 # an executable is not found, even if stderr is redirected.
1267 # Redirect stdin to placate older versions of autoconf. Sigh.
1268 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1269 AUTOHEADER=autoheader
1270 echo "$ac_t""found" 1>&6
1272 AUTOHEADER="$missing_dir/missing autoheader"
1273 echo "$ac_t""missing" 1>&6
1276 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1277 echo "configure:1278: checking for working makeinfo" >&5
1278 # Run test in a subshell; some versions of sh will print an error if
1279 # an executable is not found, even if stderr is redirected.
1280 # Redirect stdin to placate older versions of autoconf. Sigh.
1281 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1283 echo "$ac_t""found" 1>&6
1285 MAKEINFO="$missing_dir/missing makeinfo"
1286 echo "$ac_t""missing" 1>&6
1289 install_sh="$missing_dir/install-sh"
1290 test -f "$install_sh" || install_sh="$missing_dir/install.sh"
1292 for ac_prog in gnutar gtar tar
1294 # Extract the first word of "$ac_prog", so it can be a program name with args.
1295 set dummy $ac_prog; ac_word=$2
1296 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1297 echo "configure:1298: checking for $ac_word" >&5
1298 if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then
1299 echo $ac_n "(cached) $ac_c" 1>&6
1301 if test -n "$AMTAR"; then
1302 ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
1304 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1306 for ac_dir in $ac_dummy; do
1307 test -z "$ac_dir" && ac_dir=.
1308 if test -f $ac_dir/$ac_word; then
1309 ac_cv_prog_AMTAR="$ac_prog"
1316 AMTAR="$ac_cv_prog_AMTAR"
1317 if test -n "$AMTAR"; then
1318 echo "$ac_t""$AMTAR" 1>&6
1320 echo "$ac_t""no" 1>&6
1323 test -n "$AMTAR" && break
1328 if test -n "$AMTAR"; then
1329 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
1334 cat >> confdefs.h <<EOF
1335 #define OPENLDAP_PACKAGE "$PACKAGE"
1338 cat >> confdefs.h <<EOF
1339 #define OPENLDAP_VERSION "$VERSION"
1343 cat >> confdefs.h <<EOF
1344 #define LDAP_VENDOR_VERSION $OL_API_INC
1347 cat >> confdefs.h <<EOF
1348 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
1351 cat >> confdefs.h <<EOF
1352 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
1355 cat >> confdefs.h <<EOF
1356 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
1360 OPENLDAP_LIBVERSION=$OL_API_LIB
1364 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
1365 echo "configure:1366: checking configure arguments" >&5
1370 ldap_subdir="/openldap"
1372 # Check whether --with-subdir or --without-subdir was given.
1373 if test "${with_subdir+set}" = set; then
1374 withval="$with_subdir"
1381 ldap_subdir="$withval"
1384 ldap_subdir="/$withval"
1391 # OpenLDAP --enable-debug
1392 # Check whether --enable-debug or --disable-debug was given.
1393 if test "${enable_debug+set}" = set; then
1394 enableval="$enable_debug"
1397 for ol_val in auto yes no ; do
1398 if test "$enableval" = "$ol_val" ; then
1402 if test "$ol_arg" = "invalid" ; then
1403 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
1405 ol_enable_debug="$ol_arg"
1408 ol_enable_debug="yes"
1410 # end --enable-debug
1411 # OpenLDAP --enable-syslog
1412 # Check whether --enable-syslog or --disable-syslog was given.
1413 if test "${enable_syslog+set}" = set; then
1414 enableval="$enable_syslog"
1417 for ol_val in auto yes no ; do
1418 if test "$enableval" = "$ol_val" ; then
1422 if test "$ol_arg" = "invalid" ; then
1423 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
1425 ol_enable_syslog="$ol_arg"
1428 ol_enable_syslog="auto"
1430 # end --enable-syslog
1431 # OpenLDAP --enable-proctitle
1432 # Check whether --enable-proctitle or --disable-proctitle was given.
1433 if test "${enable_proctitle+set}" = set; then
1434 enableval="$enable_proctitle"
1437 for ol_val in auto yes no ; do
1438 if test "$enableval" = "$ol_val" ; then
1442 if test "$ol_arg" = "invalid" ; then
1443 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
1445 ol_enable_proctitle="$ol_arg"
1448 ol_enable_proctitle="yes"
1450 # end --enable-proctitle
1451 # OpenLDAP --enable-cache
1452 # Check whether --enable-cache or --disable-cache was given.
1453 if test "${enable_cache+set}" = set; then
1454 enableval="$enable_cache"
1457 for ol_val in auto yes no ; do
1458 if test "$enableval" = "$ol_val" ; then
1462 if test "$ol_arg" = "invalid" ; then
1463 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
1465 ol_enable_cache="$ol_arg"
1468 ol_enable_cache="no"
1470 # end --enable-cache
1471 # OpenLDAP --enable-referrals
1472 # Check whether --enable-referrals or --disable-referrals was given.
1473 if test "${enable_referrals+set}" = set; then
1474 enableval="$enable_referrals"
1477 for ol_val in auto yes no ; do
1478 if test "$enableval" = "$ol_val" ; then
1482 if test "$ol_arg" = "invalid" ; then
1483 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
1485 ol_enable_referrals="$ol_arg"
1488 ol_enable_referrals="no"
1490 # end --enable-referrals
1491 # OpenLDAP --enable-kbind
1492 # Check whether --enable-kbind or --disable-kbind was given.
1493 if test "${enable_kbind+set}" = set; then
1494 enableval="$enable_kbind"
1497 for ol_val in auto yes no ; do
1498 if test "$enableval" = "$ol_val" ; then
1502 if test "$ol_arg" = "invalid" ; then
1503 { echo "configure: error: bad value $enableval for --enable-kbind" 1>&2; exit 1; }
1505 ol_enable_kbind="$ol_arg"
1508 ol_enable_kbind="no"
1510 # end --enable-kbind
1511 # OpenLDAP --enable-ipv6
1512 # Check whether --enable-ipv6 or --disable-ipv6 was given.
1513 if test "${enable_ipv6+set}" = set; then
1514 enableval="$enable_ipv6"
1517 for ol_val in auto yes no ; do
1518 if test "$enableval" = "$ol_val" ; then
1522 if test "$ol_arg" = "invalid" ; then
1523 { echo "configure: error: bad value $enableval for --enable-ipv6" 1>&2; exit 1; }
1525 ol_enable_ipv6="$ol_arg"
1528 ol_enable_ipv6="auto"
1531 # OpenLDAP --enable-local
1532 # Check whether --enable-local or --disable-local was given.
1533 if test "${enable_local+set}" = set; then
1534 enableval="$enable_local"
1537 for ol_val in auto yes no ; do
1538 if test "$enableval" = "$ol_val" ; then
1542 if test "$ol_arg" = "invalid" ; then
1543 { echo "configure: error: bad value $enableval for --enable-local" 1>&2; exit 1; }
1545 ol_enable_local="$ol_arg"
1548 ol_enable_local="auto"
1550 # end --enable-local
1551 # OpenLDAP --enable-rewrite
1552 # Check whether --enable-rewrite or --disable-rewrite was given.
1553 if test "${enable_rewrite+set}" = set; then
1554 enableval="$enable_rewrite"
1557 for ol_val in auto yes no ; do
1558 if test "$enableval" = "$ol_val" ; then
1562 if test "$ol_arg" = "invalid" ; then
1563 { echo "configure: error: bad value $enableval for --enable-rewrite" 1>&2; exit 1; }
1565 ol_enable_rewrite="$ol_arg"
1568 ol_enable_rewrite="no"
1570 # end --enable-rewrite
1571 # OpenLDAP --enable-x_compile
1572 # Check whether --enable-x_compile or --disable-x_compile was given.
1573 if test "${enable_x_compile+set}" = set; then
1574 enableval="$enable_x_compile"
1577 for ol_val in yes no ; do
1578 if test "$enableval" = "$ol_val" ; then
1582 if test "$ol_arg" = "invalid" ; then
1583 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1585 ol_enable_x_compile="$ol_arg"
1588 ol_enable_x_compile="no"
1590 # end --enable-x_compile
1593 # OpenLDAP --with-cyrus_sasl
1594 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
1595 if test "${with_cyrus_sasl+set}" = set; then
1596 withval="$with_cyrus_sasl"
1599 for ol_val in auto yes no ; do
1600 if test "$withval" = "$ol_val" ; then
1604 if test "$ol_arg" = "invalid" ; then
1605 { echo "configure: error: bad value $withval for --with-cyrus_sasl" 1>&2; exit 1; }
1607 ol_with_cyrus_sasl="$ol_arg"
1610 ol_with_cyrus_sasl="auto"
1612 # end --with-cyrus_sasl
1614 # OpenLDAP --with-fetch
1615 # Check whether --with-fetch or --without-fetch was given.
1616 if test "${with_fetch+set}" = set; then
1617 withval="$with_fetch"
1620 for ol_val in auto yes no ; do
1621 if test "$withval" = "$ol_val" ; then
1625 if test "$ol_arg" = "invalid" ; then
1626 { echo "configure: error: bad value $withval for --with-fetch" 1>&2; exit 1; }
1628 ol_with_fetch="$ol_arg"
1631 ol_with_fetch="auto"
1635 # OpenLDAP --with-kerberos
1636 # Check whether --with-kerberos or --without-kerberos was given.
1637 if test "${with_kerberos+set}" = set; then
1638 withval="$with_kerberos"
1641 for ol_val in auto k5 k5only k425 kth k4 afs yes no ; do
1642 if test "$withval" = "$ol_val" ; then
1646 if test "$ol_arg" = "invalid" ; then
1647 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1649 ol_with_kerberos="$ol_arg"
1652 ol_with_kerberos="auto"
1654 # end --with-kerberos
1656 # OpenLDAP --with-readline
1657 # Check whether --with-readline or --without-readline was given.
1658 if test "${with_readline+set}" = set; then
1659 withval="$with_readline"
1662 for ol_val in auto yes no ; do
1663 if test "$withval" = "$ol_val" ; then
1667 if test "$ol_arg" = "invalid" ; then
1668 { echo "configure: error: bad value $withval for --with-readline" 1>&2; exit 1; }
1670 ol_with_readline="$ol_arg"
1673 ol_with_readline="auto"
1675 # end --with-readline
1677 # OpenLDAP --with-threads
1678 # Check whether --with-threads or --without-threads was given.
1679 if test "${with_threads+set}" = set; then
1680 withval="$with_threads"
1683 for ol_val in auto nt posix mach pth lwp yes no manual ; do
1684 if test "$withval" = "$ol_val" ; then
1688 if test "$ol_arg" = "invalid" ; then
1689 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1691 ol_with_threads="$ol_arg"
1694 ol_with_threads="auto"
1696 # end --with-threads
1698 # OpenLDAP --with-tls
1699 # Check whether --with-tls or --without-tls was given.
1700 if test "${with_tls+set}" = set; then
1704 for ol_val in auto ssleay openssl yes no ; do
1705 if test "$withval" = "$ol_val" ; then
1709 if test "$ol_arg" = "invalid" ; then
1710 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1712 ol_with_tls="$ol_arg"
1719 # OpenLDAP --with-yielding_select
1720 # Check whether --with-yielding_select or --without-yielding_select was given.
1721 if test "${with_yielding_select+set}" = set; then
1722 withval="$with_yielding_select"
1725 for ol_val in auto yes no manual ; do
1726 if test "$withval" = "$ol_val" ; then
1730 if test "$ol_arg" = "invalid" ; then
1731 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1733 ol_with_yielding_select="$ol_arg"
1736 ol_with_yielding_select="auto"
1738 # end --with-yielding_select
1742 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1743 if test "${with_xxslapdoptions+set}" = set; then
1744 withval="$with_xxslapdoptions"
1748 # OpenLDAP --enable-slapd
1749 # Check whether --enable-slapd or --disable-slapd was given.
1750 if test "${enable_slapd+set}" = set; then
1751 enableval="$enable_slapd"
1754 for ol_val in auto yes no ; do
1755 if test "$enableval" = "$ol_val" ; then
1759 if test "$ol_arg" = "invalid" ; then
1760 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1762 ol_enable_slapd="$ol_arg"
1765 ol_enable_slapd="yes"
1767 # end --enable-slapd
1768 # OpenLDAP --enable-aci
1769 # Check whether --enable-aci or --disable-aci was given.
1770 if test "${enable_aci+set}" = set; then
1771 enableval="$enable_aci"
1774 for ol_val in auto yes no ; do
1775 if test "$enableval" = "$ol_val" ; then
1779 if test "$ol_arg" = "invalid" ; then
1780 { echo "configure: error: bad value $enableval for --enable-aci" 1>&2; exit 1; }
1782 ol_enable_aci="$ol_arg"
1788 # OpenLDAP --enable-cleartext
1789 # Check whether --enable-cleartext or --disable-cleartext was given.
1790 if test "${enable_cleartext+set}" = set; then
1791 enableval="$enable_cleartext"
1794 for ol_val in auto yes no ; do
1795 if test "$enableval" = "$ol_val" ; then
1799 if test "$ol_arg" = "invalid" ; then
1800 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1802 ol_enable_cleartext="$ol_arg"
1805 ol_enable_cleartext="yes"
1807 # end --enable-cleartext
1808 # OpenLDAP --enable-crypt
1809 # Check whether --enable-crypt or --disable-crypt was given.
1810 if test "${enable_crypt+set}" = set; then
1811 enableval="$enable_crypt"
1814 for ol_val in auto yes no ; do
1815 if test "$enableval" = "$ol_val" ; then
1819 if test "$ol_arg" = "invalid" ; then
1820 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1822 ol_enable_crypt="$ol_arg"
1825 ol_enable_crypt="no"
1827 # end --enable-crypt
1828 # OpenLDAP --enable-dynamic
1829 # Check whether --enable-dynamic or --disable-dynamic was given.
1830 if test "${enable_dynamic+set}" = set; then
1831 enableval="$enable_dynamic"
1834 for ol_val in auto yes no ; do
1835 if test "$enableval" = "$ol_val" ; then
1839 if test "$ol_arg" = "invalid" ; then
1840 { echo "configure: error: bad value $enableval for --enable-dynamic" 1>&2; exit 1; }
1842 ol_enable_dynamic="$ol_arg"
1845 ol_enable_dynamic="no"
1847 # end --enable-dynamic
1848 # OpenLDAP --enable-kpasswd
1849 # Check whether --enable-kpasswd or --disable-kpasswd was given.
1850 if test "${enable_kpasswd+set}" = set; then
1851 enableval="$enable_kpasswd"
1854 for ol_val in auto yes no ; do
1855 if test "$enableval" = "$ol_val" ; then
1859 if test "$ol_arg" = "invalid" ; then
1860 { echo "configure: error: bad value $enableval for --enable-kpasswd" 1>&2; exit 1; }
1862 ol_enable_kpasswd="$ol_arg"
1865 ol_enable_kpasswd="no"
1867 # end --enable-kpasswd
1868 # OpenLDAP --enable-lmpasswd
1869 # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
1870 if test "${enable_lmpasswd+set}" = set; then
1871 enableval="$enable_lmpasswd"
1874 for ol_val in auto yes no ; do
1875 if test "$enableval" = "$ol_val" ; then
1879 if test "$ol_arg" = "invalid" ; then
1880 { echo "configure: error: bad value $enableval for --enable-lmpasswd" 1>&2; exit 1; }
1882 ol_enable_lmpasswd="$ol_arg"
1885 ol_enable_lmpasswd="no"
1887 # end --enable-lmpasswd
1888 # OpenLDAP --enable-spasswd
1889 # Check whether --enable-spasswd or --disable-spasswd was given.
1890 if test "${enable_spasswd+set}" = set; then
1891 enableval="$enable_spasswd"
1894 for ol_val in auto yes no ; do
1895 if test "$enableval" = "$ol_val" ; then
1899 if test "$ol_arg" = "invalid" ; then
1900 { echo "configure: error: bad value $enableval for --enable-spasswd" 1>&2; exit 1; }
1902 ol_enable_spasswd="$ol_arg"
1905 ol_enable_spasswd="no"
1907 # end --enable-spasswd
1908 # OpenLDAP --enable-modules
1909 # Check whether --enable-modules or --disable-modules was given.
1910 if test "${enable_modules+set}" = set; then
1911 enableval="$enable_modules"
1914 for ol_val in auto yes no ; do
1915 if test "$enableval" = "$ol_val" ; then
1919 if test "$ol_arg" = "invalid" ; then
1920 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1922 ol_enable_modules="$ol_arg"
1925 ol_enable_modules="no"
1927 # end --enable-modules
1928 # OpenLDAP --enable-phonetic
1929 # Check whether --enable-phonetic or --disable-phonetic was given.
1930 if test "${enable_phonetic+set}" = set; then
1931 enableval="$enable_phonetic"
1934 for ol_val in auto yes no ; do
1935 if test "$enableval" = "$ol_val" ; then
1939 if test "$ol_arg" = "invalid" ; then
1940 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1942 ol_enable_phonetic="$ol_arg"
1945 ol_enable_phonetic="no"
1947 # end --enable-phonetic
1948 # OpenLDAP --enable-rlookups
1949 # Check whether --enable-rlookups or --disable-rlookups was given.
1950 if test "${enable_rlookups+set}" = set; then
1951 enableval="$enable_rlookups"
1954 for ol_val in auto yes no ; do
1955 if test "$enableval" = "$ol_val" ; then
1959 if test "$ol_arg" = "invalid" ; then
1960 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1962 ol_enable_rlookups="$ol_arg"
1965 ol_enable_rlookups="no"
1967 # end --enable-rlookups
1968 # OpenLDAP --enable-slp
1969 # Check whether --enable-slp or --disable-slp was given.
1970 if test "${enable_slp+set}" = set; then
1971 enableval="$enable_slp"
1974 for ol_val in auto yes no ; do
1975 if test "$enableval" = "$ol_val" ; then
1979 if test "$ol_arg" = "invalid" ; then
1980 { echo "configure: error: bad value $enableval for --enable-slp" 1>&2; exit 1; }
1982 ol_enable_slp="$ol_arg"
1988 # OpenLDAP --enable-wrappers
1989 # Check whether --enable-wrappers or --disable-wrappers was given.
1990 if test "${enable_wrappers+set}" = set; then
1991 enableval="$enable_wrappers"
1994 for ol_val in auto yes no ; do
1995 if test "$enableval" = "$ol_val" ; then
1999 if test "$ol_arg" = "invalid" ; then
2000 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
2002 ol_enable_wrappers="$ol_arg"
2005 ol_enable_wrappers="no"
2007 # end --enable-wrappers
2009 # OpenLDAP --enable-bdb
2010 # Check whether --enable-bdb or --disable-bdb was given.
2011 if test "${enable_bdb+set}" = set; then
2012 enableval="$enable_bdb"
2015 for ol_val in auto yes no ; do
2016 if test "$enableval" = "$ol_val" ; then
2020 if test "$ol_arg" = "invalid" ; then
2021 { echo "configure: error: bad value $enableval for --enable-bdb" 1>&2; exit 1; }
2023 ol_enable_bdb="$ol_arg"
2029 # OpenLDAP --with-bdb_module
2030 # Check whether --with-bdb_module or --without-bdb_module was given.
2031 if test "${with_bdb_module+set}" = set; then
2032 withval="$with_bdb_module"
2035 for ol_val in static dynamic ; do
2036 if test "$withval" = "$ol_val" ; then
2040 if test "$ol_arg" = "invalid" ; then
2041 { echo "configure: error: bad value $withval for --with-bdb_module" 1>&2; exit 1; }
2043 ol_with_bdb_module="$ol_arg"
2046 ol_with_bdb_module="static"
2048 # end --with-bdb_module
2050 # OpenLDAP --enable-dnssrv
2051 # Check whether --enable-dnssrv or --disable-dnssrv was given.
2052 if test "${enable_dnssrv+set}" = set; then
2053 enableval="$enable_dnssrv"
2056 for ol_val in auto yes no ; do
2057 if test "$enableval" = "$ol_val" ; then
2061 if test "$ol_arg" = "invalid" ; then
2062 { echo "configure: error: bad value $enableval for --enable-dnssrv" 1>&2; exit 1; }
2064 ol_enable_dnssrv="$ol_arg"
2067 ol_enable_dnssrv="no"
2069 # end --enable-dnssrv
2070 # OpenLDAP --with-dnssrv_module
2071 # Check whether --with-dnssrv_module or --without-dnssrv_module was given.
2072 if test "${with_dnssrv_module+set}" = set; then
2073 withval="$with_dnssrv_module"
2076 for ol_val in static dynamic ; do
2077 if test "$withval" = "$ol_val" ; then
2081 if test "$ol_arg" = "invalid" ; then
2082 { echo "configure: error: bad value $withval for --with-dnssrv_module" 1>&2; exit 1; }
2084 ol_with_dnssrv_module="$ol_arg"
2087 ol_with_dnssrv_module="static"
2089 # end --with-dnssrv_module
2091 # OpenLDAP --enable-ldap
2092 # Check whether --enable-ldap or --disable-ldap was given.
2093 if test "${enable_ldap+set}" = set; then
2094 enableval="$enable_ldap"
2097 for ol_val in auto yes no ; do
2098 if test "$enableval" = "$ol_val" ; then
2102 if test "$ol_arg" = "invalid" ; then
2103 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
2105 ol_enable_ldap="$ol_arg"
2111 # OpenLDAP --with-ldap_module
2112 # Check whether --with-ldap_module or --without-ldap_module was given.
2113 if test "${with_ldap_module+set}" = set; then
2114 withval="$with_ldap_module"
2117 for ol_val in static dynamic ; do
2118 if test "$withval" = "$ol_val" ; then
2122 if test "$ol_arg" = "invalid" ; then
2123 { echo "configure: error: bad value $withval for --with-ldap_module" 1>&2; exit 1; }
2125 ol_with_ldap_module="$ol_arg"
2128 ol_with_ldap_module="static"
2130 # end --with-ldap_module
2132 # OpenLDAP --enable-ldbm
2133 # Check whether --enable-ldbm or --disable-ldbm was given.
2134 if test "${enable_ldbm+set}" = set; then
2135 enableval="$enable_ldbm"
2138 for ol_val in auto yes no ; do
2139 if test "$enableval" = "$ol_val" ; then
2143 if test "$ol_arg" = "invalid" ; then
2144 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
2146 ol_enable_ldbm="$ol_arg"
2152 # OpenLDAP --with-ldbm_api
2153 # Check whether --with-ldbm_api or --without-ldbm_api was given.
2154 if test "${with_ldbm_api+set}" = set; then
2155 withval="$with_ldbm_api"
2158 for ol_val in auto berkeley bcompat mdbm gdbm ; do
2159 if test "$withval" = "$ol_val" ; then
2163 if test "$ol_arg" = "invalid" ; then
2164 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
2166 ol_with_ldbm_api="$ol_arg"
2169 ol_with_ldbm_api="auto"
2171 # end --with-ldbm_api
2173 # OpenLDAP --with-ldbm_module
2174 # Check whether --with-ldbm_module or --without-ldbm_module was given.
2175 if test "${with_ldbm_module+set}" = set; then
2176 withval="$with_ldbm_module"
2179 for ol_val in static dynamic ; do
2180 if test "$withval" = "$ol_val" ; then
2184 if test "$ol_arg" = "invalid" ; then
2185 { echo "configure: error: bad value $withval for --with-ldbm_module" 1>&2; exit 1; }
2187 ol_with_ldbm_module="$ol_arg"
2190 ol_with_ldbm_module="static"
2192 # end --with-ldbm_module
2194 # OpenLDAP --with-ldbm_type
2195 # Check whether --with-ldbm_type or --without-ldbm_type was given.
2196 if test "${with_ldbm_type+set}" = set; then
2197 withval="$with_ldbm_type"
2200 for ol_val in auto btree hash ; do
2201 if test "$withval" = "$ol_val" ; then
2205 if test "$ol_arg" = "invalid" ; then
2206 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
2208 ol_with_ldbm_type="$ol_arg"
2211 ol_with_ldbm_type="auto"
2213 # end --with-ldbm_type
2215 # OpenLDAP --enable-meta
2216 # Check whether --enable-meta or --disable-meta was given.
2217 if test "${enable_meta+set}" = set; then
2218 enableval="$enable_meta"
2221 for ol_val in auto yes no ; do
2222 if test "$enableval" = "$ol_val" ; then
2226 if test "$ol_arg" = "invalid" ; then
2227 { echo "configure: error: bad value $enableval for --enable-meta" 1>&2; exit 1; }
2229 ol_enable_meta="$ol_arg"
2235 # OpenLDAP --with-meta_module
2236 # Check whether --with-meta_module or --without-meta_module was given.
2237 if test "${with_meta_module+set}" = set; then
2238 withval="$with_meta_module"
2241 for ol_val in static dynamic ; do
2242 if test "$withval" = "$ol_val" ; then
2246 if test "$ol_arg" = "invalid" ; then
2247 { echo "configure: error: bad value $withval for --with-meta_module" 1>&2; exit 1; }
2249 ol_with_meta_module="$ol_arg"
2252 ol_with_meta_module="static"
2254 # end --with-meta_module
2256 # OpenLDAP --enable-monitor
2257 # Check whether --enable-monitor or --disable-monitor was given.
2258 if test "${enable_monitor+set}" = set; then
2259 enableval="$enable_monitor"
2262 for ol_val in auto yes no ; do
2263 if test "$enableval" = "$ol_val" ; then
2267 if test "$ol_arg" = "invalid" ; then
2268 { echo "configure: error: bad value $enableval for --enable-monitor" 1>&2; exit 1; }
2270 ol_enable_monitor="$ol_arg"
2273 ol_enable_monitor="no"
2275 # end --enable-monitor
2276 # OpenLDAP --with-monitor_module
2277 # Check whether --with-monitor_module or --without-monitor_module was given.
2278 if test "${with_monitor_module+set}" = set; then
2279 withval="$with_monitor_module"
2282 for ol_val in static dynamic ; do
2283 if test "$withval" = "$ol_val" ; then
2287 if test "$ol_arg" = "invalid" ; then
2288 { echo "configure: error: bad value $withval for --with-monitor_module" 1>&2; exit 1; }
2290 ol_with_monitor_module="$ol_arg"
2293 ol_with_monitor_module="static"
2295 # end --with-monitor_module
2297 # OpenLDAP --enable-passwd
2298 # Check whether --enable-passwd or --disable-passwd was given.
2299 if test "${enable_passwd+set}" = set; then
2300 enableval="$enable_passwd"
2303 for ol_val in auto yes no ; do
2304 if test "$enableval" = "$ol_val" ; then
2308 if test "$ol_arg" = "invalid" ; then
2309 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
2311 ol_enable_passwd="$ol_arg"
2314 ol_enable_passwd="no"
2316 # end --enable-passwd
2317 # OpenLDAP --with-passwd_module
2318 # Check whether --with-passwd_module or --without-passwd_module was given.
2319 if test "${with_passwd_module+set}" = set; then
2320 withval="$with_passwd_module"
2323 for ol_val in static dynamic ; do
2324 if test "$withval" = "$ol_val" ; then
2328 if test "$ol_arg" = "invalid" ; then
2329 { echo "configure: error: bad value $withval for --with-passwd_module" 1>&2; exit 1; }
2331 ol_with_passwd_module="$ol_arg"
2334 ol_with_passwd_module="static"
2336 # end --with-passwd_module
2338 # OpenLDAP --enable-perl
2339 # Check whether --enable-perl or --disable-perl was given.
2340 if test "${enable_perl+set}" = set; then
2341 enableval="$enable_perl"
2344 for ol_val in auto yes no ; do
2345 if test "$enableval" = "$ol_val" ; then
2349 if test "$ol_arg" = "invalid" ; then
2350 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
2352 ol_enable_perl="$ol_arg"
2358 # OpenLDAP --with-perl_module
2359 # Check whether --with-perl_module or --without-perl_module was given.
2360 if test "${with_perl_module+set}" = set; then
2361 withval="$with_perl_module"
2364 for ol_val in static dynamic ; do
2365 if test "$withval" = "$ol_val" ; then
2369 if test "$ol_arg" = "invalid" ; then
2370 { echo "configure: error: bad value $withval for --with-perl_module" 1>&2; exit 1; }
2372 ol_with_perl_module="$ol_arg"
2375 ol_with_perl_module="static"
2377 # end --with-perl_module
2379 # OpenLDAP --enable-shell
2380 # Check whether --enable-shell or --disable-shell was given.
2381 if test "${enable_shell+set}" = set; then
2382 enableval="$enable_shell"
2385 for ol_val in auto yes no ; do
2386 if test "$enableval" = "$ol_val" ; then
2390 if test "$ol_arg" = "invalid" ; then
2391 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
2393 ol_enable_shell="$ol_arg"
2396 ol_enable_shell="no"
2398 # end --enable-shell
2399 # OpenLDAP --with-shell_module
2400 # Check whether --with-shell_module or --without-shell_module was given.
2401 if test "${with_shell_module+set}" = set; then
2402 withval="$with_shell_module"
2405 for ol_val in static dynamic ; do
2406 if test "$withval" = "$ol_val" ; then
2410 if test "$ol_arg" = "invalid" ; then
2411 { echo "configure: error: bad value $withval for --with-shell_module" 1>&2; exit 1; }
2413 ol_with_shell_module="$ol_arg"
2416 ol_with_shell_module="static"
2418 # end --with-shell_module
2420 # OpenLDAP --enable-sql
2421 # Check whether --enable-sql or --disable-sql was given.
2422 if test "${enable_sql+set}" = set; then
2423 enableval="$enable_sql"
2426 for ol_val in auto yes no ; do
2427 if test "$enableval" = "$ol_val" ; then
2431 if test "$ol_arg" = "invalid" ; then
2432 { echo "configure: error: bad value $enableval for --enable-sql" 1>&2; exit 1; }
2434 ol_enable_sql="$ol_arg"
2440 # OpenLDAP --with-sql_module
2441 # Check whether --with-sql_module or --without-sql_module was given.
2442 if test "${with_sql_module+set}" = set; then
2443 withval="$with_sql_module"
2446 for ol_val in static dynamic ; do
2447 if test "$withval" = "$ol_val" ; then
2451 if test "$ol_arg" = "invalid" ; then
2452 { echo "configure: error: bad value $withval for --with-sql_module" 1>&2; exit 1; }
2454 ol_with_sql_module="$ol_arg"
2457 ol_with_sql_module="static"
2459 # end --with-sql_module
2461 # OpenLDAP --enable-tcl
2462 # Check whether --enable-tcl or --disable-tcl was given.
2463 if test "${enable_tcl+set}" = set; then
2464 enableval="$enable_tcl"
2467 for ol_val in auto yes no ; do
2468 if test "$enableval" = "$ol_val" ; then
2472 if test "$ol_arg" = "invalid" ; then
2473 { echo "configure: error: bad value $enableval for --enable-tcl" 1>&2; exit 1; }
2475 ol_enable_tcl="$ol_arg"
2481 # OpenLDAP --with-tcl_module
2482 # Check whether --with-tcl_module or --without-tcl_module was given.
2483 if test "${with_tcl_module+set}" = set; then
2484 withval="$with_tcl_module"
2487 for ol_val in static dynamic ; do
2488 if test "$withval" = "$ol_val" ; then
2492 if test "$ol_arg" = "invalid" ; then
2493 { echo "configure: error: bad value $withval for --with-tcl_module" 1>&2; exit 1; }
2495 ol_with_tcl_module="$ol_arg"
2498 ol_with_tcl_module="static"
2500 # end --with-tcl_module
2503 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
2504 if test "${with_xxslurpdoptions+set}" = set; then
2505 withval="$with_xxslurpdoptions"
2509 # OpenLDAP --enable-slurpd
2510 # Check whether --enable-slurpd or --disable-slurpd was given.
2511 if test "${enable_slurpd+set}" = set; then
2512 enableval="$enable_slurpd"
2515 for ol_val in auto yes no ; do
2516 if test "$enableval" = "$ol_val" ; then
2520 if test "$ol_arg" = "invalid" ; then
2521 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
2523 ol_enable_slurpd="$ol_arg"
2526 ol_enable_slurpd="auto"
2528 # end --enable-slurpd
2530 # Check whether --with-xxliboptions or --without-xxliboptions was given.
2531 if test "${with_xxliboptions+set}" = set; then
2532 withval="$with_xxliboptions"
2536 # Check whether --enable-static or --disable-static was given.
2537 if test "${enable_static+set}" = set; then
2538 enableval="$enable_static"
2539 p=${PACKAGE-default}
2541 yes) enable_static=yes ;;
2542 no) enable_static=no ;;
2545 # Look at the argument we got. We use all the common list separators.
2546 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2547 for pkg in $enableval; do
2548 if test "X$pkg" = "X$p"; then
2559 # Check whether --enable-shared or --disable-shared was given.
2560 if test "${enable_shared+set}" = set; then
2561 enableval="$enable_shared"
2562 p=${PACKAGE-default}
2564 yes) enable_shared=yes ;;
2565 no) enable_shared=no ;;
2568 # Look at the argument we got. We use all the common list separators.
2569 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2570 for pkg in $enableval; do
2571 if test "X$pkg" = "X$p"; then
2585 if test $ol_enable_slapd = no ; then
2586 if test $ol_enable_bdb = yes ; then
2587 echo "configure: warning: slapd disabled, ignoring --enable-bdb argument" 1>&2
2589 if test $ol_enable_dnssrv = yes ; then
2590 echo "configure: warning: slapd disabled, ignoring --enable-dnssrv argument" 1>&2
2592 if test $ol_enable_ldap = yes ; then
2593 echo "configure: warning: slapd disabled, ignoring --enable-ldap argument" 1>&2
2595 if test $ol_enable_ldbm = yes ; then
2596 echo "configure: warning: slapd disabled, ignoring --enable-ldbm argument" 1>&2
2598 if test $ol_enable_meta = yes ; then
2599 echo "configure: warning: slapd disabled, ignoring --enable-meta argument" 1>&2
2601 if test $ol_enable_monitor = yes ; then
2602 echo "configure: warning: slapd disabled, ignoring --enable-monitor argument" 1>&2
2604 if test $ol_enable_passwd = yes ; then
2605 echo "configure: warning: slapd disabled, ignoring --enable-passwd argument" 1>&2
2607 if test $ol_enable_perl = yes ; then
2608 echo "configure: warning: slapd disabled, ignoring --enable-perl argument" 1>&2
2610 if test $ol_enable_shell = yes ; then
2611 echo "configure: warning: slapd disabled, ignoring --enable-shell argument" 1>&2
2613 if test $ol_enable_tcl = yes ; then
2614 echo "configure: warning: slapd disabled, ignoring --enable-tcl argument" 1>&2
2616 if test $ol_enable_sql = yes ; then
2617 echo "configure: warning: slapd disabled, ignoring --enable-sql argument" 1>&2
2619 if test $ol_enable_modules = yes ; then
2620 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2622 if test $ol_enable_wrappers = yes ; then
2623 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2625 if test $ol_enable_phonetic = yes ; then
2626 echo "configure: warning: slapd disabled, ignoring --enable-phonetic argument" 1>&2
2628 if test $ol_enable_rlookups = yes ; then
2629 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2631 if test $ol_enable_aci = yes ; then
2632 echo "configure: warning: slapd disabled, ignoring --enable-aci argument" 1>&2
2634 if test $ol_with_ldbm_api != auto ; then
2635 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2637 if test $ol_with_ldbm_type != auto ; then
2638 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2640 if test $ol_with_bdb_module != static ; then
2641 echo "configure: warning: slapd disabled, ignoring --with-bdb-module argument" 1>&2
2643 if test $ol_with_dnssrv_module != static ; then
2644 echo "configure: warning: slapd disabled, ignoring --with-dnssrv-module argument" 1>&2
2646 if test $ol_with_ldap_module != static ; then
2647 echo "configure: warning: slapd disabled, ignoring --with-ldap-module argument" 1>&2
2649 if test $ol_with_ldbm_module != static ; then
2650 echo "configure: warning: slapd disabled, ignoring --with-ldbm-module argument" 1>&2
2652 if test $ol_with_meta_module != static ; then
2653 echo "configure: warning: slapd disabled, ignoring --with-meta-module argument" 1>&2
2655 if test $ol_with_monitor_module != static ; then
2656 echo "configure: warning: slapd disabled, ignoring --with-monitor-module argument" 1>&2
2658 if test $ol_with_passwd_module != static ; then
2659 echo "configure: warning: slapd disabled, ignoring --with-passwd-module argument" 1>&2
2661 if test $ol_with_perl_module != static ; then
2662 echo "configure: warning: slapd disabled, ignoring --with-perl-module argument" 1>&2
2664 if test $ol_with_shell_module != static ; then
2665 echo "configure: warning: slapd disabled, ignoring --with-shell-module argument" 1>&2
2667 if test $ol_with_tcl_module != static ; then
2668 echo "configure: warning: slapd disabled, ignoring --with-tcl-module argument" 1>&2
2670 if test $ol_with_sql_module != static ; then
2671 echo "configure: warning: slapd disabled, ignoring --with-sql-module argument" 1>&2
2673 if test $ol_enable_slurpd = yes ; then
2674 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2676 if test $ol_enable_rewrite = yes ; then
2677 echo "configure: warning: slapd disabled, ignoring --enable-rewrite argument" 1>&2
2680 # force settings to no
2686 ol_enable_monitor=no
2693 ol_enable_modules=no
2694 ol_enable_phonetic=no
2695 ol_enable_rlookups=no
2697 ol_enable_wrappers=no
2698 ol_enable_dynamic=no
2701 ol_with_ldbm_type=no
2703 ol_with_bdb_module=static
2704 ol_with_dnssrv_module=static
2705 ol_with_ldap_module=static
2706 ol_with_ldbm_module=static
2707 ol_with_meta_module=static
2708 ol_with_monitor_module=static
2709 ol_with_passwd_module=static
2710 ol_with_perl_module=static
2711 ol_with_shell_module=static
2712 ol_with_tcl_module=static
2713 ol_with_sql_module=static
2717 ol_enable_rewrite=no
2719 elif test $ol_enable_ldbm = no ; then
2721 if test $ol_with_ldbm_api != auto ; then
2722 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2725 if test $ol_with_ldbm_type != auto ; then
2726 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2729 if test $ol_with_ldbm_module != static ; then
2730 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-module argument" 1>&2
2733 if test $ol_enable_modules != yes -a \
2734 $ol_enable_bdb = no -a \
2735 $ol_enable_dnssrv = no -a \
2736 $ol_enable_ldap = no -a \
2737 $ol_enable_meta = no -a \
2738 $ol_enable_monitor = no -a \
2739 $ol_enable_passwd = no -a \
2740 $ol_enable_perl = no -a \
2741 $ol_enable_shell = no -a \
2742 $ol_enable_sql = no -a \
2743 $ol_enable_tcl = no ; then
2745 if test $ol_enable_slapd = yes ; then
2746 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2748 echo "configure: warning: skipping slapd, no backend specified" 1>&2
2754 ol_with_ldbm_type=no
2755 ol_with_ldbm_module=static
2757 if test $ol_enable_bdb != no ; then
2758 ol_with_ldbm_api=berkeley
2762 if test $ol_with_ldbm_api = gdbm -a \
2763 $ol_with_ldbm_type = btree ; then
2764 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2766 if test $ol_with_ldbm_api = mdbm -a \
2767 $ol_with_ldbm_type = btree ; then
2768 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2770 if test $ol_with_ldbm_api = ndbm -a \
2771 $ol_with_ldbm_type = btree ; then
2772 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2775 if test $ol_enable_bdb = yes ; then
2776 if test $ol_with_ldbm_api = auto ; then
2777 ol_with_ldbm_api=berkeley
2778 elif test $ol_with_ldbm_api != berkeley ; then
2779 { echo "configure: error: LDBM API not compatible with BDB" 1>&2; exit 1; }
2782 elif test $ol_enable_bdb = auto ; then
2783 if test $ol_with_ldbm_api != berkeley \
2784 -o $ol_with_ldbm_api != auto ; then
2785 echo "configure: warning: LDBM API not compatible with BDB, disabling BDB" 1>&2
2791 if test $ol_enable_slurpd = yes ; then
2792 if test $ol_with_threads = no ; then
2793 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2797 if test $ol_enable_lmpasswd = yes ; then
2798 if test $ol_with_tls = no ; then
2799 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
2803 if test $ol_enable_kbind = yes -o $ol_enable_kpasswd = yes ; then
2804 if test $ol_with_kerberos = no ; then
2805 { echo "configure: error: options require --with-kerberos" 1>&2; exit 1; }
2806 elif test $ol_with_kerberos = auto ; then
2807 ol_with_kerberos=yes
2810 elif test $ol_enable_kbind = no -o $ol_enable_kpasswd = no ; then
2811 if test $ol_with_kerberos = auto ; then
2813 elif test $ol_with_kerberos != no ; then
2814 echo "configure: warning: Kerberos detection enabled unnecessarily" 1>&2;
2819 if test $ol_enable_spasswd = yes ; then
2820 if test $ol_with_cyrus_sasl = no ; then
2821 { echo "configure: error: options require --with-cyrus-sasl" 1>&2; exit 1; }
2823 ol_with_cyrus_sasl=yes
2826 echo "$ac_t""done" 1>&6
2855 BUILD_BDB_DYNAMIC=static
2856 BUILD_DNSSRV_DYNAMIC=static
2857 BUILD_LDAP_DYNAMIC=static
2858 BUILD_LDBM_DYNAMIC=static
2859 BUILD_META_DYNAMIC=static
2860 BUILD_MONITOR_DYNAMIC=static
2861 BUILD_PASSWD_DYNAMIC=static
2862 BUILD_PERL_DYNAMIC=static
2863 BUILD_SHELL_DYNAMIC=static
2864 BUILD_TCL_DYNAMIC=static
2865 BUILD_SQL_DYNAMIC=static
2867 SLAPD_MODULES_LDFLAGS=
2868 SLAPD_MODULES_CPPFLAGS=
2871 SLAPD_STATIC_BACKENDS=
2872 SLAPD_DYNAMIC_BACKENDS=
2895 # Find a good install program. We prefer a C program (faster),
2896 # so one script is as good as another. But avoid the broken or
2897 # incompatible versions:
2898 # SysV /etc/install, /usr/sbin/install
2899 # SunOS /usr/etc/install
2900 # IRIX /sbin/install
2902 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2903 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2904 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2905 # ./install, which can be erroneously created by make from ./install.sh.
2906 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2907 echo "configure:2908: checking for a BSD compatible install" >&5
2908 if test -z "$INSTALL"; then
2909 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
2910 echo $ac_n "(cached) $ac_c" 1>&6
2912 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2913 for ac_dir in $PATH; do
2914 # Account for people who put trailing slashes in PATH elements.
2916 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2918 # OSF1 and SCO ODT 3.0 have their own names for install.
2919 # Don't use installbsd from OSF since it installs stuff as root
2921 for ac_prog in ginstall scoinst install; do
2922 if test -f $ac_dir/$ac_prog; then
2923 if test $ac_prog = install &&
2924 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2925 # AIX install. It has an incompatible calling convention.
2927 elif test $ac_prog = install &&
2928 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
2929 # program-specific install script used by HP pwplus--don't use.
2932 ac_cv_path_install="$ac_dir/$ac_prog -c"
2943 if test "${ac_cv_path_install+set}" = set; then
2944 INSTALL="$ac_cv_path_install"
2946 # As a last resort, use the slow shell script. We don't cache a
2947 # path for INSTALL within a source directory, because that will
2948 # break other packages using the cache if that directory is
2949 # removed, or if the path is relative.
2950 INSTALL="$ac_install_sh"
2953 echo "$ac_t""$INSTALL" 1>&6
2955 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2956 # It thinks the first close brace ends the variable substitution.
2957 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2959 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2961 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2964 cat >> confdefs.h <<\EOF
2965 #define HAVE_MKVERSION 1
2973 *-*-aix*) if test -z "$CC" ; then
2974 case "$ol_with_threads" in
2975 auto | yes | posix) ol_aix_threads=yes ;;
2981 if test $ol_aix_threads = yes ; then
2982 if test -z "${CC}" ; then
2983 for ac_prog in cc_r xlc_r cc
2985 # Extract the first word of "$ac_prog", so it can be a program name with args.
2986 set dummy $ac_prog; ac_word=$2
2987 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2988 echo "configure:2989: checking for $ac_word" >&5
2989 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2990 echo $ac_n "(cached) $ac_c" 1>&6
2992 if test -n "$CC"; then
2993 ac_cv_prog_CC="$CC" # Let the user override the test.
2995 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2997 for ac_dir in $ac_dummy; do
2998 test -z "$ac_dir" && ac_dir=.
2999 if test -f $ac_dir/$ac_word; then
3000 ac_cv_prog_CC="$ac_prog"
3008 if test -n "$CC"; then
3009 echo "$ac_t""$CC" 1>&6
3011 echo "$ac_t""no" 1>&6
3014 test -n "$CC" && break
3018 if test "$CC" = cc ; then
3019 if test $ol_with_threads != auto ; then
3020 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
3022 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
3028 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
3029 ol_with_threads=posix
3030 ol_cv_pthread_create=yes
3034 if test -z "${CC}"; then
3037 # Extract the first word of "$ac_prog", so it can be a program name with args.
3038 set dummy $ac_prog; ac_word=$2
3039 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3040 echo "configure:3041: checking for $ac_word" >&5
3041 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3042 echo $ac_n "(cached) $ac_c" 1>&6
3044 if test -n "$CC"; then
3045 ac_cv_prog_CC="$CC" # Let the user override the test.
3047 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3049 for ac_dir in $ac_dummy; do
3050 test -z "$ac_dir" && ac_dir=.
3051 if test -f $ac_dir/$ac_word; then
3052 ac_cv_prog_CC="$ac_prog"
3060 if test -n "$CC"; then
3061 echo "$ac_t""$CC" 1>&6
3063 echo "$ac_t""no" 1>&6
3066 test -n "$CC" && break
3072 for ac_prog in ar gar
3074 # Extract the first word of "$ac_prog", so it can be a program name with args.
3075 set dummy $ac_prog; ac_word=$2
3076 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3077 echo "configure:3078: checking for $ac_word" >&5
3078 if eval "test \"\${ac_cv_prog_AR+set}\" = set"; then
3079 echo $ac_n "(cached) $ac_c" 1>&6
3081 if test -n "$AR"; then
3082 ac_cv_prog_AR="$AR" # Let the user override the test.
3084 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3086 for ac_dir in $ac_dummy; do
3087 test -z "$ac_dir" && ac_dir=.
3088 if test -f $ac_dir/$ac_word; then
3089 ac_cv_prog_AR="$ac_prog"
3097 if test -n "$AR"; then
3098 echo "$ac_t""$AR" 1>&6
3100 echo "$ac_t""no" 1>&6
3103 test -n "$AR" && break
3105 test -n "$AR" || AR="ar"
3110 # Find the correct PATH separator. Usually this is `:', but
3111 # DJGPP uses `;' like DOS.
3112 if test "X${PATH_SEPARATOR+set}" != Xset; then
3113 UNAME=${UNAME-`uname 2>/dev/null`}
3115 *-DOS) lt_cv_sys_path_separator=';' ;;
3116 *) lt_cv_sys_path_separator=':' ;;
3118 PATH_SEPARATOR=$lt_cv_sys_path_separator
3121 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3122 echo "configure:3123: checking for Cygwin environment" >&5
3123 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
3124 echo $ac_n "(cached) $ac_c" 1>&6
3126 cat > conftest.$ac_ext <<EOF
3127 #line 3128 "configure"
3128 #include "confdefs.h"
3133 #define __CYGWIN__ __CYGWIN32__
3138 if { (eval echo configure:3139: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3142 echo "configure: failed program was:" >&5
3143 cat conftest.$ac_ext >&5
3150 echo "$ac_t""$ac_cv_cygwin" 1>&6
3152 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3153 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3154 echo "configure:3155: checking for mingw32 environment" >&5
3155 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
3156 echo $ac_n "(cached) $ac_c" 1>&6
3158 cat > conftest.$ac_ext <<EOF
3159 #line 3160 "configure"
3160 #include "confdefs.h"
3166 if { (eval echo configure:3167: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3170 echo "configure: failed program was:" >&5
3171 cat conftest.$ac_ext >&5
3178 echo "$ac_t""$ac_cv_mingw32" 1>&6
3180 test "$ac_cv_mingw32" = yes && MINGW32=yes
3181 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
3182 echo "configure:3183: checking for EMX OS/2 environment" >&5
3183 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
3184 echo $ac_n "(cached) $ac_c" 1>&6
3186 cat > conftest.$ac_ext <<EOF
3187 #line 3188 "configure"
3188 #include "confdefs.h"
3194 if { (eval echo configure:3195: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3198 echo "configure: failed program was:" >&5
3199 cat conftest.$ac_ext >&5
3206 echo "$ac_t""$ac_cv_emxos2" 1>&6
3208 test "$ac_cv_emxos2" = yes && EMXOS2=yes
3209 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3210 echo "configure:3211: checking how to run the C preprocessor" >&5
3211 # On Suns, sometimes $CPP names a directory.
3212 if test -n "$CPP" && test -d "$CPP"; then
3215 if test -z "$CPP"; then
3216 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
3217 echo $ac_n "(cached) $ac_c" 1>&6
3219 # This must be in double quotes, not single quotes, because CPP may get
3220 # substituted into the Makefile and "${CC-cc}" will confuse make.
3222 # On the NeXT, cc -E runs the code through the compiler's parser,
3223 # not just through cpp.
3224 cat > conftest.$ac_ext <<EOF
3225 #line 3226 "configure"
3226 #include "confdefs.h"
3230 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3231 { (eval echo configure:3232: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3232 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3233 if test -z "$ac_err"; then
3237 echo "configure: failed program was:" >&5
3238 cat conftest.$ac_ext >&5
3240 CPP="${CC-cc} -E -traditional-cpp"
3241 cat > conftest.$ac_ext <<EOF
3242 #line 3243 "configure"
3243 #include "confdefs.h"
3247 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3248 { (eval echo configure:3249: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3249 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3250 if test -z "$ac_err"; then
3254 echo "configure: failed program was:" >&5
3255 cat conftest.$ac_ext >&5
3257 CPP="${CC-cc} -nologo -E"
3258 cat > conftest.$ac_ext <<EOF
3259 #line 3260 "configure"
3260 #include "confdefs.h"
3264 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3265 { (eval echo configure:3266: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3266 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3267 if test -z "$ac_err"; then
3271 echo "configure: failed program was:" >&5
3272 cat conftest.$ac_ext >&5
3281 ac_cv_prog_CPP="$CPP"
3283 CPP="$ac_cv_prog_CPP"
3285 ac_cv_prog_CPP="$CPP"
3287 echo "$ac_t""$CPP" 1>&6
3289 # Check whether --enable-fast-install or --disable-fast-install was given.
3290 if test "${enable_fast_install+set}" = set; then
3291 enableval="$enable_fast_install"
3292 p=${PACKAGE-default}
3294 yes) enable_fast_install=yes ;;
3295 no) enable_fast_install=no ;;
3297 enable_fast_install=no
3298 # Look at the argument we got. We use all the common list separators.
3299 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3300 for pkg in $enableval; do
3301 if test "X$pkg" = "X$p"; then
3302 enable_fast_install=yes
3309 enable_fast_install=yes
3312 # Extract the first word of "gcc", so it can be a program name with args.
3313 set dummy gcc; ac_word=$2
3314 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3315 echo "configure:3316: checking for $ac_word" >&5
3316 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3317 echo $ac_n "(cached) $ac_c" 1>&6
3319 if test -n "$CC"; then
3320 ac_cv_prog_CC="$CC" # Let the user override the test.
3322 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3324 for ac_dir in $ac_dummy; do
3325 test -z "$ac_dir" && ac_dir=.
3326 if test -f $ac_dir/$ac_word; then
3335 if test -n "$CC"; then
3336 echo "$ac_t""$CC" 1>&6
3338 echo "$ac_t""no" 1>&6
3341 if test -z "$CC"; then
3342 # Extract the first word of "cc", so it can be a program name with args.
3343 set dummy cc; ac_word=$2
3344 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3345 echo "configure:3346: checking for $ac_word" >&5
3346 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3347 echo $ac_n "(cached) $ac_c" 1>&6
3349 if test -n "$CC"; then
3350 ac_cv_prog_CC="$CC" # Let the user override the test.
3352 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3355 for ac_dir in $ac_dummy; do
3356 test -z "$ac_dir" && ac_dir=.
3357 if test -f $ac_dir/$ac_word; then
3358 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
3359 ac_prog_rejected=yes
3367 if test $ac_prog_rejected = yes; then
3368 # We found a bogon in the path, so make sure we never use it.
3369 set dummy $ac_cv_prog_CC
3371 if test $# -gt 0; then
3372 # We chose a different compiler from the bogus one.
3373 # However, it has the same basename, so the bogon will be chosen
3374 # first if we set CC to just the basename; use the full file name.
3376 set dummy "$ac_dir/$ac_word" "$@"
3384 if test -n "$CC"; then
3385 echo "$ac_t""$CC" 1>&6
3387 echo "$ac_t""no" 1>&6
3390 if test -z "$CC"; then
3391 case "`uname -s`" in
3392 *win32* | *WIN32* | *CYGWIN*)
3393 # Extract the first word of "cl", so it can be a program name with args.
3394 set dummy cl; ac_word=$2
3395 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3396 echo "configure:3397: checking for $ac_word" >&5
3397 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3398 echo $ac_n "(cached) $ac_c" 1>&6
3400 if test -n "$CC"; then
3401 ac_cv_prog_CC="$CC" # Let the user override the test.
3403 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
3416 if test -n "$CC"; then
3417 echo "$ac_t""$CC" 1>&6
3419 echo "$ac_t""no" 1>&6
3424 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
3427 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
3428 echo "configure:3429: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
3431 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3432 ac_cpp='$CPP $CPPFLAGS'
3433 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3434 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3435 cross_compiling=$ac_cv_prog_cc_cross
3437 cat > conftest.$ac_ext << EOF
3439 #line 3440 "configure"
3440 #include "confdefs.h"
3444 if { (eval echo configure:3445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3445 ac_cv_prog_cc_works=yes
3446 # If we can't run a trivial program, we are probably using a cross compiler.
3447 if (./conftest; exit) 2>/dev/null; then
3448 ac_cv_prog_cc_cross=no
3450 ac_cv_prog_cc_cross=yes
3453 echo "configure: failed program was:" >&5
3454 cat conftest.$ac_ext >&5
3455 ac_cv_prog_cc_works=no
3459 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3460 ac_cpp='$CPP $CPPFLAGS'
3461 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3462 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3463 cross_compiling=$ac_cv_prog_cc_cross
3465 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
3466 if test $ac_cv_prog_cc_works = no; then
3467 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
3469 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
3470 echo "configure:3471: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
3471 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
3472 cross_compiling=$ac_cv_prog_cc_cross
3474 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
3475 echo "configure:3476: checking whether we are using GNU C" >&5
3476 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
3477 echo $ac_n "(cached) $ac_c" 1>&6
3479 cat > conftest.c <<EOF
3484 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:3485: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
3491 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
3493 if test $ac_cv_prog_gcc = yes; then
3499 ac_test_CFLAGS="${CFLAGS+set}"
3500 ac_save_CFLAGS="$CFLAGS"
3502 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
3503 echo "configure:3504: checking whether ${CC-cc} accepts -g" >&5
3504 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
3505 echo $ac_n "(cached) $ac_c" 1>&6
3507 echo 'void f(){}' > conftest.c
3508 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
3517 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
3518 if test "$ac_test_CFLAGS" = set; then
3519 CFLAGS="$ac_save_CFLAGS"
3520 elif test $ac_cv_prog_cc_g = yes; then
3521 if test "$GCC" = yes; then
3527 if test "$GCC" = yes; then
3534 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3535 if test "${with_gnu_ld+set}" = set; then
3536 withval="$with_gnu_ld"
3537 test "$withval" = no || with_gnu_ld=yes
3543 if test "$GCC" = yes; then
3544 # Check if gcc -print-prog-name=ld gives a path.
3545 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
3546 echo "configure:3547: checking for ld used by GCC" >&5
3549 # gcc leaves a trailing carriage return which upsets mingw
3550 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3552 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3555 # Accept absolute paths.
3556 [\\/]* | [A-Za-z]:[\\/]*)
3557 re_direlt='/[^/][^/]*/\.\./'
3558 # Canonicalize the path of ld
3559 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3560 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3561 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3563 test -z "$LD" && LD="$ac_prog"
3566 # If it fails, then pretend we aren't using GCC.
3570 # If it is relative, then search for the first ld in PATH.
3574 elif test "$with_gnu_ld" = yes; then
3575 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
3576 echo "configure:3577: checking for GNU ld" >&5
3578 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
3579 echo "configure:3580: checking for non-GNU ld" >&5
3581 if eval "test \"\${lt_cv_path_LD+set}\" = set"; then
3582 echo $ac_n "(cached) $ac_c" 1>&6
3584 if test -z "$LD"; then
3585 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3586 for ac_dir in $PATH; do
3587 test -z "$ac_dir" && ac_dir=.
3588 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3589 lt_cv_path_LD="$ac_dir/$ac_prog"
3590 # Check to see if the program is GNU ld. I'd rather use --version,
3591 # but apparently some GNU ld's only accept -v.
3592 # Break only if it was the GNU/non-GNU ld that we prefer.
3593 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3594 test "$with_gnu_ld" != no && break
3596 test "$with_gnu_ld" != yes && break
3602 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3607 if test -n "$LD"; then
3608 echo "$ac_t""$LD" 1>&6
3610 echo "$ac_t""no" 1>&6
3612 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
3613 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
3614 echo "configure:3615: checking if the linker ($LD) is GNU ld" >&5
3615 if eval "test \"\${lt_cv_prog_gnu_ld+set}\" = set"; then
3616 echo $ac_n "(cached) $ac_c" 1>&6
3618 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3619 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3620 lt_cv_prog_gnu_ld=yes
3622 lt_cv_prog_gnu_ld=no
3626 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
3627 with_gnu_ld=$lt_cv_prog_gnu_ld
3630 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
3631 echo "configure:3632: checking for $LD option to reload object files" >&5
3632 if eval "test \"\${lt_cv_ld_reload_flag+set}\" = set"; then
3633 echo $ac_n "(cached) $ac_c" 1>&6
3635 lt_cv_ld_reload_flag='-r'
3638 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
3639 reload_flag=$lt_cv_ld_reload_flag
3640 test -n "$reload_flag" && reload_flag=" $reload_flag"
3642 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
3643 echo "configure:3644: checking for BSD-compatible nm" >&5
3644 if eval "test \"\${lt_cv_path_NM+set}\" = set"; then
3645 echo $ac_n "(cached) $ac_c" 1>&6
3647 if test -n "$NM"; then
3648 # Let the user override the test.
3651 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3652 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3653 test -z "$ac_dir" && ac_dir=.
3654 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3655 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3656 # Check to see if the nm accepts a BSD-compat flag.
3657 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3658 # nm: unknown option "B" ignored
3659 # Tru64's nm complains that /dev/null is an invalid object file
3660 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3661 lt_cv_path_NM="$tmp_nm -B"
3663 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3664 lt_cv_path_NM="$tmp_nm -p"
3667 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3668 continue # so that we can try to find one that supports BSD flags
3673 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3678 echo "$ac_t""$NM" 1>&6
3680 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3681 echo "configure:3682: checking whether ln -s works" >&5
3682 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3683 echo $ac_n "(cached) $ac_c" 1>&6
3686 if ln -s X conftestdata 2>/dev/null
3689 ac_cv_prog_LN_S="ln -s"
3694 LN_S="$ac_cv_prog_LN_S"
3695 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3696 echo "$ac_t""yes" 1>&6
3698 echo "$ac_t""no" 1>&6
3701 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
3702 echo "configure:3703: checking how to recognise dependant libraries" >&5
3703 if eval "test \"\${lt_cv_deplibs_check_method+set}\" = set"; then
3704 echo $ac_n "(cached) $ac_c" 1>&6
3706 lt_cv_file_magic_cmd='$MAGIC_CMD'
3707 lt_cv_file_magic_test_file=
3708 lt_cv_deplibs_check_method='unknown'
3709 # Need to set the preceding variable on all platforms that support
3710 # interlibrary dependencies.
3711 # 'none' -- dependencies not supported.
3712 # `unknown' -- same as none, but documents that we really don't know.
3713 # 'pass_all' -- all dependencies passed with no checks.
3714 # 'test_compile' -- check by making test program.
3715 # 'file_magic [[regex]]' -- check by looking for files in library path
3716 # which responds to the $file_magic_cmd with a given egrep regex.
3717 # If you have `file' or equivalent on your system and you're not sure
3718 # whether `pass_all' will *always* work, you probably want this one.
3722 lt_cv_deplibs_check_method=pass_all
3726 lt_cv_deplibs_check_method=pass_all
3730 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3731 lt_cv_file_magic_cmd='/usr/bin/file -L'
3732 lt_cv_file_magic_test_file=/shlib/libc.so
3735 cygwin* | mingw* | pw32*)
3736 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3737 lt_cv_file_magic_cmd='$OBJDUMP -f'
3740 darwin* | rhapsody*)
3741 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3742 lt_cv_file_magic_cmd='/usr/bin/file -L'
3744 rhapsody* | darwin1.[012])
3745 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3748 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3754 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3757 # Not sure whether the presence of OpenBSD here was a mistake.
3758 # Let's accept both of them until this is cleared up.
3759 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3760 lt_cv_file_magic_cmd=/usr/bin/file
3761 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3765 lt_cv_deplibs_check_method=pass_all
3770 lt_cv_deplibs_check_method=pass_all
3774 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3775 lt_cv_file_magic_cmd=/usr/bin/file
3776 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3782 # this will be overridden with pass_all, but let us keep it just in case
3783 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3787 *-32|*"-32 ") libmagic=32-bit;;
3788 *-n32|*"-n32 ") libmagic=N32;;
3789 *-64|*"-64 ") libmagic=64-bit;;
3790 *) libmagic=never-match;;
3792 # this will be overridden with pass_all, but let us keep it just in case
3793 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3796 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3797 lt_cv_deplibs_check_method=pass_all
3800 # This must be Linux ELF.
3803 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
3804 lt_cv_deplibs_check_method=pass_all ;;
3806 # glibc up to 2.1.1 does not perform some relocations on ARM
3807 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3809 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3813 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3814 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3816 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3821 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3822 lt_cv_file_magic_cmd=/usr/bin/file
3823 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3827 lt_cv_file_magic_cmd=/usr/bin/file
3828 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3829 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3830 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3832 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3836 osf3* | osf4* | osf5*)
3837 # this will be overridden with pass_all, but let us keep it just in case
3838 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3839 lt_cv_file_magic_test_file=/shlib/libc.so
3840 lt_cv_deplibs_check_method=pass_all
3844 lt_cv_deplibs_check_method=pass_all
3848 lt_cv_deplibs_check_method=pass_all
3849 lt_cv_file_magic_test_file=/lib/libc.so
3852 sysv5uw[78]* | sysv4*uw2*)
3853 lt_cv_deplibs_check_method=pass_all
3856 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3857 case $host_vendor in
3859 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]'
3860 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3863 lt_cv_deplibs_check_method=pass_all
3866 lt_cv_file_magic_cmd='/bin/file'
3867 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3870 lt_cv_file_magic_cmd='/bin/file'
3871 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3872 lt_cv_file_magic_test_file=/lib/libc.so
3880 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
3881 file_magic_cmd=$lt_cv_file_magic_cmd
3882 deplibs_check_method=$lt_cv_deplibs_check_method
3884 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
3885 echo "configure:3886: checking for object suffix" >&5
3886 if eval "test \"\${ac_cv_objext+set}\" = set"; then
3887 echo $ac_n "(cached) $ac_c" 1>&6
3890 echo 'int i = 1;' > conftest.$ac_ext
3891 if { (eval echo configure:3892: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3892 for ac_file in conftest.*; do
3895 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
3899 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
3904 echo "$ac_t""$ac_cv_objext" 1>&6
3905 OBJEXT=$ac_cv_objext
3906 ac_objext=$ac_cv_objext
3911 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3912 echo "configure:3913: checking for executable suffix" >&5
3913 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
3914 echo $ac_n "(cached) $ac_c" 1>&6
3916 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
3920 echo 'int main () { return 0; }' > conftest.$ac_ext
3922 if { (eval echo configure:3923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3923 for file in conftest.*; do
3925 *.c | *.C | *.o | *.obj | *.xcoff) ;;
3926 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3930 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3933 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3938 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3939 echo "$ac_t""${ac_cv_exeext}" 1>&6
3942 if test $host != $build; then
3943 ac_tool_prefix=${host_alias}-
3951 # Check for command to grab the raw symbol name followed by C symbol from nm.
3952 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
3953 echo "configure:3954: checking command to parse $NM output" >&5
3954 if eval "test \"\${lt_cv_sys_global_symbol_pipe+set}\" = set"; then
3955 echo $ac_n "(cached) $ac_c" 1>&6
3958 # These are sane defaults that work on at least a few old systems.
3959 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
3961 # Character class describing NM global symbol codes.
3962 symcode='[BCDEGRST]'
3964 # Regexp to match symbols that can be accessed directly from C.
3965 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3967 # Transform the above into a raw symbol and a C symbol.
3968 symxfrm='\1 \2\3 \3'
3970 # Transform an extracted symbol line into a proper C declaration
3971 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3973 # Transform an extracted symbol line into symbol name and symbol address
3974 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'"
3976 # Define system-specific variables.
3981 cygwin* | mingw* | pw32*)
3982 symcode='[ABCDGISTW]'
3984 hpux*) # Its linker distinguishes data from code symbols
3985 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3986 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'"
3989 symcode='[BCDEGRST]'
3999 # Handle CRLF in mingw tool chain
4003 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4007 # If we're using GNU nm, then use its standard symbol codes.
4008 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
4009 symcode='[ABCDGISTW]'
4012 # Try without a prefix undercore, then with it.
4013 for ac_symprfx in "" "_"; do
4015 # Write the raw and C identifiers.
4016 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4018 # Check to see that the pipe works correctly.
4021 cat > conftest.$ac_ext <<EOF
4026 void nm_test_func(){}
4030 int main(){nm_test_var='a';nm_test_func();return(0);}
4033 if { (eval echo configure:4034: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4034 # Now try to grab the symbols.
4036 if { (eval echo configure:4037: \"$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
4037 # Try sorting and uniquifying the output.
4038 if sort "$nlist" | uniq > "$nlist"T; then
4039 mv -f "$nlist"T "$nlist"
4044 # Make sure that we snagged all the symbols we need.
4045 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4046 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4047 cat <<EOF > conftest.$ac_ext
4053 # Now generate the symbol file.
4054 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4056 cat <<EOF >> conftest.$ac_ext
4057 #if defined (__STDC__) && __STDC__
4058 # define lt_ptr void *
4060 # define lt_ptr char *
4064 /* The mapping between symbol names and symbols. */
4069 lt_preloaded_symbols[] =
4072 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4073 cat <<\EOF >> conftest.$ac_ext
4081 # Now try linking the two files.
4082 mv conftest.$ac_objext conftstm.$ac_objext
4084 save_CFLAGS="$CFLAGS"
4085 LIBS="conftstm.$ac_objext"
4086 CFLAGS="$CFLAGS$no_builtin_flag"
4087 if { (eval echo configure:4088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4091 CFLAGS="$save_CFLAGS"
4093 echo "cannot find nm_test_func in $nlist" >&5
4096 echo "cannot find nm_test_var in $nlist" >&5
4099 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4102 echo "$progname: failed program was:" >&5
4103 cat conftest.$ac_ext >&5
4105 rm -f conftest* conftst*
4107 # Do not use the global_symbol_pipe unless it works.
4108 if test "$pipe_works" = yes; then
4111 lt_cv_sys_global_symbol_pipe=
4117 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4118 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4119 global_symbol_to_cdecl=
4120 global_symbol_to_c_name_address=
4122 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4123 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4125 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4127 echo "$ac_t""failed" 1>&6
4129 echo "$ac_t""ok" 1>&6
4132 for ac_hdr in dlfcn.h
4134 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4135 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4136 echo "configure:4137: checking for $ac_hdr" >&5
4137 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4138 echo $ac_n "(cached) $ac_c" 1>&6
4140 cat > conftest.$ac_ext <<EOF
4141 #line 4142 "configure"
4142 #include "confdefs.h"
4145 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4146 { (eval echo configure:4147: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4147 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4148 if test -z "$ac_err"; then
4150 eval "ac_cv_header_$ac_safe=yes"
4153 echo "configure: failed program was:" >&5
4154 cat conftest.$ac_ext >&5
4156 eval "ac_cv_header_$ac_safe=no"
4160 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4161 echo "$ac_t""yes" 1>&6
4162 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4163 cat >> confdefs.h <<EOF
4164 #define $ac_tr_hdr 1
4168 echo "$ac_t""no" 1>&6
4176 # Only perform the check for file, if the check method requires it
4177 case $deplibs_check_method in
4179 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4180 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
4181 echo "configure:4182: checking for ${ac_tool_prefix}file" >&5
4182 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
4183 echo $ac_n "(cached) $ac_c" 1>&6
4187 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4190 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4193 ac_save_MAGIC_CMD="$MAGIC_CMD"
4194 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4195 ac_dummy="/usr/bin:$PATH"
4196 for ac_dir in $ac_dummy; do
4197 test -z "$ac_dir" && ac_dir=.
4198 if test -f $ac_dir/${ac_tool_prefix}file; then
4199 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4200 if test -n "$file_magic_test_file"; then
4201 case $deplibs_check_method in
4203 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4204 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4205 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4206 egrep "$file_magic_regex" > /dev/null; then
4211 *** Warning: the command libtool uses to detect shared libraries,
4212 *** $file_magic_cmd, produces output that libtool cannot recognize.
4213 *** The result is that libtool may fail to recognize shared libraries
4214 *** as such. This will affect the creation of libtool libraries that
4215 *** depend on shared libraries, but programs linked with such libtool
4216 *** libraries will work regardless of this problem. Nevertheless, you
4217 *** may want to report the problem to your system manager and/or to
4218 *** bug-libtool@gnu.org
4228 MAGIC_CMD="$ac_save_MAGIC_CMD"
4233 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4234 if test -n "$MAGIC_CMD"; then
4235 echo "$ac_t""$MAGIC_CMD" 1>&6
4237 echo "$ac_t""no" 1>&6
4240 if test -z "$lt_cv_path_MAGIC_CMD"; then
4241 if test -n "$ac_tool_prefix"; then
4242 echo $ac_n "checking for file""... $ac_c" 1>&6
4243 echo "configure:4244: checking for file" >&5
4244 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
4245 echo $ac_n "(cached) $ac_c" 1>&6
4249 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4252 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4255 ac_save_MAGIC_CMD="$MAGIC_CMD"
4256 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4257 ac_dummy="/usr/bin:$PATH"
4258 for ac_dir in $ac_dummy; do
4259 test -z "$ac_dir" && ac_dir=.
4260 if test -f $ac_dir/file; then
4261 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4262 if test -n "$file_magic_test_file"; then
4263 case $deplibs_check_method in
4265 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4266 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4267 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4268 egrep "$file_magic_regex" > /dev/null; then
4273 *** Warning: the command libtool uses to detect shared libraries,
4274 *** $file_magic_cmd, produces output that libtool cannot recognize.
4275 *** The result is that libtool may fail to recognize shared libraries
4276 *** as such. This will affect the creation of libtool libraries that
4277 *** depend on shared libraries, but programs linked with such libtool
4278 *** libraries will work regardless of this problem. Nevertheless, you
4279 *** may want to report the problem to your system manager and/or to
4280 *** bug-libtool@gnu.org
4290 MAGIC_CMD="$ac_save_MAGIC_CMD"
4295 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4296 if test -n "$MAGIC_CMD"; then
4297 echo "$ac_t""$MAGIC_CMD" 1>&6
4299 echo "$ac_t""no" 1>&6
4311 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4312 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4313 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4314 echo "configure:4315: checking for $ac_word" >&5
4315 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
4316 echo $ac_n "(cached) $ac_c" 1>&6
4318 if test -n "$RANLIB"; then
4319 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4321 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4323 for ac_dir in $ac_dummy; do
4324 test -z "$ac_dir" && ac_dir=.
4325 if test -f $ac_dir/$ac_word; then
4326 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4333 RANLIB="$ac_cv_prog_RANLIB"
4334 if test -n "$RANLIB"; then
4335 echo "$ac_t""$RANLIB" 1>&6
4337 echo "$ac_t""no" 1>&6
4341 if test -z "$ac_cv_prog_RANLIB"; then
4342 if test -n "$ac_tool_prefix"; then
4343 # Extract the first word of "ranlib", so it can be a program name with args.
4344 set dummy ranlib; ac_word=$2
4345 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4346 echo "configure:4347: checking for $ac_word" >&5
4347 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
4348 echo $ac_n "(cached) $ac_c" 1>&6
4350 if test -n "$RANLIB"; then
4351 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4353 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4355 for ac_dir in $ac_dummy; do
4356 test -z "$ac_dir" && ac_dir=.
4357 if test -f $ac_dir/$ac_word; then
4358 ac_cv_prog_RANLIB="ranlib"
4363 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
4366 RANLIB="$ac_cv_prog_RANLIB"
4367 if test -n "$RANLIB"; then
4368 echo "$ac_t""$RANLIB" 1>&6
4370 echo "$ac_t""no" 1>&6
4378 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4379 set dummy ${ac_tool_prefix}strip; ac_word=$2
4380 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4381 echo "configure:4382: checking for $ac_word" >&5
4382 if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then
4383 echo $ac_n "(cached) $ac_c" 1>&6
4385 if test -n "$STRIP"; then
4386 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4388 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4390 for ac_dir in $ac_dummy; do
4391 test -z "$ac_dir" && ac_dir=.
4392 if test -f $ac_dir/$ac_word; then
4393 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4400 STRIP="$ac_cv_prog_STRIP"
4401 if test -n "$STRIP"; then
4402 echo "$ac_t""$STRIP" 1>&6
4404 echo "$ac_t""no" 1>&6
4408 if test -z "$ac_cv_prog_STRIP"; then
4409 if test -n "$ac_tool_prefix"; then
4410 # Extract the first word of "strip", so it can be a program name with args.
4411 set dummy strip; ac_word=$2
4412 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4413 echo "configure:4414: checking for $ac_word" >&5
4414 if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then
4415 echo $ac_n "(cached) $ac_c" 1>&6
4417 if test -n "$STRIP"; then
4418 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4420 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4422 for ac_dir in $ac_dummy; do
4423 test -z "$ac_dir" && ac_dir=.
4424 if test -f $ac_dir/$ac_word; then
4425 ac_cv_prog_STRIP="strip"
4430 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
4433 STRIP="$ac_cv_prog_STRIP"
4434 if test -n "$STRIP"; then
4435 echo "$ac_t""$STRIP" 1>&6
4437 echo "$ac_t""no" 1>&6
4447 enable_win32_dll=yes
4449 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4450 if test "${enable_libtool_lock+set}" = set; then
4451 enableval="$enable_libtool_lock"
4455 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4457 # Some flags need to be propagated to the compiler or linker for good
4461 # Find out which ABI we are using.
4462 echo '#line 4463 "configure"' > conftest.$ac_ext
4463 if { (eval echo configure:4464: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4464 case `/usr/bin/file conftest.$ac_objext` in
4480 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4481 SAVE_CFLAGS="$CFLAGS"
4482 CFLAGS="$CFLAGS -belf"
4483 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
4484 echo "configure:4485: checking whether the C compiler needs -belf" >&5
4485 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
4486 echo $ac_n "(cached) $ac_c" 1>&6
4490 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4491 ac_cpp='$CPP $CPPFLAGS'
4492 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4493 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4494 cross_compiling=$ac_cv_prog_cc_cross
4496 cat > conftest.$ac_ext <<EOF
4497 #line 4498 "configure"
4498 #include "confdefs.h"
4504 if { (eval echo configure:4505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4506 lt_cv_cc_needs_belf=yes
4508 echo "configure: failed program was:" >&5
4509 cat conftest.$ac_ext >&5
4511 lt_cv_cc_needs_belf=no
4515 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4516 ac_cpp='$CPP $CPPFLAGS'
4517 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4518 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4519 cross_compiling=$ac_cv_prog_cc_cross
4523 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
4524 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4525 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4526 CFLAGS="$SAVE_CFLAGS"
4530 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4531 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4532 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4533 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4534 echo "configure:4535: checking for $ac_word" >&5
4535 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
4536 echo $ac_n "(cached) $ac_c" 1>&6
4538 if test -n "$DLLTOOL"; then
4539 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4541 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4543 for ac_dir in $ac_dummy; do
4544 test -z "$ac_dir" && ac_dir=.
4545 if test -f $ac_dir/$ac_word; then
4546 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4553 DLLTOOL="$ac_cv_prog_DLLTOOL"
4554 if test -n "$DLLTOOL"; then
4555 echo "$ac_t""$DLLTOOL" 1>&6
4557 echo "$ac_t""no" 1>&6
4561 if test -z "$ac_cv_prog_DLLTOOL"; then
4562 if test -n "$ac_tool_prefix"; then
4563 # Extract the first word of "dlltool", so it can be a program name with args.
4564 set dummy dlltool; ac_word=$2
4565 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4566 echo "configure:4567: checking for $ac_word" >&5
4567 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
4568 echo $ac_n "(cached) $ac_c" 1>&6
4570 if test -n "$DLLTOOL"; then
4571 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4573 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4575 for ac_dir in $ac_dummy; do
4576 test -z "$ac_dir" && ac_dir=.
4577 if test -f $ac_dir/$ac_word; then
4578 ac_cv_prog_DLLTOOL="dlltool"
4583 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
4586 DLLTOOL="$ac_cv_prog_DLLTOOL"
4587 if test -n "$DLLTOOL"; then
4588 echo "$ac_t""$DLLTOOL" 1>&6
4590 echo "$ac_t""no" 1>&6
4598 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4599 set dummy ${ac_tool_prefix}as; ac_word=$2
4600 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4601 echo "configure:4602: checking for $ac_word" >&5
4602 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
4603 echo $ac_n "(cached) $ac_c" 1>&6
4605 if test -n "$AS"; then
4606 ac_cv_prog_AS="$AS" # Let the user override the test.
4608 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4610 for ac_dir in $ac_dummy; do
4611 test -z "$ac_dir" && ac_dir=.
4612 if test -f $ac_dir/$ac_word; then
4613 ac_cv_prog_AS="${ac_tool_prefix}as"
4621 if test -n "$AS"; then
4622 echo "$ac_t""$AS" 1>&6
4624 echo "$ac_t""no" 1>&6
4628 if test -z "$ac_cv_prog_AS"; then
4629 if test -n "$ac_tool_prefix"; then
4630 # Extract the first word of "as", so it can be a program name with args.
4631 set dummy as; ac_word=$2
4632 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4633 echo "configure:4634: checking for $ac_word" >&5
4634 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
4635 echo $ac_n "(cached) $ac_c" 1>&6
4637 if test -n "$AS"; then
4638 ac_cv_prog_AS="$AS" # Let the user override the test.
4640 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4642 for ac_dir in $ac_dummy; do
4643 test -z "$ac_dir" && ac_dir=.
4644 if test -f $ac_dir/$ac_word; then
4650 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
4654 if test -n "$AS"; then
4655 echo "$ac_t""$AS" 1>&6
4657 echo "$ac_t""no" 1>&6
4665 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4666 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4667 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4668 echo "configure:4669: checking for $ac_word" >&5
4669 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
4670 echo $ac_n "(cached) $ac_c" 1>&6
4672 if test -n "$OBJDUMP"; then
4673 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4675 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4677 for ac_dir in $ac_dummy; do
4678 test -z "$ac_dir" && ac_dir=.
4679 if test -f $ac_dir/$ac_word; then
4680 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4687 OBJDUMP="$ac_cv_prog_OBJDUMP"
4688 if test -n "$OBJDUMP"; then
4689 echo "$ac_t""$OBJDUMP" 1>&6
4691 echo "$ac_t""no" 1>&6
4695 if test -z "$ac_cv_prog_OBJDUMP"; then
4696 if test -n "$ac_tool_prefix"; then
4697 # Extract the first word of "objdump", so it can be a program name with args.
4698 set dummy objdump; ac_word=$2
4699 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4700 echo "configure:4701: checking for $ac_word" >&5
4701 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
4702 echo $ac_n "(cached) $ac_c" 1>&6
4704 if test -n "$OBJDUMP"; then
4705 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4707 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4709 for ac_dir in $ac_dummy; do
4710 test -z "$ac_dir" && ac_dir=.
4711 if test -f $ac_dir/$ac_word; then
4712 ac_cv_prog_OBJDUMP="objdump"
4717 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
4720 OBJDUMP="$ac_cv_prog_OBJDUMP"
4721 if test -n "$OBJDUMP"; then
4722 echo "$ac_t""$OBJDUMP" 1>&6
4724 echo "$ac_t""no" 1>&6
4733 # recent cygwin and mingw systems supply a stub DllMain which the user
4734 # can override, but on older systems we have to supply one
4735 echo $ac_n "checking if libtool should supply DllMain function""... $ac_c" 1>&6
4736 echo "configure:4737: checking if libtool should supply DllMain function" >&5
4737 if eval "test \"\${lt_cv_need_dllmain+set}\" = set"; then
4738 echo $ac_n "(cached) $ac_c" 1>&6
4740 cat > conftest.$ac_ext <<EOF
4741 #line 4742 "configure"
4742 #include "confdefs.h"
4745 extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
4749 if { (eval echo configure:4750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4751 lt_cv_need_dllmain=no
4753 echo "configure: failed program was:" >&5
4754 cat conftest.$ac_ext >&5
4756 lt_cv_need_dllmain=yes
4761 echo "$ac_t""$lt_cv_need_dllmain" 1>&6
4764 *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
4765 # old mingw systems require "-dll" to link a DLL, while more recent ones
4767 SAVE_CFLAGS="$CFLAGS"
4768 CFLAGS="$CFLAGS -mdll"
4769 echo $ac_n "checking how to link DLLs""... $ac_c" 1>&6
4770 echo "configure:4771: checking how to link DLLs" >&5
4771 if eval "test \"\${lt_cv_cc_dll_switch+set}\" = set"; then
4772 echo $ac_n "(cached) $ac_c" 1>&6
4774 cat > conftest.$ac_ext <<EOF
4775 #line 4776 "configure"
4776 #include "confdefs.h"
4782 if { (eval echo configure:4783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4784 lt_cv_cc_dll_switch=-mdll
4786 echo "configure: failed program was:" >&5
4787 cat conftest.$ac_ext >&5
4789 lt_cv_cc_dll_switch=-dll
4794 echo "$ac_t""$lt_cv_cc_dll_switch" 1>&6
4795 CFLAGS="$SAVE_CFLAGS" ;;
4796 *-*-cygwin* | *-*-pw32*)
4797 # cygwin systems need to pass --dll to the linker, and not link
4798 # crt.o which will require a WinMain@16 definition.
4799 lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
4805 # Sed substitution that helps us do robust quoting. It backslashifies
4806 # metacharacters that are still active within double-quoted strings.
4807 Xsed='sed -e s/^X//'
4808 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4810 # Same as above, but do not quote variable references.
4811 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4813 # Sed substitution to delay expansion of an escaped shell variable in a
4814 # double_quote_subst'ed string.
4815 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4821 default_ofile=libtool
4822 can_build_shared=yes
4824 # All known linkers require a `.a' archive for static linking (except M$VC,
4825 # which needs '.lib').
4827 ltmain="$ac_aux_dir/ltmain.sh"
4828 ofile="$default_ofile"
4829 with_gnu_ld="$lt_cv_prog_gnu_ld"
4830 need_locks="$enable_libtool_lock"
4833 old_CFLAGS="$CFLAGS"
4835 # Set sane defaults for various variables
4836 test -z "$AR" && AR=ar
4837 test -z "$AR_FLAGS" && AR_FLAGS=cru
4838 test -z "$AS" && AS=as
4839 test -z "$CC" && CC=cc
4840 test -z "$DLLTOOL" && DLLTOOL=dlltool
4841 test -z "$LD" && LD=ld
4842 test -z "$LN_S" && LN_S="ln -s"
4843 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4844 test -z "$NM" && NM=nm
4845 test -z "$OBJDUMP" && OBJDUMP=objdump
4846 test -z "$RANLIB" && RANLIB=:
4847 test -z "$STRIP" && STRIP=:
4848 test -z "$ac_objext" && ac_objext=o
4850 if test x"$host" != x"$build"; then
4851 ac_tool_prefix=${host_alias}-
4856 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4859 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4864 # AIX sometimes has problems with the GCC collect2 program. For some
4865 # reason, if we set the COLLECT_NAMES environment variable, the problems
4866 # vanish in a puff of smoke.
4867 if test "X${COLLECT_NAMES+set}" != Xset; then
4869 export COLLECT_NAMES
4874 # Determine commands to create old-style static archives.
4875 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4876 old_postinstall_cmds='chmod 644 $oldlib'
4877 old_postuninstall_cmds=
4879 if test -n "$RANLIB"; then
4882 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4885 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4888 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4891 # Allow CC to be a program name with arguments.
4895 echo $ac_n "checking for objdir""... $ac_c" 1>&6
4896 echo "configure:4897: checking for objdir" >&5
4897 rm -f .libs 2>/dev/null
4898 mkdir .libs 2>/dev/null
4899 if test -d .libs; then
4902 # MS-DOS does not allow filenames that begin with a dot.
4905 rmdir .libs 2>/dev/null
4906 echo "$ac_t""$objdir" 1>&6
4909 # Check whether --with-pic or --without-pic was given.
4910 if test "${with_pic+set}" = set; then
4917 test -z "$pic_mode" && pic_mode=default
4919 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
4920 # in isolation, and that seeing it set (from the cache) indicates that
4921 # the associated values are set (in the cache) correctly too.
4922 echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6
4923 echo "configure:4924: checking for $compiler option to produce PIC" >&5
4924 if eval "test \"\${lt_cv_prog_cc_pic+set}\" = set"; then
4925 echo $ac_n "(cached) $ac_c" 1>&6
4928 lt_cv_prog_cc_shlib=
4930 lt_cv_prog_cc_static=
4931 lt_cv_prog_cc_no_builtin=
4932 lt_cv_prog_cc_can_build_shared=$can_build_shared
4934 if test "$GCC" = yes; then
4935 lt_cv_prog_cc_wl='-Wl,'
4936 lt_cv_prog_cc_static='-static'
4940 # Below there is a dirty hack to force normal static linking with -ldl
4941 # The problem is because libdl dynamically linked with both libc and
4942 # libC (AIX C++ library), which obviously doesn't included in libraries
4943 # list by gcc. This cause undefined symbols with -static flags.
4944 # This hack allows C programs to be linked with "-static -ldl", but
4945 # not sure about C++ programs.
4946 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
4949 # FIXME: we need at least 68020 code to build shared libraries, but
4950 # adding the `-m68020' flag to GCC prevents building anything better,
4952 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
4954 beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
4955 # PIC is the default for these OSes.
4957 darwin* | rhapsody*)
4958 # PIC is the default on this platform
4959 # Common symbols not allowed in MH_DYLIB files
4960 lt_cv_prog_cc_pic='-fno-common'
4962 cygwin* | mingw* | pw32* | os2*)
4963 # This hack is so that the source file can tell whether it is being
4964 # built for inclusion in a dll (and should export symbols for example).
4965 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4968 if test -d /usr/nec; then
4969 lt_cv_prog_cc_pic=-Kconform_pic
4973 lt_cv_prog_cc_pic='-fPIC'
4977 # PORTME Check for PIC flags for the system compiler.
4979 aix3* | aix4* | aix5*)
4980 lt_cv_prog_cc_wl='-Wl,'
4981 # All AIX code is PIC.
4982 if test "$host_cpu" = ia64; then
4983 # AIX 5 now supports IA64 processor
4984 lt_cv_prog_cc_static='-Bstatic'
4986 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
4990 hpux9* | hpux10* | hpux11*)
4991 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
4992 lt_cv_prog_cc_wl='-Wl,'
4993 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
4994 lt_cv_prog_cc_pic='+Z'
4998 lt_cv_prog_cc_wl='-Wl,'
4999 lt_cv_prog_cc_static='-non_shared'
5000 # PIC (with -KPIC) is the default.
5003 cygwin* | mingw* | pw32* | os2*)
5004 # This hack is so that the source file can tell whether it is being
5005 # built for inclusion in a dll (and should export symbols for example).
5006 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5010 lt_cv_prog_cc_pic='-KPIC'
5011 lt_cv_prog_cc_static='-Bstatic'
5014 osf3* | osf4* | osf5*)
5015 # All OSF/1 code is PIC.
5016 lt_cv_prog_cc_wl='-Wl,'
5017 lt_cv_prog_cc_static='-non_shared'
5021 lt_cv_prog_cc_pic='-Kpic'
5022 lt_cv_prog_cc_static='-dn'
5023 lt_cv_prog_cc_shlib='-belf'
5027 lt_cv_prog_cc_pic='-KPIC'
5028 lt_cv_prog_cc_static='-Bstatic'
5029 lt_cv_prog_cc_wl='-Wl,'
5033 lt_cv_prog_cc_pic='-PIC'
5034 lt_cv_prog_cc_static='-Bstatic'
5035 lt_cv_prog_cc_wl='-Qoption ld '
5038 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5039 lt_cv_prog_cc_pic='-KPIC'
5040 lt_cv_prog_cc_static='-Bstatic'
5041 if test "x$host_vendor" = xsni; then
5042 lt_cv_prog_cc_wl='-LD'
5044 lt_cv_prog_cc_wl='-Wl,'
5049 lt_cv_prog_cc_pic='-pic'
5050 lt_cv_prog_cc_static='-Bstatic'
5054 if test -d /usr/nec ;then
5055 lt_cv_prog_cc_pic='-Kconform_pic'
5056 lt_cv_prog_cc_static='-Bstatic'
5061 lt_cv_prog_cc_can_build_shared=no
5068 if test -z "$lt_cv_prog_cc_pic"; then
5069 echo "$ac_t""none" 1>&6
5071 echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6
5073 # Check to make sure the pic_flag actually works.
5074 echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6
5075 echo "configure:5076: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5076 if eval "test \"\${lt_cv_prog_cc_pic_works+set}\" = set"; then
5077 echo $ac_n "(cached) $ac_c" 1>&6
5079 save_CFLAGS="$CFLAGS"
5080 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5081 cat > conftest.$ac_ext <<EOF
5082 #line 5083 "configure"
5083 #include "confdefs.h"
5089 if { (eval echo configure:5090: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5092 hpux9* | hpux10* | hpux11*)
5093 # On HP-UX, both CC and GCC only warn that PIC is supported... then
5094 # they create non-PIC objects. So, if there were any warnings, we
5095 # assume that PIC is not supported.
5096 if test -s conftest.err; then
5097 lt_cv_prog_cc_pic_works=no
5099 lt_cv_prog_cc_pic_works=yes
5103 lt_cv_prog_cc_pic_works=yes
5108 echo "configure: failed program was:" >&5
5109 cat conftest.$ac_ext >&5
5111 lt_cv_prog_cc_pic_works=no
5115 CFLAGS="$save_CFLAGS"
5120 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5122 lt_cv_prog_cc_can_build_shared=no
5124 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5127 echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6
5130 # Check for any special shared library compilation flags.
5131 if test -n "$lt_cv_prog_cc_shlib"; then
5132 echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2
5133 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5135 echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2
5136 lt_cv_prog_cc_can_build_shared=no
5140 echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6
5141 echo "configure:5142: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5142 if eval "test \"\${lt_cv_prog_cc_static_works+set}\" = set"; then
5143 echo $ac_n "(cached) $ac_c" 1>&6
5145 lt_cv_prog_cc_static_works=no
5146 save_LDFLAGS="$LDFLAGS"
5147 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5148 cat > conftest.$ac_ext <<EOF
5149 #line 5150 "configure"
5150 #include "confdefs.h"
5156 if { (eval echo configure:5157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5158 lt_cv_prog_cc_static_works=yes
5160 echo "configure: failed program was:" >&5
5161 cat conftest.$ac_ext >&5
5164 LDFLAGS="$save_LDFLAGS"
5169 # Belt *and* braces to stop my trousers falling down:
5170 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5171 echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6
5173 pic_flag="$lt_cv_prog_cc_pic"
5174 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5175 wl="$lt_cv_prog_cc_wl"
5176 link_static_flag="$lt_cv_prog_cc_static"
5177 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5178 can_build_shared="$lt_cv_prog_cc_can_build_shared"
5181 # Check to see if options -o and -c are simultaneously supported by compiler
5182 echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6
5183 echo "configure:5184: checking if $compiler supports -c -o file.$ac_objext" >&5
5184 if eval "test \"\${lt_cv_compiler_c_o+set}\" = set"; then
5185 echo $ac_n "(cached) $ac_c" 1>&6
5188 $rm -r conftest 2>/dev/null
5191 echo "int some_variable = 0;" > conftest.$ac_ext
5193 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5194 # that will create temporary files in the current directory regardless of
5195 # the output directory. Thus, making CWD read-only will cause this test
5196 # to fail, enabling locking or at least warning the user not to do parallel
5199 save_CFLAGS="$CFLAGS"
5200 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5202 if { (eval echo configure:5203: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5203 # The compiler can only warn and ignore the option if not recognized
5204 # So say no if there are warnings
5205 if test -s out/conftest.err; then
5206 lt_cv_compiler_c_o=no
5208 lt_cv_compiler_c_o=yes
5211 # Append any errors to the config.log.
5212 cat out/conftest.err 1>&5
5213 lt_cv_compiler_c_o=no
5215 CFLAGS="$save_CFLAGS"
5221 $rm -r conftest 2>/dev/null
5225 compiler_c_o=$lt_cv_compiler_c_o
5226 echo "$ac_t""$compiler_c_o" 1>&6
5228 if test x"$compiler_c_o" = x"yes"; then
5229 # Check to see if we can write to a .lo
5230 echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6
5231 echo "configure:5232: checking if $compiler supports -c -o file.lo" >&5
5232 if eval "test \"\${lt_cv_compiler_o_lo+set}\" = set"; then
5233 echo $ac_n "(cached) $ac_c" 1>&6
5236 lt_cv_compiler_o_lo=no
5237 save_CFLAGS="$CFLAGS"
5238 CFLAGS="$CFLAGS -c -o conftest.lo"
5239 save_objext="$ac_objext"
5241 cat > conftest.$ac_ext <<EOF
5242 #line 5243 "configure"
5243 #include "confdefs.h"
5246 int some_variable = 0;
5249 if { (eval echo configure:5250: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5251 # The compiler can only warn and ignore the option if not recognized
5252 # So say no if there are warnings
5253 if test -s conftest.err; then
5254 lt_cv_compiler_o_lo=no
5256 lt_cv_compiler_o_lo=yes
5260 echo "configure: failed program was:" >&5
5261 cat conftest.$ac_ext >&5
5264 ac_objext="$save_objext"
5265 CFLAGS="$save_CFLAGS"
5269 compiler_o_lo=$lt_cv_compiler_o_lo
5270 echo "$ac_t""$compiler_o_lo" 1>&6
5275 # Check to see if we can do hard links to lock some files if needed
5276 hard_links="nottested"
5277 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5278 # do not overwrite the value of need_locks provided by the user
5279 echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6
5280 echo "configure:5281: checking if we can lock with hard links" >&5
5283 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5285 ln conftest.a conftest.b 2>&5 || hard_links=no
5286 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5287 echo "$ac_t""$hard_links" 1>&6
5288 if test "$hard_links" = no; then
5289 echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2
5296 if test "$GCC" = yes; then
5297 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5298 echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6
5299 echo "configure:5300: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5300 echo "int some_variable = 0;" > conftest.$ac_ext
5301 save_CFLAGS="$CFLAGS"
5302 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5303 compiler_rtti_exceptions=no
5304 cat > conftest.$ac_ext <<EOF
5305 #line 5306 "configure"
5306 #include "confdefs.h"
5309 int some_variable = 0;
5312 if { (eval echo configure:5313: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5314 # The compiler can only warn and ignore the option if not recognized
5315 # So say no if there are warnings
5316 if test -s conftest.err; then
5317 compiler_rtti_exceptions=no
5319 compiler_rtti_exceptions=yes
5323 echo "configure: failed program was:" >&5
5324 cat conftest.$ac_ext >&5
5327 CFLAGS="$save_CFLAGS"
5328 echo "$ac_t""$compiler_rtti_exceptions" 1>&6
5330 if test "$compiler_rtti_exceptions" = "yes"; then
5331 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5333 no_builtin_flag=' -fno-builtin'
5337 # See if the linker supports building shared libraries.
5338 echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6
5339 echo "configure:5340: checking whether the linker ($LD) supports shared libraries" >&5
5341 allow_undefined_flag=
5343 need_lib_prefix=unknown
5344 need_version=unknown
5345 # when you set need_version to no, make sure it does not cause -set_version
5346 # flags to be left without arguments
5348 archive_expsym_cmds=
5349 old_archive_from_new_cmds=
5350 old_archive_from_expsyms_cmds=
5351 export_dynamic_flag_spec=
5352 whole_archive_flag_spec=
5353 thread_safe_flag_spec=
5354 hardcode_into_libs=no
5355 hardcode_libdir_flag_spec=
5356 hardcode_libdir_separator=
5359 hardcode_shlibpath_var=unsupported
5361 link_all_deplibs=unknown
5362 always_export_symbols=no
5363 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5364 # include_expsyms should be a list of space-separated symbols to be *always*
5365 # included in the symbol list
5367 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5368 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5369 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5370 # as well as any symbol that contains `d'.
5371 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5372 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5373 # platforms (ab)use it in PIC code, but their linkers get confused if
5374 # the symbol is explicitly referenced. Since portable code cannot
5375 # rely on this symbol name, it's probably fine to never include it in
5376 # preloaded symbol tables.
5377 extract_expsyms_cmds=
5380 cygwin* | mingw* | pw32*)
5381 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5382 # When not using gcc, we currently assume that we are using
5383 # Microsoft Visual C++.
5384 if test "$GCC" != yes; then
5394 if test "$with_gnu_ld" = yes; then
5395 # If archive_cmds runs LD, not CC, wlarc should be empty
5398 # See if GNU ld supports shared libraries.
5400 aix3* | aix4* | aix5*)
5401 # On AIX, the GNU linker is very broken
5402 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5406 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5407 *** to be unable to reliably create shared libraries on AIX.
5408 *** Therefore, libtool is disabling shared libraries support. If you
5409 *** really care for shared libraries, you may want to modify your PATH
5410 *** so that a non-GNU linker is found, and then restart.
5416 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)'
5417 hardcode_libdir_flag_spec='-L$libdir'
5418 hardcode_minus_L=yes
5420 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5421 # that the semantics of dynamic libraries on AmigaOS, at least up
5422 # to version 4, is to share data among multiple programs linked
5423 # with the same dynamic library. Since this doesn't match the
5424 # behavior of shared libraries on other platforms, we can use
5430 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5431 allow_undefined_flag=unsupported
5432 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5433 # support --undefined. This deserves some investigation. FIXME
5434 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5440 cygwin* | mingw* | pw32*)
5441 # hardcode_libdir_flag_spec is actually meaningless, as there is
5442 # no search path for DLLs.
5443 hardcode_libdir_flag_spec='-L$libdir'
5444 allow_undefined_flag=unsupported
5445 always_export_symbols=yes
5447 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5448 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5449 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5450 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5451 else $CC -o impgen impgen.c ; fi)~
5452 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5454 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5456 # cygwin and mingw dlls have different entry points and sets of symbols
5458 # FIXME: what about values for MSVC?
5459 dll_entry=__cygwin_dll_entry@12
5460 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5464 dll_entry=_DllMainCRTStartup@12
5465 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5469 # mingw and cygwin differ, and it's simplest to just exclude the union
5470 # of the two symbol sets.
5471 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5473 # recent cygwin and mingw systems supply a stub DllMain which the user
5474 # can override, but on older systems we have to supply one (in ltdll.c)
5475 if test "x$lt_cv_need_dllmain" = "xyes"; then
5476 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5477 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~
5478 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5484 # Extract the symbol export list from an `--export-all' def file,
5485 # then regenerate the def file from the symbol export list, so that
5486 # the compiled dll only exports the symbol export list.
5487 # Be careful not to strip the DATA tag left be newer dlltools.
5488 export_symbols_cmds="$ltdll_cmds"'
5489 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5490 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5492 # If the export-symbols file already is a .def file (1st line
5493 # is EXPORTS), use it as is.
5494 # If DATA tags from a recent dlltool are present, honour them!
5495 archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
5496 cp $export_symbols $output_objdir/$soname-def;
5498 echo EXPORTS > $output_objdir/$soname-def;
5500 cat $export_symbols | while read symbol; do
5503 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5504 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5506 _lt_hint=`expr 1 + \$_lt_hint`;
5510 $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~
5511 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
5512 $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~
5513 $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~
5514 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5518 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5519 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5522 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5523 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5528 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5532 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5533 *** create shared libraries on Solaris systems. Therefore, libtool
5534 *** is disabling shared libraries support. We urge you to upgrade GNU
5535 *** binutils to release 2.9.1 or newer. Another option is to modify
5536 *** your PATH or compiler configuration so that the native linker is
5537 *** used, and then restart.
5540 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5541 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5542 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5549 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5552 hardcode_shlibpath_var=no
5556 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5557 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5558 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5565 if test "$ld_shlibs" = yes; then
5566 runpath_var=LD_RUN_PATH
5567 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5568 export_dynamic_flag_spec='${wl}--export-dynamic'
5570 cygwin* | mingw* | pw32*)
5571 # dlltool doesn't understand --whole-archive et. al.
5572 whole_archive_flag_spec=
5575 # ancient GNU ld didn't support --whole-archive et. al.
5576 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5577 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5579 whole_archive_flag_spec=
5585 # PORTME fill in a description of your system's linker (not GNU ld)
5588 allow_undefined_flag=unsupported
5589 always_export_symbols=yes
5590 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'
5591 # Note: this linker hardcodes the directories in LIBPATH if there
5592 # are no directories specified by -L.
5593 hardcode_minus_L=yes
5594 if test "$GCC" = yes && test -z "$link_static_flag"; then
5595 # Neither direct hardcoding nor static linking is supported with a
5597 hardcode_direct=unsupported
5602 if test "$host_cpu" = ia64; then
5603 # On IA64, the linker does run time linking by default, so we don't
5604 # have to do anything special.
5605 aix_use_runtimelinking=no
5606 exp_sym_flag='-Bexport'
5609 aix_use_runtimelinking=no
5611 # Test if we are trying to use run time linking or normal
5612 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5613 # need to do runtime linking.
5614 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5615 for ld_flag in $LDFLAGS; do
5616 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5617 aix_use_runtimelinking=yes
5623 exp_sym_flag='-bexport'
5624 no_entry_flag='-bnoentry'
5627 # When large executables or shared objects are built, AIX ld can
5628 # have problems creating the table of contents. If linking a library
5629 # or program results in "error TOC overflow" add -mminimal-toc to
5630 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5631 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5635 hardcode_libdir_separator=':'
5636 if test "$GCC" = yes; then
5637 case $host_os in aix4.[012]|aix4.[012].*)
5638 collect2name=`${CC} -print-prog-name=collect2`
5639 if test -f "$collect2name" && \
5640 strings "$collect2name" | grep resolve_lib_name >/dev/null
5642 # We have reworked collect2
5645 # We have old collect2
5646 hardcode_direct=unsupported
5647 # It fails to find uninstalled libraries when the uninstalled
5648 # path is not listed in the libpath. Setting hardcode_minus_L
5649 # to unsupported forces relinking
5650 hardcode_minus_L=yes
5651 hardcode_libdir_flag_spec='-L$libdir'
5652 hardcode_libdir_separator=
5656 shared_flag='-shared'
5659 if test "$host_cpu" = ia64; then
5660 shared_flag='${wl}-G'
5662 if test "$aix_use_runtimelinking" = yes; then
5663 shared_flag='${wl}-G'
5665 shared_flag='${wl}-bM:SRE'
5670 # It seems that -bexpall can do strange things, so it is better to
5671 # generate a list of symbols to export.
5672 always_export_symbols=yes
5673 if test "$aix_use_runtimelinking" = yes; then
5674 # Warning - without using the other runtime loading flags (-brtl),
5675 # -berok will link without error, but may produce a broken library.
5676 allow_undefined_flag='-berok'
5677 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5678 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5680 if test "$host_cpu" = ia64; then
5681 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5682 allow_undefined_flag="-z nodefs"
5683 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
5685 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5686 # Warning - without using the other run time loading flags,
5687 # -berok will link without error, but may produce a broken library.
5688 allow_undefined_flag='${wl}-berok'
5689 # This is a bit strange, but is similar to how AIX traditionally builds
5690 # it's shared libraries.
5691 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
5697 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
5698 hardcode_libdir_flag_spec='-L$libdir'
5699 hardcode_minus_L=yes
5700 # see comment about different semantics on the GNU ld section
5704 cygwin* | mingw* | pw32*)
5705 # When not using gcc, we currently assume that we are using
5706 # Microsoft Visual C++.
5707 # hardcode_libdir_flag_spec is actually meaningless, as there is
5708 # no search path for DLLs.
5709 hardcode_libdir_flag_spec=' '
5710 allow_undefined_flag=unsupported
5711 # Tell ltmain to make .lib files, not .a files.
5713 # FIXME: Setting linknames here is a bad hack.
5714 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5715 # The linker will automatically build a .lib file if we build a DLL.
5716 old_archive_from_new_cmds='true'
5717 # FIXME: Should let the user specify the lib program.
5718 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5719 fix_srcfile_path='`cygpath -w "$srcfile"`'
5722 darwin* | rhapsody*)
5724 rhapsody* | darwin1.[012])
5725 allow_undefined_flag='-undefined suppress'
5728 allow_undefined_flag='-flat_namespace -undefined suppress'
5731 # FIXME: Relying on posixy $() will cause problems for
5732 # cross-compilation, but unfortunately the echo tests do not
5733 # yet detect zsh echo's removal of \ escapes.
5734 archive_cmds='$nonopt $(test "x$module" = xyes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
5735 # We need to add '_' to the symbols in $export_symbols first
5736 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5738 hardcode_shlibpath_var=no
5739 whole_archive_flag_spec='-all_load $convenience'
5746 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5747 # support. Future versions do this automatically, but an explicit c++rt0.o
5748 # does not break anything, and helps significantly (at the cost of a little
5751 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5752 hardcode_libdir_flag_spec='-R$libdir'
5754 hardcode_shlibpath_var=no
5757 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5759 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5761 hardcode_minus_L=yes
5762 hardcode_shlibpath_var=no
5765 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5767 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5768 hardcode_libdir_flag_spec='-R$libdir'
5770 hardcode_shlibpath_var=no
5773 hpux9* | hpux10* | hpux11*)
5775 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' ;;
5776 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5778 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5779 hardcode_libdir_separator=:
5781 hardcode_minus_L=yes # Not in the search PATH, but as the default
5782 # location of the library.
5783 export_dynamic_flag_spec='${wl}-E'
5787 if test "$GCC" = yes; then
5788 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5790 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'
5792 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5793 hardcode_libdir_separator=:
5794 link_all_deplibs=yes
5798 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5799 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5801 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5803 hardcode_libdir_flag_spec='-R$libdir'
5805 hardcode_shlibpath_var=no
5809 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5811 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5812 hardcode_libdir_separator=:
5813 hardcode_shlibpath_var=no
5818 hardcode_shlibpath_var=no
5819 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5820 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5821 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5822 export_dynamic_flag_spec='${wl}-E'
5825 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5826 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5827 hardcode_libdir_flag_spec='-R$libdir'
5830 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5831 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5838 hardcode_libdir_flag_spec='-L$libdir'
5839 hardcode_minus_L=yes
5840 allow_undefined_flag=unsupported
5841 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'
5842 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5846 if test "$GCC" = yes; then
5847 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5848 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'
5850 allow_undefined_flag=' -expect_unresolved \*'
5851 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'
5853 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5854 hardcode_libdir_separator=:
5857 osf4* | osf5*) # as osf3* with the addition of -msym flag
5858 if test "$GCC" = yes; then
5859 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5860 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'
5861 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5863 allow_undefined_flag=' -expect_unresolved \*'
5864 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'
5865 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5866 $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'
5868 #Both c and cxx compiler support -rpath directly
5869 hardcode_libdir_flag_spec='-rpath $libdir'
5871 hardcode_libdir_separator=:
5875 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5876 hardcode_shlibpath_var=no
5877 runpath_var=LD_RUN_PATH
5878 hardcode_runpath_var=yes
5879 export_dynamic_flag_spec='${wl}-Bexport'
5883 # gcc --version < 3.0 without binutils cannot create self contained
5884 # shared libraries reliably, requiring libgcc.a to resolve some of
5885 # the object symbols generated in some cases. Libraries that use
5886 # assert need libgcc.a to resolve __eprintf, for example. Linking
5887 # a copy of libgcc.a into every shared library to guarantee resolving
5888 # such symbols causes other problems: According to Tim Van Holder
5889 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
5890 # (to the application) exception stack for one thing.
5891 no_undefined_flag=' -z defs'
5892 if test "$GCC" = yes; then
5893 case `$CC --version 2>/dev/null` in
5897 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5898 *** create self contained shared libraries on Solaris systems, without
5899 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
5900 *** -no-undefined support, which will at least allow you to build shared
5901 *** libraries. However, you may find that when you link such libraries
5902 *** into an application without using GCC, you have to manually add
5903 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
5904 *** upgrade to a newer version of GCC. Another option is to rebuild your
5905 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
5912 # $CC -shared without GNU ld will not create a library from C++
5913 # object files and a static libstdc++, better avoid it by now
5914 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5915 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5916 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5917 hardcode_libdir_flag_spec='-R$libdir'
5918 hardcode_shlibpath_var=no
5920 solaris2.[0-5] | solaris2.[0-5].*) ;;
5921 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5922 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5924 link_all_deplibs=yes
5928 if test "x$host_vendor" = xsequent; then
5929 # Use $CC to link under sequent, because it throws in some extra .o
5930 # files that make .init and .fini sections work.
5931 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5933 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5935 hardcode_libdir_flag_spec='-L$libdir'
5937 hardcode_minus_L=yes
5938 hardcode_shlibpath_var=no
5942 if test "x$host_vendor" = xsno; then
5943 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
5944 hardcode_direct=yes # is this really true???
5946 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5947 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5949 runpath_var='LD_RUN_PATH'
5950 hardcode_shlibpath_var=no
5954 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5955 hardcode_shlibpath_var=no
5956 export_dynamic_flag_spec='-Bexport'
5960 no_undefined_flag=' -z text'
5961 # $CC -shared without GNU ld will not create a library from C++
5962 # object files and a static libstdc++, better avoid it by now
5963 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5964 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5965 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5966 hardcode_libdir_flag_spec=
5967 hardcode_shlibpath_var=no
5968 runpath_var='LD_RUN_PATH'
5972 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5973 hardcode_libdir_flag_spec='-L$libdir'
5974 hardcode_shlibpath_var=no
5978 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5979 hardcode_libdir_flag_spec='-L$libdir'
5980 hardcode_shlibpath_var=no
5984 if test -d /usr/nec; then
5985 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5986 hardcode_shlibpath_var=no
5987 runpath_var=LD_RUN_PATH
5988 hardcode_runpath_var=yes
5994 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5997 hardcode_shlibpath_var=no
5998 hardcode_runpath_var=yes
5999 runpath_var=LD_RUN_PATH
6002 sysv5uw7* | unixware7*)
6003 no_undefined_flag='${wl}-z ${wl}text'
6004 if test "$GCC" = yes; then
6005 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6007 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6009 runpath_var='LD_RUN_PATH'
6010 hardcode_shlibpath_var=no
6018 echo "$ac_t""$ld_shlibs" 1>&6
6019 test "$ld_shlibs" = no && can_build_shared=no
6021 # Check hardcoding attributes.
6022 echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6
6023 echo "configure:6024: checking how to hardcode library paths into programs" >&5
6025 if test -n "$hardcode_libdir_flag_spec" || \
6026 test -n "$runpath_var"; then
6028 # We can hardcode non-existant directories.
6029 if test "$hardcode_direct" != no &&
6030 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6031 # have to relink, otherwise we might link with an installed library
6032 # when we should be linking with a yet-to-be-installed one
6033 ## test "$hardcode_shlibpath_var" != no &&
6034 test "$hardcode_minus_L" != no; then
6035 # Linking always hardcodes the temporary library directory.
6036 hardcode_action=relink
6038 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6039 hardcode_action=immediate
6042 # We cannot hardcode anything, or else we can only hardcode existing
6044 hardcode_action=unsupported
6046 echo "$ac_t""$hardcode_action" 1>&6
6050 echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6
6051 echo "configure:6052: checking whether stripping libraries is possible" >&5
6052 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6053 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6054 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6055 echo "$ac_t""yes" 1>&6
6057 echo "$ac_t""no" 1>&6
6060 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6061 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6063 # PORTME Fill in your ld.so characteristics
6064 echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6
6065 echo "configure:6066: checking dynamic linker characteristics" >&5
6067 libname_spec='lib$name'
6074 shlibpath_overrides_runpath=unknown
6076 dynamic_linker="$host_os ld.so"
6077 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6078 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6083 library_names_spec='${libname}${release}.so$versuffix $libname.a'
6084 shlibpath_var=LIBPATH
6086 # AIX has no versioning support, so we append a major version to the name.
6087 soname_spec='${libname}${release}.so$major'
6092 if test "$host_cpu" = ia64; then
6093 # AIX 5 supports IA64
6094 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6095 shlibpath_var=LD_LIBRARY_PATH
6097 # With GCC up to 2.95.x, collect2 would create an import file
6098 # for dependence libraries. The import file would start with
6099 # the line `#! .'. This would cause the generated library to
6100 # depend on `.', always an invalid library. This was fixed in
6101 # development snapshots of GCC prior to 3.0.
6103 aix4 | aix4.[01] | aix4.[01].*)
6104 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6106 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6113 # AIX (on Power*) has no versioning support, so currently we can
6114 # not hardcode correct soname into executable. Probably we can
6115 # add versioning support to collect2, so additional links can
6116 # be useful in future.
6117 if test "$aix_use_runtimelinking" = yes; then
6118 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6119 # instead of lib<name>.a to let people know that these are not
6120 # typical AIX shared libraries.
6121 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6123 # We preserve .a as extension for shared libraries through AIX4.2
6124 # and later when we are not doing run time linking.
6125 library_names_spec='${libname}${release}.a $libname.a'
6126 soname_spec='${libname}${release}.so$major'
6128 shlibpath_var=LIBPATH
6133 library_names_spec='$libname.ixlibrary $libname.a'
6134 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6135 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'
6139 library_names_spec='${libname}.so'
6140 dynamic_linker="$host_os ld.so"
6141 shlibpath_var=LIBRARY_PATH
6147 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6148 soname_spec='${libname}${release}.so$major'
6149 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6150 shlibpath_var=LD_LIBRARY_PATH
6151 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6152 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6153 export_dynamic_flag_spec=-rdynamic
6154 # the default ld.so.conf also contains /usr/contrib/lib and
6155 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6156 # libtool to hard-code these into programs
6159 cygwin* | mingw* | pw32*)
6160 version_type=windows
6163 case $GCC,$host_os in
6165 library_names_spec='$libname.dll.a'
6166 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6167 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6168 dldir=$destdir/`dirname \$dlpath`~
6169 test -d \$dldir || mkdir -p \$dldir~
6170 $install_prog .libs/$dlname \$dldir/$dlname'
6171 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6172 dlpath=$dir/\$dldll~
6176 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6177 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
6180 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6183 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6186 dynamic_linker='Win32 ld.exe'
6187 # FIXME: first we should search . and the directory the executable is in
6191 darwin* | rhapsody*)
6192 dynamic_linker="$host_os dyld"
6196 # FIXME: Relying on posixy $() will cause problems for
6197 # cross-compilation, but unfortunately the echo tests do not
6198 # yet detect zsh echo's removal of \ escapes.
6199 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)'
6200 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6201 shlibpath_overrides_runpath=yes
6202 shlibpath_var=DYLD_LIBRARY_PATH
6210 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6211 version_type=freebsd-$objformat
6212 case $version_type in
6214 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6219 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6223 shlibpath_var=LD_LIBRARY_PATH
6226 shlibpath_overrides_runpath=yes
6229 shlibpath_overrides_runpath=no
6230 hardcode_into_libs=yes
6239 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6240 soname_spec='${libname}${release}.so$major'
6241 shlibpath_var=LD_LIBRARY_PATH
6242 hardcode_into_libs=yes
6245 hpux9* | hpux10* | hpux11*)
6246 # Give a soname corresponding to the major version so that dld.sl refuses to
6247 # link against other versions.
6248 dynamic_linker="$host_os dld.sl"
6252 shlibpath_var=SHLIB_PATH
6253 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6254 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6255 soname_spec='${libname}${release}.sl$major'
6256 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6257 postinstall_cmds='chmod 555 $lib'
6264 soname_spec='${libname}${release}.so$major'
6265 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6271 case $LD in # libtool.m4 will add one of these switches to LD
6272 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6273 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6274 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6275 *) libsuff= shlibsuff= libmagic=never-match;;
6279 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6280 shlibpath_overrides_runpath=no
6281 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6282 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6285 # No shared lib support for Linux oldld, aout, or coff.
6286 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6290 # This must be Linux ELF.
6295 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6296 soname_spec='${libname}${release}.so$major'
6297 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6298 shlibpath_var=LD_LIBRARY_PATH
6299 shlibpath_overrides_runpath=no
6300 # This implies no fast_install, which is unacceptable.
6301 # Some rework will be needed to allow for fast_install
6302 # before this can be enabled.
6303 hardcode_into_libs=yes
6305 # We used to test for /lib/ld.so.1 and disable shared libraries on
6306 # powerpc, because MkLinux only supported shared libraries with the
6307 # GNU dynamic linker. Since this was broken with cross compilers,
6308 # most powerpc-linux boxes support dynamic linking these days and
6309 # people can always --disable-shared, the test was removed, and we
6310 # assume the GNU/Linux dynamic linker is in use.
6311 dynamic_linker='GNU/Linux ld.so'
6318 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6319 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6320 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6321 dynamic_linker='NetBSD (a.out) ld.so'
6323 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6324 soname_spec='${libname}${release}.so$major'
6325 dynamic_linker='NetBSD ld.elf_so'
6327 shlibpath_var=LD_LIBRARY_PATH
6328 shlibpath_overrides_runpath=yes
6329 hardcode_into_libs=yes
6334 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6335 shlibpath_var=LD_LIBRARY_PATH
6336 shlibpath_overrides_runpath=yes
6343 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6345 openbsd2.[89] | openbsd2.[89].*)
6346 shlibpath_overrides_runpath=no
6349 shlibpath_overrides_runpath=yes
6353 shlibpath_overrides_runpath=yes
6355 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6356 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6357 shlibpath_var=LD_LIBRARY_PATH
6361 libname_spec='$name'
6363 library_names_spec='$libname.dll $libname.a'
6364 dynamic_linker='OS/2 ld.exe'
6365 shlibpath_var=LIBPATH
6368 osf3* | osf4* | osf5*)
6371 soname_spec='${libname}${release}.so'
6372 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6373 shlibpath_var=LD_LIBRARY_PATH
6374 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6375 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6380 soname_spec='${libname}${release}.so$major'
6381 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6382 shlibpath_var=LD_LIBRARY_PATH
6389 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6390 soname_spec='${libname}${release}.so$major'
6391 shlibpath_var=LD_LIBRARY_PATH
6392 shlibpath_overrides_runpath=yes
6393 hardcode_into_libs=yes
6394 # ldd complains unless libraries are executable
6395 postinstall_cmds='chmod +x $lib'
6400 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6401 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6402 shlibpath_var=LD_LIBRARY_PATH
6403 shlibpath_overrides_runpath=yes
6404 if test "$with_gnu_ld" = yes; then
6410 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6412 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6413 soname_spec='${libname}${release}.so$major'
6414 shlibpath_var=LD_LIBRARY_PATH
6415 case $host_vendor in
6417 shlibpath_overrides_runpath=no
6422 shlibpath_overrides_runpath=no
6423 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6430 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6431 soname_spec='${libname}${release}.so$major'
6432 shlibpath_var=LD_LIBRARY_PATH
6439 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6440 soname_spec='${libname}${release}.so$major'
6441 shlibpath_var=LD_LIBRARY_PATH
6445 if test -d /usr/nec ;then
6447 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6448 soname_spec='$libname.so.$major'
6449 shlibpath_var=LD_LIBRARY_PATH
6457 echo "$ac_t""$dynamic_linker" 1>&6
6458 test "$dynamic_linker" = no && can_build_shared=no
6460 # Report the final consequences.
6461 echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6
6462 echo "configure:6463: checking if libtool supports shared libraries" >&5
6463 echo "$ac_t""$can_build_shared" 1>&6
6465 echo $ac_n "checking whether to build shared libraries""... $ac_c" 1>&6
6466 echo "configure:6467: checking whether to build shared libraries" >&5
6467 test "$can_build_shared" = "no" && enable_shared=no
6469 # On AIX, shared libraries and static libraries use the same namespace, and
6470 # are all built from PIC.
6473 test "$enable_shared" = yes && enable_static=no
6474 if test -n "$RANLIB"; then
6475 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6476 postinstall_cmds='$RANLIB $lib'
6481 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6482 test "$enable_shared" = yes && enable_static=no
6486 echo "$ac_t""$enable_shared" 1>&6
6488 echo $ac_n "checking whether to build static libraries""... $ac_c" 1>&6
6489 echo "configure:6490: checking whether to build static libraries" >&5
6490 # Make sure either enable_shared or enable_static is yes.
6491 test "$enable_shared" = yes || enable_static=yes
6492 echo "$ac_t""$enable_static" 1>&6
6494 if test "$hardcode_action" = relink; then
6495 # Fast installation is not supported
6496 enable_fast_install=no
6497 elif test "$shlibpath_overrides_runpath" = yes ||
6498 test "$enable_shared" = no; then
6499 # Fast installation is not necessary
6500 enable_fast_install=needless
6503 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6504 if test "$GCC" = yes; then
6505 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6508 if test "x$enable_dlopen" != xyes; then
6509 enable_dlopen=unknown
6510 enable_dlopen_self=unknown
6511 enable_dlopen_self_static=unknown
6518 lt_cv_dlopen="load_add_on"
6520 lt_cv_dlopen_self=yes
6523 cygwin* | mingw* | pw32*)
6524 lt_cv_dlopen="LoadLibrary"
6529 echo $ac_n "checking for shl_load""... $ac_c" 1>&6
6530 echo "configure:6531: checking for shl_load" >&5
6531 if eval "test \"\${ac_cv_func_shl_load+set}\" = set"; then
6532 echo $ac_n "(cached) $ac_c" 1>&6
6534 cat > conftest.$ac_ext <<EOF
6535 #line 6536 "configure"
6536 #include "confdefs.h"
6537 /* System header to define __stub macros and hopefully few prototypes,
6538 which can conflict with char shl_load(); below. */
6540 /* Override any gcc2 internal prototype to avoid an error. */
6541 /* We use char because int might match the return type of a gcc2
6542 builtin and then its argument prototype would still apply. */
6548 /* The GNU C library defines this for functions which it implements
6549 to always fail with ENOSYS. Some functions are actually named
6550 something starting with __ and the normal name is an alias. */
6551 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6559 if { (eval echo configure:6560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6561 eval "ac_cv_func_shl_load=yes"
6563 echo "configure: failed program was:" >&5
6564 cat conftest.$ac_ext >&5
6566 eval "ac_cv_func_shl_load=no"
6571 if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
6572 echo "$ac_t""yes" 1>&6
6573 lt_cv_dlopen="shl_load"
6575 echo "$ac_t""no" 1>&6
6576 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
6577 echo "configure:6578: checking for shl_load in -ldld" >&5
6578 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-:%__p__%'`
6579 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6580 echo $ac_n "(cached) $ac_c" 1>&6
6582 ac_save_LIBS="$LIBS"
6584 cat > conftest.$ac_ext <<EOF
6585 #line 6586 "configure"
6586 #include "confdefs.h"
6587 /* Override any gcc2 internal prototype to avoid an error. */
6588 /* We use char because int might match the return type of a gcc2
6589 builtin and then its argument prototype would still apply. */
6596 if { (eval echo configure:6597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6598 eval "ac_cv_lib_$ac_lib_var=yes"
6600 echo "configure: failed program was:" >&5
6601 cat conftest.$ac_ext >&5
6603 eval "ac_cv_lib_$ac_lib_var=no"
6606 LIBS="$ac_save_LIBS"
6609 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6610 echo "$ac_t""yes" 1>&6
6611 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6613 echo "$ac_t""no" 1>&6
6614 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
6615 echo "configure:6616: checking for dlopen" >&5
6616 if eval "test \"\${ac_cv_func_dlopen+set}\" = set"; then
6617 echo $ac_n "(cached) $ac_c" 1>&6
6619 cat > conftest.$ac_ext <<EOF
6620 #line 6621 "configure"
6621 #include "confdefs.h"
6622 /* System header to define __stub macros and hopefully few prototypes,
6623 which can conflict with char dlopen(); below. */
6625 /* Override any gcc2 internal prototype to avoid an error. */
6626 /* We use char because int might match the return type of a gcc2
6627 builtin and then its argument prototype would still apply. */
6633 /* The GNU C library defines this for functions which it implements
6634 to always fail with ENOSYS. Some functions are actually named
6635 something starting with __ and the normal name is an alias. */
6636 #if defined (__stub_dlopen) || defined (__stub___dlopen)
6644 if { (eval echo configure:6645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6646 eval "ac_cv_func_dlopen=yes"
6648 echo "configure: failed program was:" >&5
6649 cat conftest.$ac_ext >&5
6651 eval "ac_cv_func_dlopen=no"
6656 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
6657 echo "$ac_t""yes" 1>&6
6658 lt_cv_dlopen="dlopen"
6660 echo "$ac_t""no" 1>&6
6661 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
6662 echo "configure:6663: checking for dlopen in -ldl" >&5
6663 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-:%__p__%'`
6664 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6665 echo $ac_n "(cached) $ac_c" 1>&6
6667 ac_save_LIBS="$LIBS"
6669 cat > conftest.$ac_ext <<EOF
6670 #line 6671 "configure"
6671 #include "confdefs.h"
6672 /* Override any gcc2 internal prototype to avoid an error. */
6673 /* We use char because int might match the return type of a gcc2
6674 builtin and then its argument prototype would still apply. */
6681 if { (eval echo configure:6682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6683 eval "ac_cv_lib_$ac_lib_var=yes"
6685 echo "configure: failed program was:" >&5
6686 cat conftest.$ac_ext >&5
6688 eval "ac_cv_lib_$ac_lib_var=no"
6691 LIBS="$ac_save_LIBS"
6694 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6695 echo "$ac_t""yes" 1>&6
6696 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6698 echo "$ac_t""no" 1>&6
6699 echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
6700 echo "configure:6701: checking for dlopen in -lsvld" >&5
6701 ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-:%__p__%'`
6702 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6703 echo $ac_n "(cached) $ac_c" 1>&6
6705 ac_save_LIBS="$LIBS"
6707 cat > conftest.$ac_ext <<EOF
6708 #line 6709 "configure"
6709 #include "confdefs.h"
6710 /* Override any gcc2 internal prototype to avoid an error. */
6711 /* We use char because int might match the return type of a gcc2
6712 builtin and then its argument prototype would still apply. */
6719 if { (eval echo configure:6720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6721 eval "ac_cv_lib_$ac_lib_var=yes"
6723 echo "configure: failed program was:" >&5
6724 cat conftest.$ac_ext >&5
6726 eval "ac_cv_lib_$ac_lib_var=no"
6729 LIBS="$ac_save_LIBS"
6732 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6733 echo "$ac_t""yes" 1>&6
6734 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6736 echo "$ac_t""no" 1>&6
6737 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
6738 echo "configure:6739: checking for dld_link in -ldld" >&5
6739 ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-:%__p__%'`
6740 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6741 echo $ac_n "(cached) $ac_c" 1>&6
6743 ac_save_LIBS="$LIBS"
6745 cat > conftest.$ac_ext <<EOF
6746 #line 6747 "configure"
6747 #include "confdefs.h"
6748 /* Override any gcc2 internal prototype to avoid an error. */
6749 /* We use char because int might match the return type of a gcc2
6750 builtin and then its argument prototype would still apply. */
6757 if { (eval echo configure:6758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6759 eval "ac_cv_lib_$ac_lib_var=yes"
6761 echo "configure: failed program was:" >&5
6762 cat conftest.$ac_ext >&5
6764 eval "ac_cv_lib_$ac_lib_var=no"
6767 LIBS="$ac_save_LIBS"
6770 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6771 echo "$ac_t""yes" 1>&6
6772 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6774 echo "$ac_t""no" 1>&6
6795 if test "x$lt_cv_dlopen" != xno; then
6801 case $lt_cv_dlopen in
6803 save_CPPFLAGS="$CPPFLAGS"
6804 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6806 save_LDFLAGS="$LDFLAGS"
6807 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6810 LIBS="$lt_cv_dlopen_libs $LIBS"
6812 echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
6813 echo "configure:6814: checking whether a program can dlopen itself" >&5
6814 if eval "test \"\${lt_cv_dlopen_self+set}\" = set"; then
6815 echo $ac_n "(cached) $ac_c" 1>&6
6817 if test "$cross_compiling" = yes; then :
6818 lt_cv_dlopen_self=cross
6820 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6821 lt_status=$lt_dlunknown
6822 cat > conftest.$ac_ext <<EOF
6823 #line 6824 "configure"
6824 #include "confdefs.h"
6833 # define LT_DLGLOBAL RTLD_GLOBAL
6836 # define LT_DLGLOBAL DL_GLOBAL
6838 # define LT_DLGLOBAL 0
6842 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6843 find out it does not work in some platform. */
6844 #ifndef LT_DLLAZY_OR_NOW
6846 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6849 # define LT_DLLAZY_OR_NOW DL_LAZY
6852 # define LT_DLLAZY_OR_NOW RTLD_NOW
6855 # define LT_DLLAZY_OR_NOW DL_NOW
6857 # define LT_DLLAZY_OR_NOW 0
6865 extern "C" void exit (int);
6868 void fnord() { int i=42;}
6871 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6872 int status = $lt_dlunknown;
6876 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6877 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6878 /* dlclose (self); */
6884 if { (eval echo configure:6885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
6885 (./conftest; exit; ) 2>/dev/null
6888 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
6889 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
6890 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
6893 # compilation failed
6894 lt_cv_dlopen_self=no
6902 echo "$ac_t""$lt_cv_dlopen_self" 1>&6
6904 if test "x$lt_cv_dlopen_self" = xyes; then
6905 LDFLAGS="$LDFLAGS $link_static_flag"
6906 echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
6907 echo "configure:6908: checking whether a statically linked program can dlopen itself" >&5
6908 if eval "test \"\${lt_cv_dlopen_self_static+set}\" = set"; then
6909 echo $ac_n "(cached) $ac_c" 1>&6
6911 if test "$cross_compiling" = yes; then :
6912 lt_cv_dlopen_self_static=cross
6914 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6915 lt_status=$lt_dlunknown
6916 cat > conftest.$ac_ext <<EOF
6917 #line 6918 "configure"
6918 #include "confdefs.h"
6927 # define LT_DLGLOBAL RTLD_GLOBAL
6930 # define LT_DLGLOBAL DL_GLOBAL
6932 # define LT_DLGLOBAL 0
6936 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6937 find out it does not work in some platform. */
6938 #ifndef LT_DLLAZY_OR_NOW
6940 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6943 # define LT_DLLAZY_OR_NOW DL_LAZY
6946 # define LT_DLLAZY_OR_NOW RTLD_NOW
6949 # define LT_DLLAZY_OR_NOW DL_NOW
6951 # define LT_DLLAZY_OR_NOW 0
6959 extern "C" void exit (int);
6962 void fnord() { int i=42;}
6965 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6966 int status = $lt_dlunknown;
6970 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6971 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6972 /* dlclose (self); */
6978 if { (eval echo configure:6979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
6979 (./conftest; exit; ) 2>/dev/null
6982 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
6983 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
6984 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
6987 # compilation failed
6988 lt_cv_dlopen_self_static=no
6996 echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6
6999 CPPFLAGS="$save_CPPFLAGS"
7000 LDFLAGS="$save_LDFLAGS"
7005 case $lt_cv_dlopen_self in
7006 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7007 *) enable_dlopen_self=unknown ;;
7010 case $lt_cv_dlopen_self_static in
7011 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7012 *) enable_dlopen_self_static=unknown ;;
7017 if test "$enable_shared" = yes && test "$GCC" = yes; then
7018 case $archive_cmds in
7020 # FIXME: we may have to deal with multi-command sequences.
7023 # Test whether the compiler implicitly links with -lc since on some
7024 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7025 # to ld, don't add -lc before -lgcc.
7026 echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6
7027 echo "configure:7028: checking whether -lc should be explicitly linked in" >&5
7028 if eval "test \"\${lt_cv_archive_cmds_need_lc+set}\" = set"; then
7029 echo $ac_n "(cached) $ac_c" 1>&6
7032 echo 'static int dummy;' > conftest.$ac_ext
7034 if { (eval echo configure:7035: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7037 libobjs=conftest.$ac_objext
7039 wl=$lt_cv_prog_cc_wl
7045 save_allow_undefined_flag=$allow_undefined_flag
7046 allow_undefined_flag=
7047 if { (eval echo configure:7048: \"$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; }
7049 lt_cv_archive_cmds_need_lc=no
7051 lt_cv_archive_cmds_need_lc=yes
7053 allow_undefined_flag=$save_allow_undefined_flag
7055 cat conftest.err 1>&5
7059 echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6
7063 need_lc=${lt_cv_archive_cmds_need_lc-yes}
7065 # The second clause should only fire when bootstrapping the
7066 # libtool distribution, otherwise you forgot to ship ltmain.sh
7067 # with your package, and you will get complaints that there are
7068 # no rules to generate ltmain.sh.
7069 if test -f "$ltmain"; then
7072 # If there is no Makefile yet, we rely on a make rule to execute
7073 # `config.status --recheck' to rerun these tests and create the
7074 # libtool script then.
7075 test -f Makefile && make "$ltmain"
7078 if test -f "$ltmain"; then
7079 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7082 echo creating $ofile
7084 # Now quote all the things that may contain metacharacters while being
7085 # careful not to overquote the AC_SUBSTed values. We take copies of the
7086 # variables and quote the copies for generation of the libtool script.
7087 for var in echo old_CC old_CFLAGS \
7088 AR AR_FLAGS CC LD LN_S NM SHELL \
7089 reload_flag reload_cmds wl \
7090 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7091 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7092 library_names_spec soname_spec \
7093 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7094 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7095 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7096 old_striplib striplib file_magic_cmd export_symbols_cmds \
7097 deplibs_check_method allow_undefined_flag no_undefined_flag \
7098 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7099 global_symbol_to_c_name_address \
7100 hardcode_libdir_flag_spec hardcode_libdir_separator \
7101 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7102 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7105 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7106 old_postinstall_cmds | old_postuninstall_cmds | \
7107 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7108 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7109 postinstall_cmds | postuninstall_cmds | \
7110 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7111 # Double-quote double-evaled strings.
7112 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7115 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7120 cat <<__EOF__ > "${ofile}T"
7123 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7124 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7125 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7127 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7128 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7130 # This program is free software; you can redistribute it and/or modify
7131 # it under the terms of the GNU General Public License as published by
7132 # the Free Software Foundation; either version 2 of the License, or
7133 # (at your option) any later version.
7135 # This program is distributed in the hope that it will be useful, but
7136 # WITHOUT ANY WARRANTY; without even the implied warranty of
7137 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7138 # General Public License for more details.
7140 # You should have received a copy of the GNU General Public License
7141 # along with this program; if not, write to the Free Software
7142 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7144 # As a special exception to the GNU General Public License, if you
7145 # distribute this file as part of a program that contains a
7146 # configuration script generated by Autoconf, you may include it under
7147 # the same distribution terms that you use for the rest of that program.
7149 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7150 Xsed="sed -e s/^X//"
7152 # The HP-UX ksh and POSIX shell print the target directory to stdout
7154 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7156 # ### BEGIN LIBTOOL CONFIG
7158 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7160 # Shell to use when invoking shell scripts.
7163 # Whether or not to build shared libraries.
7164 build_libtool_libs=$enable_shared
7166 # Whether or not to build static libraries.
7167 build_old_libs=$enable_static
7169 # Whether or not to add -lc for building shared libraries.
7170 build_libtool_need_lc=$need_lc
7172 # Whether or not to optimize for fast installation.
7173 fast_install=$enable_fast_install
7176 host_alias=$host_alias
7179 # An echo program that does not interpret backslashes.
7184 AR_FLAGS=$lt_AR_FLAGS
7186 # The default C compiler.
7189 # Is the compiler the GNU C compiler?
7192 # The linker used to build libraries.
7195 # Whether we need hard or soft links.
7198 # A BSD-compatible nm program.
7201 # A symbol stripping program
7204 # Used to examine libraries when file_magic_cmd begins "file"
7205 MAGIC_CMD=$MAGIC_CMD
7207 # Used on cygwin: DLL creation program.
7210 # Used on cygwin: object dumper.
7213 # Used on cygwin: assembler.
7216 # The name of the directory that contains temporary libtool files.
7219 # How to create reloadable object files.
7220 reload_flag=$lt_reload_flag
7221 reload_cmds=$lt_reload_cmds
7223 # How to pass a linker flag through the compiler.
7226 # Object file suffix (normally "o").
7229 # Old archive suffix (normally "a").
7232 # Executable file suffix (normally "").
7235 # Additional compiler flags for building library objects.
7236 pic_flag=$lt_pic_flag
7239 # Does compiler simultaneously support -c and -o options?
7240 compiler_c_o=$lt_compiler_c_o
7242 # Can we write directly to a .lo ?
7243 compiler_o_lo=$lt_compiler_o_lo
7245 # Must we lock files when doing compilation ?
7246 need_locks=$lt_need_locks
7248 # Do we need the lib prefix for modules?
7249 need_lib_prefix=$need_lib_prefix
7251 # Do we need a version for libraries?
7252 need_version=$need_version
7254 # Whether dlopen is supported.
7255 dlopen_support=$enable_dlopen
7257 # Whether dlopen of programs is supported.
7258 dlopen_self=$enable_dlopen_self
7260 # Whether dlopen of statically linked programs is supported.
7261 dlopen_self_static=$enable_dlopen_self_static
7263 # Compiler flag to prevent dynamic linking.
7264 link_static_flag=$lt_link_static_flag
7266 # Compiler flag to turn off builtin functions.
7267 no_builtin_flag=$lt_no_builtin_flag
7269 # Compiler flag to allow reflexive dlopens.
7270 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7272 # Compiler flag to generate shared objects directly from archives.
7273 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7275 # Compiler flag to generate thread-safe objects.
7276 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7278 # Library versioning type.
7279 version_type=$version_type
7281 # Format of library name prefix.
7282 libname_spec=$lt_libname_spec
7284 # List of archive names. First name is the real one, the rest are links.
7285 # The last name is the one that the linker finds with -lNAME.
7286 library_names_spec=$lt_library_names_spec
7288 # The coded name of the library, if different from the real name.
7289 soname_spec=$lt_soname_spec
7291 # Commands used to build and install an old-style archive.
7293 old_archive_cmds=$lt_old_archive_cmds
7294 old_postinstall_cmds=$lt_old_postinstall_cmds
7295 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7297 # Create an old-style archive from a shared archive.
7298 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7300 # Create a temporary old-style archive to link instead of a shared archive.
7301 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7303 # Commands used to build and install a shared archive.
7304 archive_cmds=$lt_archive_cmds
7305 archive_expsym_cmds=$lt_archive_expsym_cmds
7306 postinstall_cmds=$lt_postinstall_cmds
7307 postuninstall_cmds=$lt_postuninstall_cmds
7309 # Commands to strip libraries.
7310 old_striplib=$lt_old_striplib
7311 striplib=$lt_striplib
7313 # Method to check whether dependent libraries are shared objects.
7314 deplibs_check_method=$lt_deplibs_check_method
7316 # Command to use when deplibs_check_method == file_magic.
7317 file_magic_cmd=$lt_file_magic_cmd
7319 # Flag that allows shared libraries with undefined symbols to be built.
7320 allow_undefined_flag=$lt_allow_undefined_flag
7322 # Flag that forces no undefined symbols.
7323 no_undefined_flag=$lt_no_undefined_flag
7325 # Commands used to finish a libtool library installation in a directory.
7326 finish_cmds=$lt_finish_cmds
7328 # Same as above, but a single script fragment to be evaled but not shown.
7329 finish_eval=$lt_finish_eval
7331 # Take the output of nm and produce a listing of raw symbols and C names.
7332 global_symbol_pipe=$lt_global_symbol_pipe
7334 # Transform the output of nm in a proper C declaration
7335 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7337 # Transform the output of nm in a C name address pair
7338 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7340 # This is the shared library runtime path variable.
7341 runpath_var=$runpath_var
7343 # This is the shared library path variable.
7344 shlibpath_var=$shlibpath_var
7346 # Is shlibpath searched before the hard-coded library search path?
7347 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7349 # How to hardcode a shared library path into an executable.
7350 hardcode_action=$hardcode_action
7352 # Whether we should hardcode library paths into libraries.
7353 hardcode_into_libs=$hardcode_into_libs
7355 # Flag to hardcode \$libdir into a binary during linking.
7356 # This must work even if \$libdir does not exist.
7357 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7359 # Whether we need a single -rpath flag with a separated argument.
7360 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7362 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7364 hardcode_direct=$hardcode_direct
7366 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7368 hardcode_minus_L=$hardcode_minus_L
7370 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7371 # the resulting binary.
7372 hardcode_shlibpath_var=$hardcode_shlibpath_var
7374 # Variables whose values should be saved in libtool wrapper scripts and
7375 # restored at relink time.
7376 variables_saved_for_relink="$variables_saved_for_relink"
7378 # Whether libtool must link a program against all its dependency libraries.
7379 link_all_deplibs=$link_all_deplibs
7381 # Compile-time system search path for libraries
7382 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7384 # Run-time system search path for libraries
7385 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7387 # Fix the shell variable \$srcfile for the compiler.
7388 fix_srcfile_path="$fix_srcfile_path"
7390 # Set to yes if exported symbols are required.
7391 always_export_symbols=$always_export_symbols
7393 # The commands to list exported symbols.
7394 export_symbols_cmds=$lt_export_symbols_cmds
7396 # The commands to extract the exported symbol list from a shared archive.
7397 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7399 # Symbols that should not be listed in the preloaded symbols.
7400 exclude_expsyms=$lt_exclude_expsyms
7402 # Symbols that must always be exported.
7403 include_expsyms=$lt_include_expsyms
7405 # ### END LIBTOOL CONFIG
7411 cat <<\EOF >> "${ofile}T"
7413 # AIX sometimes has problems with the GCC collect2 program. For some
7414 # reason, if we set the COLLECT_NAMES environment variable, the problems
7415 # vanish in a puff of smoke.
7416 if test "X${COLLECT_NAMES+set}" != Xset; then
7418 export COLLECT_NAMES
7425 cygwin* | mingw* | pw32* | os2*)
7426 cat <<'EOF' >> "${ofile}T"
7427 # This is a source program that is used to create dlls on Windows
7428 # Don't remove nor modify the starting and closing comments
7429 # /* ltdll.c starts here */
7430 # #define WIN32_LEAN_AND_MEAN
7431 # #include <windows.h>
7432 # #undef WIN32_LEAN_AND_MEAN
7433 # #include <stdio.h>
7435 # #ifndef __CYGWIN__
7436 # # ifdef __CYGWIN32__
7437 # # define __CYGWIN__ __CYGWIN32__
7441 # #ifdef __cplusplus
7444 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7445 # #ifdef __cplusplus
7450 # #include <cygwin/cygwin_dll.h>
7451 # DECLARE_CYGWIN_DLL( DllMain );
7453 # HINSTANCE __hDllInstance_base;
7456 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7458 # __hDllInstance_base = hInst;
7461 # /* ltdll.c ends here */
7462 # This is a source program that is used to create import libraries
7463 # on Windows for dlls which lack them. Don't remove nor modify the
7464 # starting and closing comments
7465 # /* impgen.c starts here */
7466 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7468 # This file is part of GNU libtool.
7470 # This program is free software; you can redistribute it and/or modify
7471 # it under the terms of the GNU General Public License as published by
7472 # the Free Software Foundation; either version 2 of the License, or
7473 # (at your option) any later version.
7475 # This program is distributed in the hope that it will be useful,
7476 # but WITHOUT ANY WARRANTY; without even the implied warranty of
7477 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7478 # GNU General Public License for more details.
7480 # You should have received a copy of the GNU General Public License
7481 # along with this program; if not, write to the Free Software
7482 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7485 # #include <stdio.h> /* for printf() */
7486 # #include <unistd.h> /* for open(), lseek(), read() */
7487 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7488 # #include <string.h> /* for strdup() */
7490 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
7492 # #define O_BINARY 0
7495 # static unsigned int
7496 # pe_get16 (fd, offset)
7500 # unsigned char b[2];
7501 # lseek (fd, offset, SEEK_SET);
7503 # return b[0] + (b[1]<<8);
7506 # static unsigned int
7507 # pe_get32 (fd, offset)
7511 # unsigned char b[4];
7512 # lseek (fd, offset, SEEK_SET);
7514 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7517 # static unsigned int
7521 # unsigned char *b = ptr;
7522 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7531 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7532 # unsigned long export_rva, export_size, nsections, secptr, expptr;
7533 # unsigned long name_rvas, nexp;
7534 # unsigned char *expdata, *erva;
7535 # char *filename, *dll_name;
7537 # filename = argv[1];
7539 # dll = open(filename, O_RDONLY|O_BINARY);
7543 # dll_name = filename;
7545 # for (i=0; filename[i]; i++)
7546 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7547 # dll_name = filename + i +1;
7549 # pe_header_offset = pe_get32 (dll, 0x3c);
7550 # opthdr_ofs = pe_header_offset + 4 + 20;
7551 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
7553 # if (num_entries < 1) /* no exports */
7556 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
7557 # export_size = pe_get32 (dll, opthdr_ofs + 100);
7558 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7559 # secptr = (pe_header_offset + 4 + 20 +
7560 # pe_get16 (dll, pe_header_offset + 4 + 16));
7563 # for (i = 0; i < nsections; i++)
7566 # unsigned long secptr1 = secptr + 40 * i;
7567 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7568 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7569 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7570 # lseek(dll, secptr1, SEEK_SET);
7571 # read(dll, sname, 8);
7572 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
7574 # expptr = fptr + (export_rva - vaddr);
7575 # if (export_rva + export_size > vaddr + vsize)
7576 # export_size = vsize - (export_rva - vaddr);
7581 # expdata = (unsigned char*)malloc(export_size);
7582 # lseek (dll, expptr, SEEK_SET);
7583 # read (dll, expdata, export_size);
7584 # erva = expdata - export_rva;
7586 # nexp = pe_as32 (expdata+24);
7587 # name_rvas = pe_as32 (expdata+32);
7589 # printf ("EXPORTS\n");
7590 # for (i = 0; i<nexp; i++)
7592 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7593 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7598 # /* impgen.c ends here */
7604 # We use sed instead of cat because bash on DJGPP gets confused if
7605 # if finds mixed CR/LF and LF-only lines. Since sed operates in
7606 # text mode, it properly converts lines to CR/LF. This bash problem
7607 # is reportedly fixed, but why not run on old versions too?
7608 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7610 mv -f "${ofile}T" "$ofile" || \
7611 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7619 # This can be used to rebuild libtool when needed
7620 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7622 # Always use our own libtool.
7623 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7625 # Prevent multiple expansion
7629 for ac_prog in mawk gawk nawk awk
7631 # Extract the first word of "$ac_prog", so it can be a program name with args.
7632 set dummy $ac_prog; ac_word=$2
7633 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7634 echo "configure:7635: checking for $ac_word" >&5
7635 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
7636 echo $ac_n "(cached) $ac_c" 1>&6
7638 if test -n "$AWK"; then
7639 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7641 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7643 for ac_dir in $ac_dummy; do
7644 test -z "$ac_dir" && ac_dir=.
7645 if test -f $ac_dir/$ac_word; then
7646 ac_cv_prog_AWK="$ac_prog"
7653 AWK="$ac_cv_prog_AWK"
7654 if test -n "$AWK"; then
7655 echo "$ac_t""$AWK" 1>&6
7657 echo "$ac_t""no" 1>&6
7660 test -n "$AWK" && break
7664 # Extract the first word of "sendmail", so it can be a program name with args.
7665 set dummy sendmail; ac_word=$2
7666 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7667 echo "configure:7668: checking for $ac_word" >&5
7668 if eval "test \"\${ac_cv_path_SENDMAIL+set}\" = set"; then
7669 echo $ac_n "(cached) $ac_c" 1>&6
7673 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
7676 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
7679 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7680 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
7681 for ac_dir in $ac_dummy; do
7682 test -z "$ac_dir" && ac_dir=.
7683 if test -f $ac_dir/$ac_word; then
7684 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
7689 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
7693 SENDMAIL="$ac_cv_path_SENDMAIL"
7694 if test -n "$SENDMAIL"; then
7695 echo "$ac_t""$SENDMAIL" 1>&6
7697 echo "$ac_t""no" 1>&6
7700 # Extract the first word of "vi", so it can be a program name with args.
7701 set dummy vi; ac_word=$2
7702 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7703 echo "configure:7704: checking for $ac_word" >&5
7704 if eval "test \"\${ac_cv_path_EDITOR+set}\" = set"; then
7705 echo $ac_n "(cached) $ac_c" 1>&6
7709 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
7712 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
7715 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7716 ac_dummy="$PATH:/usr/ucb"
7717 for ac_dir in $ac_dummy; do
7718 test -z "$ac_dir" && ac_dir=.
7719 if test -f $ac_dir/$ac_word; then
7720 ac_cv_path_EDITOR="$ac_dir/$ac_word"
7725 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
7729 EDITOR="$ac_cv_path_EDITOR"
7730 if test -n "$EDITOR"; then
7731 echo "$ac_t""$EDITOR" 1>&6
7733 echo "$ac_t""no" 1>&6
7736 # Extract the first word of "finger", so it can be a program name with args.
7737 set dummy finger; ac_word=$2
7738 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7739 echo "configure:7740: checking for $ac_word" >&5
7740 if eval "test \"\${ac_cv_path_FINGER+set}\" = set"; then
7741 echo $ac_n "(cached) $ac_c" 1>&6
7745 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
7748 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a dos path.
7751 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7752 ac_dummy="$PATH:/usr/ucb"
7753 for ac_dir in $ac_dummy; do
7754 test -z "$ac_dir" && ac_dir=.
7755 if test -f $ac_dir/$ac_word; then
7756 ac_cv_path_FINGER="$ac_dir/$ac_word"
7761 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
7765 FINGER="$ac_cv_path_FINGER"
7766 if test -n "$FINGER"; then
7767 echo "$ac_t""$FINGER" 1>&6
7769 echo "$ac_t""no" 1>&6
7774 if test $ol_enable_perl != no ; then
7775 # Extract the first word of "perl", so it can be a program name with args.
7776 set dummy perl; ac_word=$2
7777 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7778 echo "configure:7779: checking for $ac_word" >&5
7779 if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then
7780 echo $ac_n "(cached) $ac_c" 1>&6
7784 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
7787 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
7790 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7792 for ac_dir in $ac_dummy; do
7793 test -z "$ac_dir" && ac_dir=.
7794 if test -f $ac_dir/$ac_word; then
7795 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
7800 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
7804 PERLBIN="$ac_cv_path_PERLBIN"
7805 if test -n "$PERLBIN"; then
7806 echo "$ac_t""$PERLBIN" 1>&6
7808 echo "$ac_t""no" 1>&6
7812 if test "no$PERLBIN" = "no" ; then
7813 if test $ol_enable_perl = yes ; then
7814 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
7818 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
7819 if test x"$ol_with_perl_module" = "xstatic" ; then
7820 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
7822 MOD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
7828 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
7829 echo "configure:7830: checking how to run the C preprocessor" >&5
7830 # On Suns, sometimes $CPP names a directory.
7831 if test -n "$CPP" && test -d "$CPP"; then
7834 if test -z "$CPP"; then
7835 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
7836 echo $ac_n "(cached) $ac_c" 1>&6
7838 # This must be in double quotes, not single quotes, because CPP may get
7839 # substituted into the Makefile and "${CC-cc}" will confuse make.
7841 # On the NeXT, cc -E runs the code through the compiler's parser,
7842 # not just through cpp.
7843 cat > conftest.$ac_ext <<EOF
7844 #line 7845 "configure"
7845 #include "confdefs.h"
7849 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7850 { (eval echo configure:7851: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7851 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7852 if test -z "$ac_err"; then
7856 echo "configure: failed program was:" >&5
7857 cat conftest.$ac_ext >&5
7859 CPP="${CC-cc} -E -traditional-cpp"
7860 cat > conftest.$ac_ext <<EOF
7861 #line 7862 "configure"
7862 #include "confdefs.h"
7866 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7867 { (eval echo configure:7868: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7868 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7869 if test -z "$ac_err"; then
7873 echo "configure: failed program was:" >&5
7874 cat conftest.$ac_ext >&5
7876 CPP="${CC-cc} -nologo -E"
7877 cat > conftest.$ac_ext <<EOF
7878 #line 7879 "configure"
7879 #include "confdefs.h"
7883 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7884 { (eval echo configure:7885: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7885 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7886 if test -z "$ac_err"; then
7890 echo "configure: failed program was:" >&5
7891 cat conftest.$ac_ext >&5
7900 ac_cv_prog_CPP="$CPP"
7902 CPP="$ac_cv_prog_CPP"
7904 ac_cv_prog_CPP="$CPP"
7906 echo "$ac_t""$CPP" 1>&6
7909 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
7910 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
7912 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
7913 echo "configure: warning: programs compiled here do run here..." 1>&2
7914 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
7916 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
7917 echo "configure: warning: programs compiled here do not run here..." 1>&2
7918 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
7922 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
7923 echo "configure:7924: checking for Cygwin environment" >&5
7924 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
7925 echo $ac_n "(cached) $ac_c" 1>&6
7927 cat > conftest.$ac_ext <<EOF
7928 #line 7929 "configure"
7929 #include "confdefs.h"
7934 #define __CYGWIN__ __CYGWIN32__
7939 if { (eval echo configure:7940: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7943 echo "configure: failed program was:" >&5
7944 cat conftest.$ac_ext >&5
7951 echo "$ac_t""$ac_cv_cygwin" 1>&6
7953 test "$ac_cv_cygwin" = yes && CYGWIN=yes
7954 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
7955 echo "configure:7956: checking for mingw32 environment" >&5
7956 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
7957 echo $ac_n "(cached) $ac_c" 1>&6
7959 cat > conftest.$ac_ext <<EOF
7960 #line 7961 "configure"
7961 #include "confdefs.h"
7967 if { (eval echo configure:7968: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7971 echo "configure: failed program was:" >&5
7972 cat conftest.$ac_ext >&5
7979 echo "$ac_t""$ac_cv_mingw32" 1>&6
7981 test "$ac_cv_mingw32" = yes && MINGW32=yes
7985 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
7986 echo "configure:7987: checking for executable suffix" >&5
7987 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
7988 echo $ac_n "(cached) $ac_c" 1>&6
7990 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
7994 echo 'int main () { return 0; }' > conftest.$ac_ext
7996 if { (eval echo configure:7997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
7997 for file in conftest.*; do
7999 *.c | *.C | *.o | *.obj | *.xcoff) ;;
8000 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
8004 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
8007 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
8012 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
8013 echo "$ac_t""${ac_cv_exeext}" 1>&6
8016 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
8017 echo "configure:8018: checking for object suffix" >&5
8018 if eval "test \"\${ac_cv_objext+set}\" = set"; then
8019 echo $ac_n "(cached) $ac_c" 1>&6
8022 echo 'int i = 1;' > conftest.$ac_ext
8023 if { (eval echo configure:8024: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8024 for ac_file in conftest.*; do
8027 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
8031 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
8036 echo "$ac_t""$ac_cv_objext" 1>&6
8037 OBJEXT=$ac_cv_objext
8038 ac_objext=$ac_cv_objext
8041 cat >> confdefs.h <<EOF
8042 #define EXEEXT "${EXEEXT}"
8046 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
8047 echo "configure:8048: checking for be_app in -lbe" >&5
8048 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
8049 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8050 echo $ac_n "(cached) $ac_c" 1>&6
8052 ac_save_LIBS="$LIBS"
8053 LIBS="-lbe -lroot -lnet $LIBS"
8054 cat > conftest.$ac_ext <<EOF
8055 #line 8056 "configure"
8056 #include "confdefs.h"
8057 /* Override any gcc2 internal prototype to avoid an error. */
8058 /* We use char because int might match the return type of a gcc2
8059 builtin and then its argument prototype would still apply. */
8066 if { (eval echo configure:8067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8068 eval "ac_cv_lib_$ac_lib_var=yes"
8070 echo "configure: failed program was:" >&5
8071 cat conftest.$ac_ext >&5
8073 eval "ac_cv_lib_$ac_lib_var=no"
8076 LIBS="$ac_save_LIBS"
8079 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8080 echo "$ac_t""yes" 1>&6
8081 LIBS="$LIBS -lbe -lroot -lnet"
8083 echo "$ac_t""no" 1>&6
8091 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
8092 echo "configure:8093: checking for ${CC-cc} option to accept ANSI C" >&5
8093 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
8094 echo $ac_n "(cached) $ac_c" 1>&6
8096 am_cv_prog_cc_stdc=no
8098 # Don't try gcc -ansi; that turns off useful extensions and
8099 # breaks some systems' header files.
8100 # AIX -qlanglvl=ansi
8101 # Ultrix and OSF/1 -std1
8102 # HP-UX 10.20 and later -Ae
8103 # HP-UX older versions -Aa -D_HPUX_SOURCE
8104 # SVR4 -Xc -D__EXTENSIONS__
8105 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
8107 CC="$ac_save_CC $ac_arg"
8108 cat > conftest.$ac_ext <<EOF
8109 #line 8110 "configure"
8110 #include "confdefs.h"
8113 #include <sys/types.h>
8114 #include <sys/stat.h>
8115 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
8116 struct buf { int x; };
8117 FILE * (*rcsopen) (struct buf *, struct stat *, int);
8118 static char *e (p, i)
8124 static char *f (char * (*g) (char **, int), char **p, ...)
8129 s = g (p, va_arg (v,int));
8133 int test (int i, double x);
8134 struct s1 {int (*f) (int a);};
8135 struct s2 {int (*f) (double a);};
8136 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
8142 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
8146 if { (eval echo configure:8147: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8148 am_cv_prog_cc_stdc="$ac_arg"; break
8150 echo "configure: failed program was:" >&5
8151 cat conftest.$ac_ext >&5
8159 if test -z "$am_cv_prog_cc_stdc"; then
8160 echo "$ac_t""none needed" 1>&6
8162 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
8164 case "x$am_cv_prog_cc_stdc" in
8166 *) CC="$CC $am_cv_prog_cc_stdc" ;;
8169 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
8170 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
8173 # test for make depend flag
8176 if test -z "${MKDEP}"; then
8178 if test -z "${MKDEP_FLAGS}"; then
8179 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
8180 echo "configure:8181: checking for ${OL_MKDEP} depend flag" >&5
8181 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
8182 echo $ac_n "(cached) $ac_c" 1>&6
8186 for flag in "-M" "-xM"; do
8187 cat > conftest.c <<EOF
8190 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:8191: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
8191 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
8193 if test ! -f conftest."${ac_object}" ; then
8195 OL_MKDEP_FLAGS="$flag"
8204 echo "$ac_t""$ol_cv_mkdep" 1>&6
8207 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
8212 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
8217 if test "${ol_cv_mkdep}" = no ; then
8218 # this will soon become an error
8219 echo "configure: warning: do not know how to generate dependencies" 1>&2
8222 echo $ac_n "checking for afopen in -ls""... $ac_c" 1>&6
8223 echo "configure:8224: checking for afopen in -ls" >&5
8224 ac_lib_var=`echo s'_'afopen | sed 'y%./+-:%__p__%'`
8225 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8226 echo $ac_n "(cached) $ac_c" 1>&6
8228 ac_save_LIBS="$LIBS"
8230 cat > conftest.$ac_ext <<EOF
8231 #line 8232 "configure"
8232 #include "confdefs.h"
8233 /* Override any gcc2 internal prototype to avoid an error. */
8234 /* We use char because int might match the return type of a gcc2
8235 builtin and then its argument prototype would still apply. */
8242 if { (eval echo configure:8243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8244 eval "ac_cv_lib_$ac_lib_var=yes"
8246 echo "configure: failed program was:" >&5
8247 cat conftest.$ac_ext >&5
8249 eval "ac_cv_lib_$ac_lib_var=no"
8252 LIBS="$ac_save_LIBS"
8255 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8256 echo "$ac_t""yes" 1>&6
8259 cat >> confdefs.h <<\EOF
8260 #define HAVE_AIX_SECURITY 1
8265 echo "$ac_t""no" 1>&6
8271 if test $ol_enable_modules != no ; then
8272 for ac_hdr in ltdl.h
8274 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8275 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8276 echo "configure:8277: checking for $ac_hdr" >&5
8277 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8278 echo $ac_n "(cached) $ac_c" 1>&6
8280 cat > conftest.$ac_ext <<EOF
8281 #line 8282 "configure"
8282 #include "confdefs.h"
8285 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8286 { (eval echo configure:8287: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8287 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8288 if test -z "$ac_err"; then
8290 eval "ac_cv_header_$ac_safe=yes"
8293 echo "configure: failed program was:" >&5
8294 cat conftest.$ac_ext >&5
8296 eval "ac_cv_header_$ac_safe=no"
8300 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8301 echo "$ac_t""yes" 1>&6
8302 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8303 cat >> confdefs.h <<EOF
8304 #define $ac_tr_hdr 1
8308 echo "$ac_t""no" 1>&6
8313 if test $ac_cv_header_ltdl_h = no ; then
8314 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
8317 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
8318 echo "configure:8319: checking for lt_dlinit in -lltdl" >&5
8319 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
8320 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8321 echo $ac_n "(cached) $ac_c" 1>&6
8323 ac_save_LIBS="$LIBS"
8325 cat > conftest.$ac_ext <<EOF
8326 #line 8327 "configure"
8327 #include "confdefs.h"
8328 /* Override any gcc2 internal prototype to avoid an error. */
8329 /* We use char because int might match the return type of a gcc2
8330 builtin and then its argument prototype would still apply. */
8337 if { (eval echo configure:8338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8339 eval "ac_cv_lib_$ac_lib_var=yes"
8341 echo "configure: failed program was:" >&5
8342 cat conftest.$ac_ext >&5
8344 eval "ac_cv_lib_$ac_lib_var=no"
8347 LIBS="$ac_save_LIBS"
8350 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8351 echo "$ac_t""yes" 1>&6
8354 cat >> confdefs.h <<\EOF
8355 #define HAVE_LIBLTDL 1
8360 echo "$ac_t""no" 1>&6
8364 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
8365 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
8369 ol_with_bdb_module=static
8370 ol_with_dnssrv_module=static
8371 ol_with_ldap_module=static
8372 ol_with_ldbm_module=static
8373 ol_with_meta_module=static
8374 ol_with_monitor_module=static
8375 ol_with_passwd_module=static
8376 ol_with_perl_module=static
8377 ol_with_shell_module=static
8378 ol_with_tcl_module=static
8379 ol_with_sql_module=static
8383 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
8384 echo "configure:8385: checking for EBCDIC" >&5
8385 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
8386 echo $ac_n "(cached) $ac_c" 1>&6
8389 cat > conftest.$ac_ext <<EOF
8390 #line 8391 "configure"
8391 #include "confdefs.h"
8394 #include <__ASCII__/generate_error.h>
8398 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8399 { (eval echo configure:8400: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8400 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8401 if test -z "$ac_err"; then
8403 ol_cv_cpp_ebcdic=yes
8406 echo "configure: failed program was:" >&5
8407 cat conftest.$ac_ext >&5
8414 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
8415 if test $ol_cv_cpp_ebcdic = yes ; then
8416 cat >> confdefs.h <<\EOF
8417 #define HAVE_EBCDIC 1
8422 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
8423 echo "configure:8424: checking for ANSI C header files" >&5
8424 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
8425 echo $ac_n "(cached) $ac_c" 1>&6
8427 cat > conftest.$ac_ext <<EOF
8428 #line 8429 "configure"
8429 #include "confdefs.h"
8435 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8436 { (eval echo configure:8437: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8437 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8438 if test -z "$ac_err"; then
8440 ol_cv_header_stdc=yes
8443 echo "configure: failed program was:" >&5
8444 cat conftest.$ac_ext >&5
8446 ol_cv_header_stdc=no
8450 if test $ol_cv_header_stdc = yes; then
8451 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8452 cat > conftest.$ac_ext <<EOF
8453 #line 8454 "configure"
8454 #include "confdefs.h"
8457 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8458 egrep "memchr" >/dev/null 2>&1; then
8462 ol_cv_header_stdc=no
8468 if test $ol_cv_header_stdc = yes; then
8469 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8470 cat > conftest.$ac_ext <<EOF
8471 #line 8472 "configure"
8472 #include "confdefs.h"
8475 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8476 egrep "free" >/dev/null 2>&1; then
8480 ol_cv_header_stdc=no
8486 if test $ol_cv_header_stdc = yes; then
8487 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8488 if test "$cross_compiling" = yes; then
8491 cat > conftest.$ac_ext <<EOF
8492 #line 8493 "configure"
8493 #include "confdefs.h"
8496 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8497 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8499 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
8500 || ('j' <= (c) && (c) <= 'r') \
8501 || ('s' <= (c) && (c) <= 'z'))
8502 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8504 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8505 int main () { int i; for (i = 0; i < 256; i++)
8506 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
8510 if { (eval echo configure:8511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8514 echo "configure: failed program was:" >&5
8515 cat conftest.$ac_ext >&5
8517 ol_cv_header_stdc=no
8525 echo "$ac_t""$ol_cv_header_stdc" 1>&6
8526 if test $ol_cv_header_stdc = yes; then
8527 cat >> confdefs.h <<\EOF
8528 #define STDC_HEADERS 1
8532 ac_cv_header_stdc=disable
8535 if test $ol_cv_header_stdc != yes; then
8536 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
8540 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
8542 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8543 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
8544 echo "configure:8545: checking for $ac_hdr that defines DIR" >&5
8545 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
8546 echo $ac_n "(cached) $ac_c" 1>&6
8548 cat > conftest.$ac_ext <<EOF
8549 #line 8550 "configure"
8550 #include "confdefs.h"
8551 #include <sys/types.h>
8557 if { (eval echo configure:8558: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8559 eval "ac_cv_header_dirent_$ac_safe=yes"
8561 echo "configure: failed program was:" >&5
8562 cat conftest.$ac_ext >&5
8564 eval "ac_cv_header_dirent_$ac_safe=no"
8568 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
8569 echo "$ac_t""yes" 1>&6
8570 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8571 cat >> confdefs.h <<EOF
8572 #define $ac_tr_hdr 1
8574 ac_header_dirent=$ac_hdr; break
8576 echo "$ac_t""no" 1>&6
8579 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8580 if test $ac_header_dirent = dirent.h; then
8581 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
8582 echo "configure:8583: checking for opendir in -ldir" >&5
8583 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
8584 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8585 echo $ac_n "(cached) $ac_c" 1>&6
8587 ac_save_LIBS="$LIBS"
8589 cat > conftest.$ac_ext <<EOF
8590 #line 8591 "configure"
8591 #include "confdefs.h"
8592 /* Override any gcc2 internal prototype to avoid an error. */
8593 /* We use char because int might match the return type of a gcc2
8594 builtin and then its argument prototype would still apply. */
8601 if { (eval echo configure:8602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8603 eval "ac_cv_lib_$ac_lib_var=yes"
8605 echo "configure: failed program was:" >&5
8606 cat conftest.$ac_ext >&5
8608 eval "ac_cv_lib_$ac_lib_var=no"
8611 LIBS="$ac_save_LIBS"
8614 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8615 echo "$ac_t""yes" 1>&6
8618 echo "$ac_t""no" 1>&6
8622 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
8623 echo "configure:8624: checking for opendir in -lx" >&5
8624 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
8625 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8626 echo $ac_n "(cached) $ac_c" 1>&6
8628 ac_save_LIBS="$LIBS"
8630 cat > conftest.$ac_ext <<EOF
8631 #line 8632 "configure"
8632 #include "confdefs.h"
8633 /* Override any gcc2 internal prototype to avoid an error. */
8634 /* We use char because int might match the return type of a gcc2
8635 builtin and then its argument prototype would still apply. */
8642 if { (eval echo configure:8643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8644 eval "ac_cv_lib_$ac_lib_var=yes"
8646 echo "configure: failed program was:" >&5
8647 cat conftest.$ac_ext >&5
8649 eval "ac_cv_lib_$ac_lib_var=no"
8652 LIBS="$ac_save_LIBS"
8655 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8656 echo "$ac_t""yes" 1>&6
8659 echo "$ac_t""no" 1>&6
8664 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
8665 echo "configure:8666: checking for sys/wait.h that is POSIX.1 compatible" >&5
8666 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
8667 echo $ac_n "(cached) $ac_c" 1>&6
8669 cat > conftest.$ac_ext <<EOF
8670 #line 8671 "configure"
8671 #include "confdefs.h"
8672 #include <sys/types.h>
8673 #include <sys/wait.h>
8675 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8678 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8683 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8686 if { (eval echo configure:8687: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8688 ac_cv_header_sys_wait_h=yes
8690 echo "configure: failed program was:" >&5
8691 cat conftest.$ac_ext >&5
8693 ac_cv_header_sys_wait_h=no
8698 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
8699 if test $ac_cv_header_sys_wait_h = yes; then
8700 cat >> confdefs.h <<\EOF
8701 #define HAVE_SYS_WAIT_H 1
8706 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
8707 echo "configure:8708: checking POSIX termios" >&5
8708 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
8709 echo $ac_n "(cached) $ac_c" 1>&6
8711 cat > conftest.$ac_ext <<EOF
8712 #line 8713 "configure"
8713 #include "confdefs.h"
8714 #include <sys/types.h>
8716 #include <termios.h>
8718 /* SunOS 4.0.3 has termios.h but not the library calls. */
8722 if { (eval echo configure:8723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8724 am_cv_sys_posix_termios=yes
8726 echo "configure: failed program was:" >&5
8727 cat conftest.$ac_ext >&5
8729 am_cv_sys_posix_termios=no
8734 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
8737 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
8738 echo "configure:8739: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
8739 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
8740 echo $ac_n "(cached) $ac_c" 1>&6
8742 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
8744 gwinsz_in_termios_h=no
8745 if test $am_cv_sys_posix_termios = yes; then
8746 cat > conftest.$ac_ext <<EOF
8747 #line 8748 "configure"
8748 #include "confdefs.h"
8749 #include <sys/types.h>
8750 # include <termios.h>
8756 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8757 egrep "yes" >/dev/null 2>&1; then
8759 gwinsz_in_termios_h=yes
8765 if test $gwinsz_in_termios_h = no; then
8766 cat > conftest.$ac_ext <<EOF
8767 #line 8768 "configure"
8768 #include "confdefs.h"
8769 #include <sys/types.h>
8770 # include <sys/ioctl.h>
8776 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8777 egrep "yes" >/dev/null 2>&1; then
8779 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
8787 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
8788 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
8789 cat >> confdefs.h <<\EOF
8790 #define GWINSZ_IN_SYS_IOCTL 1
8795 if test $am_cv_sys_posix_termios = yes ; then
8796 cat >> confdefs.h <<\EOF
8797 #define HAVE_POSIX_TERMIOS 1
8849 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8850 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8851 echo "configure:8852: checking for $ac_hdr" >&5
8852 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8853 echo $ac_n "(cached) $ac_c" 1>&6
8855 cat > conftest.$ac_ext <<EOF
8856 #line 8857 "configure"
8857 #include "confdefs.h"
8860 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8861 { (eval echo configure:8862: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8862 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8863 if test -z "$ac_err"; then
8865 eval "ac_cv_header_$ac_safe=yes"
8868 echo "configure: failed program was:" >&5
8869 cat conftest.$ac_ext >&5
8871 eval "ac_cv_header_$ac_safe=no"
8875 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8876 echo "$ac_t""yes" 1>&6
8877 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8878 cat >> confdefs.h <<EOF
8879 #define $ac_tr_hdr 1
8883 echo "$ac_t""no" 1>&6
8890 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
8891 echo "configure:8892: checking for dlopen" >&5
8892 if eval "test \"\${ac_cv_func_dlopen+set}\" = set"; then
8893 echo $ac_n "(cached) $ac_c" 1>&6
8895 cat > conftest.$ac_ext <<EOF
8896 #line 8897 "configure"
8897 #include "confdefs.h"
8898 /* System header to define __stub macros and hopefully few prototypes,
8899 which can conflict with char dlopen(); below. */
8901 /* Override any gcc2 internal prototype to avoid an error. */
8902 /* We use char because int might match the return type of a gcc2
8903 builtin and then its argument prototype would still apply. */
8909 /* The GNU C library defines this for functions which it implements
8910 to always fail with ENOSYS. Some functions are actually named
8911 something starting with __ and the normal name is an alias. */
8912 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8920 if { (eval echo configure:8921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8922 eval "ac_cv_func_dlopen=yes"
8924 echo "configure: failed program was:" >&5
8925 cat conftest.$ac_ext >&5
8927 eval "ac_cv_func_dlopen=no"
8932 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
8933 echo "$ac_t""yes" 1>&6
8936 echo "$ac_t""no" 1>&6
8937 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
8938 echo "configure:8939: checking for dlopen in -ldl" >&5
8939 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-:%__p__%'`
8940 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8941 echo $ac_n "(cached) $ac_c" 1>&6
8943 ac_save_LIBS="$LIBS"
8945 cat > conftest.$ac_ext <<EOF
8946 #line 8947 "configure"
8947 #include "confdefs.h"
8948 /* Override any gcc2 internal prototype to avoid an error. */
8949 /* We use char because int might match the return type of a gcc2
8950 builtin and then its argument prototype would still apply. */
8957 if { (eval echo configure:8958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8959 eval "ac_cv_lib_$ac_lib_var=yes"
8961 echo "configure: failed program was:" >&5
8962 cat conftest.$ac_ext >&5
8964 eval "ac_cv_lib_$ac_lib_var=no"
8967 LIBS="$ac_save_LIBS"
8970 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8971 echo "$ac_t""yes" 1>&6
8972 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8973 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8974 cat >> confdefs.h <<EOF
8975 #define $ac_tr_lib 1
8981 echo "$ac_t""no" 1>&6
8987 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
8988 echo "configure:8989: checking for sigset in -lV3" >&5
8989 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
8990 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8991 echo $ac_n "(cached) $ac_c" 1>&6
8993 ac_save_LIBS="$LIBS"
8995 cat > conftest.$ac_ext <<EOF
8996 #line 8997 "configure"
8997 #include "confdefs.h"
8998 /* Override any gcc2 internal prototype to avoid an error. */
8999 /* We use char because int might match the return type of a gcc2
9000 builtin and then its argument prototype would still apply. */
9007 if { (eval echo configure:9008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9009 eval "ac_cv_lib_$ac_lib_var=yes"
9011 echo "configure: failed program was:" >&5
9012 cat conftest.$ac_ext >&5
9014 eval "ac_cv_lib_$ac_lib_var=no"
9017 LIBS="$ac_save_LIBS"
9020 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9021 echo "$ac_t""yes" 1>&6
9022 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9023 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9024 cat >> confdefs.h <<EOF
9025 #define $ac_tr_lib 1
9031 echo "$ac_t""no" 1>&6
9035 echo $ac_n "checking for winsock""... $ac_c" 1>&6
9036 echo "configure:9037: checking for winsock" >&5
9038 for curlib in ws2_32 wsock32; do
9039 LIBS="$LIBS -l$curlib"
9040 cat > conftest.$ac_ext <<EOF
9041 #line 9042 "configure"
9042 #include "confdefs.h"
9046 char closesocket@4();
9047 char gethostname@8();
9058 if { (eval echo configure:9059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9062 echo "configure: failed program was:" >&5
9063 cat conftest.$ac_ext >&5
9069 if test $have_winsock = yes; then
9070 cat >> confdefs.h <<\EOF
9071 #define HAVE_WINSOCK 1
9074 ac_cv_func_socket=yes
9075 ac_cv_func_select=yes
9076 ac_cv_func_closesocket=yes
9077 ac_cv_func_gethostname=yes
9078 if test $curlib = ws2_32; then
9079 have_winsock=winsock2
9080 cat >> confdefs.h <<\EOF
9081 #define HAVE_WINSOCK2 1
9089 echo "$ac_t""$have_winsock" 1>&6
9092 echo $ac_n "checking for socket""... $ac_c" 1>&6
9093 echo "configure:9094: checking for socket" >&5
9094 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
9095 echo $ac_n "(cached) $ac_c" 1>&6
9097 cat > conftest.$ac_ext <<EOF
9098 #line 9099 "configure"
9099 #include "confdefs.h"
9100 /* System header to define __stub macros and hopefully few prototypes,
9101 which can conflict with char socket(); below. */
9103 /* Override any gcc2 internal prototype to avoid an error. */
9104 /* We use char because int might match the return type of a gcc2
9105 builtin and then its argument prototype would still apply. */
9111 /* The GNU C library defines this for functions which it implements
9112 to always fail with ENOSYS. Some functions are actually named
9113 something starting with __ and the normal name is an alias. */
9114 #if defined (__stub_socket) || defined (__stub___socket)
9122 if { (eval echo configure:9123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9124 eval "ac_cv_func_socket=yes"
9126 echo "configure: failed program was:" >&5
9127 cat conftest.$ac_ext >&5
9129 eval "ac_cv_func_socket=no"
9134 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
9135 echo "$ac_t""yes" 1>&6
9138 echo "$ac_t""no" 1>&6
9140 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
9141 echo "configure:9142: checking for main in -lsocket" >&5
9142 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
9143 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9144 echo $ac_n "(cached) $ac_c" 1>&6
9146 ac_save_LIBS="$LIBS"
9147 LIBS="-lsocket $LIBS"
9148 cat > conftest.$ac_ext <<EOF
9149 #line 9150 "configure"
9150 #include "confdefs.h"
9156 if { (eval echo configure:9157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9158 eval "ac_cv_lib_$ac_lib_var=yes"
9160 echo "configure: failed program was:" >&5
9161 cat conftest.$ac_ext >&5
9163 eval "ac_cv_lib_$ac_lib_var=no"
9166 LIBS="$ac_save_LIBS"
9169 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9170 echo "$ac_t""yes" 1>&6
9171 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9172 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9173 cat >> confdefs.h <<EOF
9174 #define $ac_tr_lib 1
9177 LIBS="-lsocket $LIBS"
9180 echo "$ac_t""no" 1>&6
9183 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
9184 echo "configure:9185: checking for main in -lnet" >&5
9185 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
9186 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9187 echo $ac_n "(cached) $ac_c" 1>&6
9189 ac_save_LIBS="$LIBS"
9191 cat > conftest.$ac_ext <<EOF
9192 #line 9193 "configure"
9193 #include "confdefs.h"
9199 if { (eval echo configure:9200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9201 eval "ac_cv_lib_$ac_lib_var=yes"
9203 echo "configure: failed program was:" >&5
9204 cat conftest.$ac_ext >&5
9206 eval "ac_cv_lib_$ac_lib_var=no"
9209 LIBS="$ac_save_LIBS"
9212 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9213 echo "$ac_t""yes" 1>&6
9214 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9215 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9216 cat >> confdefs.h <<EOF
9217 #define $ac_tr_lib 1
9223 echo "$ac_t""no" 1>&6
9226 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
9227 echo "configure:9228: checking for main in -lnsl_s" >&5
9228 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
9229 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9230 echo $ac_n "(cached) $ac_c" 1>&6
9232 ac_save_LIBS="$LIBS"
9233 LIBS="-lnsl_s $LIBS"
9234 cat > conftest.$ac_ext <<EOF
9235 #line 9236 "configure"
9236 #include "confdefs.h"
9242 if { (eval echo configure:9243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9244 eval "ac_cv_lib_$ac_lib_var=yes"
9246 echo "configure: failed program was:" >&5
9247 cat conftest.$ac_ext >&5
9249 eval "ac_cv_lib_$ac_lib_var=no"
9252 LIBS="$ac_save_LIBS"
9255 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9256 echo "$ac_t""yes" 1>&6
9257 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9258 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9259 cat >> confdefs.h <<EOF
9260 #define $ac_tr_lib 1
9263 LIBS="-lnsl_s $LIBS"
9266 echo "$ac_t""no" 1>&6
9269 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
9270 echo "configure:9271: checking for main in -lnsl" >&5
9271 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
9272 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9273 echo $ac_n "(cached) $ac_c" 1>&6
9275 ac_save_LIBS="$LIBS"
9277 cat > conftest.$ac_ext <<EOF
9278 #line 9279 "configure"
9279 #include "confdefs.h"
9285 if { (eval echo configure:9286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9287 eval "ac_cv_lib_$ac_lib_var=yes"
9289 echo "configure: failed program was:" >&5
9290 cat conftest.$ac_ext >&5
9292 eval "ac_cv_lib_$ac_lib_var=no"
9295 LIBS="$ac_save_LIBS"
9298 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9299 echo "$ac_t""yes" 1>&6
9300 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9301 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9302 cat >> confdefs.h <<EOF
9303 #define $ac_tr_lib 1
9309 echo "$ac_t""no" 1>&6
9312 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
9313 echo "configure:9314: checking for socket in -linet" >&5
9314 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
9315 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9316 echo $ac_n "(cached) $ac_c" 1>&6
9318 ac_save_LIBS="$LIBS"
9320 cat > conftest.$ac_ext <<EOF
9321 #line 9322 "configure"
9322 #include "confdefs.h"
9323 /* Override any gcc2 internal prototype to avoid an error. */
9324 /* We use char because int might match the return type of a gcc2
9325 builtin and then its argument prototype would still apply. */
9332 if { (eval echo configure:9333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9334 eval "ac_cv_lib_$ac_lib_var=yes"
9336 echo "configure: failed program was:" >&5
9337 cat conftest.$ac_ext >&5
9339 eval "ac_cv_lib_$ac_lib_var=no"
9342 LIBS="$ac_save_LIBS"
9345 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9346 echo "$ac_t""yes" 1>&6
9347 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9348 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9349 cat >> confdefs.h <<EOF
9350 #define $ac_tr_lib 1
9356 echo "$ac_t""no" 1>&6
9359 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
9360 echo "configure:9361: checking for main in -lgen" >&5
9361 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
9362 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9363 echo $ac_n "(cached) $ac_c" 1>&6
9365 ac_save_LIBS="$LIBS"
9367 cat > conftest.$ac_ext <<EOF
9368 #line 9369 "configure"
9369 #include "confdefs.h"
9375 if { (eval echo configure:9376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9377 eval "ac_cv_lib_$ac_lib_var=yes"
9379 echo "configure: failed program was:" >&5
9380 cat conftest.$ac_ext >&5
9382 eval "ac_cv_lib_$ac_lib_var=no"
9385 LIBS="$ac_save_LIBS"
9388 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9389 echo "$ac_t""yes" 1>&6
9390 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9391 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9392 cat >> confdefs.h <<EOF
9393 #define $ac_tr_lib 1
9399 echo "$ac_t""no" 1>&6
9406 echo $ac_n "checking for select""... $ac_c" 1>&6
9407 echo "configure:9408: checking for select" >&5
9408 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
9409 echo $ac_n "(cached) $ac_c" 1>&6
9411 cat > conftest.$ac_ext <<EOF
9412 #line 9413 "configure"
9413 #include "confdefs.h"
9414 /* System header to define __stub macros and hopefully few prototypes,
9415 which can conflict with char select(); below. */
9417 /* Override any gcc2 internal prototype to avoid an error. */
9418 /* We use char because int might match the return type of a gcc2
9419 builtin and then its argument prototype would still apply. */
9425 /* The GNU C library defines this for functions which it implements
9426 to always fail with ENOSYS. Some functions are actually named
9427 something starting with __ and the normal name is an alias. */
9428 #if defined (__stub_select) || defined (__stub___select)
9436 if { (eval echo configure:9437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9438 eval "ac_cv_func_select=yes"
9440 echo "configure: failed program was:" >&5
9441 cat conftest.$ac_ext >&5
9443 eval "ac_cv_func_select=no"
9448 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
9449 echo "$ac_t""yes" 1>&6
9452 echo "$ac_t""no" 1>&6
9453 { echo "configure: error: select() required." 1>&2; exit 1; }
9457 if test "${ac_cv_header_winsock_h}" != yes; then
9458 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
9459 echo "configure:9460: checking types of arguments for select()" >&5
9460 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
9461 echo $ac_n "(cached) $ac_c" 1>&6
9463 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
9464 echo $ac_n "(cached) $ac_c" 1>&6
9466 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
9467 echo $ac_n "(cached) $ac_c" 1>&6
9469 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
9470 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
9471 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
9472 cat > conftest.$ac_ext <<EOF
9473 #line 9474 "configure"
9474 #include "confdefs.h"
9475 #ifdef HAVE_SYS_TYPES_H
9476 #include <sys/types.h>
9478 #ifdef HAVE_SYS_TIME_H
9479 #include <sys/time.h>
9481 #ifdef HAVE_SYS_SELECT_H
9482 #include <sys/select.h>
9484 #ifdef HAVE_SYS_SOCKET_H
9485 #include <sys/socket.h>
9487 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);
9492 if { (eval echo configure:9493: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9494 ac_not_found=no ; break 3
9496 echo "configure: failed program was:" >&5
9497 cat conftest.$ac_ext >&5
9511 if test "$ac_not_found" = yes; then
9512 ac_cv_func_select_arg1=int
9513 ac_cv_func_select_arg234='int *'
9514 ac_cv_func_select_arg5='struct timeval *'
9516 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
9517 cat >> confdefs.h <<EOF
9518 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
9521 cat >> confdefs.h <<EOF
9522 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
9525 cat >> confdefs.h <<EOF
9526 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
9533 for ac_hdr in regex.h
9535 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9536 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9537 echo "configure:9538: checking for $ac_hdr" >&5
9538 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9539 echo $ac_n "(cached) $ac_c" 1>&6
9541 cat > conftest.$ac_ext <<EOF
9542 #line 9543 "configure"
9543 #include "confdefs.h"
9546 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9547 { (eval echo configure:9548: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9548 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9549 if test -z "$ac_err"; then
9551 eval "ac_cv_header_$ac_safe=yes"
9554 echo "configure: failed program was:" >&5
9555 cat conftest.$ac_ext >&5
9557 eval "ac_cv_header_$ac_safe=no"
9561 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9562 echo "$ac_t""yes" 1>&6
9563 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9564 cat >> confdefs.h <<EOF
9565 #define $ac_tr_hdr 1
9569 echo "$ac_t""no" 1>&6
9573 if test "$ac_cv_header_regex_h" != yes ; then
9574 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
9577 echo $ac_n "checking for library containing regfree""... $ac_c" 1>&6
9578 echo "configure:9579: checking for library containing regfree" >&5
9579 if eval "test \"\${ac_cv_search_regfree+set}\" = set"; then
9580 echo $ac_n "(cached) $ac_c" 1>&6
9582 ac_func_search_save_LIBS="$LIBS"
9583 ac_cv_search_regfree="no"
9584 cat > conftest.$ac_ext <<EOF
9585 #line 9586 "configure"
9586 #include "confdefs.h"
9587 /* Override any gcc2 internal prototype to avoid an error. */
9588 /* We use char because int might match the return type of a gcc2
9589 builtin and then its argument prototype would still apply. */
9596 if { (eval echo configure:9597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9598 ac_cv_search_regfree="none required"
9600 echo "configure: failed program was:" >&5
9601 cat conftest.$ac_ext >&5
9604 test "$ac_cv_search_regfree" = "no" && for ac_lib in regex gnuregex; do
9605 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9606 cat > conftest.$ac_ext <<EOF
9607 #line 9608 "configure"
9608 #include "confdefs.h"
9609 /* Override any gcc2 internal prototype to avoid an error. */
9610 /* We use char because int might match the return type of a gcc2
9611 builtin and then its argument prototype would still apply. */
9618 if { (eval echo configure:9619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9620 ac_cv_search_regfree="-l$ac_lib"
9623 echo "configure: failed program was:" >&5
9624 cat conftest.$ac_ext >&5
9628 LIBS="$ac_func_search_save_LIBS"
9631 echo "$ac_t""$ac_cv_search_regfree" 1>&6
9632 if test "$ac_cv_search_regfree" != "no"; then
9633 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
9636 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
9640 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
9641 echo "configure:9642: checking for compatible POSIX regex" >&5
9642 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
9643 echo $ac_n "(cached) $ac_c" 1>&6
9646 if test "$cross_compiling" = yes; then
9647 ol_cv_c_posix_regex=cross
9649 cat > conftest.$ac_ext <<EOF
9650 #line 9651 "configure"
9651 #include "confdefs.h"
9653 #include <sys/types.h>
9655 static char *pattern, *string;
9663 if(regcomp(&re, pattern, 0)) {
9667 string = "ALL MATCH";
9669 rc = regexec(&re, string, 0, (void*)0, 0);
9676 if { (eval echo configure:9677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9678 ol_cv_c_posix_regex=yes
9680 echo "configure: failed program was:" >&5
9681 cat conftest.$ac_ext >&5
9683 ol_cv_c_posix_regex=no
9690 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
9692 if test "$ol_cv_c_posix_regex" = no ; then
9693 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
9696 echo $ac_n "checking to see if -lrpcrt4 is needed for win32 UUID support""... $ac_c" 1>&6
9697 echo "configure:9698: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
9699 LIBS="$LIBS -lrpcrt4"
9700 cat > conftest.$ac_ext <<EOF
9701 #line 9702 "configure"
9702 #include "confdefs.h"
9704 char UuidCreate@4();
9705 char UuidToStringA@8();
9714 if { (eval echo configure:9715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9718 echo "configure: failed program was:" >&5
9719 cat conftest.$ac_ext >&5
9724 if test $need_rpcrt = yes; then
9725 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
9728 echo "$ac_t""$need_rpcrt" 1>&6
9731 echo $ac_n "checking for res_query""... $ac_c" 1>&6
9732 echo "configure:9733: checking for res_query" >&5
9733 if eval "test \"\${ac_cv_func_res_query+set}\" = set"; then
9734 echo $ac_n "(cached) $ac_c" 1>&6
9736 cat > conftest.$ac_ext <<EOF
9737 #line 9738 "configure"
9738 #include "confdefs.h"
9739 /* System header to define __stub macros and hopefully few prototypes,
9740 which can conflict with char res_query(); below. */
9742 /* Override any gcc2 internal prototype to avoid an error. */
9743 /* We use char because int might match the return type of a gcc2
9744 builtin and then its argument prototype would still apply. */
9750 /* The GNU C library defines this for functions which it implements
9751 to always fail with ENOSYS. Some functions are actually named
9752 something starting with __ and the normal name is an alias. */
9753 #if defined (__stub_res_query) || defined (__stub___res_query)
9761 if { (eval echo configure:9762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9763 eval "ac_cv_func_res_query=yes"
9765 echo "configure: failed program was:" >&5
9766 cat conftest.$ac_ext >&5
9768 eval "ac_cv_func_res_query=no"
9773 if eval "test \"`echo '$ac_cv_func_'res_query`\" = yes"; then
9774 echo "$ac_t""yes" 1>&6
9777 echo "$ac_t""no" 1>&6
9780 if test $ac_cv_func_res_query = no ; then
9781 echo $ac_n "checking for __res_query""... $ac_c" 1>&6
9782 echo "configure:9783: checking for __res_query" >&5
9783 if eval "test \"\${ac_cv_func___res_query+set}\" = set"; then
9784 echo $ac_n "(cached) $ac_c" 1>&6
9786 cat > conftest.$ac_ext <<EOF
9787 #line 9788 "configure"
9788 #include "confdefs.h"
9789 /* System header to define __stub macros and hopefully few prototypes,
9790 which can conflict with char __res_query(); below. */
9792 /* Override any gcc2 internal prototype to avoid an error. */
9793 /* We use char because int might match the return type of a gcc2
9794 builtin and then its argument prototype would still apply. */
9800 /* The GNU C library defines this for functions which it implements
9801 to always fail with ENOSYS. Some functions are actually named
9802 something starting with __ and the normal name is an alias. */
9803 #if defined (__stub___res_query) || defined (__stub_____res_query)
9811 if { (eval echo configure:9812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9813 eval "ac_cv_func___res_query=yes"
9815 echo "configure: failed program was:" >&5
9816 cat conftest.$ac_ext >&5
9818 eval "ac_cv_func___res_query=no"
9823 if eval "test \"`echo '$ac_cv_func_'__res_query`\" = yes"; then
9824 echo "$ac_t""yes" 1>&6
9827 echo "$ac_t""no" 1>&6
9830 ac_cv_func_res_query=$ac_cv_func___res_query
9833 if test $ac_cv_func_res_query = no ; then
9834 echo $ac_n "checking for res_query in -lbind""... $ac_c" 1>&6
9835 echo "configure:9836: checking for res_query in -lbind" >&5
9836 ac_lib_var=`echo bind'_'res_query | sed 'y%./+-:%__p__%'`
9837 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9838 echo $ac_n "(cached) $ac_c" 1>&6
9840 ac_save_LIBS="$LIBS"
9842 cat > conftest.$ac_ext <<EOF
9843 #line 9844 "configure"
9844 #include "confdefs.h"
9845 /* Override any gcc2 internal prototype to avoid an error. */
9846 /* We use char because int might match the return type of a gcc2
9847 builtin and then its argument prototype would still apply. */
9854 if { (eval echo configure:9855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9856 eval "ac_cv_lib_$ac_lib_var=yes"
9858 echo "configure: failed program was:" >&5
9859 cat conftest.$ac_ext >&5
9861 eval "ac_cv_lib_$ac_lib_var=no"
9864 LIBS="$ac_save_LIBS"
9867 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9868 echo "$ac_t""yes" 1>&6
9869 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9870 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9871 cat >> confdefs.h <<EOF
9872 #define $ac_tr_lib 1
9878 echo "$ac_t""no" 1>&6
9881 ac_cv_func_res_query=$ac_cv_lib_bind_res_query
9884 if test $ac_cv_func_res_query = no ; then
9885 echo $ac_n "checking for __res_query in -lbind""... $ac_c" 1>&6
9886 echo "configure:9887: checking for __res_query in -lbind" >&5
9887 ac_lib_var=`echo bind'_'__res_query | sed 'y%./+-:%__p__%'`
9888 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9889 echo $ac_n "(cached) $ac_c" 1>&6
9891 ac_save_LIBS="$LIBS"
9893 cat > conftest.$ac_ext <<EOF
9894 #line 9895 "configure"
9895 #include "confdefs.h"
9896 /* Override any gcc2 internal prototype to avoid an error. */
9897 /* We use char because int might match the return type of a gcc2
9898 builtin and then its argument prototype would still apply. */
9905 if { (eval echo configure:9906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9907 eval "ac_cv_lib_$ac_lib_var=yes"
9909 echo "configure: failed program was:" >&5
9910 cat conftest.$ac_ext >&5
9912 eval "ac_cv_lib_$ac_lib_var=no"
9915 LIBS="$ac_save_LIBS"
9918 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9919 echo "$ac_t""yes" 1>&6
9920 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9921 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9922 cat >> confdefs.h <<EOF
9923 #define $ac_tr_lib 1
9929 echo "$ac_t""no" 1>&6
9932 ac_cv_func_res_query=$ac_cv_lib_bind___res_query
9935 if test $ac_cv_func_res_query = no ; then
9936 echo $ac_n "checking for res_query in -lresolv""... $ac_c" 1>&6
9937 echo "configure:9938: checking for res_query in -lresolv" >&5
9938 ac_lib_var=`echo resolv'_'res_query | sed 'y%./+-:%__p__%'`
9939 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9940 echo $ac_n "(cached) $ac_c" 1>&6
9942 ac_save_LIBS="$LIBS"
9943 LIBS="-lresolv $LIBS"
9944 cat > conftest.$ac_ext <<EOF
9945 #line 9946 "configure"
9946 #include "confdefs.h"
9947 /* Override any gcc2 internal prototype to avoid an error. */
9948 /* We use char because int might match the return type of a gcc2
9949 builtin and then its argument prototype would still apply. */
9956 if { (eval echo configure:9957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9958 eval "ac_cv_lib_$ac_lib_var=yes"
9960 echo "configure: failed program was:" >&5
9961 cat conftest.$ac_ext >&5
9963 eval "ac_cv_lib_$ac_lib_var=no"
9966 LIBS="$ac_save_LIBS"
9969 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9970 echo "$ac_t""yes" 1>&6
9971 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9972 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9973 cat >> confdefs.h <<EOF
9974 #define $ac_tr_lib 1
9977 LIBS="-lresolv $LIBS"
9980 echo "$ac_t""no" 1>&6
9983 ac_cv_func_res_query=$ac_cv_lib_resolv_res_query
9986 if test $ac_cv_func_res_query = no ; then
9987 echo $ac_n "checking for __res_query in -lresolv""... $ac_c" 1>&6
9988 echo "configure:9989: checking for __res_query in -lresolv" >&5
9989 ac_lib_var=`echo resolv'_'__res_query | sed 'y%./+-:%__p__%'`
9990 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9991 echo $ac_n "(cached) $ac_c" 1>&6
9993 ac_save_LIBS="$LIBS"
9994 LIBS="-lresolv $LIBS"
9995 cat > conftest.$ac_ext <<EOF
9996 #line 9997 "configure"
9997 #include "confdefs.h"
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();
10007 if { (eval echo configure:10008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10009 eval "ac_cv_lib_$ac_lib_var=yes"
10011 echo "configure: failed program was:" >&5
10012 cat conftest.$ac_ext >&5
10014 eval "ac_cv_lib_$ac_lib_var=no"
10017 LIBS="$ac_save_LIBS"
10020 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10021 echo "$ac_t""yes" 1>&6
10022 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10023 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10024 cat >> confdefs.h <<EOF
10025 #define $ac_tr_lib 1
10028 LIBS="-lresolv $LIBS"
10031 echo "$ac_t""no" 1>&6
10034 ac_cv_func_res_query=$ac_cv_lib_resolv___res_query
10037 if test "$ac_cv_func_res_query" = yes ; then
10038 cat >> confdefs.h <<\EOF
10039 #define HAVE_RES_QUERY 1
10043 if test $ol_enable_dnssrv != no ; then
10048 if test "$ol_enable_dnssrv" = yes -a "$ol_link_dnssrv" = no ; then
10049 { echo "configure: error: DNSSRV requires res_query()" 1>&2; exit 1; }
10052 for ac_func in getaddrinfo gai_strerror inet_ntop
10054 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10055 echo "configure:10056: checking for $ac_func" >&5
10056 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10057 echo $ac_n "(cached) $ac_c" 1>&6
10059 cat > conftest.$ac_ext <<EOF
10060 #line 10061 "configure"
10061 #include "confdefs.h"
10062 /* System header to define __stub macros and hopefully few prototypes,
10063 which can conflict with char $ac_func(); below. */
10064 #include <assert.h>
10065 /* Override any gcc2 internal prototype to avoid an error. */
10066 /* We use char because int might match the return type of a gcc2
10067 builtin and then its argument prototype would still apply. */
10073 /* The GNU C library defines this for functions which it implements
10074 to always fail with ENOSYS. Some functions are actually named
10075 something starting with __ and the normal name is an alias. */
10076 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10084 if { (eval echo configure:10085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10086 eval "ac_cv_func_$ac_func=yes"
10088 echo "configure: failed program was:" >&5
10089 cat conftest.$ac_ext >&5
10091 eval "ac_cv_func_$ac_func=no"
10096 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10097 echo "$ac_t""yes" 1>&6
10098 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10099 cat >> confdefs.h <<EOF
10100 #define $ac_tr_func 1
10104 echo "$ac_t""no" 1>&6
10110 if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then
10111 if test $ol_enable_ipv6 = yes ; then
10112 { echo "configure: error: IPv6 support requires getaddrinfo() and inet_ntop()" 1>&2; exit 1; }
10114 elif test $ol_enable_ipv6 != no ; then
10115 echo $ac_n "checking INET6_ADDRSTRLEN""... $ac_c" 1>&6
10116 echo "configure:10117: checking INET6_ADDRSTRLEN" >&5
10117 if eval "test \"\${ol_cv_inet6_addrstrlen+set}\" = set"; then
10118 echo $ac_n "(cached) $ac_c" 1>&6
10121 cat > conftest.$ac_ext <<EOF
10122 #line 10123 "configure"
10123 #include "confdefs.h"
10125 # include <netinet/in.h>
10126 # ifdef INET6_ADDRSTRLEN
10127 __has_inet6_addrstrlen__;
10131 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10132 egrep "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
10134 ol_cv_inet6_addrstrlen=yes
10137 ol_cv_inet6_addrstrlen=no
10143 echo "$ac_t""$ol_cv_inet6_addrstrlen" 1>&6
10145 if test $ol_cv_inet6_addrstrlen = yes ; then
10147 elif test $ol_enable_ipv6 = yes ; then
10148 { echo "configure: error: IPv6 support requires INET6_ADDRSTRLEN" 1>&2; exit 1; }
10152 if test $ol_enable_local != no ; then
10153 for ac_hdr in sys/un.h
10155 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10156 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10157 echo "configure:10158: checking for $ac_hdr" >&5
10158 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10159 echo $ac_n "(cached) $ac_c" 1>&6
10161 cat > conftest.$ac_ext <<EOF
10162 #line 10163 "configure"
10163 #include "confdefs.h"
10166 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10167 { (eval echo configure:10168: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10168 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10169 if test -z "$ac_err"; then
10171 eval "ac_cv_header_$ac_safe=yes"
10174 echo "configure: failed program was:" >&5
10175 cat conftest.$ac_ext >&5
10177 eval "ac_cv_header_$ac_safe=no"
10181 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10182 echo "$ac_t""yes" 1>&6
10183 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10184 cat >> confdefs.h <<EOF
10185 #define $ac_tr_hdr 1
10189 echo "$ac_t""no" 1>&6
10194 if test $ol_enable_local = auto ; then
10195 ol_enable_local=$ac_cv_header_sys_un_h
10196 elif test $ac_cv_header_sys_un_h = no ; then
10197 { echo "configure: error: AF_LOCAL domain support requires sys/un.h" 1>&2; exit 1; }
10206 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
10207 -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
10208 -o $ol_with_kerberos = k425 ; then
10210 for ac_hdr in krb5.h
10212 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10213 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10214 echo "configure:10215: checking for $ac_hdr" >&5
10215 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10216 echo $ac_n "(cached) $ac_c" 1>&6
10218 cat > conftest.$ac_ext <<EOF
10219 #line 10220 "configure"
10220 #include "confdefs.h"
10223 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10224 { (eval echo configure:10225: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10225 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10226 if test -z "$ac_err"; then
10228 eval "ac_cv_header_$ac_safe=yes"
10231 echo "configure: failed program was:" >&5
10232 cat conftest.$ac_ext >&5
10234 eval "ac_cv_header_$ac_safe=no"
10238 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10239 echo "$ac_t""yes" 1>&6
10240 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10241 cat >> confdefs.h <<EOF
10242 #define $ac_tr_hdr 1
10246 echo "$ac_t""no" 1>&6
10251 if test $ac_cv_header_krb5_h = yes ; then
10252 for ac_hdr in heim_err.h
10254 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10255 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10256 echo "configure:10257: checking for $ac_hdr" >&5
10257 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10258 echo $ac_n "(cached) $ac_c" 1>&6
10260 cat > conftest.$ac_ext <<EOF
10261 #line 10262 "configure"
10262 #include "confdefs.h"
10265 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10266 { (eval echo configure:10267: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10267 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10268 if test -z "$ac_err"; then
10270 eval "ac_cv_header_$ac_safe=yes"
10273 echo "configure: failed program was:" >&5
10274 cat conftest.$ac_ext >&5
10276 eval "ac_cv_header_$ac_safe=no"
10280 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10281 echo "$ac_t""yes" 1>&6
10282 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10283 cat >> confdefs.h <<EOF
10284 #define $ac_tr_hdr 1
10288 echo "$ac_t""no" 1>&6
10292 if test $ac_cv_header_heim_err_h = yes ; then
10298 if test $krb5_impl = mit; then
10299 echo $ac_n "checking for main in -lk5crypto""... $ac_c" 1>&6
10300 echo "configure:10301: checking for main in -lk5crypto" >&5
10301 ac_lib_var=`echo k5crypto'_'main | sed 'y%./+-:%__p__%'`
10302 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10303 echo $ac_n "(cached) $ac_c" 1>&6
10305 ac_save_LIBS="$LIBS"
10306 LIBS="-lk5crypto $LIBS"
10307 cat > conftest.$ac_ext <<EOF
10308 #line 10309 "configure"
10309 #include "confdefs.h"
10315 if { (eval echo configure:10316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10317 eval "ac_cv_lib_$ac_lib_var=yes"
10319 echo "configure: failed program was:" >&5
10320 cat conftest.$ac_ext >&5
10322 eval "ac_cv_lib_$ac_lib_var=no"
10325 LIBS="$ac_save_LIBS"
10328 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10329 echo "$ac_t""yes" 1>&6
10330 krb5crypto=k5crypto
10332 echo "$ac_t""no" 1>&6
10337 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
10338 echo "configure:10339: checking for main in -lkrb5" >&5
10339 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
10340 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10341 echo $ac_n "(cached) $ac_c" 1>&6
10343 ac_save_LIBS="$LIBS"
10344 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
10345 cat > conftest.$ac_ext <<EOF
10346 #line 10347 "configure"
10347 #include "confdefs.h"
10353 if { (eval echo configure:10354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10355 eval "ac_cv_lib_$ac_lib_var=yes"
10357 echo "configure: failed program was:" >&5
10358 cat conftest.$ac_ext >&5
10360 eval "ac_cv_lib_$ac_lib_var=no"
10363 LIBS="$ac_save_LIBS"
10366 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10367 echo "$ac_t""yes" 1>&6
10369 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
10371 echo "$ac_t""no" 1>&6
10376 elif test $krb5_impl = heimdal; then
10377 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
10378 echo "configure:10379: checking for main in -lkrb5" >&5
10379 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
10380 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10381 echo $ac_n "(cached) $ac_c" 1>&6
10383 ac_save_LIBS="$LIBS"
10384 LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
10385 cat > conftest.$ac_ext <<EOF
10386 #line 10387 "configure"
10387 #include "confdefs.h"
10393 if { (eval echo configure:10394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10395 eval "ac_cv_lib_$ac_lib_var=yes"
10397 echo "configure: failed program was:" >&5
10398 cat conftest.$ac_ext >&5
10400 eval "ac_cv_lib_$ac_lib_var=no"
10403 LIBS="$ac_save_LIBS"
10406 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10407 echo "$ac_t""yes" 1>&6
10409 KRB5_LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err"
10411 echo "$ac_t""no" 1>&6
10416 cat >> confdefs.h <<\EOF
10417 #define HAVE_HEIMDAL_KERBEROS 1
10423 echo "configure: warning: Unrecongized Kerberos5 Implementation" 1>&2
10426 if test $have_krb5 = yes ; then
10429 cat >> confdefs.h <<\EOF
10430 #define HAVE_KRB5 1
10434 if test $ol_enable_kpasswd != no ; then
10435 ol_link_kpasswd=yes;
10438 if test $ol_with_kerberos = k5only ; then
10439 ol_with_kerberos=found
10442 elif test $ol_with_kerberos != auto ; then
10443 { echo "configure: error: Required Kerberos 5 support not available" 1>&2; exit 1; }
10449 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
10450 $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
10452 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
10454 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10455 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10456 echo "configure:10457: checking for $ac_hdr" >&5
10457 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10458 echo $ac_n "(cached) $ac_c" 1>&6
10460 cat > conftest.$ac_ext <<EOF
10461 #line 10462 "configure"
10462 #include "confdefs.h"
10465 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10466 { (eval echo configure:10467: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10467 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10468 if test -z "$ac_err"; then
10470 eval "ac_cv_header_$ac_safe=yes"
10473 echo "configure: failed program was:" >&5
10474 cat conftest.$ac_ext >&5
10476 eval "ac_cv_header_$ac_safe=no"
10480 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10481 echo "$ac_t""yes" 1>&6
10482 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10483 cat >> confdefs.h <<EOF
10484 #define $ac_tr_hdr 1
10488 echo "$ac_t""no" 1>&6
10493 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
10494 if test $krb5_impl = mit; then
10495 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
10496 echo "configure:10497: checking for main in -lkrb4" >&5
10497 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
10498 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10499 echo $ac_n "(cached) $ac_c" 1>&6
10501 ac_save_LIBS="$LIBS"
10502 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
10503 cat > conftest.$ac_ext <<EOF
10504 #line 10505 "configure"
10505 #include "confdefs.h"
10511 if { (eval echo configure:10512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10513 eval "ac_cv_lib_$ac_lib_var=yes"
10515 echo "configure: failed program was:" >&5
10516 cat conftest.$ac_ext >&5
10518 eval "ac_cv_lib_$ac_lib_var=no"
10521 LIBS="$ac_save_LIBS"
10524 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10525 echo "$ac_t""yes" 1>&6
10527 KRB4_LIBS="-lkrb4 -ldes425"
10529 echo "$ac_t""no" 1>&6
10534 elif test $krb5_impl = heimdal; then
10535 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
10536 echo "configure:10537: checking for main in -lkrb4" >&5
10537 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
10538 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10539 echo $ac_n "(cached) $ac_c" 1>&6
10541 ac_save_LIBS="$LIBS"
10542 LIBS="-lkrb4 -lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
10543 cat > conftest.$ac_ext <<EOF
10544 #line 10545 "configure"
10545 #include "confdefs.h"
10551 if { (eval echo configure:10552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10553 eval "ac_cv_lib_$ac_lib_var=yes"
10555 echo "configure: failed program was:" >&5
10556 cat conftest.$ac_ext >&5
10558 eval "ac_cv_lib_$ac_lib_var=no"
10561 LIBS="$ac_save_LIBS"
10564 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10565 echo "$ac_t""yes" 1>&6
10569 echo "$ac_t""no" 1>&6
10576 echo "configure: warning: Unrecongized Kerberos V Implementation" 1>&2
10579 if test $have_k425 = yes ; then
10580 ol_with_kerberos=found
10583 cat >> confdefs.h <<\EOF
10584 #define HAVE_KRB425 1
10587 cat >> confdefs.h <<\EOF
10588 #define HAVE_KRB4 1
10592 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
10593 echo "configure:10594: checking for des_debug in Kerberos libraries" >&5
10594 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
10595 echo $ac_n "(cached) $ac_c" 1>&6
10599 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
10600 cat > conftest.$ac_ext <<EOF
10601 #line 10602 "configure"
10602 #include "confdefs.h"
10604 #include <kerberosIV/krb.h>
10605 #include <kerberosIV/des.h>
10606 extern int des_debug;
10614 if { (eval echo configure:10615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10616 ol_cv_var_des_debug=yes
10618 echo "configure: failed program was:" >&5
10619 cat conftest.$ac_ext >&5
10621 ol_cv_var_des_debug=no
10628 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
10630 if test $ol_cv_var_des_debug = yes ; then
10631 cat >> confdefs.h <<\EOF
10632 #define HAVE_DES_DEBUG 1
10642 if test $ol_link_krb5 = yes ; then
10643 ol_with_kerberos=found
10646 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
10647 -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
10649 for ac_hdr in krb.h des.h krb-archaeology.h
10651 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10652 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10653 echo "configure:10654: checking for $ac_hdr" >&5
10654 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10655 echo $ac_n "(cached) $ac_c" 1>&6
10657 cat > conftest.$ac_ext <<EOF
10658 #line 10659 "configure"
10659 #include "confdefs.h"
10662 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10663 { (eval echo configure:10664: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10664 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10665 if test -z "$ac_err"; then
10667 eval "ac_cv_header_$ac_safe=yes"
10670 echo "configure: failed program was:" >&5
10671 cat conftest.$ac_ext >&5
10673 eval "ac_cv_header_$ac_safe=no"
10677 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10678 echo "$ac_t""yes" 1>&6
10679 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10680 cat >> confdefs.h <<EOF
10681 #define $ac_tr_hdr 1
10685 echo "$ac_t""no" 1>&6
10690 if test $ac_cv_header_krb_h = yes ; then
10691 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
10692 echo "configure:10693: checking for main in -lkrb" >&5
10693 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
10694 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10695 echo $ac_n "(cached) $ac_c" 1>&6
10697 ac_save_LIBS="$LIBS"
10698 LIBS="-lkrb -ldes $LIBS"
10699 cat > conftest.$ac_ext <<EOF
10700 #line 10701 "configure"
10701 #include "confdefs.h"
10707 if { (eval echo configure:10708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10709 eval "ac_cv_lib_$ac_lib_var=yes"
10711 echo "configure: failed program was:" >&5
10712 cat conftest.$ac_ext >&5
10714 eval "ac_cv_lib_$ac_lib_var=no"
10717 LIBS="$ac_save_LIBS"
10720 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10721 echo "$ac_t""yes" 1>&6
10724 echo "$ac_t""no" 1>&6
10729 if test $have_k4 = yes ; then
10730 ol_with_kerberos=found
10733 cat >> confdefs.h <<\EOF
10734 #define HAVE_KRB4 1
10738 KRB4_LIBS="-lkrb -ldes"
10740 if test $ac_cv_header_krb_archaeology_h = yes ; then
10741 cat >> confdefs.h <<\EOF
10742 #define HAVE_KTH_KERBEROS 1
10750 if test $ol_link_krb4 = yes -a $ol_enable_kpasswd != no ; then
10751 ol_link_kpasswd=yes
10754 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
10757 elif test $ol_enable_kbind = yes ; then
10758 { echo "configure: error: Kerberos IV detection failed" 1>&2; exit 1; }
10761 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
10762 cat >> confdefs.h <<\EOF
10763 #define HAVE_KERBEROS 1
10767 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
10768 { echo "configure: error: Kerberos detection failed" 1>&2; exit 1; }
10772 if test $ol_with_tls != no ; then
10773 for ac_hdr in openssl/ssl.h ssl.h
10775 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10776 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10777 echo "configure:10778: checking for $ac_hdr" >&5
10778 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10779 echo $ac_n "(cached) $ac_c" 1>&6
10781 cat > conftest.$ac_ext <<EOF
10782 #line 10783 "configure"
10783 #include "confdefs.h"
10786 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10787 { (eval echo configure:10788: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10788 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10789 if test -z "$ac_err"; then
10791 eval "ac_cv_header_$ac_safe=yes"
10794 echo "configure: failed program was:" >&5
10795 cat conftest.$ac_ext >&5
10797 eval "ac_cv_header_$ac_safe=no"
10801 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10802 echo "$ac_t""yes" 1>&6
10803 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10804 cat >> confdefs.h <<EOF
10805 #define $ac_tr_hdr 1
10809 echo "$ac_t""no" 1>&6
10814 if test $ac_cv_header_openssl_ssl_h = yes -o $ac_cv_header_ssl_h = yes ; then
10815 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
10816 echo "configure:10817: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
10817 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
10818 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10819 echo $ac_n "(cached) $ac_c" 1>&6
10821 ac_save_LIBS="$LIBS"
10822 LIBS="-lssl -lcrypto $LIBS"
10823 cat > conftest.$ac_ext <<EOF
10824 #line 10825 "configure"
10825 #include "confdefs.h"
10826 /* Override any gcc2 internal prototype to avoid an error. */
10827 /* We use char because int might match the return type of a gcc2
10828 builtin and then its argument prototype would still apply. */
10829 char SSLeay_add_ssl_algorithms();
10832 SSLeay_add_ssl_algorithms()
10835 if { (eval echo configure:10836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10837 eval "ac_cv_lib_$ac_lib_var=yes"
10839 echo "configure: failed program was:" >&5
10840 cat conftest.$ac_ext >&5
10842 eval "ac_cv_lib_$ac_lib_var=no"
10845 LIBS="$ac_save_LIBS"
10848 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10849 echo "$ac_t""yes" 1>&6
10853 echo "$ac_t""no" 1>&6
10858 if test $have_ssleay = no ; then
10859 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
10860 echo "configure:10861: checking for SSL_library_init in -lssl" >&5
10861 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
10862 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10863 echo $ac_n "(cached) $ac_c" 1>&6
10865 ac_save_LIBS="$LIBS"
10866 LIBS="-lssl -lcrypto $LIBS"
10867 cat > conftest.$ac_ext <<EOF
10868 #line 10869 "configure"
10869 #include "confdefs.h"
10870 /* Override any gcc2 internal prototype to avoid an error. */
10871 /* We use char because int might match the return type of a gcc2
10872 builtin and then its argument prototype would still apply. */
10873 char SSL_library_init();
10879 if { (eval echo configure:10880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10881 eval "ac_cv_lib_$ac_lib_var=yes"
10883 echo "configure: failed program was:" >&5
10884 cat conftest.$ac_ext >&5
10886 eval "ac_cv_lib_$ac_lib_var=no"
10889 LIBS="$ac_save_LIBS"
10892 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10893 echo "$ac_t""yes" 1>&6
10897 echo "$ac_t""no" 1>&6
10903 if test $have_ssleay = no ; then
10904 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
10905 echo "configure:10906: checking for ssl3_accept in -lssl" >&5
10906 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
10907 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10908 echo $ac_n "(cached) $ac_c" 1>&6
10910 ac_save_LIBS="$LIBS"
10911 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
10912 cat > conftest.$ac_ext <<EOF
10913 #line 10914 "configure"
10914 #include "confdefs.h"
10915 /* Override any gcc2 internal prototype to avoid an error. */
10916 /* We use char because int might match the return type of a gcc2
10917 builtin and then its argument prototype would still apply. */
10918 char ssl3_accept();
10924 if { (eval echo configure:10925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10926 eval "ac_cv_lib_$ac_lib_var=yes"
10928 echo "configure: failed program was:" >&5
10929 cat conftest.$ac_ext >&5
10931 eval "ac_cv_lib_$ac_lib_var=no"
10934 LIBS="$ac_save_LIBS"
10937 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10938 echo "$ac_t""yes" 1>&6
10942 echo "$ac_t""no" 1>&6
10948 if test $have_ssleay = yes ; then
10952 cat >> confdefs.h <<\EOF
10953 #define HAVE_SSLEAY 1
10957 if test $need_rsaref = yes; then
10958 cat >> confdefs.h <<\EOF
10959 #define HAVE_RSAREF 1
10963 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
10965 TLS_LIBS="-lssl -lcrypto"
10971 echo "configure: warning: TLS privacy protection not supported!" 1>&2
10974 if test $ol_link_tls = yes ; then
10975 cat >> confdefs.h <<\EOF
10980 elif test $ol_with_tls = auto ; then
10981 echo "configure: warning: Could not locate TLS/SSL package" 1>&2
10982 echo "configure: warning: TLS privacy protection not supported!" 1>&2
10984 elif test $ol_with_tls != no ; then
10985 { echo "configure: error: Could not locate TLS/SSL package" 1>&2; exit 1; }
10988 if test $ol_enable_lmpasswd != no; then
10989 if test $ol_link_tls != yes ; then
10990 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
10993 cat >> confdefs.h <<\EOF
10994 #define SLAPD_LMHASH 1
11001 gethostbyname_r gethostbyaddr_r \
11004 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11005 echo "configure:11006: checking for $ac_func" >&5
11006 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11007 echo $ac_n "(cached) $ac_c" 1>&6
11009 cat > conftest.$ac_ext <<EOF
11010 #line 11011 "configure"
11011 #include "confdefs.h"
11012 /* System header to define __stub macros and hopefully few prototypes,
11013 which can conflict with char $ac_func(); below. */
11014 #include <assert.h>
11015 /* Override any gcc2 internal prototype to avoid an error. */
11016 /* We use char because int might match the return type of a gcc2
11017 builtin and then its argument prototype would still apply. */
11023 /* The GNU C library defines this for functions which it implements
11024 to always fail with ENOSYS. Some functions are actually named
11025 something starting with __ and the normal name is an alias. */
11026 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11034 if { (eval echo configure:11035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11036 eval "ac_cv_func_$ac_func=yes"
11038 echo "configure: failed program was:" >&5
11039 cat conftest.$ac_ext >&5
11041 eval "ac_cv_func_$ac_func=no"
11046 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11047 echo "$ac_t""yes" 1>&6
11048 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11049 cat >> confdefs.h <<EOF
11050 #define $ac_tr_func 1
11054 echo "$ac_t""no" 1>&6
11059 if test "$ac_cv_func_ctime_r" = no ; then
11060 ol_cv_func_ctime_r_nargs=0
11062 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
11063 echo "configure:11064: checking number of arguments of ctime_r" >&5
11064 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
11065 echo $ac_n "(cached) $ac_c" 1>&6
11067 cat > conftest.$ac_ext <<EOF
11068 #line 11069 "configure"
11069 #include "confdefs.h"
11072 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
11075 if { (eval echo configure:11076: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11077 ol_cv_func_ctime_r_nargs3=yes
11079 echo "configure: failed program was:" >&5
11080 cat conftest.$ac_ext >&5
11082 ol_cv_func_ctime_r_nargs3=no
11086 cat > conftest.$ac_ext <<EOF
11087 #line 11088 "configure"
11088 #include "confdefs.h"
11091 time_t ti; char *buffer; ctime_r(&ti,buffer);
11094 if { (eval echo configure:11095: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11096 ol_cv_func_ctime_r_nargs2=yes
11098 echo "configure: failed program was:" >&5
11099 cat conftest.$ac_ext >&5
11101 ol_cv_func_ctime_r_nargs2=no
11105 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
11106 $ol_cv_func_ctime_r_nargs2 = no ; then
11108 ol_cv_func_ctime_r_nargs=3
11110 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
11111 $ol_cv_func_ctime_r_nargs2 = yes ; then
11113 ol_cv_func_ctime_r_nargs=2
11116 ol_cv_func_ctime_r_nargs=0
11121 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
11123 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
11124 cat >> confdefs.h <<EOF
11125 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
11132 if test "$ac_cv_func_gethostbyname_r" = yes ; then
11133 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
11134 echo "configure:11135: checking number of arguments of gethostbyname_r" >&5
11135 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
11136 echo $ac_n "(cached) $ac_c" 1>&6
11138 cat > conftest.$ac_ext <<EOF
11139 #line 11140 "configure"
11140 #include "confdefs.h"
11141 #include <sys/types.h>
11142 #include <sys/socket.h>
11143 #include <netinet/in.h>
11145 #define BUFSIZE (sizeof(struct hostent)+10)
11147 struct hostent hent; char buffer[BUFSIZE];
11148 int bufsize=BUFSIZE;int h_errno;
11149 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
11150 buffer, bufsize, &h_errno);
11153 if { (eval echo configure:11154: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11155 ol_cv_func_gethostbyname_r_nargs5=yes
11157 echo "configure: failed program was:" >&5
11158 cat conftest.$ac_ext >&5
11160 ol_cv_func_gethostbyname_r_nargs5=no
11164 cat > conftest.$ac_ext <<EOF
11165 #line 11166 "configure"
11166 #include "confdefs.h"
11167 #include <sys/types.h>
11168 #include <sys/socket.h>
11169 #include <netinet/in.h>
11171 #define BUFSIZE (sizeof(struct hostent)+10)
11173 struct hostent hent;struct hostent *rhent;
11174 char buffer[BUFSIZE];
11175 int bufsize=BUFSIZE;int h_errno;
11176 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
11180 if { (eval echo configure:11181: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11182 ol_cv_func_gethostbyname_r_nargs6=yes
11184 echo "configure: failed program was:" >&5
11185 cat conftest.$ac_ext >&5
11187 ol_cv_func_gethostbyname_r_nargs6=no
11191 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
11192 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
11194 ol_cv_func_gethostbyname_r_nargs=5
11196 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
11197 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
11199 ol_cv_func_gethostbyname_r_nargs=6
11202 ol_cv_func_gethostbyname_r_nargs=0
11207 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
11208 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
11209 cat >> confdefs.h <<EOF
11210 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
11216 ol_cv_func_gethostbyname_r_nargs=0
11219 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
11220 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
11221 echo "configure:11222: checking number of arguments of gethostbyaddr_r" >&5
11222 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
11223 echo $ac_n "(cached) $ac_c" 1>&6
11225 cat > conftest.$ac_ext <<EOF
11226 #line 11227 "configure"
11227 #include "confdefs.h"
11228 #include <sys/types.h>
11229 #include <sys/socket.h>
11230 #include <netinet/in.h>
11232 #define BUFSIZE (sizeof(struct hostent)+10)
11234 struct hostent hent; char buffer[BUFSIZE];
11235 struct in_addr add;
11236 size_t alen=sizeof(struct in_addr);
11237 int bufsize=BUFSIZE;int h_errno;
11238 (void)gethostbyaddr_r( (void *)&(add.s_addr),
11239 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
11242 if { (eval echo configure:11243: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11244 ol_cv_func_gethostbyaddr_r_nargs7=yes
11246 echo "configure: failed program was:" >&5
11247 cat conftest.$ac_ext >&5
11249 ol_cv_func_gethostbyaddr_r_nargs7=no
11253 cat > conftest.$ac_ext <<EOF
11254 #line 11255 "configure"
11255 #include "confdefs.h"
11256 #include <sys/types.h>
11257 #include <sys/socket.h>
11258 #include <netinet/in.h>
11260 #define BUFSIZE (sizeof(struct hostent)+10)
11262 struct hostent hent;
11263 struct hostent *rhent; char buffer[BUFSIZE];
11264 struct in_addr add;
11265 size_t alen=sizeof(struct in_addr);
11266 int bufsize=BUFSIZE;int h_errno;
11267 (void)gethostbyaddr_r( (void *)&(add.s_addr),
11268 alen, AF_INET, &hent, buffer, bufsize,
11272 if { (eval echo configure:11273: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11274 ol_cv_func_gethostbyaddr_r_nargs8=yes
11276 echo "configure: failed program was:" >&5
11277 cat conftest.$ac_ext >&5
11279 ol_cv_func_gethostbyaddr_r_nargs8=no
11283 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
11284 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
11286 ol_cv_func_gethostbyaddr_r_nargs=7
11288 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
11289 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
11291 ol_cv_func_gethostbyaddr_r_nargs=8
11294 ol_cv_func_gethostbyaddr_r_nargs=0
11299 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
11300 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
11301 cat >> confdefs.h <<EOF
11302 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
11308 ol_cv_func_gethostbyaddr_r_nargs=0
11311 if test "$ac_cv_func_ctime_r" = yes \
11312 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
11313 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
11314 -a "$ac_cv_func_gethostbyname_r" = yes \
11315 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
11316 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
11317 -a "$ac_cv_func_gethostbyaddr_r" = yes \
11318 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
11319 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
11322 cat >> confdefs.h <<\EOF
11323 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
11330 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11331 -o $ol_with_threads = nt ; then
11334 echo $ac_n "checking for _beginthread""... $ac_c" 1>&6
11335 echo "configure:11336: checking for _beginthread" >&5
11336 if eval "test \"\${ac_cv_func__beginthread+set}\" = set"; then
11337 echo $ac_n "(cached) $ac_c" 1>&6
11339 cat > conftest.$ac_ext <<EOF
11340 #line 11341 "configure"
11341 #include "confdefs.h"
11342 /* System header to define __stub macros and hopefully few prototypes,
11343 which can conflict with char _beginthread(); below. */
11344 #include <assert.h>
11345 /* Override any gcc2 internal prototype to avoid an error. */
11346 /* We use char because int might match the return type of a gcc2
11347 builtin and then its argument prototype would still apply. */
11348 char _beginthread();
11353 /* The GNU C library defines this for functions which it implements
11354 to always fail with ENOSYS. Some functions are actually named
11355 something starting with __ and the normal name is an alias. */
11356 #if defined (__stub__beginthread) || defined (__stub____beginthread)
11364 if { (eval echo configure:11365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11366 eval "ac_cv_func__beginthread=yes"
11368 echo "configure: failed program was:" >&5
11369 cat conftest.$ac_ext >&5
11371 eval "ac_cv_func__beginthread=no"
11376 if eval "test \"`echo '$ac_cv_func_'_beginthread`\" = yes"; then
11377 echo "$ac_t""yes" 1>&6
11380 echo "$ac_t""no" 1>&6
11384 if test $ac_cv_func__beginthread = yes ; then
11385 cat >> confdefs.h <<\EOF
11386 #define HAVE_NT_THREADS 1
11389 ol_cv_nt_threads=yes
11393 if test "$ol_cv_nt_threads" = yes ; then
11395 ol_with_threads=found
11396 ol_with_yielding_select=yes
11398 cat >> confdefs.h <<\EOF
11399 #define HAVE_NT_SERVICE_MANAGER 1
11402 cat >> confdefs.h <<\EOF
11403 #define HAVE_NT_EVENT_LOG 1
11408 if test $ol_with_threads = nt ; then
11409 { echo "configure: error: could not locate NT Threads" 1>&2; exit 1; }
11413 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11414 -o $ol_with_threads = posix ; then
11416 for ac_hdr in pthread.h
11418 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11419 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11420 echo "configure:11421: checking for $ac_hdr" >&5
11421 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11422 echo $ac_n "(cached) $ac_c" 1>&6
11424 cat > conftest.$ac_ext <<EOF
11425 #line 11426 "configure"
11426 #include "confdefs.h"
11429 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11430 { (eval echo configure:11431: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11431 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11432 if test -z "$ac_err"; then
11434 eval "ac_cv_header_$ac_safe=yes"
11437 echo "configure: failed program was:" >&5
11438 cat conftest.$ac_ext >&5
11440 eval "ac_cv_header_$ac_safe=no"
11444 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11445 echo "$ac_t""yes" 1>&6
11446 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11447 cat >> confdefs.h <<EOF
11448 #define $ac_tr_hdr 1
11452 echo "$ac_t""no" 1>&6
11457 if test $ac_cv_header_pthread_h = yes ; then
11458 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
11459 echo "configure:11460: checking POSIX thread version" >&5
11460 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
11461 echo $ac_n "(cached) $ac_c" 1>&6
11464 cat > conftest.$ac_ext <<EOF
11465 #line 11466 "configure"
11466 #include "confdefs.h"
11468 # include <pthread.h>
11469 /* this check could be improved */
11470 # ifdef PTHREAD_ONCE_INIT
11471 pthread_version_final;
11475 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11476 egrep "pthread_version_final" >/dev/null 2>&1; then
11478 ol_pthread_final=yes
11481 ol_pthread_final=no
11486 cat > conftest.$ac_ext <<EOF
11487 #line 11488 "configure"
11488 #include "confdefs.h"
11490 # include <pthread.h>
11491 /* this check could be improved */
11492 # ifdef pthread_once_init
11493 pthread_version_draft4;
11497 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11498 egrep "pthread_version_draft4" >/dev/null 2>&1; then
11500 ol_pthread_draft4=yes
11503 ol_pthread_draft4=no
11508 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
11509 ol_cv_pthread_version=final
11510 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
11511 ol_cv_pthread_version=draft4
11513 ol_cv_pthread_version=unknown
11518 echo "$ac_t""$ol_cv_pthread_version" 1>&6
11521 if test $ol_cv_pthread_version = final ; then
11522 cat >> confdefs.h <<\EOF
11523 #define HAVE_PTHREADS_FINAL 1
11526 elif test $ol_cv_pthread_version = draft4 ; then
11527 cat >> confdefs.h <<\EOF
11528 #define HAVE_PTHREADS_D4 1
11532 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
11535 # consider threads found
11536 ol_with_threads=found
11539 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
11540 echo "configure:11541: checking for LinuxThreads pthread.h" >&5
11541 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
11542 echo $ac_n "(cached) $ac_c" 1>&6
11544 cat > conftest.$ac_ext <<EOF
11545 #line 11546 "configure"
11546 #include "confdefs.h"
11547 #include <pthread.h>
11549 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11550 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
11552 ol_cv_header_linux_threads=yes
11555 ol_cv_header_linux_threads=no
11562 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
11563 if test $ol_cv_header_linux_threads = yes; then
11564 cat >> confdefs.h <<\EOF
11565 #define HAVE_LINUX_THREADS 1
11571 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
11572 echo "configure:11573: checking for GNU Pth pthread.h" >&5
11573 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
11574 echo $ac_n "(cached) $ac_c" 1>&6
11576 cat > conftest.$ac_ext <<EOF
11577 #line 11578 "configure"
11578 #include "confdefs.h"
11579 #include <pthread.h>
11580 #ifdef _POSIX_THREAD_IS_GNU_PTH
11585 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11586 egrep "__gnu_pth__" >/dev/null 2>&1; then
11588 ol_cv_header_gnu_pth_pthread_h=yes
11591 ol_cv_header_gnu_pth_pthread_h=no
11598 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
11601 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
11602 for ac_hdr in sched.h
11604 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11605 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11606 echo "configure:11607: checking for $ac_hdr" >&5
11607 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11608 echo $ac_n "(cached) $ac_c" 1>&6
11610 cat > conftest.$ac_ext <<EOF
11611 #line 11612 "configure"
11612 #include "confdefs.h"
11615 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11616 { (eval echo configure:11617: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11617 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11618 if test -z "$ac_err"; then
11620 eval "ac_cv_header_$ac_safe=yes"
11623 echo "configure: failed program was:" >&5
11624 cat conftest.$ac_ext >&5
11626 eval "ac_cv_header_$ac_safe=no"
11630 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11631 echo "$ac_t""yes" 1>&6
11632 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11633 cat >> confdefs.h <<EOF
11634 #define $ac_tr_hdr 1
11638 echo "$ac_t""no" 1>&6
11645 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
11646 echo "configure:11647: checking for pthread_create in default libraries" >&5
11647 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
11648 echo $ac_n "(cached) $ac_c" 1>&6
11651 if test "$cross_compiling" = yes; then
11652 cat > conftest.$ac_ext <<EOF
11653 #line 11654 "configure"
11654 #include "confdefs.h"
11655 /* pthread test headers */
11656 #include <pthread.h>
11658 #define NULL (void*)0
11661 static void *task(p)
11664 return (void *) (p == NULL);
11669 /* pthread test function */
11674 #ifdef HAVE_PTHREADS_FINAL
11675 /* Final pthreads */
11676 pthread_attr_t attr;
11678 status = pthread_attr_init(&attr);
11679 if( status ) return status;
11681 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
11683 #if defined( PTHREAD_CREATE_JOINABLE )
11684 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
11686 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
11689 #ifdef PTHREAD_CREATE_DETACHED
11691 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
11694 if( status ) return status;
11697 status = pthread_create( &t, &attr, task, NULL );
11698 if( status ) return status;
11700 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
11702 /* give thread a chance to complete */
11703 /* it should remain joinable and hence detachable */
11706 status = pthread_detach( t );
11707 if( status ) return status;
11712 /* Draft 4 pthreads */
11713 status = pthread_create( &t, pthread_attr_default, task, NULL );
11714 if( status ) return status;
11717 /* give thread a chance to complete */
11718 /* it should remain joinable and hence detachable */
11721 status = pthread_detach( &t );
11722 if( status ) return status;
11726 #ifdef HAVE_LINUX_THREADS
11727 pthread_kill_other_threads_np();
11734 if { (eval echo configure:11735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11736 ol_cv_pthread_create=yes
11738 echo "configure: failed program was:" >&5
11739 cat conftest.$ac_ext >&5
11741 ol_cv_pthread_create=no
11745 cat > conftest.$ac_ext <<EOF
11746 #line 11747 "configure"
11747 #include "confdefs.h"
11748 /* pthread test headers */
11749 #include <pthread.h>
11751 #define NULL (void*)0
11754 static void *task(p)
11757 return (void *) (p == NULL);
11761 int main(argc, argv)
11766 /* pthread test function */
11771 #ifdef HAVE_PTHREADS_FINAL
11772 /* Final pthreads */
11773 pthread_attr_t attr;
11775 status = pthread_attr_init(&attr);
11776 if( status ) return status;
11778 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
11780 #if defined( PTHREAD_CREATE_JOINABLE )
11781 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
11783 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
11786 #ifdef PTHREAD_CREATE_DETACHED
11788 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
11791 if( status ) return status;
11794 status = pthread_create( &t, &attr, task, NULL );
11795 if( status ) return status;
11797 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
11799 /* give thread a chance to complete */
11800 /* it should remain joinable and hence detachable */
11803 status = pthread_detach( t );
11804 if( status ) return status;
11809 /* Draft 4 pthreads */
11810 status = pthread_create( &t, pthread_attr_default, task, NULL );
11811 if( status ) return status;
11814 /* give thread a chance to complete */
11815 /* it should remain joinable and hence detachable */
11818 status = pthread_detach( &t );
11819 if( status ) return status;
11823 #ifdef HAVE_LINUX_THREADS
11824 pthread_kill_other_threads_np();
11832 if { (eval echo configure:11833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11834 ol_cv_pthread_create=yes
11836 echo "configure: failed program was:" >&5
11837 cat conftest.$ac_ext >&5
11839 ol_cv_pthread_create=no
11846 echo "$ac_t""$ol_cv_pthread_create" 1>&6
11848 if test $ol_cv_pthread_create != no ; then
11849 ol_link_threads=posix
11850 ol_link_pthreads=""
11853 # Pthread try link: -kthread (ol_cv_pthread_kthread)
11854 if test "$ol_link_threads" = no ; then
11856 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
11857 echo "configure:11858: checking for pthread link with -kthread" >&5
11858 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
11859 echo $ac_n "(cached) $ac_c" 1>&6
11864 LIBS="-kthread $LIBS"
11866 if test "$cross_compiling" = yes; then
11867 cat > conftest.$ac_ext <<EOF
11868 #line 11869 "configure"
11869 #include "confdefs.h"
11870 /* pthread test headers */
11871 #include <pthread.h>
11873 #define NULL (void*)0
11876 static void *task(p)
11879 return (void *) (p == NULL);
11884 /* pthread test function */
11889 #ifdef HAVE_PTHREADS_FINAL
11890 /* Final pthreads */
11891 pthread_attr_t attr;
11893 status = pthread_attr_init(&attr);
11894 if( status ) return status;
11896 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
11898 #if defined( PTHREAD_CREATE_JOINABLE )
11899 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
11901 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
11904 #ifdef PTHREAD_CREATE_DETACHED
11906 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
11909 if( status ) return status;
11912 status = pthread_create( &t, &attr, task, NULL );
11913 if( status ) return status;
11915 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
11917 /* give thread a chance to complete */
11918 /* it should remain joinable and hence detachable */
11921 status = pthread_detach( t );
11922 if( status ) return status;
11927 /* Draft 4 pthreads */
11928 status = pthread_create( &t, pthread_attr_default, task, NULL );
11929 if( status ) return status;
11932 /* give thread a chance to complete */
11933 /* it should remain joinable and hence detachable */
11936 status = pthread_detach( &t );
11937 if( status ) return status;
11941 #ifdef HAVE_LINUX_THREADS
11942 pthread_kill_other_threads_np();
11949 if { (eval echo configure:11950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11951 ol_cv_pthread_kthread=yes
11953 echo "configure: failed program was:" >&5
11954 cat conftest.$ac_ext >&5
11956 ol_cv_pthread_kthread=no
11960 cat > conftest.$ac_ext <<EOF
11961 #line 11962 "configure"
11962 #include "confdefs.h"
11963 /* pthread test headers */
11964 #include <pthread.h>
11966 #define NULL (void*)0
11969 static void *task(p)
11972 return (void *) (p == NULL);
11976 int main(argc, argv)
11981 /* pthread test function */
11986 #ifdef HAVE_PTHREADS_FINAL
11987 /* Final pthreads */
11988 pthread_attr_t attr;
11990 status = pthread_attr_init(&attr);
11991 if( status ) return status;
11993 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
11995 #if defined( PTHREAD_CREATE_JOINABLE )
11996 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
11998 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12001 #ifdef PTHREAD_CREATE_DETACHED
12003 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12006 if( status ) return status;
12009 status = pthread_create( &t, &attr, task, NULL );
12010 if( status ) return status;
12012 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12014 /* give thread a chance to complete */
12015 /* it should remain joinable and hence detachable */
12018 status = pthread_detach( t );
12019 if( status ) return status;
12024 /* Draft 4 pthreads */
12025 status = pthread_create( &t, pthread_attr_default, task, NULL );
12026 if( status ) return status;
12029 /* give thread a chance to complete */
12030 /* it should remain joinable and hence detachable */
12033 status = pthread_detach( &t );
12034 if( status ) return status;
12038 #ifdef HAVE_LINUX_THREADS
12039 pthread_kill_other_threads_np();
12047 if { (eval echo configure:12048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12049 ol_cv_pthread_kthread=yes
12051 echo "configure: failed program was:" >&5
12052 cat conftest.$ac_ext >&5
12054 ol_cv_pthread_kthread=no
12065 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
12067 if test $ol_cv_pthread_kthread = yes ; then
12068 ol_link_pthreads="-kthread"
12069 ol_link_threads=posix
12073 # Pthread try link: -pthread (ol_cv_pthread_pthread)
12074 if test "$ol_link_threads" = no ; then
12076 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
12077 echo "configure:12078: checking for pthread link with -pthread" >&5
12078 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
12079 echo $ac_n "(cached) $ac_c" 1>&6
12084 LIBS="-pthread $LIBS"
12086 if test "$cross_compiling" = yes; then
12087 cat > conftest.$ac_ext <<EOF
12088 #line 12089 "configure"
12089 #include "confdefs.h"
12090 /* pthread test headers */
12091 #include <pthread.h>
12093 #define NULL (void*)0
12096 static void *task(p)
12099 return (void *) (p == NULL);
12104 /* pthread test function */
12109 #ifdef HAVE_PTHREADS_FINAL
12110 /* Final pthreads */
12111 pthread_attr_t attr;
12113 status = pthread_attr_init(&attr);
12114 if( status ) return status;
12116 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12118 #if defined( PTHREAD_CREATE_JOINABLE )
12119 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12121 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12124 #ifdef PTHREAD_CREATE_DETACHED
12126 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12129 if( status ) return status;
12132 status = pthread_create( &t, &attr, task, NULL );
12133 if( status ) return status;
12135 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12137 /* give thread a chance to complete */
12138 /* it should remain joinable and hence detachable */
12141 status = pthread_detach( t );
12142 if( status ) return status;
12147 /* Draft 4 pthreads */
12148 status = pthread_create( &t, pthread_attr_default, task, NULL );
12149 if( status ) return status;
12152 /* give thread a chance to complete */
12153 /* it should remain joinable and hence detachable */
12156 status = pthread_detach( &t );
12157 if( status ) return status;
12161 #ifdef HAVE_LINUX_THREADS
12162 pthread_kill_other_threads_np();
12169 if { (eval echo configure:12170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12171 ol_cv_pthread_pthread=yes
12173 echo "configure: failed program was:" >&5
12174 cat conftest.$ac_ext >&5
12176 ol_cv_pthread_pthread=no
12180 cat > conftest.$ac_ext <<EOF
12181 #line 12182 "configure"
12182 #include "confdefs.h"
12183 /* pthread test headers */
12184 #include <pthread.h>
12186 #define NULL (void*)0
12189 static void *task(p)
12192 return (void *) (p == NULL);
12196 int main(argc, argv)
12201 /* pthread test function */
12206 #ifdef HAVE_PTHREADS_FINAL
12207 /* Final pthreads */
12208 pthread_attr_t attr;
12210 status = pthread_attr_init(&attr);
12211 if( status ) return status;
12213 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12215 #if defined( PTHREAD_CREATE_JOINABLE )
12216 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12218 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12221 #ifdef PTHREAD_CREATE_DETACHED
12223 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12226 if( status ) return status;
12229 status = pthread_create( &t, &attr, task, NULL );
12230 if( status ) return status;
12232 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12234 /* give thread a chance to complete */
12235 /* it should remain joinable and hence detachable */
12238 status = pthread_detach( t );
12239 if( status ) return status;
12244 /* Draft 4 pthreads */
12245 status = pthread_create( &t, pthread_attr_default, task, NULL );
12246 if( status ) return status;
12249 /* give thread a chance to complete */
12250 /* it should remain joinable and hence detachable */
12253 status = pthread_detach( &t );
12254 if( status ) return status;
12258 #ifdef HAVE_LINUX_THREADS
12259 pthread_kill_other_threads_np();
12267 if { (eval echo configure:12268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12269 ol_cv_pthread_pthread=yes
12271 echo "configure: failed program was:" >&5
12272 cat conftest.$ac_ext >&5
12274 ol_cv_pthread_pthread=no
12285 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
12287 if test $ol_cv_pthread_pthread = yes ; then
12288 ol_link_pthreads="-pthread"
12289 ol_link_threads=posix
12293 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
12294 if test "$ol_link_threads" = no ; then
12296 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
12297 echo "configure:12298: checking for pthread link with -pthreads" >&5
12298 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
12299 echo $ac_n "(cached) $ac_c" 1>&6
12304 LIBS="-pthreads $LIBS"
12306 if test "$cross_compiling" = yes; then
12307 cat > conftest.$ac_ext <<EOF
12308 #line 12309 "configure"
12309 #include "confdefs.h"
12310 /* pthread test headers */
12311 #include <pthread.h>
12313 #define NULL (void*)0
12316 static void *task(p)
12319 return (void *) (p == NULL);
12324 /* pthread test function */
12329 #ifdef HAVE_PTHREADS_FINAL
12330 /* Final pthreads */
12331 pthread_attr_t attr;
12333 status = pthread_attr_init(&attr);
12334 if( status ) return status;
12336 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12338 #if defined( PTHREAD_CREATE_JOINABLE )
12339 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12341 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12344 #ifdef PTHREAD_CREATE_DETACHED
12346 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12349 if( status ) return status;
12352 status = pthread_create( &t, &attr, task, NULL );
12353 if( status ) return status;
12355 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12357 /* give thread a chance to complete */
12358 /* it should remain joinable and hence detachable */
12361 status = pthread_detach( t );
12362 if( status ) return status;
12367 /* Draft 4 pthreads */
12368 status = pthread_create( &t, pthread_attr_default, task, NULL );
12369 if( status ) return status;
12372 /* give thread a chance to complete */
12373 /* it should remain joinable and hence detachable */
12376 status = pthread_detach( &t );
12377 if( status ) return status;
12381 #ifdef HAVE_LINUX_THREADS
12382 pthread_kill_other_threads_np();
12389 if { (eval echo configure:12390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12391 ol_cv_pthread_pthreads=yes
12393 echo "configure: failed program was:" >&5
12394 cat conftest.$ac_ext >&5
12396 ol_cv_pthread_pthreads=no
12400 cat > conftest.$ac_ext <<EOF
12401 #line 12402 "configure"
12402 #include "confdefs.h"
12403 /* pthread test headers */
12404 #include <pthread.h>
12406 #define NULL (void*)0
12409 static void *task(p)
12412 return (void *) (p == NULL);
12416 int main(argc, argv)
12421 /* pthread test function */
12426 #ifdef HAVE_PTHREADS_FINAL
12427 /* Final pthreads */
12428 pthread_attr_t attr;
12430 status = pthread_attr_init(&attr);
12431 if( status ) return status;
12433 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12435 #if defined( PTHREAD_CREATE_JOINABLE )
12436 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12438 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12441 #ifdef PTHREAD_CREATE_DETACHED
12443 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12446 if( status ) return status;
12449 status = pthread_create( &t, &attr, task, NULL );
12450 if( status ) return status;
12452 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12454 /* give thread a chance to complete */
12455 /* it should remain joinable and hence detachable */
12458 status = pthread_detach( t );
12459 if( status ) return status;
12464 /* Draft 4 pthreads */
12465 status = pthread_create( &t, pthread_attr_default, task, NULL );
12466 if( status ) return status;
12469 /* give thread a chance to complete */
12470 /* it should remain joinable and hence detachable */
12473 status = pthread_detach( &t );
12474 if( status ) return status;
12478 #ifdef HAVE_LINUX_THREADS
12479 pthread_kill_other_threads_np();
12487 if { (eval echo configure:12488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12489 ol_cv_pthread_pthreads=yes
12491 echo "configure: failed program was:" >&5
12492 cat conftest.$ac_ext >&5
12494 ol_cv_pthread_pthreads=no
12505 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
12507 if test $ol_cv_pthread_pthreads = yes ; then
12508 ol_link_pthreads="-pthreads"
12509 ol_link_threads=posix
12513 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
12514 if test "$ol_link_threads" = no ; then
12516 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
12517 echo "configure:12518: checking for pthread link with -mthreads" >&5
12518 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
12519 echo $ac_n "(cached) $ac_c" 1>&6
12524 LIBS="-mthreads $LIBS"
12526 if test "$cross_compiling" = yes; then
12527 cat > conftest.$ac_ext <<EOF
12528 #line 12529 "configure"
12529 #include "confdefs.h"
12530 /* pthread test headers */
12531 #include <pthread.h>
12533 #define NULL (void*)0
12536 static void *task(p)
12539 return (void *) (p == NULL);
12544 /* pthread test function */
12549 #ifdef HAVE_PTHREADS_FINAL
12550 /* Final pthreads */
12551 pthread_attr_t attr;
12553 status = pthread_attr_init(&attr);
12554 if( status ) return status;
12556 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12558 #if defined( PTHREAD_CREATE_JOINABLE )
12559 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12561 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12564 #ifdef PTHREAD_CREATE_DETACHED
12566 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12569 if( status ) return status;
12572 status = pthread_create( &t, &attr, task, NULL );
12573 if( status ) return status;
12575 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12577 /* give thread a chance to complete */
12578 /* it should remain joinable and hence detachable */
12581 status = pthread_detach( t );
12582 if( status ) return status;
12587 /* Draft 4 pthreads */
12588 status = pthread_create( &t, pthread_attr_default, task, NULL );
12589 if( status ) return status;
12592 /* give thread a chance to complete */
12593 /* it should remain joinable and hence detachable */
12596 status = pthread_detach( &t );
12597 if( status ) return status;
12601 #ifdef HAVE_LINUX_THREADS
12602 pthread_kill_other_threads_np();
12609 if { (eval echo configure:12610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12611 ol_cv_pthread_mthreads=yes
12613 echo "configure: failed program was:" >&5
12614 cat conftest.$ac_ext >&5
12616 ol_cv_pthread_mthreads=no
12620 cat > conftest.$ac_ext <<EOF
12621 #line 12622 "configure"
12622 #include "confdefs.h"
12623 /* pthread test headers */
12624 #include <pthread.h>
12626 #define NULL (void*)0
12629 static void *task(p)
12632 return (void *) (p == NULL);
12636 int main(argc, argv)
12641 /* pthread test function */
12646 #ifdef HAVE_PTHREADS_FINAL
12647 /* Final pthreads */
12648 pthread_attr_t attr;
12650 status = pthread_attr_init(&attr);
12651 if( status ) return status;
12653 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12655 #if defined( PTHREAD_CREATE_JOINABLE )
12656 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12658 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12661 #ifdef PTHREAD_CREATE_DETACHED
12663 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12666 if( status ) return status;
12669 status = pthread_create( &t, &attr, task, NULL );
12670 if( status ) return status;
12672 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12674 /* give thread a chance to complete */
12675 /* it should remain joinable and hence detachable */
12678 status = pthread_detach( t );
12679 if( status ) return status;
12684 /* Draft 4 pthreads */
12685 status = pthread_create( &t, pthread_attr_default, task, NULL );
12686 if( status ) return status;
12689 /* give thread a chance to complete */
12690 /* it should remain joinable and hence detachable */
12693 status = pthread_detach( &t );
12694 if( status ) return status;
12698 #ifdef HAVE_LINUX_THREADS
12699 pthread_kill_other_threads_np();
12707 if { (eval echo configure:12708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12709 ol_cv_pthread_mthreads=yes
12711 echo "configure: failed program was:" >&5
12712 cat conftest.$ac_ext >&5
12714 ol_cv_pthread_mthreads=no
12725 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
12727 if test $ol_cv_pthread_mthreads = yes ; then
12728 ol_link_pthreads="-mthreads"
12729 ol_link_threads=posix
12733 # Pthread try link: -thread (ol_cv_pthread_thread)
12734 if test "$ol_link_threads" = no ; then
12736 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
12737 echo "configure:12738: checking for pthread link with -thread" >&5
12738 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
12739 echo $ac_n "(cached) $ac_c" 1>&6
12744 LIBS="-thread $LIBS"
12746 if test "$cross_compiling" = yes; then
12747 cat > conftest.$ac_ext <<EOF
12748 #line 12749 "configure"
12749 #include "confdefs.h"
12750 /* pthread test headers */
12751 #include <pthread.h>
12753 #define NULL (void*)0
12756 static void *task(p)
12759 return (void *) (p == NULL);
12764 /* pthread test function */
12769 #ifdef HAVE_PTHREADS_FINAL
12770 /* Final pthreads */
12771 pthread_attr_t attr;
12773 status = pthread_attr_init(&attr);
12774 if( status ) return status;
12776 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12778 #if defined( PTHREAD_CREATE_JOINABLE )
12779 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12781 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12784 #ifdef PTHREAD_CREATE_DETACHED
12786 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12789 if( status ) return status;
12792 status = pthread_create( &t, &attr, task, NULL );
12793 if( status ) return status;
12795 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12797 /* give thread a chance to complete */
12798 /* it should remain joinable and hence detachable */
12801 status = pthread_detach( t );
12802 if( status ) return status;
12807 /* Draft 4 pthreads */
12808 status = pthread_create( &t, pthread_attr_default, task, NULL );
12809 if( status ) return status;
12812 /* give thread a chance to complete */
12813 /* it should remain joinable and hence detachable */
12816 status = pthread_detach( &t );
12817 if( status ) return status;
12821 #ifdef HAVE_LINUX_THREADS
12822 pthread_kill_other_threads_np();
12829 if { (eval echo configure:12830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12831 ol_cv_pthread_thread=yes
12833 echo "configure: failed program was:" >&5
12834 cat conftest.$ac_ext >&5
12836 ol_cv_pthread_thread=no
12840 cat > conftest.$ac_ext <<EOF
12841 #line 12842 "configure"
12842 #include "confdefs.h"
12843 /* pthread test headers */
12844 #include <pthread.h>
12846 #define NULL (void*)0
12849 static void *task(p)
12852 return (void *) (p == NULL);
12856 int main(argc, argv)
12861 /* pthread test function */
12866 #ifdef HAVE_PTHREADS_FINAL
12867 /* Final pthreads */
12868 pthread_attr_t attr;
12870 status = pthread_attr_init(&attr);
12871 if( status ) return status;
12873 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12875 #if defined( PTHREAD_CREATE_JOINABLE )
12876 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12878 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12881 #ifdef PTHREAD_CREATE_DETACHED
12883 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12886 if( status ) return status;
12889 status = pthread_create( &t, &attr, task, NULL );
12890 if( status ) return status;
12892 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12894 /* give thread a chance to complete */
12895 /* it should remain joinable and hence detachable */
12898 status = pthread_detach( t );
12899 if( status ) return status;
12904 /* Draft 4 pthreads */
12905 status = pthread_create( &t, pthread_attr_default, task, NULL );
12906 if( status ) return status;
12909 /* give thread a chance to complete */
12910 /* it should remain joinable and hence detachable */
12913 status = pthread_detach( &t );
12914 if( status ) return status;
12918 #ifdef HAVE_LINUX_THREADS
12919 pthread_kill_other_threads_np();
12927 if { (eval echo configure:12928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12929 ol_cv_pthread_thread=yes
12931 echo "configure: failed program was:" >&5
12932 cat conftest.$ac_ext >&5
12934 ol_cv_pthread_thread=no
12945 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
12947 if test $ol_cv_pthread_thread = yes ; then
12948 ol_link_pthreads="-thread"
12949 ol_link_threads=posix
12954 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
12955 if test "$ol_link_threads" = no ; then
12956 # try -lpthread -lmach -lexc -lc_r
12957 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
12958 echo "configure:12959: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
12959 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
12960 echo $ac_n "(cached) $ac_c" 1>&6
12965 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
12967 if test "$cross_compiling" = yes; then
12968 cat > conftest.$ac_ext <<EOF
12969 #line 12970 "configure"
12970 #include "confdefs.h"
12971 /* pthread test headers */
12972 #include <pthread.h>
12974 #define NULL (void*)0
12977 static void *task(p)
12980 return (void *) (p == NULL);
12985 /* pthread test function */
12990 #ifdef HAVE_PTHREADS_FINAL
12991 /* Final pthreads */
12992 pthread_attr_t attr;
12994 status = pthread_attr_init(&attr);
12995 if( status ) return status;
12997 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12999 #if defined( PTHREAD_CREATE_JOINABLE )
13000 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13002 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13005 #ifdef PTHREAD_CREATE_DETACHED
13007 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13010 if( status ) return status;
13013 status = pthread_create( &t, &attr, task, NULL );
13014 if( status ) return status;
13016 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13018 /* give thread a chance to complete */
13019 /* it should remain joinable and hence detachable */
13022 status = pthread_detach( t );
13023 if( status ) return status;
13028 /* Draft 4 pthreads */
13029 status = pthread_create( &t, pthread_attr_default, task, NULL );
13030 if( status ) return status;
13033 /* give thread a chance to complete */
13034 /* it should remain joinable and hence detachable */
13037 status = pthread_detach( &t );
13038 if( status ) return status;
13042 #ifdef HAVE_LINUX_THREADS
13043 pthread_kill_other_threads_np();
13050 if { (eval echo configure:13051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13052 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
13054 echo "configure: failed program was:" >&5
13055 cat conftest.$ac_ext >&5
13057 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
13061 cat > conftest.$ac_ext <<EOF
13062 #line 13063 "configure"
13063 #include "confdefs.h"
13064 /* pthread test headers */
13065 #include <pthread.h>
13067 #define NULL (void*)0
13070 static void *task(p)
13073 return (void *) (p == NULL);
13077 int main(argc, argv)
13082 /* pthread test function */
13087 #ifdef HAVE_PTHREADS_FINAL
13088 /* Final pthreads */
13089 pthread_attr_t attr;
13091 status = pthread_attr_init(&attr);
13092 if( status ) return status;
13094 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13096 #if defined( PTHREAD_CREATE_JOINABLE )
13097 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13099 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13102 #ifdef PTHREAD_CREATE_DETACHED
13104 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13107 if( status ) return status;
13110 status = pthread_create( &t, &attr, task, NULL );
13111 if( status ) return status;
13113 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13115 /* give thread a chance to complete */
13116 /* it should remain joinable and hence detachable */
13119 status = pthread_detach( t );
13120 if( status ) return status;
13125 /* Draft 4 pthreads */
13126 status = pthread_create( &t, pthread_attr_default, task, NULL );
13127 if( status ) return status;
13130 /* give thread a chance to complete */
13131 /* it should remain joinable and hence detachable */
13134 status = pthread_detach( &t );
13135 if( status ) return status;
13139 #ifdef HAVE_LINUX_THREADS
13140 pthread_kill_other_threads_np();
13148 if { (eval echo configure:13149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13150 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
13152 echo "configure: failed program was:" >&5
13153 cat conftest.$ac_ext >&5
13155 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
13166 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
13168 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
13169 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
13170 ol_link_threads=posix
13174 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
13175 if test "$ol_link_threads" = no ; then
13176 # try -lpthread -lmach -lexc
13177 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
13178 echo "configure:13179: checking for pthread link with -lpthread -lmach -lexc" >&5
13179 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
13180 echo $ac_n "(cached) $ac_c" 1>&6
13185 LIBS="-lpthread -lmach -lexc $LIBS"
13187 if test "$cross_compiling" = yes; then
13188 cat > conftest.$ac_ext <<EOF
13189 #line 13190 "configure"
13190 #include "confdefs.h"
13191 /* pthread test headers */
13192 #include <pthread.h>
13194 #define NULL (void*)0
13197 static void *task(p)
13200 return (void *) (p == NULL);
13205 /* pthread test function */
13210 #ifdef HAVE_PTHREADS_FINAL
13211 /* Final pthreads */
13212 pthread_attr_t attr;
13214 status = pthread_attr_init(&attr);
13215 if( status ) return status;
13217 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13219 #if defined( PTHREAD_CREATE_JOINABLE )
13220 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13222 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13225 #ifdef PTHREAD_CREATE_DETACHED
13227 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13230 if( status ) return status;
13233 status = pthread_create( &t, &attr, task, NULL );
13234 if( status ) return status;
13236 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13238 /* give thread a chance to complete */
13239 /* it should remain joinable and hence detachable */
13242 status = pthread_detach( t );
13243 if( status ) return status;
13248 /* Draft 4 pthreads */
13249 status = pthread_create( &t, pthread_attr_default, task, NULL );
13250 if( status ) return status;
13253 /* give thread a chance to complete */
13254 /* it should remain joinable and hence detachable */
13257 status = pthread_detach( &t );
13258 if( status ) return status;
13262 #ifdef HAVE_LINUX_THREADS
13263 pthread_kill_other_threads_np();
13270 if { (eval echo configure:13271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13272 ol_cv_pthread_lpthread_lmach_lexc=yes
13274 echo "configure: failed program was:" >&5
13275 cat conftest.$ac_ext >&5
13277 ol_cv_pthread_lpthread_lmach_lexc=no
13281 cat > conftest.$ac_ext <<EOF
13282 #line 13283 "configure"
13283 #include "confdefs.h"
13284 /* pthread test headers */
13285 #include <pthread.h>
13287 #define NULL (void*)0
13290 static void *task(p)
13293 return (void *) (p == NULL);
13297 int main(argc, argv)
13302 /* pthread test function */
13307 #ifdef HAVE_PTHREADS_FINAL
13308 /* Final pthreads */
13309 pthread_attr_t attr;
13311 status = pthread_attr_init(&attr);
13312 if( status ) return status;
13314 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13316 #if defined( PTHREAD_CREATE_JOINABLE )
13317 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13319 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13322 #ifdef PTHREAD_CREATE_DETACHED
13324 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13327 if( status ) return status;
13330 status = pthread_create( &t, &attr, task, NULL );
13331 if( status ) return status;
13333 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13335 /* give thread a chance to complete */
13336 /* it should remain joinable and hence detachable */
13339 status = pthread_detach( t );
13340 if( status ) return status;
13345 /* Draft 4 pthreads */
13346 status = pthread_create( &t, pthread_attr_default, task, NULL );
13347 if( status ) return status;
13350 /* give thread a chance to complete */
13351 /* it should remain joinable and hence detachable */
13354 status = pthread_detach( &t );
13355 if( status ) return status;
13359 #ifdef HAVE_LINUX_THREADS
13360 pthread_kill_other_threads_np();
13368 if { (eval echo configure:13369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13370 ol_cv_pthread_lpthread_lmach_lexc=yes
13372 echo "configure: failed program was:" >&5
13373 cat conftest.$ac_ext >&5
13375 ol_cv_pthread_lpthread_lmach_lexc=no
13386 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
13388 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
13389 ol_link_pthreads="-lpthread -lmach -lexc"
13390 ol_link_threads=posix
13395 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
13396 if test "$ol_link_threads" = no ; then
13397 # try -lpthread -Wl,-woff,85
13398 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
13399 echo "configure:13400: checking for pthread link with -lpthread -Wl,-woff,85" >&5
13400 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
13401 echo $ac_n "(cached) $ac_c" 1>&6
13406 LIBS="-lpthread -Wl,-woff,85 $LIBS"
13408 if test "$cross_compiling" = yes; then
13409 cat > conftest.$ac_ext <<EOF
13410 #line 13411 "configure"
13411 #include "confdefs.h"
13412 /* pthread test headers */
13413 #include <pthread.h>
13415 #define NULL (void*)0
13418 static void *task(p)
13421 return (void *) (p == NULL);
13426 /* pthread test function */
13431 #ifdef HAVE_PTHREADS_FINAL
13432 /* Final pthreads */
13433 pthread_attr_t attr;
13435 status = pthread_attr_init(&attr);
13436 if( status ) return status;
13438 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13440 #if defined( PTHREAD_CREATE_JOINABLE )
13441 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13443 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13446 #ifdef PTHREAD_CREATE_DETACHED
13448 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13451 if( status ) return status;
13454 status = pthread_create( &t, &attr, task, NULL );
13455 if( status ) return status;
13457 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13459 /* give thread a chance to complete */
13460 /* it should remain joinable and hence detachable */
13463 status = pthread_detach( t );
13464 if( status ) return status;
13469 /* Draft 4 pthreads */
13470 status = pthread_create( &t, pthread_attr_default, task, NULL );
13471 if( status ) return status;
13474 /* give thread a chance to complete */
13475 /* it should remain joinable and hence detachable */
13478 status = pthread_detach( &t );
13479 if( status ) return status;
13483 #ifdef HAVE_LINUX_THREADS
13484 pthread_kill_other_threads_np();
13491 if { (eval echo configure:13492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13493 ol_cv_pthread_lib_lpthread_woff=yes
13495 echo "configure: failed program was:" >&5
13496 cat conftest.$ac_ext >&5
13498 ol_cv_pthread_lib_lpthread_woff=no
13502 cat > conftest.$ac_ext <<EOF
13503 #line 13504 "configure"
13504 #include "confdefs.h"
13505 /* pthread test headers */
13506 #include <pthread.h>
13508 #define NULL (void*)0
13511 static void *task(p)
13514 return (void *) (p == NULL);
13518 int main(argc, argv)
13523 /* pthread test function */
13528 #ifdef HAVE_PTHREADS_FINAL
13529 /* Final pthreads */
13530 pthread_attr_t attr;
13532 status = pthread_attr_init(&attr);
13533 if( status ) return status;
13535 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13537 #if defined( PTHREAD_CREATE_JOINABLE )
13538 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13540 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13543 #ifdef PTHREAD_CREATE_DETACHED
13545 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13548 if( status ) return status;
13551 status = pthread_create( &t, &attr, task, NULL );
13552 if( status ) return status;
13554 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13556 /* give thread a chance to complete */
13557 /* it should remain joinable and hence detachable */
13560 status = pthread_detach( t );
13561 if( status ) return status;
13566 /* Draft 4 pthreads */
13567 status = pthread_create( &t, pthread_attr_default, task, NULL );
13568 if( status ) return status;
13571 /* give thread a chance to complete */
13572 /* it should remain joinable and hence detachable */
13575 status = pthread_detach( &t );
13576 if( status ) return status;
13580 #ifdef HAVE_LINUX_THREADS
13581 pthread_kill_other_threads_np();
13589 if { (eval echo configure:13590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13591 ol_cv_pthread_lib_lpthread_woff=yes
13593 echo "configure: failed program was:" >&5
13594 cat conftest.$ac_ext >&5
13596 ol_cv_pthread_lib_lpthread_woff=no
13607 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
13609 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
13610 ol_link_pthreads="-lpthread -Wl,-woff,85"
13611 ol_link_threads=posix
13616 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
13617 if test "$ol_link_threads" = no ; then
13619 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
13620 echo "configure:13621: checking for pthread link with -lpthread" >&5
13621 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
13622 echo $ac_n "(cached) $ac_c" 1>&6
13627 LIBS="-lpthread $LIBS"
13629 if test "$cross_compiling" = yes; then
13630 cat > conftest.$ac_ext <<EOF
13631 #line 13632 "configure"
13632 #include "confdefs.h"
13633 /* pthread test headers */
13634 #include <pthread.h>
13636 #define NULL (void*)0
13639 static void *task(p)
13642 return (void *) (p == NULL);
13647 /* pthread test function */
13652 #ifdef HAVE_PTHREADS_FINAL
13653 /* Final pthreads */
13654 pthread_attr_t attr;
13656 status = pthread_attr_init(&attr);
13657 if( status ) return status;
13659 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13661 #if defined( PTHREAD_CREATE_JOINABLE )
13662 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13664 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13667 #ifdef PTHREAD_CREATE_DETACHED
13669 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13672 if( status ) return status;
13675 status = pthread_create( &t, &attr, task, NULL );
13676 if( status ) return status;
13678 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13680 /* give thread a chance to complete */
13681 /* it should remain joinable and hence detachable */
13684 status = pthread_detach( t );
13685 if( status ) return status;
13690 /* Draft 4 pthreads */
13691 status = pthread_create( &t, pthread_attr_default, task, NULL );
13692 if( status ) return status;
13695 /* give thread a chance to complete */
13696 /* it should remain joinable and hence detachable */
13699 status = pthread_detach( &t );
13700 if( status ) return status;
13704 #ifdef HAVE_LINUX_THREADS
13705 pthread_kill_other_threads_np();
13712 if { (eval echo configure:13713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13714 ol_cv_pthread_lpthread=yes
13716 echo "configure: failed program was:" >&5
13717 cat conftest.$ac_ext >&5
13719 ol_cv_pthread_lpthread=no
13723 cat > conftest.$ac_ext <<EOF
13724 #line 13725 "configure"
13725 #include "confdefs.h"
13726 /* pthread test headers */
13727 #include <pthread.h>
13729 #define NULL (void*)0
13732 static void *task(p)
13735 return (void *) (p == NULL);
13739 int main(argc, argv)
13744 /* pthread test function */
13749 #ifdef HAVE_PTHREADS_FINAL
13750 /* Final pthreads */
13751 pthread_attr_t attr;
13753 status = pthread_attr_init(&attr);
13754 if( status ) return status;
13756 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13758 #if defined( PTHREAD_CREATE_JOINABLE )
13759 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13761 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13764 #ifdef PTHREAD_CREATE_DETACHED
13766 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13769 if( status ) return status;
13772 status = pthread_create( &t, &attr, task, NULL );
13773 if( status ) return status;
13775 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13777 /* give thread a chance to complete */
13778 /* it should remain joinable and hence detachable */
13781 status = pthread_detach( t );
13782 if( status ) return status;
13787 /* Draft 4 pthreads */
13788 status = pthread_create( &t, pthread_attr_default, task, NULL );
13789 if( status ) return status;
13792 /* give thread a chance to complete */
13793 /* it should remain joinable and hence detachable */
13796 status = pthread_detach( &t );
13797 if( status ) return status;
13801 #ifdef HAVE_LINUX_THREADS
13802 pthread_kill_other_threads_np();
13810 if { (eval echo configure:13811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13812 ol_cv_pthread_lpthread=yes
13814 echo "configure: failed program was:" >&5
13815 cat conftest.$ac_ext >&5
13817 ol_cv_pthread_lpthread=no
13828 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
13830 if test $ol_cv_pthread_lpthread = yes ; then
13831 ol_link_pthreads="-lpthread"
13832 ol_link_threads=posix
13836 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
13837 if test "$ol_link_threads" = no ; then
13839 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
13840 echo "configure:13841: checking for pthread link with -lc_r" >&5
13841 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
13842 echo $ac_n "(cached) $ac_c" 1>&6
13849 if test "$cross_compiling" = yes; then
13850 cat > conftest.$ac_ext <<EOF
13851 #line 13852 "configure"
13852 #include "confdefs.h"
13853 /* pthread test headers */
13854 #include <pthread.h>
13856 #define NULL (void*)0
13859 static void *task(p)
13862 return (void *) (p == NULL);
13867 /* pthread test function */
13872 #ifdef HAVE_PTHREADS_FINAL
13873 /* Final pthreads */
13874 pthread_attr_t attr;
13876 status = pthread_attr_init(&attr);
13877 if( status ) return status;
13879 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13881 #if defined( PTHREAD_CREATE_JOINABLE )
13882 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13884 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13887 #ifdef PTHREAD_CREATE_DETACHED
13889 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13892 if( status ) return status;
13895 status = pthread_create( &t, &attr, task, NULL );
13896 if( status ) return status;
13898 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13900 /* give thread a chance to complete */
13901 /* it should remain joinable and hence detachable */
13904 status = pthread_detach( t );
13905 if( status ) return status;
13910 /* Draft 4 pthreads */
13911 status = pthread_create( &t, pthread_attr_default, task, NULL );
13912 if( status ) return status;
13915 /* give thread a chance to complete */
13916 /* it should remain joinable and hence detachable */
13919 status = pthread_detach( &t );
13920 if( status ) return status;
13924 #ifdef HAVE_LINUX_THREADS
13925 pthread_kill_other_threads_np();
13932 if { (eval echo configure:13933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13934 ol_cv_pthread_lc_r=yes
13936 echo "configure: failed program was:" >&5
13937 cat conftest.$ac_ext >&5
13939 ol_cv_pthread_lc_r=no
13943 cat > conftest.$ac_ext <<EOF
13944 #line 13945 "configure"
13945 #include "confdefs.h"
13946 /* pthread test headers */
13947 #include <pthread.h>
13949 #define NULL (void*)0
13952 static void *task(p)
13955 return (void *) (p == NULL);
13959 int main(argc, argv)
13964 /* pthread test function */
13969 #ifdef HAVE_PTHREADS_FINAL
13970 /* Final pthreads */
13971 pthread_attr_t attr;
13973 status = pthread_attr_init(&attr);
13974 if( status ) return status;
13976 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13978 #if defined( PTHREAD_CREATE_JOINABLE )
13979 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13981 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13984 #ifdef PTHREAD_CREATE_DETACHED
13986 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13989 if( status ) return status;
13992 status = pthread_create( &t, &attr, task, NULL );
13993 if( status ) return status;
13995 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13997 /* give thread a chance to complete */
13998 /* it should remain joinable and hence detachable */
14001 status = pthread_detach( t );
14002 if( status ) return status;
14007 /* Draft 4 pthreads */
14008 status = pthread_create( &t, pthread_attr_default, task, NULL );
14009 if( status ) return status;
14012 /* give thread a chance to complete */
14013 /* it should remain joinable and hence detachable */
14016 status = pthread_detach( &t );
14017 if( status ) return status;
14021 #ifdef HAVE_LINUX_THREADS
14022 pthread_kill_other_threads_np();
14030 if { (eval echo configure:14031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14032 ol_cv_pthread_lc_r=yes
14034 echo "configure: failed program was:" >&5
14035 cat conftest.$ac_ext >&5
14037 ol_cv_pthread_lc_r=no
14048 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
14050 if test $ol_cv_pthread_lc_r = yes ; then
14051 ol_link_pthreads="-lc_r"
14052 ol_link_threads=posix
14057 # Pthread try link: -threads (ol_cv_pthread_threads)
14058 if test "$ol_link_threads" = no ; then
14060 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
14061 echo "configure:14062: checking for pthread link with -threads" >&5
14062 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
14063 echo $ac_n "(cached) $ac_c" 1>&6
14068 LIBS="-threads $LIBS"
14070 if test "$cross_compiling" = yes; then
14071 cat > conftest.$ac_ext <<EOF
14072 #line 14073 "configure"
14073 #include "confdefs.h"
14074 /* pthread test headers */
14075 #include <pthread.h>
14077 #define NULL (void*)0
14080 static void *task(p)
14083 return (void *) (p == NULL);
14088 /* pthread test function */
14093 #ifdef HAVE_PTHREADS_FINAL
14094 /* Final pthreads */
14095 pthread_attr_t attr;
14097 status = pthread_attr_init(&attr);
14098 if( status ) return status;
14100 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14102 #if defined( PTHREAD_CREATE_JOINABLE )
14103 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14105 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14108 #ifdef PTHREAD_CREATE_DETACHED
14110 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14113 if( status ) return status;
14116 status = pthread_create( &t, &attr, task, NULL );
14117 if( status ) return status;
14119 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14121 /* give thread a chance to complete */
14122 /* it should remain joinable and hence detachable */
14125 status = pthread_detach( t );
14126 if( status ) return status;
14131 /* Draft 4 pthreads */
14132 status = pthread_create( &t, pthread_attr_default, task, NULL );
14133 if( status ) return status;
14136 /* give thread a chance to complete */
14137 /* it should remain joinable and hence detachable */
14140 status = pthread_detach( &t );
14141 if( status ) return status;
14145 #ifdef HAVE_LINUX_THREADS
14146 pthread_kill_other_threads_np();
14153 if { (eval echo configure:14154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14155 ol_cv_pthread_threads=yes
14157 echo "configure: failed program was:" >&5
14158 cat conftest.$ac_ext >&5
14160 ol_cv_pthread_threads=no
14164 cat > conftest.$ac_ext <<EOF
14165 #line 14166 "configure"
14166 #include "confdefs.h"
14167 /* pthread test headers */
14168 #include <pthread.h>
14170 #define NULL (void*)0
14173 static void *task(p)
14176 return (void *) (p == NULL);
14180 int main(argc, argv)
14185 /* pthread test function */
14190 #ifdef HAVE_PTHREADS_FINAL
14191 /* Final pthreads */
14192 pthread_attr_t attr;
14194 status = pthread_attr_init(&attr);
14195 if( status ) return status;
14197 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14199 #if defined( PTHREAD_CREATE_JOINABLE )
14200 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14202 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14205 #ifdef PTHREAD_CREATE_DETACHED
14207 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14210 if( status ) return status;
14213 status = pthread_create( &t, &attr, task, NULL );
14214 if( status ) return status;
14216 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14218 /* give thread a chance to complete */
14219 /* it should remain joinable and hence detachable */
14222 status = pthread_detach( t );
14223 if( status ) return status;
14228 /* Draft 4 pthreads */
14229 status = pthread_create( &t, pthread_attr_default, task, NULL );
14230 if( status ) return status;
14233 /* give thread a chance to complete */
14234 /* it should remain joinable and hence detachable */
14237 status = pthread_detach( &t );
14238 if( status ) return status;
14242 #ifdef HAVE_LINUX_THREADS
14243 pthread_kill_other_threads_np();
14251 if { (eval echo configure:14252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14253 ol_cv_pthread_threads=yes
14255 echo "configure: failed program was:" >&5
14256 cat conftest.$ac_ext >&5
14258 ol_cv_pthread_threads=no
14269 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
14271 if test $ol_cv_pthread_threads = yes ; then
14272 ol_link_pthreads="-threads"
14273 ol_link_threads=posix
14278 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
14279 if test "$ol_link_threads" = no ; then
14280 # try -lpthreads -lmach -lexc -lc_r
14281 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
14282 echo "configure:14283: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
14283 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
14284 echo $ac_n "(cached) $ac_c" 1>&6
14289 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
14291 if test "$cross_compiling" = yes; then
14292 cat > conftest.$ac_ext <<EOF
14293 #line 14294 "configure"
14294 #include "confdefs.h"
14295 /* pthread test headers */
14296 #include <pthread.h>
14298 #define NULL (void*)0
14301 static void *task(p)
14304 return (void *) (p == NULL);
14309 /* pthread test function */
14314 #ifdef HAVE_PTHREADS_FINAL
14315 /* Final pthreads */
14316 pthread_attr_t attr;
14318 status = pthread_attr_init(&attr);
14319 if( status ) return status;
14321 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14323 #if defined( PTHREAD_CREATE_JOINABLE )
14324 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14326 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14329 #ifdef PTHREAD_CREATE_DETACHED
14331 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14334 if( status ) return status;
14337 status = pthread_create( &t, &attr, task, NULL );
14338 if( status ) return status;
14340 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14342 /* give thread a chance to complete */
14343 /* it should remain joinable and hence detachable */
14346 status = pthread_detach( t );
14347 if( status ) return status;
14352 /* Draft 4 pthreads */
14353 status = pthread_create( &t, pthread_attr_default, task, NULL );
14354 if( status ) return status;
14357 /* give thread a chance to complete */
14358 /* it should remain joinable and hence detachable */
14361 status = pthread_detach( &t );
14362 if( status ) return status;
14366 #ifdef HAVE_LINUX_THREADS
14367 pthread_kill_other_threads_np();
14374 if { (eval echo configure:14375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14376 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
14378 echo "configure: failed program was:" >&5
14379 cat conftest.$ac_ext >&5
14381 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
14385 cat > conftest.$ac_ext <<EOF
14386 #line 14387 "configure"
14387 #include "confdefs.h"
14388 /* pthread test headers */
14389 #include <pthread.h>
14391 #define NULL (void*)0
14394 static void *task(p)
14397 return (void *) (p == NULL);
14401 int main(argc, argv)
14406 /* pthread test function */
14411 #ifdef HAVE_PTHREADS_FINAL
14412 /* Final pthreads */
14413 pthread_attr_t attr;
14415 status = pthread_attr_init(&attr);
14416 if( status ) return status;
14418 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14420 #if defined( PTHREAD_CREATE_JOINABLE )
14421 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14423 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14426 #ifdef PTHREAD_CREATE_DETACHED
14428 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14431 if( status ) return status;
14434 status = pthread_create( &t, &attr, task, NULL );
14435 if( status ) return status;
14437 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14439 /* give thread a chance to complete */
14440 /* it should remain joinable and hence detachable */
14443 status = pthread_detach( t );
14444 if( status ) return status;
14449 /* Draft 4 pthreads */
14450 status = pthread_create( &t, pthread_attr_default, task, NULL );
14451 if( status ) return status;
14454 /* give thread a chance to complete */
14455 /* it should remain joinable and hence detachable */
14458 status = pthread_detach( &t );
14459 if( status ) return status;
14463 #ifdef HAVE_LINUX_THREADS
14464 pthread_kill_other_threads_np();
14472 if { (eval echo configure:14473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14474 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
14476 echo "configure: failed program was:" >&5
14477 cat conftest.$ac_ext >&5
14479 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
14490 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
14492 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
14493 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
14494 ol_link_threads=posix
14498 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
14499 if test "$ol_link_threads" = no ; then
14500 # try -lpthreads -lmach -lexc
14501 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
14502 echo "configure:14503: checking for pthread link with -lpthreads -lmach -lexc" >&5
14503 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
14504 echo $ac_n "(cached) $ac_c" 1>&6
14509 LIBS="-lpthreads -lmach -lexc $LIBS"
14511 if test "$cross_compiling" = yes; then
14512 cat > conftest.$ac_ext <<EOF
14513 #line 14514 "configure"
14514 #include "confdefs.h"
14515 /* pthread test headers */
14516 #include <pthread.h>
14518 #define NULL (void*)0
14521 static void *task(p)
14524 return (void *) (p == NULL);
14529 /* pthread test function */
14534 #ifdef HAVE_PTHREADS_FINAL
14535 /* Final pthreads */
14536 pthread_attr_t attr;
14538 status = pthread_attr_init(&attr);
14539 if( status ) return status;
14541 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14543 #if defined( PTHREAD_CREATE_JOINABLE )
14544 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14546 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14549 #ifdef PTHREAD_CREATE_DETACHED
14551 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14554 if( status ) return status;
14557 status = pthread_create( &t, &attr, task, NULL );
14558 if( status ) return status;
14560 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14562 /* give thread a chance to complete */
14563 /* it should remain joinable and hence detachable */
14566 status = pthread_detach( t );
14567 if( status ) return status;
14572 /* Draft 4 pthreads */
14573 status = pthread_create( &t, pthread_attr_default, task, NULL );
14574 if( status ) return status;
14577 /* give thread a chance to complete */
14578 /* it should remain joinable and hence detachable */
14581 status = pthread_detach( &t );
14582 if( status ) return status;
14586 #ifdef HAVE_LINUX_THREADS
14587 pthread_kill_other_threads_np();
14594 if { (eval echo configure:14595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14596 ol_cv_pthread_lpthreads_lmach_lexc=yes
14598 echo "configure: failed program was:" >&5
14599 cat conftest.$ac_ext >&5
14601 ol_cv_pthread_lpthreads_lmach_lexc=no
14605 cat > conftest.$ac_ext <<EOF
14606 #line 14607 "configure"
14607 #include "confdefs.h"
14608 /* pthread test headers */
14609 #include <pthread.h>
14611 #define NULL (void*)0
14614 static void *task(p)
14617 return (void *) (p == NULL);
14621 int main(argc, argv)
14626 /* pthread test function */
14631 #ifdef HAVE_PTHREADS_FINAL
14632 /* Final pthreads */
14633 pthread_attr_t attr;
14635 status = pthread_attr_init(&attr);
14636 if( status ) return status;
14638 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14640 #if defined( PTHREAD_CREATE_JOINABLE )
14641 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14643 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14646 #ifdef PTHREAD_CREATE_DETACHED
14648 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14651 if( status ) return status;
14654 status = pthread_create( &t, &attr, task, NULL );
14655 if( status ) return status;
14657 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14659 /* give thread a chance to complete */
14660 /* it should remain joinable and hence detachable */
14663 status = pthread_detach( t );
14664 if( status ) return status;
14669 /* Draft 4 pthreads */
14670 status = pthread_create( &t, pthread_attr_default, task, NULL );
14671 if( status ) return status;
14674 /* give thread a chance to complete */
14675 /* it should remain joinable and hence detachable */
14678 status = pthread_detach( &t );
14679 if( status ) return status;
14683 #ifdef HAVE_LINUX_THREADS
14684 pthread_kill_other_threads_np();
14692 if { (eval echo configure:14693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14694 ol_cv_pthread_lpthreads_lmach_lexc=yes
14696 echo "configure: failed program was:" >&5
14697 cat conftest.$ac_ext >&5
14699 ol_cv_pthread_lpthreads_lmach_lexc=no
14710 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
14712 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
14713 ol_link_pthreads="-lpthreads -lmach -lexc"
14714 ol_link_threads=posix
14718 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
14719 if test "$ol_link_threads" = no ; then
14720 # try -lpthreads -lexc
14721 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
14722 echo "configure:14723: checking for pthread link with -lpthreads -lexc" >&5
14723 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
14724 echo $ac_n "(cached) $ac_c" 1>&6
14729 LIBS="-lpthreads -lexc $LIBS"
14731 if test "$cross_compiling" = yes; then
14732 cat > conftest.$ac_ext <<EOF
14733 #line 14734 "configure"
14734 #include "confdefs.h"
14735 /* pthread test headers */
14736 #include <pthread.h>
14738 #define NULL (void*)0
14741 static void *task(p)
14744 return (void *) (p == NULL);
14749 /* pthread test function */
14754 #ifdef HAVE_PTHREADS_FINAL
14755 /* Final pthreads */
14756 pthread_attr_t attr;
14758 status = pthread_attr_init(&attr);
14759 if( status ) return status;
14761 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14763 #if defined( PTHREAD_CREATE_JOINABLE )
14764 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14766 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14769 #ifdef PTHREAD_CREATE_DETACHED
14771 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14774 if( status ) return status;
14777 status = pthread_create( &t, &attr, task, NULL );
14778 if( status ) return status;
14780 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14782 /* give thread a chance to complete */
14783 /* it should remain joinable and hence detachable */
14786 status = pthread_detach( t );
14787 if( status ) return status;
14792 /* Draft 4 pthreads */
14793 status = pthread_create( &t, pthread_attr_default, task, NULL );
14794 if( status ) return status;
14797 /* give thread a chance to complete */
14798 /* it should remain joinable and hence detachable */
14801 status = pthread_detach( &t );
14802 if( status ) return status;
14806 #ifdef HAVE_LINUX_THREADS
14807 pthread_kill_other_threads_np();
14814 if { (eval echo configure:14815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14816 ol_cv_pthread_lpthreads_lexc=yes
14818 echo "configure: failed program was:" >&5
14819 cat conftest.$ac_ext >&5
14821 ol_cv_pthread_lpthreads_lexc=no
14825 cat > conftest.$ac_ext <<EOF
14826 #line 14827 "configure"
14827 #include "confdefs.h"
14828 /* pthread test headers */
14829 #include <pthread.h>
14831 #define NULL (void*)0
14834 static void *task(p)
14837 return (void *) (p == NULL);
14841 int main(argc, argv)
14846 /* pthread test function */
14851 #ifdef HAVE_PTHREADS_FINAL
14852 /* Final pthreads */
14853 pthread_attr_t attr;
14855 status = pthread_attr_init(&attr);
14856 if( status ) return status;
14858 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14860 #if defined( PTHREAD_CREATE_JOINABLE )
14861 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14863 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14866 #ifdef PTHREAD_CREATE_DETACHED
14868 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14871 if( status ) return status;
14874 status = pthread_create( &t, &attr, task, NULL );
14875 if( status ) return status;
14877 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14879 /* give thread a chance to complete */
14880 /* it should remain joinable and hence detachable */
14883 status = pthread_detach( t );
14884 if( status ) return status;
14889 /* Draft 4 pthreads */
14890 status = pthread_create( &t, pthread_attr_default, task, NULL );
14891 if( status ) return status;
14894 /* give thread a chance to complete */
14895 /* it should remain joinable and hence detachable */
14898 status = pthread_detach( &t );
14899 if( status ) return status;
14903 #ifdef HAVE_LINUX_THREADS
14904 pthread_kill_other_threads_np();
14912 if { (eval echo configure:14913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14914 ol_cv_pthread_lpthreads_lexc=yes
14916 echo "configure: failed program was:" >&5
14917 cat conftest.$ac_ext >&5
14919 ol_cv_pthread_lpthreads_lexc=no
14930 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
14932 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
14933 ol_link_pthreads="-lpthreads -lexc"
14934 ol_link_threads=posix
14939 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
14940 if test "$ol_link_threads" = no ; then
14942 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
14943 echo "configure:14944: checking for pthread link with -lpthreads" >&5
14944 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
14945 echo $ac_n "(cached) $ac_c" 1>&6
14950 LIBS="-lpthreads $LIBS"
14952 if test "$cross_compiling" = yes; then
14953 cat > conftest.$ac_ext <<EOF
14954 #line 14955 "configure"
14955 #include "confdefs.h"
14956 /* pthread test headers */
14957 #include <pthread.h>
14959 #define NULL (void*)0
14962 static void *task(p)
14965 return (void *) (p == NULL);
14970 /* pthread test function */
14975 #ifdef HAVE_PTHREADS_FINAL
14976 /* Final pthreads */
14977 pthread_attr_t attr;
14979 status = pthread_attr_init(&attr);
14980 if( status ) return status;
14982 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14984 #if defined( PTHREAD_CREATE_JOINABLE )
14985 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14987 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14990 #ifdef PTHREAD_CREATE_DETACHED
14992 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14995 if( status ) return status;
14998 status = pthread_create( &t, &attr, task, NULL );
14999 if( status ) return status;
15001 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
15003 /* give thread a chance to complete */
15004 /* it should remain joinable and hence detachable */
15007 status = pthread_detach( t );
15008 if( status ) return status;
15013 /* Draft 4 pthreads */
15014 status = pthread_create( &t, pthread_attr_default, task, NULL );
15015 if( status ) return status;
15018 /* give thread a chance to complete */
15019 /* it should remain joinable and hence detachable */
15022 status = pthread_detach( &t );
15023 if( status ) return status;
15027 #ifdef HAVE_LINUX_THREADS
15028 pthread_kill_other_threads_np();
15035 if { (eval echo configure:15036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15037 ol_cv_pthread_lib_lpthreads=yes
15039 echo "configure: failed program was:" >&5
15040 cat conftest.$ac_ext >&5
15042 ol_cv_pthread_lib_lpthreads=no
15046 cat > conftest.$ac_ext <<EOF
15047 #line 15048 "configure"
15048 #include "confdefs.h"
15049 /* pthread test headers */
15050 #include <pthread.h>
15052 #define NULL (void*)0
15055 static void *task(p)
15058 return (void *) (p == NULL);
15062 int main(argc, argv)
15067 /* pthread test function */
15072 #ifdef HAVE_PTHREADS_FINAL
15073 /* Final pthreads */
15074 pthread_attr_t attr;
15076 status = pthread_attr_init(&attr);
15077 if( status ) return status;
15079 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
15081 #if defined( PTHREAD_CREATE_JOINABLE )
15082 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
15084 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
15087 #ifdef PTHREAD_CREATE_DETACHED
15089 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
15092 if( status ) return status;
15095 status = pthread_create( &t, &attr, task, NULL );
15096 if( status ) return status;
15098 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
15100 /* give thread a chance to complete */
15101 /* it should remain joinable and hence detachable */
15104 status = pthread_detach( t );
15105 if( status ) return status;
15110 /* Draft 4 pthreads */
15111 status = pthread_create( &t, pthread_attr_default, task, NULL );
15112 if( status ) return status;
15115 /* give thread a chance to complete */
15116 /* it should remain joinable and hence detachable */
15119 status = pthread_detach( &t );
15120 if( status ) return status;
15124 #ifdef HAVE_LINUX_THREADS
15125 pthread_kill_other_threads_np();
15133 if { (eval echo configure:15134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15135 ol_cv_pthread_lib_lpthreads=yes
15137 echo "configure: failed program was:" >&5
15138 cat conftest.$ac_ext >&5
15140 ol_cv_pthread_lib_lpthreads=no
15151 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
15153 if test $ol_cv_pthread_lib_lpthreads = yes ; then
15154 ol_link_pthreads="-lpthreads"
15155 ol_link_threads=posix
15160 if test $ol_link_threads != no ; then
15161 cat >> confdefs.h <<\EOF
15162 #define HAVE_PTHREADS 1
15166 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
15168 save_CPPFLAGS="$CPPFLAGS"
15170 LIBS="$LTHREAD_LIBS $LIBS"
15172 for ac_func in sched_yield pthread_yield
15174 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15175 echo "configure:15176: checking for $ac_func" >&5
15176 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15177 echo $ac_n "(cached) $ac_c" 1>&6
15179 cat > conftest.$ac_ext <<EOF
15180 #line 15181 "configure"
15181 #include "confdefs.h"
15182 /* System header to define __stub macros and hopefully few prototypes,
15183 which can conflict with char $ac_func(); below. */
15184 #include <assert.h>
15185 /* Override any gcc2 internal prototype to avoid an error. */
15186 /* We use char because int might match the return type of a gcc2
15187 builtin and then its argument prototype would still apply. */
15193 /* The GNU C library defines this for functions which it implements
15194 to always fail with ENOSYS. Some functions are actually named
15195 something starting with __ and the normal name is an alias. */
15196 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15204 if { (eval echo configure:15205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15206 eval "ac_cv_func_$ac_func=yes"
15208 echo "configure: failed program was:" >&5
15209 cat conftest.$ac_ext >&5
15211 eval "ac_cv_func_$ac_func=no"
15216 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15217 echo "$ac_t""yes" 1>&6
15218 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15219 cat >> confdefs.h <<EOF
15220 #define $ac_tr_func 1
15224 echo "$ac_t""no" 1>&6
15229 if test $ac_cv_func_sched_yield = no -a \
15230 $ac_cv_func_pthread_yield = no ; then
15231 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
15232 echo "configure:15233: checking for sched_yield in -lrt" >&5
15233 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
15234 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15235 echo $ac_n "(cached) $ac_c" 1>&6
15237 ac_save_LIBS="$LIBS"
15239 cat > conftest.$ac_ext <<EOF
15240 #line 15241 "configure"
15241 #include "confdefs.h"
15242 /* Override any gcc2 internal prototype to avoid an error. */
15243 /* We use char because int might match the return type of a gcc2
15244 builtin and then its argument prototype would still apply. */
15245 char sched_yield();
15251 if { (eval echo configure:15252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15253 eval "ac_cv_lib_$ac_lib_var=yes"
15255 echo "configure: failed program was:" >&5
15256 cat conftest.$ac_ext >&5
15258 eval "ac_cv_lib_$ac_lib_var=no"
15261 LIBS="$ac_save_LIBS"
15264 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15265 echo "$ac_t""yes" 1>&6
15266 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
15267 cat >> confdefs.h <<\EOF
15268 #define HAVE_SCHED_YIELD 1
15271 ac_cv_func_sched_yield=yes
15273 echo "$ac_t""no" 1>&6
15274 ac_cv_func_sched_yield=no
15278 if test $ac_cv_func_sched_yield = no -a \
15279 $ac_cv_func_pthread_yield = no ; then
15280 for ac_func in thr_yield
15282 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15283 echo "configure:15284: checking for $ac_func" >&5
15284 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15285 echo $ac_n "(cached) $ac_c" 1>&6
15287 cat > conftest.$ac_ext <<EOF
15288 #line 15289 "configure"
15289 #include "confdefs.h"
15290 /* System header to define __stub macros and hopefully few prototypes,
15291 which can conflict with char $ac_func(); below. */
15292 #include <assert.h>
15293 /* Override any gcc2 internal prototype to avoid an error. */
15294 /* We use char because int might match the return type of a gcc2
15295 builtin and then its argument prototype would still apply. */
15301 /* The GNU C library defines this for functions which it implements
15302 to always fail with ENOSYS. Some functions are actually named
15303 something starting with __ and the normal name is an alias. */
15304 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15312 if { (eval echo configure:15313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15314 eval "ac_cv_func_$ac_func=yes"
15316 echo "configure: failed program was:" >&5
15317 cat conftest.$ac_ext >&5
15319 eval "ac_cv_func_$ac_func=no"
15324 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15325 echo "$ac_t""yes" 1>&6
15326 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15327 cat >> confdefs.h <<EOF
15328 #define $ac_tr_func 1
15332 echo "$ac_t""no" 1>&6
15337 if test $ac_cv_func_sched_yield = no -a \
15338 $ac_cv_func_pthread_yield = no -a \
15339 "$ac_cv_func_thr_yield" = no ; then
15340 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
15343 for ac_func in pthread_kill pthread_rwlock_destroy
15345 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15346 echo "configure:15347: checking for $ac_func" >&5
15347 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15348 echo $ac_n "(cached) $ac_c" 1>&6
15350 cat > conftest.$ac_ext <<EOF
15351 #line 15352 "configure"
15352 #include "confdefs.h"
15353 /* System header to define __stub macros and hopefully few prototypes,
15354 which can conflict with char $ac_func(); below. */
15355 #include <assert.h>
15356 /* Override any gcc2 internal prototype to avoid an error. */
15357 /* We use char because int might match the return type of a gcc2
15358 builtin and then its argument prototype would still apply. */
15364 /* The GNU C library defines this for functions which it implements
15365 to always fail with ENOSYS. Some functions are actually named
15366 something starting with __ and the normal name is an alias. */
15367 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15375 if { (eval echo configure:15376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15377 eval "ac_cv_func_$ac_func=yes"
15379 echo "configure: failed program was:" >&5
15380 cat conftest.$ac_ext >&5
15382 eval "ac_cv_func_$ac_func=no"
15387 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15388 echo "$ac_t""yes" 1>&6
15389 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15390 cat >> confdefs.h <<EOF
15391 #define $ac_tr_func 1
15395 echo "$ac_t""no" 1>&6
15400 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
15401 echo "configure:15402: checking for pthread_detach with <pthread.h>" >&5
15402 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
15403 echo $ac_n "(cached) $ac_c" 1>&6
15406 cat > conftest.$ac_ext <<EOF
15407 #line 15408 "configure"
15408 #include "confdefs.h"
15410 #include <pthread.h>
15412 #define NULL (void*)0
15416 pthread_detach(NULL);
15419 if { (eval echo configure:15420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15421 ol_cv_func_pthread_detach=yes
15423 echo "configure: failed program was:" >&5
15424 cat conftest.$ac_ext >&5
15426 ol_cv_func_pthread_detach=no
15432 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
15434 if test $ol_cv_func_pthread_detach = no ; then
15435 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
15438 cat >> confdefs.h <<\EOF
15439 #define HAVE_PTHREAD_DETACH 1
15444 pthread_setconcurrency \
15445 pthread_getconcurrency \
15446 thr_setconcurrency \
15447 thr_getconcurrency \
15450 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15451 echo "configure:15452: checking for $ac_func" >&5
15452 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15453 echo $ac_n "(cached) $ac_c" 1>&6
15455 cat > conftest.$ac_ext <<EOF
15456 #line 15457 "configure"
15457 #include "confdefs.h"
15458 /* System header to define __stub macros and hopefully few prototypes,
15459 which can conflict with char $ac_func(); below. */
15460 #include <assert.h>
15461 /* Override any gcc2 internal prototype to avoid an error. */
15462 /* We use char because int might match the return type of a gcc2
15463 builtin and then its argument prototype would still apply. */
15469 /* The GNU C library defines this for functions which it implements
15470 to always fail with ENOSYS. Some functions are actually named
15471 something starting with __ and the normal name is an alias. */
15472 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15480 if { (eval echo configure:15481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15482 eval "ac_cv_func_$ac_func=yes"
15484 echo "configure: failed program was:" >&5
15485 cat conftest.$ac_ext >&5
15487 eval "ac_cv_func_$ac_func=no"
15492 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15493 echo "$ac_t""yes" 1>&6
15494 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15495 cat >> confdefs.h <<EOF
15496 #define $ac_tr_func 1
15500 echo "$ac_t""no" 1>&6
15506 for ac_func in pthread_kill_other_threads_np
15508 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15509 echo "configure:15510: checking for $ac_func" >&5
15510 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15511 echo $ac_n "(cached) $ac_c" 1>&6
15513 cat > conftest.$ac_ext <<EOF
15514 #line 15515 "configure"
15515 #include "confdefs.h"
15516 /* System header to define __stub macros and hopefully few prototypes,
15517 which can conflict with char $ac_func(); below. */
15518 #include <assert.h>
15519 /* Override any gcc2 internal prototype to avoid an error. */
15520 /* We use char because int might match the return type of a gcc2
15521 builtin and then its argument prototype would still apply. */
15527 /* The GNU C library defines this for functions which it implements
15528 to always fail with ENOSYS. Some functions are actually named
15529 something starting with __ and the normal name is an alias. */
15530 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15538 if { (eval echo configure:15539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15540 eval "ac_cv_func_$ac_func=yes"
15542 echo "configure: failed program was:" >&5
15543 cat conftest.$ac_ext >&5
15545 eval "ac_cv_func_$ac_func=no"
15550 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15551 echo "$ac_t""yes" 1>&6
15552 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15553 cat >> confdefs.h <<EOF
15554 #define $ac_tr_func 1
15558 echo "$ac_t""no" 1>&6
15562 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
15563 echo "configure:15564: checking for LinuxThreads implementation" >&5
15564 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
15565 echo $ac_n "(cached) $ac_c" 1>&6
15567 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
15570 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
15575 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
15576 echo "configure:15577: checking for LinuxThreads consistency" >&5
15577 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
15578 echo $ac_n "(cached) $ac_c" 1>&6
15581 if test $ol_cv_header_linux_threads = yes -a \
15582 $ol_cv_sys_linux_threads = yes; then
15583 ol_cv_linux_threads=yes
15584 elif test $ol_cv_header_linux_threads = no -a \
15585 $ol_cv_sys_linux_threads = no; then
15586 ol_cv_linux_threads=no
15588 ol_cv_linux_threads=error
15593 echo "$ac_t""$ol_cv_linux_threads" 1>&6
15596 if test $ol_cv_linux_threads = error; then
15597 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
15600 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
15601 echo "configure:15602: checking if pthread_create() works" >&5
15602 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
15603 echo $ac_n "(cached) $ac_c" 1>&6
15606 if test "$cross_compiling" = yes; then
15607 ol_cv_pthread_create_works=yes
15609 cat > conftest.$ac_ext <<EOF
15610 #line 15611 "configure"
15611 #include "confdefs.h"
15612 /* pthread test headers */
15613 #include <pthread.h>
15615 #define NULL (void*)0
15618 static void *task(p)
15621 return (void *) (p == NULL);
15625 int main(argc, argv)
15630 /* pthread test function */
15635 #ifdef HAVE_PTHREADS_FINAL
15636 /* Final pthreads */
15637 pthread_attr_t attr;
15639 status = pthread_attr_init(&attr);
15640 if( status ) return status;
15642 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
15644 #if defined( PTHREAD_CREATE_JOINABLE )
15645 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
15647 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
15650 #ifdef PTHREAD_CREATE_DETACHED
15652 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
15655 if( status ) return status;
15658 status = pthread_create( &t, &attr, task, NULL );
15659 if( status ) return status;
15661 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
15663 /* give thread a chance to complete */
15664 /* it should remain joinable and hence detachable */
15667 status = pthread_detach( t );
15668 if( status ) return status;
15673 /* Draft 4 pthreads */
15674 status = pthread_create( &t, pthread_attr_default, task, NULL );
15675 if( status ) return status;
15678 /* give thread a chance to complete */
15679 /* it should remain joinable and hence detachable */
15682 status = pthread_detach( &t );
15683 if( status ) return status;
15687 #ifdef HAVE_LINUX_THREADS
15688 pthread_kill_other_threads_np();
15696 if { (eval echo configure:15697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15698 ol_cv_pthread_create_works=yes
15700 echo "configure: failed program was:" >&5
15701 cat conftest.$ac_ext >&5
15703 ol_cv_pthread_create_works=no
15710 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
15712 if test $ol_cv_pthread_create_works = no ; then
15713 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
15716 if test $ol_with_yielding_select = auto ; then
15717 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
15718 echo "configure:15719: checking if select yields when using pthreads" >&5
15719 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
15720 echo $ac_n "(cached) $ac_c" 1>&6
15723 if test "$cross_compiling" = yes; then
15724 ol_cv_pthread_select_yields=cross
15726 cat > conftest.$ac_ext <<EOF
15727 #line 15728 "configure"
15728 #include "confdefs.h"
15730 #include <sys/types.h>
15731 #include <sys/time.h>
15732 #include <unistd.h>
15733 #include <pthread.h>
15735 #define NULL (void*) 0
15738 static int fildes[2];
15740 static void *task(p)
15752 FD_SET(fildes[0], &rfds);
15754 /* we're not interested in any fds */
15755 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
15762 exit(0); /* if we exit here, the select blocked the whole process */
15765 int main(argc, argv)
15771 /* create a pipe to select */
15772 if(pipe(&fildes[0])) {
15777 #ifdef HAVE_PTHREAD_SETCONCURRENCY
15778 (void) pthread_setconcurrency(2);
15780 #ifdef HAVE_THR_SETCONCURRENCY
15781 /* Set Solaris LWP concurrency to 2 */
15782 thr_setconcurrency(2);
15786 #if HAVE_PTHREADS_D4
15787 pthread_create(&t, pthread_attr_default, task, NULL);
15789 pthread_create(&t, NULL, task, NULL);
15792 #if HAVE_SCHED_YIELD
15793 sched_yield(); /* make sure task runs first */
15795 #ifdef HAVE_PTHREAD_YIELD
15796 pthread_yield(); /* make sure task runs first */
15803 if { (eval echo configure:15804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15805 ol_cv_pthread_select_yields=no
15807 echo "configure: failed program was:" >&5
15808 cat conftest.$ac_ext >&5
15810 ol_cv_pthread_select_yields=yes
15817 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
15819 if test $ol_cv_pthread_select_yields = cross ; then
15820 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
15823 if test $ol_cv_pthread_select_yields = yes ; then
15824 ol_with_yielding_select=yes
15828 CPPFLAGS="$save_CPPFLAGS"
15831 { echo "configure: error: could not locate usable POSIX Threads" 1>&2; exit 1; }
15835 if test $ol_with_threads = posix ; then
15836 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
15840 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15841 -o $ol_with_threads = mach ; then
15843 for ac_hdr in mach/cthreads.h cthreads.h
15845 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15846 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15847 echo "configure:15848: checking for $ac_hdr" >&5
15848 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15849 echo $ac_n "(cached) $ac_c" 1>&6
15851 cat > conftest.$ac_ext <<EOF
15852 #line 15853 "configure"
15853 #include "confdefs.h"
15856 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15857 { (eval echo configure:15858: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15858 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15859 if test -z "$ac_err"; then
15861 eval "ac_cv_header_$ac_safe=yes"
15864 echo "configure: failed program was:" >&5
15865 cat conftest.$ac_ext >&5
15867 eval "ac_cv_header_$ac_safe=no"
15871 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15872 echo "$ac_t""yes" 1>&6
15873 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15874 cat >> confdefs.h <<EOF
15875 #define $ac_tr_hdr 1
15879 echo "$ac_t""no" 1>&6
15883 if test $ac_cv_header_mach_cthreads_h = yes ; then
15884 ol_with_threads=found
15886 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
15887 echo "configure:15888: checking for cthread_fork" >&5
15888 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
15889 echo $ac_n "(cached) $ac_c" 1>&6
15891 cat > conftest.$ac_ext <<EOF
15892 #line 15893 "configure"
15893 #include "confdefs.h"
15894 /* System header to define __stub macros and hopefully few prototypes,
15895 which can conflict with char cthread_fork(); below. */
15896 #include <assert.h>
15897 /* Override any gcc2 internal prototype to avoid an error. */
15898 /* We use char because int might match the return type of a gcc2
15899 builtin and then its argument prototype would still apply. */
15900 char cthread_fork();
15905 /* The GNU C library defines this for functions which it implements
15906 to always fail with ENOSYS. Some functions are actually named
15907 something starting with __ and the normal name is an alias. */
15908 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
15916 if { (eval echo configure:15917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15918 eval "ac_cv_func_cthread_fork=yes"
15920 echo "configure: failed program was:" >&5
15921 cat conftest.$ac_ext >&5
15923 eval "ac_cv_func_cthread_fork=no"
15928 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
15929 echo "$ac_t""yes" 1>&6
15930 ol_link_threads=yes
15932 echo "$ac_t""no" 1>&6
15936 if test $ol_link_threads = no ; then
15937 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
15938 echo "configure:15939: checking for cthread_fork with -all_load" >&5
15939 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
15940 echo $ac_n "(cached) $ac_c" 1>&6
15944 LIBS="-all_load $LIBS"
15945 cat > conftest.$ac_ext <<EOF
15946 #line 15947 "configure"
15947 #include "confdefs.h"
15948 #include <mach/cthreads.h>
15951 cthread_fork((void *)0, (void *)0);
15955 if { (eval echo configure:15956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15957 ol_cv_cthread_all_load=yes
15959 echo "configure: failed program was:" >&5
15960 cat conftest.$ac_ext >&5
15962 ol_cv_cthread_all_load=no
15969 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
15971 if test $ol_cv_cthread_all_load = yes ; then
15972 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
15973 ol_link_threads=mach
15974 ol_with_threads=found
15978 elif test $ac_cv_header_cthreads_h = yes ; then
15980 ol_with_threads=found
15983 LIBS="$LIBS -lthreads"
15984 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
15985 echo "configure:15986: checking for cthread_fork" >&5
15986 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
15987 echo $ac_n "(cached) $ac_c" 1>&6
15989 cat > conftest.$ac_ext <<EOF
15990 #line 15991 "configure"
15991 #include "confdefs.h"
15992 /* System header to define __stub macros and hopefully few prototypes,
15993 which can conflict with char cthread_fork(); below. */
15994 #include <assert.h>
15995 /* Override any gcc2 internal prototype to avoid an error. */
15996 /* We use char because int might match the return type of a gcc2
15997 builtin and then its argument prototype would still apply. */
15998 char cthread_fork();
16003 /* The GNU C library defines this for functions which it implements
16004 to always fail with ENOSYS. Some functions are actually named
16005 something starting with __ and the normal name is an alias. */
16006 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
16014 if { (eval echo configure:16015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16016 eval "ac_cv_func_cthread_fork=yes"
16018 echo "configure: failed program was:" >&5
16019 cat conftest.$ac_ext >&5
16021 eval "ac_cv_func_cthread_fork=no"
16026 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
16027 echo "$ac_t""yes" 1>&6
16028 ol_link_threads=yes
16030 echo "$ac_t""no" 1>&6
16035 if test $ol_link_threads = yes ; then
16036 LTHREAD_LIBS="-lthreads"
16037 ol_link_threads=mach
16038 ol_with_threads=found
16040 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
16043 elif test $ol_with_threads = mach ; then
16044 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
16047 if test $ol_link_threads = mach ; then
16048 cat >> confdefs.h <<\EOF
16049 #define HAVE_MACH_CTHREADS 1
16052 elif test $ol_with_threads = found ; then
16053 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
16057 if test $ol_with_threads = auto -o $ol_with_threads = yes \
16058 -o $ol_with_threads = pth ; then
16060 for ac_hdr in pth.h
16062 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16063 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16064 echo "configure:16065: checking for $ac_hdr" >&5
16065 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16066 echo $ac_n "(cached) $ac_c" 1>&6
16068 cat > conftest.$ac_ext <<EOF
16069 #line 16070 "configure"
16070 #include "confdefs.h"
16073 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16074 { (eval echo configure:16075: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16075 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16076 if test -z "$ac_err"; then
16078 eval "ac_cv_header_$ac_safe=yes"
16081 echo "configure: failed program was:" >&5
16082 cat conftest.$ac_ext >&5
16084 eval "ac_cv_header_$ac_safe=no"
16088 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16089 echo "$ac_t""yes" 1>&6
16090 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16091 cat >> confdefs.h <<EOF
16092 #define $ac_tr_hdr 1
16096 echo "$ac_t""no" 1>&6
16101 if test $ac_cv_header_pth_h = yes ; then
16102 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
16103 echo "configure:16104: checking for pth_version in -lpth" >&5
16104 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
16105 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
16106 echo $ac_n "(cached) $ac_c" 1>&6
16108 ac_save_LIBS="$LIBS"
16110 cat > conftest.$ac_ext <<EOF
16111 #line 16112 "configure"
16112 #include "confdefs.h"
16113 /* Override any gcc2 internal prototype to avoid an error. */
16114 /* We use char because int might match the return type of a gcc2
16115 builtin and then its argument prototype would still apply. */
16116 char pth_version();
16122 if { (eval echo configure:16123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16124 eval "ac_cv_lib_$ac_lib_var=yes"
16126 echo "configure: failed program was:" >&5
16127 cat conftest.$ac_ext >&5
16129 eval "ac_cv_lib_$ac_lib_var=no"
16132 LIBS="$ac_save_LIBS"
16135 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16136 echo "$ac_t""yes" 1>&6
16139 echo "$ac_t""no" 1>&6
16144 if test $have_pth = yes ; then
16145 cat >> confdefs.h <<\EOF
16146 #define HAVE_GNU_PTH 1
16149 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
16150 ol_link_threads=pth
16151 ol_with_threads=found
16153 if test $ol_with_yielding_select = auto ; then
16154 ol_with_yielding_select=yes
16160 if test $ol_with_threads = auto -o $ol_with_threads = yes \
16161 -o $ol_with_threads = lwp ; then
16163 for ac_hdr in thread.h synch.h
16165 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16166 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16167 echo "configure:16168: checking for $ac_hdr" >&5
16168 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16169 echo $ac_n "(cached) $ac_c" 1>&6
16171 cat > conftest.$ac_ext <<EOF
16172 #line 16173 "configure"
16173 #include "confdefs.h"
16176 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16177 { (eval echo configure:16178: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16178 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16179 if test -z "$ac_err"; then
16181 eval "ac_cv_header_$ac_safe=yes"
16184 echo "configure: failed program was:" >&5
16185 cat conftest.$ac_ext >&5
16187 eval "ac_cv_header_$ac_safe=no"
16191 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16192 echo "$ac_t""yes" 1>&6
16193 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16194 cat >> confdefs.h <<EOF
16195 #define $ac_tr_hdr 1
16199 echo "$ac_t""no" 1>&6
16203 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
16204 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
16205 echo "configure:16206: checking for thr_create in -lthread" >&5
16206 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
16207 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
16208 echo $ac_n "(cached) $ac_c" 1>&6
16210 ac_save_LIBS="$LIBS"
16211 LIBS="-lthread $LIBS"
16212 cat > conftest.$ac_ext <<EOF
16213 #line 16214 "configure"
16214 #include "confdefs.h"
16215 /* Override any gcc2 internal prototype to avoid an error. */
16216 /* We use char because int might match the return type of a gcc2
16217 builtin and then its argument prototype would still apply. */
16224 if { (eval echo configure:16225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16226 eval "ac_cv_lib_$ac_lib_var=yes"
16228 echo "configure: failed program was:" >&5
16229 cat conftest.$ac_ext >&5
16231 eval "ac_cv_lib_$ac_lib_var=no"
16234 LIBS="$ac_save_LIBS"
16237 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16238 echo "$ac_t""yes" 1>&6
16241 echo "$ac_t""no" 1>&6
16246 if test $have_thr = yes ; then
16247 cat >> confdefs.h <<\EOF
16251 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
16252 ol_link_threads=thr
16254 if test $ol_with_yielding_select = auto ; then
16255 ol_with_yielding_select=yes
16259 thr_setconcurrency \
16260 thr_getconcurrency \
16263 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16264 echo "configure:16265: checking for $ac_func" >&5
16265 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
16266 echo $ac_n "(cached) $ac_c" 1>&6
16268 cat > conftest.$ac_ext <<EOF
16269 #line 16270 "configure"
16270 #include "confdefs.h"
16271 /* System header to define __stub macros and hopefully few prototypes,
16272 which can conflict with char $ac_func(); below. */
16273 #include <assert.h>
16274 /* Override any gcc2 internal prototype to avoid an error. */
16275 /* We use char because int might match the return type of a gcc2
16276 builtin and then its argument prototype would still apply. */
16282 /* The GNU C library defines this for functions which it implements
16283 to always fail with ENOSYS. Some functions are actually named
16284 something starting with __ and the normal name is an alias. */
16285 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16293 if { (eval echo configure:16294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16295 eval "ac_cv_func_$ac_func=yes"
16297 echo "configure: failed program was:" >&5
16298 cat conftest.$ac_ext >&5
16300 eval "ac_cv_func_$ac_func=no"
16305 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16306 echo "$ac_t""yes" 1>&6
16307 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16308 cat >> confdefs.h <<EOF
16309 #define $ac_tr_func 1
16313 echo "$ac_t""no" 1>&6
16320 for ac_hdr in lwp/lwp.h
16322 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16323 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16324 echo "configure:16325: checking for $ac_hdr" >&5
16325 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16326 echo $ac_n "(cached) $ac_c" 1>&6
16328 cat > conftest.$ac_ext <<EOF
16329 #line 16330 "configure"
16330 #include "confdefs.h"
16333 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16334 { (eval echo configure:16335: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16335 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16336 if test -z "$ac_err"; then
16338 eval "ac_cv_header_$ac_safe=yes"
16341 echo "configure: failed program was:" >&5
16342 cat conftest.$ac_ext >&5
16344 eval "ac_cv_header_$ac_safe=no"
16348 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16349 echo "$ac_t""yes" 1>&6
16350 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16351 cat >> confdefs.h <<EOF
16352 #define $ac_tr_hdr 1
16356 echo "$ac_t""no" 1>&6
16360 if test $ac_cv_header_lwp_lwp_h = yes ; then
16361 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
16362 echo "configure:16363: checking for lwp_create in -llwp" >&5
16363 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
16364 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
16365 echo $ac_n "(cached) $ac_c" 1>&6
16367 ac_save_LIBS="$LIBS"
16369 cat > conftest.$ac_ext <<EOF
16370 #line 16371 "configure"
16371 #include "confdefs.h"
16372 /* Override any gcc2 internal prototype to avoid an error. */
16373 /* We use char because int might match the return type of a gcc2
16374 builtin and then its argument prototype would still apply. */
16381 if { (eval echo configure:16382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16383 eval "ac_cv_lib_$ac_lib_var=yes"
16385 echo "configure: failed program was:" >&5
16386 cat conftest.$ac_ext >&5
16388 eval "ac_cv_lib_$ac_lib_var=no"
16391 LIBS="$ac_save_LIBS"
16394 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16395 echo "$ac_t""yes" 1>&6
16398 echo "$ac_t""no" 1>&6
16403 if test $have_lwp = yes ; then
16404 cat >> confdefs.h <<\EOF
16408 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
16409 ol_link_threads=lwp
16411 if test $ol_with_yielding_select = auto ; then
16412 ol_with_yielding_select=no
16418 if test $ol_with_yielding_select = yes ; then
16419 cat >> confdefs.h <<\EOF
16420 #define HAVE_YIELDING_SELECT 1
16425 if test $ol_with_threads = manual ; then
16426 ol_link_threads=yes
16428 echo "configure: warning: thread defines and link options must be set manually" 1>&2
16430 for ac_hdr in pthread.h sched.h
16432 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16433 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16434 echo "configure:16435: checking for $ac_hdr" >&5
16435 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16436 echo $ac_n "(cached) $ac_c" 1>&6
16438 cat > conftest.$ac_ext <<EOF
16439 #line 16440 "configure"
16440 #include "confdefs.h"
16443 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16444 { (eval echo configure:16445: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16445 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16446 if test -z "$ac_err"; then
16448 eval "ac_cv_header_$ac_safe=yes"
16451 echo "configure: failed program was:" >&5
16452 cat conftest.$ac_ext >&5
16454 eval "ac_cv_header_$ac_safe=no"
16458 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16459 echo "$ac_t""yes" 1>&6
16460 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16461 cat >> confdefs.h <<EOF
16462 #define $ac_tr_hdr 1
16466 echo "$ac_t""no" 1>&6
16470 for ac_func in sched_yield pthread_yield
16472 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16473 echo "configure:16474: checking for $ac_func" >&5
16474 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
16475 echo $ac_n "(cached) $ac_c" 1>&6
16477 cat > conftest.$ac_ext <<EOF
16478 #line 16479 "configure"
16479 #include "confdefs.h"
16480 /* System header to define __stub macros and hopefully few prototypes,
16481 which can conflict with char $ac_func(); below. */
16482 #include <assert.h>
16483 /* Override any gcc2 internal prototype to avoid an error. */
16484 /* We use char because int might match the return type of a gcc2
16485 builtin and then its argument prototype would still apply. */
16491 /* The GNU C library defines this for functions which it implements
16492 to always fail with ENOSYS. Some functions are actually named
16493 something starting with __ and the normal name is an alias. */
16494 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16502 if { (eval echo configure:16503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16504 eval "ac_cv_func_$ac_func=yes"
16506 echo "configure: failed program was:" >&5
16507 cat conftest.$ac_ext >&5
16509 eval "ac_cv_func_$ac_func=no"
16514 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16515 echo "$ac_t""yes" 1>&6
16516 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16517 cat >> confdefs.h <<EOF
16518 #define $ac_tr_func 1
16522 echo "$ac_t""no" 1>&6
16527 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
16528 echo "configure:16529: checking for LinuxThreads pthread.h" >&5
16529 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
16530 echo $ac_n "(cached) $ac_c" 1>&6
16532 cat > conftest.$ac_ext <<EOF
16533 #line 16534 "configure"
16534 #include "confdefs.h"
16535 #include <pthread.h>
16537 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16538 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
16540 ol_cv_header_linux_threads=yes
16543 ol_cv_header_linux_threads=no
16550 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
16551 if test $ol_cv_header_linux_threads = yes; then
16552 cat >> confdefs.h <<\EOF
16553 #define HAVE_LINUX_THREADS 1
16559 for ac_hdr in mach/cthreads.h
16561 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16562 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16563 echo "configure:16564: checking for $ac_hdr" >&5
16564 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16565 echo $ac_n "(cached) $ac_c" 1>&6
16567 cat > conftest.$ac_ext <<EOF
16568 #line 16569 "configure"
16569 #include "confdefs.h"
16572 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16573 { (eval echo configure:16574: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16574 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16575 if test -z "$ac_err"; then
16577 eval "ac_cv_header_$ac_safe=yes"
16580 echo "configure: failed program was:" >&5
16581 cat conftest.$ac_ext >&5
16583 eval "ac_cv_header_$ac_safe=no"
16587 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16588 echo "$ac_t""yes" 1>&6
16589 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16590 cat >> confdefs.h <<EOF
16591 #define $ac_tr_hdr 1
16595 echo "$ac_t""no" 1>&6
16599 for ac_hdr in lwp/lwp.h
16601 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16602 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16603 echo "configure:16604: checking for $ac_hdr" >&5
16604 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16605 echo $ac_n "(cached) $ac_c" 1>&6
16607 cat > conftest.$ac_ext <<EOF
16608 #line 16609 "configure"
16609 #include "confdefs.h"
16612 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16613 { (eval echo configure:16614: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16614 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16615 if test -z "$ac_err"; then
16617 eval "ac_cv_header_$ac_safe=yes"
16620 echo "configure: failed program was:" >&5
16621 cat conftest.$ac_ext >&5
16623 eval "ac_cv_header_$ac_safe=no"
16627 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16628 echo "$ac_t""yes" 1>&6
16629 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16630 cat >> confdefs.h <<EOF
16631 #define $ac_tr_hdr 1
16635 echo "$ac_t""no" 1>&6
16639 for ac_hdr in thread.h synch.h
16641 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16642 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16643 echo "configure:16644: checking for $ac_hdr" >&5
16644 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16645 echo $ac_n "(cached) $ac_c" 1>&6
16647 cat > conftest.$ac_ext <<EOF
16648 #line 16649 "configure"
16649 #include "confdefs.h"
16652 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16653 { (eval echo configure:16654: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16654 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16655 if test -z "$ac_err"; then
16657 eval "ac_cv_header_$ac_safe=yes"
16660 echo "configure: failed program was:" >&5
16661 cat conftest.$ac_ext >&5
16663 eval "ac_cv_header_$ac_safe=no"
16667 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16668 echo "$ac_t""yes" 1>&6
16669 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16670 cat >> confdefs.h <<EOF
16671 #define $ac_tr_hdr 1
16675 echo "$ac_t""no" 1>&6
16681 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
16682 cat >> confdefs.h <<\EOF
16683 #define REENTRANT 1
16686 cat >> confdefs.h <<\EOF
16687 #define _REENTRANT 1
16690 cat >> confdefs.h <<\EOF
16691 #define THREAD_SAFE 1
16694 cat >> confdefs.h <<\EOF
16695 #define _THREAD_SAFE 1
16698 cat >> confdefs.h <<\EOF
16699 #define THREADSAFE 1
16702 cat >> confdefs.h <<\EOF
16703 #define _THREADSAFE 1
16706 cat >> confdefs.h <<\EOF
16707 #define _SGI_MP_SOURCE 1
16711 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
16712 echo "configure:16713: checking for thread specific errno" >&5
16713 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
16714 echo $ac_n "(cached) $ac_c" 1>&6
16717 cat > conftest.$ac_ext <<EOF
16718 #line 16719 "configure"
16719 #include "confdefs.h"
16725 if { (eval echo configure:16726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16727 ol_cv_errno_thread_specific=yes
16729 echo "configure: failed program was:" >&5
16730 cat conftest.$ac_ext >&5
16732 ol_cv_errno_thread_specific=no
16738 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
16740 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
16741 echo "configure:16742: checking for thread specific h_errno" >&5
16742 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
16743 echo $ac_n "(cached) $ac_c" 1>&6
16746 cat > conftest.$ac_ext <<EOF
16747 #line 16748 "configure"
16748 #include "confdefs.h"
16754 if { (eval echo configure:16755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16756 ol_cv_h_errno_thread_specific=yes
16758 echo "configure: failed program was:" >&5
16759 cat conftest.$ac_ext >&5
16761 ol_cv_h_errno_thread_specific=no
16767 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
16769 if test $ol_cv_errno_thread_specific != yes \
16770 -o $ol_cv_h_errno_thread_specific != yes ; then
16771 LIBS="$LTHREAD_LIBS $LIBS"
16777 if test $ol_link_threads = no ; then
16778 if test $ol_with_threads = yes ; then
16779 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
16782 if test $ol_with_threads = auto ; then
16783 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
16787 cat >> confdefs.h <<\EOF
16788 #define NO_THREADS 1
16794 if test $ol_link_threads != no ; then
16795 cat >> confdefs.h <<\EOF
16796 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
16803 if test $ol_with_ldbm_api = auto \
16804 -o $ol_with_ldbm_api = berkeley \
16805 -o $ol_with_ldbm_api = bcompat ; then
16807 if test $ol_with_ldbm_api = bcompat; then \
16808 for ac_hdr in db_185.h db.h
16810 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16811 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16812 echo "configure:16813: checking for $ac_hdr" >&5
16813 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16814 echo $ac_n "(cached) $ac_c" 1>&6
16816 cat > conftest.$ac_ext <<EOF
16817 #line 16818 "configure"
16818 #include "confdefs.h"
16821 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16822 { (eval echo configure:16823: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16823 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16824 if test -z "$ac_err"; then
16826 eval "ac_cv_header_$ac_safe=yes"
16829 echo "configure: failed program was:" >&5
16830 cat conftest.$ac_ext >&5
16832 eval "ac_cv_header_$ac_safe=no"
16836 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16837 echo "$ac_t""yes" 1>&6
16838 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16839 cat >> confdefs.h <<EOF
16840 #define $ac_tr_hdr 1
16844 echo "$ac_t""no" 1>&6
16848 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
16849 echo $ac_n "checking if Berkeley DB header compatibility""... $ac_c" 1>&6
16850 echo "configure:16851: checking if Berkeley DB header compatibility" >&5
16851 if eval "test \"\${ol_cv_header_db1+set}\" = set"; then
16852 echo $ac_n "(cached) $ac_c" 1>&6
16855 cat > conftest.$ac_ext <<EOF
16856 #line 16857 "configure"
16857 #include "confdefs.h"
16860 # include <db_185.h>
16865 /* this check could be improved */
16866 #ifndef DB_VERSION_MAJOR
16867 # define DB_VERSION_MAJOR 1
16870 #if DB_VERSION_MAJOR == 1
16875 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16876 egrep "__db_version_1" >/dev/null 2>&1; then
16878 ol_cv_header_db1=yes
16881 ol_cv_header_db1=no
16887 echo "$ac_t""$ol_cv_header_db1" 1>&6
16889 if test $ol_cv_header_db1 = yes ; then
16891 if test $ol_cv_lib_db = no ; then
16892 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
16893 echo "configure:16894: checking for Berkeley DB link (default)" >&5
16894 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
16895 echo $ac_n "(cached) $ac_c" 1>&6
16900 LIBS="$ol_DB_LIB $LIBS"
16902 cat > conftest.$ac_ext <<EOF
16903 #line 16904 "configure"
16904 #include "confdefs.h"
16906 #ifdef HAVE_DB_185_H
16907 # include <db_185.h>
16912 #ifndef DB_VERSION_MAJOR
16913 # define DB_VERSION_MAJOR 1
16917 #define NULL ((void*)0)
16922 #if DB_VERSION_MAJOR > 1
16925 int major, minor, patch;
16927 version = db_version( &major, &minor, &patch );
16929 if( major != DB_VERSION_MAJOR ||
16930 minor < DB_VERSION_MINOR )
16932 printf("Berkeley DB version mismatch\n"
16933 "\texpected: %s\n\tgot: %s\n",
16934 DB_VERSION_STRING, version);
16940 #if DB_VERSION_MAJOR > 2
16941 db_env_create( NULL, 0 );
16942 #elif DB_VERSION_MAJOR > 1
16943 db_appexit( NULL );
16945 (void) dbopen( NULL, 0, 0, 0, NULL);
16950 if { (eval echo configure:16951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16954 echo "configure: failed program was:" >&5
16955 cat conftest.$ac_ext >&5
16965 echo "$ac_t""$ol_cv_db_none" 1>&6
16967 if test $ol_cv_db_none = yes ; then
16972 if test $ol_cv_lib_db = no ; then
16973 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
16974 echo "configure:16975: checking for Berkeley DB link (-ldb)" >&5
16975 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
16976 echo $ac_n "(cached) $ac_c" 1>&6
16981 LIBS="$ol_DB_LIB $LIBS"
16983 cat > conftest.$ac_ext <<EOF
16984 #line 16985 "configure"
16985 #include "confdefs.h"
16987 #ifdef HAVE_DB_185_H
16988 # include <db_185.h>
16993 #ifndef DB_VERSION_MAJOR
16994 # define DB_VERSION_MAJOR 1
16998 #define NULL ((void*)0)
17003 #if DB_VERSION_MAJOR > 1
17006 int major, minor, patch;
17008 version = db_version( &major, &minor, &patch );
17010 if( major != DB_VERSION_MAJOR ||
17011 minor < DB_VERSION_MINOR )
17013 printf("Berkeley DB version mismatch\n"
17014 "\texpected: %s\n\tgot: %s\n",
17015 DB_VERSION_STRING, version);
17021 #if DB_VERSION_MAJOR > 2
17022 db_env_create( NULL, 0 );
17023 #elif DB_VERSION_MAJOR > 1
17024 db_appexit( NULL );
17026 (void) dbopen( NULL, 0, 0, 0, NULL);
17031 if { (eval echo configure:17032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17035 echo "configure: failed program was:" >&5
17036 cat conftest.$ac_ext >&5
17046 echo "$ac_t""$ol_cv_db_db" 1>&6
17048 if test $ol_cv_db_db = yes ; then
17053 if test $ol_cv_lib_db = no ; then
17054 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
17055 echo "configure:17056: checking for Berkeley DB link (-ldb4)" >&5
17056 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
17057 echo $ac_n "(cached) $ac_c" 1>&6
17062 LIBS="$ol_DB_LIB $LIBS"
17064 cat > conftest.$ac_ext <<EOF
17065 #line 17066 "configure"
17066 #include "confdefs.h"
17068 #ifdef HAVE_DB_185_H
17069 # include <db_185.h>
17074 #ifndef DB_VERSION_MAJOR
17075 # define DB_VERSION_MAJOR 1
17079 #define NULL ((void*)0)
17084 #if DB_VERSION_MAJOR > 1
17087 int major, minor, patch;
17089 version = db_version( &major, &minor, &patch );
17091 if( major != DB_VERSION_MAJOR ||
17092 minor < DB_VERSION_MINOR )
17094 printf("Berkeley DB version mismatch\n"
17095 "\texpected: %s\n\tgot: %s\n",
17096 DB_VERSION_STRING, version);
17102 #if DB_VERSION_MAJOR > 2
17103 db_env_create( NULL, 0 );
17104 #elif DB_VERSION_MAJOR > 1
17105 db_appexit( NULL );
17107 (void) dbopen( NULL, 0, 0, 0, NULL);
17112 if { (eval echo configure:17113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17116 echo "configure: failed program was:" >&5
17117 cat conftest.$ac_ext >&5
17127 echo "$ac_t""$ol_cv_db_db4" 1>&6
17129 if test $ol_cv_db_db4 = yes ; then
17134 if test $ol_cv_lib_db = no ; then
17135 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
17136 echo "configure:17137: checking for Berkeley DB link (-ldb3)" >&5
17137 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
17138 echo $ac_n "(cached) $ac_c" 1>&6
17143 LIBS="$ol_DB_LIB $LIBS"
17145 cat > conftest.$ac_ext <<EOF
17146 #line 17147 "configure"
17147 #include "confdefs.h"
17149 #ifdef HAVE_DB_185_H
17150 # include <db_185.h>
17155 #ifndef DB_VERSION_MAJOR
17156 # define DB_VERSION_MAJOR 1
17160 #define NULL ((void*)0)
17165 #if DB_VERSION_MAJOR > 1
17168 int major, minor, patch;
17170 version = db_version( &major, &minor, &patch );
17172 if( major != DB_VERSION_MAJOR ||
17173 minor < DB_VERSION_MINOR )
17175 printf("Berkeley DB version mismatch\n"
17176 "\texpected: %s\n\tgot: %s\n",
17177 DB_VERSION_STRING, version);
17183 #if DB_VERSION_MAJOR > 2
17184 db_env_create( NULL, 0 );
17185 #elif DB_VERSION_MAJOR > 1
17186 db_appexit( NULL );
17188 (void) dbopen( NULL, 0, 0, 0, NULL);
17193 if { (eval echo configure:17194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17197 echo "configure: failed program was:" >&5
17198 cat conftest.$ac_ext >&5
17208 echo "$ac_t""$ol_cv_db_db3" 1>&6
17210 if test $ol_cv_db_db3 = yes ; then
17215 if test $ol_cv_lib_db = no ; then
17216 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
17217 echo "configure:17218: checking for Berkeley DB link (-ldb2)" >&5
17218 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
17219 echo $ac_n "(cached) $ac_c" 1>&6
17224 LIBS="$ol_DB_LIB $LIBS"
17226 cat > conftest.$ac_ext <<EOF
17227 #line 17228 "configure"
17228 #include "confdefs.h"
17230 #ifdef HAVE_DB_185_H
17231 # include <db_185.h>
17236 #ifndef DB_VERSION_MAJOR
17237 # define DB_VERSION_MAJOR 1
17241 #define NULL ((void*)0)
17246 #if DB_VERSION_MAJOR > 1
17249 int major, minor, patch;
17251 version = db_version( &major, &minor, &patch );
17253 if( major != DB_VERSION_MAJOR ||
17254 minor < DB_VERSION_MINOR )
17256 printf("Berkeley DB version mismatch\n"
17257 "\texpected: %s\n\tgot: %s\n",
17258 DB_VERSION_STRING, version);
17264 #if DB_VERSION_MAJOR > 2
17265 db_env_create( NULL, 0 );
17266 #elif DB_VERSION_MAJOR > 1
17267 db_appexit( NULL );
17269 (void) dbopen( NULL, 0, 0, 0, NULL);
17274 if { (eval echo configure:17275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17278 echo "configure: failed program was:" >&5
17279 cat conftest.$ac_ext >&5
17289 echo "$ac_t""$ol_cv_db_db2" 1>&6
17291 if test $ol_cv_db_db2 = yes ; then
17296 if test $ol_cv_lib_db = no ; then
17297 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
17298 echo "configure:17299: checking for Berkeley DB link (-ldb1)" >&5
17299 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
17300 echo $ac_n "(cached) $ac_c" 1>&6
17305 LIBS="$ol_DB_LIB $LIBS"
17307 cat > conftest.$ac_ext <<EOF
17308 #line 17309 "configure"
17309 #include "confdefs.h"
17311 #ifdef HAVE_DB_185_H
17312 # include <db_185.h>
17317 #ifndef DB_VERSION_MAJOR
17318 # define DB_VERSION_MAJOR 1
17322 #define NULL ((void*)0)
17327 #if DB_VERSION_MAJOR > 1
17330 int major, minor, patch;
17332 version = db_version( &major, &minor, &patch );
17334 if( major != DB_VERSION_MAJOR ||
17335 minor < DB_VERSION_MINOR )
17337 printf("Berkeley DB version mismatch\n"
17338 "\texpected: %s\n\tgot: %s\n",
17339 DB_VERSION_STRING, version);
17345 #if DB_VERSION_MAJOR > 2
17346 db_env_create( NULL, 0 );
17347 #elif DB_VERSION_MAJOR > 1
17348 db_appexit( NULL );
17350 (void) dbopen( NULL, 0, 0, 0, NULL);
17355 if { (eval echo configure:17356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17359 echo "configure: failed program was:" >&5
17360 cat conftest.$ac_ext >&5
17370 echo "$ac_t""$ol_cv_db_db1" 1>&6
17372 if test $ol_cv_db_db1 = yes ; then
17378 if test "$ol_cv_lib_db" != no ; then
17379 ol_cv_berkeley_db=yes
17385 ol_cv_berkeley_db=no
17388 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17389 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17390 echo "configure:17391: checking for $ac_hdr" >&5
17391 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
17392 echo $ac_n "(cached) $ac_c" 1>&6
17394 cat > conftest.$ac_ext <<EOF
17395 #line 17396 "configure"
17396 #include "confdefs.h"
17399 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17400 { (eval echo configure:17401: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17401 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17402 if test -z "$ac_err"; then
17404 eval "ac_cv_header_$ac_safe=yes"
17407 echo "configure: failed program was:" >&5
17408 cat conftest.$ac_ext >&5
17410 eval "ac_cv_header_$ac_safe=no"
17414 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17415 echo "$ac_t""yes" 1>&6
17416 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17417 cat >> confdefs.h <<EOF
17418 #define $ac_tr_hdr 1
17422 echo "$ac_t""no" 1>&6
17426 if test $ac_cv_header_db_h = yes; then
17428 if test $ol_cv_lib_db = no ; then
17429 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
17430 echo "configure:17431: checking for Berkeley DB link (default)" >&5
17431 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
17432 echo $ac_n "(cached) $ac_c" 1>&6
17437 LIBS="$ol_DB_LIB $LIBS"
17439 cat > conftest.$ac_ext <<EOF
17440 #line 17441 "configure"
17441 #include "confdefs.h"
17443 #ifdef HAVE_DB_185_H
17444 # include <db_185.h>
17449 #ifndef DB_VERSION_MAJOR
17450 # define DB_VERSION_MAJOR 1
17454 #define NULL ((void*)0)
17459 #if DB_VERSION_MAJOR > 1
17462 int major, minor, patch;
17464 version = db_version( &major, &minor, &patch );
17466 if( major != DB_VERSION_MAJOR ||
17467 minor < DB_VERSION_MINOR )
17469 printf("Berkeley DB version mismatch\n"
17470 "\texpected: %s\n\tgot: %s\n",
17471 DB_VERSION_STRING, version);
17477 #if DB_VERSION_MAJOR > 2
17478 db_env_create( NULL, 0 );
17479 #elif DB_VERSION_MAJOR > 1
17480 db_appexit( NULL );
17482 (void) dbopen( NULL, 0, 0, 0, NULL);
17487 if { (eval echo configure:17488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17491 echo "configure: failed program was:" >&5
17492 cat conftest.$ac_ext >&5
17502 echo "$ac_t""$ol_cv_db_none" 1>&6
17504 if test $ol_cv_db_none = yes ; then
17509 if test $ol_cv_lib_db = no ; then
17510 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
17511 echo "configure:17512: checking for Berkeley DB link (-ldb)" >&5
17512 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
17513 echo $ac_n "(cached) $ac_c" 1>&6
17518 LIBS="$ol_DB_LIB $LIBS"
17520 cat > conftest.$ac_ext <<EOF
17521 #line 17522 "configure"
17522 #include "confdefs.h"
17524 #ifdef HAVE_DB_185_H
17525 # include <db_185.h>
17530 #ifndef DB_VERSION_MAJOR
17531 # define DB_VERSION_MAJOR 1
17535 #define NULL ((void*)0)
17540 #if DB_VERSION_MAJOR > 1
17543 int major, minor, patch;
17545 version = db_version( &major, &minor, &patch );
17547 if( major != DB_VERSION_MAJOR ||
17548 minor < DB_VERSION_MINOR )
17550 printf("Berkeley DB version mismatch\n"
17551 "\texpected: %s\n\tgot: %s\n",
17552 DB_VERSION_STRING, version);
17558 #if DB_VERSION_MAJOR > 2
17559 db_env_create( NULL, 0 );
17560 #elif DB_VERSION_MAJOR > 1
17561 db_appexit( NULL );
17563 (void) dbopen( NULL, 0, 0, 0, NULL);
17568 if { (eval echo configure:17569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17572 echo "configure: failed program was:" >&5
17573 cat conftest.$ac_ext >&5
17583 echo "$ac_t""$ol_cv_db_db" 1>&6
17585 if test $ol_cv_db_db = yes ; then
17590 if test $ol_cv_lib_db = no ; then
17591 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
17592 echo "configure:17593: checking for Berkeley DB link (-ldb4)" >&5
17593 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
17594 echo $ac_n "(cached) $ac_c" 1>&6
17599 LIBS="$ol_DB_LIB $LIBS"
17601 cat > conftest.$ac_ext <<EOF
17602 #line 17603 "configure"
17603 #include "confdefs.h"
17605 #ifdef HAVE_DB_185_H
17606 # include <db_185.h>
17611 #ifndef DB_VERSION_MAJOR
17612 # define DB_VERSION_MAJOR 1
17616 #define NULL ((void*)0)
17621 #if DB_VERSION_MAJOR > 1
17624 int major, minor, patch;
17626 version = db_version( &major, &minor, &patch );
17628 if( major != DB_VERSION_MAJOR ||
17629 minor < DB_VERSION_MINOR )
17631 printf("Berkeley DB version mismatch\n"
17632 "\texpected: %s\n\tgot: %s\n",
17633 DB_VERSION_STRING, version);
17639 #if DB_VERSION_MAJOR > 2
17640 db_env_create( NULL, 0 );
17641 #elif DB_VERSION_MAJOR > 1
17642 db_appexit( NULL );
17644 (void) dbopen( NULL, 0, 0, 0, NULL);
17649 if { (eval echo configure:17650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17653 echo "configure: failed program was:" >&5
17654 cat conftest.$ac_ext >&5
17664 echo "$ac_t""$ol_cv_db_db4" 1>&6
17666 if test $ol_cv_db_db4 = yes ; then
17671 if test $ol_cv_lib_db = no ; then
17672 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
17673 echo "configure:17674: checking for Berkeley DB link (-ldb3)" >&5
17674 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
17675 echo $ac_n "(cached) $ac_c" 1>&6
17680 LIBS="$ol_DB_LIB $LIBS"
17682 cat > conftest.$ac_ext <<EOF
17683 #line 17684 "configure"
17684 #include "confdefs.h"
17686 #ifdef HAVE_DB_185_H
17687 # include <db_185.h>
17692 #ifndef DB_VERSION_MAJOR
17693 # define DB_VERSION_MAJOR 1
17697 #define NULL ((void*)0)
17702 #if DB_VERSION_MAJOR > 1
17705 int major, minor, patch;
17707 version = db_version( &major, &minor, &patch );
17709 if( major != DB_VERSION_MAJOR ||
17710 minor < DB_VERSION_MINOR )
17712 printf("Berkeley DB version mismatch\n"
17713 "\texpected: %s\n\tgot: %s\n",
17714 DB_VERSION_STRING, version);
17720 #if DB_VERSION_MAJOR > 2
17721 db_env_create( NULL, 0 );
17722 #elif DB_VERSION_MAJOR > 1
17723 db_appexit( NULL );
17725 (void) dbopen( NULL, 0, 0, 0, NULL);
17730 if { (eval echo configure:17731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17734 echo "configure: failed program was:" >&5
17735 cat conftest.$ac_ext >&5
17745 echo "$ac_t""$ol_cv_db_db3" 1>&6
17747 if test $ol_cv_db_db3 = yes ; then
17752 if test $ol_cv_lib_db = no ; then
17753 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
17754 echo "configure:17755: checking for Berkeley DB link (-ldb2)" >&5
17755 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
17756 echo $ac_n "(cached) $ac_c" 1>&6
17761 LIBS="$ol_DB_LIB $LIBS"
17763 cat > conftest.$ac_ext <<EOF
17764 #line 17765 "configure"
17765 #include "confdefs.h"
17767 #ifdef HAVE_DB_185_H
17768 # include <db_185.h>
17773 #ifndef DB_VERSION_MAJOR
17774 # define DB_VERSION_MAJOR 1
17778 #define NULL ((void*)0)
17783 #if DB_VERSION_MAJOR > 1
17786 int major, minor, patch;
17788 version = db_version( &major, &minor, &patch );
17790 if( major != DB_VERSION_MAJOR ||
17791 minor < DB_VERSION_MINOR )
17793 printf("Berkeley DB version mismatch\n"
17794 "\texpected: %s\n\tgot: %s\n",
17795 DB_VERSION_STRING, version);
17801 #if DB_VERSION_MAJOR > 2
17802 db_env_create( NULL, 0 );
17803 #elif DB_VERSION_MAJOR > 1
17804 db_appexit( NULL );
17806 (void) dbopen( NULL, 0, 0, 0, NULL);
17811 if { (eval echo configure:17812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17815 echo "configure: failed program was:" >&5
17816 cat conftest.$ac_ext >&5
17826 echo "$ac_t""$ol_cv_db_db2" 1>&6
17828 if test $ol_cv_db_db2 = yes ; then
17833 if test $ol_cv_lib_db = no ; then
17834 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
17835 echo "configure:17836: checking for Berkeley DB link (-ldb1)" >&5
17836 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
17837 echo $ac_n "(cached) $ac_c" 1>&6
17842 LIBS="$ol_DB_LIB $LIBS"
17844 cat > conftest.$ac_ext <<EOF
17845 #line 17846 "configure"
17846 #include "confdefs.h"
17848 #ifdef HAVE_DB_185_H
17849 # include <db_185.h>
17854 #ifndef DB_VERSION_MAJOR
17855 # define DB_VERSION_MAJOR 1
17859 #define NULL ((void*)0)
17864 #if DB_VERSION_MAJOR > 1
17867 int major, minor, patch;
17869 version = db_version( &major, &minor, &patch );
17871 if( major != DB_VERSION_MAJOR ||
17872 minor < DB_VERSION_MINOR )
17874 printf("Berkeley DB version mismatch\n"
17875 "\texpected: %s\n\tgot: %s\n",
17876 DB_VERSION_STRING, version);
17882 #if DB_VERSION_MAJOR > 2
17883 db_env_create( NULL, 0 );
17884 #elif DB_VERSION_MAJOR > 1
17885 db_appexit( NULL );
17887 (void) dbopen( NULL, 0, 0, 0, NULL);
17892 if { (eval echo configure:17893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17896 echo "configure: failed program was:" >&5
17897 cat conftest.$ac_ext >&5
17907 echo "$ac_t""$ol_cv_db_db1" 1>&6
17909 if test $ol_cv_db_db1 = yes ; then
17915 if test "$ol_cv_lib_db" != no ; then
17916 ol_cv_berkeley_db=yes
17917 echo $ac_n "checking for Berkeley DB thread support""... $ac_c" 1>&6
17918 echo "configure:17919: checking for Berkeley DB thread support" >&5
17919 if eval "test \"\${ol_cv_berkeley_db_thread+set}\" = set"; then
17920 echo $ac_n "(cached) $ac_c" 1>&6
17924 if test $ol_cv_lib_db != yes ; then
17925 LIBS="$ol_cv_lib_db"
17928 if test "$cross_compiling" = yes; then
17929 ol_cv_berkeley_db_thread=cross
17931 cat > conftest.$ac_ext <<EOF
17932 #line 17933 "configure"
17933 #include "confdefs.h"
17935 #ifdef HAVE_DB_185_H
17941 #define NULL ((void *)0)
17946 u_int32_t flags = DB_CREATE |
17952 #if DB_VERSION_MAJOR > 2
17953 DB_ENV *env = NULL;
17955 rc = db_env_create( &env, 0 );
17957 flags |= DB_INIT_MPOOL;
17958 #ifdef DB_MPOOL_PRIVATE
17959 flags |= DB_MPOOL_PRIVATE;
17963 printf("BerkeleyDB: %s\n", db_strerror(rc) );
17967 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
17968 rc = env->open( env, NULL, flags, 0 );
17970 rc = env->open( env, NULL, NULL, flags, 0 );
17974 rc = env->close( env, 0 );
17978 printf("BerkeleyDB: %s\n", db_strerror(rc) );
17984 memset( &env, '\0', sizeof(env) );
17986 rc = db_appinit( NULL, NULL, &env, flags );
17989 db_appexit( &env );
17992 unlink("__db_mpool.share");
17993 unlink("__db_lock.share");
17999 if { (eval echo configure:18000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
18001 ol_cv_berkeley_db_thread=yes
18003 echo "configure: failed program was:" >&5
18004 cat conftest.$ac_ext >&5
18006 ol_cv_berkeley_db_thread=no
18014 if test $ol_cv_berkeley_db_thread != no ; then
18015 cat >> confdefs.h <<\EOF
18016 #define HAVE_BERKELEY_DB_THREAD 1
18023 echo "$ac_t""$ol_cv_berkeley_db_thread" 1>&6
18029 if test $ol_cv_berkeley_db != no ; then
18030 cat >> confdefs.h <<\EOF
18031 #define HAVE_BERKELEY_DB 1
18035 ol_link_ldbm=berkeley
18036 ol_with_ldbm_api=berkeley
18038 if test $ol_with_ldbm_type = hash ; then
18039 cat >> confdefs.h <<\EOF
18040 #define LDBM_USE_DBHASH 1
18044 cat >> confdefs.h <<\EOF
18045 #define LDBM_USE_DBBTREE 1
18050 if test $ol_cv_lib_db != yes ; then
18051 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
18056 if test $ol_enable_bdb = yes -a $ol_link_ldbm != berkeley ; then
18057 { echo "configure: error: BDB: BerkeleyDB not available" 1>&2; exit 1; }
18058 elif test $ol_enable_bdb != no -a $ol_link_ldbm = berkeley ; then
18059 echo $ac_n "checking Berkeley DB version for BDB backend""... $ac_c" 1>&6
18060 echo "configure:18061: checking Berkeley DB version for BDB backend" >&5
18061 if eval "test \"\${ol_cv_bdb_compat+set}\" = set"; then
18062 echo $ac_n "(cached) $ac_c" 1>&6
18065 cat > conftest.$ac_ext <<EOF
18066 #line 18067 "configure"
18067 #include "confdefs.h"
18071 /* this check could be improved */
18072 #ifndef DB_VERSION_MAJOR
18073 # define DB_VERSION_MAJOR 1
18076 /* require 4.0 or later */
18077 #if DB_VERSION_MAJOR >= 4
18078 __db_version_compat
18082 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18083 egrep "__db_version_compat" >/dev/null 2>&1; then
18085 ol_cv_bdb_compat=yes
18088 ol_cv_bdb_compat=no
18094 echo "$ac_t""$ol_cv_bdb_compat" 1>&6
18097 if test $ol_cv_bdb_compat = yes ; then
18099 elif test $ol_enable_bdb = yes ; then
18100 { echo "configure: error: BDB: BerkeleyDB version incompatible" 1>&2; exit 1; }
18106 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
18107 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
18108 ol_with_ldbm_api=none
18111 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
18112 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
18113 echo "configure:18114: checking for MDBM library" >&5
18114 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
18115 echo $ac_n "(cached) $ac_c" 1>&6
18118 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
18119 echo "configure:18120: checking for mdbm_set_chain" >&5
18120 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
18121 echo $ac_n "(cached) $ac_c" 1>&6
18123 cat > conftest.$ac_ext <<EOF
18124 #line 18125 "configure"
18125 #include "confdefs.h"
18126 /* System header to define __stub macros and hopefully few prototypes,
18127 which can conflict with char mdbm_set_chain(); below. */
18128 #include <assert.h>
18129 /* Override any gcc2 internal prototype to avoid an error. */
18130 /* We use char because int might match the return type of a gcc2
18131 builtin and then its argument prototype would still apply. */
18132 char mdbm_set_chain();
18137 /* The GNU C library defines this for functions which it implements
18138 to always fail with ENOSYS. Some functions are actually named
18139 something starting with __ and the normal name is an alias. */
18140 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
18143 f = mdbm_set_chain;
18148 if { (eval echo configure:18149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18150 eval "ac_cv_func_mdbm_set_chain=yes"
18152 echo "configure: failed program was:" >&5
18153 cat conftest.$ac_ext >&5
18155 eval "ac_cv_func_mdbm_set_chain=no"
18160 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
18161 echo "$ac_t""yes" 1>&6
18164 echo "$ac_t""no" 1>&6
18166 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
18167 echo "configure:18168: checking for mdbm_set_chain in -lmdbm" >&5
18168 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
18169 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
18170 echo $ac_n "(cached) $ac_c" 1>&6
18172 ac_save_LIBS="$LIBS"
18173 LIBS="-lmdbm $LIBS"
18174 cat > conftest.$ac_ext <<EOF
18175 #line 18176 "configure"
18176 #include "confdefs.h"
18177 /* Override any gcc2 internal prototype to avoid an error. */
18178 /* We use char because int might match the return type of a gcc2
18179 builtin and then its argument prototype would still apply. */
18180 char mdbm_set_chain();
18186 if { (eval echo configure:18187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18188 eval "ac_cv_lib_$ac_lib_var=yes"
18190 echo "configure: failed program was:" >&5
18191 cat conftest.$ac_ext >&5
18193 eval "ac_cv_lib_$ac_lib_var=no"
18196 LIBS="$ac_save_LIBS"
18199 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18200 echo "$ac_t""yes" 1>&6
18201 ol_cv_lib_mdbm=-lmdbm
18203 echo "$ac_t""no" 1>&6
18214 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
18217 for ac_hdr in mdbm.h
18219 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18220 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18221 echo "configure:18222: checking for $ac_hdr" >&5
18222 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
18223 echo $ac_n "(cached) $ac_c" 1>&6
18225 cat > conftest.$ac_ext <<EOF
18226 #line 18227 "configure"
18227 #include "confdefs.h"
18230 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18231 { (eval echo configure:18232: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18232 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18233 if test -z "$ac_err"; then
18235 eval "ac_cv_header_$ac_safe=yes"
18238 echo "configure: failed program was:" >&5
18239 cat conftest.$ac_ext >&5
18241 eval "ac_cv_header_$ac_safe=no"
18245 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18246 echo "$ac_t""yes" 1>&6
18247 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18248 cat >> confdefs.h <<EOF
18249 #define $ac_tr_hdr 1
18253 echo "$ac_t""no" 1>&6
18257 echo $ac_n "checking for db""... $ac_c" 1>&6
18258 echo "configure:18259: checking for db" >&5
18259 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
18260 echo $ac_n "(cached) $ac_c" 1>&6
18263 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
18271 echo "$ac_t""$ol_cv_mdbm" 1>&6
18272 if test $ol_cv_mdbm = yes ; then
18273 cat >> confdefs.h <<\EOF
18274 #define HAVE_MDBM 1
18280 if test $ol_cv_mdbm = yes ; then
18282 ol_with_ldbm_api=mdbm
18283 if test $ol_cv_lib_mdbm != yes ; then
18284 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
18289 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
18290 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
18291 echo "configure:18292: checking for GDBM library" >&5
18292 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
18293 echo $ac_n "(cached) $ac_c" 1>&6
18296 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
18297 echo "configure:18298: checking for gdbm_open" >&5
18298 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
18299 echo $ac_n "(cached) $ac_c" 1>&6
18301 cat > conftest.$ac_ext <<EOF
18302 #line 18303 "configure"
18303 #include "confdefs.h"
18304 /* System header to define __stub macros and hopefully few prototypes,
18305 which can conflict with char gdbm_open(); below. */
18306 #include <assert.h>
18307 /* Override any gcc2 internal prototype to avoid an error. */
18308 /* We use char because int might match the return type of a gcc2
18309 builtin and then its argument prototype would still apply. */
18315 /* The GNU C library defines this for functions which it implements
18316 to always fail with ENOSYS. Some functions are actually named
18317 something starting with __ and the normal name is an alias. */
18318 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
18326 if { (eval echo configure:18327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18328 eval "ac_cv_func_gdbm_open=yes"
18330 echo "configure: failed program was:" >&5
18331 cat conftest.$ac_ext >&5
18333 eval "ac_cv_func_gdbm_open=no"
18338 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
18339 echo "$ac_t""yes" 1>&6
18342 echo "$ac_t""no" 1>&6
18344 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
18345 echo "configure:18346: checking for gdbm_open in -lgdbm" >&5
18346 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
18347 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
18348 echo $ac_n "(cached) $ac_c" 1>&6
18350 ac_save_LIBS="$LIBS"
18351 LIBS="-lgdbm $LIBS"
18352 cat > conftest.$ac_ext <<EOF
18353 #line 18354 "configure"
18354 #include "confdefs.h"
18355 /* Override any gcc2 internal prototype to avoid an error. */
18356 /* We use char because int might match the return type of a gcc2
18357 builtin and then its argument prototype would still apply. */
18364 if { (eval echo configure:18365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18366 eval "ac_cv_lib_$ac_lib_var=yes"
18368 echo "configure: failed program was:" >&5
18369 cat conftest.$ac_ext >&5
18371 eval "ac_cv_lib_$ac_lib_var=no"
18374 LIBS="$ac_save_LIBS"
18377 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18378 echo "$ac_t""yes" 1>&6
18379 ol_cv_lib_gdbm=-lgdbm
18381 echo "$ac_t""no" 1>&6
18392 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
18395 for ac_hdr in gdbm.h
18397 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18398 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18399 echo "configure:18400: checking for $ac_hdr" >&5
18400 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
18401 echo $ac_n "(cached) $ac_c" 1>&6
18403 cat > conftest.$ac_ext <<EOF
18404 #line 18405 "configure"
18405 #include "confdefs.h"
18408 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18409 { (eval echo configure:18410: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18410 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18411 if test -z "$ac_err"; then
18413 eval "ac_cv_header_$ac_safe=yes"
18416 echo "configure: failed program was:" >&5
18417 cat conftest.$ac_ext >&5
18419 eval "ac_cv_header_$ac_safe=no"
18423 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18424 echo "$ac_t""yes" 1>&6
18425 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18426 cat >> confdefs.h <<EOF
18427 #define $ac_tr_hdr 1
18431 echo "$ac_t""no" 1>&6
18435 echo $ac_n "checking for db""... $ac_c" 1>&6
18436 echo "configure:18437: checking for db" >&5
18437 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
18438 echo $ac_n "(cached) $ac_c" 1>&6
18441 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
18449 echo "$ac_t""$ol_cv_gdbm" 1>&6
18450 if test $ol_cv_gdbm = yes ; then
18451 cat >> confdefs.h <<\EOF
18452 #define HAVE_GDBM 1
18458 if test $ol_cv_gdbm = yes ; then
18460 ol_with_ldbm_api=gdbm
18462 if test $ol_cv_lib_gdbm != yes ; then
18463 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
18468 if test $ol_with_ldbm_api = ndbm ; then
18469 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
18470 echo "configure:18471: checking for NDBM library" >&5
18471 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
18472 echo $ac_n "(cached) $ac_c" 1>&6
18475 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
18476 echo "configure:18477: checking for dbm_open" >&5
18477 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
18478 echo $ac_n "(cached) $ac_c" 1>&6
18480 cat > conftest.$ac_ext <<EOF
18481 #line 18482 "configure"
18482 #include "confdefs.h"
18483 /* System header to define __stub macros and hopefully few prototypes,
18484 which can conflict with char dbm_open(); below. */
18485 #include <assert.h>
18486 /* Override any gcc2 internal prototype to avoid an error. */
18487 /* We use char because int might match the return type of a gcc2
18488 builtin and then its argument prototype would still apply. */
18494 /* The GNU C library defines this for functions which it implements
18495 to always fail with ENOSYS. Some functions are actually named
18496 something starting with __ and the normal name is an alias. */
18497 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
18505 if { (eval echo configure:18506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18507 eval "ac_cv_func_dbm_open=yes"
18509 echo "configure: failed program was:" >&5
18510 cat conftest.$ac_ext >&5
18512 eval "ac_cv_func_dbm_open=no"
18517 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
18518 echo "$ac_t""yes" 1>&6
18521 echo "$ac_t""no" 1>&6
18523 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
18524 echo "configure:18525: checking for dbm_open in -lndbm" >&5
18525 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
18526 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
18527 echo $ac_n "(cached) $ac_c" 1>&6
18529 ac_save_LIBS="$LIBS"
18530 LIBS="-lndbm $LIBS"
18531 cat > conftest.$ac_ext <<EOF
18532 #line 18533 "configure"
18533 #include "confdefs.h"
18534 /* Override any gcc2 internal prototype to avoid an error. */
18535 /* We use char because int might match the return type of a gcc2
18536 builtin and then its argument prototype would still apply. */
18543 if { (eval echo configure:18544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18545 eval "ac_cv_lib_$ac_lib_var=yes"
18547 echo "configure: failed program was:" >&5
18548 cat conftest.$ac_ext >&5
18550 eval "ac_cv_lib_$ac_lib_var=no"
18553 LIBS="$ac_save_LIBS"
18556 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18557 echo "$ac_t""yes" 1>&6
18558 ol_cv_lib_ndbm=-lndbm
18560 echo "$ac_t""no" 1>&6
18562 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
18563 echo "configure:18564: checking for dbm_open in -ldbm" >&5
18564 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
18565 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
18566 echo $ac_n "(cached) $ac_c" 1>&6
18568 ac_save_LIBS="$LIBS"
18570 cat > conftest.$ac_ext <<EOF
18571 #line 18572 "configure"
18572 #include "confdefs.h"
18573 /* Override any gcc2 internal prototype to avoid an error. */
18574 /* We use char because int might match the return type of a gcc2
18575 builtin and then its argument prototype would still apply. */
18582 if { (eval echo configure:18583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18584 eval "ac_cv_lib_$ac_lib_var=yes"
18586 echo "configure: failed program was:" >&5
18587 cat conftest.$ac_ext >&5
18589 eval "ac_cv_lib_$ac_lib_var=no"
18592 LIBS="$ac_save_LIBS"
18595 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18596 echo "$ac_t""yes" 1>&6
18597 ol_cv_lib_ndbm=-ldbm
18599 echo "$ac_t""no" 1>&6
18612 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
18615 for ac_hdr in ndbm.h
18617 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18618 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18619 echo "configure:18620: checking for $ac_hdr" >&5
18620 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
18621 echo $ac_n "(cached) $ac_c" 1>&6
18623 cat > conftest.$ac_ext <<EOF
18624 #line 18625 "configure"
18625 #include "confdefs.h"
18628 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18629 { (eval echo configure:18630: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18630 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18631 if test -z "$ac_err"; then
18633 eval "ac_cv_header_$ac_safe=yes"
18636 echo "configure: failed program was:" >&5
18637 cat conftest.$ac_ext >&5
18639 eval "ac_cv_header_$ac_safe=no"
18643 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18644 echo "$ac_t""yes" 1>&6
18645 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18646 cat >> confdefs.h <<EOF
18647 #define $ac_tr_hdr 1
18651 echo "$ac_t""no" 1>&6
18655 echo $ac_n "checking for db""... $ac_c" 1>&6
18656 echo "configure:18657: checking for db" >&5
18657 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
18658 echo $ac_n "(cached) $ac_c" 1>&6
18661 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
18669 echo "$ac_t""$ol_cv_ndbm" 1>&6
18670 if test $ol_cv_ndbm = yes ; then
18671 cat >> confdefs.h <<\EOF
18672 #define HAVE_NDBM 1
18678 if test $ol_cv_ndbm = yes ; then
18680 ol_with_ldbm_api=ndbm
18682 if test $ol_cv_lib_ndbm != yes ; then
18683 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
18688 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
18689 echo "configure: warning: could not find suitable LDBM backend" 1>&2
18690 if test $ol_enable_ldbm = yes ; then
18691 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
18694 echo "configure: warning: disabling LDBM" 1>&2
18698 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
18699 BUILD_LIBS_DYNAMIC=shared
18700 cat >> confdefs.h <<\EOF
18701 #define LDAP_LIBS_DYNAMIC 1
18705 BUILD_LIBS_DYNAMIC=static
18708 if test $ol_enable_wrappers != no ; then
18709 for ac_hdr in tcpd.h
18711 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18712 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18713 echo "configure:18714: checking for $ac_hdr" >&5
18714 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
18715 echo $ac_n "(cached) $ac_c" 1>&6
18717 cat > conftest.$ac_ext <<EOF
18718 #line 18719 "configure"
18719 #include "confdefs.h"
18722 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18723 { (eval echo configure:18724: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18724 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18725 if test -z "$ac_err"; then
18727 eval "ac_cv_header_$ac_safe=yes"
18730 echo "configure: failed program was:" >&5
18731 cat conftest.$ac_ext >&5
18733 eval "ac_cv_header_$ac_safe=no"
18737 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18738 echo "$ac_t""yes" 1>&6
18739 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18740 cat >> confdefs.h <<EOF
18741 #define $ac_tr_hdr 1
18744 echo $ac_n "checking for TCP wrappers library""... $ac_c" 1>&6
18745 echo "configure:18746: checking for TCP wrappers library" >&5
18747 LIBS="$LIBS -lwrap"
18748 cat > conftest.$ac_ext <<EOF
18749 #line 18750 "configure"
18750 #include "confdefs.h"
18753 int allow_severity = 0;
18754 int deny_severity = 0;
18756 struct request_info *req;
18764 if { (eval echo configure:18765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18766 echo "$ac_t""-lwrap" 1>&6
18770 echo "configure: failed program was:" >&5
18771 cat conftest.$ac_ext >&5
18775 cat > conftest.$ac_ext <<EOF
18776 #line 18777 "configure"
18777 #include "confdefs.h"
18780 int allow_severity = 0;
18781 int deny_severity = 0;
18783 struct request_info *req;
18791 if { (eval echo configure:18792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18793 echo "$ac_t""-lwrap -lnsl" 1>&6
18795 LIBS="$save_LIBS -lnsl"
18797 echo "configure: failed program was:" >&5
18798 cat conftest.$ac_ext >&5
18801 echo "$ac_t""no" 1>&6
18809 echo "$ac_t""no" 1>&6
18815 if test $have_wrappers = yes ; then
18816 cat >> confdefs.h <<\EOF
18817 #define HAVE_TCPD 1
18821 elif test $ol_enable_wrappers = yes ; then
18822 { echo "configure: error: could not find TCP wrappers, select apppropriate options ore disable" 1>&2; exit 1; }
18824 echo "configure: warning: could not find TCP wrappers, support disabled" 1>&2
18829 if test $ol_enable_syslog != no ; then
18830 echo $ac_n "checking for openlog""... $ac_c" 1>&6
18831 echo "configure:18832: checking for openlog" >&5
18832 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
18833 echo $ac_n "(cached) $ac_c" 1>&6
18835 cat > conftest.$ac_ext <<EOF
18836 #line 18837 "configure"
18837 #include "confdefs.h"
18838 /* System header to define __stub macros and hopefully few prototypes,
18839 which can conflict with char openlog(); below. */
18840 #include <assert.h>
18841 /* Override any gcc2 internal prototype to avoid an error. */
18842 /* We use char because int might match the return type of a gcc2
18843 builtin and then its argument prototype would still apply. */
18849 /* The GNU C library defines this for functions which it implements
18850 to always fail with ENOSYS. Some functions are actually named
18851 something starting with __ and the normal name is an alias. */
18852 #if defined (__stub_openlog) || defined (__stub___openlog)
18860 if { (eval echo configure:18861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18862 eval "ac_cv_func_openlog=yes"
18864 echo "configure: failed program was:" >&5
18865 cat conftest.$ac_ext >&5
18867 eval "ac_cv_func_openlog=no"
18872 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
18873 echo "$ac_t""yes" 1>&6
18876 echo "$ac_t""no" 1>&6
18879 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
18880 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
18882 ol_enable_syslog=$ac_cv_func_openlog
18887 if test $ol_enable_sql != no ; then
18888 echo $ac_n "checking for SQLDriverConnect in -liodbc""... $ac_c" 1>&6
18889 echo "configure:18890: checking for SQLDriverConnect in -liodbc" >&5
18890 ac_lib_var=`echo iodbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
18891 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
18892 echo $ac_n "(cached) $ac_c" 1>&6
18894 ac_save_LIBS="$LIBS"
18895 LIBS="-liodbc $LIBS"
18896 cat > conftest.$ac_ext <<EOF
18897 #line 18898 "configure"
18898 #include "confdefs.h"
18899 /* Override any gcc2 internal prototype to avoid an error. */
18900 /* We use char because int might match the return type of a gcc2
18901 builtin and then its argument prototype would still apply. */
18902 char SQLDriverConnect();
18908 if { (eval echo configure:18909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18910 eval "ac_cv_lib_$ac_lib_var=yes"
18912 echo "configure: failed program was:" >&5
18913 cat conftest.$ac_ext >&5
18915 eval "ac_cv_lib_$ac_lib_var=no"
18918 LIBS="$ac_save_LIBS"
18921 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18922 echo "$ac_t""yes" 1>&6
18925 echo "$ac_t""no" 1>&6
18929 if test $have_iodbc = yes ; then
18930 ol_link_sql="-liodbc"
18932 echo $ac_n "checking for SQLDriverConnect in -lodbc""... $ac_c" 1>&6
18933 echo "configure:18934: checking for SQLDriverConnect in -lodbc" >&5
18934 ac_lib_var=`echo odbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
18935 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
18936 echo $ac_n "(cached) $ac_c" 1>&6
18938 ac_save_LIBS="$LIBS"
18939 LIBS="-lodbc $LIBS"
18940 cat > conftest.$ac_ext <<EOF
18941 #line 18942 "configure"
18942 #include "confdefs.h"
18943 /* Override any gcc2 internal prototype to avoid an error. */
18944 /* We use char because int might match the return type of a gcc2
18945 builtin and then its argument prototype would still apply. */
18946 char SQLDriverConnect();
18952 if { (eval echo configure:18953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18954 eval "ac_cv_lib_$ac_lib_var=yes"
18956 echo "configure: failed program was:" >&5
18957 cat conftest.$ac_ext >&5
18959 eval "ac_cv_lib_$ac_lib_var=no"
18962 LIBS="$ac_save_LIBS"
18965 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18966 echo "$ac_t""yes" 1>&6
18969 echo "$ac_t""no" 1>&6
18973 if test $have_odbc = yes ; then
18974 ol_link_sql="-lodbc"
18978 if test $ol_link_sql != no ; then
18979 SLAPD_SQL_LIBS="$ol_link_sql"
18981 elif test $ol_enable_sql != auto ; then
18982 { echo "configure: error: could not locate suitable ODBC library" 1>&2; exit 1; }
18986 if test $ol_enable_tcl != no ; then
18987 for ac_hdr in tcl.h
18989 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18990 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18991 echo "configure:18992: checking for $ac_hdr" >&5
18992 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
18993 echo $ac_n "(cached) $ac_c" 1>&6
18995 cat > conftest.$ac_ext <<EOF
18996 #line 18997 "configure"
18997 #include "confdefs.h"
19000 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19001 { (eval echo configure:19002: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19002 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19003 if test -z "$ac_err"; then
19005 eval "ac_cv_header_$ac_safe=yes"
19008 echo "configure: failed program was:" >&5
19009 cat conftest.$ac_ext >&5
19011 eval "ac_cv_header_$ac_safe=no"
19015 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19016 echo "$ac_t""yes" 1>&6
19017 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19018 cat >> confdefs.h <<EOF
19019 #define $ac_tr_hdr 1
19023 echo "$ac_t""no" 1>&6
19028 if test $ac_cv_header_tcl_h != yes ; then
19031 for lib in tcl tcl7.6 tcl8.0 tcl8.2 ; do
19032 echo $ac_n "checking for main in -l$lib""... $ac_c" 1>&6
19033 echo "configure:19034: checking for main in -l$lib" >&5
19034 ac_lib_var=`echo $lib'_'main | sed 'y%./+-:%__p__%'`
19035 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19036 echo $ac_n "(cached) $ac_c" 1>&6
19038 ac_save_LIBS="$LIBS"
19039 LIBS="-l$lib $LIBS"
19040 cat > conftest.$ac_ext <<EOF
19041 #line 19042 "configure"
19042 #include "confdefs.h"
19048 if { (eval echo configure:19049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19050 eval "ac_cv_lib_$ac_lib_var=yes"
19052 echo "configure: failed program was:" >&5
19053 cat conftest.$ac_ext >&5
19055 eval "ac_cv_lib_$ac_lib_var=no"
19058 LIBS="$ac_save_LIBS"
19061 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19062 echo "$ac_t""yes" 1>&6
19064 if test x"$ol_with_tcl_module" = "xstatic" ; then
19065 SLAPD_LIBS="$SLAPD_LIBS -l${lib}"
19067 MOD_TCL_LIB="-l${lib}"
19070 echo "$ac_t""no" 1>&6
19077 if test $have_tcl != yes ; then
19078 echo "configure: warning: could not find -ltcl" 1>&2
19079 if test $ol_enable_tcl = yes ; then
19080 { echo "configure: error: could not find tcl, select appropriate options or disable" 1>&2; exit 1; }
19088 for ac_hdr in termcap.h ncurses.h
19090 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19091 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19092 echo "configure:19093: checking for $ac_hdr" >&5
19093 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19094 echo $ac_n "(cached) $ac_c" 1>&6
19096 cat > conftest.$ac_ext <<EOF
19097 #line 19098 "configure"
19098 #include "confdefs.h"
19101 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19102 { (eval echo configure:19103: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19103 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19104 if test -z "$ac_err"; then
19106 eval "ac_cv_header_$ac_safe=yes"
19109 echo "configure: failed program was:" >&5
19110 cat conftest.$ac_ext >&5
19112 eval "ac_cv_header_$ac_safe=no"
19116 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19117 echo "$ac_t""yes" 1>&6
19118 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19119 cat >> confdefs.h <<EOF
19120 #define $ac_tr_hdr 1
19124 echo "$ac_t""no" 1>&6
19129 if test $ol_link_termcap = no ; then
19130 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
19131 echo "configure:19132: checking for tputs in -ltermcap" >&5
19132 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-:%__p__%'`
19133 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19134 echo $ac_n "(cached) $ac_c" 1>&6
19136 ac_save_LIBS="$LIBS"
19137 LIBS="-ltermcap $LIBS"
19138 cat > conftest.$ac_ext <<EOF
19139 #line 19140 "configure"
19140 #include "confdefs.h"
19141 /* Override any gcc2 internal prototype to avoid an error. */
19142 /* We use char because int might match the return type of a gcc2
19143 builtin and then its argument prototype would still apply. */
19150 if { (eval echo configure:19151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19152 eval "ac_cv_lib_$ac_lib_var=yes"
19154 echo "configure: failed program was:" >&5
19155 cat conftest.$ac_ext >&5
19157 eval "ac_cv_lib_$ac_lib_var=no"
19160 LIBS="$ac_save_LIBS"
19163 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19164 echo "$ac_t""yes" 1>&6
19167 echo "$ac_t""no" 1>&6
19171 if test $have_termcap = yes ; then
19172 cat >> confdefs.h <<\EOF
19173 #define HAVE_TERMCAP 1
19176 ol_link_termcap=yes
19177 TERMCAP_LIBS=-ltermcap
19181 if test $ol_link_termcap = no ; then
19182 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
19183 echo "configure:19184: checking for initscr in -lncurses" >&5
19184 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-:%__p__%'`
19185 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19186 echo $ac_n "(cached) $ac_c" 1>&6
19188 ac_save_LIBS="$LIBS"
19189 LIBS="-lncurses $LIBS"
19190 cat > conftest.$ac_ext <<EOF
19191 #line 19192 "configure"
19192 #include "confdefs.h"
19193 /* Override any gcc2 internal prototype to avoid an error. */
19194 /* We use char because int might match the return type of a gcc2
19195 builtin and then its argument prototype would still apply. */
19202 if { (eval echo configure:19203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19204 eval "ac_cv_lib_$ac_lib_var=yes"
19206 echo "configure: failed program was:" >&5
19207 cat conftest.$ac_ext >&5
19209 eval "ac_cv_lib_$ac_lib_var=no"
19212 LIBS="$ac_save_LIBS"
19215 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19216 echo "$ac_t""yes" 1>&6
19219 echo "$ac_t""no" 1>&6
19223 if test $have_ncurses = yes ; then
19224 cat >> confdefs.h <<\EOF
19225 #define HAVE_NCURSES 1
19228 ol_link_termcap=yes
19229 TERMCAP_LIBS=-lncurses
19233 if test $ol_link_termcap = no ; then
19234 cat >> confdefs.h <<\EOF
19235 #define NO_TERMCAP 1
19243 if test $ol_with_cyrus_sasl != no ; then
19244 for ac_hdr in sasl.h
19246 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19247 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19248 echo "configure:19249: checking for $ac_hdr" >&5
19249 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19250 echo $ac_n "(cached) $ac_c" 1>&6
19252 cat > conftest.$ac_ext <<EOF
19253 #line 19254 "configure"
19254 #include "confdefs.h"
19257 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19258 { (eval echo configure:19259: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19259 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19260 if test -z "$ac_err"; then
19262 eval "ac_cv_header_$ac_safe=yes"
19265 echo "configure: failed program was:" >&5
19266 cat conftest.$ac_ext >&5
19268 eval "ac_cv_header_$ac_safe=no"
19272 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19273 echo "$ac_t""yes" 1>&6
19274 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19275 cat >> confdefs.h <<EOF
19276 #define $ac_tr_hdr 1
19280 echo "$ac_t""no" 1>&6
19285 if test $ac_cv_header_sasl_h ; then
19286 echo $ac_n "checking for sasl_client_init in -lsasl2""... $ac_c" 1>&6
19287 echo "configure:19288: checking for sasl_client_init in -lsasl2" >&5
19288 ac_lib_var=`echo sasl2'_'sasl_client_init | sed 'y%./+-:%__p__%'`
19289 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19290 echo $ac_n "(cached) $ac_c" 1>&6
19292 ac_save_LIBS="$LIBS"
19293 LIBS="-lsasl2 $LIBS"
19294 cat > conftest.$ac_ext <<EOF
19295 #line 19296 "configure"
19296 #include "confdefs.h"
19297 /* Override any gcc2 internal prototype to avoid an error. */
19298 /* We use char because int might match the return type of a gcc2
19299 builtin and then its argument prototype would still apply. */
19300 char sasl_client_init();
19306 if { (eval echo configure:19307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19308 eval "ac_cv_lib_$ac_lib_var=yes"
19310 echo "configure: failed program was:" >&5
19311 cat conftest.$ac_ext >&5
19313 eval "ac_cv_lib_$ac_lib_var=no"
19316 LIBS="$ac_save_LIBS"
19319 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19320 echo "$ac_t""yes" 1>&6
19321 ol_link_sasl="-lsasl2"
19323 echo "$ac_t""no" 1>&6
19324 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
19325 echo "configure:19326: checking for sasl_client_init in -lsasl" >&5
19326 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
19327 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19328 echo $ac_n "(cached) $ac_c" 1>&6
19330 ac_save_LIBS="$LIBS"
19331 LIBS="-lsasl $LIBS"
19332 cat > conftest.$ac_ext <<EOF
19333 #line 19334 "configure"
19334 #include "confdefs.h"
19335 /* Override any gcc2 internal prototype to avoid an error. */
19336 /* We use char because int might match the return type of a gcc2
19337 builtin and then its argument prototype would still apply. */
19338 char sasl_client_init();
19344 if { (eval echo configure:19345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19346 eval "ac_cv_lib_$ac_lib_var=yes"
19348 echo "configure: failed program was:" >&5
19349 cat conftest.$ac_ext >&5
19351 eval "ac_cv_lib_$ac_lib_var=no"
19354 LIBS="$ac_save_LIBS"
19357 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19358 echo "$ac_t""yes" 1>&6
19359 ol_link_sasl="-lsasl"
19361 echo "$ac_t""no" 1>&6
19368 if test $ol_link_sasl = no ; then
19369 if test $ol_with_cyrus_sasl != auto ; then
19370 { echo "configure: error: Could not locate Cyrus SASL" 1>&2; exit 1; }
19372 echo "configure: warning: Could not locate Cyrus SASL" 1>&2
19373 echo "configure: warning: SASL authentication not supported!" 1>&2
19374 if test $ol_link_tls = no ; then
19375 echo "configure: warning: Strong authentication not supported!" 1>&2
19379 cat >> confdefs.h <<\EOF
19380 #define HAVE_CYRUS_SASL 1
19383 SASL_LIBS="$ol_link_sasl"
19384 if test $ol_enable_spasswd != no ; then
19385 ol_link_spasswd=yes
19390 echo "configure: warning: SASL authentication not supported!" 1>&2
19391 if test $ol_link_tls = no ; then
19392 echo "configure: warning: Strong authentication not supported!" 1>&2
19396 if test $cross_compiling != yes -a "$ac_cv_mingw32" != yes ; then
19398 if test -r /dev/urandom ; then
19399 dev="/dev/urandom";
19400 elif test -r /idev/urandom ; then
19401 dev="/idev/urandom";
19402 elif test -r /dev/srandom ; then
19403 dev="/dev/srandom";
19404 elif test -r /dev/random ; then
19406 elif test -r /idev/random ; then
19407 dev="/idev/random";
19410 if test $dev != no ; then
19411 cat >> confdefs.h <<EOF
19412 #define URANDOM_DEVICE "$dev"
19419 if test $ol_with_fetch != no ; then
19421 LIBS="-lfetch -lcom_err $LIBS"
19422 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
19423 echo "configure:19424: checking fetch(3) library" >&5
19424 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
19425 echo $ac_n "(cached) $ac_c" 1>&6
19428 cat > conftest.$ac_ext <<EOF
19429 #line 19430 "configure"
19430 #include "confdefs.h"
19432 #include <sys/param.h>
19436 struct url *u = fetchParseURL("file:///");
19439 if { (eval echo configure:19440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19441 ol_cv_lib_fetch=yes
19443 echo "configure: failed program was:" >&5
19444 cat conftest.$ac_ext >&5
19451 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
19453 if test $ol_cv_lib_fetch != no ; then
19454 ol_link_fetch="-lfetch -lcom_err"
19455 cat >> confdefs.h <<\EOF
19456 #define HAVE_FETCH 1
19462 if test $ol_cv_lib_fetch != no ; then
19463 LDIF_LIBS="$LDIF_LIBS $ol_link_fetch"
19464 ol_link_fetch=freebsd
19466 elif test $ol_with_fetch != auto ; then
19467 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
19471 ol_link_readline=no
19472 if test $ol_with_readline != no ; then
19473 for ac_hdr in readline/readline.h readline/history.h
19475 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19476 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19477 echo "configure:19478: checking for $ac_hdr" >&5
19478 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19479 echo $ac_n "(cached) $ac_c" 1>&6
19481 cat > conftest.$ac_ext <<EOF
19482 #line 19483 "configure"
19483 #include "confdefs.h"
19486 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19487 { (eval echo configure:19488: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19488 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19489 if test -z "$ac_err"; then
19491 eval "ac_cv_header_$ac_safe=yes"
19494 echo "configure: failed program was:" >&5
19495 cat conftest.$ac_ext >&5
19497 eval "ac_cv_header_$ac_safe=no"
19501 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19502 echo "$ac_t""yes" 1>&6
19503 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19504 cat >> confdefs.h <<EOF
19505 #define $ac_tr_hdr 1
19509 echo "$ac_t""no" 1>&6
19514 if test $ac_cv_header_readline_readline_h = yes ; then
19516 LIBS="$TERMCAP_LIBS $LIBS"
19517 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
19518 echo "configure:19519: checking for readline in -lreadline" >&5
19519 ac_lib_var=`echo readline'_'readline | sed 'y%./+-:%__p__%'`
19520 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19521 echo $ac_n "(cached) $ac_c" 1>&6
19523 ac_save_LIBS="$LIBS"
19524 LIBS="-lreadline $LIBS"
19525 cat > conftest.$ac_ext <<EOF
19526 #line 19527 "configure"
19527 #include "confdefs.h"
19528 /* Override any gcc2 internal prototype to avoid an error. */
19529 /* We use char because int might match the return type of a gcc2
19530 builtin and then its argument prototype would still apply. */
19537 if { (eval echo configure:19538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19539 eval "ac_cv_lib_$ac_lib_var=yes"
19541 echo "configure: failed program was:" >&5
19542 cat conftest.$ac_ext >&5
19544 eval "ac_cv_lib_$ac_lib_var=no"
19547 LIBS="$ac_save_LIBS"
19550 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19551 echo "$ac_t""yes" 1>&6
19554 echo "$ac_t""no" 1>&6
19560 if test $have_readline = yes ; then
19561 ol_with_readline=found
19562 ol_link_readline=yes
19564 READLINE_LIBS="-lreadline"
19569 if test $ol_link_readline = yes ; then
19570 cat >> confdefs.h <<\EOF
19571 #define HAVE_READLINE 1
19577 if test $ol_enable_crypt != no ; then
19578 echo $ac_n "checking for crypt""... $ac_c" 1>&6
19579 echo "configure:19580: checking for crypt" >&5
19580 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
19581 echo $ac_n "(cached) $ac_c" 1>&6
19583 cat > conftest.$ac_ext <<EOF
19584 #line 19585 "configure"
19585 #include "confdefs.h"
19586 /* System header to define __stub macros and hopefully few prototypes,
19587 which can conflict with char crypt(); below. */
19588 #include <assert.h>
19589 /* Override any gcc2 internal prototype to avoid an error. */
19590 /* We use char because int might match the return type of a gcc2
19591 builtin and then its argument prototype would still apply. */
19597 /* The GNU C library defines this for functions which it implements
19598 to always fail with ENOSYS. Some functions are actually named
19599 something starting with __ and the normal name is an alias. */
19600 #if defined (__stub_crypt) || defined (__stub___crypt)
19608 if { (eval echo configure:19609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19610 eval "ac_cv_func_crypt=yes"
19612 echo "configure: failed program was:" >&5
19613 cat conftest.$ac_ext >&5
19615 eval "ac_cv_func_crypt=no"
19620 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
19621 echo "$ac_t""yes" 1>&6
19624 echo "$ac_t""no" 1>&6
19626 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
19627 echo "configure:19628: checking for crypt in -lcrypt" >&5
19628 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
19629 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19630 echo $ac_n "(cached) $ac_c" 1>&6
19632 ac_save_LIBS="$LIBS"
19633 LIBS="-lcrypt $LIBS"
19634 cat > conftest.$ac_ext <<EOF
19635 #line 19636 "configure"
19636 #include "confdefs.h"
19637 /* Override any gcc2 internal prototype to avoid an error. */
19638 /* We use char because int might match the return type of a gcc2
19639 builtin and then its argument prototype would still apply. */
19646 if { (eval echo configure:19647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19648 eval "ac_cv_lib_$ac_lib_var=yes"
19650 echo "configure: failed program was:" >&5
19651 cat conftest.$ac_ext >&5
19653 eval "ac_cv_lib_$ac_lib_var=no"
19656 LIBS="$ac_save_LIBS"
19659 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19660 echo "$ac_t""yes" 1>&6
19661 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
19664 echo "$ac_t""no" 1>&6
19671 if test $have_crypt = yes ; then
19672 cat >> confdefs.h <<\EOF
19673 #define HAVE_CRYPT 1
19677 echo "configure: warning: could not find crypt" 1>&2
19678 if test $ol_enable_crypt = yes ; then
19679 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
19682 echo "configure: warning: disabling crypt support" 1>&2
19687 if test $ol_enable_proctitle != no ; then
19688 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
19689 echo "configure:19690: checking for setproctitle" >&5
19690 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
19691 echo $ac_n "(cached) $ac_c" 1>&6
19693 cat > conftest.$ac_ext <<EOF
19694 #line 19695 "configure"
19695 #include "confdefs.h"
19696 /* System header to define __stub macros and hopefully few prototypes,
19697 which can conflict with char setproctitle(); below. */
19698 #include <assert.h>
19699 /* Override any gcc2 internal prototype to avoid an error. */
19700 /* We use char because int might match the return type of a gcc2
19701 builtin and then its argument prototype would still apply. */
19702 char setproctitle();
19707 /* The GNU C library defines this for functions which it implements
19708 to always fail with ENOSYS. Some functions are actually named
19709 something starting with __ and the normal name is an alias. */
19710 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
19718 if { (eval echo configure:19719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19720 eval "ac_cv_func_setproctitle=yes"
19722 echo "configure: failed program was:" >&5
19723 cat conftest.$ac_ext >&5
19725 eval "ac_cv_func_setproctitle=no"
19730 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
19731 echo "$ac_t""yes" 1>&6
19732 have_setproctitle=yes
19734 echo "$ac_t""no" 1>&6
19736 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
19737 echo "configure:19738: checking for setproctitle in -lutil" >&5
19738 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
19739 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19740 echo $ac_n "(cached) $ac_c" 1>&6
19742 ac_save_LIBS="$LIBS"
19743 LIBS="-lutil $LIBS"
19744 cat > conftest.$ac_ext <<EOF
19745 #line 19746 "configure"
19746 #include "confdefs.h"
19747 /* Override any gcc2 internal prototype to avoid an error. */
19748 /* We use char because int might match the return type of a gcc2
19749 builtin and then its argument prototype would still apply. */
19750 char setproctitle();
19756 if { (eval echo configure:19757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19758 eval "ac_cv_lib_$ac_lib_var=yes"
19760 echo "configure: failed program was:" >&5
19761 cat conftest.$ac_ext >&5
19763 eval "ac_cv_lib_$ac_lib_var=no"
19766 LIBS="$ac_save_LIBS"
19769 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19770 echo "$ac_t""yes" 1>&6
19771 have_setproctitle=yes
19772 LUTIL_LIBS="$LUTIL_LIBS -lutil"
19774 echo "$ac_t""no" 1>&6
19775 have_setproctitle=no
19776 LIBOBJS="$LIBOBJS setproctitle.o"
19777 LIBSRCS="$LIBSRCS setproctitle.c"
19783 if test $have_setproctitle = yes ; then
19784 cat >> confdefs.h <<\EOF
19785 #define HAVE_SETPROCTITLE 1
19791 if test $ol_enable_slp != no ; then
19792 for ac_hdr in slp.h
19794 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19795 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19796 echo "configure:19797: checking for $ac_hdr" >&5
19797 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19798 echo $ac_n "(cached) $ac_c" 1>&6
19800 cat > conftest.$ac_ext <<EOF
19801 #line 19802 "configure"
19802 #include "confdefs.h"
19805 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19806 { (eval echo configure:19807: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19807 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19808 if test -z "$ac_err"; then
19810 eval "ac_cv_header_$ac_safe=yes"
19813 echo "configure: failed program was:" >&5
19814 cat conftest.$ac_ext >&5
19816 eval "ac_cv_header_$ac_safe=no"
19820 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19821 echo "$ac_t""yes" 1>&6
19822 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19823 cat >> confdefs.h <<EOF
19824 #define $ac_tr_hdr 1
19828 echo "$ac_t""no" 1>&6
19833 if test $ac_cv_header_slp_h = yes ; then
19834 echo $ac_n "checking for SLPOpen in -lslp""... $ac_c" 1>&6
19835 echo "configure:19836: checking for SLPOpen in -lslp" >&5
19836 ac_lib_var=`echo slp'_'SLPOpen | sed 'y%./+-:%__p__%'`
19837 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19838 echo $ac_n "(cached) $ac_c" 1>&6
19840 ac_save_LIBS="$LIBS"
19842 cat > conftest.$ac_ext <<EOF
19843 #line 19844 "configure"
19844 #include "confdefs.h"
19845 /* Override any gcc2 internal prototype to avoid an error. */
19846 /* We use char because int might match the return type of a gcc2
19847 builtin and then its argument prototype would still apply. */
19854 if { (eval echo configure:19855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19856 eval "ac_cv_lib_$ac_lib_var=yes"
19858 echo "configure: failed program was:" >&5
19859 cat conftest.$ac_ext >&5
19861 eval "ac_cv_lib_$ac_lib_var=no"
19864 LIBS="$ac_save_LIBS"
19867 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19868 echo "$ac_t""yes" 1>&6
19871 echo "$ac_t""no" 1>&6
19875 if test $have_slp = yes ; then
19876 cat >> confdefs.h <<\EOF
19880 SLAPD_SLP_LIBS=-lslp
19883 elif test $ol_enable_slp = yes ; then
19884 { echo "configure: error: SLP not found" 1>&2; exit 1; }
19888 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
19889 echo "configure:19890: checking for ANSI C header files" >&5
19890 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
19891 echo $ac_n "(cached) $ac_c" 1>&6
19893 cat > conftest.$ac_ext <<EOF
19894 #line 19895 "configure"
19895 #include "confdefs.h"
19896 #include <stdlib.h>
19897 #include <stdarg.h>
19898 #include <string.h>
19901 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19902 { (eval echo configure:19903: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19903 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19904 if test -z "$ac_err"; then
19906 ac_cv_header_stdc=yes
19909 echo "configure: failed program was:" >&5
19910 cat conftest.$ac_ext >&5
19912 ac_cv_header_stdc=no
19916 if test $ac_cv_header_stdc = yes; then
19917 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19918 cat > conftest.$ac_ext <<EOF
19919 #line 19920 "configure"
19920 #include "confdefs.h"
19921 #include <string.h>
19923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19924 egrep "memchr" >/dev/null 2>&1; then
19928 ac_cv_header_stdc=no
19934 if test $ac_cv_header_stdc = yes; then
19935 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19936 cat > conftest.$ac_ext <<EOF
19937 #line 19938 "configure"
19938 #include "confdefs.h"
19939 #include <stdlib.h>
19941 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19942 egrep "free" >/dev/null 2>&1; then
19946 ac_cv_header_stdc=no
19952 if test $ac_cv_header_stdc = yes; then
19953 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19954 if test "$cross_compiling" = yes; then
19957 cat > conftest.$ac_ext <<EOF
19958 #line 19959 "configure"
19959 #include "confdefs.h"
19961 #if ((' ' & 0x0FF) == 0x020)
19962 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19963 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19965 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
19966 || ('j' <= (c) && (c) <= 'r') \
19967 || ('s' <= (c) && (c) <= 'z'))
19968 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19970 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19971 int main () { int i; for (i = 0; i < 256; i++)
19972 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
19976 if { (eval echo configure:19977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
19980 echo "configure: failed program was:" >&5
19981 cat conftest.$ac_ext >&5
19983 ac_cv_header_stdc=no
19991 echo "$ac_t""$ac_cv_header_stdc" 1>&6
19992 if test $ac_cv_header_stdc = yes; then
19993 cat >> confdefs.h <<\EOF
19994 #define STDC_HEADERS 1
19999 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
20000 echo "configure:20001: checking for mode_t" >&5
20001 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
20002 echo $ac_n "(cached) $ac_c" 1>&6
20004 cat > conftest.$ac_ext <<EOF
20005 #line 20006 "configure"
20006 #include "confdefs.h"
20007 #include <sys/types.h>
20009 #include <stdlib.h>
20010 #include <stddef.h>
20014 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20015 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20017 eval "ac_cv_type_mode_t=yes"
20020 eval "ac_cv_type_mode_t=no"
20025 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
20026 echo "$ac_t""yes" 1>&6
20028 echo "$ac_t""no" 1>&6
20029 cat >> confdefs.h <<EOF
20035 echo $ac_n "checking for off_t""... $ac_c" 1>&6
20036 echo "configure:20037: checking for off_t" >&5
20037 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
20038 echo $ac_n "(cached) $ac_c" 1>&6
20040 cat > conftest.$ac_ext <<EOF
20041 #line 20042 "configure"
20042 #include "confdefs.h"
20043 #include <sys/types.h>
20045 #include <stdlib.h>
20046 #include <stddef.h>
20050 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20051 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20053 eval "ac_cv_type_off_t=yes"
20056 eval "ac_cv_type_off_t=no"
20061 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
20062 echo "$ac_t""yes" 1>&6
20064 echo "$ac_t""no" 1>&6
20065 cat >> confdefs.h <<EOF
20071 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
20072 echo "configure:20073: checking for pid_t" >&5
20073 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
20074 echo $ac_n "(cached) $ac_c" 1>&6
20076 cat > conftest.$ac_ext <<EOF
20077 #line 20078 "configure"
20078 #include "confdefs.h"
20079 #include <sys/types.h>
20081 #include <stdlib.h>
20082 #include <stddef.h>
20086 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20087 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20089 eval "ac_cv_type_pid_t=yes"
20092 eval "ac_cv_type_pid_t=no"
20097 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
20098 echo "$ac_t""yes" 1>&6
20100 echo "$ac_t""no" 1>&6
20101 cat >> confdefs.h <<EOF
20107 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
20108 echo "configure:20109: checking for ptrdiff_t" >&5
20109 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
20110 echo $ac_n "(cached) $ac_c" 1>&6
20112 cat > conftest.$ac_ext <<EOF
20113 #line 20114 "configure"
20114 #include "confdefs.h"
20115 #include <stddef.h>
20120 if { (eval echo configure:20121: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20122 am_cv_type_ptrdiff_t=yes
20124 echo "configure: failed program was:" >&5
20125 cat conftest.$ac_ext >&5
20127 am_cv_type_ptrdiff_t=no
20132 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
20133 if test $am_cv_type_ptrdiff_t = yes; then
20134 cat >> confdefs.h <<\EOF
20135 #define HAVE_PTRDIFF_T 1
20140 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
20141 echo "configure:20142: checking return type of signal handlers" >&5
20142 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
20143 echo $ac_n "(cached) $ac_c" 1>&6
20145 cat > conftest.$ac_ext <<EOF
20146 #line 20147 "configure"
20147 #include "confdefs.h"
20148 #include <sys/types.h>
20149 #include <signal.h>
20154 extern "C" void (*signal (int, void (*)(int)))(int);
20156 void (*signal ()) ();
20163 if { (eval echo configure:20164: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20165 ac_cv_type_signal=void
20167 echo "configure: failed program was:" >&5
20168 cat conftest.$ac_ext >&5
20170 ac_cv_type_signal=int
20175 echo "$ac_t""$ac_cv_type_signal" 1>&6
20176 cat >> confdefs.h <<EOF
20177 #define RETSIGTYPE $ac_cv_type_signal
20181 echo $ac_n "checking for size_t""... $ac_c" 1>&6
20182 echo "configure:20183: checking for size_t" >&5
20183 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
20184 echo $ac_n "(cached) $ac_c" 1>&6
20186 cat > conftest.$ac_ext <<EOF
20187 #line 20188 "configure"
20188 #include "confdefs.h"
20189 #include <sys/types.h>
20191 #include <stdlib.h>
20192 #include <stddef.h>
20196 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20197 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20199 eval "ac_cv_type_size_t=yes"
20202 eval "ac_cv_type_size_t=no"
20207 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
20208 echo "$ac_t""yes" 1>&6
20210 echo "$ac_t""no" 1>&6
20211 cat >> confdefs.h <<EOF
20212 #define size_t unsigned
20218 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
20219 echo "configure:20220: checking for ssize_t" >&5
20220 if eval "test \"\${ac_cv_type_ssize_t+set}\" = set"; then
20221 echo $ac_n "(cached) $ac_c" 1>&6
20223 cat > conftest.$ac_ext <<EOF
20224 #line 20225 "configure"
20225 #include "confdefs.h"
20226 #include <sys/types.h>
20228 #include <stdlib.h>
20229 #include <stddef.h>
20233 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20234 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20236 eval "ac_cv_type_ssize_t=yes"
20239 eval "ac_cv_type_ssize_t=no"
20244 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
20245 echo "$ac_t""yes" 1>&6
20247 echo "$ac_t""no" 1>&6
20248 cat >> confdefs.h <<EOF
20249 #define ssize_t signed int
20254 echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
20255 echo "configure:20256: checking for caddr_t" >&5
20256 if eval "test \"\${ac_cv_type_caddr_t+set}\" = set"; then
20257 echo $ac_n "(cached) $ac_c" 1>&6
20259 cat > conftest.$ac_ext <<EOF
20260 #line 20261 "configure"
20261 #include "confdefs.h"
20262 #include <sys/types.h>
20264 #include <stdlib.h>
20265 #include <stddef.h>
20269 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20270 egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20272 eval "ac_cv_type_caddr_t=yes"
20275 eval "ac_cv_type_caddr_t=no"
20280 if eval "test \"`echo '$ac_cv_type_'caddr_t`\" = yes"; then
20281 echo "$ac_t""yes" 1>&6
20283 echo "$ac_t""no" 1>&6
20284 cat >> confdefs.h <<EOF
20285 #define caddr_t char *
20291 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
20292 echo "configure:20293: checking for socklen_t" >&5
20293 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
20294 echo $ac_n "(cached) $ac_c" 1>&6
20296 cat > conftest.$ac_ext <<EOF
20297 #line 20298 "configure"
20298 #include "confdefs.h"
20300 #ifdef HAVE_SYS_TYPES_H
20301 #include <sys/types.h>
20303 #ifdef HAVE_SYS_SOCKET_H
20304 #include <sys/socket.h>
20311 if { (eval echo configure:20312: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20313 ol_cv_type_socklen_t=yes
20315 echo "configure: failed program was:" >&5
20316 cat conftest.$ac_ext >&5
20318 ol_cv_type_socklen_t=no
20323 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
20324 if test $ol_cv_type_socklen_t = no; then
20325 cat >> confdefs.h <<\EOF
20326 #define socklen_t int
20331 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
20332 echo "configure:20333: checking for member st_blksize in aggregate type struct stat" >&5
20333 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
20334 echo $ac_n "(cached) $ac_c" 1>&6
20336 cat > conftest.$ac_ext <<EOF
20337 #line 20338 "configure"
20338 #include "confdefs.h"
20339 #include <sys/types.h>
20340 #include <sys/stat.h>
20342 struct stat foo; foo.st_blksize;
20345 if { (eval echo configure:20346: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20347 ac_cv_c_struct_member_st_blksize=yes
20349 echo "configure: failed program was:" >&5
20350 cat conftest.$ac_ext >&5
20352 ac_cv_c_struct_member_st_blksize=no
20357 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
20358 st_blksize="$ac_cv_c_struct_member_st_blksize"
20359 if test $ac_cv_c_struct_member_st_blksize = yes; then
20360 cat >> confdefs.h <<\EOF
20361 #define HAVE_ST_BLKSIZE 1
20366 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
20367 echo "configure:20368: checking whether time.h and sys/time.h may both be included" >&5
20368 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
20369 echo $ac_n "(cached) $ac_c" 1>&6
20371 cat > conftest.$ac_ext <<EOF
20372 #line 20373 "configure"
20373 #include "confdefs.h"
20374 #include <sys/types.h>
20375 #include <sys/time.h>
20381 if { (eval echo configure:20382: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20383 ac_cv_header_time=yes
20385 echo "configure: failed program was:" >&5
20386 cat conftest.$ac_ext >&5
20388 ac_cv_header_time=no
20393 echo "$ac_t""$ac_cv_header_time" 1>&6
20394 if test $ac_cv_header_time = yes; then
20395 cat >> confdefs.h <<\EOF
20396 #define TIME_WITH_SYS_TIME 1
20401 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
20402 echo "configure:20403: checking whether struct tm is in sys/time.h or time.h" >&5
20403 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
20404 echo $ac_n "(cached) $ac_c" 1>&6
20406 cat > conftest.$ac_ext <<EOF
20407 #line 20408 "configure"
20408 #include "confdefs.h"
20409 #include <sys/types.h>
20412 struct tm *tp; tp->tm_sec;
20415 if { (eval echo configure:20416: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20417 ac_cv_struct_tm=time.h
20419 echo "configure: failed program was:" >&5
20420 cat conftest.$ac_ext >&5
20422 ac_cv_struct_tm=sys/time.h
20427 echo "$ac_t""$ac_cv_struct_tm" 1>&6
20428 if test $ac_cv_struct_tm = sys/time.h; then
20429 cat >> confdefs.h <<\EOF
20430 #define TM_IN_SYS_TIME 1
20435 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
20436 echo "configure:20437: checking for uid_t in sys/types.h" >&5
20437 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
20438 echo $ac_n "(cached) $ac_c" 1>&6
20440 cat > conftest.$ac_ext <<EOF
20441 #line 20442 "configure"
20442 #include "confdefs.h"
20443 #include <sys/types.h>
20445 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20446 egrep "uid_t" >/dev/null 2>&1; then
20448 ac_cv_type_uid_t=yes
20451 ac_cv_type_uid_t=no
20457 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
20458 if test $ac_cv_type_uid_t = no; then
20459 cat >> confdefs.h <<\EOF
20463 cat >> confdefs.h <<\EOF
20469 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
20470 echo "configure:20471: checking for sig_atomic_t" >&5
20471 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
20472 echo $ac_n "(cached) $ac_c" 1>&6
20474 cat > conftest.$ac_ext <<EOF
20475 #line 20476 "configure"
20476 #include "confdefs.h"
20477 #include <signal.h>
20479 sig_atomic_t atomic;
20482 if { (eval echo configure:20483: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20484 ol_cv_type_sig_atomic_t=yes
20486 echo "configure: failed program was:" >&5
20487 cat conftest.$ac_ext >&5
20489 ol_cv_type_sig_atomic_t=no
20494 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
20495 if test $ol_cv_type_sig_atomic_t = no; then
20496 cat >> confdefs.h <<\EOF
20497 #define sig_atomic_t int
20504 # test for pw_gecos in struct passwd
20505 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
20506 echo "configure:20507: checking struct passwd for pw_gecos" >&5
20507 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
20508 echo $ac_n "(cached) $ac_c" 1>&6
20511 cat > conftest.$ac_ext <<EOF
20512 #line 20513 "configure"
20513 #include "confdefs.h"
20518 pwd.pw_gecos = pwd.pw_name;
20522 if { (eval echo configure:20523: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20524 ol_cv_struct_passwd_pw_gecos=yes
20526 echo "configure: failed program was:" >&5
20527 cat conftest.$ac_ext >&5
20529 ol_cv_struct_passwd_pw_gecos=no
20534 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
20535 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
20536 cat >> confdefs.h <<\EOF
20537 #define HAVE_PW_GECOS 1
20542 # test for pw_passwd in struct passwd
20543 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
20544 echo "configure:20545: checking struct passwd for pw_passwd" >&5
20545 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
20546 echo $ac_n "(cached) $ac_c" 1>&6
20549 cat > conftest.$ac_ext <<EOF
20550 #line 20551 "configure"
20551 #include "confdefs.h"
20556 pwd.pw_passwd = pwd.pw_name;
20560 if { (eval echo configure:20561: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20562 ol_cv_struct_passwd_pw_passwd=yes
20564 echo "configure: failed program was:" >&5
20565 cat conftest.$ac_ext >&5
20567 ol_cv_struct_passwd_pw_passwd=no
20572 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
20573 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
20574 cat >> confdefs.h <<\EOF
20575 #define HAVE_PW_PASSWD 1
20581 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
20582 echo "configure:20583: checking if toupper() requires islower()" >&5
20583 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
20584 echo $ac_n "(cached) $ac_c" 1>&6
20587 if test "$cross_compiling" = yes; then
20588 ol_cv_c_upper_lower=safe
20590 cat > conftest.$ac_ext <<EOF
20591 #line 20592 "configure"
20592 #include "confdefs.h"
20597 if ('C' == toupper('C'))
20603 if { (eval echo configure:20604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
20605 ol_cv_c_upper_lower=no
20607 echo "configure: failed program was:" >&5
20608 cat conftest.$ac_ext >&5
20610 ol_cv_c_upper_lower=yes
20617 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
20618 if test $ol_cv_c_upper_lower != no ; then
20619 cat >> confdefs.h <<\EOF
20620 #define C_UPPER_LOWER 1
20625 echo $ac_n "checking for working const""... $ac_c" 1>&6
20626 echo "configure:20627: checking for working const" >&5
20627 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
20628 echo $ac_n "(cached) $ac_c" 1>&6
20630 cat > conftest.$ac_ext <<EOF
20631 #line 20632 "configure"
20632 #include "confdefs.h"
20636 /* Ultrix mips cc rejects this. */
20637 typedef int charset[2]; const charset x;
20638 /* SunOS 4.1.1 cc rejects this. */
20639 char const *const *ccp;
20641 /* NEC SVR4.0.2 mips cc rejects this. */
20642 struct point {int x, y;};
20643 static struct point const zero = {0,0};
20644 /* AIX XL C 1.02.0.0 rejects this.
20645 It does not let you subtract one const X* pointer from another in an arm
20646 of an if-expression whose if-part is not a constant expression */
20647 const char *g = "string";
20648 ccp = &g + (g ? g-g : 0);
20649 /* HPUX 7.0 cc rejects these. */
20652 ccp = (char const *const *) p;
20653 { /* SCO 3.2v4 cc rejects this. */
20655 char const *s = 0 ? (char *) 0 : (char const *) 0;
20659 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20660 int x[] = {25, 17};
20661 const int *foo = &x[0];
20664 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20665 typedef const int *iptr;
20669 { /* AIX XL C 1.02.0.0 rejects this saying
20670 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20671 struct s { int j; const int *ap[3]; };
20672 struct s *b; b->j = 5;
20674 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20675 const int foo = 10;
20680 if { (eval echo configure:20681: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20684 echo "configure: failed program was:" >&5
20685 cat conftest.$ac_ext >&5
20692 echo "$ac_t""$ac_cv_c_const" 1>&6
20693 if test $ac_cv_c_const = no; then
20694 cat >> confdefs.h <<\EOF
20700 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
20701 echo "configure:20702: checking if compiler understands volatile" >&5
20702 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
20703 echo $ac_n "(cached) $ac_c" 1>&6
20705 cat > conftest.$ac_ext <<EOF
20706 #line 20707 "configure"
20707 #include "confdefs.h"
20710 volatile int a; int * volatile b = x ? &y : &z;
20711 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
20715 if { (eval echo configure:20716: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20717 ol_cv_c_volatile=yes
20719 echo "configure: failed program was:" >&5
20720 cat conftest.$ac_ext >&5
20722 ol_cv_c_volatile=no
20727 echo "$ac_t""$ol_cv_c_volatile" 1>&6
20728 if test $ol_cv_c_volatile = yes; then
20731 cat >> confdefs.h <<\EOF
20738 if test $cross_compiling = yes ; then
20739 cat >> confdefs.h <<\EOF
20740 #define CROSS_COMPILING 1
20744 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
20745 echo "configure:20746: checking whether byte ordering is bigendian" >&5
20746 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
20747 echo $ac_n "(cached) $ac_c" 1>&6
20749 ac_cv_c_bigendian=unknown
20750 # See if sys/param.h defines the BYTE_ORDER macro.
20751 cat > conftest.$ac_ext <<EOF
20752 #line 20753 "configure"
20753 #include "confdefs.h"
20754 #include <sys/types.h>
20755 #include <sys/param.h>
20758 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20759 bogus endian macros
20763 if { (eval echo configure:20764: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20765 # It does; now see whether it defined to BIG_ENDIAN or not.
20766 cat > conftest.$ac_ext <<EOF
20767 #line 20768 "configure"
20768 #include "confdefs.h"
20769 #include <sys/types.h>
20770 #include <sys/param.h>
20773 #if BYTE_ORDER != BIG_ENDIAN
20778 if { (eval echo configure:20779: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20780 ac_cv_c_bigendian=yes
20782 echo "configure: failed program was:" >&5
20783 cat conftest.$ac_ext >&5
20785 ac_cv_c_bigendian=no
20789 echo "configure: failed program was:" >&5
20790 cat conftest.$ac_ext >&5
20793 if test $ac_cv_c_bigendian = unknown; then
20794 if test "$cross_compiling" = yes; then
20795 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
20797 cat > conftest.$ac_ext <<EOF
20798 #line 20799 "configure"
20799 #include "confdefs.h"
20801 /* Are we little or big endian? From Harbison&Steele. */
20805 char c[sizeof (long)];
20808 exit (u.c[sizeof (long) - 1] == 1);
20811 if { (eval echo configure:20812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
20813 ac_cv_c_bigendian=no
20815 echo "configure: failed program was:" >&5
20816 cat conftest.$ac_ext >&5
20818 ac_cv_c_bigendian=yes
20826 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
20827 if test $ac_cv_c_bigendian = yes; then
20828 cat >> confdefs.h <<\EOF
20829 #define WORDS_BIGENDIAN 1
20836 echo $ac_n "checking size of short""... $ac_c" 1>&6
20837 echo "configure:20838: checking size of short" >&5
20838 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
20839 echo $ac_n "(cached) $ac_c" 1>&6
20841 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
20842 cat > conftest.$ac_ext <<EOF
20843 #line 20844 "configure"
20844 #include "confdefs.h"
20845 #include "confdefs.h"
20846 #include <sys/types.h>
20850 switch (0) case 0: case (sizeof (short) == $ac_size):;
20853 if { (eval echo configure:20854: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20855 ac_cv_sizeof_short=$ac_size
20857 echo "configure: failed program was:" >&5
20858 cat conftest.$ac_ext >&5
20861 if test x$ac_cv_sizeof_short != x ; then break; fi
20866 if test x$ac_cv_sizeof_short = x ; then
20867 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
20869 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
20870 cat >> confdefs.h <<EOF
20871 #define SIZEOF_SHORT $ac_cv_sizeof_short
20875 echo $ac_n "checking size of int""... $ac_c" 1>&6
20876 echo "configure:20877: checking size of int" >&5
20877 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
20878 echo $ac_n "(cached) $ac_c" 1>&6
20880 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
20881 cat > conftest.$ac_ext <<EOF
20882 #line 20883 "configure"
20883 #include "confdefs.h"
20884 #include "confdefs.h"
20885 #include <sys/types.h>
20889 switch (0) case 0: case (sizeof (int) == $ac_size):;
20892 if { (eval echo configure:20893: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20894 ac_cv_sizeof_int=$ac_size
20896 echo "configure: failed program was:" >&5
20897 cat conftest.$ac_ext >&5
20900 if test x$ac_cv_sizeof_int != x ; then break; fi
20905 if test x$ac_cv_sizeof_int = x ; then
20906 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
20908 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
20909 cat >> confdefs.h <<EOF
20910 #define SIZEOF_INT $ac_cv_sizeof_int
20914 echo $ac_n "checking size of long""... $ac_c" 1>&6
20915 echo "configure:20916: checking size of long" >&5
20916 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
20917 echo $ac_n "(cached) $ac_c" 1>&6
20919 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
20920 cat > conftest.$ac_ext <<EOF
20921 #line 20922 "configure"
20922 #include "confdefs.h"
20923 #include "confdefs.h"
20924 #include <sys/types.h>
20928 switch (0) case 0: case (sizeof (long) == $ac_size):;
20931 if { (eval echo configure:20932: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20933 ac_cv_sizeof_long=$ac_size
20935 echo "configure: failed program was:" >&5
20936 cat conftest.$ac_ext >&5
20939 if test x$ac_cv_sizeof_long != x ; then break; fi
20944 if test x$ac_cv_sizeof_long = x ; then
20945 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
20947 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
20948 cat >> confdefs.h <<EOF
20949 #define SIZEOF_LONG $ac_cv_sizeof_long
20954 if test "$ac_cv_sizeof_int" -lt 4 ; then
20955 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
20957 cat >> confdefs.h <<\EOF
20958 #define LBER_INT_T long
20962 cat >> confdefs.h <<\EOF
20963 #define LBER_INT_T int
20968 cat >> confdefs.h <<\EOF
20969 #define LBER_LEN_T long
20972 cat >> confdefs.h <<\EOF
20973 #define LBER_SOCKET_T int
20976 cat >> confdefs.h <<\EOF
20977 #define LBER_TAG_T long
20981 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
20982 echo "configure:20983: checking for 8-bit clean memcmp" >&5
20983 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
20984 echo $ac_n "(cached) $ac_c" 1>&6
20986 if test "$cross_compiling" = yes; then
20987 ac_cv_func_memcmp_clean=no
20989 cat > conftest.$ac_ext <<EOF
20990 #line 20991 "configure"
20991 #include "confdefs.h"
20995 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
20996 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
21000 if { (eval echo configure:21001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21002 ac_cv_func_memcmp_clean=yes
21004 echo "configure: failed program was:" >&5
21005 cat conftest.$ac_ext >&5
21007 ac_cv_func_memcmp_clean=no
21014 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
21015 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
21017 echo $ac_n "checking for strftime""... $ac_c" 1>&6
21018 echo "configure:21019: checking for strftime" >&5
21019 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
21020 echo $ac_n "(cached) $ac_c" 1>&6
21022 cat > conftest.$ac_ext <<EOF
21023 #line 21024 "configure"
21024 #include "confdefs.h"
21025 /* System header to define __stub macros and hopefully few prototypes,
21026 which can conflict with char strftime(); below. */
21027 #include <assert.h>
21028 /* Override any gcc2 internal prototype to avoid an error. */
21029 /* We use char because int might match the return type of a gcc2
21030 builtin and then its argument prototype would still apply. */
21036 /* The GNU C library defines this for functions which it implements
21037 to always fail with ENOSYS. Some functions are actually named
21038 something starting with __ and the normal name is an alias. */
21039 #if defined (__stub_strftime) || defined (__stub___strftime)
21047 if { (eval echo configure:21048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21049 eval "ac_cv_func_strftime=yes"
21051 echo "configure: failed program was:" >&5
21052 cat conftest.$ac_ext >&5
21054 eval "ac_cv_func_strftime=no"
21059 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
21060 echo "$ac_t""yes" 1>&6
21061 cat >> confdefs.h <<\EOF
21062 #define HAVE_STRFTIME 1
21066 echo "$ac_t""no" 1>&6
21067 # strftime is in -lintl on SCO UNIX.
21068 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
21069 echo "configure:21070: checking for strftime in -lintl" >&5
21070 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
21071 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21072 echo $ac_n "(cached) $ac_c" 1>&6
21074 ac_save_LIBS="$LIBS"
21075 LIBS="-lintl $LIBS"
21076 cat > conftest.$ac_ext <<EOF
21077 #line 21078 "configure"
21078 #include "confdefs.h"
21079 /* Override any gcc2 internal prototype to avoid an error. */
21080 /* We use char because int might match the return type of a gcc2
21081 builtin and then its argument prototype would still apply. */
21088 if { (eval echo configure:21089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21090 eval "ac_cv_lib_$ac_lib_var=yes"
21092 echo "configure: failed program was:" >&5
21093 cat conftest.$ac_ext >&5
21095 eval "ac_cv_lib_$ac_lib_var=no"
21098 LIBS="$ac_save_LIBS"
21101 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21102 echo "$ac_t""yes" 1>&6
21103 cat >> confdefs.h <<\EOF
21104 #define HAVE_STRFTIME 1
21107 LIBS="-lintl $LIBS"
21109 echo "$ac_t""no" 1>&6
21115 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
21116 echo "configure:21117: checking for inet_aton()" >&5
21117 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
21118 echo $ac_n "(cached) $ac_c" 1>&6
21120 cat > conftest.$ac_ext <<EOF
21121 #line 21122 "configure"
21122 #include "confdefs.h"
21124 #ifdef HAVE_SYS_TYPES_H
21125 # include <sys/types.h>
21127 #ifdef HAVE_SYS_SOCKET_H
21128 # include <sys/socket.h>
21129 # ifdef HAVE_SYS_SELECT_H
21130 # include <sys/select.h>
21132 # include <netinet/in.h>
21133 # ifdef HAVE_ARPA_INET_H
21134 # include <arpa/inet.h>
21140 int rc = inet_aton( "255.255.255.255", &in );
21143 if { (eval echo configure:21144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21145 ol_cv_func_inet_aton=yes
21147 echo "configure: failed program was:" >&5
21148 cat conftest.$ac_ext >&5
21150 ol_cv_func_inet_aton=no
21155 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
21156 if test $ol_cv_func_inet_aton != no; then
21157 cat >> confdefs.h <<\EOF
21158 #define HAVE_INET_ATON 1
21164 echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
21165 echo "configure:21166: checking for _spawnlp" >&5
21166 if eval "test \"\${ac_cv_func__spawnlp+set}\" = set"; then
21167 echo $ac_n "(cached) $ac_c" 1>&6
21169 cat > conftest.$ac_ext <<EOF
21170 #line 21171 "configure"
21171 #include "confdefs.h"
21172 /* System header to define __stub macros and hopefully few prototypes,
21173 which can conflict with char _spawnlp(); below. */
21174 #include <assert.h>
21175 /* Override any gcc2 internal prototype to avoid an error. */
21176 /* We use char because int might match the return type of a gcc2
21177 builtin and then its argument prototype would still apply. */
21183 /* The GNU C library defines this for functions which it implements
21184 to always fail with ENOSYS. Some functions are actually named
21185 something starting with __ and the normal name is an alias. */
21186 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
21194 if { (eval echo configure:21195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21196 eval "ac_cv_func__spawnlp=yes"
21198 echo "configure: failed program was:" >&5
21199 cat conftest.$ac_ext >&5
21201 eval "ac_cv_func__spawnlp=no"
21206 if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
21207 echo "$ac_t""yes" 1>&6
21208 cat >> confdefs.h <<\EOF
21209 #define HAVE_SPAWNLP 1
21213 echo "$ac_t""no" 1>&6
21217 echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
21218 echo "configure:21219: checking for _snprintf" >&5
21219 if eval "test \"\${ac_cv_func__snprintf+set}\" = set"; then
21220 echo $ac_n "(cached) $ac_c" 1>&6
21222 cat > conftest.$ac_ext <<EOF
21223 #line 21224 "configure"
21224 #include "confdefs.h"
21225 /* System header to define __stub macros and hopefully few prototypes,
21226 which can conflict with char _snprintf(); below. */
21227 #include <assert.h>
21228 /* Override any gcc2 internal prototype to avoid an error. */
21229 /* We use char because int might match the return type of a gcc2
21230 builtin and then its argument prototype would still apply. */
21236 /* The GNU C library defines this for functions which it implements
21237 to always fail with ENOSYS. Some functions are actually named
21238 something starting with __ and the normal name is an alias. */
21239 #if defined (__stub__snprintf) || defined (__stub____snprintf)
21247 if { (eval echo configure:21248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21249 eval "ac_cv_func__snprintf=yes"
21251 echo "configure: failed program was:" >&5
21252 cat conftest.$ac_ext >&5
21254 eval "ac_cv_func__snprintf=no"
21259 if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
21260 echo "$ac_t""yes" 1>&6
21261 ac_cv_func_snprintf=yes
21262 cat >> confdefs.h <<\EOF
21263 #define snprintf _snprintf
21268 echo "$ac_t""no" 1>&6
21272 echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
21273 echo "configure:21274: checking for _vsnprintf" >&5
21274 if eval "test \"\${ac_cv_func__vsnprintf+set}\" = set"; then
21275 echo $ac_n "(cached) $ac_c" 1>&6
21277 cat > conftest.$ac_ext <<EOF
21278 #line 21279 "configure"
21279 #include "confdefs.h"
21280 /* System header to define __stub macros and hopefully few prototypes,
21281 which can conflict with char _vsnprintf(); below. */
21282 #include <assert.h>
21283 /* Override any gcc2 internal prototype to avoid an error. */
21284 /* We use char because int might match the return type of a gcc2
21285 builtin and then its argument prototype would still apply. */
21291 /* The GNU C library defines this for functions which it implements
21292 to always fail with ENOSYS. Some functions are actually named
21293 something starting with __ and the normal name is an alias. */
21294 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
21302 if { (eval echo configure:21303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21304 eval "ac_cv_func__vsnprintf=yes"
21306 echo "configure: failed program was:" >&5
21307 cat conftest.$ac_ext >&5
21309 eval "ac_cv_func__vsnprintf=no"
21314 if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
21315 echo "$ac_t""yes" 1>&6
21316 ac_cv_func_vsnprintf=yes
21317 cat >> confdefs.h <<\EOF
21318 #define vsnprintf _vsnprintf
21323 echo "$ac_t""no" 1>&6
21327 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
21328 echo "configure:21329: checking for vprintf" >&5
21329 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
21330 echo $ac_n "(cached) $ac_c" 1>&6
21332 cat > conftest.$ac_ext <<EOF
21333 #line 21334 "configure"
21334 #include "confdefs.h"
21335 /* System header to define __stub macros and hopefully few prototypes,
21336 which can conflict with char vprintf(); below. */
21337 #include <assert.h>
21338 /* Override any gcc2 internal prototype to avoid an error. */
21339 /* We use char because int might match the return type of a gcc2
21340 builtin and then its argument prototype would still apply. */
21346 /* The GNU C library defines this for functions which it implements
21347 to always fail with ENOSYS. Some functions are actually named
21348 something starting with __ and the normal name is an alias. */
21349 #if defined (__stub_vprintf) || defined (__stub___vprintf)
21357 if { (eval echo configure:21358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21359 eval "ac_cv_func_vprintf=yes"
21361 echo "configure: failed program was:" >&5
21362 cat conftest.$ac_ext >&5
21364 eval "ac_cv_func_vprintf=no"
21369 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
21370 echo "$ac_t""yes" 1>&6
21371 cat >> confdefs.h <<\EOF
21372 #define HAVE_VPRINTF 1
21376 echo "$ac_t""no" 1>&6
21379 if test "$ac_cv_func_vprintf" != yes; then
21380 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
21381 echo "configure:21382: checking for _doprnt" >&5
21382 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
21383 echo $ac_n "(cached) $ac_c" 1>&6
21385 cat > conftest.$ac_ext <<EOF
21386 #line 21387 "configure"
21387 #include "confdefs.h"
21388 /* System header to define __stub macros and hopefully few prototypes,
21389 which can conflict with char _doprnt(); below. */
21390 #include <assert.h>
21391 /* Override any gcc2 internal prototype to avoid an error. */
21392 /* We use char because int might match the return type of a gcc2
21393 builtin and then its argument prototype would still apply. */
21399 /* The GNU C library defines this for functions which it implements
21400 to always fail with ENOSYS. Some functions are actually named
21401 something starting with __ and the normal name is an alias. */
21402 #if defined (__stub__doprnt) || defined (__stub____doprnt)
21410 if { (eval echo configure:21411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21412 eval "ac_cv_func__doprnt=yes"
21414 echo "configure: failed program was:" >&5
21415 cat conftest.$ac_ext >&5
21417 eval "ac_cv_func__doprnt=no"
21422 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
21423 echo "$ac_t""yes" 1>&6
21424 cat >> confdefs.h <<\EOF
21425 #define HAVE_DOPRNT 1
21429 echo "$ac_t""no" 1>&6
21435 if test $ac_cv_func_vprintf = yes ; then
21436 for ac_func in vsnprintf vsprintf
21438 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21439 echo "configure:21440: checking for $ac_func" >&5
21440 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
21441 echo $ac_n "(cached) $ac_c" 1>&6
21443 cat > conftest.$ac_ext <<EOF
21444 #line 21445 "configure"
21445 #include "confdefs.h"
21446 /* System header to define __stub macros and hopefully few prototypes,
21447 which can conflict with char $ac_func(); below. */
21448 #include <assert.h>
21449 /* Override any gcc2 internal prototype to avoid an error. */
21450 /* We use char because int might match the return type of a gcc2
21451 builtin and then its argument prototype would still apply. */
21457 /* The GNU C library defines this for functions which it implements
21458 to always fail with ENOSYS. Some functions are actually named
21459 something starting with __ and the normal name is an alias. */
21460 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21468 if { (eval echo configure:21469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21470 eval "ac_cv_func_$ac_func=yes"
21472 echo "configure: failed program was:" >&5
21473 cat conftest.$ac_ext >&5
21475 eval "ac_cv_func_$ac_func=no"
21480 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21481 echo "$ac_t""yes" 1>&6
21482 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21483 cat >> confdefs.h <<EOF
21484 #define $ac_tr_func 1
21488 echo "$ac_t""no" 1>&6
21548 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21549 echo "configure:21550: checking for $ac_func" >&5
21550 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
21551 echo $ac_n "(cached) $ac_c" 1>&6
21553 cat > conftest.$ac_ext <<EOF
21554 #line 21555 "configure"
21555 #include "confdefs.h"
21556 /* System header to define __stub macros and hopefully few prototypes,
21557 which can conflict with char $ac_func(); below. */
21558 #include <assert.h>
21559 /* Override any gcc2 internal prototype to avoid an error. */
21560 /* We use char because int might match the return type of a gcc2
21561 builtin and then its argument prototype would still apply. */
21567 /* The GNU C library defines this for functions which it implements
21568 to always fail with ENOSYS. Some functions are actually named
21569 something starting with __ and the normal name is an alias. */
21570 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21578 if { (eval echo configure:21579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21580 eval "ac_cv_func_$ac_func=yes"
21582 echo "configure: failed program was:" >&5
21583 cat conftest.$ac_ext >&5
21585 eval "ac_cv_func_$ac_func=no"
21590 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21591 echo "$ac_t""yes" 1>&6
21592 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21593 cat >> confdefs.h <<EOF
21594 #define $ac_tr_func 1
21598 echo "$ac_t""no" 1>&6
21603 for ac_func in getopt
21605 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21606 echo "configure:21607: checking for $ac_func" >&5
21607 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
21608 echo $ac_n "(cached) $ac_c" 1>&6
21610 cat > conftest.$ac_ext <<EOF
21611 #line 21612 "configure"
21612 #include "confdefs.h"
21613 /* System header to define __stub macros and hopefully few prototypes,
21614 which can conflict with char $ac_func(); below. */
21615 #include <assert.h>
21616 /* Override any gcc2 internal prototype to avoid an error. */
21617 /* We use char because int might match the return type of a gcc2
21618 builtin and then its argument prototype would still apply. */
21624 /* The GNU C library defines this for functions which it implements
21625 to always fail with ENOSYS. Some functions are actually named
21626 something starting with __ and the normal name is an alias. */
21627 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21635 if { (eval echo configure:21636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21637 eval "ac_cv_func_$ac_func=yes"
21639 echo "configure: failed program was:" >&5
21640 cat conftest.$ac_ext >&5
21642 eval "ac_cv_func_$ac_func=no"
21647 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21648 echo "$ac_t""yes" 1>&6
21649 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21650 cat >> confdefs.h <<EOF
21651 #define $ac_tr_func 1
21655 echo "$ac_t""no" 1>&6
21656 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
21662 if test "$ac_cv_func_getopt" != yes; then
21663 LIBSRCS="$LIBSRCS getopt.c"
21666 # Check Configuration
21667 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
21668 echo "configure:21669: checking declaration of sys_errlist" >&5
21669 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
21670 echo $ac_n "(cached) $ac_c" 1>&6
21673 cat > conftest.$ac_ext <<EOF
21674 #line 21675 "configure"
21675 #include "confdefs.h"
21678 #include <sys/types.h>
21681 #include <stdlib.h>
21684 char *c = (char *) *sys_errlist
21687 if { (eval echo configure:21688: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21689 ol_cv_dcl_sys_errlist=yes
21690 ol_cv_have_sys_errlist=yes
21692 echo "configure: failed program was:" >&5
21693 cat conftest.$ac_ext >&5
21695 ol_cv_dcl_sys_errlist=no
21700 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
21702 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
21703 if test $ol_cv_dcl_sys_errlist = no ; then
21704 cat >> confdefs.h <<\EOF
21705 #define DECL_SYS_ERRLIST 1
21709 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
21710 echo "configure:21711: checking existence of sys_errlist" >&5
21711 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
21712 echo $ac_n "(cached) $ac_c" 1>&6
21715 cat > conftest.$ac_ext <<EOF
21716 #line 21717 "configure"
21717 #include "confdefs.h"
21720 char *c = (char *) *sys_errlist
21723 if { (eval echo configure:21724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21725 ol_cv_have_sys_errlist=yes
21727 echo "configure: failed program was:" >&5
21728 cat conftest.$ac_ext >&5
21730 ol_cv_have_sys_errlist=no
21735 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
21737 if test $ol_cv_have_sys_errlist = yes ; then
21738 cat >> confdefs.h <<\EOF
21739 #define HAVE_SYS_ERRLIST 1
21746 if test "$ol_enable_debug" != no ; then
21747 cat >> confdefs.h <<\EOF
21748 #define LDAP_DEBUG 1
21752 if test "$ol_enable_syslog" = yes ; then
21753 cat >> confdefs.h <<\EOF
21754 #define LDAP_SYSLOG 1
21758 if test "$ol_enable_cache" = no ; then
21759 cat >> confdefs.h <<\EOF
21760 #define LDAP_NOCACHE 1
21764 if test "$ol_link_kbind" != no ; then
21765 cat >> confdefs.h <<\EOF
21766 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
21770 if test "$ol_enable_proctitle" != no ; then
21771 cat >> confdefs.h <<\EOF
21772 #define LDAP_PROCTITLE 1
21776 if test "$ol_enable_referrals" != no ; then
21777 cat >> confdefs.h <<\EOF
21778 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
21782 if test "$ol_enable_local" != no; then
21783 cat >> confdefs.h <<\EOF
21784 #define LDAP_PF_LOCAL 1
21788 if test "$ol_link_ipv6" != no; then
21789 cat >> confdefs.h <<\EOF
21790 #define LDAP_PF_INET6 1
21794 if test "$ol_enable_cleartext" != no ; then
21795 cat >> confdefs.h <<\EOF
21796 #define SLAPD_CLEARTEXT 1
21800 if test "$ol_enable_crypt" != no ; then
21801 cat >> confdefs.h <<\EOF
21802 #define SLAPD_CRYPT 1
21806 if test "$ol_link_kpasswd" != no ; then
21807 cat >> confdefs.h <<\EOF
21808 #define SLAPD_KPASSWD 1
21812 if test "$ol_link_spasswd" != no ; then
21813 cat >> confdefs.h <<\EOF
21814 #define SLAPD_SPASSWD 1
21818 if test "$ol_enable_phonetic" != no ; then
21819 cat >> confdefs.h <<\EOF
21820 #define SLAPD_PHONETIC 1
21824 if test "$ol_enable_rlookups" != no ; then
21825 cat >> confdefs.h <<\EOF
21826 #define SLAPD_RLOOKUPS 1
21830 if test "$ol_enable_aci" != no ; then
21831 cat >> confdefs.h <<\EOF
21832 #define SLAPD_ACI_ENABLED 1
21837 if test "$ol_link_modules" != no ; then
21838 cat >> confdefs.h <<\EOF
21839 #define SLAPD_MODULES 1
21843 SLAPD_MODULES_LDFLAGS="-dlopen self"
21846 if test "$ol_enable_bdb" != no ; then
21847 cat >> confdefs.h <<\EOF
21848 #define SLAPD_BDB 1
21853 if test "$ol_with_bdb_module" != static ; then
21854 cat >> confdefs.h <<\EOF
21855 #define SLAPD_BDB_DYNAMIC 1
21859 BUILD_BDB_DYNAMIC=shared
21860 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-bdb/back_bdb.la"
21861 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
21863 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
21867 if test "$ol_link_dnssrv" != no ; then
21868 cat >> confdefs.h <<\EOF
21869 #define SLAPD_DNSSRV 1
21874 if test "$ol_with_dnssrv_module" != static ; then
21875 cat >> confdefs.h <<\EOF
21876 #define SLAPD_DNSSRV_DYNAMIC 1
21880 BUILD_DNSSRV_DYNAMIC=shared
21881 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-dnssrv/back_dnssrv.la"
21882 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
21884 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
21888 if test "$ol_enable_ldap" != no ; then
21889 cat >> confdefs.h <<\EOF
21890 #define SLAPD_LDAP 1
21895 if test "$ol_with_ldap_module" != static ; then
21896 cat >> confdefs.h <<\EOF
21897 #define SLAPD_LDAP_DYNAMIC 1
21901 BUILD_LDAP_DYNAMIC=shared
21902 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldap/back_ldap.la"
21903 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
21905 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
21909 if test "$ol_link_ldbm" != no -a $ol_enable_ldbm != no; then
21910 cat >> confdefs.h <<\EOF
21911 #define SLAPD_LDBM 1
21917 if test "$ol_with_ldbm_module" != static ; then
21918 cat >> confdefs.h <<\EOF
21919 #define SLAPD_LDBM_DYNAMIC 1
21923 BUILD_LDBM_DYNAMIC=shared
21924 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldbm/back_ldbm.la"
21925 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
21927 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
21931 if test "$ol_enable_meta" != no ; then
21932 if test "$ol_enable_ldap" = no ; then
21933 { echo "configure: error: need --enable-ldap to use --enable-meta" 1>&2; exit 1; }
21935 if test "$ol_enable_rewrite" = no ; then
21936 { echo "configure: error: need --enable-rewrite to use --enable-meta" 1>&2; exit 1; }
21938 cat >> confdefs.h <<\EOF
21939 #define SLAPD_META 1
21944 if test "$ol_with_meta_module" != static ; then
21945 cat >> confdefs.h <<\EOF
21946 #define SLAPD_META_DYNAMIC 1
21950 BUILD_META_DYNAMIC=shared
21951 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-meta/back_meta.la"
21952 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
21954 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
21958 if test "$ol_enable_monitor" != no ; then
21959 cat >> confdefs.h <<\EOF
21960 #define SLAPD_MONITOR 1
21965 if test "$ol_with_monitor_module" != static ; then
21966 cat >> confdefs.h <<\EOF
21967 #define SLAPD_MONITOR_DYNAMIC 1
21971 BUILD_MONITOR_DYNAMIC=shared
21972 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-monitor/back_monitor.la"
21973 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
21975 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
21979 if test "$ol_enable_passwd" != no ; then
21980 cat >> confdefs.h <<\EOF
21981 #define SLAPD_PASSWD 1
21986 if test "$ol_with_passwd_module" != static ; then
21987 cat >> confdefs.h <<\EOF
21988 #define SLAPD_PASSWD_DYNAMIC 1
21992 BUILD_PASSWD_DYNAMIC=shared
21993 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-passwd/back_passwd.la"
21994 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
21996 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
22000 if test "$ol_link_perl" != no ; then
22001 cat >> confdefs.h <<\EOF
22002 #define SLAPD_PERL 1
22007 if test "$ol_with_perl_module" != static ; then
22008 cat >> confdefs.h <<\EOF
22009 #define SLAPD_PERL_DYNAMIC 1
22013 BUILD_PERL_DYNAMIC=shared
22014 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-perl/back_perl.la"
22015 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
22017 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
22021 if test "$ol_enable_shell" != no ; then
22022 cat >> confdefs.h <<\EOF
22023 #define SLAPD_SHELL 1
22028 if test "$ol_with_shell_module" != static ; then
22029 cat >> confdefs.h <<\EOF
22030 #define SLAPD_SHELL_DYNAMIC 1
22034 BUILD_SHELL_DYNAMIC=shared
22035 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-shell/back_shell.la"
22036 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
22038 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
22042 if test "$ol_enable_tcl" != no ; then
22043 cat >> confdefs.h <<\EOF
22044 #define SLAPD_TCL 1
22049 if test "$ol_with_tcl_module" != static; then
22050 cat >> confdefs.h <<\EOF
22051 #define SLAPD_TCL_DYNAMIC 1
22055 BUILD_TCL_DYNAMIC=shared
22056 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-tcl/back_tcl.la"
22057 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-tcl"
22059 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-tcl"
22063 if test "$ol_link_sql" != no ; then
22064 cat >> confdefs.h <<\EOF
22065 #define SLAPD_SQL 1
22070 if test "$ol_with_sql_module" != static; then
22071 cat >> confdefs.h <<\EOF
22072 #define SLAPD_SQL_DYNAMIC 1
22076 BUILD_SQL_DYNAMIC=shared
22077 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-sql/back_sql.la"
22078 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
22080 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
22084 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
22085 $BUILD_SLAPD = yes ; then
22089 if test "$ol_enable_rewrite" != no ; then
22090 cat >> confdefs.h <<\EOF
22091 #define ENABLE_REWRITE 1
22095 SLAPD_LIBS="$SLAPD_LIBS -lrewrite"
22100 if test "$ac_cv_mingw32" = yes ; then
22102 SLAPD_MODULES_LDFLAGS=
22103 SLAPD_MODULES_LIST=
22175 # Check whether --with-xxinstall or --without-xxinstall was given.
22176 if test "${with_xxinstall+set}" = set; then
22177 withval="$with_xxinstall"
22185 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
22187 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22188 # Let make expand exec_prefix.
22189 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22191 # Any assignment to VPATH causes Sun make to only execute
22192 # the first set of double-colon rules, so remove it if not needed.
22193 # If there is a colon in the path, we need to keep it.
22194 if test "x$srcdir" = x.; then
22195 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
22198 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
22200 DEFS=-DHAVE_CONFIG_H
22202 # Without the "./", some shells look in PATH for config.status.
22203 : ${CONFIG_STATUS=./config.status}
22205 echo creating $CONFIG_STATUS
22206 rm -f $CONFIG_STATUS
22207 cat > $CONFIG_STATUS <<EOF
22209 # Generated automatically by configure.
22210 # Run this file to recreate the current configuration.
22211 # This directory was configured as follows,
22212 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22214 # $0 $ac_configure_args
22216 # Compiler output produced by configure, useful for debugging
22217 # configure, is in ./config.log if it exists.
22219 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
22222 case "\$ac_option" in
22223 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22224 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
22225 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
22226 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
22227 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
22229 -help | --help | --hel | --he | --h)
22230 echo "\$ac_cs_usage"; exit 0 ;;
22231 *) echo "\$ac_cs_usage"; exit 1 ;;
22235 ac_given_srcdir=$srcdir
22236 ac_given_INSTALL="$INSTALL"
22238 trap 'rm -fr `echo "\
22239 Makefile:build/top.mk:Makefile.in:build/dir.mk \
22240 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
22241 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
22242 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
22243 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
22244 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
22245 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
22246 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
22247 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
22248 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
22249 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
22250 clients/maildap/Makefile:build/top.mk:clients/maildap/Makefile.in:build/rules.mk \
22251 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
22252 include/Makefile:build/top.mk:include/Makefile.in \
22253 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
22254 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
22255 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
22256 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
22257 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
22258 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
22259 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
22260 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
22261 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
22262 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
22263 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
22264 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
22265 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
22266 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
22267 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
22268 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
22269 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
22270 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
22271 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
22272 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
22273 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
22274 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
22275 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
22276 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
22277 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
22278 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
22279 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
22280 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
22281 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
22283 cat >> $CONFIG_STATUS <<EOF
22285 # Protect against being on the right side of a sed subst in config.status.
22286 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
22287 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
22291 s%@CFLAGS@%$CFLAGS%g
22292 s%@CPPFLAGS@%$CPPFLAGS%g
22293 s%@CXXFLAGS@%$CXXFLAGS%g
22294 s%@FFLAGS@%$FFLAGS%g
22296 s%@LDFLAGS@%$LDFLAGS%g
22298 s%@exec_prefix@%$exec_prefix%g
22299 s%@prefix@%$prefix%g
22300 s%@program_transform_name@%$program_transform_name%g
22301 s%@bindir@%$bindir%g
22302 s%@sbindir@%$sbindir%g
22303 s%@libexecdir@%$libexecdir%g
22304 s%@datadir@%$datadir%g
22305 s%@sysconfdir@%$sysconfdir%g
22306 s%@sharedstatedir@%$sharedstatedir%g
22307 s%@localstatedir@%$localstatedir%g
22308 s%@libdir@%$libdir%g
22309 s%@includedir@%$includedir%g
22310 s%@oldincludedir@%$oldincludedir%g
22311 s%@infodir@%$infodir%g
22312 s%@mandir@%$mandir%g
22313 s%@SHTOOL@%$SHTOOL%g
22315 s%@host_alias@%$host_alias%g
22316 s%@host_cpu@%$host_cpu%g
22317 s%@host_vendor@%$host_vendor%g
22318 s%@host_os@%$host_os%g
22319 s%@target@%$target%g
22320 s%@target_alias@%$target_alias%g
22321 s%@target_cpu@%$target_cpu%g
22322 s%@target_vendor@%$target_vendor%g
22323 s%@target_os@%$target_os%g
22325 s%@build_alias@%$build_alias%g
22326 s%@build_cpu@%$build_cpu%g
22327 s%@build_vendor@%$build_vendor%g
22328 s%@build_os@%$build_os%g
22329 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
22330 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
22331 s%@INSTALL_DATA@%$INSTALL_DATA%g
22332 s%@PACKAGE@%$PACKAGE%g
22333 s%@VERSION@%$VERSION%g
22334 s%@ACLOCAL@%$ACLOCAL%g
22335 s%@AUTOCONF@%$AUTOCONF%g
22336 s%@AUTOMAKE@%$AUTOMAKE%g
22337 s%@AUTOHEADER@%$AUTOHEADER%g
22338 s%@MAKEINFO@%$MAKEINFO%g
22339 s%@install_sh@%$install_sh%g
22342 s%@AMTARFLAGS@%$AMTARFLAGS%g
22343 s%@SET_MAKE@%$SET_MAKE%g
22344 s%@OPENLDAP_LIBVERSION@%$OPENLDAP_LIBVERSION%g
22345 s%@top_builddir@%$top_builddir%g
22346 s%@ldap_subdir@%$ldap_subdir%g
22350 s%@OBJEXT@%$OBJEXT%g
22351 s%@EXEEXT@%$EXEEXT%g
22353 s%@RANLIB@%$RANLIB%g
22355 s%@DLLTOOL@%$DLLTOOL%g
22357 s%@OBJDUMP@%$OBJDUMP%g
22359 s%@LIBTOOL@%$LIBTOOL%g
22360 s%@SENDMAIL@%$SENDMAIL%g
22361 s%@EDITOR@%$EDITOR%g
22362 s%@FINGER@%$FINGER%g
22363 s%@PERLBIN@%$PERLBIN%g
22364 s%@OL_MKDEP@%$OL_MKDEP%g
22365 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
22366 s%@LIBOBJS@%$LIBOBJS%g
22367 s%@LIBSRCS@%$LIBSRCS%g
22369 s%@BUILD_LIBS_DYNAMIC@%$BUILD_LIBS_DYNAMIC%g
22370 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
22371 s%@BUILD_BDB@%$BUILD_BDB%g
22372 s%@BUILD_DNSSRV@%$BUILD_DNSSRV%g
22373 s%@BUILD_LDAP@%$BUILD_LDAP%g
22374 s%@BUILD_LDBM@%$BUILD_LDBM%g
22375 s%@BUILD_META@%$BUILD_META%g
22376 s%@BUILD_MONITOR@%$BUILD_MONITOR%g
22377 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
22378 s%@BUILD_PERL@%$BUILD_PERL%g
22379 s%@BUILD_SHELL@%$BUILD_SHELL%g
22380 s%@BUILD_SQL@%$BUILD_SQL%g
22381 s%@BUILD_TCL@%$BUILD_TCL%g
22382 s%@BUILD_BDB_DYNAMIC@%$BUILD_BDB_DYNAMIC%g
22383 s%@BUILD_DNSSRV_DYNAMIC@%$BUILD_DNSSRV_DYNAMIC%g
22384 s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
22385 s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
22386 s%@BUILD_META_DYNAMIC@%$BUILD_META_DYNAMIC%g
22387 s%@BUILD_MONITOR_DYNAMIC@%$BUILD_MONITOR_DYNAMIC%g
22388 s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
22389 s%@BUILD_PERL_DYNAMIC@%$BUILD_PERL_DYNAMIC%g
22390 s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
22391 s%@BUILD_SQL_DYNAMIC@%$BUILD_SQL_DYNAMIC%g
22392 s%@BUILD_TCL_DYNAMIC@%$BUILD_TCL_DYNAMIC%g
22393 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
22394 s%@LDBM_LIB@%$LDBM_LIB%g
22395 s%@LDAP_LIBS@%$LDAP_LIBS%g
22396 s%@LDIF_LIBS@%$LDIF_LIBS%g
22397 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
22398 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
22399 s%@LDBM_LIBS@%$LDBM_LIBS%g
22400 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
22401 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
22402 s%@WRAP_LIBS@%$WRAP_LIBS%g
22403 s%@MOD_TCL_LIB@%$MOD_TCL_LIB%g
22404 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
22405 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
22406 s%@SLAPD_MODULES_LIST@%$SLAPD_MODULES_LIST%g
22407 s%@SLAPD_STATIC_BACKENDS@%$SLAPD_STATIC_BACKENDS%g
22408 s%@SLAPD_DYNAMIC_BACKENDS@%$SLAPD_DYNAMIC_BACKENDS%g
22409 s%@PERL_CPPFLAGS@%$PERL_CPPFLAGS%g
22410 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
22411 s%@MOD_PERL_LDFLAGS@%$MOD_PERL_LDFLAGS%g
22412 s%@KRB4_LIBS@%$KRB4_LIBS%g
22413 s%@KRB5_LIBS@%$KRB5_LIBS%g
22414 s%@READLINE_LIBS@%$READLINE_LIBS%g
22415 s%@SASL_LIBS@%$SASL_LIBS%g
22416 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
22417 s%@TLS_LIBS@%$TLS_LIBS%g
22418 s%@MODULES_LIBS@%$MODULES_LIBS%g
22419 s%@AUTH_LIBS@%$AUTH_LIBS%g
22420 s%@SLAPD_SLP_LIBS@%$SLAPD_SLP_LIBS%g
22421 s%@SLAPD_SQL_LDFLAGS@%$SLAPD_SQL_LDFLAGS%g
22422 s%@SLAPD_SQL_LIBS@%$SLAPD_SQL_LIBS%g
22423 s%@SLAPD_SQL_INCLUDES@%$SLAPD_SQL_INCLUDES%g
22428 cat >> $CONFIG_STATUS <<\EOF
22430 # Split the substitutions into bite-sized pieces for seds with
22431 # small command number limits, like on Digital OSF/1 and HP-UX.
22432 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
22433 ac_file=1 # Number of current file.
22434 ac_beg=1 # First line for current file.
22435 ac_end=$ac_max_sed_cmds # Line after last line for current file.
22438 while $ac_more_lines; do
22439 if test $ac_beg -gt 1; then
22440 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
22442 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
22444 if test ! -s conftest.s$ac_file; then
22445 ac_more_lines=false
22446 rm -f conftest.s$ac_file
22448 if test -z "$ac_sed_cmds"; then
22449 ac_sed_cmds="sed -f conftest.s$ac_file"
22451 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
22453 ac_file=`expr $ac_file + 1`
22455 ac_end=`expr $ac_end + $ac_max_sed_cmds`
22458 if test -z "$ac_sed_cmds"; then
22463 cat >> $CONFIG_STATUS <<EOF
22465 CONFIG_FILES=\${CONFIG_FILES-"\
22466 Makefile:build/top.mk:Makefile.in:build/dir.mk \
22467 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
22468 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
22469 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
22470 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
22471 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
22472 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
22473 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
22474 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
22475 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
22476 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
22477 clients/maildap/Makefile:build/top.mk:clients/maildap/Makefile.in:build/rules.mk \
22478 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
22479 include/Makefile:build/top.mk:include/Makefile.in \
22480 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
22481 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
22482 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
22483 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
22484 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
22485 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
22486 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
22487 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
22488 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
22489 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
22490 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
22491 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
22492 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
22493 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
22494 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
22495 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
22496 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
22497 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
22498 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
22499 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
22500 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
22501 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
22502 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
22503 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
22504 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
22505 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
22506 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
22507 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
22510 cat >> $CONFIG_STATUS <<\EOF
22511 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
22512 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22514 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22515 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22516 *) ac_file_in="${ac_file}.in" ;;
22519 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
22521 # Remove last slash and all that follows it. Not all systems have dirname.
22522 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
22523 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22524 # The file is in a subdirectory.
22525 test ! -d "$ac_dir" && mkdir "$ac_dir"
22526 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
22527 # A "../" for each directory in $ac_dir_suffix.
22528 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
22530 ac_dir_suffix= ac_dots=
22533 case "$ac_given_srcdir" in
22535 if test -z "$ac_dots"; then top_srcdir=.
22536 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
22537 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
22538 *) # Relative path.
22539 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
22540 top_srcdir="$ac_dots$ac_given_srcdir" ;;
22543 case "$ac_given_INSTALL" in
22544 [/$]*) INSTALL="$ac_given_INSTALL" ;;
22545 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
22548 echo creating "$ac_file"
22550 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
22552 *[Mm]akefile*) ac_comsub="1i\\
22553 # $configure_input" ;;
22557 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
22559 s%@configure_input@%$configure_input%g
22560 s%@srcdir@%$srcdir%g
22561 s%@top_srcdir@%$top_srcdir%g
22562 s%@INSTALL@%$INSTALL%g
22563 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
22567 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22568 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22570 # ac_d sets the value in "#define NAME VALUE" lines.
22571 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22572 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
22575 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
22576 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22577 ac_uB='\([ ]\)%\1#\2define\3'
22580 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22581 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22582 ac_eB='$%\1#\2define\3'
22586 if test "${CONFIG_HEADERS+set}" != set; then
22588 cat >> $CONFIG_STATUS <<EOF
22589 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
22591 cat >> $CONFIG_STATUS <<\EOF
22593 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
22594 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22596 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22597 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22598 *) ac_file_in="${ac_file}.in" ;;
22601 echo creating $ac_file
22603 rm -f conftest.frag conftest.in conftest.out
22604 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
22605 cat $ac_file_inputs > conftest.in
22609 # Transform confdefs.h into a sed script conftest.vals that substitutes
22610 # the proper values into config.h.in to produce config.h. And first:
22611 # Protect against being on the right side of a sed subst in config.status.
22612 # Protect against being in an unquoted here document in config.status.
22613 rm -f conftest.vals
22614 cat > conftest.hdr <<\EOF
22617 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
22621 sed -n -f conftest.hdr confdefs.h > conftest.vals
22624 # This sed command replaces #undef with comments. This is necessary, for
22625 # example, in the case of _POSIX_SOURCE, which is predefined and required
22626 # on some systems where configure will not decide to define it.
22627 cat >> conftest.vals <<\EOF
22628 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
22631 # Break up conftest.vals because some shells have a limit on
22632 # the size of here documents, and old seds have small limits too.
22634 rm -f conftest.tail
22637 ac_lines=`grep -c . conftest.vals`
22638 # grep -c gives empty output for an empty file on some AIX systems.
22639 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
22640 # Write a limited-size here document to conftest.frag.
22641 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
22642 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
22644 sed -f conftest.frag conftest.in > conftest.out
22646 mv conftest.out conftest.in
22647 ' >> $CONFIG_STATUS
22648 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
22649 rm -f conftest.vals
22650 mv conftest.tail conftest.vals
22652 rm -f conftest.vals
22654 cat >> $CONFIG_STATUS <<\EOF
22655 rm -f conftest.frag conftest.h
22656 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
22657 cat conftest.in >> conftest.h
22659 if cmp -s $ac_file conftest.h 2>/dev/null; then
22660 echo "$ac_file is unchanged"
22663 # Remove last slash and all that follows it. Not all systems have dirname.
22664 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
22665 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22666 # The file is in a subdirectory.
22667 test ! -d "$ac_dir" && mkdir "$ac_dir"
22670 mv conftest.h $ac_file
22675 cat >> $CONFIG_STATUS <<EOF
22678 cat >> $CONFIG_STATUS <<\EOF
22681 echo Please run \"make depend\" to build dependencies
22685 chmod +x $CONFIG_STATUS
22686 rm -fr confdefs* $ac_clean_files
22687 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1