3 # from OpenLDAP: pkg/ldap/configure.in,v 1.407 2002/02/11 15:43:13 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"
871 TB=`$SHTOOL echo -e %B`
872 TN=`$SHTOOL echo -e %b`
874 echo "Configuring $TB$OL_STRING$TN ..."
877 echo $ac_n "checking host system type""... $ac_c" 1>&6
878 echo "configure:879: checking host system type" >&5
879 if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
881 # Make sure we can run config.sub.
882 if $ac_config_sub sun4 >/dev/null 2>&1; then :
883 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
886 ac_cv_host_alias=$host
887 case "$ac_cv_host_alias" in
891 if ac_cv_host_alias=`$ac_config_guess`; then :
892 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
894 *) ac_cv_host_alias=$nonopt ;;
898 ac_cv_host=`$ac_config_sub $ac_cv_host_alias`
899 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
900 ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
901 ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
903 echo $ac_n "(cached) $ac_c" 1>&6
906 echo "$ac_t""$ac_cv_host" 1>&6
909 host_alias=$ac_cv_host_alias
910 host_cpu=$ac_cv_host_cpu
911 host_vendor=$ac_cv_host_vendor
912 host_os=$ac_cv_host_os
918 echo $ac_n "checking target system type""... $ac_c" 1>&6
919 echo "configure:920: checking target system type" >&5
920 if test "x$ac_cv_target" = "x" || (test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
922 # Make sure we can run config.sub.
923 if $ac_config_sub sun4 >/dev/null 2>&1; then :
924 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
927 ac_cv_target_alias=$target
928 case "$ac_cv_target_alias" in
932 ac_cv_target_alias=$host_alias ;;
934 *) ac_cv_target_alias=$nonopt ;;
938 ac_cv_target=`$ac_config_sub $ac_cv_target_alias`
939 ac_cv_target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
940 ac_cv_target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
941 ac_cv_target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
943 echo $ac_n "(cached) $ac_c" 1>&6
946 echo "$ac_t""$ac_cv_target" 1>&6
949 target_alias=$ac_cv_target_alias
950 target_cpu=$ac_cv_target_cpu
951 target_vendor=$ac_cv_target_vendor
952 target_os=$ac_cv_target_os
958 echo $ac_n "checking build system type""... $ac_c" 1>&6
959 echo "configure:960: checking build system type" >&5
960 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
962 # Make sure we can run config.sub.
963 if $ac_config_sub sun4 >/dev/null 2>&1; then :
964 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
967 ac_cv_build_alias=$build
968 case "$ac_cv_build_alias" in
972 ac_cv_build_alias=$host_alias ;;
974 *) ac_cv_build_alias=$nonopt ;;
978 ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
979 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
980 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
981 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
983 echo $ac_n "(cached) $ac_c" 1>&6
986 echo "$ac_t""$ac_cv_build" 1>&6
989 build_alias=$ac_cv_build_alias
990 build_cpu=$ac_cv_build_cpu
991 build_vendor=$ac_cv_build_vendor
992 build_os=$ac_cv_build_os
998 # Do some error checking and defaulting for the host and target type.
1000 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1003 # 1. You are not allowed to specify --host, --target, and nonopt at the
1005 # 2. Host defaults to nonopt.
1006 # 3. If nonopt is not specified, then host defaults to the current host,
1007 # as determined by config.guess.
1008 # 4. Target and build default to nonopt.
1009 # 5. If nonopt is not specified, then target and build default to host.
1011 # The aliases save the names the user supplied, while $host etc.
1012 # will get canonicalized.
1013 case $host---$target---$nonopt in
1014 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1015 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1018 test "$host_alias" != "$target_alias" &&
1019 test "$program_prefix$program_suffix$program_transform_name" = \
1021 program_prefix=${target_alias}-
1024 # Find a good install program. We prefer a C program (faster),
1025 # so one script is as good as another. But avoid the broken or
1026 # incompatible versions:
1027 # SysV /etc/install, /usr/sbin/install
1028 # SunOS /usr/etc/install
1029 # IRIX /sbin/install
1031 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1032 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1033 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1034 # ./install, which can be erroneously created by make from ./install.sh.
1035 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1036 echo "configure:1037: checking for a BSD compatible install" >&5
1037 if test -z "$INSTALL"; then
1038 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
1039 echo $ac_n "(cached) $ac_c" 1>&6
1041 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1042 for ac_dir in $PATH; do
1043 # Account for people who put trailing slashes in PATH elements.
1045 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1047 # OSF1 and SCO ODT 3.0 have their own names for install.
1048 # Don't use installbsd from OSF since it installs stuff as root
1050 for ac_prog in ginstall scoinst install; do
1051 if test -f $ac_dir/$ac_prog; then
1052 if test $ac_prog = install &&
1053 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1054 # AIX install. It has an incompatible calling convention.
1056 elif test $ac_prog = install &&
1057 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
1058 # program-specific install script used by HP pwplus--don't use.
1061 ac_cv_path_install="$ac_dir/$ac_prog -c"
1072 if test "${ac_cv_path_install+set}" = set; then
1073 INSTALL="$ac_cv_path_install"
1075 # As a last resort, use the slow shell script. We don't cache a
1076 # path for INSTALL within a source directory, because that will
1077 # break other packages using the cache if that directory is
1078 # removed, or if the path is relative.
1079 INSTALL="$ac_install_sh"
1082 echo "$ac_t""$INSTALL" 1>&6
1084 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1085 # It thinks the first close brace ends the variable substitution.
1086 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1088 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1090 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1092 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1093 echo "configure:1094: checking whether build environment is sane" >&5
1096 echo timestamp > conftestfile
1097 # Do `set' in a subshell so we don't clobber the current shell's
1098 # arguments. Must try -L first in case configure is actually a
1099 # symlink; some systems play weird games with the mod time of symlinks
1100 # (eg FreeBSD returns the mod time of the symlink's containing
1103 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1104 if test "$*" = "X"; then
1106 set X `ls -t $srcdir/configure conftestfile`
1108 if test "$*" != "X $srcdir/configure conftestfile" \
1109 && test "$*" != "X conftestfile $srcdir/configure"; then
1111 # If neither matched, then we have a broken ls. This can happen
1112 # if, for instance, CONFIG_SHELL is bash and it inherits a
1113 # broken ls alias from the environment. This has actually
1114 # happened. Such a system could not be considered "sane".
1115 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1116 alias in your environment" 1>&2; exit 1; }
1119 test "$2" = conftestfile
1125 { echo "configure: error: newly created file is older than distributed files!
1126 Check your system clock" 1>&2; exit 1; }
1129 echo "$ac_t""yes" 1>&6
1130 if test "$program_transform_name" = s,x,x,; then
1131 program_transform_name=
1133 # Double any \ or $. echo might interpret backslashes.
1134 cat <<\EOF_SED > conftestsed
1135 s,\\,\\\\,g; s,\$,$$,g
1137 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1140 test "$program_prefix" != NONE &&
1141 program_transform_name="s,^,${program_prefix},;$program_transform_name"
1142 # Use a double $ so make ignores it.
1143 test "$program_suffix" != NONE &&
1144 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
1146 # sed with no file args requires a program.
1147 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1149 for ac_prog in mawk gawk nawk awk
1151 # Extract the first word of "$ac_prog", so it can be a program name with args.
1152 set dummy $ac_prog; ac_word=$2
1153 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1154 echo "configure:1155: checking for $ac_word" >&5
1155 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
1156 echo $ac_n "(cached) $ac_c" 1>&6
1158 if test -n "$AWK"; then
1159 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1161 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1163 for ac_dir in $ac_dummy; do
1164 test -z "$ac_dir" && ac_dir=.
1165 if test -f $ac_dir/$ac_word; then
1166 ac_cv_prog_AWK="$ac_prog"
1173 AWK="$ac_cv_prog_AWK"
1174 if test -n "$AWK"; then
1175 echo "$ac_t""$AWK" 1>&6
1177 echo "$ac_t""no" 1>&6
1180 test -n "$AWK" && break
1183 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1184 echo "configure:1185: checking whether ${MAKE-make} sets \${MAKE}" >&5
1185 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1186 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1187 echo $ac_n "(cached) $ac_c" 1>&6
1189 cat > conftestmake <<\EOF
1191 @echo 'ac_maketemp="${MAKE}"'
1193 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1194 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1195 if test -n "$ac_maketemp"; then
1196 eval ac_cv_prog_make_${ac_make}_set=yes
1198 eval ac_cv_prog_make_${ac_make}_set=no
1202 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1203 echo "$ac_t""yes" 1>&6
1206 echo "$ac_t""no" 1>&6
1207 SET_MAKE="MAKE=${MAKE-make}"
1216 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1217 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1222 missing_dir=`cd $ac_aux_dir && pwd`
1223 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1224 echo "configure:1225: checking for working aclocal" >&5
1225 # Run test in a subshell; some versions of sh will print an error if
1226 # an executable is not found, even if stderr is redirected.
1227 # Redirect stdin to placate older versions of autoconf. Sigh.
1228 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1230 echo "$ac_t""found" 1>&6
1232 ACLOCAL="$missing_dir/missing aclocal"
1233 echo "$ac_t""missing" 1>&6
1236 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1237 echo "configure:1238: checking for working autoconf" >&5
1238 # Run test in a subshell; some versions of sh will print an error if
1239 # an executable is not found, even if stderr is redirected.
1240 # Redirect stdin to placate older versions of autoconf. Sigh.
1241 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1243 echo "$ac_t""found" 1>&6
1245 AUTOCONF="$missing_dir/missing autoconf"
1246 echo "$ac_t""missing" 1>&6
1249 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1250 echo "configure:1251: checking for working automake" >&5
1251 # Run test in a subshell; some versions of sh will print an error if
1252 # an executable is not found, even if stderr is redirected.
1253 # Redirect stdin to placate older versions of autoconf. Sigh.
1254 if (automake --version) < /dev/null > /dev/null 2>&1; then
1256 echo "$ac_t""found" 1>&6
1258 AUTOMAKE="$missing_dir/missing automake"
1259 echo "$ac_t""missing" 1>&6
1262 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1263 echo "configure:1264: checking for working autoheader" >&5
1264 # Run test in a subshell; some versions of sh will print an error if
1265 # an executable is not found, even if stderr is redirected.
1266 # Redirect stdin to placate older versions of autoconf. Sigh.
1267 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1268 AUTOHEADER=autoheader
1269 echo "$ac_t""found" 1>&6
1271 AUTOHEADER="$missing_dir/missing autoheader"
1272 echo "$ac_t""missing" 1>&6
1275 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1276 echo "configure:1277: checking for working makeinfo" >&5
1277 # Run test in a subshell; some versions of sh will print an error if
1278 # an executable is not found, even if stderr is redirected.
1279 # Redirect stdin to placate older versions of autoconf. Sigh.
1280 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1282 echo "$ac_t""found" 1>&6
1284 MAKEINFO="$missing_dir/missing makeinfo"
1285 echo "$ac_t""missing" 1>&6
1288 install_sh="$missing_dir/install-sh"
1289 test -f "$install_sh" || install_sh="$missing_dir/install.sh"
1291 for ac_prog in gnutar gtar tar
1293 # Extract the first word of "$ac_prog", so it can be a program name with args.
1294 set dummy $ac_prog; ac_word=$2
1295 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1296 echo "configure:1297: checking for $ac_word" >&5
1297 if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then
1298 echo $ac_n "(cached) $ac_c" 1>&6
1300 if test -n "$AMTAR"; then
1301 ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
1303 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1305 for ac_dir in $ac_dummy; do
1306 test -z "$ac_dir" && ac_dir=.
1307 if test -f $ac_dir/$ac_word; then
1308 ac_cv_prog_AMTAR="$ac_prog"
1315 AMTAR="$ac_cv_prog_AMTAR"
1316 if test -n "$AMTAR"; then
1317 echo "$ac_t""$AMTAR" 1>&6
1319 echo "$ac_t""no" 1>&6
1322 test -n "$AMTAR" && break
1327 if test -n "$AMTAR"; then
1328 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
1333 cat >> confdefs.h <<EOF
1334 #define OPENLDAP_PACKAGE "$PACKAGE"
1337 cat >> confdefs.h <<EOF
1338 #define OPENLDAP_VERSION "$VERSION"
1342 cat >> confdefs.h <<EOF
1343 #define LDAP_VENDOR_VERSION $OL_API_INC
1346 cat >> confdefs.h <<EOF
1347 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
1350 cat >> confdefs.h <<EOF
1351 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
1354 cat >> confdefs.h <<EOF
1355 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
1359 OPENLDAP_LIBVERSION=$OL_API_LIB
1363 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
1364 echo "configure:1365: checking configure arguments" >&5
1369 ldap_subdir="/openldap"
1371 # Check whether --with-subdir or --without-subdir was given.
1372 if test "${with_subdir+set}" = set; then
1373 withval="$with_subdir"
1380 ldap_subdir="$withval"
1383 ldap_subdir="/$withval"
1390 # OpenLDAP --enable-debug
1391 # Check whether --enable-debug or --disable-debug was given.
1392 if test "${enable_debug+set}" = set; then
1393 enableval="$enable_debug"
1396 for ol_val in auto yes no ; do
1397 if test "$enableval" = "$ol_val" ; then
1401 if test "$ol_arg" = "invalid" ; then
1402 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
1404 ol_enable_debug="$ol_arg"
1407 ol_enable_debug="yes"
1409 # end --enable-debug
1410 # OpenLDAP --enable-syslog
1411 # Check whether --enable-syslog or --disable-syslog was given.
1412 if test "${enable_syslog+set}" = set; then
1413 enableval="$enable_syslog"
1416 for ol_val in auto yes no ; do
1417 if test "$enableval" = "$ol_val" ; then
1421 if test "$ol_arg" = "invalid" ; then
1422 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
1424 ol_enable_syslog="$ol_arg"
1427 ol_enable_syslog="auto"
1429 # end --enable-syslog
1430 # OpenLDAP --enable-proctitle
1431 # Check whether --enable-proctitle or --disable-proctitle was given.
1432 if test "${enable_proctitle+set}" = set; then
1433 enableval="$enable_proctitle"
1436 for ol_val in auto yes no ; do
1437 if test "$enableval" = "$ol_val" ; then
1441 if test "$ol_arg" = "invalid" ; then
1442 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
1444 ol_enable_proctitle="$ol_arg"
1447 ol_enable_proctitle="yes"
1449 # end --enable-proctitle
1450 # OpenLDAP --enable-cache
1451 # Check whether --enable-cache or --disable-cache was given.
1452 if test "${enable_cache+set}" = set; then
1453 enableval="$enable_cache"
1456 for ol_val in auto yes no ; do
1457 if test "$enableval" = "$ol_val" ; then
1461 if test "$ol_arg" = "invalid" ; then
1462 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
1464 ol_enable_cache="$ol_arg"
1467 ol_enable_cache="no"
1469 # end --enable-cache
1470 # OpenLDAP --enable-referrals
1471 # Check whether --enable-referrals or --disable-referrals was given.
1472 if test "${enable_referrals+set}" = set; then
1473 enableval="$enable_referrals"
1476 for ol_val in auto yes no ; do
1477 if test "$enableval" = "$ol_val" ; then
1481 if test "$ol_arg" = "invalid" ; then
1482 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
1484 ol_enable_referrals="$ol_arg"
1487 ol_enable_referrals="no"
1489 # end --enable-referrals
1490 # OpenLDAP --enable-kbind
1491 # Check whether --enable-kbind or --disable-kbind was given.
1492 if test "${enable_kbind+set}" = set; then
1493 enableval="$enable_kbind"
1496 for ol_val in auto yes no ; do
1497 if test "$enableval" = "$ol_val" ; then
1501 if test "$ol_arg" = "invalid" ; then
1502 { echo "configure: error: bad value $enableval for --enable-kbind" 1>&2; exit 1; }
1504 ol_enable_kbind="$ol_arg"
1507 ol_enable_kbind="no"
1509 # end --enable-kbind
1510 # OpenLDAP --enable-ipv6
1511 # Check whether --enable-ipv6 or --disable-ipv6 was given.
1512 if test "${enable_ipv6+set}" = set; then
1513 enableval="$enable_ipv6"
1516 for ol_val in auto yes no ; do
1517 if test "$enableval" = "$ol_val" ; then
1521 if test "$ol_arg" = "invalid" ; then
1522 { echo "configure: error: bad value $enableval for --enable-ipv6" 1>&2; exit 1; }
1524 ol_enable_ipv6="$ol_arg"
1527 ol_enable_ipv6="auto"
1530 # OpenLDAP --enable-local
1531 # Check whether --enable-local or --disable-local was given.
1532 if test "${enable_local+set}" = set; then
1533 enableval="$enable_local"
1536 for ol_val in auto yes no ; do
1537 if test "$enableval" = "$ol_val" ; then
1541 if test "$ol_arg" = "invalid" ; then
1542 { echo "configure: error: bad value $enableval for --enable-local" 1>&2; exit 1; }
1544 ol_enable_local="$ol_arg"
1547 ol_enable_local="auto"
1549 # end --enable-local
1550 # OpenLDAP --enable-rewrite
1551 # Check whether --enable-rewrite or --disable-rewrite was given.
1552 if test "${enable_rewrite+set}" = set; then
1553 enableval="$enable_rewrite"
1556 for ol_val in auto yes no ; do
1557 if test "$enableval" = "$ol_val" ; then
1561 if test "$ol_arg" = "invalid" ; then
1562 { echo "configure: error: bad value $enableval for --enable-rewrite" 1>&2; exit 1; }
1564 ol_enable_rewrite="$ol_arg"
1567 ol_enable_rewrite="no"
1569 # end --enable-rewrite
1570 # OpenLDAP --enable-x_compile
1571 # Check whether --enable-x_compile or --disable-x_compile was given.
1572 if test "${enable_x_compile+set}" = set; then
1573 enableval="$enable_x_compile"
1576 for ol_val in yes no ; do
1577 if test "$enableval" = "$ol_val" ; then
1581 if test "$ol_arg" = "invalid" ; then
1582 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1584 ol_enable_x_compile="$ol_arg"
1587 ol_enable_x_compile="no"
1589 # end --enable-x_compile
1592 # OpenLDAP --with-cyrus_sasl
1593 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
1594 if test "${with_cyrus_sasl+set}" = set; then
1595 withval="$with_cyrus_sasl"
1598 for ol_val in auto yes no ; do
1599 if test "$withval" = "$ol_val" ; then
1603 if test "$ol_arg" = "invalid" ; then
1604 { echo "configure: error: bad value $withval for --with-cyrus_sasl" 1>&2; exit 1; }
1606 ol_with_cyrus_sasl="$ol_arg"
1609 ol_with_cyrus_sasl="auto"
1611 # end --with-cyrus_sasl
1613 # OpenLDAP --with-fetch
1614 # Check whether --with-fetch or --without-fetch was given.
1615 if test "${with_fetch+set}" = set; then
1616 withval="$with_fetch"
1619 for ol_val in auto yes no ; do
1620 if test "$withval" = "$ol_val" ; then
1624 if test "$ol_arg" = "invalid" ; then
1625 { echo "configure: error: bad value $withval for --with-fetch" 1>&2; exit 1; }
1627 ol_with_fetch="$ol_arg"
1630 ol_with_fetch="auto"
1634 # OpenLDAP --with-kerberos
1635 # Check whether --with-kerberos or --without-kerberos was given.
1636 if test "${with_kerberos+set}" = set; then
1637 withval="$with_kerberos"
1640 for ol_val in auto k5 k5only k425 kth k4 afs yes no ; do
1641 if test "$withval" = "$ol_val" ; then
1645 if test "$ol_arg" = "invalid" ; then
1646 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1648 ol_with_kerberos="$ol_arg"
1651 ol_with_kerberos="auto"
1653 # end --with-kerberos
1655 # OpenLDAP --with-readline
1656 # Check whether --with-readline or --without-readline was given.
1657 if test "${with_readline+set}" = set; then
1658 withval="$with_readline"
1661 for ol_val in auto yes no ; do
1662 if test "$withval" = "$ol_val" ; then
1666 if test "$ol_arg" = "invalid" ; then
1667 { echo "configure: error: bad value $withval for --with-readline" 1>&2; exit 1; }
1669 ol_with_readline="$ol_arg"
1672 ol_with_readline="auto"
1674 # end --with-readline
1676 # OpenLDAP --with-threads
1677 # Check whether --with-threads or --without-threads was given.
1678 if test "${with_threads+set}" = set; then
1679 withval="$with_threads"
1682 for ol_val in auto nt posix mach pth lwp yes no manual ; do
1683 if test "$withval" = "$ol_val" ; then
1687 if test "$ol_arg" = "invalid" ; then
1688 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1690 ol_with_threads="$ol_arg"
1693 ol_with_threads="auto"
1695 # end --with-threads
1697 # OpenLDAP --with-tls
1698 # Check whether --with-tls or --without-tls was given.
1699 if test "${with_tls+set}" = set; then
1703 for ol_val in auto ssleay openssl yes no ; do
1704 if test "$withval" = "$ol_val" ; then
1708 if test "$ol_arg" = "invalid" ; then
1709 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1711 ol_with_tls="$ol_arg"
1718 # OpenLDAP --with-yielding_select
1719 # Check whether --with-yielding_select or --without-yielding_select was given.
1720 if test "${with_yielding_select+set}" = set; then
1721 withval="$with_yielding_select"
1724 for ol_val in auto yes no manual ; do
1725 if test "$withval" = "$ol_val" ; then
1729 if test "$ol_arg" = "invalid" ; then
1730 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1732 ol_with_yielding_select="$ol_arg"
1735 ol_with_yielding_select="auto"
1737 # end --with-yielding_select
1741 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1742 if test "${with_xxslapdoptions+set}" = set; then
1743 withval="$with_xxslapdoptions"
1747 # OpenLDAP --enable-slapd
1748 # Check whether --enable-slapd or --disable-slapd was given.
1749 if test "${enable_slapd+set}" = set; then
1750 enableval="$enable_slapd"
1753 for ol_val in auto yes no ; do
1754 if test "$enableval" = "$ol_val" ; then
1758 if test "$ol_arg" = "invalid" ; then
1759 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1761 ol_enable_slapd="$ol_arg"
1764 ol_enable_slapd="yes"
1766 # end --enable-slapd
1767 # OpenLDAP --enable-aci
1768 # Check whether --enable-aci or --disable-aci was given.
1769 if test "${enable_aci+set}" = set; then
1770 enableval="$enable_aci"
1773 for ol_val in auto yes no ; do
1774 if test "$enableval" = "$ol_val" ; then
1778 if test "$ol_arg" = "invalid" ; then
1779 { echo "configure: error: bad value $enableval for --enable-aci" 1>&2; exit 1; }
1781 ol_enable_aci="$ol_arg"
1787 # OpenLDAP --enable-cleartext
1788 # Check whether --enable-cleartext or --disable-cleartext was given.
1789 if test "${enable_cleartext+set}" = set; then
1790 enableval="$enable_cleartext"
1793 for ol_val in auto yes no ; do
1794 if test "$enableval" = "$ol_val" ; then
1798 if test "$ol_arg" = "invalid" ; then
1799 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1801 ol_enable_cleartext="$ol_arg"
1804 ol_enable_cleartext="yes"
1806 # end --enable-cleartext
1807 # OpenLDAP --enable-crypt
1808 # Check whether --enable-crypt or --disable-crypt was given.
1809 if test "${enable_crypt+set}" = set; then
1810 enableval="$enable_crypt"
1813 for ol_val in auto yes no ; do
1814 if test "$enableval" = "$ol_val" ; then
1818 if test "$ol_arg" = "invalid" ; then
1819 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1821 ol_enable_crypt="$ol_arg"
1824 ol_enable_crypt="no"
1826 # end --enable-crypt
1827 # OpenLDAP --enable-dynamic
1828 # Check whether --enable-dynamic or --disable-dynamic was given.
1829 if test "${enable_dynamic+set}" = set; then
1830 enableval="$enable_dynamic"
1833 for ol_val in auto yes no ; do
1834 if test "$enableval" = "$ol_val" ; then
1838 if test "$ol_arg" = "invalid" ; then
1839 { echo "configure: error: bad value $enableval for --enable-dynamic" 1>&2; exit 1; }
1841 ol_enable_dynamic="$ol_arg"
1844 ol_enable_dynamic="no"
1846 # end --enable-dynamic
1847 # OpenLDAP --enable-kpasswd
1848 # Check whether --enable-kpasswd or --disable-kpasswd was given.
1849 if test "${enable_kpasswd+set}" = set; then
1850 enableval="$enable_kpasswd"
1853 for ol_val in auto yes no ; do
1854 if test "$enableval" = "$ol_val" ; then
1858 if test "$ol_arg" = "invalid" ; then
1859 { echo "configure: error: bad value $enableval for --enable-kpasswd" 1>&2; exit 1; }
1861 ol_enable_kpasswd="$ol_arg"
1864 ol_enable_kpasswd="no"
1866 # end --enable-kpasswd
1867 # OpenLDAP --enable-lmpasswd
1868 # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
1869 if test "${enable_lmpasswd+set}" = set; then
1870 enableval="$enable_lmpasswd"
1873 for ol_val in auto yes no ; do
1874 if test "$enableval" = "$ol_val" ; then
1878 if test "$ol_arg" = "invalid" ; then
1879 { echo "configure: error: bad value $enableval for --enable-lmpasswd" 1>&2; exit 1; }
1881 ol_enable_lmpasswd="$ol_arg"
1884 ol_enable_lmpasswd="no"
1886 # end --enable-lmpasswd
1887 # OpenLDAP --enable-spasswd
1888 # Check whether --enable-spasswd or --disable-spasswd was given.
1889 if test "${enable_spasswd+set}" = set; then
1890 enableval="$enable_spasswd"
1893 for ol_val in auto yes no ; do
1894 if test "$enableval" = "$ol_val" ; then
1898 if test "$ol_arg" = "invalid" ; then
1899 { echo "configure: error: bad value $enableval for --enable-spasswd" 1>&2; exit 1; }
1901 ol_enable_spasswd="$ol_arg"
1904 ol_enable_spasswd="no"
1906 # end --enable-spasswd
1907 # OpenLDAP --enable-modules
1908 # Check whether --enable-modules or --disable-modules was given.
1909 if test "${enable_modules+set}" = set; then
1910 enableval="$enable_modules"
1913 for ol_val in auto yes no ; do
1914 if test "$enableval" = "$ol_val" ; then
1918 if test "$ol_arg" = "invalid" ; then
1919 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1921 ol_enable_modules="$ol_arg"
1924 ol_enable_modules="no"
1926 # end --enable-modules
1927 # OpenLDAP --enable-phonetic
1928 # Check whether --enable-phonetic or --disable-phonetic was given.
1929 if test "${enable_phonetic+set}" = set; then
1930 enableval="$enable_phonetic"
1933 for ol_val in auto yes no ; do
1934 if test "$enableval" = "$ol_val" ; then
1938 if test "$ol_arg" = "invalid" ; then
1939 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1941 ol_enable_phonetic="$ol_arg"
1944 ol_enable_phonetic="no"
1946 # end --enable-phonetic
1947 # OpenLDAP --enable-rlookups
1948 # Check whether --enable-rlookups or --disable-rlookups was given.
1949 if test "${enable_rlookups+set}" = set; then
1950 enableval="$enable_rlookups"
1953 for ol_val in auto yes no ; do
1954 if test "$enableval" = "$ol_val" ; then
1958 if test "$ol_arg" = "invalid" ; then
1959 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1961 ol_enable_rlookups="$ol_arg"
1964 ol_enable_rlookups="no"
1966 # end --enable-rlookups
1967 # OpenLDAP --enable-slp
1968 # Check whether --enable-slp or --disable-slp was given.
1969 if test "${enable_slp+set}" = set; then
1970 enableval="$enable_slp"
1973 for ol_val in auto yes no ; do
1974 if test "$enableval" = "$ol_val" ; then
1978 if test "$ol_arg" = "invalid" ; then
1979 { echo "configure: error: bad value $enableval for --enable-slp" 1>&2; exit 1; }
1981 ol_enable_slp="$ol_arg"
1987 # OpenLDAP --enable-wrappers
1988 # Check whether --enable-wrappers or --disable-wrappers was given.
1989 if test "${enable_wrappers+set}" = set; then
1990 enableval="$enable_wrappers"
1993 for ol_val in auto yes no ; do
1994 if test "$enableval" = "$ol_val" ; then
1998 if test "$ol_arg" = "invalid" ; then
1999 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
2001 ol_enable_wrappers="$ol_arg"
2004 ol_enable_wrappers="no"
2006 # end --enable-wrappers
2008 # OpenLDAP --enable-bdb
2009 # Check whether --enable-bdb or --disable-bdb was given.
2010 if test "${enable_bdb+set}" = set; then
2011 enableval="$enable_bdb"
2014 for ol_val in auto yes no ; do
2015 if test "$enableval" = "$ol_val" ; then
2019 if test "$ol_arg" = "invalid" ; then
2020 { echo "configure: error: bad value $enableval for --enable-bdb" 1>&2; exit 1; }
2022 ol_enable_bdb="$ol_arg"
2028 # OpenLDAP --with-bdb_module
2029 # Check whether --with-bdb_module or --without-bdb_module was given.
2030 if test "${with_bdb_module+set}" = set; then
2031 withval="$with_bdb_module"
2034 for ol_val in static dynamic ; do
2035 if test "$withval" = "$ol_val" ; then
2039 if test "$ol_arg" = "invalid" ; then
2040 { echo "configure: error: bad value $withval for --with-bdb_module" 1>&2; exit 1; }
2042 ol_with_bdb_module="$ol_arg"
2045 ol_with_bdb_module="static"
2047 # end --with-bdb_module
2049 # OpenLDAP --enable-dnssrv
2050 # Check whether --enable-dnssrv or --disable-dnssrv was given.
2051 if test "${enable_dnssrv+set}" = set; then
2052 enableval="$enable_dnssrv"
2055 for ol_val in auto yes no ; do
2056 if test "$enableval" = "$ol_val" ; then
2060 if test "$ol_arg" = "invalid" ; then
2061 { echo "configure: error: bad value $enableval for --enable-dnssrv" 1>&2; exit 1; }
2063 ol_enable_dnssrv="$ol_arg"
2066 ol_enable_dnssrv="no"
2068 # end --enable-dnssrv
2069 # OpenLDAP --with-dnssrv_module
2070 # Check whether --with-dnssrv_module or --without-dnssrv_module was given.
2071 if test "${with_dnssrv_module+set}" = set; then
2072 withval="$with_dnssrv_module"
2075 for ol_val in static dynamic ; do
2076 if test "$withval" = "$ol_val" ; then
2080 if test "$ol_arg" = "invalid" ; then
2081 { echo "configure: error: bad value $withval for --with-dnssrv_module" 1>&2; exit 1; }
2083 ol_with_dnssrv_module="$ol_arg"
2086 ol_with_dnssrv_module="static"
2088 # end --with-dnssrv_module
2090 # OpenLDAP --enable-ldap
2091 # Check whether --enable-ldap or --disable-ldap was given.
2092 if test "${enable_ldap+set}" = set; then
2093 enableval="$enable_ldap"
2096 for ol_val in auto yes no ; do
2097 if test "$enableval" = "$ol_val" ; then
2101 if test "$ol_arg" = "invalid" ; then
2102 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
2104 ol_enable_ldap="$ol_arg"
2110 # OpenLDAP --with-ldap_module
2111 # Check whether --with-ldap_module or --without-ldap_module was given.
2112 if test "${with_ldap_module+set}" = set; then
2113 withval="$with_ldap_module"
2116 for ol_val in static dynamic ; do
2117 if test "$withval" = "$ol_val" ; then
2121 if test "$ol_arg" = "invalid" ; then
2122 { echo "configure: error: bad value $withval for --with-ldap_module" 1>&2; exit 1; }
2124 ol_with_ldap_module="$ol_arg"
2127 ol_with_ldap_module="static"
2129 # end --with-ldap_module
2131 # OpenLDAP --enable-ldbm
2132 # Check whether --enable-ldbm or --disable-ldbm was given.
2133 if test "${enable_ldbm+set}" = set; then
2134 enableval="$enable_ldbm"
2137 for ol_val in auto yes no ; do
2138 if test "$enableval" = "$ol_val" ; then
2142 if test "$ol_arg" = "invalid" ; then
2143 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
2145 ol_enable_ldbm="$ol_arg"
2151 # OpenLDAP --with-ldbm_api
2152 # Check whether --with-ldbm_api or --without-ldbm_api was given.
2153 if test "${with_ldbm_api+set}" = set; then
2154 withval="$with_ldbm_api"
2157 for ol_val in auto berkeley bcompat mdbm gdbm ; do
2158 if test "$withval" = "$ol_val" ; then
2162 if test "$ol_arg" = "invalid" ; then
2163 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
2165 ol_with_ldbm_api="$ol_arg"
2168 ol_with_ldbm_api="auto"
2170 # end --with-ldbm_api
2172 # OpenLDAP --with-ldbm_module
2173 # Check whether --with-ldbm_module or --without-ldbm_module was given.
2174 if test "${with_ldbm_module+set}" = set; then
2175 withval="$with_ldbm_module"
2178 for ol_val in static dynamic ; do
2179 if test "$withval" = "$ol_val" ; then
2183 if test "$ol_arg" = "invalid" ; then
2184 { echo "configure: error: bad value $withval for --with-ldbm_module" 1>&2; exit 1; }
2186 ol_with_ldbm_module="$ol_arg"
2189 ol_with_ldbm_module="static"
2191 # end --with-ldbm_module
2193 # OpenLDAP --with-ldbm_type
2194 # Check whether --with-ldbm_type or --without-ldbm_type was given.
2195 if test "${with_ldbm_type+set}" = set; then
2196 withval="$with_ldbm_type"
2199 for ol_val in auto btree hash ; do
2200 if test "$withval" = "$ol_val" ; then
2204 if test "$ol_arg" = "invalid" ; then
2205 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
2207 ol_with_ldbm_type="$ol_arg"
2210 ol_with_ldbm_type="auto"
2212 # end --with-ldbm_type
2214 # OpenLDAP --enable-meta
2215 # Check whether --enable-meta or --disable-meta was given.
2216 if test "${enable_meta+set}" = set; then
2217 enableval="$enable_meta"
2220 for ol_val in auto yes no ; do
2221 if test "$enableval" = "$ol_val" ; then
2225 if test "$ol_arg" = "invalid" ; then
2226 { echo "configure: error: bad value $enableval for --enable-meta" 1>&2; exit 1; }
2228 ol_enable_meta="$ol_arg"
2234 # OpenLDAP --with-meta_module
2235 # Check whether --with-meta_module or --without-meta_module was given.
2236 if test "${with_meta_module+set}" = set; then
2237 withval="$with_meta_module"
2240 for ol_val in static dynamic ; do
2241 if test "$withval" = "$ol_val" ; then
2245 if test "$ol_arg" = "invalid" ; then
2246 { echo "configure: error: bad value $withval for --with-meta_module" 1>&2; exit 1; }
2248 ol_with_meta_module="$ol_arg"
2251 ol_with_meta_module="static"
2253 # end --with-meta_module
2255 # OpenLDAP --enable-monitor
2256 # Check whether --enable-monitor or --disable-monitor was given.
2257 if test "${enable_monitor+set}" = set; then
2258 enableval="$enable_monitor"
2261 for ol_val in auto yes no ; do
2262 if test "$enableval" = "$ol_val" ; then
2266 if test "$ol_arg" = "invalid" ; then
2267 { echo "configure: error: bad value $enableval for --enable-monitor" 1>&2; exit 1; }
2269 ol_enable_monitor="$ol_arg"
2272 ol_enable_monitor="no"
2274 # end --enable-monitor
2275 # OpenLDAP --with-monitor_module
2276 # Check whether --with-monitor_module or --without-monitor_module was given.
2277 if test "${with_monitor_module+set}" = set; then
2278 withval="$with_monitor_module"
2281 for ol_val in static dynamic ; do
2282 if test "$withval" = "$ol_val" ; then
2286 if test "$ol_arg" = "invalid" ; then
2287 { echo "configure: error: bad value $withval for --with-monitor_module" 1>&2; exit 1; }
2289 ol_with_monitor_module="$ol_arg"
2292 ol_with_monitor_module="static"
2294 # end --with-monitor_module
2296 # OpenLDAP --enable-passwd
2297 # Check whether --enable-passwd or --disable-passwd was given.
2298 if test "${enable_passwd+set}" = set; then
2299 enableval="$enable_passwd"
2302 for ol_val in auto yes no ; do
2303 if test "$enableval" = "$ol_val" ; then
2307 if test "$ol_arg" = "invalid" ; then
2308 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
2310 ol_enable_passwd="$ol_arg"
2313 ol_enable_passwd="no"
2315 # end --enable-passwd
2316 # OpenLDAP --with-passwd_module
2317 # Check whether --with-passwd_module or --without-passwd_module was given.
2318 if test "${with_passwd_module+set}" = set; then
2319 withval="$with_passwd_module"
2322 for ol_val in static dynamic ; do
2323 if test "$withval" = "$ol_val" ; then
2327 if test "$ol_arg" = "invalid" ; then
2328 { echo "configure: error: bad value $withval for --with-passwd_module" 1>&2; exit 1; }
2330 ol_with_passwd_module="$ol_arg"
2333 ol_with_passwd_module="static"
2335 # end --with-passwd_module
2337 # OpenLDAP --enable-perl
2338 # Check whether --enable-perl or --disable-perl was given.
2339 if test "${enable_perl+set}" = set; then
2340 enableval="$enable_perl"
2343 for ol_val in auto yes no ; do
2344 if test "$enableval" = "$ol_val" ; then
2348 if test "$ol_arg" = "invalid" ; then
2349 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
2351 ol_enable_perl="$ol_arg"
2357 # OpenLDAP --with-perl_module
2358 # Check whether --with-perl_module or --without-perl_module was given.
2359 if test "${with_perl_module+set}" = set; then
2360 withval="$with_perl_module"
2363 for ol_val in static dynamic ; do
2364 if test "$withval" = "$ol_val" ; then
2368 if test "$ol_arg" = "invalid" ; then
2369 { echo "configure: error: bad value $withval for --with-perl_module" 1>&2; exit 1; }
2371 ol_with_perl_module="$ol_arg"
2374 ol_with_perl_module="static"
2376 # end --with-perl_module
2378 # OpenLDAP --enable-shell
2379 # Check whether --enable-shell or --disable-shell was given.
2380 if test "${enable_shell+set}" = set; then
2381 enableval="$enable_shell"
2384 for ol_val in auto yes no ; do
2385 if test "$enableval" = "$ol_val" ; then
2389 if test "$ol_arg" = "invalid" ; then
2390 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
2392 ol_enable_shell="$ol_arg"
2395 ol_enable_shell="no"
2397 # end --enable-shell
2398 # OpenLDAP --with-shell_module
2399 # Check whether --with-shell_module or --without-shell_module was given.
2400 if test "${with_shell_module+set}" = set; then
2401 withval="$with_shell_module"
2404 for ol_val in static dynamic ; do
2405 if test "$withval" = "$ol_val" ; then
2409 if test "$ol_arg" = "invalid" ; then
2410 { echo "configure: error: bad value $withval for --with-shell_module" 1>&2; exit 1; }
2412 ol_with_shell_module="$ol_arg"
2415 ol_with_shell_module="static"
2417 # end --with-shell_module
2419 # OpenLDAP --enable-sql
2420 # Check whether --enable-sql or --disable-sql was given.
2421 if test "${enable_sql+set}" = set; then
2422 enableval="$enable_sql"
2425 for ol_val in auto yes no ; do
2426 if test "$enableval" = "$ol_val" ; then
2430 if test "$ol_arg" = "invalid" ; then
2431 { echo "configure: error: bad value $enableval for --enable-sql" 1>&2; exit 1; }
2433 ol_enable_sql="$ol_arg"
2439 # OpenLDAP --with-sql_module
2440 # Check whether --with-sql_module or --without-sql_module was given.
2441 if test "${with_sql_module+set}" = set; then
2442 withval="$with_sql_module"
2445 for ol_val in static dynamic ; do
2446 if test "$withval" = "$ol_val" ; then
2450 if test "$ol_arg" = "invalid" ; then
2451 { echo "configure: error: bad value $withval for --with-sql_module" 1>&2; exit 1; }
2453 ol_with_sql_module="$ol_arg"
2456 ol_with_sql_module="static"
2458 # end --with-sql_module
2460 # OpenLDAP --enable-tcl
2461 # Check whether --enable-tcl or --disable-tcl was given.
2462 if test "${enable_tcl+set}" = set; then
2463 enableval="$enable_tcl"
2466 for ol_val in auto yes no ; do
2467 if test "$enableval" = "$ol_val" ; then
2471 if test "$ol_arg" = "invalid" ; then
2472 { echo "configure: error: bad value $enableval for --enable-tcl" 1>&2; exit 1; }
2474 ol_enable_tcl="$ol_arg"
2480 # OpenLDAP --with-tcl_module
2481 # Check whether --with-tcl_module or --without-tcl_module was given.
2482 if test "${with_tcl_module+set}" = set; then
2483 withval="$with_tcl_module"
2486 for ol_val in static dynamic ; do
2487 if test "$withval" = "$ol_val" ; then
2491 if test "$ol_arg" = "invalid" ; then
2492 { echo "configure: error: bad value $withval for --with-tcl_module" 1>&2; exit 1; }
2494 ol_with_tcl_module="$ol_arg"
2497 ol_with_tcl_module="static"
2499 # end --with-tcl_module
2502 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
2503 if test "${with_xxslurpdoptions+set}" = set; then
2504 withval="$with_xxslurpdoptions"
2508 # OpenLDAP --enable-slurpd
2509 # Check whether --enable-slurpd or --disable-slurpd was given.
2510 if test "${enable_slurpd+set}" = set; then
2511 enableval="$enable_slurpd"
2514 for ol_val in auto yes no ; do
2515 if test "$enableval" = "$ol_val" ; then
2519 if test "$ol_arg" = "invalid" ; then
2520 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
2522 ol_enable_slurpd="$ol_arg"
2525 ol_enable_slurpd="auto"
2527 # end --enable-slurpd
2529 # Check whether --with-xxliboptions or --without-xxliboptions was given.
2530 if test "${with_xxliboptions+set}" = set; then
2531 withval="$with_xxliboptions"
2535 # Check whether --enable-static or --disable-static was given.
2536 if test "${enable_static+set}" = set; then
2537 enableval="$enable_static"
2538 p=${PACKAGE-default}
2540 yes) enable_static=yes ;;
2541 no) enable_static=no ;;
2544 # Look at the argument we got. We use all the common list separators.
2545 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2546 for pkg in $enableval; do
2547 if test "X$pkg" = "X$p"; then
2558 # Check whether --enable-shared or --disable-shared was given.
2559 if test "${enable_shared+set}" = set; then
2560 enableval="$enable_shared"
2561 p=${PACKAGE-default}
2563 yes) enable_shared=yes ;;
2564 no) enable_shared=no ;;
2567 # Look at the argument we got. We use all the common list separators.
2568 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2569 for pkg in $enableval; do
2570 if test "X$pkg" = "X$p"; then
2584 if test $ol_enable_slapd = no ; then
2585 if test $ol_enable_bdb = yes ; then
2586 echo "configure: warning: slapd disabled, ignoring --enable-bdb argument" 1>&2
2588 if test $ol_enable_dnssrv = yes ; then
2589 echo "configure: warning: slapd disabled, ignoring --enable-dnssrv argument" 1>&2
2591 if test $ol_enable_ldap = yes ; then
2592 echo "configure: warning: slapd disabled, ignoring --enable-ldap argument" 1>&2
2594 if test $ol_enable_ldbm = yes ; then
2595 echo "configure: warning: slapd disabled, ignoring --enable-ldbm argument" 1>&2
2597 if test $ol_enable_meta = yes ; then
2598 echo "configure: warning: slapd disabled, ignoring --enable-meta argument" 1>&2
2600 if test $ol_enable_monitor = yes ; then
2601 echo "configure: warning: slapd disabled, ignoring --enable-monitor argument" 1>&2
2603 if test $ol_enable_passwd = yes ; then
2604 echo "configure: warning: slapd disabled, ignoring --enable-passwd argument" 1>&2
2606 if test $ol_enable_perl = yes ; then
2607 echo "configure: warning: slapd disabled, ignoring --enable-perl argument" 1>&2
2609 if test $ol_enable_shell = yes ; then
2610 echo "configure: warning: slapd disabled, ignoring --enable-shell argument" 1>&2
2612 if test $ol_enable_tcl = yes ; then
2613 echo "configure: warning: slapd disabled, ignoring --enable-tcl argument" 1>&2
2615 if test $ol_enable_sql = yes ; then
2616 echo "configure: warning: slapd disabled, ignoring --enable-sql argument" 1>&2
2618 if test $ol_enable_modules = yes ; then
2619 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2621 if test $ol_enable_wrappers = yes ; then
2622 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2624 if test $ol_enable_phonetic = yes ; then
2625 echo "configure: warning: slapd disabled, ignoring --enable-phonetic argument" 1>&2
2627 if test $ol_enable_rlookups = yes ; then
2628 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2630 if test $ol_enable_aci = yes ; then
2631 echo "configure: warning: slapd disabled, ignoring --enable-aci argument" 1>&2
2633 if test $ol_with_ldbm_api != auto ; then
2634 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2636 if test $ol_with_ldbm_type != auto ; then
2637 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2639 if test $ol_with_bdb_module != static ; then
2640 echo "configure: warning: slapd disabled, ignoring --with-bdb-module argument" 1>&2
2642 if test $ol_with_dnssrv_module != static ; then
2643 echo "configure: warning: slapd disabled, ignoring --with-dnssrv-module argument" 1>&2
2645 if test $ol_with_ldap_module != static ; then
2646 echo "configure: warning: slapd disabled, ignoring --with-ldap-module argument" 1>&2
2648 if test $ol_with_ldbm_module != static ; then
2649 echo "configure: warning: slapd disabled, ignoring --with-ldbm-module argument" 1>&2
2651 if test $ol_with_meta_module != static ; then
2652 echo "configure: warning: slapd disabled, ignoring --with-meta-module argument" 1>&2
2654 if test $ol_with_monitor_module != static ; then
2655 echo "configure: warning: slapd disabled, ignoring --with-monitor-module argument" 1>&2
2657 if test $ol_with_passwd_module != static ; then
2658 echo "configure: warning: slapd disabled, ignoring --with-passwd-module argument" 1>&2
2660 if test $ol_with_perl_module != static ; then
2661 echo "configure: warning: slapd disabled, ignoring --with-perl-module argument" 1>&2
2663 if test $ol_with_shell_module != static ; then
2664 echo "configure: warning: slapd disabled, ignoring --with-shell-module argument" 1>&2
2666 if test $ol_with_tcl_module != static ; then
2667 echo "configure: warning: slapd disabled, ignoring --with-tcl-module argument" 1>&2
2669 if test $ol_with_sql_module != static ; then
2670 echo "configure: warning: slapd disabled, ignoring --with-sql-module argument" 1>&2
2672 if test $ol_enable_slurpd = yes ; then
2673 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2675 if test $ol_enable_rewrite = yes ; then
2676 echo "configure: warning: slapd disabled, ignoring --enable-rewrite argument" 1>&2
2679 # force settings to no
2685 ol_enable_monitor=no
2692 ol_enable_modules=no
2693 ol_enable_phonetic=no
2694 ol_enable_rlookups=no
2696 ol_enable_wrappers=no
2697 ol_enable_dynamic=no
2700 ol_with_ldbm_type=no
2702 ol_with_bdb_module=static
2703 ol_with_dnssrv_module=static
2704 ol_with_ldap_module=static
2705 ol_with_ldbm_module=static
2706 ol_with_meta_module=static
2707 ol_with_monitor_module=static
2708 ol_with_passwd_module=static
2709 ol_with_perl_module=static
2710 ol_with_shell_module=static
2711 ol_with_tcl_module=static
2712 ol_with_sql_module=static
2716 ol_enable_rewrite=no
2718 elif test $ol_enable_ldbm = no ; then
2720 if test $ol_with_ldbm_api != auto ; then
2721 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2724 if test $ol_with_ldbm_type != auto ; then
2725 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2728 if test $ol_with_ldbm_module != static ; then
2729 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-module argument" 1>&2
2732 if test $ol_enable_modules != yes -a \
2733 $ol_enable_bdb = no -a \
2734 $ol_enable_dnssrv = no -a \
2735 $ol_enable_ldap = no -a \
2736 $ol_enable_meta = no -a \
2737 $ol_enable_monitor = no -a \
2738 $ol_enable_passwd = no -a \
2739 $ol_enable_perl = no -a \
2740 $ol_enable_shell = no -a \
2741 $ol_enable_sql = no -a \
2742 $ol_enable_tcl = no ; then
2744 if test $ol_enable_slapd = yes ; then
2745 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2747 echo "configure: warning: skipping slapd, no backend specified" 1>&2
2753 ol_with_ldbm_type=no
2754 ol_with_ldbm_module=static
2756 if test $ol_enable_bdb != no ; then
2757 ol_with_ldbm_api=berkeley
2761 if test $ol_with_ldbm_api = gdbm -a \
2762 $ol_with_ldbm_type = btree ; then
2763 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2765 if test $ol_with_ldbm_api = mdbm -a \
2766 $ol_with_ldbm_type = btree ; then
2767 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2769 if test $ol_with_ldbm_api = ndbm -a \
2770 $ol_with_ldbm_type = btree ; then
2771 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2774 if test $ol_enable_bdb = yes ; then
2775 if test $ol_with_ldbm_api = auto ; then
2776 ol_with_ldbm_api=berkeley
2777 elif test $ol_with_ldbm_api != berkeley ; then
2778 { echo "configure: error: LDBM API not compatible with BDB" 1>&2; exit 1; }
2781 elif test $ol_enable_bdb = auto ; then
2782 if test $ol_with_ldbm_api != berkeley \
2783 -o $ol_with_ldbm_api != auto ; then
2784 echo "configure: warning: LDBM API not compatible with BDB, disabling BDB" 1>&2
2790 if test $ol_enable_slurpd = yes ; then
2791 if test $ol_with_threads = no ; then
2792 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2796 if test $ol_enable_lmpasswd = yes ; then
2797 if test $ol_with_tls = no ; then
2798 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
2802 if test $ol_enable_kbind = yes -o $ol_enable_kpasswd = yes ; then
2803 if test $ol_with_kerberos = no ; then
2804 { echo "configure: error: options require --with-kerberos" 1>&2; exit 1; }
2805 elif test $ol_with_kerberos = auto ; then
2806 ol_with_kerberos=yes
2809 elif test $ol_enable_kbind = no -o $ol_enable_kpasswd = no ; then
2810 if test $ol_with_kerberos = auto ; then
2812 elif test $ol_with_kerberos != no ; then
2813 echo "configure: warning: Kerberos detection enabled unnecessarily" 1>&2;
2818 if test $ol_enable_spasswd = yes ; then
2819 if test $ol_with_cyrus_sasl = no ; then
2820 { echo "configure: error: options require --with-cyrus-sasl" 1>&2; exit 1; }
2822 ol_with_cyrus_sasl=yes
2825 echo "$ac_t""done" 1>&6
2854 BUILD_BDB_DYNAMIC=static
2855 BUILD_DNSSRV_DYNAMIC=static
2856 BUILD_LDAP_DYNAMIC=static
2857 BUILD_LDBM_DYNAMIC=static
2858 BUILD_META_DYNAMIC=static
2859 BUILD_MONITOR_DYNAMIC=static
2860 BUILD_PASSWD_DYNAMIC=static
2861 BUILD_PERL_DYNAMIC=static
2862 BUILD_SHELL_DYNAMIC=static
2863 BUILD_TCL_DYNAMIC=static
2864 BUILD_SQL_DYNAMIC=static
2866 SLAPD_MODULES_LDFLAGS=
2867 SLAPD_MODULES_CPPFLAGS=
2870 SLAPD_STATIC_BACKENDS=
2871 SLAPD_DYNAMIC_BACKENDS=
2894 # Find a good install program. We prefer a C program (faster),
2895 # so one script is as good as another. But avoid the broken or
2896 # incompatible versions:
2897 # SysV /etc/install, /usr/sbin/install
2898 # SunOS /usr/etc/install
2899 # IRIX /sbin/install
2901 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2902 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2903 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2904 # ./install, which can be erroneously created by make from ./install.sh.
2905 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2906 echo "configure:2907: checking for a BSD compatible install" >&5
2907 if test -z "$INSTALL"; then
2908 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
2909 echo $ac_n "(cached) $ac_c" 1>&6
2911 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2912 for ac_dir in $PATH; do
2913 # Account for people who put trailing slashes in PATH elements.
2915 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2917 # OSF1 and SCO ODT 3.0 have their own names for install.
2918 # Don't use installbsd from OSF since it installs stuff as root
2920 for ac_prog in ginstall scoinst install; do
2921 if test -f $ac_dir/$ac_prog; then
2922 if test $ac_prog = install &&
2923 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2924 # AIX install. It has an incompatible calling convention.
2926 elif test $ac_prog = install &&
2927 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
2928 # program-specific install script used by HP pwplus--don't use.
2931 ac_cv_path_install="$ac_dir/$ac_prog -c"
2942 if test "${ac_cv_path_install+set}" = set; then
2943 INSTALL="$ac_cv_path_install"
2945 # As a last resort, use the slow shell script. We don't cache a
2946 # path for INSTALL within a source directory, because that will
2947 # break other packages using the cache if that directory is
2948 # removed, or if the path is relative.
2949 INSTALL="$ac_install_sh"
2952 echo "$ac_t""$INSTALL" 1>&6
2954 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2955 # It thinks the first close brace ends the variable substitution.
2956 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2958 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2960 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2963 cat >> confdefs.h <<\EOF
2964 #define HAVE_MKVERSION 1
2972 *-*-aix*) if test -z "$CC" ; then
2973 case "$ol_with_threads" in
2974 auto | yes | posix) ol_aix_threads=yes ;;
2980 if test $ol_aix_threads = yes ; then
2981 if test -z "${CC}" ; then
2982 for ac_prog in cc_r xlc_r cc
2984 # Extract the first word of "$ac_prog", so it can be a program name with args.
2985 set dummy $ac_prog; ac_word=$2
2986 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2987 echo "configure:2988: checking for $ac_word" >&5
2988 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2989 echo $ac_n "(cached) $ac_c" 1>&6
2991 if test -n "$CC"; then
2992 ac_cv_prog_CC="$CC" # Let the user override the test.
2994 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2996 for ac_dir in $ac_dummy; do
2997 test -z "$ac_dir" && ac_dir=.
2998 if test -f $ac_dir/$ac_word; then
2999 ac_cv_prog_CC="$ac_prog"
3007 if test -n "$CC"; then
3008 echo "$ac_t""$CC" 1>&6
3010 echo "$ac_t""no" 1>&6
3013 test -n "$CC" && break
3017 if test "$CC" = cc ; then
3018 if test $ol_with_threads != auto ; then
3019 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
3021 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
3027 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
3028 ol_with_threads=posix
3029 ol_cv_pthread_create=yes
3033 if test -z "${CC}"; then
3036 # Extract the first word of "$ac_prog", so it can be a program name with args.
3037 set dummy $ac_prog; ac_word=$2
3038 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3039 echo "configure:3040: checking for $ac_word" >&5
3040 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3041 echo $ac_n "(cached) $ac_c" 1>&6
3043 if test -n "$CC"; then
3044 ac_cv_prog_CC="$CC" # Let the user override the test.
3046 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3048 for ac_dir in $ac_dummy; do
3049 test -z "$ac_dir" && ac_dir=.
3050 if test -f $ac_dir/$ac_word; then
3051 ac_cv_prog_CC="$ac_prog"
3059 if test -n "$CC"; then
3060 echo "$ac_t""$CC" 1>&6
3062 echo "$ac_t""no" 1>&6
3065 test -n "$CC" && break
3071 for ac_prog in ar gar
3073 # Extract the first word of "$ac_prog", so it can be a program name with args.
3074 set dummy $ac_prog; ac_word=$2
3075 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3076 echo "configure:3077: checking for $ac_word" >&5
3077 if eval "test \"\${ac_cv_prog_AR+set}\" = set"; then
3078 echo $ac_n "(cached) $ac_c" 1>&6
3080 if test -n "$AR"; then
3081 ac_cv_prog_AR="$AR" # Let the user override the test.
3083 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3085 for ac_dir in $ac_dummy; do
3086 test -z "$ac_dir" && ac_dir=.
3087 if test -f $ac_dir/$ac_word; then
3088 ac_cv_prog_AR="$ac_prog"
3096 if test -n "$AR"; then
3097 echo "$ac_t""$AR" 1>&6
3099 echo "$ac_t""no" 1>&6
3102 test -n "$AR" && break
3104 test -n "$AR" || AR="ar"
3109 # Find the correct PATH separator. Usually this is `:', but
3110 # DJGPP uses `;' like DOS.
3111 if test "X${PATH_SEPARATOR+set}" != Xset; then
3112 UNAME=${UNAME-`uname 2>/dev/null`}
3114 *-DOS) lt_cv_sys_path_separator=';' ;;
3115 *) lt_cv_sys_path_separator=':' ;;
3117 PATH_SEPARATOR=$lt_cv_sys_path_separator
3120 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3121 echo "configure:3122: checking for Cygwin environment" >&5
3122 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
3123 echo $ac_n "(cached) $ac_c" 1>&6
3125 cat > conftest.$ac_ext <<EOF
3126 #line 3127 "configure"
3127 #include "confdefs.h"
3132 #define __CYGWIN__ __CYGWIN32__
3137 if { (eval echo configure:3138: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3141 echo "configure: failed program was:" >&5
3142 cat conftest.$ac_ext >&5
3149 echo "$ac_t""$ac_cv_cygwin" 1>&6
3151 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3152 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3153 echo "configure:3154: checking for mingw32 environment" >&5
3154 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
3155 echo $ac_n "(cached) $ac_c" 1>&6
3157 cat > conftest.$ac_ext <<EOF
3158 #line 3159 "configure"
3159 #include "confdefs.h"
3165 if { (eval echo configure:3166: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3169 echo "configure: failed program was:" >&5
3170 cat conftest.$ac_ext >&5
3177 echo "$ac_t""$ac_cv_mingw32" 1>&6
3179 test "$ac_cv_mingw32" = yes && MINGW32=yes
3180 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
3181 echo "configure:3182: checking for EMX OS/2 environment" >&5
3182 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
3183 echo $ac_n "(cached) $ac_c" 1>&6
3185 cat > conftest.$ac_ext <<EOF
3186 #line 3187 "configure"
3187 #include "confdefs.h"
3193 if { (eval echo configure:3194: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3197 echo "configure: failed program was:" >&5
3198 cat conftest.$ac_ext >&5
3205 echo "$ac_t""$ac_cv_emxos2" 1>&6
3207 test "$ac_cv_emxos2" = yes && EMXOS2=yes
3208 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3209 echo "configure:3210: checking how to run the C preprocessor" >&5
3210 # On Suns, sometimes $CPP names a directory.
3211 if test -n "$CPP" && test -d "$CPP"; then
3214 if test -z "$CPP"; then
3215 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
3216 echo $ac_n "(cached) $ac_c" 1>&6
3218 # This must be in double quotes, not single quotes, because CPP may get
3219 # substituted into the Makefile and "${CC-cc}" will confuse make.
3221 # On the NeXT, cc -E runs the code through the compiler's parser,
3222 # not just through cpp.
3223 cat > conftest.$ac_ext <<EOF
3224 #line 3225 "configure"
3225 #include "confdefs.h"
3229 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3230 { (eval echo configure:3231: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3231 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3232 if test -z "$ac_err"; then
3236 echo "configure: failed program was:" >&5
3237 cat conftest.$ac_ext >&5
3239 CPP="${CC-cc} -E -traditional-cpp"
3240 cat > conftest.$ac_ext <<EOF
3241 #line 3242 "configure"
3242 #include "confdefs.h"
3246 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3247 { (eval echo configure:3248: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3248 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3249 if test -z "$ac_err"; then
3253 echo "configure: failed program was:" >&5
3254 cat conftest.$ac_ext >&5
3256 CPP="${CC-cc} -nologo -E"
3257 cat > conftest.$ac_ext <<EOF
3258 #line 3259 "configure"
3259 #include "confdefs.h"
3263 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3264 { (eval echo configure:3265: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3265 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3266 if test -z "$ac_err"; then
3270 echo "configure: failed program was:" >&5
3271 cat conftest.$ac_ext >&5
3280 ac_cv_prog_CPP="$CPP"
3282 CPP="$ac_cv_prog_CPP"
3284 ac_cv_prog_CPP="$CPP"
3286 echo "$ac_t""$CPP" 1>&6
3288 # Check whether --enable-fast-install or --disable-fast-install was given.
3289 if test "${enable_fast_install+set}" = set; then
3290 enableval="$enable_fast_install"
3291 p=${PACKAGE-default}
3293 yes) enable_fast_install=yes ;;
3294 no) enable_fast_install=no ;;
3296 enable_fast_install=no
3297 # Look at the argument we got. We use all the common list separators.
3298 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3299 for pkg in $enableval; do
3300 if test "X$pkg" = "X$p"; then
3301 enable_fast_install=yes
3308 enable_fast_install=yes
3311 # Extract the first word of "gcc", so it can be a program name with args.
3312 set dummy gcc; ac_word=$2
3313 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3314 echo "configure:3315: checking for $ac_word" >&5
3315 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3316 echo $ac_n "(cached) $ac_c" 1>&6
3318 if test -n "$CC"; then
3319 ac_cv_prog_CC="$CC" # Let the user override the test.
3321 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3323 for ac_dir in $ac_dummy; do
3324 test -z "$ac_dir" && ac_dir=.
3325 if test -f $ac_dir/$ac_word; then
3334 if test -n "$CC"; then
3335 echo "$ac_t""$CC" 1>&6
3337 echo "$ac_t""no" 1>&6
3340 if test -z "$CC"; then
3341 # Extract the first word of "cc", so it can be a program name with args.
3342 set dummy cc; ac_word=$2
3343 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3344 echo "configure:3345: checking for $ac_word" >&5
3345 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3346 echo $ac_n "(cached) $ac_c" 1>&6
3348 if test -n "$CC"; then
3349 ac_cv_prog_CC="$CC" # Let the user override the test.
3351 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3354 for ac_dir in $ac_dummy; do
3355 test -z "$ac_dir" && ac_dir=.
3356 if test -f $ac_dir/$ac_word; then
3357 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
3358 ac_prog_rejected=yes
3366 if test $ac_prog_rejected = yes; then
3367 # We found a bogon in the path, so make sure we never use it.
3368 set dummy $ac_cv_prog_CC
3370 if test $# -gt 0; then
3371 # We chose a different compiler from the bogus one.
3372 # However, it has the same basename, so the bogon will be chosen
3373 # first if we set CC to just the basename; use the full file name.
3375 set dummy "$ac_dir/$ac_word" "$@"
3383 if test -n "$CC"; then
3384 echo "$ac_t""$CC" 1>&6
3386 echo "$ac_t""no" 1>&6
3389 if test -z "$CC"; then
3390 case "`uname -s`" in
3391 *win32* | *WIN32* | *CYGWIN*)
3392 # Extract the first word of "cl", so it can be a program name with args.
3393 set dummy cl; ac_word=$2
3394 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3395 echo "configure:3396: checking for $ac_word" >&5
3396 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3397 echo $ac_n "(cached) $ac_c" 1>&6
3399 if test -n "$CC"; then
3400 ac_cv_prog_CC="$CC" # Let the user override the test.
3402 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3404 for ac_dir in $ac_dummy; do
3405 test -z "$ac_dir" && ac_dir=.
3406 if test -f $ac_dir/$ac_word; then
3415 if test -n "$CC"; then
3416 echo "$ac_t""$CC" 1>&6
3418 echo "$ac_t""no" 1>&6
3423 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
3426 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
3427 echo "configure:3428: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
3430 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3431 ac_cpp='$CPP $CPPFLAGS'
3432 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3433 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3434 cross_compiling=$ac_cv_prog_cc_cross
3436 cat > conftest.$ac_ext << EOF
3438 #line 3439 "configure"
3439 #include "confdefs.h"
3443 if { (eval echo configure:3444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3444 ac_cv_prog_cc_works=yes
3445 # If we can't run a trivial program, we are probably using a cross compiler.
3446 if (./conftest; exit) 2>/dev/null; then
3447 ac_cv_prog_cc_cross=no
3449 ac_cv_prog_cc_cross=yes
3452 echo "configure: failed program was:" >&5
3453 cat conftest.$ac_ext >&5
3454 ac_cv_prog_cc_works=no
3458 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3459 ac_cpp='$CPP $CPPFLAGS'
3460 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3461 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3462 cross_compiling=$ac_cv_prog_cc_cross
3464 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
3465 if test $ac_cv_prog_cc_works = no; then
3466 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
3468 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
3469 echo "configure:3470: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
3470 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
3471 cross_compiling=$ac_cv_prog_cc_cross
3473 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
3474 echo "configure:3475: checking whether we are using GNU C" >&5
3475 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
3476 echo $ac_n "(cached) $ac_c" 1>&6
3478 cat > conftest.c <<EOF
3483 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:3484: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
3490 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
3492 if test $ac_cv_prog_gcc = yes; then
3498 ac_test_CFLAGS="${CFLAGS+set}"
3499 ac_save_CFLAGS="$CFLAGS"
3501 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
3502 echo "configure:3503: checking whether ${CC-cc} accepts -g" >&5
3503 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
3504 echo $ac_n "(cached) $ac_c" 1>&6
3506 echo 'void f(){}' > conftest.c
3507 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
3516 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
3517 if test "$ac_test_CFLAGS" = set; then
3518 CFLAGS="$ac_save_CFLAGS"
3519 elif test $ac_cv_prog_cc_g = yes; then
3520 if test "$GCC" = yes; then
3526 if test "$GCC" = yes; then
3533 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3534 if test "${with_gnu_ld+set}" = set; then
3535 withval="$with_gnu_ld"
3536 test "$withval" = no || with_gnu_ld=yes
3542 if test "$GCC" = yes; then
3543 # Check if gcc -print-prog-name=ld gives a path.
3544 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
3545 echo "configure:3546: checking for ld used by GCC" >&5
3548 # gcc leaves a trailing carriage return which upsets mingw
3549 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3551 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3554 # Accept absolute paths.
3555 [\\/]* | [A-Za-z]:[\\/]*)
3556 re_direlt='/[^/][^/]*/\.\./'
3557 # Canonicalize the path of ld
3558 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3559 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3560 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3562 test -z "$LD" && LD="$ac_prog"
3565 # If it fails, then pretend we aren't using GCC.
3569 # If it is relative, then search for the first ld in PATH.
3573 elif test "$with_gnu_ld" = yes; then
3574 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
3575 echo "configure:3576: checking for GNU ld" >&5
3577 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
3578 echo "configure:3579: checking for non-GNU ld" >&5
3580 if eval "test \"\${lt_cv_path_LD+set}\" = set"; then
3581 echo $ac_n "(cached) $ac_c" 1>&6
3583 if test -z "$LD"; then
3584 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3585 for ac_dir in $PATH; do
3586 test -z "$ac_dir" && ac_dir=.
3587 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3588 lt_cv_path_LD="$ac_dir/$ac_prog"
3589 # Check to see if the program is GNU ld. I'd rather use --version,
3590 # but apparently some GNU ld's only accept -v.
3591 # Break only if it was the GNU/non-GNU ld that we prefer.
3592 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3593 test "$with_gnu_ld" != no && break
3595 test "$with_gnu_ld" != yes && break
3601 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3606 if test -n "$LD"; then
3607 echo "$ac_t""$LD" 1>&6
3609 echo "$ac_t""no" 1>&6
3611 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
3612 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
3613 echo "configure:3614: checking if the linker ($LD) is GNU ld" >&5
3614 if eval "test \"\${lt_cv_prog_gnu_ld+set}\" = set"; then
3615 echo $ac_n "(cached) $ac_c" 1>&6
3617 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3618 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3619 lt_cv_prog_gnu_ld=yes
3621 lt_cv_prog_gnu_ld=no
3625 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
3626 with_gnu_ld=$lt_cv_prog_gnu_ld
3629 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
3630 echo "configure:3631: checking for $LD option to reload object files" >&5
3631 if eval "test \"\${lt_cv_ld_reload_flag+set}\" = set"; then
3632 echo $ac_n "(cached) $ac_c" 1>&6
3634 lt_cv_ld_reload_flag='-r'
3637 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
3638 reload_flag=$lt_cv_ld_reload_flag
3639 test -n "$reload_flag" && reload_flag=" $reload_flag"
3641 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
3642 echo "configure:3643: checking for BSD-compatible nm" >&5
3643 if eval "test \"\${lt_cv_path_NM+set}\" = set"; then
3644 echo $ac_n "(cached) $ac_c" 1>&6
3646 if test -n "$NM"; then
3647 # Let the user override the test.
3650 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3651 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3652 test -z "$ac_dir" && ac_dir=.
3653 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3654 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3655 # Check to see if the nm accepts a BSD-compat flag.
3656 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3657 # nm: unknown option "B" ignored
3658 # Tru64's nm complains that /dev/null is an invalid object file
3659 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3660 lt_cv_path_NM="$tmp_nm -B"
3662 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3663 lt_cv_path_NM="$tmp_nm -p"
3666 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3667 continue # so that we can try to find one that supports BSD flags
3672 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3677 echo "$ac_t""$NM" 1>&6
3679 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3680 echo "configure:3681: checking whether ln -s works" >&5
3681 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3682 echo $ac_n "(cached) $ac_c" 1>&6
3685 if ln -s X conftestdata 2>/dev/null
3688 ac_cv_prog_LN_S="ln -s"
3693 LN_S="$ac_cv_prog_LN_S"
3694 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3695 echo "$ac_t""yes" 1>&6
3697 echo "$ac_t""no" 1>&6
3700 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
3701 echo "configure:3702: checking how to recognise dependant libraries" >&5
3702 if eval "test \"\${lt_cv_deplibs_check_method+set}\" = set"; then
3703 echo $ac_n "(cached) $ac_c" 1>&6
3705 lt_cv_file_magic_cmd='$MAGIC_CMD'
3706 lt_cv_file_magic_test_file=
3707 lt_cv_deplibs_check_method='unknown'
3708 # Need to set the preceding variable on all platforms that support
3709 # interlibrary dependencies.
3710 # 'none' -- dependencies not supported.
3711 # `unknown' -- same as none, but documents that we really don't know.
3712 # 'pass_all' -- all dependencies passed with no checks.
3713 # 'test_compile' -- check by making test program.
3714 # 'file_magic [[regex]]' -- check by looking for files in library path
3715 # which responds to the $file_magic_cmd with a given egrep regex.
3716 # If you have `file' or equivalent on your system and you're not sure
3717 # whether `pass_all' will *always* work, you probably want this one.
3721 lt_cv_deplibs_check_method=pass_all
3725 lt_cv_deplibs_check_method=pass_all
3729 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3730 lt_cv_file_magic_cmd='/usr/bin/file -L'
3731 lt_cv_file_magic_test_file=/shlib/libc.so
3734 cygwin* | mingw* | pw32*)
3735 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3736 lt_cv_file_magic_cmd='$OBJDUMP -f'
3739 darwin* | rhapsody*)
3740 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3741 lt_cv_file_magic_cmd='/usr/bin/file -L'
3743 rhapsody* | darwin1.[012])
3744 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3747 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3753 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3756 # Not sure whether the presence of OpenBSD here was a mistake.
3757 # Let's accept both of them until this is cleared up.
3758 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3759 lt_cv_file_magic_cmd=/usr/bin/file
3760 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3764 lt_cv_deplibs_check_method=pass_all
3769 lt_cv_deplibs_check_method=pass_all
3773 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3774 lt_cv_file_magic_cmd=/usr/bin/file
3775 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3781 # this will be overridden with pass_all, but let us keep it just in case
3782 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3786 *-32|*"-32 ") libmagic=32-bit;;
3787 *-n32|*"-n32 ") libmagic=N32;;
3788 *-64|*"-64 ") libmagic=64-bit;;
3789 *) libmagic=never-match;;
3791 # this will be overridden with pass_all, but let us keep it just in case
3792 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3795 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3796 lt_cv_deplibs_check_method=pass_all
3799 # This must be Linux ELF.
3802 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
3803 lt_cv_deplibs_check_method=pass_all ;;
3805 # glibc up to 2.1.1 does not perform some relocations on ARM
3806 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3808 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3812 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3813 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3815 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3820 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3821 lt_cv_file_magic_cmd=/usr/bin/file
3822 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3826 lt_cv_file_magic_cmd=/usr/bin/file
3827 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3828 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3829 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3831 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3835 osf3* | osf4* | osf5*)
3836 # this will be overridden with pass_all, but let us keep it just in case
3837 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3838 lt_cv_file_magic_test_file=/shlib/libc.so
3839 lt_cv_deplibs_check_method=pass_all
3843 lt_cv_deplibs_check_method=pass_all
3847 lt_cv_deplibs_check_method=pass_all
3848 lt_cv_file_magic_test_file=/lib/libc.so
3851 sysv5uw[78]* | sysv4*uw2*)
3852 lt_cv_deplibs_check_method=pass_all
3855 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3856 case $host_vendor in
3858 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]'
3859 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3862 lt_cv_deplibs_check_method=pass_all
3865 lt_cv_file_magic_cmd='/bin/file'
3866 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3869 lt_cv_file_magic_cmd='/bin/file'
3870 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3871 lt_cv_file_magic_test_file=/lib/libc.so
3879 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
3880 file_magic_cmd=$lt_cv_file_magic_cmd
3881 deplibs_check_method=$lt_cv_deplibs_check_method
3883 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
3884 echo "configure:3885: checking for object suffix" >&5
3885 if eval "test \"\${ac_cv_objext+set}\" = set"; then
3886 echo $ac_n "(cached) $ac_c" 1>&6
3889 echo 'int i = 1;' > conftest.$ac_ext
3890 if { (eval echo configure:3891: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3891 for ac_file in conftest.*; do
3894 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
3898 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
3903 echo "$ac_t""$ac_cv_objext" 1>&6
3904 OBJEXT=$ac_cv_objext
3905 ac_objext=$ac_cv_objext
3910 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3911 echo "configure:3912: checking for executable suffix" >&5
3912 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
3913 echo $ac_n "(cached) $ac_c" 1>&6
3915 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
3919 echo 'int main () { return 0; }' > conftest.$ac_ext
3921 if { (eval echo configure:3922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3922 for file in conftest.*; do
3924 *.c | *.C | *.o | *.obj | *.xcoff) ;;
3925 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3929 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3932 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3937 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3938 echo "$ac_t""${ac_cv_exeext}" 1>&6
3941 if test $host != $build; then
3942 ac_tool_prefix=${host_alias}-
3950 # Check for command to grab the raw symbol name followed by C symbol from nm.
3951 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
3952 echo "configure:3953: checking command to parse $NM output" >&5
3953 if eval "test \"\${lt_cv_sys_global_symbol_pipe+set}\" = set"; then
3954 echo $ac_n "(cached) $ac_c" 1>&6
3957 # These are sane defaults that work on at least a few old systems.
3958 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
3960 # Character class describing NM global symbol codes.
3961 symcode='[BCDEGRST]'
3963 # Regexp to match symbols that can be accessed directly from C.
3964 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3966 # Transform the above into a raw symbol and a C symbol.
3967 symxfrm='\1 \2\3 \3'
3969 # Transform an extracted symbol line into a proper C declaration
3970 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3972 # Transform an extracted symbol line into symbol name and symbol address
3973 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'"
3975 # Define system-specific variables.
3980 cygwin* | mingw* | pw32*)
3981 symcode='[ABCDGISTW]'
3983 hpux*) # Its linker distinguishes data from code symbols
3984 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3985 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'"
3988 symcode='[BCDEGRST]'
3998 # Handle CRLF in mingw tool chain
4002 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4006 # If we're using GNU nm, then use its standard symbol codes.
4007 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
4008 symcode='[ABCDGISTW]'
4011 # Try without a prefix undercore, then with it.
4012 for ac_symprfx in "" "_"; do
4014 # Write the raw and C identifiers.
4015 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4017 # Check to see that the pipe works correctly.
4020 cat > conftest.$ac_ext <<EOF
4025 void nm_test_func(){}
4029 int main(){nm_test_var='a';nm_test_func();return(0);}
4032 if { (eval echo configure:4033: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4033 # Now try to grab the symbols.
4035 if { (eval echo configure:4036: \"$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
4036 # Try sorting and uniquifying the output.
4037 if sort "$nlist" | uniq > "$nlist"T; then
4038 mv -f "$nlist"T "$nlist"
4043 # Make sure that we snagged all the symbols we need.
4044 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4045 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4046 cat <<EOF > conftest.$ac_ext
4052 # Now generate the symbol file.
4053 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4055 cat <<EOF >> conftest.$ac_ext
4056 #if defined (__STDC__) && __STDC__
4057 # define lt_ptr void *
4059 # define lt_ptr char *
4063 /* The mapping between symbol names and symbols. */
4068 lt_preloaded_symbols[] =
4071 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4072 cat <<\EOF >> conftest.$ac_ext
4080 # Now try linking the two files.
4081 mv conftest.$ac_objext conftstm.$ac_objext
4083 save_CFLAGS="$CFLAGS"
4084 LIBS="conftstm.$ac_objext"
4085 CFLAGS="$CFLAGS$no_builtin_flag"
4086 if { (eval echo configure:4087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4090 CFLAGS="$save_CFLAGS"
4092 echo "cannot find nm_test_func in $nlist" >&5
4095 echo "cannot find nm_test_var in $nlist" >&5
4098 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4101 echo "$progname: failed program was:" >&5
4102 cat conftest.$ac_ext >&5
4104 rm -f conftest* conftst*
4106 # Do not use the global_symbol_pipe unless it works.
4107 if test "$pipe_works" = yes; then
4110 lt_cv_sys_global_symbol_pipe=
4116 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4117 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4118 global_symbol_to_cdecl=
4119 global_symbol_to_c_name_address=
4121 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4122 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4124 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4126 echo "$ac_t""failed" 1>&6
4128 echo "$ac_t""ok" 1>&6
4131 for ac_hdr in dlfcn.h
4133 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4134 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4135 echo "configure:4136: checking for $ac_hdr" >&5
4136 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4137 echo $ac_n "(cached) $ac_c" 1>&6
4139 cat > conftest.$ac_ext <<EOF
4140 #line 4141 "configure"
4141 #include "confdefs.h"
4144 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4145 { (eval echo configure:4146: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4146 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4147 if test -z "$ac_err"; then
4149 eval "ac_cv_header_$ac_safe=yes"
4152 echo "configure: failed program was:" >&5
4153 cat conftest.$ac_ext >&5
4155 eval "ac_cv_header_$ac_safe=no"
4159 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4160 echo "$ac_t""yes" 1>&6
4161 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4162 cat >> confdefs.h <<EOF
4163 #define $ac_tr_hdr 1
4167 echo "$ac_t""no" 1>&6
4175 # Only perform the check for file, if the check method requires it
4176 case $deplibs_check_method in
4178 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4179 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
4180 echo "configure:4181: checking for ${ac_tool_prefix}file" >&5
4181 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
4182 echo $ac_n "(cached) $ac_c" 1>&6
4186 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4189 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4192 ac_save_MAGIC_CMD="$MAGIC_CMD"
4193 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4194 ac_dummy="/usr/bin:$PATH"
4195 for ac_dir in $ac_dummy; do
4196 test -z "$ac_dir" && ac_dir=.
4197 if test -f $ac_dir/${ac_tool_prefix}file; then
4198 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4199 if test -n "$file_magic_test_file"; then
4200 case $deplibs_check_method in
4202 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4203 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4204 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4205 egrep "$file_magic_regex" > /dev/null; then
4210 *** Warning: the command libtool uses to detect shared libraries,
4211 *** $file_magic_cmd, produces output that libtool cannot recognize.
4212 *** The result is that libtool may fail to recognize shared libraries
4213 *** as such. This will affect the creation of libtool libraries that
4214 *** depend on shared libraries, but programs linked with such libtool
4215 *** libraries will work regardless of this problem. Nevertheless, you
4216 *** may want to report the problem to your system manager and/or to
4217 *** bug-libtool@gnu.org
4227 MAGIC_CMD="$ac_save_MAGIC_CMD"
4232 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4233 if test -n "$MAGIC_CMD"; then
4234 echo "$ac_t""$MAGIC_CMD" 1>&6
4236 echo "$ac_t""no" 1>&6
4239 if test -z "$lt_cv_path_MAGIC_CMD"; then
4240 if test -n "$ac_tool_prefix"; then
4241 echo $ac_n "checking for file""... $ac_c" 1>&6
4242 echo "configure:4243: checking for file" >&5
4243 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
4244 echo $ac_n "(cached) $ac_c" 1>&6
4248 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4251 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4254 ac_save_MAGIC_CMD="$MAGIC_CMD"
4255 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4256 ac_dummy="/usr/bin:$PATH"
4257 for ac_dir in $ac_dummy; do
4258 test -z "$ac_dir" && ac_dir=.
4259 if test -f $ac_dir/file; then
4260 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4261 if test -n "$file_magic_test_file"; then
4262 case $deplibs_check_method in
4264 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4265 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4266 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4267 egrep "$file_magic_regex" > /dev/null; then
4272 *** Warning: the command libtool uses to detect shared libraries,
4273 *** $file_magic_cmd, produces output that libtool cannot recognize.
4274 *** The result is that libtool may fail to recognize shared libraries
4275 *** as such. This will affect the creation of libtool libraries that
4276 *** depend on shared libraries, but programs linked with such libtool
4277 *** libraries will work regardless of this problem. Nevertheless, you
4278 *** may want to report the problem to your system manager and/or to
4279 *** bug-libtool@gnu.org
4289 MAGIC_CMD="$ac_save_MAGIC_CMD"
4294 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4295 if test -n "$MAGIC_CMD"; then
4296 echo "$ac_t""$MAGIC_CMD" 1>&6
4298 echo "$ac_t""no" 1>&6
4310 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4311 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4312 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4313 echo "configure:4314: checking for $ac_word" >&5
4314 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
4315 echo $ac_n "(cached) $ac_c" 1>&6
4317 if test -n "$RANLIB"; then
4318 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4320 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4322 for ac_dir in $ac_dummy; do
4323 test -z "$ac_dir" && ac_dir=.
4324 if test -f $ac_dir/$ac_word; then
4325 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4332 RANLIB="$ac_cv_prog_RANLIB"
4333 if test -n "$RANLIB"; then
4334 echo "$ac_t""$RANLIB" 1>&6
4336 echo "$ac_t""no" 1>&6
4340 if test -z "$ac_cv_prog_RANLIB"; then
4341 if test -n "$ac_tool_prefix"; then
4342 # Extract the first word of "ranlib", so it can be a program name with args.
4343 set dummy ranlib; ac_word=$2
4344 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4345 echo "configure:4346: checking for $ac_word" >&5
4346 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
4347 echo $ac_n "(cached) $ac_c" 1>&6
4349 if test -n "$RANLIB"; then
4350 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4352 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4354 for ac_dir in $ac_dummy; do
4355 test -z "$ac_dir" && ac_dir=.
4356 if test -f $ac_dir/$ac_word; then
4357 ac_cv_prog_RANLIB="ranlib"
4362 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
4365 RANLIB="$ac_cv_prog_RANLIB"
4366 if test -n "$RANLIB"; then
4367 echo "$ac_t""$RANLIB" 1>&6
4369 echo "$ac_t""no" 1>&6
4377 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4378 set dummy ${ac_tool_prefix}strip; ac_word=$2
4379 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4380 echo "configure:4381: checking for $ac_word" >&5
4381 if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then
4382 echo $ac_n "(cached) $ac_c" 1>&6
4384 if test -n "$STRIP"; then
4385 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4387 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4389 for ac_dir in $ac_dummy; do
4390 test -z "$ac_dir" && ac_dir=.
4391 if test -f $ac_dir/$ac_word; then
4392 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4399 STRIP="$ac_cv_prog_STRIP"
4400 if test -n "$STRIP"; then
4401 echo "$ac_t""$STRIP" 1>&6
4403 echo "$ac_t""no" 1>&6
4407 if test -z "$ac_cv_prog_STRIP"; then
4408 if test -n "$ac_tool_prefix"; then
4409 # Extract the first word of "strip", so it can be a program name with args.
4410 set dummy strip; ac_word=$2
4411 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4412 echo "configure:4413: checking for $ac_word" >&5
4413 if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then
4414 echo $ac_n "(cached) $ac_c" 1>&6
4416 if test -n "$STRIP"; then
4417 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4419 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4421 for ac_dir in $ac_dummy; do
4422 test -z "$ac_dir" && ac_dir=.
4423 if test -f $ac_dir/$ac_word; then
4424 ac_cv_prog_STRIP="strip"
4429 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
4432 STRIP="$ac_cv_prog_STRIP"
4433 if test -n "$STRIP"; then
4434 echo "$ac_t""$STRIP" 1>&6
4436 echo "$ac_t""no" 1>&6
4446 enable_win32_dll=yes
4448 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4449 if test "${enable_libtool_lock+set}" = set; then
4450 enableval="$enable_libtool_lock"
4454 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4456 # Some flags need to be propagated to the compiler or linker for good
4460 # Find out which ABI we are using.
4461 echo '#line 4462 "configure"' > conftest.$ac_ext
4462 if { (eval echo configure:4463: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4463 case `/usr/bin/file conftest.$ac_objext` in
4479 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4480 SAVE_CFLAGS="$CFLAGS"
4481 CFLAGS="$CFLAGS -belf"
4482 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
4483 echo "configure:4484: checking whether the C compiler needs -belf" >&5
4484 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
4485 echo $ac_n "(cached) $ac_c" 1>&6
4489 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4490 ac_cpp='$CPP $CPPFLAGS'
4491 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4492 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4493 cross_compiling=$ac_cv_prog_cc_cross
4495 cat > conftest.$ac_ext <<EOF
4496 #line 4497 "configure"
4497 #include "confdefs.h"
4503 if { (eval echo configure:4504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4505 lt_cv_cc_needs_belf=yes
4507 echo "configure: failed program was:" >&5
4508 cat conftest.$ac_ext >&5
4510 lt_cv_cc_needs_belf=no
4514 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4515 ac_cpp='$CPP $CPPFLAGS'
4516 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4517 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4518 cross_compiling=$ac_cv_prog_cc_cross
4522 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
4523 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4524 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4525 CFLAGS="$SAVE_CFLAGS"
4529 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4530 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4531 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4532 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4533 echo "configure:4534: checking for $ac_word" >&5
4534 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
4535 echo $ac_n "(cached) $ac_c" 1>&6
4537 if test -n "$DLLTOOL"; then
4538 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4540 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4542 for ac_dir in $ac_dummy; do
4543 test -z "$ac_dir" && ac_dir=.
4544 if test -f $ac_dir/$ac_word; then
4545 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4552 DLLTOOL="$ac_cv_prog_DLLTOOL"
4553 if test -n "$DLLTOOL"; then
4554 echo "$ac_t""$DLLTOOL" 1>&6
4556 echo "$ac_t""no" 1>&6
4560 if test -z "$ac_cv_prog_DLLTOOL"; then
4561 if test -n "$ac_tool_prefix"; then
4562 # Extract the first word of "dlltool", so it can be a program name with args.
4563 set dummy dlltool; ac_word=$2
4564 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4565 echo "configure:4566: checking for $ac_word" >&5
4566 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
4567 echo $ac_n "(cached) $ac_c" 1>&6
4569 if test -n "$DLLTOOL"; then
4570 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4572 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4574 for ac_dir in $ac_dummy; do
4575 test -z "$ac_dir" && ac_dir=.
4576 if test -f $ac_dir/$ac_word; then
4577 ac_cv_prog_DLLTOOL="dlltool"
4582 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
4585 DLLTOOL="$ac_cv_prog_DLLTOOL"
4586 if test -n "$DLLTOOL"; then
4587 echo "$ac_t""$DLLTOOL" 1>&6
4589 echo "$ac_t""no" 1>&6
4597 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4598 set dummy ${ac_tool_prefix}as; ac_word=$2
4599 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4600 echo "configure:4601: checking for $ac_word" >&5
4601 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
4602 echo $ac_n "(cached) $ac_c" 1>&6
4604 if test -n "$AS"; then
4605 ac_cv_prog_AS="$AS" # Let the user override the test.
4607 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4609 for ac_dir in $ac_dummy; do
4610 test -z "$ac_dir" && ac_dir=.
4611 if test -f $ac_dir/$ac_word; then
4612 ac_cv_prog_AS="${ac_tool_prefix}as"
4620 if test -n "$AS"; then
4621 echo "$ac_t""$AS" 1>&6
4623 echo "$ac_t""no" 1>&6
4627 if test -z "$ac_cv_prog_AS"; then
4628 if test -n "$ac_tool_prefix"; then
4629 # Extract the first word of "as", so it can be a program name with args.
4630 set dummy as; ac_word=$2
4631 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4632 echo "configure:4633: checking for $ac_word" >&5
4633 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
4634 echo $ac_n "(cached) $ac_c" 1>&6
4636 if test -n "$AS"; then
4637 ac_cv_prog_AS="$AS" # Let the user override the test.
4639 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4641 for ac_dir in $ac_dummy; do
4642 test -z "$ac_dir" && ac_dir=.
4643 if test -f $ac_dir/$ac_word; then
4649 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
4653 if test -n "$AS"; then
4654 echo "$ac_t""$AS" 1>&6
4656 echo "$ac_t""no" 1>&6
4664 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4665 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4666 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4667 echo "configure:4668: checking for $ac_word" >&5
4668 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
4669 echo $ac_n "(cached) $ac_c" 1>&6
4671 if test -n "$OBJDUMP"; then
4672 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4674 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4676 for ac_dir in $ac_dummy; do
4677 test -z "$ac_dir" && ac_dir=.
4678 if test -f $ac_dir/$ac_word; then
4679 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4686 OBJDUMP="$ac_cv_prog_OBJDUMP"
4687 if test -n "$OBJDUMP"; then
4688 echo "$ac_t""$OBJDUMP" 1>&6
4690 echo "$ac_t""no" 1>&6
4694 if test -z "$ac_cv_prog_OBJDUMP"; then
4695 if test -n "$ac_tool_prefix"; then
4696 # Extract the first word of "objdump", so it can be a program name with args.
4697 set dummy objdump; ac_word=$2
4698 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4699 echo "configure:4700: checking for $ac_word" >&5
4700 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
4701 echo $ac_n "(cached) $ac_c" 1>&6
4703 if test -n "$OBJDUMP"; then
4704 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4706 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4708 for ac_dir in $ac_dummy; do
4709 test -z "$ac_dir" && ac_dir=.
4710 if test -f $ac_dir/$ac_word; then
4711 ac_cv_prog_OBJDUMP="objdump"
4716 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
4719 OBJDUMP="$ac_cv_prog_OBJDUMP"
4720 if test -n "$OBJDUMP"; then
4721 echo "$ac_t""$OBJDUMP" 1>&6
4723 echo "$ac_t""no" 1>&6
4732 # recent cygwin and mingw systems supply a stub DllMain which the user
4733 # can override, but on older systems we have to supply one
4734 echo $ac_n "checking if libtool should supply DllMain function""... $ac_c" 1>&6
4735 echo "configure:4736: checking if libtool should supply DllMain function" >&5
4736 if eval "test \"\${lt_cv_need_dllmain+set}\" = set"; then
4737 echo $ac_n "(cached) $ac_c" 1>&6
4739 cat > conftest.$ac_ext <<EOF
4740 #line 4741 "configure"
4741 #include "confdefs.h"
4744 extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
4748 if { (eval echo configure:4749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4750 lt_cv_need_dllmain=no
4752 echo "configure: failed program was:" >&5
4753 cat conftest.$ac_ext >&5
4755 lt_cv_need_dllmain=yes
4760 echo "$ac_t""$lt_cv_need_dllmain" 1>&6
4763 *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
4764 # old mingw systems require "-dll" to link a DLL, while more recent ones
4766 SAVE_CFLAGS="$CFLAGS"
4767 CFLAGS="$CFLAGS -mdll"
4768 echo $ac_n "checking how to link DLLs""... $ac_c" 1>&6
4769 echo "configure:4770: checking how to link DLLs" >&5
4770 if eval "test \"\${lt_cv_cc_dll_switch+set}\" = set"; then
4771 echo $ac_n "(cached) $ac_c" 1>&6
4773 cat > conftest.$ac_ext <<EOF
4774 #line 4775 "configure"
4775 #include "confdefs.h"
4781 if { (eval echo configure:4782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4783 lt_cv_cc_dll_switch=-mdll
4785 echo "configure: failed program was:" >&5
4786 cat conftest.$ac_ext >&5
4788 lt_cv_cc_dll_switch=-dll
4793 echo "$ac_t""$lt_cv_cc_dll_switch" 1>&6
4794 CFLAGS="$SAVE_CFLAGS" ;;
4795 *-*-cygwin* | *-*-pw32*)
4796 # cygwin systems need to pass --dll to the linker, and not link
4797 # crt.o which will require a WinMain@16 definition.
4798 lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
4804 # Sed substitution that helps us do robust quoting. It backslashifies
4805 # metacharacters that are still active within double-quoted strings.
4806 Xsed='sed -e s/^X//'
4807 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4809 # Same as above, but do not quote variable references.
4810 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4812 # Sed substitution to delay expansion of an escaped shell variable in a
4813 # double_quote_subst'ed string.
4814 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4820 default_ofile=libtool
4821 can_build_shared=yes
4823 # All known linkers require a `.a' archive for static linking (except M$VC,
4824 # which needs '.lib').
4826 ltmain="$ac_aux_dir/ltmain.sh"
4827 ofile="$default_ofile"
4828 with_gnu_ld="$lt_cv_prog_gnu_ld"
4829 need_locks="$enable_libtool_lock"
4832 old_CFLAGS="$CFLAGS"
4834 # Set sane defaults for various variables
4835 test -z "$AR" && AR=ar
4836 test -z "$AR_FLAGS" && AR_FLAGS=cru
4837 test -z "$AS" && AS=as
4838 test -z "$CC" && CC=cc
4839 test -z "$DLLTOOL" && DLLTOOL=dlltool
4840 test -z "$LD" && LD=ld
4841 test -z "$LN_S" && LN_S="ln -s"
4842 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4843 test -z "$NM" && NM=nm
4844 test -z "$OBJDUMP" && OBJDUMP=objdump
4845 test -z "$RANLIB" && RANLIB=:
4846 test -z "$STRIP" && STRIP=:
4847 test -z "$ac_objext" && ac_objext=o
4849 if test x"$host" != x"$build"; then
4850 ac_tool_prefix=${host_alias}-
4855 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4858 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4863 # AIX sometimes has problems with the GCC collect2 program. For some
4864 # reason, if we set the COLLECT_NAMES environment variable, the problems
4865 # vanish in a puff of smoke.
4866 if test "X${COLLECT_NAMES+set}" != Xset; then
4868 export COLLECT_NAMES
4873 # Determine commands to create old-style static archives.
4874 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4875 old_postinstall_cmds='chmod 644 $oldlib'
4876 old_postuninstall_cmds=
4878 if test -n "$RANLIB"; then
4881 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4884 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4887 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4890 # Allow CC to be a program name with arguments.
4894 echo $ac_n "checking for objdir""... $ac_c" 1>&6
4895 echo "configure:4896: checking for objdir" >&5
4896 rm -f .libs 2>/dev/null
4897 mkdir .libs 2>/dev/null
4898 if test -d .libs; then
4901 # MS-DOS does not allow filenames that begin with a dot.
4904 rmdir .libs 2>/dev/null
4905 echo "$ac_t""$objdir" 1>&6
4908 # Check whether --with-pic or --without-pic was given.
4909 if test "${with_pic+set}" = set; then
4916 test -z "$pic_mode" && pic_mode=default
4918 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
4919 # in isolation, and that seeing it set (from the cache) indicates that
4920 # the associated values are set (in the cache) correctly too.
4921 echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6
4922 echo "configure:4923: checking for $compiler option to produce PIC" >&5
4923 if eval "test \"\${lt_cv_prog_cc_pic+set}\" = set"; then
4924 echo $ac_n "(cached) $ac_c" 1>&6
4927 lt_cv_prog_cc_shlib=
4929 lt_cv_prog_cc_static=
4930 lt_cv_prog_cc_no_builtin=
4931 lt_cv_prog_cc_can_build_shared=$can_build_shared
4933 if test "$GCC" = yes; then
4934 lt_cv_prog_cc_wl='-Wl,'
4935 lt_cv_prog_cc_static='-static'
4939 # Below there is a dirty hack to force normal static linking with -ldl
4940 # The problem is because libdl dynamically linked with both libc and
4941 # libC (AIX C++ library), which obviously doesn't included in libraries
4942 # list by gcc. This cause undefined symbols with -static flags.
4943 # This hack allows C programs to be linked with "-static -ldl", but
4944 # not sure about C++ programs.
4945 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
4948 # FIXME: we need at least 68020 code to build shared libraries, but
4949 # adding the `-m68020' flag to GCC prevents building anything better,
4951 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
4953 beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
4954 # PIC is the default for these OSes.
4956 darwin* | rhapsody*)
4957 # PIC is the default on this platform
4958 # Common symbols not allowed in MH_DYLIB files
4959 lt_cv_prog_cc_pic='-fno-common'
4961 cygwin* | mingw* | pw32* | os2*)
4962 # This hack is so that the source file can tell whether it is being
4963 # built for inclusion in a dll (and should export symbols for example).
4964 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4967 if test -d /usr/nec; then
4968 lt_cv_prog_cc_pic=-Kconform_pic
4972 lt_cv_prog_cc_pic='-fPIC'
4976 # PORTME Check for PIC flags for the system compiler.
4978 aix3* | aix4* | aix5*)
4979 lt_cv_prog_cc_wl='-Wl,'
4980 # All AIX code is PIC.
4981 if test "$host_cpu" = ia64; then
4982 # AIX 5 now supports IA64 processor
4983 lt_cv_prog_cc_static='-Bstatic'
4985 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
4989 hpux9* | hpux10* | hpux11*)
4990 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
4991 lt_cv_prog_cc_wl='-Wl,'
4992 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
4993 lt_cv_prog_cc_pic='+Z'
4997 lt_cv_prog_cc_wl='-Wl,'
4998 lt_cv_prog_cc_static='-non_shared'
4999 # PIC (with -KPIC) is the default.
5002 cygwin* | mingw* | pw32* | os2*)
5003 # This hack is so that the source file can tell whether it is being
5004 # built for inclusion in a dll (and should export symbols for example).
5005 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5009 lt_cv_prog_cc_pic='-KPIC'
5010 lt_cv_prog_cc_static='-Bstatic'
5013 osf3* | osf4* | osf5*)
5014 # All OSF/1 code is PIC.
5015 lt_cv_prog_cc_wl='-Wl,'
5016 lt_cv_prog_cc_static='-non_shared'
5020 lt_cv_prog_cc_pic='-Kpic'
5021 lt_cv_prog_cc_static='-dn'
5022 lt_cv_prog_cc_shlib='-belf'
5026 lt_cv_prog_cc_pic='-KPIC'
5027 lt_cv_prog_cc_static='-Bstatic'
5028 lt_cv_prog_cc_wl='-Wl,'
5032 lt_cv_prog_cc_pic='-PIC'
5033 lt_cv_prog_cc_static='-Bstatic'
5034 lt_cv_prog_cc_wl='-Qoption ld '
5037 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5038 lt_cv_prog_cc_pic='-KPIC'
5039 lt_cv_prog_cc_static='-Bstatic'
5040 if test "x$host_vendor" = xsni; then
5041 lt_cv_prog_cc_wl='-LD'
5043 lt_cv_prog_cc_wl='-Wl,'
5048 lt_cv_prog_cc_pic='-pic'
5049 lt_cv_prog_cc_static='-Bstatic'
5053 if test -d /usr/nec ;then
5054 lt_cv_prog_cc_pic='-Kconform_pic'
5055 lt_cv_prog_cc_static='-Bstatic'
5060 lt_cv_prog_cc_can_build_shared=no
5067 if test -z "$lt_cv_prog_cc_pic"; then
5068 echo "$ac_t""none" 1>&6
5070 echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6
5072 # Check to make sure the pic_flag actually works.
5073 echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6
5074 echo "configure:5075: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5075 if eval "test \"\${lt_cv_prog_cc_pic_works+set}\" = set"; then
5076 echo $ac_n "(cached) $ac_c" 1>&6
5078 save_CFLAGS="$CFLAGS"
5079 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5080 cat > conftest.$ac_ext <<EOF
5081 #line 5082 "configure"
5082 #include "confdefs.h"
5088 if { (eval echo configure:5089: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5091 hpux9* | hpux10* | hpux11*)
5092 # On HP-UX, both CC and GCC only warn that PIC is supported... then
5093 # they create non-PIC objects. So, if there were any warnings, we
5094 # assume that PIC is not supported.
5095 if test -s conftest.err; then
5096 lt_cv_prog_cc_pic_works=no
5098 lt_cv_prog_cc_pic_works=yes
5102 lt_cv_prog_cc_pic_works=yes
5107 echo "configure: failed program was:" >&5
5108 cat conftest.$ac_ext >&5
5110 lt_cv_prog_cc_pic_works=no
5114 CFLAGS="$save_CFLAGS"
5119 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5121 lt_cv_prog_cc_can_build_shared=no
5123 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5126 echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6
5129 # Check for any special shared library compilation flags.
5130 if test -n "$lt_cv_prog_cc_shlib"; then
5131 echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2
5132 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5134 echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2
5135 lt_cv_prog_cc_can_build_shared=no
5139 echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6
5140 echo "configure:5141: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5141 if eval "test \"\${lt_cv_prog_cc_static_works+set}\" = set"; then
5142 echo $ac_n "(cached) $ac_c" 1>&6
5144 lt_cv_prog_cc_static_works=no
5145 save_LDFLAGS="$LDFLAGS"
5146 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5147 cat > conftest.$ac_ext <<EOF
5148 #line 5149 "configure"
5149 #include "confdefs.h"
5155 if { (eval echo configure:5156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5157 lt_cv_prog_cc_static_works=yes
5159 echo "configure: failed program was:" >&5
5160 cat conftest.$ac_ext >&5
5163 LDFLAGS="$save_LDFLAGS"
5168 # Belt *and* braces to stop my trousers falling down:
5169 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5170 echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6
5172 pic_flag="$lt_cv_prog_cc_pic"
5173 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5174 wl="$lt_cv_prog_cc_wl"
5175 link_static_flag="$lt_cv_prog_cc_static"
5176 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5177 can_build_shared="$lt_cv_prog_cc_can_build_shared"
5180 # Check to see if options -o and -c are simultaneously supported by compiler
5181 echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6
5182 echo "configure:5183: checking if $compiler supports -c -o file.$ac_objext" >&5
5183 if eval "test \"\${lt_cv_compiler_c_o+set}\" = set"; then
5184 echo $ac_n "(cached) $ac_c" 1>&6
5187 $rm -r conftest 2>/dev/null
5190 echo "int some_variable = 0;" > conftest.$ac_ext
5192 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5193 # that will create temporary files in the current directory regardless of
5194 # the output directory. Thus, making CWD read-only will cause this test
5195 # to fail, enabling locking or at least warning the user not to do parallel
5198 save_CFLAGS="$CFLAGS"
5199 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5201 if { (eval echo configure:5202: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5202 # The compiler can only warn and ignore the option if not recognized
5203 # So say no if there are warnings
5204 if test -s out/conftest.err; then
5205 lt_cv_compiler_c_o=no
5207 lt_cv_compiler_c_o=yes
5210 # Append any errors to the config.log.
5211 cat out/conftest.err 1>&5
5212 lt_cv_compiler_c_o=no
5214 CFLAGS="$save_CFLAGS"
5220 $rm -r conftest 2>/dev/null
5224 compiler_c_o=$lt_cv_compiler_c_o
5225 echo "$ac_t""$compiler_c_o" 1>&6
5227 if test x"$compiler_c_o" = x"yes"; then
5228 # Check to see if we can write to a .lo
5229 echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6
5230 echo "configure:5231: checking if $compiler supports -c -o file.lo" >&5
5231 if eval "test \"\${lt_cv_compiler_o_lo+set}\" = set"; then
5232 echo $ac_n "(cached) $ac_c" 1>&6
5235 lt_cv_compiler_o_lo=no
5236 save_CFLAGS="$CFLAGS"
5237 CFLAGS="$CFLAGS -c -o conftest.lo"
5238 save_objext="$ac_objext"
5240 cat > conftest.$ac_ext <<EOF
5241 #line 5242 "configure"
5242 #include "confdefs.h"
5245 int some_variable = 0;
5248 if { (eval echo configure:5249: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5250 # The compiler can only warn and ignore the option if not recognized
5251 # So say no if there are warnings
5252 if test -s conftest.err; then
5253 lt_cv_compiler_o_lo=no
5255 lt_cv_compiler_o_lo=yes
5259 echo "configure: failed program was:" >&5
5260 cat conftest.$ac_ext >&5
5263 ac_objext="$save_objext"
5264 CFLAGS="$save_CFLAGS"
5268 compiler_o_lo=$lt_cv_compiler_o_lo
5269 echo "$ac_t""$compiler_o_lo" 1>&6
5274 # Check to see if we can do hard links to lock some files if needed
5275 hard_links="nottested"
5276 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5277 # do not overwrite the value of need_locks provided by the user
5278 echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6
5279 echo "configure:5280: checking if we can lock with hard links" >&5
5282 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5284 ln conftest.a conftest.b 2>&5 || hard_links=no
5285 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5286 echo "$ac_t""$hard_links" 1>&6
5287 if test "$hard_links" = no; then
5288 echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2
5295 if test "$GCC" = yes; then
5296 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5297 echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6
5298 echo "configure:5299: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5299 echo "int some_variable = 0;" > conftest.$ac_ext
5300 save_CFLAGS="$CFLAGS"
5301 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5302 compiler_rtti_exceptions=no
5303 cat > conftest.$ac_ext <<EOF
5304 #line 5305 "configure"
5305 #include "confdefs.h"
5308 int some_variable = 0;
5311 if { (eval echo configure:5312: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5313 # The compiler can only warn and ignore the option if not recognized
5314 # So say no if there are warnings
5315 if test -s conftest.err; then
5316 compiler_rtti_exceptions=no
5318 compiler_rtti_exceptions=yes
5322 echo "configure: failed program was:" >&5
5323 cat conftest.$ac_ext >&5
5326 CFLAGS="$save_CFLAGS"
5327 echo "$ac_t""$compiler_rtti_exceptions" 1>&6
5329 if test "$compiler_rtti_exceptions" = "yes"; then
5330 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5332 no_builtin_flag=' -fno-builtin'
5336 # See if the linker supports building shared libraries.
5337 echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6
5338 echo "configure:5339: checking whether the linker ($LD) supports shared libraries" >&5
5340 allow_undefined_flag=
5342 need_lib_prefix=unknown
5343 need_version=unknown
5344 # when you set need_version to no, make sure it does not cause -set_version
5345 # flags to be left without arguments
5347 archive_expsym_cmds=
5348 old_archive_from_new_cmds=
5349 old_archive_from_expsyms_cmds=
5350 export_dynamic_flag_spec=
5351 whole_archive_flag_spec=
5352 thread_safe_flag_spec=
5353 hardcode_into_libs=no
5354 hardcode_libdir_flag_spec=
5355 hardcode_libdir_separator=
5358 hardcode_shlibpath_var=unsupported
5360 link_all_deplibs=unknown
5361 always_export_symbols=no
5362 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5363 # include_expsyms should be a list of space-separated symbols to be *always*
5364 # included in the symbol list
5366 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5367 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5368 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5369 # as well as any symbol that contains `d'.
5370 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5371 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5372 # platforms (ab)use it in PIC code, but their linkers get confused if
5373 # the symbol is explicitly referenced. Since portable code cannot
5374 # rely on this symbol name, it's probably fine to never include it in
5375 # preloaded symbol tables.
5376 extract_expsyms_cmds=
5379 cygwin* | mingw* | pw32*)
5380 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5381 # When not using gcc, we currently assume that we are using
5382 # Microsoft Visual C++.
5383 if test "$GCC" != yes; then
5393 if test "$with_gnu_ld" = yes; then
5394 # If archive_cmds runs LD, not CC, wlarc should be empty
5397 # See if GNU ld supports shared libraries.
5399 aix3* | aix4* | aix5*)
5400 # On AIX, the GNU linker is very broken
5401 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5405 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5406 *** to be unable to reliably create shared libraries on AIX.
5407 *** Therefore, libtool is disabling shared libraries support. If you
5408 *** really care for shared libraries, you may want to modify your PATH
5409 *** so that a non-GNU linker is found, and then restart.
5415 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)'
5416 hardcode_libdir_flag_spec='-L$libdir'
5417 hardcode_minus_L=yes
5419 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5420 # that the semantics of dynamic libraries on AmigaOS, at least up
5421 # to version 4, is to share data among multiple programs linked
5422 # with the same dynamic library. Since this doesn't match the
5423 # behavior of shared libraries on other platforms, we can use
5429 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5430 allow_undefined_flag=unsupported
5431 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5432 # support --undefined. This deserves some investigation. FIXME
5433 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5439 cygwin* | mingw* | pw32*)
5440 # hardcode_libdir_flag_spec is actually meaningless, as there is
5441 # no search path for DLLs.
5442 hardcode_libdir_flag_spec='-L$libdir'
5443 allow_undefined_flag=unsupported
5444 always_export_symbols=yes
5446 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5447 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5448 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5449 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5450 else $CC -o impgen impgen.c ; fi)~
5451 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5453 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5455 # cygwin and mingw dlls have different entry points and sets of symbols
5457 # FIXME: what about values for MSVC?
5458 dll_entry=__cygwin_dll_entry@12
5459 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5463 dll_entry=_DllMainCRTStartup@12
5464 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5468 # mingw and cygwin differ, and it's simplest to just exclude the union
5469 # of the two symbol sets.
5470 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5472 # recent cygwin and mingw systems supply a stub DllMain which the user
5473 # can override, but on older systems we have to supply one (in ltdll.c)
5474 if test "x$lt_cv_need_dllmain" = "xyes"; then
5475 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5476 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~
5477 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5483 # Extract the symbol export list from an `--export-all' def file,
5484 # then regenerate the def file from the symbol export list, so that
5485 # the compiled dll only exports the symbol export list.
5486 # Be careful not to strip the DATA tag left be newer dlltools.
5487 export_symbols_cmds="$ltdll_cmds"'
5488 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5489 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5491 # If the export-symbols file already is a .def file (1st line
5492 # is EXPORTS), use it as is.
5493 # If DATA tags from a recent dlltool are present, honour them!
5494 archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
5495 cp $export_symbols $output_objdir/$soname-def;
5497 echo EXPORTS > $output_objdir/$soname-def;
5499 cat $export_symbols | while read symbol; do
5502 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5503 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5505 _lt_hint=`expr 1 + \$_lt_hint`;
5509 $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~
5510 $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~
5511 $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~
5512 $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~
5513 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5517 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5518 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5521 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5522 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5527 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5531 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5532 *** create shared libraries on Solaris systems. Therefore, libtool
5533 *** is disabling shared libraries support. We urge you to upgrade GNU
5534 *** binutils to release 2.9.1 or newer. Another option is to modify
5535 *** your PATH or compiler configuration so that the native linker is
5536 *** used, and then restart.
5539 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5540 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5541 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5548 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5551 hardcode_shlibpath_var=no
5555 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5556 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5557 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5564 if test "$ld_shlibs" = yes; then
5565 runpath_var=LD_RUN_PATH
5566 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5567 export_dynamic_flag_spec='${wl}--export-dynamic'
5569 cygwin* | mingw* | pw32*)
5570 # dlltool doesn't understand --whole-archive et. al.
5571 whole_archive_flag_spec=
5574 # ancient GNU ld didn't support --whole-archive et. al.
5575 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5576 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5578 whole_archive_flag_spec=
5584 # PORTME fill in a description of your system's linker (not GNU ld)
5587 allow_undefined_flag=unsupported
5588 always_export_symbols=yes
5589 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'
5590 # Note: this linker hardcodes the directories in LIBPATH if there
5591 # are no directories specified by -L.
5592 hardcode_minus_L=yes
5593 if test "$GCC" = yes && test -z "$link_static_flag"; then
5594 # Neither direct hardcoding nor static linking is supported with a
5596 hardcode_direct=unsupported
5601 if test "$host_cpu" = ia64; then
5602 # On IA64, the linker does run time linking by default, so we don't
5603 # have to do anything special.
5604 aix_use_runtimelinking=no
5605 exp_sym_flag='-Bexport'
5608 aix_use_runtimelinking=no
5610 # Test if we are trying to use run time linking or normal
5611 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5612 # need to do runtime linking.
5613 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5614 for ld_flag in $LDFLAGS; do
5615 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5616 aix_use_runtimelinking=yes
5622 exp_sym_flag='-bexport'
5623 no_entry_flag='-bnoentry'
5626 # When large executables or shared objects are built, AIX ld can
5627 # have problems creating the table of contents. If linking a library
5628 # or program results in "error TOC overflow" add -mminimal-toc to
5629 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5630 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5634 hardcode_libdir_separator=':'
5635 if test "$GCC" = yes; then
5636 case $host_os in aix4.[012]|aix4.[012].*)
5637 collect2name=`${CC} -print-prog-name=collect2`
5638 if test -f "$collect2name" && \
5639 strings "$collect2name" | grep resolve_lib_name >/dev/null
5641 # We have reworked collect2
5644 # We have old collect2
5645 hardcode_direct=unsupported
5646 # It fails to find uninstalled libraries when the uninstalled
5647 # path is not listed in the libpath. Setting hardcode_minus_L
5648 # to unsupported forces relinking
5649 hardcode_minus_L=yes
5650 hardcode_libdir_flag_spec='-L$libdir'
5651 hardcode_libdir_separator=
5655 shared_flag='-shared'
5658 if test "$host_cpu" = ia64; then
5659 shared_flag='${wl}-G'
5661 if test "$aix_use_runtimelinking" = yes; then
5662 shared_flag='${wl}-G'
5664 shared_flag='${wl}-bM:SRE'
5669 # It seems that -bexpall can do strange things, so it is better to
5670 # generate a list of symbols to export.
5671 always_export_symbols=yes
5672 if test "$aix_use_runtimelinking" = yes; then
5673 # Warning - without using the other runtime loading flags (-brtl),
5674 # -berok will link without error, but may produce a broken library.
5675 allow_undefined_flag='-berok'
5676 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5677 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"
5679 if test "$host_cpu" = ia64; then
5680 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5681 allow_undefined_flag="-z nodefs"
5682 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"
5684 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5685 # Warning - without using the other run time loading flags,
5686 # -berok will link without error, but may produce a broken library.
5687 allow_undefined_flag='${wl}-berok'
5688 # This is a bit strange, but is similar to how AIX traditionally builds
5689 # it's shared libraries.
5690 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'
5696 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)'
5697 hardcode_libdir_flag_spec='-L$libdir'
5698 hardcode_minus_L=yes
5699 # see comment about different semantics on the GNU ld section
5703 cygwin* | mingw* | pw32*)
5704 # When not using gcc, we currently assume that we are using
5705 # Microsoft Visual C++.
5706 # hardcode_libdir_flag_spec is actually meaningless, as there is
5707 # no search path for DLLs.
5708 hardcode_libdir_flag_spec=' '
5709 allow_undefined_flag=unsupported
5710 # Tell ltmain to make .lib files, not .a files.
5712 # FIXME: Setting linknames here is a bad hack.
5713 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5714 # The linker will automatically build a .lib file if we build a DLL.
5715 old_archive_from_new_cmds='true'
5716 # FIXME: Should let the user specify the lib program.
5717 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5718 fix_srcfile_path='`cygpath -w "$srcfile"`'
5721 darwin* | rhapsody*)
5723 rhapsody* | darwin1.[012])
5724 allow_undefined_flag='-undefined suppress'
5727 allow_undefined_flag='-flat_namespace -undefined suppress'
5730 # FIXME: Relying on posixy $() will cause problems for
5731 # cross-compilation, but unfortunately the echo tests do not
5732 # yet detect zsh echo's removal of \ escapes.
5733 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'
5734 # We need to add '_' to the symbols in $export_symbols first
5735 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5737 hardcode_shlibpath_var=no
5738 whole_archive_flag_spec='-all_load $convenience'
5745 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5746 # support. Future versions do this automatically, but an explicit c++rt0.o
5747 # does not break anything, and helps significantly (at the cost of a little
5750 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5751 hardcode_libdir_flag_spec='-R$libdir'
5753 hardcode_shlibpath_var=no
5756 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5758 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5760 hardcode_minus_L=yes
5761 hardcode_shlibpath_var=no
5764 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5766 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5767 hardcode_libdir_flag_spec='-R$libdir'
5769 hardcode_shlibpath_var=no
5772 hpux9* | hpux10* | hpux11*)
5774 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' ;;
5775 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5777 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5778 hardcode_libdir_separator=:
5780 hardcode_minus_L=yes # Not in the search PATH, but as the default
5781 # location of the library.
5782 export_dynamic_flag_spec='${wl}-E'
5786 if test "$GCC" = yes; then
5787 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'
5789 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5791 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5792 hardcode_libdir_separator=:
5793 link_all_deplibs=yes
5797 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5798 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5800 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5802 hardcode_libdir_flag_spec='-R$libdir'
5804 hardcode_shlibpath_var=no
5808 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5810 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5811 hardcode_libdir_separator=:
5812 hardcode_shlibpath_var=no
5817 hardcode_shlibpath_var=no
5818 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5819 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5820 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5821 export_dynamic_flag_spec='${wl}-E'
5824 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5825 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5826 hardcode_libdir_flag_spec='-R$libdir'
5829 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5830 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5837 hardcode_libdir_flag_spec='-L$libdir'
5838 hardcode_minus_L=yes
5839 allow_undefined_flag=unsupported
5840 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'
5841 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5845 if test "$GCC" = yes; then
5846 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5847 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'
5849 allow_undefined_flag=' -expect_unresolved \*'
5850 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'
5852 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5853 hardcode_libdir_separator=:
5856 osf4* | osf5*) # as osf3* with the addition of -msym flag
5857 if test "$GCC" = yes; then
5858 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5859 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'
5860 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5862 allow_undefined_flag=' -expect_unresolved \*'
5863 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'
5864 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5865 $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'
5867 #Both c and cxx compiler support -rpath directly
5868 hardcode_libdir_flag_spec='-rpath $libdir'
5870 hardcode_libdir_separator=:
5874 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5875 hardcode_shlibpath_var=no
5876 runpath_var=LD_RUN_PATH
5877 hardcode_runpath_var=yes
5878 export_dynamic_flag_spec='${wl}-Bexport'
5882 # gcc --version < 3.0 without binutils cannot create self contained
5883 # shared libraries reliably, requiring libgcc.a to resolve some of
5884 # the object symbols generated in some cases. Libraries that use
5885 # assert need libgcc.a to resolve __eprintf, for example. Linking
5886 # a copy of libgcc.a into every shared library to guarantee resolving
5887 # such symbols causes other problems: According to Tim Van Holder
5888 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
5889 # (to the application) exception stack for one thing.
5890 no_undefined_flag=' -z defs'
5891 if test "$GCC" = yes; then
5892 case `$CC --version 2>/dev/null` in
5896 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5897 *** create self contained shared libraries on Solaris systems, without
5898 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
5899 *** -no-undefined support, which will at least allow you to build shared
5900 *** libraries. However, you may find that when you link such libraries
5901 *** into an application without using GCC, you have to manually add
5902 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
5903 *** upgrade to a newer version of GCC. Another option is to rebuild your
5904 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
5911 # $CC -shared without GNU ld will not create a library from C++
5912 # object files and a static libstdc++, better avoid it by now
5913 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5914 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5915 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5916 hardcode_libdir_flag_spec='-R$libdir'
5917 hardcode_shlibpath_var=no
5919 solaris2.[0-5] | solaris2.[0-5].*) ;;
5920 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5921 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5923 link_all_deplibs=yes
5927 if test "x$host_vendor" = xsequent; then
5928 # Use $CC to link under sequent, because it throws in some extra .o
5929 # files that make .init and .fini sections work.
5930 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5932 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5934 hardcode_libdir_flag_spec='-L$libdir'
5936 hardcode_minus_L=yes
5937 hardcode_shlibpath_var=no
5941 if test "x$host_vendor" = xsno; then
5942 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
5943 hardcode_direct=yes # is this really true???
5945 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5946 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5948 runpath_var='LD_RUN_PATH'
5949 hardcode_shlibpath_var=no
5953 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5954 hardcode_shlibpath_var=no
5955 export_dynamic_flag_spec='-Bexport'
5959 no_undefined_flag=' -z text'
5960 # $CC -shared without GNU ld will not create a library from C++
5961 # object files and a static libstdc++, better avoid it by now
5962 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5963 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5964 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5965 hardcode_libdir_flag_spec=
5966 hardcode_shlibpath_var=no
5967 runpath_var='LD_RUN_PATH'
5971 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5972 hardcode_libdir_flag_spec='-L$libdir'
5973 hardcode_shlibpath_var=no
5977 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5978 hardcode_libdir_flag_spec='-L$libdir'
5979 hardcode_shlibpath_var=no
5983 if test -d /usr/nec; then
5984 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5985 hardcode_shlibpath_var=no
5986 runpath_var=LD_RUN_PATH
5987 hardcode_runpath_var=yes
5993 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5996 hardcode_shlibpath_var=no
5997 hardcode_runpath_var=yes
5998 runpath_var=LD_RUN_PATH
6001 sysv5uw7* | unixware7*)
6002 no_undefined_flag='${wl}-z ${wl}text'
6003 if test "$GCC" = yes; then
6004 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6006 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6008 runpath_var='LD_RUN_PATH'
6009 hardcode_shlibpath_var=no
6017 echo "$ac_t""$ld_shlibs" 1>&6
6018 test "$ld_shlibs" = no && can_build_shared=no
6020 # Check hardcoding attributes.
6021 echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6
6022 echo "configure:6023: checking how to hardcode library paths into programs" >&5
6024 if test -n "$hardcode_libdir_flag_spec" || \
6025 test -n "$runpath_var"; then
6027 # We can hardcode non-existant directories.
6028 if test "$hardcode_direct" != no &&
6029 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6030 # have to relink, otherwise we might link with an installed library
6031 # when we should be linking with a yet-to-be-installed one
6032 ## test "$hardcode_shlibpath_var" != no &&
6033 test "$hardcode_minus_L" != no; then
6034 # Linking always hardcodes the temporary library directory.
6035 hardcode_action=relink
6037 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6038 hardcode_action=immediate
6041 # We cannot hardcode anything, or else we can only hardcode existing
6043 hardcode_action=unsupported
6045 echo "$ac_t""$hardcode_action" 1>&6
6049 echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6
6050 echo "configure:6051: checking whether stripping libraries is possible" >&5
6051 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6052 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6053 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6054 echo "$ac_t""yes" 1>&6
6056 echo "$ac_t""no" 1>&6
6059 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6060 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6062 # PORTME Fill in your ld.so characteristics
6063 echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6
6064 echo "configure:6065: checking dynamic linker characteristics" >&5
6066 libname_spec='lib$name'
6073 shlibpath_overrides_runpath=unknown
6075 dynamic_linker="$host_os ld.so"
6076 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6077 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6082 library_names_spec='${libname}${release}.so$versuffix $libname.a'
6083 shlibpath_var=LIBPATH
6085 # AIX has no versioning support, so we append a major version to the name.
6086 soname_spec='${libname}${release}.so$major'
6091 if test "$host_cpu" = ia64; then
6092 # AIX 5 supports IA64
6093 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6094 shlibpath_var=LD_LIBRARY_PATH
6096 # With GCC up to 2.95.x, collect2 would create an import file
6097 # for dependence libraries. The import file would start with
6098 # the line `#! .'. This would cause the generated library to
6099 # depend on `.', always an invalid library. This was fixed in
6100 # development snapshots of GCC prior to 3.0.
6102 aix4 | aix4.[01] | aix4.[01].*)
6103 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6105 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6112 # AIX (on Power*) has no versioning support, so currently we can
6113 # not hardcode correct soname into executable. Probably we can
6114 # add versioning support to collect2, so additional links can
6115 # be useful in future.
6116 if test "$aix_use_runtimelinking" = yes; then
6117 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6118 # instead of lib<name>.a to let people know that these are not
6119 # typical AIX shared libraries.
6120 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6122 # We preserve .a as extension for shared libraries through AIX4.2
6123 # and later when we are not doing run time linking.
6124 library_names_spec='${libname}${release}.a $libname.a'
6125 soname_spec='${libname}${release}.so$major'
6127 shlibpath_var=LIBPATH
6132 library_names_spec='$libname.ixlibrary $libname.a'
6133 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6134 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'
6138 library_names_spec='${libname}.so'
6139 dynamic_linker="$host_os ld.so"
6140 shlibpath_var=LIBRARY_PATH
6146 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6147 soname_spec='${libname}${release}.so$major'
6148 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6149 shlibpath_var=LD_LIBRARY_PATH
6150 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6151 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6152 export_dynamic_flag_spec=-rdynamic
6153 # the default ld.so.conf also contains /usr/contrib/lib and
6154 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6155 # libtool to hard-code these into programs
6158 cygwin* | mingw* | pw32*)
6159 version_type=windows
6162 case $GCC,$host_os in
6164 library_names_spec='$libname.dll.a'
6165 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6166 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6167 dldir=$destdir/`dirname \$dlpath`~
6168 test -d \$dldir || mkdir -p \$dldir~
6169 $install_prog .libs/$dlname \$dldir/$dlname'
6170 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6171 dlpath=$dir/\$dldll~
6175 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6176 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
6179 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6182 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6185 dynamic_linker='Win32 ld.exe'
6186 # FIXME: first we should search . and the directory the executable is in
6190 darwin* | rhapsody*)
6191 dynamic_linker="$host_os dyld"
6195 # FIXME: Relying on posixy $() will cause problems for
6196 # cross-compilation, but unfortunately the echo tests do not
6197 # yet detect zsh echo's removal of \ escapes.
6198 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)'
6199 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6200 shlibpath_overrides_runpath=yes
6201 shlibpath_var=DYLD_LIBRARY_PATH
6209 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6210 version_type=freebsd-$objformat
6211 case $version_type in
6213 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6218 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6222 shlibpath_var=LD_LIBRARY_PATH
6225 shlibpath_overrides_runpath=yes
6228 shlibpath_overrides_runpath=no
6229 hardcode_into_libs=yes
6238 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6239 soname_spec='${libname}${release}.so$major'
6240 shlibpath_var=LD_LIBRARY_PATH
6241 hardcode_into_libs=yes
6244 hpux9* | hpux10* | hpux11*)
6245 # Give a soname corresponding to the major version so that dld.sl refuses to
6246 # link against other versions.
6247 dynamic_linker="$host_os dld.sl"
6251 shlibpath_var=SHLIB_PATH
6252 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6253 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6254 soname_spec='${libname}${release}.sl$major'
6255 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6256 postinstall_cmds='chmod 555 $lib'
6263 soname_spec='${libname}${release}.so$major'
6264 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6270 case $LD in # libtool.m4 will add one of these switches to LD
6271 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6272 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6273 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6274 *) libsuff= shlibsuff= libmagic=never-match;;
6278 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6279 shlibpath_overrides_runpath=no
6280 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6281 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6284 # No shared lib support for Linux oldld, aout, or coff.
6285 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6289 # This must be Linux ELF.
6294 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6295 soname_spec='${libname}${release}.so$major'
6296 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6297 shlibpath_var=LD_LIBRARY_PATH
6298 shlibpath_overrides_runpath=no
6299 # This implies no fast_install, which is unacceptable.
6300 # Some rework will be needed to allow for fast_install
6301 # before this can be enabled.
6302 hardcode_into_libs=yes
6304 # We used to test for /lib/ld.so.1 and disable shared libraries on
6305 # powerpc, because MkLinux only supported shared libraries with the
6306 # GNU dynamic linker. Since this was broken with cross compilers,
6307 # most powerpc-linux boxes support dynamic linking these days and
6308 # people can always --disable-shared, the test was removed, and we
6309 # assume the GNU/Linux dynamic linker is in use.
6310 dynamic_linker='GNU/Linux ld.so'
6317 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6318 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6319 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6320 dynamic_linker='NetBSD (a.out) ld.so'
6322 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6323 soname_spec='${libname}${release}.so$major'
6324 dynamic_linker='NetBSD ld.elf_so'
6326 shlibpath_var=LD_LIBRARY_PATH
6327 shlibpath_overrides_runpath=yes
6328 hardcode_into_libs=yes
6333 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6334 shlibpath_var=LD_LIBRARY_PATH
6335 shlibpath_overrides_runpath=yes
6342 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6344 openbsd2.[89] | openbsd2.[89].*)
6345 shlibpath_overrides_runpath=no
6348 shlibpath_overrides_runpath=yes
6352 shlibpath_overrides_runpath=yes
6354 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6355 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6356 shlibpath_var=LD_LIBRARY_PATH
6360 libname_spec='$name'
6362 library_names_spec='$libname.dll $libname.a'
6363 dynamic_linker='OS/2 ld.exe'
6364 shlibpath_var=LIBPATH
6367 osf3* | osf4* | osf5*)
6370 soname_spec='${libname}${release}.so'
6371 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6372 shlibpath_var=LD_LIBRARY_PATH
6373 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6374 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6379 soname_spec='${libname}${release}.so$major'
6380 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6381 shlibpath_var=LD_LIBRARY_PATH
6388 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6389 soname_spec='${libname}${release}.so$major'
6390 shlibpath_var=LD_LIBRARY_PATH
6391 shlibpath_overrides_runpath=yes
6392 hardcode_into_libs=yes
6393 # ldd complains unless libraries are executable
6394 postinstall_cmds='chmod +x $lib'
6399 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6400 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6401 shlibpath_var=LD_LIBRARY_PATH
6402 shlibpath_overrides_runpath=yes
6403 if test "$with_gnu_ld" = yes; then
6409 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6411 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6412 soname_spec='${libname}${release}.so$major'
6413 shlibpath_var=LD_LIBRARY_PATH
6414 case $host_vendor in
6416 shlibpath_overrides_runpath=no
6421 shlibpath_overrides_runpath=no
6422 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6429 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6430 soname_spec='${libname}${release}.so$major'
6431 shlibpath_var=LD_LIBRARY_PATH
6438 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6439 soname_spec='${libname}${release}.so$major'
6440 shlibpath_var=LD_LIBRARY_PATH
6444 if test -d /usr/nec ;then
6446 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6447 soname_spec='$libname.so.$major'
6448 shlibpath_var=LD_LIBRARY_PATH
6456 echo "$ac_t""$dynamic_linker" 1>&6
6457 test "$dynamic_linker" = no && can_build_shared=no
6459 # Report the final consequences.
6460 echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6
6461 echo "configure:6462: checking if libtool supports shared libraries" >&5
6462 echo "$ac_t""$can_build_shared" 1>&6
6464 echo $ac_n "checking whether to build shared libraries""... $ac_c" 1>&6
6465 echo "configure:6466: checking whether to build shared libraries" >&5
6466 test "$can_build_shared" = "no" && enable_shared=no
6468 # On AIX, shared libraries and static libraries use the same namespace, and
6469 # are all built from PIC.
6472 test "$enable_shared" = yes && enable_static=no
6473 if test -n "$RANLIB"; then
6474 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6475 postinstall_cmds='$RANLIB $lib'
6480 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6481 test "$enable_shared" = yes && enable_static=no
6485 echo "$ac_t""$enable_shared" 1>&6
6487 echo $ac_n "checking whether to build static libraries""... $ac_c" 1>&6
6488 echo "configure:6489: checking whether to build static libraries" >&5
6489 # Make sure either enable_shared or enable_static is yes.
6490 test "$enable_shared" = yes || enable_static=yes
6491 echo "$ac_t""$enable_static" 1>&6
6493 if test "$hardcode_action" = relink; then
6494 # Fast installation is not supported
6495 enable_fast_install=no
6496 elif test "$shlibpath_overrides_runpath" = yes ||
6497 test "$enable_shared" = no; then
6498 # Fast installation is not necessary
6499 enable_fast_install=needless
6502 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6503 if test "$GCC" = yes; then
6504 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6507 if test "x$enable_dlopen" != xyes; then
6508 enable_dlopen=unknown
6509 enable_dlopen_self=unknown
6510 enable_dlopen_self_static=unknown
6517 lt_cv_dlopen="load_add_on"
6519 lt_cv_dlopen_self=yes
6522 cygwin* | mingw* | pw32*)
6523 lt_cv_dlopen="LoadLibrary"
6528 echo $ac_n "checking for shl_load""... $ac_c" 1>&6
6529 echo "configure:6530: checking for shl_load" >&5
6530 if eval "test \"\${ac_cv_func_shl_load+set}\" = set"; then
6531 echo $ac_n "(cached) $ac_c" 1>&6
6533 cat > conftest.$ac_ext <<EOF
6534 #line 6535 "configure"
6535 #include "confdefs.h"
6536 /* System header to define __stub macros and hopefully few prototypes,
6537 which can conflict with char shl_load(); below. */
6539 /* Override any gcc2 internal prototype to avoid an error. */
6540 /* We use char because int might match the return type of a gcc2
6541 builtin and then its argument prototype would still apply. */
6547 /* The GNU C library defines this for functions which it implements
6548 to always fail with ENOSYS. Some functions are actually named
6549 something starting with __ and the normal name is an alias. */
6550 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6558 if { (eval echo configure:6559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6560 eval "ac_cv_func_shl_load=yes"
6562 echo "configure: failed program was:" >&5
6563 cat conftest.$ac_ext >&5
6565 eval "ac_cv_func_shl_load=no"
6570 if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
6571 echo "$ac_t""yes" 1>&6
6572 lt_cv_dlopen="shl_load"
6574 echo "$ac_t""no" 1>&6
6575 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
6576 echo "configure:6577: checking for shl_load in -ldld" >&5
6577 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-:%__p__%'`
6578 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6579 echo $ac_n "(cached) $ac_c" 1>&6
6581 ac_save_LIBS="$LIBS"
6583 cat > conftest.$ac_ext <<EOF
6584 #line 6585 "configure"
6585 #include "confdefs.h"
6586 /* Override any gcc2 internal prototype to avoid an error. */
6587 /* We use char because int might match the return type of a gcc2
6588 builtin and then its argument prototype would still apply. */
6595 if { (eval echo configure:6596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6597 eval "ac_cv_lib_$ac_lib_var=yes"
6599 echo "configure: failed program was:" >&5
6600 cat conftest.$ac_ext >&5
6602 eval "ac_cv_lib_$ac_lib_var=no"
6605 LIBS="$ac_save_LIBS"
6608 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6609 echo "$ac_t""yes" 1>&6
6610 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6612 echo "$ac_t""no" 1>&6
6613 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
6614 echo "configure:6615: checking for dlopen" >&5
6615 if eval "test \"\${ac_cv_func_dlopen+set}\" = set"; then
6616 echo $ac_n "(cached) $ac_c" 1>&6
6618 cat > conftest.$ac_ext <<EOF
6619 #line 6620 "configure"
6620 #include "confdefs.h"
6621 /* System header to define __stub macros and hopefully few prototypes,
6622 which can conflict with char dlopen(); below. */
6624 /* Override any gcc2 internal prototype to avoid an error. */
6625 /* We use char because int might match the return type of a gcc2
6626 builtin and then its argument prototype would still apply. */
6632 /* The GNU C library defines this for functions which it implements
6633 to always fail with ENOSYS. Some functions are actually named
6634 something starting with __ and the normal name is an alias. */
6635 #if defined (__stub_dlopen) || defined (__stub___dlopen)
6643 if { (eval echo configure:6644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6645 eval "ac_cv_func_dlopen=yes"
6647 echo "configure: failed program was:" >&5
6648 cat conftest.$ac_ext >&5
6650 eval "ac_cv_func_dlopen=no"
6655 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
6656 echo "$ac_t""yes" 1>&6
6657 lt_cv_dlopen="dlopen"
6659 echo "$ac_t""no" 1>&6
6660 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
6661 echo "configure:6662: checking for dlopen in -ldl" >&5
6662 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-:%__p__%'`
6663 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6664 echo $ac_n "(cached) $ac_c" 1>&6
6666 ac_save_LIBS="$LIBS"
6668 cat > conftest.$ac_ext <<EOF
6669 #line 6670 "configure"
6670 #include "confdefs.h"
6671 /* Override any gcc2 internal prototype to avoid an error. */
6672 /* We use char because int might match the return type of a gcc2
6673 builtin and then its argument prototype would still apply. */
6680 if { (eval echo configure:6681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6682 eval "ac_cv_lib_$ac_lib_var=yes"
6684 echo "configure: failed program was:" >&5
6685 cat conftest.$ac_ext >&5
6687 eval "ac_cv_lib_$ac_lib_var=no"
6690 LIBS="$ac_save_LIBS"
6693 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6694 echo "$ac_t""yes" 1>&6
6695 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6697 echo "$ac_t""no" 1>&6
6698 echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
6699 echo "configure:6700: checking for dlopen in -lsvld" >&5
6700 ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-:%__p__%'`
6701 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6702 echo $ac_n "(cached) $ac_c" 1>&6
6704 ac_save_LIBS="$LIBS"
6706 cat > conftest.$ac_ext <<EOF
6707 #line 6708 "configure"
6708 #include "confdefs.h"
6709 /* Override any gcc2 internal prototype to avoid an error. */
6710 /* We use char because int might match the return type of a gcc2
6711 builtin and then its argument prototype would still apply. */
6718 if { (eval echo configure:6719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6720 eval "ac_cv_lib_$ac_lib_var=yes"
6722 echo "configure: failed program was:" >&5
6723 cat conftest.$ac_ext >&5
6725 eval "ac_cv_lib_$ac_lib_var=no"
6728 LIBS="$ac_save_LIBS"
6731 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6732 echo "$ac_t""yes" 1>&6
6733 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6735 echo "$ac_t""no" 1>&6
6736 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
6737 echo "configure:6738: checking for dld_link in -ldld" >&5
6738 ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-:%__p__%'`
6739 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6740 echo $ac_n "(cached) $ac_c" 1>&6
6742 ac_save_LIBS="$LIBS"
6744 cat > conftest.$ac_ext <<EOF
6745 #line 6746 "configure"
6746 #include "confdefs.h"
6747 /* Override any gcc2 internal prototype to avoid an error. */
6748 /* We use char because int might match the return type of a gcc2
6749 builtin and then its argument prototype would still apply. */
6756 if { (eval echo configure:6757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6758 eval "ac_cv_lib_$ac_lib_var=yes"
6760 echo "configure: failed program was:" >&5
6761 cat conftest.$ac_ext >&5
6763 eval "ac_cv_lib_$ac_lib_var=no"
6766 LIBS="$ac_save_LIBS"
6769 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6770 echo "$ac_t""yes" 1>&6
6771 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6773 echo "$ac_t""no" 1>&6
6794 if test "x$lt_cv_dlopen" != xno; then
6800 case $lt_cv_dlopen in
6802 save_CPPFLAGS="$CPPFLAGS"
6803 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6805 save_LDFLAGS="$LDFLAGS"
6806 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6809 LIBS="$lt_cv_dlopen_libs $LIBS"
6811 echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
6812 echo "configure:6813: checking whether a program can dlopen itself" >&5
6813 if eval "test \"\${lt_cv_dlopen_self+set}\" = set"; then
6814 echo $ac_n "(cached) $ac_c" 1>&6
6816 if test "$cross_compiling" = yes; then :
6817 lt_cv_dlopen_self=cross
6819 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6820 lt_status=$lt_dlunknown
6821 cat > conftest.$ac_ext <<EOF
6822 #line 6823 "configure"
6823 #include "confdefs.h"
6832 # define LT_DLGLOBAL RTLD_GLOBAL
6835 # define LT_DLGLOBAL DL_GLOBAL
6837 # define LT_DLGLOBAL 0
6841 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6842 find out it does not work in some platform. */
6843 #ifndef LT_DLLAZY_OR_NOW
6845 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6848 # define LT_DLLAZY_OR_NOW DL_LAZY
6851 # define LT_DLLAZY_OR_NOW RTLD_NOW
6854 # define LT_DLLAZY_OR_NOW DL_NOW
6856 # define LT_DLLAZY_OR_NOW 0
6864 extern "C" void exit (int);
6867 void fnord() { int i=42;}
6870 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6871 int status = $lt_dlunknown;
6875 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6876 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6877 /* dlclose (self); */
6883 if { (eval echo configure:6884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
6884 (./conftest; exit; ) 2>/dev/null
6887 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
6888 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
6889 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
6892 # compilation failed
6893 lt_cv_dlopen_self=no
6901 echo "$ac_t""$lt_cv_dlopen_self" 1>&6
6903 if test "x$lt_cv_dlopen_self" = xyes; then
6904 LDFLAGS="$LDFLAGS $link_static_flag"
6905 echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
6906 echo "configure:6907: checking whether a statically linked program can dlopen itself" >&5
6907 if eval "test \"\${lt_cv_dlopen_self_static+set}\" = set"; then
6908 echo $ac_n "(cached) $ac_c" 1>&6
6910 if test "$cross_compiling" = yes; then :
6911 lt_cv_dlopen_self_static=cross
6913 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6914 lt_status=$lt_dlunknown
6915 cat > conftest.$ac_ext <<EOF
6916 #line 6917 "configure"
6917 #include "confdefs.h"
6926 # define LT_DLGLOBAL RTLD_GLOBAL
6929 # define LT_DLGLOBAL DL_GLOBAL
6931 # define LT_DLGLOBAL 0
6935 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6936 find out it does not work in some platform. */
6937 #ifndef LT_DLLAZY_OR_NOW
6939 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6942 # define LT_DLLAZY_OR_NOW DL_LAZY
6945 # define LT_DLLAZY_OR_NOW RTLD_NOW
6948 # define LT_DLLAZY_OR_NOW DL_NOW
6950 # define LT_DLLAZY_OR_NOW 0
6958 extern "C" void exit (int);
6961 void fnord() { int i=42;}
6964 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6965 int status = $lt_dlunknown;
6969 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6970 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6971 /* dlclose (self); */
6977 if { (eval echo configure:6978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
6978 (./conftest; exit; ) 2>/dev/null
6981 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
6982 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
6983 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
6986 # compilation failed
6987 lt_cv_dlopen_self_static=no
6995 echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6
6998 CPPFLAGS="$save_CPPFLAGS"
6999 LDFLAGS="$save_LDFLAGS"
7004 case $lt_cv_dlopen_self in
7005 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7006 *) enable_dlopen_self=unknown ;;
7009 case $lt_cv_dlopen_self_static in
7010 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7011 *) enable_dlopen_self_static=unknown ;;
7016 if test "$enable_shared" = yes && test "$GCC" = yes; then
7017 case $archive_cmds in
7019 # FIXME: we may have to deal with multi-command sequences.
7022 # Test whether the compiler implicitly links with -lc since on some
7023 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7024 # to ld, don't add -lc before -lgcc.
7025 echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6
7026 echo "configure:7027: checking whether -lc should be explicitly linked in" >&5
7027 if eval "test \"\${lt_cv_archive_cmds_need_lc+set}\" = set"; then
7028 echo $ac_n "(cached) $ac_c" 1>&6
7031 echo 'static int dummy;' > conftest.$ac_ext
7033 if { (eval echo configure:7034: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7036 libobjs=conftest.$ac_objext
7038 wl=$lt_cv_prog_cc_wl
7044 save_allow_undefined_flag=$allow_undefined_flag
7045 allow_undefined_flag=
7046 if { (eval echo configure:7047: \"$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; }
7048 lt_cv_archive_cmds_need_lc=no
7050 lt_cv_archive_cmds_need_lc=yes
7052 allow_undefined_flag=$save_allow_undefined_flag
7054 cat conftest.err 1>&5
7058 echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6
7062 need_lc=${lt_cv_archive_cmds_need_lc-yes}
7064 # The second clause should only fire when bootstrapping the
7065 # libtool distribution, otherwise you forgot to ship ltmain.sh
7066 # with your package, and you will get complaints that there are
7067 # no rules to generate ltmain.sh.
7068 if test -f "$ltmain"; then
7071 # If there is no Makefile yet, we rely on a make rule to execute
7072 # `config.status --recheck' to rerun these tests and create the
7073 # libtool script then.
7074 test -f Makefile && make "$ltmain"
7077 if test -f "$ltmain"; then
7078 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7081 echo creating $ofile
7083 # Now quote all the things that may contain metacharacters while being
7084 # careful not to overquote the AC_SUBSTed values. We take copies of the
7085 # variables and quote the copies for generation of the libtool script.
7086 for var in echo old_CC old_CFLAGS \
7087 AR AR_FLAGS CC LD LN_S NM SHELL \
7088 reload_flag reload_cmds wl \
7089 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7090 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7091 library_names_spec soname_spec \
7092 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7093 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7094 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7095 old_striplib striplib file_magic_cmd export_symbols_cmds \
7096 deplibs_check_method allow_undefined_flag no_undefined_flag \
7097 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7098 global_symbol_to_c_name_address \
7099 hardcode_libdir_flag_spec hardcode_libdir_separator \
7100 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7101 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7104 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7105 old_postinstall_cmds | old_postuninstall_cmds | \
7106 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7107 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7108 postinstall_cmds | postuninstall_cmds | \
7109 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7110 # Double-quote double-evaled strings.
7111 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7114 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7119 cat <<__EOF__ > "${ofile}T"
7122 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7123 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7124 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7126 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7127 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7129 # This program is free software; you can redistribute it and/or modify
7130 # it under the terms of the GNU General Public License as published by
7131 # the Free Software Foundation; either version 2 of the License, or
7132 # (at your option) any later version.
7134 # This program is distributed in the hope that it will be useful, but
7135 # WITHOUT ANY WARRANTY; without even the implied warranty of
7136 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7137 # General Public License for more details.
7139 # You should have received a copy of the GNU General Public License
7140 # along with this program; if not, write to the Free Software
7141 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7143 # As a special exception to the GNU General Public License, if you
7144 # distribute this file as part of a program that contains a
7145 # configuration script generated by Autoconf, you may include it under
7146 # the same distribution terms that you use for the rest of that program.
7148 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7149 Xsed="sed -e s/^X//"
7151 # The HP-UX ksh and POSIX shell print the target directory to stdout
7153 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7155 # ### BEGIN LIBTOOL CONFIG
7157 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7159 # Shell to use when invoking shell scripts.
7162 # Whether or not to build shared libraries.
7163 build_libtool_libs=$enable_shared
7165 # Whether or not to build static libraries.
7166 build_old_libs=$enable_static
7168 # Whether or not to add -lc for building shared libraries.
7169 build_libtool_need_lc=$need_lc
7171 # Whether or not to optimize for fast installation.
7172 fast_install=$enable_fast_install
7175 host_alias=$host_alias
7178 # An echo program that does not interpret backslashes.
7183 AR_FLAGS=$lt_AR_FLAGS
7185 # The default C compiler.
7188 # Is the compiler the GNU C compiler?
7191 # The linker used to build libraries.
7194 # Whether we need hard or soft links.
7197 # A BSD-compatible nm program.
7200 # A symbol stripping program
7203 # Used to examine libraries when file_magic_cmd begins "file"
7204 MAGIC_CMD=$MAGIC_CMD
7206 # Used on cygwin: DLL creation program.
7209 # Used on cygwin: object dumper.
7212 # Used on cygwin: assembler.
7215 # The name of the directory that contains temporary libtool files.
7218 # How to create reloadable object files.
7219 reload_flag=$lt_reload_flag
7220 reload_cmds=$lt_reload_cmds
7222 # How to pass a linker flag through the compiler.
7225 # Object file suffix (normally "o").
7228 # Old archive suffix (normally "a").
7231 # Executable file suffix (normally "").
7234 # Additional compiler flags for building library objects.
7235 pic_flag=$lt_pic_flag
7238 # Does compiler simultaneously support -c and -o options?
7239 compiler_c_o=$lt_compiler_c_o
7241 # Can we write directly to a .lo ?
7242 compiler_o_lo=$lt_compiler_o_lo
7244 # Must we lock files when doing compilation ?
7245 need_locks=$lt_need_locks
7247 # Do we need the lib prefix for modules?
7248 need_lib_prefix=$need_lib_prefix
7250 # Do we need a version for libraries?
7251 need_version=$need_version
7253 # Whether dlopen is supported.
7254 dlopen_support=$enable_dlopen
7256 # Whether dlopen of programs is supported.
7257 dlopen_self=$enable_dlopen_self
7259 # Whether dlopen of statically linked programs is supported.
7260 dlopen_self_static=$enable_dlopen_self_static
7262 # Compiler flag to prevent dynamic linking.
7263 link_static_flag=$lt_link_static_flag
7265 # Compiler flag to turn off builtin functions.
7266 no_builtin_flag=$lt_no_builtin_flag
7268 # Compiler flag to allow reflexive dlopens.
7269 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7271 # Compiler flag to generate shared objects directly from archives.
7272 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7274 # Compiler flag to generate thread-safe objects.
7275 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7277 # Library versioning type.
7278 version_type=$version_type
7280 # Format of library name prefix.
7281 libname_spec=$lt_libname_spec
7283 # List of archive names. First name is the real one, the rest are links.
7284 # The last name is the one that the linker finds with -lNAME.
7285 library_names_spec=$lt_library_names_spec
7287 # The coded name of the library, if different from the real name.
7288 soname_spec=$lt_soname_spec
7290 # Commands used to build and install an old-style archive.
7292 old_archive_cmds=$lt_old_archive_cmds
7293 old_postinstall_cmds=$lt_old_postinstall_cmds
7294 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7296 # Create an old-style archive from a shared archive.
7297 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7299 # Create a temporary old-style archive to link instead of a shared archive.
7300 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7302 # Commands used to build and install a shared archive.
7303 archive_cmds=$lt_archive_cmds
7304 archive_expsym_cmds=$lt_archive_expsym_cmds
7305 postinstall_cmds=$lt_postinstall_cmds
7306 postuninstall_cmds=$lt_postuninstall_cmds
7308 # Commands to strip libraries.
7309 old_striplib=$lt_old_striplib
7310 striplib=$lt_striplib
7312 # Method to check whether dependent libraries are shared objects.
7313 deplibs_check_method=$lt_deplibs_check_method
7315 # Command to use when deplibs_check_method == file_magic.
7316 file_magic_cmd=$lt_file_magic_cmd
7318 # Flag that allows shared libraries with undefined symbols to be built.
7319 allow_undefined_flag=$lt_allow_undefined_flag
7321 # Flag that forces no undefined symbols.
7322 no_undefined_flag=$lt_no_undefined_flag
7324 # Commands used to finish a libtool library installation in a directory.
7325 finish_cmds=$lt_finish_cmds
7327 # Same as above, but a single script fragment to be evaled but not shown.
7328 finish_eval=$lt_finish_eval
7330 # Take the output of nm and produce a listing of raw symbols and C names.
7331 global_symbol_pipe=$lt_global_symbol_pipe
7333 # Transform the output of nm in a proper C declaration
7334 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7336 # Transform the output of nm in a C name address pair
7337 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7339 # This is the shared library runtime path variable.
7340 runpath_var=$runpath_var
7342 # This is the shared library path variable.
7343 shlibpath_var=$shlibpath_var
7345 # Is shlibpath searched before the hard-coded library search path?
7346 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7348 # How to hardcode a shared library path into an executable.
7349 hardcode_action=$hardcode_action
7351 # Whether we should hardcode library paths into libraries.
7352 hardcode_into_libs=$hardcode_into_libs
7354 # Flag to hardcode \$libdir into a binary during linking.
7355 # This must work even if \$libdir does not exist.
7356 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7358 # Whether we need a single -rpath flag with a separated argument.
7359 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7361 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7363 hardcode_direct=$hardcode_direct
7365 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7367 hardcode_minus_L=$hardcode_minus_L
7369 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7370 # the resulting binary.
7371 hardcode_shlibpath_var=$hardcode_shlibpath_var
7373 # Variables whose values should be saved in libtool wrapper scripts and
7374 # restored at relink time.
7375 variables_saved_for_relink="$variables_saved_for_relink"
7377 # Whether libtool must link a program against all its dependency libraries.
7378 link_all_deplibs=$link_all_deplibs
7380 # Compile-time system search path for libraries
7381 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7383 # Run-time system search path for libraries
7384 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7386 # Fix the shell variable \$srcfile for the compiler.
7387 fix_srcfile_path="$fix_srcfile_path"
7389 # Set to yes if exported symbols are required.
7390 always_export_symbols=$always_export_symbols
7392 # The commands to list exported symbols.
7393 export_symbols_cmds=$lt_export_symbols_cmds
7395 # The commands to extract the exported symbol list from a shared archive.
7396 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7398 # Symbols that should not be listed in the preloaded symbols.
7399 exclude_expsyms=$lt_exclude_expsyms
7401 # Symbols that must always be exported.
7402 include_expsyms=$lt_include_expsyms
7404 # ### END LIBTOOL CONFIG
7410 cat <<\EOF >> "${ofile}T"
7412 # AIX sometimes has problems with the GCC collect2 program. For some
7413 # reason, if we set the COLLECT_NAMES environment variable, the problems
7414 # vanish in a puff of smoke.
7415 if test "X${COLLECT_NAMES+set}" != Xset; then
7417 export COLLECT_NAMES
7424 cygwin* | mingw* | pw32* | os2*)
7425 cat <<'EOF' >> "${ofile}T"
7426 # This is a source program that is used to create dlls on Windows
7427 # Don't remove nor modify the starting and closing comments
7428 # /* ltdll.c starts here */
7429 # #define WIN32_LEAN_AND_MEAN
7430 # #include <windows.h>
7431 # #undef WIN32_LEAN_AND_MEAN
7432 # #include <stdio.h>
7434 # #ifndef __CYGWIN__
7435 # # ifdef __CYGWIN32__
7436 # # define __CYGWIN__ __CYGWIN32__
7440 # #ifdef __cplusplus
7443 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7444 # #ifdef __cplusplus
7449 # #include <cygwin/cygwin_dll.h>
7450 # DECLARE_CYGWIN_DLL( DllMain );
7452 # HINSTANCE __hDllInstance_base;
7455 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7457 # __hDllInstance_base = hInst;
7460 # /* ltdll.c ends here */
7461 # This is a source program that is used to create import libraries
7462 # on Windows for dlls which lack them. Don't remove nor modify the
7463 # starting and closing comments
7464 # /* impgen.c starts here */
7465 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7467 # This file is part of GNU libtool.
7469 # This program is free software; you can redistribute it and/or modify
7470 # it under the terms of the GNU General Public License as published by
7471 # the Free Software Foundation; either version 2 of the License, or
7472 # (at your option) any later version.
7474 # This program is distributed in the hope that it will be useful,
7475 # but WITHOUT ANY WARRANTY; without even the implied warranty of
7476 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7477 # GNU General Public License for more details.
7479 # You should have received a copy of the GNU General Public License
7480 # along with this program; if not, write to the Free Software
7481 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7484 # #include <stdio.h> /* for printf() */
7485 # #include <unistd.h> /* for open(), lseek(), read() */
7486 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7487 # #include <string.h> /* for strdup() */
7489 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
7491 # #define O_BINARY 0
7494 # static unsigned int
7495 # pe_get16 (fd, offset)
7499 # unsigned char b[2];
7500 # lseek (fd, offset, SEEK_SET);
7502 # return b[0] + (b[1]<<8);
7505 # static unsigned int
7506 # pe_get32 (fd, offset)
7510 # unsigned char b[4];
7511 # lseek (fd, offset, SEEK_SET);
7513 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7516 # static unsigned int
7520 # unsigned char *b = ptr;
7521 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7530 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7531 # unsigned long export_rva, export_size, nsections, secptr, expptr;
7532 # unsigned long name_rvas, nexp;
7533 # unsigned char *expdata, *erva;
7534 # char *filename, *dll_name;
7536 # filename = argv[1];
7538 # dll = open(filename, O_RDONLY|O_BINARY);
7542 # dll_name = filename;
7544 # for (i=0; filename[i]; i++)
7545 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7546 # dll_name = filename + i +1;
7548 # pe_header_offset = pe_get32 (dll, 0x3c);
7549 # opthdr_ofs = pe_header_offset + 4 + 20;
7550 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
7552 # if (num_entries < 1) /* no exports */
7555 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
7556 # export_size = pe_get32 (dll, opthdr_ofs + 100);
7557 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7558 # secptr = (pe_header_offset + 4 + 20 +
7559 # pe_get16 (dll, pe_header_offset + 4 + 16));
7562 # for (i = 0; i < nsections; i++)
7565 # unsigned long secptr1 = secptr + 40 * i;
7566 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7567 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7568 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7569 # lseek(dll, secptr1, SEEK_SET);
7570 # read(dll, sname, 8);
7571 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
7573 # expptr = fptr + (export_rva - vaddr);
7574 # if (export_rva + export_size > vaddr + vsize)
7575 # export_size = vsize - (export_rva - vaddr);
7580 # expdata = (unsigned char*)malloc(export_size);
7581 # lseek (dll, expptr, SEEK_SET);
7582 # read (dll, expdata, export_size);
7583 # erva = expdata - export_rva;
7585 # nexp = pe_as32 (expdata+24);
7586 # name_rvas = pe_as32 (expdata+32);
7588 # printf ("EXPORTS\n");
7589 # for (i = 0; i<nexp; i++)
7591 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7592 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7597 # /* impgen.c ends here */
7603 # We use sed instead of cat because bash on DJGPP gets confused if
7604 # if finds mixed CR/LF and LF-only lines. Since sed operates in
7605 # text mode, it properly converts lines to CR/LF. This bash problem
7606 # is reportedly fixed, but why not run on old versions too?
7607 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7609 mv -f "${ofile}T" "$ofile" || \
7610 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7618 # This can be used to rebuild libtool when needed
7619 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7621 # Always use our own libtool.
7622 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7624 # Prevent multiple expansion
7628 for ac_prog in mawk gawk nawk awk
7630 # Extract the first word of "$ac_prog", so it can be a program name with args.
7631 set dummy $ac_prog; ac_word=$2
7632 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7633 echo "configure:7634: checking for $ac_word" >&5
7634 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
7635 echo $ac_n "(cached) $ac_c" 1>&6
7637 if test -n "$AWK"; then
7638 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7640 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7642 for ac_dir in $ac_dummy; do
7643 test -z "$ac_dir" && ac_dir=.
7644 if test -f $ac_dir/$ac_word; then
7645 ac_cv_prog_AWK="$ac_prog"
7652 AWK="$ac_cv_prog_AWK"
7653 if test -n "$AWK"; then
7654 echo "$ac_t""$AWK" 1>&6
7656 echo "$ac_t""no" 1>&6
7659 test -n "$AWK" && break
7662 # test for ln hardlink support
7663 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
7664 echo "configure:7665: checking whether ln works" >&5
7665 if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then
7666 echo $ac_n "(cached) $ac_c" 1>&6
7668 rm -f conftest.src conftest.dst
7669 echo "conftest" > conftest.src
7670 if ln conftest.src conftest.dst 2>/dev/null
7672 ol_cv_prog_LN_H="ln"
7674 ol_cv_prog_LN_H="cp"
7676 rm -f conftest.src conftest.dst
7679 LN_H="$ol_cv_prog_LN_H"
7680 if test "$ol_cv_prog_LN_H" = "ln"; then
7681 echo "$ac_t""yes" 1>&6
7683 echo "$ac_t""no" 1>&6
7686 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
7687 echo "configure:7688: checking whether ln -s works" >&5
7688 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
7689 echo $ac_n "(cached) $ac_c" 1>&6
7692 if ln -s X conftestdata 2>/dev/null
7695 ac_cv_prog_LN_S="ln -s"
7700 LN_S="$ac_cv_prog_LN_S"
7701 if test "$ac_cv_prog_LN_S" = "ln -s"; then
7702 echo "$ac_t""yes" 1>&6
7704 echo "$ac_t""no" 1>&6
7708 # Extract the first word of "sendmail", so it can be a program name with args.
7709 set dummy sendmail; ac_word=$2
7710 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7711 echo "configure:7712: checking for $ac_word" >&5
7712 if eval "test \"\${ac_cv_path_SENDMAIL+set}\" = set"; then
7713 echo $ac_n "(cached) $ac_c" 1>&6
7717 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
7720 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
7723 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7724 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
7725 for ac_dir in $ac_dummy; do
7726 test -z "$ac_dir" && ac_dir=.
7727 if test -f $ac_dir/$ac_word; then
7728 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
7733 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
7737 SENDMAIL="$ac_cv_path_SENDMAIL"
7738 if test -n "$SENDMAIL"; then
7739 echo "$ac_t""$SENDMAIL" 1>&6
7741 echo "$ac_t""no" 1>&6
7744 # Extract the first word of "vi", so it can be a program name with args.
7745 set dummy vi; ac_word=$2
7746 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7747 echo "configure:7748: checking for $ac_word" >&5
7748 if eval "test \"\${ac_cv_path_EDITOR+set}\" = set"; then
7749 echo $ac_n "(cached) $ac_c" 1>&6
7753 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
7756 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
7759 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7760 ac_dummy="$PATH:/usr/ucb"
7761 for ac_dir in $ac_dummy; do
7762 test -z "$ac_dir" && ac_dir=.
7763 if test -f $ac_dir/$ac_word; then
7764 ac_cv_path_EDITOR="$ac_dir/$ac_word"
7769 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
7773 EDITOR="$ac_cv_path_EDITOR"
7774 if test -n "$EDITOR"; then
7775 echo "$ac_t""$EDITOR" 1>&6
7777 echo "$ac_t""no" 1>&6
7780 # Extract the first word of "finger", so it can be a program name with args.
7781 set dummy finger; ac_word=$2
7782 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7783 echo "configure:7784: checking for $ac_word" >&5
7784 if eval "test \"\${ac_cv_path_FINGER+set}\" = set"; then
7785 echo $ac_n "(cached) $ac_c" 1>&6
7789 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
7792 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a dos path.
7795 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7796 ac_dummy="$PATH:/usr/ucb"
7797 for ac_dir in $ac_dummy; do
7798 test -z "$ac_dir" && ac_dir=.
7799 if test -f $ac_dir/$ac_word; then
7800 ac_cv_path_FINGER="$ac_dir/$ac_word"
7805 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
7809 FINGER="$ac_cv_path_FINGER"
7810 if test -n "$FINGER"; then
7811 echo "$ac_t""$FINGER" 1>&6
7813 echo "$ac_t""no" 1>&6
7818 if test $ol_enable_perl != no ; then
7819 # Extract the first word of "perl", so it can be a program name with args.
7820 set dummy perl; ac_word=$2
7821 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7822 echo "configure:7823: checking for $ac_word" >&5
7823 if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then
7824 echo $ac_n "(cached) $ac_c" 1>&6
7828 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
7831 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
7834 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7836 for ac_dir in $ac_dummy; do
7837 test -z "$ac_dir" && ac_dir=.
7838 if test -f $ac_dir/$ac_word; then
7839 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
7844 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
7848 PERLBIN="$ac_cv_path_PERLBIN"
7849 if test -n "$PERLBIN"; then
7850 echo "$ac_t""$PERLBIN" 1>&6
7852 echo "$ac_t""no" 1>&6
7856 if test "no$PERLBIN" = "no" ; then
7857 if test $ol_enable_perl = yes ; then
7858 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
7862 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
7863 if test x"$ol_with_perl_module" = "xstatic" ; then
7864 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
7866 MOD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
7872 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
7873 echo "configure:7874: checking how to run the C preprocessor" >&5
7874 # On Suns, sometimes $CPP names a directory.
7875 if test -n "$CPP" && test -d "$CPP"; then
7878 if test -z "$CPP"; then
7879 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
7880 echo $ac_n "(cached) $ac_c" 1>&6
7882 # This must be in double quotes, not single quotes, because CPP may get
7883 # substituted into the Makefile and "${CC-cc}" will confuse make.
7885 # On the NeXT, cc -E runs the code through the compiler's parser,
7886 # not just through cpp.
7887 cat > conftest.$ac_ext <<EOF
7888 #line 7889 "configure"
7889 #include "confdefs.h"
7893 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7894 { (eval echo configure:7895: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7895 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7896 if test -z "$ac_err"; then
7900 echo "configure: failed program was:" >&5
7901 cat conftest.$ac_ext >&5
7903 CPP="${CC-cc} -E -traditional-cpp"
7904 cat > conftest.$ac_ext <<EOF
7905 #line 7906 "configure"
7906 #include "confdefs.h"
7910 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7911 { (eval echo configure:7912: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7912 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7913 if test -z "$ac_err"; then
7917 echo "configure: failed program was:" >&5
7918 cat conftest.$ac_ext >&5
7920 CPP="${CC-cc} -nologo -E"
7921 cat > conftest.$ac_ext <<EOF
7922 #line 7923 "configure"
7923 #include "confdefs.h"
7927 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7928 { (eval echo configure:7929: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7929 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7930 if test -z "$ac_err"; then
7934 echo "configure: failed program was:" >&5
7935 cat conftest.$ac_ext >&5
7944 ac_cv_prog_CPP="$CPP"
7946 CPP="$ac_cv_prog_CPP"
7948 ac_cv_prog_CPP="$CPP"
7950 echo "$ac_t""$CPP" 1>&6
7953 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
7954 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
7956 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
7957 echo "configure: warning: programs compiled here do run here..." 1>&2
7958 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
7960 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
7961 echo "configure: warning: programs compiled here do not run here..." 1>&2
7962 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
7966 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
7967 echo "configure:7968: checking for Cygwin environment" >&5
7968 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
7969 echo $ac_n "(cached) $ac_c" 1>&6
7971 cat > conftest.$ac_ext <<EOF
7972 #line 7973 "configure"
7973 #include "confdefs.h"
7978 #define __CYGWIN__ __CYGWIN32__
7983 if { (eval echo configure:7984: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7987 echo "configure: failed program was:" >&5
7988 cat conftest.$ac_ext >&5
7995 echo "$ac_t""$ac_cv_cygwin" 1>&6
7997 test "$ac_cv_cygwin" = yes && CYGWIN=yes
7998 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
7999 echo "configure:8000: checking for mingw32 environment" >&5
8000 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
8001 echo $ac_n "(cached) $ac_c" 1>&6
8003 cat > conftest.$ac_ext <<EOF
8004 #line 8005 "configure"
8005 #include "confdefs.h"
8011 if { (eval echo configure:8012: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8015 echo "configure: failed program was:" >&5
8016 cat conftest.$ac_ext >&5
8023 echo "$ac_t""$ac_cv_mingw32" 1>&6
8025 test "$ac_cv_mingw32" = yes && MINGW32=yes
8029 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
8030 echo "configure:8031: checking for executable suffix" >&5
8031 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
8032 echo $ac_n "(cached) $ac_c" 1>&6
8034 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
8038 echo 'int main () { return 0; }' > conftest.$ac_ext
8040 if { (eval echo configure:8041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
8041 for file in conftest.*; do
8043 *.c | *.C | *.o | *.obj | *.xcoff) ;;
8044 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
8048 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
8051 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
8056 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
8057 echo "$ac_t""${ac_cv_exeext}" 1>&6
8060 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
8061 echo "configure:8062: checking for object suffix" >&5
8062 if eval "test \"\${ac_cv_objext+set}\" = set"; then
8063 echo $ac_n "(cached) $ac_c" 1>&6
8066 echo 'int i = 1;' > conftest.$ac_ext
8067 if { (eval echo configure:8068: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8068 for ac_file in conftest.*; do
8071 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
8075 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
8080 echo "$ac_t""$ac_cv_objext" 1>&6
8081 OBJEXT=$ac_cv_objext
8082 ac_objext=$ac_cv_objext
8085 cat >> confdefs.h <<EOF
8086 #define EXEEXT "${EXEEXT}"
8090 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
8091 echo "configure:8092: checking for be_app in -lbe" >&5
8092 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
8093 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8094 echo $ac_n "(cached) $ac_c" 1>&6
8096 ac_save_LIBS="$LIBS"
8097 LIBS="-lbe -lroot -lnet $LIBS"
8098 cat > conftest.$ac_ext <<EOF
8099 #line 8100 "configure"
8100 #include "confdefs.h"
8101 /* Override any gcc2 internal prototype to avoid an error. */
8102 /* We use char because int might match the return type of a gcc2
8103 builtin and then its argument prototype would still apply. */
8110 if { (eval echo configure:8111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8112 eval "ac_cv_lib_$ac_lib_var=yes"
8114 echo "configure: failed program was:" >&5
8115 cat conftest.$ac_ext >&5
8117 eval "ac_cv_lib_$ac_lib_var=no"
8120 LIBS="$ac_save_LIBS"
8123 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8124 echo "$ac_t""yes" 1>&6
8125 LIBS="$LIBS -lbe -lroot -lnet"
8127 echo "$ac_t""no" 1>&6
8135 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
8136 echo "configure:8137: checking for ${CC-cc} option to accept ANSI C" >&5
8137 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
8138 echo $ac_n "(cached) $ac_c" 1>&6
8140 am_cv_prog_cc_stdc=no
8142 # Don't try gcc -ansi; that turns off useful extensions and
8143 # breaks some systems' header files.
8144 # AIX -qlanglvl=ansi
8145 # Ultrix and OSF/1 -std1
8146 # HP-UX 10.20 and later -Ae
8147 # HP-UX older versions -Aa -D_HPUX_SOURCE
8148 # SVR4 -Xc -D__EXTENSIONS__
8149 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
8151 CC="$ac_save_CC $ac_arg"
8152 cat > conftest.$ac_ext <<EOF
8153 #line 8154 "configure"
8154 #include "confdefs.h"
8157 #include <sys/types.h>
8158 #include <sys/stat.h>
8159 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
8160 struct buf { int x; };
8161 FILE * (*rcsopen) (struct buf *, struct stat *, int);
8162 static char *e (p, i)
8168 static char *f (char * (*g) (char **, int), char **p, ...)
8173 s = g (p, va_arg (v,int));
8177 int test (int i, double x);
8178 struct s1 {int (*f) (int a);};
8179 struct s2 {int (*f) (double a);};
8180 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
8186 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
8190 if { (eval echo configure:8191: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8192 am_cv_prog_cc_stdc="$ac_arg"; break
8194 echo "configure: failed program was:" >&5
8195 cat conftest.$ac_ext >&5
8203 if test -z "$am_cv_prog_cc_stdc"; then
8204 echo "$ac_t""none needed" 1>&6
8206 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
8208 case "x$am_cv_prog_cc_stdc" in
8210 *) CC="$CC $am_cv_prog_cc_stdc" ;;
8213 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
8214 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
8217 # test for make depend flag
8220 if test -z "${MKDEP}"; then
8222 if test -z "${MKDEP_FLAGS}"; then
8223 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
8224 echo "configure:8225: checking for ${OL_MKDEP} depend flag" >&5
8225 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
8226 echo $ac_n "(cached) $ac_c" 1>&6
8230 for flag in "-M" "-xM"; do
8231 cat > conftest.c <<EOF
8234 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:8235: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
8235 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
8237 if test ! -f conftest."${ac_object}" ; then
8239 OL_MKDEP_FLAGS="$flag"
8248 echo "$ac_t""$ol_cv_mkdep" 1>&6
8251 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
8256 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
8261 if test "${ol_cv_mkdep}" = no ; then
8262 # this will soon become an error
8263 echo "configure: warning: do not know how to generate dependencies" 1>&2
8266 echo $ac_n "checking for afopen in -ls""... $ac_c" 1>&6
8267 echo "configure:8268: checking for afopen in -ls" >&5
8268 ac_lib_var=`echo s'_'afopen | sed 'y%./+-:%__p__%'`
8269 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8270 echo $ac_n "(cached) $ac_c" 1>&6
8272 ac_save_LIBS="$LIBS"
8274 cat > conftest.$ac_ext <<EOF
8275 #line 8276 "configure"
8276 #include "confdefs.h"
8277 /* Override any gcc2 internal prototype to avoid an error. */
8278 /* We use char because int might match the return type of a gcc2
8279 builtin and then its argument prototype would still apply. */
8286 if { (eval echo configure:8287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8288 eval "ac_cv_lib_$ac_lib_var=yes"
8290 echo "configure: failed program was:" >&5
8291 cat conftest.$ac_ext >&5
8293 eval "ac_cv_lib_$ac_lib_var=no"
8296 LIBS="$ac_save_LIBS"
8299 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8300 echo "$ac_t""yes" 1>&6
8303 cat >> confdefs.h <<\EOF
8304 #define HAVE_AIX_SECURITY 1
8309 echo "$ac_t""no" 1>&6
8315 if test $ol_enable_modules != no ; then
8316 for ac_hdr in ltdl.h
8318 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8319 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8320 echo "configure:8321: checking for $ac_hdr" >&5
8321 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8322 echo $ac_n "(cached) $ac_c" 1>&6
8324 cat > conftest.$ac_ext <<EOF
8325 #line 8326 "configure"
8326 #include "confdefs.h"
8329 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8330 { (eval echo configure:8331: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8331 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8332 if test -z "$ac_err"; then
8334 eval "ac_cv_header_$ac_safe=yes"
8337 echo "configure: failed program was:" >&5
8338 cat conftest.$ac_ext >&5
8340 eval "ac_cv_header_$ac_safe=no"
8344 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8345 echo "$ac_t""yes" 1>&6
8346 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8347 cat >> confdefs.h <<EOF
8348 #define $ac_tr_hdr 1
8352 echo "$ac_t""no" 1>&6
8357 if test $ac_cv_header_ltdl_h = no ; then
8358 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
8361 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
8362 echo "configure:8363: checking for lt_dlinit in -lltdl" >&5
8363 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
8364 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8365 echo $ac_n "(cached) $ac_c" 1>&6
8367 ac_save_LIBS="$LIBS"
8369 cat > conftest.$ac_ext <<EOF
8370 #line 8371 "configure"
8371 #include "confdefs.h"
8372 /* Override any gcc2 internal prototype to avoid an error. */
8373 /* We use char because int might match the return type of a gcc2
8374 builtin and then its argument prototype would still apply. */
8381 if { (eval echo configure:8382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8383 eval "ac_cv_lib_$ac_lib_var=yes"
8385 echo "configure: failed program was:" >&5
8386 cat conftest.$ac_ext >&5
8388 eval "ac_cv_lib_$ac_lib_var=no"
8391 LIBS="$ac_save_LIBS"
8394 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8395 echo "$ac_t""yes" 1>&6
8398 cat >> confdefs.h <<\EOF
8399 #define HAVE_LIBLTDL 1
8404 echo "$ac_t""no" 1>&6
8408 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
8409 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
8413 ol_with_bdb_module=static
8414 ol_with_dnssrv_module=static
8415 ol_with_ldap_module=static
8416 ol_with_ldbm_module=static
8417 ol_with_meta_module=static
8418 ol_with_monitor_module=static
8419 ol_with_passwd_module=static
8420 ol_with_perl_module=static
8421 ol_with_shell_module=static
8422 ol_with_tcl_module=static
8423 ol_with_sql_module=static
8427 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
8428 echo "configure:8429: checking for EBCDIC" >&5
8429 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
8430 echo $ac_n "(cached) $ac_c" 1>&6
8433 cat > conftest.$ac_ext <<EOF
8434 #line 8435 "configure"
8435 #include "confdefs.h"
8438 #include <__ASCII__/generate_error.h>
8442 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8443 { (eval echo configure:8444: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8444 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8445 if test -z "$ac_err"; then
8447 ol_cv_cpp_ebcdic=yes
8450 echo "configure: failed program was:" >&5
8451 cat conftest.$ac_ext >&5
8458 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
8459 if test $ol_cv_cpp_ebcdic = yes ; then
8460 cat >> confdefs.h <<\EOF
8461 #define HAVE_EBCDIC 1
8466 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
8467 echo "configure:8468: checking for ANSI C header files" >&5
8468 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
8469 echo $ac_n "(cached) $ac_c" 1>&6
8471 cat > conftest.$ac_ext <<EOF
8472 #line 8473 "configure"
8473 #include "confdefs.h"
8479 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8480 { (eval echo configure:8481: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8481 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8482 if test -z "$ac_err"; then
8484 ol_cv_header_stdc=yes
8487 echo "configure: failed program was:" >&5
8488 cat conftest.$ac_ext >&5
8490 ol_cv_header_stdc=no
8494 if test $ol_cv_header_stdc = yes; then
8495 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8496 cat > conftest.$ac_ext <<EOF
8497 #line 8498 "configure"
8498 #include "confdefs.h"
8501 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8502 egrep "memchr" >/dev/null 2>&1; then
8506 ol_cv_header_stdc=no
8512 if test $ol_cv_header_stdc = yes; then
8513 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8514 cat > conftest.$ac_ext <<EOF
8515 #line 8516 "configure"
8516 #include "confdefs.h"
8519 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8520 egrep "free" >/dev/null 2>&1; then
8524 ol_cv_header_stdc=no
8530 if test $ol_cv_header_stdc = yes; then
8531 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8532 if test "$cross_compiling" = yes; then
8535 cat > conftest.$ac_ext <<EOF
8536 #line 8537 "configure"
8537 #include "confdefs.h"
8540 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8541 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8543 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
8544 || ('j' <= (c) && (c) <= 'r') \
8545 || ('s' <= (c) && (c) <= 'z'))
8546 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8548 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8549 int main () { int i; for (i = 0; i < 256; i++)
8550 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
8554 if { (eval echo configure:8555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8558 echo "configure: failed program was:" >&5
8559 cat conftest.$ac_ext >&5
8561 ol_cv_header_stdc=no
8569 echo "$ac_t""$ol_cv_header_stdc" 1>&6
8570 if test $ol_cv_header_stdc = yes; then
8571 cat >> confdefs.h <<\EOF
8572 #define STDC_HEADERS 1
8576 ac_cv_header_stdc=disable
8579 if test $ol_cv_header_stdc != yes; then
8580 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
8584 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
8586 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8587 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
8588 echo "configure:8589: checking for $ac_hdr that defines DIR" >&5
8589 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
8590 echo $ac_n "(cached) $ac_c" 1>&6
8592 cat > conftest.$ac_ext <<EOF
8593 #line 8594 "configure"
8594 #include "confdefs.h"
8595 #include <sys/types.h>
8601 if { (eval echo configure:8602: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8603 eval "ac_cv_header_dirent_$ac_safe=yes"
8605 echo "configure: failed program was:" >&5
8606 cat conftest.$ac_ext >&5
8608 eval "ac_cv_header_dirent_$ac_safe=no"
8612 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
8613 echo "$ac_t""yes" 1>&6
8614 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8615 cat >> confdefs.h <<EOF
8616 #define $ac_tr_hdr 1
8618 ac_header_dirent=$ac_hdr; break
8620 echo "$ac_t""no" 1>&6
8623 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8624 if test $ac_header_dirent = dirent.h; then
8625 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
8626 echo "configure:8627: checking for opendir in -ldir" >&5
8627 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
8628 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8629 echo $ac_n "(cached) $ac_c" 1>&6
8631 ac_save_LIBS="$LIBS"
8633 cat > conftest.$ac_ext <<EOF
8634 #line 8635 "configure"
8635 #include "confdefs.h"
8636 /* Override any gcc2 internal prototype to avoid an error. */
8637 /* We use char because int might match the return type of a gcc2
8638 builtin and then its argument prototype would still apply. */
8645 if { (eval echo configure:8646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8647 eval "ac_cv_lib_$ac_lib_var=yes"
8649 echo "configure: failed program was:" >&5
8650 cat conftest.$ac_ext >&5
8652 eval "ac_cv_lib_$ac_lib_var=no"
8655 LIBS="$ac_save_LIBS"
8658 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8659 echo "$ac_t""yes" 1>&6
8662 echo "$ac_t""no" 1>&6
8666 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
8667 echo "configure:8668: checking for opendir in -lx" >&5
8668 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
8669 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8670 echo $ac_n "(cached) $ac_c" 1>&6
8672 ac_save_LIBS="$LIBS"
8674 cat > conftest.$ac_ext <<EOF
8675 #line 8676 "configure"
8676 #include "confdefs.h"
8677 /* Override any gcc2 internal prototype to avoid an error. */
8678 /* We use char because int might match the return type of a gcc2
8679 builtin and then its argument prototype would still apply. */
8686 if { (eval echo configure:8687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8688 eval "ac_cv_lib_$ac_lib_var=yes"
8690 echo "configure: failed program was:" >&5
8691 cat conftest.$ac_ext >&5
8693 eval "ac_cv_lib_$ac_lib_var=no"
8696 LIBS="$ac_save_LIBS"
8699 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8700 echo "$ac_t""yes" 1>&6
8703 echo "$ac_t""no" 1>&6
8708 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
8709 echo "configure:8710: checking for sys/wait.h that is POSIX.1 compatible" >&5
8710 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
8711 echo $ac_n "(cached) $ac_c" 1>&6
8713 cat > conftest.$ac_ext <<EOF
8714 #line 8715 "configure"
8715 #include "confdefs.h"
8716 #include <sys/types.h>
8717 #include <sys/wait.h>
8719 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8722 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8727 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8730 if { (eval echo configure:8731: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8732 ac_cv_header_sys_wait_h=yes
8734 echo "configure: failed program was:" >&5
8735 cat conftest.$ac_ext >&5
8737 ac_cv_header_sys_wait_h=no
8742 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
8743 if test $ac_cv_header_sys_wait_h = yes; then
8744 cat >> confdefs.h <<\EOF
8745 #define HAVE_SYS_WAIT_H 1
8750 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
8751 echo "configure:8752: checking POSIX termios" >&5
8752 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
8753 echo $ac_n "(cached) $ac_c" 1>&6
8755 cat > conftest.$ac_ext <<EOF
8756 #line 8757 "configure"
8757 #include "confdefs.h"
8758 #include <sys/types.h>
8760 #include <termios.h>
8762 /* SunOS 4.0.3 has termios.h but not the library calls. */
8766 if { (eval echo configure:8767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8768 am_cv_sys_posix_termios=yes
8770 echo "configure: failed program was:" >&5
8771 cat conftest.$ac_ext >&5
8773 am_cv_sys_posix_termios=no
8778 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
8781 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
8782 echo "configure:8783: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
8783 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
8784 echo $ac_n "(cached) $ac_c" 1>&6
8786 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
8788 gwinsz_in_termios_h=no
8789 if test $am_cv_sys_posix_termios = yes; then
8790 cat > conftest.$ac_ext <<EOF
8791 #line 8792 "configure"
8792 #include "confdefs.h"
8793 #include <sys/types.h>
8794 # include <termios.h>
8800 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8801 egrep "yes" >/dev/null 2>&1; then
8803 gwinsz_in_termios_h=yes
8809 if test $gwinsz_in_termios_h = no; then
8810 cat > conftest.$ac_ext <<EOF
8811 #line 8812 "configure"
8812 #include "confdefs.h"
8813 #include <sys/types.h>
8814 # include <sys/ioctl.h>
8820 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8821 egrep "yes" >/dev/null 2>&1; then
8823 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
8831 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
8832 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
8833 cat >> confdefs.h <<\EOF
8834 #define GWINSZ_IN_SYS_IOCTL 1
8839 if test $am_cv_sys_posix_termios = yes ; then
8840 cat >> confdefs.h <<\EOF
8841 #define HAVE_POSIX_TERMIOS 1
8893 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8894 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8895 echo "configure:8896: checking for $ac_hdr" >&5
8896 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8897 echo $ac_n "(cached) $ac_c" 1>&6
8899 cat > conftest.$ac_ext <<EOF
8900 #line 8901 "configure"
8901 #include "confdefs.h"
8904 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8905 { (eval echo configure:8906: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8906 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8907 if test -z "$ac_err"; then
8909 eval "ac_cv_header_$ac_safe=yes"
8912 echo "configure: failed program was:" >&5
8913 cat conftest.$ac_ext >&5
8915 eval "ac_cv_header_$ac_safe=no"
8919 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8920 echo "$ac_t""yes" 1>&6
8921 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8922 cat >> confdefs.h <<EOF
8923 #define $ac_tr_hdr 1
8927 echo "$ac_t""no" 1>&6
8934 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
8935 echo "configure:8936: checking for dlopen" >&5
8936 if eval "test \"\${ac_cv_func_dlopen+set}\" = set"; then
8937 echo $ac_n "(cached) $ac_c" 1>&6
8939 cat > conftest.$ac_ext <<EOF
8940 #line 8941 "configure"
8941 #include "confdefs.h"
8942 /* System header to define __stub macros and hopefully few prototypes,
8943 which can conflict with char dlopen(); below. */
8945 /* Override any gcc2 internal prototype to avoid an error. */
8946 /* We use char because int might match the return type of a gcc2
8947 builtin and then its argument prototype would still apply. */
8953 /* The GNU C library defines this for functions which it implements
8954 to always fail with ENOSYS. Some functions are actually named
8955 something starting with __ and the normal name is an alias. */
8956 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8964 if { (eval echo configure:8965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8966 eval "ac_cv_func_dlopen=yes"
8968 echo "configure: failed program was:" >&5
8969 cat conftest.$ac_ext >&5
8971 eval "ac_cv_func_dlopen=no"
8976 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
8977 echo "$ac_t""yes" 1>&6
8980 echo "$ac_t""no" 1>&6
8981 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
8982 echo "configure:8983: checking for dlopen in -ldl" >&5
8983 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-:%__p__%'`
8984 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8985 echo $ac_n "(cached) $ac_c" 1>&6
8987 ac_save_LIBS="$LIBS"
8989 cat > conftest.$ac_ext <<EOF
8990 #line 8991 "configure"
8991 #include "confdefs.h"
8992 /* Override any gcc2 internal prototype to avoid an error. */
8993 /* We use char because int might match the return type of a gcc2
8994 builtin and then its argument prototype would still apply. */
9001 if { (eval echo configure:9002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9003 eval "ac_cv_lib_$ac_lib_var=yes"
9005 echo "configure: failed program was:" >&5
9006 cat conftest.$ac_ext >&5
9008 eval "ac_cv_lib_$ac_lib_var=no"
9011 LIBS="$ac_save_LIBS"
9014 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9015 echo "$ac_t""yes" 1>&6
9016 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9017 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9018 cat >> confdefs.h <<EOF
9019 #define $ac_tr_lib 1
9025 echo "$ac_t""no" 1>&6
9031 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
9032 echo "configure:9033: checking for sigset in -lV3" >&5
9033 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
9034 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9035 echo $ac_n "(cached) $ac_c" 1>&6
9037 ac_save_LIBS="$LIBS"
9039 cat > conftest.$ac_ext <<EOF
9040 #line 9041 "configure"
9041 #include "confdefs.h"
9042 /* Override any gcc2 internal prototype to avoid an error. */
9043 /* We use char because int might match the return type of a gcc2
9044 builtin and then its argument prototype would still apply. */
9051 if { (eval echo configure:9052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9053 eval "ac_cv_lib_$ac_lib_var=yes"
9055 echo "configure: failed program was:" >&5
9056 cat conftest.$ac_ext >&5
9058 eval "ac_cv_lib_$ac_lib_var=no"
9061 LIBS="$ac_save_LIBS"
9064 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9065 echo "$ac_t""yes" 1>&6
9066 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9067 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9068 cat >> confdefs.h <<EOF
9069 #define $ac_tr_lib 1
9075 echo "$ac_t""no" 1>&6
9079 echo $ac_n "checking for winsock""... $ac_c" 1>&6
9080 echo "configure:9081: checking for winsock" >&5
9082 for curlib in ws2_32 wsock32; do
9083 LIBS="$LIBS -l$curlib"
9084 cat > conftest.$ac_ext <<EOF
9085 #line 9086 "configure"
9086 #include "confdefs.h"
9090 char closesocket@4();
9091 char gethostname@8();
9102 if { (eval echo configure:9103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9106 echo "configure: failed program was:" >&5
9107 cat conftest.$ac_ext >&5
9113 if test $have_winsock = yes; then
9114 cat >> confdefs.h <<\EOF
9115 #define HAVE_WINSOCK 1
9118 ac_cv_func_socket=yes
9119 ac_cv_func_select=yes
9120 ac_cv_func_closesocket=yes
9121 ac_cv_func_gethostname=yes
9122 if test $curlib = ws2_32; then
9123 have_winsock=winsock2
9124 cat >> confdefs.h <<\EOF
9125 #define HAVE_WINSOCK2 1
9133 echo "$ac_t""$have_winsock" 1>&6
9136 echo $ac_n "checking for socket""... $ac_c" 1>&6
9137 echo "configure:9138: checking for socket" >&5
9138 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
9139 echo $ac_n "(cached) $ac_c" 1>&6
9141 cat > conftest.$ac_ext <<EOF
9142 #line 9143 "configure"
9143 #include "confdefs.h"
9144 /* System header to define __stub macros and hopefully few prototypes,
9145 which can conflict with char socket(); below. */
9147 /* Override any gcc2 internal prototype to avoid an error. */
9148 /* We use char because int might match the return type of a gcc2
9149 builtin and then its argument prototype would still apply. */
9155 /* The GNU C library defines this for functions which it implements
9156 to always fail with ENOSYS. Some functions are actually named
9157 something starting with __ and the normal name is an alias. */
9158 #if defined (__stub_socket) || defined (__stub___socket)
9166 if { (eval echo configure:9167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9168 eval "ac_cv_func_socket=yes"
9170 echo "configure: failed program was:" >&5
9171 cat conftest.$ac_ext >&5
9173 eval "ac_cv_func_socket=no"
9178 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
9179 echo "$ac_t""yes" 1>&6
9182 echo "$ac_t""no" 1>&6
9184 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
9185 echo "configure:9186: checking for main in -lsocket" >&5
9186 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
9187 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9188 echo $ac_n "(cached) $ac_c" 1>&6
9190 ac_save_LIBS="$LIBS"
9191 LIBS="-lsocket $LIBS"
9192 cat > conftest.$ac_ext <<EOF
9193 #line 9194 "configure"
9194 #include "confdefs.h"
9200 if { (eval echo configure:9201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9202 eval "ac_cv_lib_$ac_lib_var=yes"
9204 echo "configure: failed program was:" >&5
9205 cat conftest.$ac_ext >&5
9207 eval "ac_cv_lib_$ac_lib_var=no"
9210 LIBS="$ac_save_LIBS"
9213 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9214 echo "$ac_t""yes" 1>&6
9215 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9216 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9217 cat >> confdefs.h <<EOF
9218 #define $ac_tr_lib 1
9221 LIBS="-lsocket $LIBS"
9224 echo "$ac_t""no" 1>&6
9227 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
9228 echo "configure:9229: checking for main in -lnet" >&5
9229 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
9230 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9231 echo $ac_n "(cached) $ac_c" 1>&6
9233 ac_save_LIBS="$LIBS"
9235 cat > conftest.$ac_ext <<EOF
9236 #line 9237 "configure"
9237 #include "confdefs.h"
9243 if { (eval echo configure:9244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9245 eval "ac_cv_lib_$ac_lib_var=yes"
9247 echo "configure: failed program was:" >&5
9248 cat conftest.$ac_ext >&5
9250 eval "ac_cv_lib_$ac_lib_var=no"
9253 LIBS="$ac_save_LIBS"
9256 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9257 echo "$ac_t""yes" 1>&6
9258 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9259 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9260 cat >> confdefs.h <<EOF
9261 #define $ac_tr_lib 1
9267 echo "$ac_t""no" 1>&6
9270 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
9271 echo "configure:9272: checking for main in -lnsl_s" >&5
9272 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
9273 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9274 echo $ac_n "(cached) $ac_c" 1>&6
9276 ac_save_LIBS="$LIBS"
9277 LIBS="-lnsl_s $LIBS"
9278 cat > conftest.$ac_ext <<EOF
9279 #line 9280 "configure"
9280 #include "confdefs.h"
9286 if { (eval echo configure:9287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9288 eval "ac_cv_lib_$ac_lib_var=yes"
9290 echo "configure: failed program was:" >&5
9291 cat conftest.$ac_ext >&5
9293 eval "ac_cv_lib_$ac_lib_var=no"
9296 LIBS="$ac_save_LIBS"
9299 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9300 echo "$ac_t""yes" 1>&6
9301 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9302 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9303 cat >> confdefs.h <<EOF
9304 #define $ac_tr_lib 1
9307 LIBS="-lnsl_s $LIBS"
9310 echo "$ac_t""no" 1>&6
9313 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
9314 echo "configure:9315: checking for main in -lnsl" >&5
9315 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
9316 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9317 echo $ac_n "(cached) $ac_c" 1>&6
9319 ac_save_LIBS="$LIBS"
9321 cat > conftest.$ac_ext <<EOF
9322 #line 9323 "configure"
9323 #include "confdefs.h"
9329 if { (eval echo configure:9330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9331 eval "ac_cv_lib_$ac_lib_var=yes"
9333 echo "configure: failed program was:" >&5
9334 cat conftest.$ac_ext >&5
9336 eval "ac_cv_lib_$ac_lib_var=no"
9339 LIBS="$ac_save_LIBS"
9342 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9343 echo "$ac_t""yes" 1>&6
9344 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9345 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9346 cat >> confdefs.h <<EOF
9347 #define $ac_tr_lib 1
9353 echo "$ac_t""no" 1>&6
9356 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
9357 echo "configure:9358: checking for socket in -linet" >&5
9358 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
9359 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9360 echo $ac_n "(cached) $ac_c" 1>&6
9362 ac_save_LIBS="$LIBS"
9364 cat > conftest.$ac_ext <<EOF
9365 #line 9366 "configure"
9366 #include "confdefs.h"
9367 /* Override any gcc2 internal prototype to avoid an error. */
9368 /* We use char because int might match the return type of a gcc2
9369 builtin and then its argument prototype would still apply. */
9376 if { (eval echo configure:9377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9378 eval "ac_cv_lib_$ac_lib_var=yes"
9380 echo "configure: failed program was:" >&5
9381 cat conftest.$ac_ext >&5
9383 eval "ac_cv_lib_$ac_lib_var=no"
9386 LIBS="$ac_save_LIBS"
9389 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9390 echo "$ac_t""yes" 1>&6
9391 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9392 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9393 cat >> confdefs.h <<EOF
9394 #define $ac_tr_lib 1
9400 echo "$ac_t""no" 1>&6
9403 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
9404 echo "configure:9405: checking for main in -lgen" >&5
9405 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
9406 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9407 echo $ac_n "(cached) $ac_c" 1>&6
9409 ac_save_LIBS="$LIBS"
9411 cat > conftest.$ac_ext <<EOF
9412 #line 9413 "configure"
9413 #include "confdefs.h"
9419 if { (eval echo configure:9420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9421 eval "ac_cv_lib_$ac_lib_var=yes"
9423 echo "configure: failed program was:" >&5
9424 cat conftest.$ac_ext >&5
9426 eval "ac_cv_lib_$ac_lib_var=no"
9429 LIBS="$ac_save_LIBS"
9432 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9433 echo "$ac_t""yes" 1>&6
9434 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9435 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9436 cat >> confdefs.h <<EOF
9437 #define $ac_tr_lib 1
9443 echo "$ac_t""no" 1>&6
9450 echo $ac_n "checking for select""... $ac_c" 1>&6
9451 echo "configure:9452: checking for select" >&5
9452 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
9453 echo $ac_n "(cached) $ac_c" 1>&6
9455 cat > conftest.$ac_ext <<EOF
9456 #line 9457 "configure"
9457 #include "confdefs.h"
9458 /* System header to define __stub macros and hopefully few prototypes,
9459 which can conflict with char select(); below. */
9461 /* Override any gcc2 internal prototype to avoid an error. */
9462 /* We use char because int might match the return type of a gcc2
9463 builtin and then its argument prototype would still apply. */
9469 /* The GNU C library defines this for functions which it implements
9470 to always fail with ENOSYS. Some functions are actually named
9471 something starting with __ and the normal name is an alias. */
9472 #if defined (__stub_select) || defined (__stub___select)
9480 if { (eval echo configure:9481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9482 eval "ac_cv_func_select=yes"
9484 echo "configure: failed program was:" >&5
9485 cat conftest.$ac_ext >&5
9487 eval "ac_cv_func_select=no"
9492 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
9493 echo "$ac_t""yes" 1>&6
9496 echo "$ac_t""no" 1>&6
9497 { echo "configure: error: select() required." 1>&2; exit 1; }
9501 if test "${ac_cv_header_winsock_h}" != yes; then
9502 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
9503 echo "configure:9504: checking types of arguments for select()" >&5
9504 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
9505 echo $ac_n "(cached) $ac_c" 1>&6
9507 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
9508 echo $ac_n "(cached) $ac_c" 1>&6
9510 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
9511 echo $ac_n "(cached) $ac_c" 1>&6
9513 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
9514 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
9515 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
9516 cat > conftest.$ac_ext <<EOF
9517 #line 9518 "configure"
9518 #include "confdefs.h"
9519 #ifdef HAVE_SYS_TYPES_H
9520 #include <sys/types.h>
9522 #ifdef HAVE_SYS_TIME_H
9523 #include <sys/time.h>
9525 #ifdef HAVE_SYS_SELECT_H
9526 #include <sys/select.h>
9528 #ifdef HAVE_SYS_SOCKET_H
9529 #include <sys/socket.h>
9531 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);
9536 if { (eval echo configure:9537: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9538 ac_not_found=no ; break 3
9540 echo "configure: failed program was:" >&5
9541 cat conftest.$ac_ext >&5
9555 if test "$ac_not_found" = yes; then
9556 ac_cv_func_select_arg1=int
9557 ac_cv_func_select_arg234='int *'
9558 ac_cv_func_select_arg5='struct timeval *'
9560 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
9561 cat >> confdefs.h <<EOF
9562 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
9565 cat >> confdefs.h <<EOF
9566 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
9569 cat >> confdefs.h <<EOF
9570 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
9577 for ac_hdr in regex.h
9579 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9580 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9581 echo "configure:9582: checking for $ac_hdr" >&5
9582 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9583 echo $ac_n "(cached) $ac_c" 1>&6
9585 cat > conftest.$ac_ext <<EOF
9586 #line 9587 "configure"
9587 #include "confdefs.h"
9590 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9591 { (eval echo configure:9592: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9592 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9593 if test -z "$ac_err"; then
9595 eval "ac_cv_header_$ac_safe=yes"
9598 echo "configure: failed program was:" >&5
9599 cat conftest.$ac_ext >&5
9601 eval "ac_cv_header_$ac_safe=no"
9605 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9606 echo "$ac_t""yes" 1>&6
9607 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9608 cat >> confdefs.h <<EOF
9609 #define $ac_tr_hdr 1
9613 echo "$ac_t""no" 1>&6
9617 if test "$ac_cv_header_regex_h" != yes ; then
9618 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
9621 echo $ac_n "checking for library containing regfree""... $ac_c" 1>&6
9622 echo "configure:9623: checking for library containing regfree" >&5
9623 if eval "test \"\${ac_cv_search_regfree+set}\" = set"; then
9624 echo $ac_n "(cached) $ac_c" 1>&6
9626 ac_func_search_save_LIBS="$LIBS"
9627 ac_cv_search_regfree="no"
9628 cat > conftest.$ac_ext <<EOF
9629 #line 9630 "configure"
9630 #include "confdefs.h"
9631 /* Override any gcc2 internal prototype to avoid an error. */
9632 /* We use char because int might match the return type of a gcc2
9633 builtin and then its argument prototype would still apply. */
9640 if { (eval echo configure:9641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9642 ac_cv_search_regfree="none required"
9644 echo "configure: failed program was:" >&5
9645 cat conftest.$ac_ext >&5
9648 test "$ac_cv_search_regfree" = "no" && for ac_lib in regex gnuregex; do
9649 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9650 cat > conftest.$ac_ext <<EOF
9651 #line 9652 "configure"
9652 #include "confdefs.h"
9653 /* Override any gcc2 internal prototype to avoid an error. */
9654 /* We use char because int might match the return type of a gcc2
9655 builtin and then its argument prototype would still apply. */
9662 if { (eval echo configure:9663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9664 ac_cv_search_regfree="-l$ac_lib"
9667 echo "configure: failed program was:" >&5
9668 cat conftest.$ac_ext >&5
9672 LIBS="$ac_func_search_save_LIBS"
9675 echo "$ac_t""$ac_cv_search_regfree" 1>&6
9676 if test "$ac_cv_search_regfree" != "no"; then
9677 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
9680 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
9684 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
9685 echo "configure:9686: checking for compatible POSIX regex" >&5
9686 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
9687 echo $ac_n "(cached) $ac_c" 1>&6
9690 if test "$cross_compiling" = yes; then
9691 ol_cv_c_posix_regex=cross
9693 cat > conftest.$ac_ext <<EOF
9694 #line 9695 "configure"
9695 #include "confdefs.h"
9697 #include <sys/types.h>
9699 static char *pattern, *string;
9707 if(regcomp(&re, pattern, 0)) {
9711 string = "ALL MATCH";
9713 rc = regexec(&re, string, 0, (void*)0, 0);
9720 if { (eval echo configure:9721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9722 ol_cv_c_posix_regex=yes
9724 echo "configure: failed program was:" >&5
9725 cat conftest.$ac_ext >&5
9727 ol_cv_c_posix_regex=no
9734 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
9736 if test "$ol_cv_c_posix_regex" = no ; then
9737 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
9742 for ac_hdr in sys/uuid.h
9744 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9745 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9746 echo "configure:9747: checking for $ac_hdr" >&5
9747 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9748 echo $ac_n "(cached) $ac_c" 1>&6
9750 cat > conftest.$ac_ext <<EOF
9751 #line 9752 "configure"
9752 #include "confdefs.h"
9755 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9756 { (eval echo configure:9757: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9757 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9758 if test -z "$ac_err"; then
9760 eval "ac_cv_header_$ac_safe=yes"
9763 echo "configure: failed program was:" >&5
9764 cat conftest.$ac_ext >&5
9766 eval "ac_cv_header_$ac_safe=no"
9770 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9771 echo "$ac_t""yes" 1>&6
9772 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9773 cat >> confdefs.h <<EOF
9774 #define $ac_tr_hdr 1
9778 echo "$ac_t""no" 1>&6
9782 if test $ac_cv_header_sys_uuid_h = yes ; then
9785 echo $ac_n "checking for library containing uuid_to_str""... $ac_c" 1>&6
9786 echo "configure:9787: checking for library containing uuid_to_str" >&5
9787 if eval "test \"\${ac_cv_search_uuid_to_str+set}\" = set"; then
9788 echo $ac_n "(cached) $ac_c" 1>&6
9790 ac_func_search_save_LIBS="$LIBS"
9791 ac_cv_search_uuid_to_str="no"
9792 cat > conftest.$ac_ext <<EOF
9793 #line 9794 "configure"
9794 #include "confdefs.h"
9795 /* Override any gcc2 internal prototype to avoid an error. */
9796 /* We use char because int might match the return type of a gcc2
9797 builtin and then its argument prototype would still apply. */
9804 if { (eval echo configure:9805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9806 ac_cv_search_uuid_to_str="none required"
9808 echo "configure: failed program was:" >&5
9809 cat conftest.$ac_ext >&5
9812 test "$ac_cv_search_uuid_to_str" = "no" && for ac_lib in uuid; do
9813 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9814 cat > conftest.$ac_ext <<EOF
9815 #line 9816 "configure"
9816 #include "confdefs.h"
9817 /* Override any gcc2 internal prototype to avoid an error. */
9818 /* We use char because int might match the return type of a gcc2
9819 builtin and then its argument prototype would still apply. */
9826 if { (eval echo configure:9827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9828 ac_cv_search_uuid_to_str="-l$ac_lib"
9831 echo "configure: failed program was:" >&5
9832 cat conftest.$ac_ext >&5
9836 LIBS="$ac_func_search_save_LIBS"
9839 echo "$ac_t""$ac_cv_search_uuid_to_str" 1>&6
9840 if test "$ac_cv_search_uuid_to_str" != "no"; then
9841 test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
9848 if test have_uuid = yes ; then
9849 cat >> confdefs.h <<\EOF
9850 #define HAVE_UUID_TO_STR 1
9854 test "$ac_cv_search_uuid_to_str" = "none required" || \
9855 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
9859 if test $have_uuid = no ; then
9860 echo $ac_n "checking to see if -lrpcrt4 is needed for win32 UUID support""... $ac_c" 1>&6
9861 echo "configure:9862: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
9863 LIBS="$LIBS -lrpcrt4"
9864 cat > conftest.$ac_ext <<EOF
9865 #line 9866 "configure"
9866 #include "confdefs.h"
9868 char UuidCreate@4();
9869 char UuidToStringA@8();
9878 if { (eval echo configure:9879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9882 echo "configure: failed program was:" >&5
9883 cat conftest.$ac_ext >&5
9888 if test $need_rpcrt = yes; then
9889 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
9892 echo "$ac_t""$need_rpcrt" 1>&6
9896 echo $ac_n "checking for res_query""... $ac_c" 1>&6
9897 echo "configure:9898: checking for res_query" >&5
9898 if eval "test \"\${ac_cv_func_res_query+set}\" = set"; then
9899 echo $ac_n "(cached) $ac_c" 1>&6
9901 cat > conftest.$ac_ext <<EOF
9902 #line 9903 "configure"
9903 #include "confdefs.h"
9904 /* System header to define __stub macros and hopefully few prototypes,
9905 which can conflict with char res_query(); below. */
9907 /* Override any gcc2 internal prototype to avoid an error. */
9908 /* We use char because int might match the return type of a gcc2
9909 builtin and then its argument prototype would still apply. */
9915 /* The GNU C library defines this for functions which it implements
9916 to always fail with ENOSYS. Some functions are actually named
9917 something starting with __ and the normal name is an alias. */
9918 #if defined (__stub_res_query) || defined (__stub___res_query)
9926 if { (eval echo configure:9927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9928 eval "ac_cv_func_res_query=yes"
9930 echo "configure: failed program was:" >&5
9931 cat conftest.$ac_ext >&5
9933 eval "ac_cv_func_res_query=no"
9938 if eval "test \"`echo '$ac_cv_func_'res_query`\" = yes"; then
9939 echo "$ac_t""yes" 1>&6
9942 echo "$ac_t""no" 1>&6
9945 if test $ac_cv_func_res_query = no ; then
9946 echo $ac_n "checking for __res_query""... $ac_c" 1>&6
9947 echo "configure:9948: checking for __res_query" >&5
9948 if eval "test \"\${ac_cv_func___res_query+set}\" = set"; then
9949 echo $ac_n "(cached) $ac_c" 1>&6
9951 cat > conftest.$ac_ext <<EOF
9952 #line 9953 "configure"
9953 #include "confdefs.h"
9954 /* System header to define __stub macros and hopefully few prototypes,
9955 which can conflict with char __res_query(); below. */
9957 /* Override any gcc2 internal prototype to avoid an error. */
9958 /* We use char because int might match the return type of a gcc2
9959 builtin and then its argument prototype would still apply. */
9965 /* The GNU C library defines this for functions which it implements
9966 to always fail with ENOSYS. Some functions are actually named
9967 something starting with __ and the normal name is an alias. */
9968 #if defined (__stub___res_query) || defined (__stub_____res_query)
9976 if { (eval echo configure:9977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9978 eval "ac_cv_func___res_query=yes"
9980 echo "configure: failed program was:" >&5
9981 cat conftest.$ac_ext >&5
9983 eval "ac_cv_func___res_query=no"
9988 if eval "test \"`echo '$ac_cv_func_'__res_query`\" = yes"; then
9989 echo "$ac_t""yes" 1>&6
9992 echo "$ac_t""no" 1>&6
9995 ac_cv_func_res_query=$ac_cv_func___res_query
9998 if test $ac_cv_func_res_query = no ; then
9999 echo $ac_n "checking for res_query in -lbind""... $ac_c" 1>&6
10000 echo "configure:10001: checking for res_query in -lbind" >&5
10001 ac_lib_var=`echo bind'_'res_query | sed 'y%./+-:%__p__%'`
10002 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10003 echo $ac_n "(cached) $ac_c" 1>&6
10005 ac_save_LIBS="$LIBS"
10006 LIBS="-lbind $LIBS"
10007 cat > conftest.$ac_ext <<EOF
10008 #line 10009 "configure"
10009 #include "confdefs.h"
10010 /* Override any gcc2 internal prototype to avoid an error. */
10011 /* We use char because int might match the return type of a gcc2
10012 builtin and then its argument prototype would still apply. */
10019 if { (eval echo configure:10020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10021 eval "ac_cv_lib_$ac_lib_var=yes"
10023 echo "configure: failed program was:" >&5
10024 cat conftest.$ac_ext >&5
10026 eval "ac_cv_lib_$ac_lib_var=no"
10029 LIBS="$ac_save_LIBS"
10032 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10033 echo "$ac_t""yes" 1>&6
10034 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10035 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10036 cat >> confdefs.h <<EOF
10037 #define $ac_tr_lib 1
10040 LIBS="-lbind $LIBS"
10043 echo "$ac_t""no" 1>&6
10046 ac_cv_func_res_query=$ac_cv_lib_bind_res_query
10049 if test $ac_cv_func_res_query = no ; then
10050 echo $ac_n "checking for __res_query in -lbind""... $ac_c" 1>&6
10051 echo "configure:10052: checking for __res_query in -lbind" >&5
10052 ac_lib_var=`echo bind'_'__res_query | sed 'y%./+-:%__p__%'`
10053 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10054 echo $ac_n "(cached) $ac_c" 1>&6
10056 ac_save_LIBS="$LIBS"
10057 LIBS="-lbind $LIBS"
10058 cat > conftest.$ac_ext <<EOF
10059 #line 10060 "configure"
10060 #include "confdefs.h"
10061 /* Override any gcc2 internal prototype to avoid an error. */
10062 /* We use char because int might match the return type of a gcc2
10063 builtin and then its argument prototype would still apply. */
10064 char __res_query();
10070 if { (eval echo configure:10071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10072 eval "ac_cv_lib_$ac_lib_var=yes"
10074 echo "configure: failed program was:" >&5
10075 cat conftest.$ac_ext >&5
10077 eval "ac_cv_lib_$ac_lib_var=no"
10080 LIBS="$ac_save_LIBS"
10083 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10084 echo "$ac_t""yes" 1>&6
10085 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10086 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10087 cat >> confdefs.h <<EOF
10088 #define $ac_tr_lib 1
10091 LIBS="-lbind $LIBS"
10094 echo "$ac_t""no" 1>&6
10097 ac_cv_func_res_query=$ac_cv_lib_bind___res_query
10100 if test $ac_cv_func_res_query = no ; then
10101 echo $ac_n "checking for res_query in -lresolv""... $ac_c" 1>&6
10102 echo "configure:10103: checking for res_query in -lresolv" >&5
10103 ac_lib_var=`echo resolv'_'res_query | sed 'y%./+-:%__p__%'`
10104 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10105 echo $ac_n "(cached) $ac_c" 1>&6
10107 ac_save_LIBS="$LIBS"
10108 LIBS="-lresolv $LIBS"
10109 cat > conftest.$ac_ext <<EOF
10110 #line 10111 "configure"
10111 #include "confdefs.h"
10112 /* Override any gcc2 internal prototype to avoid an error. */
10113 /* We use char because int might match the return type of a gcc2
10114 builtin and then its argument prototype would still apply. */
10121 if { (eval echo configure:10122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10123 eval "ac_cv_lib_$ac_lib_var=yes"
10125 echo "configure: failed program was:" >&5
10126 cat conftest.$ac_ext >&5
10128 eval "ac_cv_lib_$ac_lib_var=no"
10131 LIBS="$ac_save_LIBS"
10134 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10135 echo "$ac_t""yes" 1>&6
10136 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10137 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10138 cat >> confdefs.h <<EOF
10139 #define $ac_tr_lib 1
10142 LIBS="-lresolv $LIBS"
10145 echo "$ac_t""no" 1>&6
10148 ac_cv_func_res_query=$ac_cv_lib_resolv_res_query
10151 if test $ac_cv_func_res_query = no ; then
10152 echo $ac_n "checking for __res_query in -lresolv""... $ac_c" 1>&6
10153 echo "configure:10154: checking for __res_query in -lresolv" >&5
10154 ac_lib_var=`echo resolv'_'__res_query | sed 'y%./+-:%__p__%'`
10155 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10156 echo $ac_n "(cached) $ac_c" 1>&6
10158 ac_save_LIBS="$LIBS"
10159 LIBS="-lresolv $LIBS"
10160 cat > conftest.$ac_ext <<EOF
10161 #line 10162 "configure"
10162 #include "confdefs.h"
10163 /* Override any gcc2 internal prototype to avoid an error. */
10164 /* We use char because int might match the return type of a gcc2
10165 builtin and then its argument prototype would still apply. */
10166 char __res_query();
10172 if { (eval echo configure:10173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10174 eval "ac_cv_lib_$ac_lib_var=yes"
10176 echo "configure: failed program was:" >&5
10177 cat conftest.$ac_ext >&5
10179 eval "ac_cv_lib_$ac_lib_var=no"
10182 LIBS="$ac_save_LIBS"
10185 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10186 echo "$ac_t""yes" 1>&6
10187 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10188 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10189 cat >> confdefs.h <<EOF
10190 #define $ac_tr_lib 1
10193 LIBS="-lresolv $LIBS"
10196 echo "$ac_t""no" 1>&6
10199 ac_cv_func_res_query=$ac_cv_lib_resolv___res_query
10202 if test "$ac_cv_func_res_query" = yes ; then
10203 cat >> confdefs.h <<\EOF
10204 #define HAVE_RES_QUERY 1
10208 if test $ol_enable_dnssrv != no ; then
10213 if test "$ol_enable_dnssrv" = yes -a "$ol_link_dnssrv" = no ; then
10214 { echo "configure: error: DNSSRV requires res_query()" 1>&2; exit 1; }
10217 for ac_func in getaddrinfo gai_strerror inet_ntop
10219 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10220 echo "configure:10221: checking for $ac_func" >&5
10221 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10222 echo $ac_n "(cached) $ac_c" 1>&6
10224 cat > conftest.$ac_ext <<EOF
10225 #line 10226 "configure"
10226 #include "confdefs.h"
10227 /* System header to define __stub macros and hopefully few prototypes,
10228 which can conflict with char $ac_func(); below. */
10229 #include <assert.h>
10230 /* Override any gcc2 internal prototype to avoid an error. */
10231 /* We use char because int might match the return type of a gcc2
10232 builtin and then its argument prototype would still apply. */
10238 /* The GNU C library defines this for functions which it implements
10239 to always fail with ENOSYS. Some functions are actually named
10240 something starting with __ and the normal name is an alias. */
10241 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10249 if { (eval echo configure:10250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10251 eval "ac_cv_func_$ac_func=yes"
10253 echo "configure: failed program was:" >&5
10254 cat conftest.$ac_ext >&5
10256 eval "ac_cv_func_$ac_func=no"
10261 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10262 echo "$ac_t""yes" 1>&6
10263 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10264 cat >> confdefs.h <<EOF
10265 #define $ac_tr_func 1
10269 echo "$ac_t""no" 1>&6
10275 if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then
10276 if test $ol_enable_ipv6 = yes ; then
10277 { echo "configure: error: IPv6 support requires getaddrinfo() and inet_ntop()" 1>&2; exit 1; }
10279 elif test $ol_enable_ipv6 != no ; then
10280 echo $ac_n "checking INET6_ADDRSTRLEN""... $ac_c" 1>&6
10281 echo "configure:10282: checking INET6_ADDRSTRLEN" >&5
10282 if eval "test \"\${ol_cv_inet6_addrstrlen+set}\" = set"; then
10283 echo $ac_n "(cached) $ac_c" 1>&6
10286 cat > conftest.$ac_ext <<EOF
10287 #line 10288 "configure"
10288 #include "confdefs.h"
10290 # include <netinet/in.h>
10291 # ifdef INET6_ADDRSTRLEN
10292 __has_inet6_addrstrlen__;
10296 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10297 egrep "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
10299 ol_cv_inet6_addrstrlen=yes
10302 ol_cv_inet6_addrstrlen=no
10308 echo "$ac_t""$ol_cv_inet6_addrstrlen" 1>&6
10310 if test $ol_cv_inet6_addrstrlen = yes ; then
10312 elif test $ol_enable_ipv6 = yes ; then
10313 { echo "configure: error: IPv6 support requires INET6_ADDRSTRLEN" 1>&2; exit 1; }
10317 if test $ol_enable_local != no ; then
10318 for ac_hdr in sys/un.h
10320 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10321 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10322 echo "configure:10323: checking for $ac_hdr" >&5
10323 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10324 echo $ac_n "(cached) $ac_c" 1>&6
10326 cat > conftest.$ac_ext <<EOF
10327 #line 10328 "configure"
10328 #include "confdefs.h"
10331 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10332 { (eval echo configure:10333: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10333 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10334 if test -z "$ac_err"; then
10336 eval "ac_cv_header_$ac_safe=yes"
10339 echo "configure: failed program was:" >&5
10340 cat conftest.$ac_ext >&5
10342 eval "ac_cv_header_$ac_safe=no"
10346 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10347 echo "$ac_t""yes" 1>&6
10348 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10349 cat >> confdefs.h <<EOF
10350 #define $ac_tr_hdr 1
10354 echo "$ac_t""no" 1>&6
10359 if test $ol_enable_local = auto ; then
10360 ol_enable_local=$ac_cv_header_sys_un_h
10361 elif test $ac_cv_header_sys_un_h = no ; then
10362 { echo "configure: error: AF_LOCAL domain support requires sys/un.h" 1>&2; exit 1; }
10371 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
10372 -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
10373 -o $ol_with_kerberos = k425 ; then
10375 for ac_hdr in krb5.h
10377 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10378 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10379 echo "configure:10380: checking for $ac_hdr" >&5
10380 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10381 echo $ac_n "(cached) $ac_c" 1>&6
10383 cat > conftest.$ac_ext <<EOF
10384 #line 10385 "configure"
10385 #include "confdefs.h"
10388 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10389 { (eval echo configure:10390: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10390 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10391 if test -z "$ac_err"; then
10393 eval "ac_cv_header_$ac_safe=yes"
10396 echo "configure: failed program was:" >&5
10397 cat conftest.$ac_ext >&5
10399 eval "ac_cv_header_$ac_safe=no"
10403 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10404 echo "$ac_t""yes" 1>&6
10405 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10406 cat >> confdefs.h <<EOF
10407 #define $ac_tr_hdr 1
10411 echo "$ac_t""no" 1>&6
10416 if test $ac_cv_header_krb5_h = yes ; then
10417 for ac_hdr in heim_err.h
10419 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10420 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10421 echo "configure:10422: checking for $ac_hdr" >&5
10422 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10423 echo $ac_n "(cached) $ac_c" 1>&6
10425 cat > conftest.$ac_ext <<EOF
10426 #line 10427 "configure"
10427 #include "confdefs.h"
10430 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10431 { (eval echo configure:10432: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10432 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10433 if test -z "$ac_err"; then
10435 eval "ac_cv_header_$ac_safe=yes"
10438 echo "configure: failed program was:" >&5
10439 cat conftest.$ac_ext >&5
10441 eval "ac_cv_header_$ac_safe=no"
10445 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10446 echo "$ac_t""yes" 1>&6
10447 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10448 cat >> confdefs.h <<EOF
10449 #define $ac_tr_hdr 1
10453 echo "$ac_t""no" 1>&6
10457 if test $ac_cv_header_heim_err_h = yes ; then
10463 if test $krb5_impl = mit; then
10464 echo $ac_n "checking for main in -lk5crypto""... $ac_c" 1>&6
10465 echo "configure:10466: checking for main in -lk5crypto" >&5
10466 ac_lib_var=`echo k5crypto'_'main | sed 'y%./+-:%__p__%'`
10467 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10468 echo $ac_n "(cached) $ac_c" 1>&6
10470 ac_save_LIBS="$LIBS"
10471 LIBS="-lk5crypto $LIBS"
10472 cat > conftest.$ac_ext <<EOF
10473 #line 10474 "configure"
10474 #include "confdefs.h"
10480 if { (eval echo configure:10481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10482 eval "ac_cv_lib_$ac_lib_var=yes"
10484 echo "configure: failed program was:" >&5
10485 cat conftest.$ac_ext >&5
10487 eval "ac_cv_lib_$ac_lib_var=no"
10490 LIBS="$ac_save_LIBS"
10493 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10494 echo "$ac_t""yes" 1>&6
10495 krb5crypto=k5crypto
10497 echo "$ac_t""no" 1>&6
10502 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
10503 echo "configure:10504: checking for main in -lkrb5" >&5
10504 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
10505 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10506 echo $ac_n "(cached) $ac_c" 1>&6
10508 ac_save_LIBS="$LIBS"
10509 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
10510 cat > conftest.$ac_ext <<EOF
10511 #line 10512 "configure"
10512 #include "confdefs.h"
10518 if { (eval echo configure:10519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10520 eval "ac_cv_lib_$ac_lib_var=yes"
10522 echo "configure: failed program was:" >&5
10523 cat conftest.$ac_ext >&5
10525 eval "ac_cv_lib_$ac_lib_var=no"
10528 LIBS="$ac_save_LIBS"
10531 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10532 echo "$ac_t""yes" 1>&6
10534 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
10536 echo "$ac_t""no" 1>&6
10541 elif test $krb5_impl = heimdal; then
10542 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
10543 echo "configure:10544: checking for main in -lkrb5" >&5
10544 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
10545 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10546 echo $ac_n "(cached) $ac_c" 1>&6
10548 ac_save_LIBS="$LIBS"
10549 LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
10550 cat > conftest.$ac_ext <<EOF
10551 #line 10552 "configure"
10552 #include "confdefs.h"
10558 if { (eval echo configure:10559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10560 eval "ac_cv_lib_$ac_lib_var=yes"
10562 echo "configure: failed program was:" >&5
10563 cat conftest.$ac_ext >&5
10565 eval "ac_cv_lib_$ac_lib_var=no"
10568 LIBS="$ac_save_LIBS"
10571 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10572 echo "$ac_t""yes" 1>&6
10574 KRB5_LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err"
10576 echo "$ac_t""no" 1>&6
10581 cat >> confdefs.h <<\EOF
10582 #define HAVE_HEIMDAL_KERBEROS 1
10588 echo "configure: warning: Unrecongized Kerberos5 Implementation" 1>&2
10591 if test $have_krb5 = yes ; then
10594 cat >> confdefs.h <<\EOF
10595 #define HAVE_KRB5 1
10599 if test $ol_enable_kpasswd != no ; then
10600 ol_link_kpasswd=yes;
10603 if test $ol_with_kerberos = k5only ; then
10604 ol_with_kerberos=found
10607 elif test $ol_with_kerberos != auto ; then
10608 { echo "configure: error: Required Kerberos 5 support not available" 1>&2; exit 1; }
10614 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
10615 $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
10617 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
10619 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10620 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10621 echo "configure:10622: checking for $ac_hdr" >&5
10622 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10623 echo $ac_n "(cached) $ac_c" 1>&6
10625 cat > conftest.$ac_ext <<EOF
10626 #line 10627 "configure"
10627 #include "confdefs.h"
10630 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10631 { (eval echo configure:10632: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10632 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10633 if test -z "$ac_err"; then
10635 eval "ac_cv_header_$ac_safe=yes"
10638 echo "configure: failed program was:" >&5
10639 cat conftest.$ac_ext >&5
10641 eval "ac_cv_header_$ac_safe=no"
10645 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10646 echo "$ac_t""yes" 1>&6
10647 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10648 cat >> confdefs.h <<EOF
10649 #define $ac_tr_hdr 1
10653 echo "$ac_t""no" 1>&6
10658 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
10659 if test $krb5_impl = mit; then
10660 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
10661 echo "configure:10662: checking for main in -lkrb4" >&5
10662 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
10663 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10664 echo $ac_n "(cached) $ac_c" 1>&6
10666 ac_save_LIBS="$LIBS"
10667 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
10668 cat > conftest.$ac_ext <<EOF
10669 #line 10670 "configure"
10670 #include "confdefs.h"
10676 if { (eval echo configure:10677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10678 eval "ac_cv_lib_$ac_lib_var=yes"
10680 echo "configure: failed program was:" >&5
10681 cat conftest.$ac_ext >&5
10683 eval "ac_cv_lib_$ac_lib_var=no"
10686 LIBS="$ac_save_LIBS"
10689 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10690 echo "$ac_t""yes" 1>&6
10692 KRB4_LIBS="-lkrb4 -ldes425"
10694 echo "$ac_t""no" 1>&6
10699 elif test $krb5_impl = heimdal; then
10700 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
10701 echo "configure:10702: checking for main in -lkrb4" >&5
10702 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
10703 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10704 echo $ac_n "(cached) $ac_c" 1>&6
10706 ac_save_LIBS="$LIBS"
10707 LIBS="-lkrb4 -lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
10708 cat > conftest.$ac_ext <<EOF
10709 #line 10710 "configure"
10710 #include "confdefs.h"
10716 if { (eval echo configure:10717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10718 eval "ac_cv_lib_$ac_lib_var=yes"
10720 echo "configure: failed program was:" >&5
10721 cat conftest.$ac_ext >&5
10723 eval "ac_cv_lib_$ac_lib_var=no"
10726 LIBS="$ac_save_LIBS"
10729 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10730 echo "$ac_t""yes" 1>&6
10734 echo "$ac_t""no" 1>&6
10741 echo "configure: warning: Unrecongized Kerberos V Implementation" 1>&2
10744 if test $have_k425 = yes ; then
10745 ol_with_kerberos=found
10748 cat >> confdefs.h <<\EOF
10749 #define HAVE_KRB425 1
10752 cat >> confdefs.h <<\EOF
10753 #define HAVE_KRB4 1
10757 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
10758 echo "configure:10759: checking for des_debug in Kerberos libraries" >&5
10759 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
10760 echo $ac_n "(cached) $ac_c" 1>&6
10764 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
10765 cat > conftest.$ac_ext <<EOF
10766 #line 10767 "configure"
10767 #include "confdefs.h"
10769 #include <kerberosIV/krb.h>
10770 #include <kerberosIV/des.h>
10771 extern int des_debug;
10779 if { (eval echo configure:10780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10781 ol_cv_var_des_debug=yes
10783 echo "configure: failed program was:" >&5
10784 cat conftest.$ac_ext >&5
10786 ol_cv_var_des_debug=no
10793 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
10795 if test $ol_cv_var_des_debug = yes ; then
10796 cat >> confdefs.h <<\EOF
10797 #define HAVE_DES_DEBUG 1
10807 if test $ol_link_krb5 = yes ; then
10808 ol_with_kerberos=found
10811 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
10812 -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
10814 for ac_hdr in krb.h des.h krb-archaeology.h
10816 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10817 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10818 echo "configure:10819: checking for $ac_hdr" >&5
10819 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10820 echo $ac_n "(cached) $ac_c" 1>&6
10822 cat > conftest.$ac_ext <<EOF
10823 #line 10824 "configure"
10824 #include "confdefs.h"
10827 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10828 { (eval echo configure:10829: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10829 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10830 if test -z "$ac_err"; then
10832 eval "ac_cv_header_$ac_safe=yes"
10835 echo "configure: failed program was:" >&5
10836 cat conftest.$ac_ext >&5
10838 eval "ac_cv_header_$ac_safe=no"
10842 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10843 echo "$ac_t""yes" 1>&6
10844 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10845 cat >> confdefs.h <<EOF
10846 #define $ac_tr_hdr 1
10850 echo "$ac_t""no" 1>&6
10855 if test $ac_cv_header_krb_h = yes ; then
10856 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
10857 echo "configure:10858: checking for main in -lkrb" >&5
10858 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
10859 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10860 echo $ac_n "(cached) $ac_c" 1>&6
10862 ac_save_LIBS="$LIBS"
10863 LIBS="-lkrb -ldes $LIBS"
10864 cat > conftest.$ac_ext <<EOF
10865 #line 10866 "configure"
10866 #include "confdefs.h"
10872 if { (eval echo configure:10873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10874 eval "ac_cv_lib_$ac_lib_var=yes"
10876 echo "configure: failed program was:" >&5
10877 cat conftest.$ac_ext >&5
10879 eval "ac_cv_lib_$ac_lib_var=no"
10882 LIBS="$ac_save_LIBS"
10885 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10886 echo "$ac_t""yes" 1>&6
10889 echo "$ac_t""no" 1>&6
10894 if test $have_k4 = yes ; then
10895 ol_with_kerberos=found
10898 cat >> confdefs.h <<\EOF
10899 #define HAVE_KRB4 1
10903 KRB4_LIBS="-lkrb -ldes"
10905 if test $ac_cv_header_krb_archaeology_h = yes ; then
10906 cat >> confdefs.h <<\EOF
10907 #define HAVE_KTH_KERBEROS 1
10915 if test $ol_link_krb4 = yes -a $ol_enable_kpasswd != no ; then
10916 ol_link_kpasswd=yes
10919 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
10922 elif test $ol_enable_kbind = yes ; then
10923 { echo "configure: error: Kerberos IV detection failed" 1>&2; exit 1; }
10926 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
10927 cat >> confdefs.h <<\EOF
10928 #define HAVE_KERBEROS 1
10932 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
10933 { echo "configure: error: Kerberos detection failed" 1>&2; exit 1; }
10937 if test $ol_with_tls != no ; then
10938 for ac_hdr in openssl/ssl.h ssl.h
10940 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10941 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10942 echo "configure:10943: checking for $ac_hdr" >&5
10943 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10944 echo $ac_n "(cached) $ac_c" 1>&6
10946 cat > conftest.$ac_ext <<EOF
10947 #line 10948 "configure"
10948 #include "confdefs.h"
10951 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10952 { (eval echo configure:10953: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10953 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10954 if test -z "$ac_err"; then
10956 eval "ac_cv_header_$ac_safe=yes"
10959 echo "configure: failed program was:" >&5
10960 cat conftest.$ac_ext >&5
10962 eval "ac_cv_header_$ac_safe=no"
10966 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10967 echo "$ac_t""yes" 1>&6
10968 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10969 cat >> confdefs.h <<EOF
10970 #define $ac_tr_hdr 1
10974 echo "$ac_t""no" 1>&6
10979 if test $ac_cv_header_openssl_ssl_h = yes -o $ac_cv_header_ssl_h = yes ; then
10980 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
10981 echo "configure:10982: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
10982 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
10983 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10984 echo $ac_n "(cached) $ac_c" 1>&6
10986 ac_save_LIBS="$LIBS"
10987 LIBS="-lssl -lcrypto $LIBS"
10988 cat > conftest.$ac_ext <<EOF
10989 #line 10990 "configure"
10990 #include "confdefs.h"
10991 /* Override any gcc2 internal prototype to avoid an error. */
10992 /* We use char because int might match the return type of a gcc2
10993 builtin and then its argument prototype would still apply. */
10994 char SSLeay_add_ssl_algorithms();
10997 SSLeay_add_ssl_algorithms()
11000 if { (eval echo configure:11001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11002 eval "ac_cv_lib_$ac_lib_var=yes"
11004 echo "configure: failed program was:" >&5
11005 cat conftest.$ac_ext >&5
11007 eval "ac_cv_lib_$ac_lib_var=no"
11010 LIBS="$ac_save_LIBS"
11013 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11014 echo "$ac_t""yes" 1>&6
11018 echo "$ac_t""no" 1>&6
11023 if test $have_ssleay = no ; then
11024 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
11025 echo "configure:11026: checking for SSL_library_init in -lssl" >&5
11026 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
11027 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11028 echo $ac_n "(cached) $ac_c" 1>&6
11030 ac_save_LIBS="$LIBS"
11031 LIBS="-lssl -lcrypto $LIBS"
11032 cat > conftest.$ac_ext <<EOF
11033 #line 11034 "configure"
11034 #include "confdefs.h"
11035 /* Override any gcc2 internal prototype to avoid an error. */
11036 /* We use char because int might match the return type of a gcc2
11037 builtin and then its argument prototype would still apply. */
11038 char SSL_library_init();
11044 if { (eval echo configure:11045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11046 eval "ac_cv_lib_$ac_lib_var=yes"
11048 echo "configure: failed program was:" >&5
11049 cat conftest.$ac_ext >&5
11051 eval "ac_cv_lib_$ac_lib_var=no"
11054 LIBS="$ac_save_LIBS"
11057 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11058 echo "$ac_t""yes" 1>&6
11062 echo "$ac_t""no" 1>&6
11068 if test $have_ssleay = no ; then
11069 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
11070 echo "configure:11071: checking for ssl3_accept in -lssl" >&5
11071 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
11072 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11073 echo $ac_n "(cached) $ac_c" 1>&6
11075 ac_save_LIBS="$LIBS"
11076 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
11077 cat > conftest.$ac_ext <<EOF
11078 #line 11079 "configure"
11079 #include "confdefs.h"
11080 /* Override any gcc2 internal prototype to avoid an error. */
11081 /* We use char because int might match the return type of a gcc2
11082 builtin and then its argument prototype would still apply. */
11083 char ssl3_accept();
11089 if { (eval echo configure:11090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11091 eval "ac_cv_lib_$ac_lib_var=yes"
11093 echo "configure: failed program was:" >&5
11094 cat conftest.$ac_ext >&5
11096 eval "ac_cv_lib_$ac_lib_var=no"
11099 LIBS="$ac_save_LIBS"
11102 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11103 echo "$ac_t""yes" 1>&6
11107 echo "$ac_t""no" 1>&6
11113 if test $have_ssleay = yes ; then
11117 cat >> confdefs.h <<\EOF
11118 #define HAVE_SSLEAY 1
11122 if test $need_rsaref = yes; then
11123 cat >> confdefs.h <<\EOF
11124 #define HAVE_RSAREF 1
11128 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
11130 TLS_LIBS="-lssl -lcrypto"
11136 echo "configure: warning: TLS privacy protection not supported!" 1>&2
11139 if test $ol_link_tls = yes ; then
11140 cat >> confdefs.h <<\EOF
11145 elif test $ol_with_tls = auto ; then
11146 echo "configure: warning: Could not locate TLS/SSL package" 1>&2
11147 echo "configure: warning: TLS privacy protection not supported!" 1>&2
11149 elif test $ol_with_tls != no ; then
11150 { echo "configure: error: Could not locate TLS/SSL package" 1>&2; exit 1; }
11153 if test $ol_enable_lmpasswd != no; then
11154 if test $ol_link_tls != yes ; then
11155 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
11158 cat >> confdefs.h <<\EOF
11159 #define SLAPD_LMHASH 1
11166 gethostbyname_r gethostbyaddr_r \
11169 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11170 echo "configure:11171: checking for $ac_func" >&5
11171 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11172 echo $ac_n "(cached) $ac_c" 1>&6
11174 cat > conftest.$ac_ext <<EOF
11175 #line 11176 "configure"
11176 #include "confdefs.h"
11177 /* System header to define __stub macros and hopefully few prototypes,
11178 which can conflict with char $ac_func(); below. */
11179 #include <assert.h>
11180 /* Override any gcc2 internal prototype to avoid an error. */
11181 /* We use char because int might match the return type of a gcc2
11182 builtin and then its argument prototype would still apply. */
11188 /* The GNU C library defines this for functions which it implements
11189 to always fail with ENOSYS. Some functions are actually named
11190 something starting with __ and the normal name is an alias. */
11191 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11199 if { (eval echo configure:11200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11201 eval "ac_cv_func_$ac_func=yes"
11203 echo "configure: failed program was:" >&5
11204 cat conftest.$ac_ext >&5
11206 eval "ac_cv_func_$ac_func=no"
11211 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11212 echo "$ac_t""yes" 1>&6
11213 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11214 cat >> confdefs.h <<EOF
11215 #define $ac_tr_func 1
11219 echo "$ac_t""no" 1>&6
11224 if test "$ac_cv_func_ctime_r" = no ; then
11225 ol_cv_func_ctime_r_nargs=0
11227 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
11228 echo "configure:11229: checking number of arguments of ctime_r" >&5
11229 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
11230 echo $ac_n "(cached) $ac_c" 1>&6
11232 cat > conftest.$ac_ext <<EOF
11233 #line 11234 "configure"
11234 #include "confdefs.h"
11237 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
11240 if { (eval echo configure:11241: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11242 ol_cv_func_ctime_r_nargs3=yes
11244 echo "configure: failed program was:" >&5
11245 cat conftest.$ac_ext >&5
11247 ol_cv_func_ctime_r_nargs3=no
11251 cat > conftest.$ac_ext <<EOF
11252 #line 11253 "configure"
11253 #include "confdefs.h"
11256 time_t ti; char *buffer; ctime_r(&ti,buffer);
11259 if { (eval echo configure:11260: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11261 ol_cv_func_ctime_r_nargs2=yes
11263 echo "configure: failed program was:" >&5
11264 cat conftest.$ac_ext >&5
11266 ol_cv_func_ctime_r_nargs2=no
11270 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
11271 $ol_cv_func_ctime_r_nargs2 = no ; then
11273 ol_cv_func_ctime_r_nargs=3
11275 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
11276 $ol_cv_func_ctime_r_nargs2 = yes ; then
11278 ol_cv_func_ctime_r_nargs=2
11281 ol_cv_func_ctime_r_nargs=0
11286 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
11288 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
11289 cat >> confdefs.h <<EOF
11290 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
11297 if test "$ac_cv_func_gethostbyname_r" = yes ; then
11298 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
11299 echo "configure:11300: checking number of arguments of gethostbyname_r" >&5
11300 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
11301 echo $ac_n "(cached) $ac_c" 1>&6
11303 cat > conftest.$ac_ext <<EOF
11304 #line 11305 "configure"
11305 #include "confdefs.h"
11306 #include <sys/types.h>
11307 #include <sys/socket.h>
11308 #include <netinet/in.h>
11310 #define BUFSIZE (sizeof(struct hostent)+10)
11312 struct hostent hent; char buffer[BUFSIZE];
11313 int bufsize=BUFSIZE;int h_errno;
11314 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
11315 buffer, bufsize, &h_errno);
11318 if { (eval echo configure:11319: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11320 ol_cv_func_gethostbyname_r_nargs5=yes
11322 echo "configure: failed program was:" >&5
11323 cat conftest.$ac_ext >&5
11325 ol_cv_func_gethostbyname_r_nargs5=no
11329 cat > conftest.$ac_ext <<EOF
11330 #line 11331 "configure"
11331 #include "confdefs.h"
11332 #include <sys/types.h>
11333 #include <sys/socket.h>
11334 #include <netinet/in.h>
11336 #define BUFSIZE (sizeof(struct hostent)+10)
11338 struct hostent hent;struct hostent *rhent;
11339 char buffer[BUFSIZE];
11340 int bufsize=BUFSIZE;int h_errno;
11341 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
11345 if { (eval echo configure:11346: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11347 ol_cv_func_gethostbyname_r_nargs6=yes
11349 echo "configure: failed program was:" >&5
11350 cat conftest.$ac_ext >&5
11352 ol_cv_func_gethostbyname_r_nargs6=no
11356 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
11357 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
11359 ol_cv_func_gethostbyname_r_nargs=5
11361 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
11362 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
11364 ol_cv_func_gethostbyname_r_nargs=6
11367 ol_cv_func_gethostbyname_r_nargs=0
11372 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
11373 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
11374 cat >> confdefs.h <<EOF
11375 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
11381 ol_cv_func_gethostbyname_r_nargs=0
11384 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
11385 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
11386 echo "configure:11387: checking number of arguments of gethostbyaddr_r" >&5
11387 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
11388 echo $ac_n "(cached) $ac_c" 1>&6
11390 cat > conftest.$ac_ext <<EOF
11391 #line 11392 "configure"
11392 #include "confdefs.h"
11393 #include <sys/types.h>
11394 #include <sys/socket.h>
11395 #include <netinet/in.h>
11397 #define BUFSIZE (sizeof(struct hostent)+10)
11399 struct hostent hent; char buffer[BUFSIZE];
11400 struct in_addr add;
11401 size_t alen=sizeof(struct in_addr);
11402 int bufsize=BUFSIZE;int h_errno;
11403 (void)gethostbyaddr_r( (void *)&(add.s_addr),
11404 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
11407 if { (eval echo configure:11408: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11409 ol_cv_func_gethostbyaddr_r_nargs7=yes
11411 echo "configure: failed program was:" >&5
11412 cat conftest.$ac_ext >&5
11414 ol_cv_func_gethostbyaddr_r_nargs7=no
11418 cat > conftest.$ac_ext <<EOF
11419 #line 11420 "configure"
11420 #include "confdefs.h"
11421 #include <sys/types.h>
11422 #include <sys/socket.h>
11423 #include <netinet/in.h>
11425 #define BUFSIZE (sizeof(struct hostent)+10)
11427 struct hostent hent;
11428 struct hostent *rhent; char buffer[BUFSIZE];
11429 struct in_addr add;
11430 size_t alen=sizeof(struct in_addr);
11431 int bufsize=BUFSIZE;int h_errno;
11432 (void)gethostbyaddr_r( (void *)&(add.s_addr),
11433 alen, AF_INET, &hent, buffer, bufsize,
11437 if { (eval echo configure:11438: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11439 ol_cv_func_gethostbyaddr_r_nargs8=yes
11441 echo "configure: failed program was:" >&5
11442 cat conftest.$ac_ext >&5
11444 ol_cv_func_gethostbyaddr_r_nargs8=no
11448 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
11449 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
11451 ol_cv_func_gethostbyaddr_r_nargs=7
11453 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
11454 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
11456 ol_cv_func_gethostbyaddr_r_nargs=8
11459 ol_cv_func_gethostbyaddr_r_nargs=0
11464 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
11465 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
11466 cat >> confdefs.h <<EOF
11467 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
11473 ol_cv_func_gethostbyaddr_r_nargs=0
11476 if test "$ac_cv_func_ctime_r" = yes \
11477 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
11478 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
11479 -a "$ac_cv_func_gethostbyname_r" = yes \
11480 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
11481 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
11482 -a "$ac_cv_func_gethostbyaddr_r" = yes \
11483 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
11484 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
11487 cat >> confdefs.h <<\EOF
11488 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
11495 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11496 -o $ol_with_threads = nt ; then
11499 echo $ac_n "checking for _beginthread""... $ac_c" 1>&6
11500 echo "configure:11501: checking for _beginthread" >&5
11501 if eval "test \"\${ac_cv_func__beginthread+set}\" = set"; then
11502 echo $ac_n "(cached) $ac_c" 1>&6
11504 cat > conftest.$ac_ext <<EOF
11505 #line 11506 "configure"
11506 #include "confdefs.h"
11507 /* System header to define __stub macros and hopefully few prototypes,
11508 which can conflict with char _beginthread(); below. */
11509 #include <assert.h>
11510 /* Override any gcc2 internal prototype to avoid an error. */
11511 /* We use char because int might match the return type of a gcc2
11512 builtin and then its argument prototype would still apply. */
11513 char _beginthread();
11518 /* The GNU C library defines this for functions which it implements
11519 to always fail with ENOSYS. Some functions are actually named
11520 something starting with __ and the normal name is an alias. */
11521 #if defined (__stub__beginthread) || defined (__stub____beginthread)
11529 if { (eval echo configure:11530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11531 eval "ac_cv_func__beginthread=yes"
11533 echo "configure: failed program was:" >&5
11534 cat conftest.$ac_ext >&5
11536 eval "ac_cv_func__beginthread=no"
11541 if eval "test \"`echo '$ac_cv_func_'_beginthread`\" = yes"; then
11542 echo "$ac_t""yes" 1>&6
11545 echo "$ac_t""no" 1>&6
11549 if test $ac_cv_func__beginthread = yes ; then
11550 cat >> confdefs.h <<\EOF
11551 #define HAVE_NT_THREADS 1
11554 ol_cv_nt_threads=yes
11558 if test "$ol_cv_nt_threads" = yes ; then
11560 ol_with_threads=found
11561 ol_with_yielding_select=yes
11563 cat >> confdefs.h <<\EOF
11564 #define HAVE_NT_SERVICE_MANAGER 1
11567 cat >> confdefs.h <<\EOF
11568 #define HAVE_NT_EVENT_LOG 1
11573 if test $ol_with_threads = nt ; then
11574 { echo "configure: error: could not locate NT Threads" 1>&2; exit 1; }
11578 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11579 -o $ol_with_threads = posix ; then
11581 for ac_hdr in pthread.h
11583 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11584 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11585 echo "configure:11586: checking for $ac_hdr" >&5
11586 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11587 echo $ac_n "(cached) $ac_c" 1>&6
11589 cat > conftest.$ac_ext <<EOF
11590 #line 11591 "configure"
11591 #include "confdefs.h"
11594 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11595 { (eval echo configure:11596: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11596 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11597 if test -z "$ac_err"; then
11599 eval "ac_cv_header_$ac_safe=yes"
11602 echo "configure: failed program was:" >&5
11603 cat conftest.$ac_ext >&5
11605 eval "ac_cv_header_$ac_safe=no"
11609 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11610 echo "$ac_t""yes" 1>&6
11611 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11612 cat >> confdefs.h <<EOF
11613 #define $ac_tr_hdr 1
11617 echo "$ac_t""no" 1>&6
11622 if test $ac_cv_header_pthread_h = yes ; then
11623 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
11624 echo "configure:11625: checking POSIX thread version" >&5
11625 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
11626 echo $ac_n "(cached) $ac_c" 1>&6
11629 cat > conftest.$ac_ext <<EOF
11630 #line 11631 "configure"
11631 #include "confdefs.h"
11633 # include <pthread.h>
11634 /* this check could be improved */
11635 # ifdef PTHREAD_ONCE_INIT
11636 pthread_version_final;
11640 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11641 egrep "pthread_version_final" >/dev/null 2>&1; then
11643 ol_pthread_final=yes
11646 ol_pthread_final=no
11651 cat > conftest.$ac_ext <<EOF
11652 #line 11653 "configure"
11653 #include "confdefs.h"
11655 # include <pthread.h>
11656 /* this check could be improved */
11657 # ifdef pthread_once_init
11658 pthread_version_draft4;
11662 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11663 egrep "pthread_version_draft4" >/dev/null 2>&1; then
11665 ol_pthread_draft4=yes
11668 ol_pthread_draft4=no
11673 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
11674 ol_cv_pthread_version=final
11675 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
11676 ol_cv_pthread_version=draft4
11678 ol_cv_pthread_version=unknown
11683 echo "$ac_t""$ol_cv_pthread_version" 1>&6
11686 if test $ol_cv_pthread_version = final ; then
11687 cat >> confdefs.h <<\EOF
11688 #define HAVE_PTHREADS_FINAL 1
11691 elif test $ol_cv_pthread_version = draft4 ; then
11692 cat >> confdefs.h <<\EOF
11693 #define HAVE_PTHREADS_D4 1
11697 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
11700 # consider threads found
11701 ol_with_threads=found
11704 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
11705 echo "configure:11706: checking for LinuxThreads pthread.h" >&5
11706 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
11707 echo $ac_n "(cached) $ac_c" 1>&6
11709 cat > conftest.$ac_ext <<EOF
11710 #line 11711 "configure"
11711 #include "confdefs.h"
11712 #include <pthread.h>
11714 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11715 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
11717 ol_cv_header_linux_threads=yes
11720 ol_cv_header_linux_threads=no
11727 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
11728 if test $ol_cv_header_linux_threads = yes; then
11729 cat >> confdefs.h <<\EOF
11730 #define HAVE_LINUX_THREADS 1
11736 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
11737 echo "configure:11738: checking for GNU Pth pthread.h" >&5
11738 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
11739 echo $ac_n "(cached) $ac_c" 1>&6
11741 cat > conftest.$ac_ext <<EOF
11742 #line 11743 "configure"
11743 #include "confdefs.h"
11744 #include <pthread.h>
11745 #ifdef _POSIX_THREAD_IS_GNU_PTH
11750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11751 egrep "__gnu_pth__" >/dev/null 2>&1; then
11753 ol_cv_header_gnu_pth_pthread_h=yes
11756 ol_cv_header_gnu_pth_pthread_h=no
11763 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
11766 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
11767 for ac_hdr in sched.h
11769 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11770 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11771 echo "configure:11772: checking for $ac_hdr" >&5
11772 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11773 echo $ac_n "(cached) $ac_c" 1>&6
11775 cat > conftest.$ac_ext <<EOF
11776 #line 11777 "configure"
11777 #include "confdefs.h"
11780 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11781 { (eval echo configure:11782: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11782 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11783 if test -z "$ac_err"; then
11785 eval "ac_cv_header_$ac_safe=yes"
11788 echo "configure: failed program was:" >&5
11789 cat conftest.$ac_ext >&5
11791 eval "ac_cv_header_$ac_safe=no"
11795 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11796 echo "$ac_t""yes" 1>&6
11797 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11798 cat >> confdefs.h <<EOF
11799 #define $ac_tr_hdr 1
11803 echo "$ac_t""no" 1>&6
11810 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
11811 echo "configure:11812: checking for pthread_create in default libraries" >&5
11812 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
11813 echo $ac_n "(cached) $ac_c" 1>&6
11816 if test "$cross_compiling" = yes; then
11817 cat > conftest.$ac_ext <<EOF
11818 #line 11819 "configure"
11819 #include "confdefs.h"
11820 /* pthread test headers */
11821 #include <pthread.h>
11823 #define NULL (void*)0
11826 static void *task(p)
11829 return (void *) (p == NULL);
11834 /* pthread test function */
11839 #ifdef HAVE_PTHREADS_FINAL
11840 /* Final pthreads */
11841 pthread_attr_t attr;
11843 status = pthread_attr_init(&attr);
11844 if( status ) return status;
11846 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
11848 #if defined( PTHREAD_CREATE_JOINABLE )
11849 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
11851 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
11854 #ifdef PTHREAD_CREATE_DETACHED
11856 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
11859 if( status ) return status;
11862 status = pthread_create( &t, &attr, task, NULL );
11863 if( status ) return status;
11865 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
11867 /* give thread a chance to complete */
11868 /* it should remain joinable and hence detachable */
11871 status = pthread_detach( t );
11872 if( status ) return status;
11877 /* Draft 4 pthreads */
11878 status = pthread_create( &t, pthread_attr_default, task, NULL );
11879 if( status ) return status;
11882 /* give thread a chance to complete */
11883 /* it should remain joinable and hence detachable */
11886 status = pthread_detach( &t );
11887 if( status ) return status;
11891 #ifdef HAVE_LINUX_THREADS
11892 pthread_kill_other_threads_np();
11899 if { (eval echo configure:11900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11901 ol_cv_pthread_create=yes
11903 echo "configure: failed program was:" >&5
11904 cat conftest.$ac_ext >&5
11906 ol_cv_pthread_create=no
11910 cat > conftest.$ac_ext <<EOF
11911 #line 11912 "configure"
11912 #include "confdefs.h"
11913 /* pthread test headers */
11914 #include <pthread.h>
11916 #define NULL (void*)0
11919 static void *task(p)
11922 return (void *) (p == NULL);
11926 int main(argc, argv)
11931 /* pthread test function */
11936 #ifdef HAVE_PTHREADS_FINAL
11937 /* Final pthreads */
11938 pthread_attr_t attr;
11940 status = pthread_attr_init(&attr);
11941 if( status ) return status;
11943 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
11945 #if defined( PTHREAD_CREATE_JOINABLE )
11946 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
11948 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
11951 #ifdef PTHREAD_CREATE_DETACHED
11953 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
11956 if( status ) return status;
11959 status = pthread_create( &t, &attr, task, NULL );
11960 if( status ) return status;
11962 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
11964 /* give thread a chance to complete */
11965 /* it should remain joinable and hence detachable */
11968 status = pthread_detach( t );
11969 if( status ) return status;
11974 /* Draft 4 pthreads */
11975 status = pthread_create( &t, pthread_attr_default, task, NULL );
11976 if( status ) return status;
11979 /* give thread a chance to complete */
11980 /* it should remain joinable and hence detachable */
11983 status = pthread_detach( &t );
11984 if( status ) return status;
11988 #ifdef HAVE_LINUX_THREADS
11989 pthread_kill_other_threads_np();
11997 if { (eval echo configure:11998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11999 ol_cv_pthread_create=yes
12001 echo "configure: failed program was:" >&5
12002 cat conftest.$ac_ext >&5
12004 ol_cv_pthread_create=no
12011 echo "$ac_t""$ol_cv_pthread_create" 1>&6
12013 if test $ol_cv_pthread_create != no ; then
12014 ol_link_threads=posix
12015 ol_link_pthreads=""
12018 # Pthread try link: -kthread (ol_cv_pthread_kthread)
12019 if test "$ol_link_threads" = no ; then
12021 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
12022 echo "configure:12023: checking for pthread link with -kthread" >&5
12023 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
12024 echo $ac_n "(cached) $ac_c" 1>&6
12029 LIBS="-kthread $LIBS"
12031 if test "$cross_compiling" = yes; then
12032 cat > conftest.$ac_ext <<EOF
12033 #line 12034 "configure"
12034 #include "confdefs.h"
12035 /* pthread test headers */
12036 #include <pthread.h>
12038 #define NULL (void*)0
12041 static void *task(p)
12044 return (void *) (p == NULL);
12049 /* pthread test function */
12054 #ifdef HAVE_PTHREADS_FINAL
12055 /* Final pthreads */
12056 pthread_attr_t attr;
12058 status = pthread_attr_init(&attr);
12059 if( status ) return status;
12061 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12063 #if defined( PTHREAD_CREATE_JOINABLE )
12064 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12066 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12069 #ifdef PTHREAD_CREATE_DETACHED
12071 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12074 if( status ) return status;
12077 status = pthread_create( &t, &attr, task, NULL );
12078 if( status ) return status;
12080 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12082 /* give thread a chance to complete */
12083 /* it should remain joinable and hence detachable */
12086 status = pthread_detach( t );
12087 if( status ) return status;
12092 /* Draft 4 pthreads */
12093 status = pthread_create( &t, pthread_attr_default, task, NULL );
12094 if( status ) return status;
12097 /* give thread a chance to complete */
12098 /* it should remain joinable and hence detachable */
12101 status = pthread_detach( &t );
12102 if( status ) return status;
12106 #ifdef HAVE_LINUX_THREADS
12107 pthread_kill_other_threads_np();
12114 if { (eval echo configure:12115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12116 ol_cv_pthread_kthread=yes
12118 echo "configure: failed program was:" >&5
12119 cat conftest.$ac_ext >&5
12121 ol_cv_pthread_kthread=no
12125 cat > conftest.$ac_ext <<EOF
12126 #line 12127 "configure"
12127 #include "confdefs.h"
12128 /* pthread test headers */
12129 #include <pthread.h>
12131 #define NULL (void*)0
12134 static void *task(p)
12137 return (void *) (p == NULL);
12141 int main(argc, argv)
12146 /* pthread test function */
12151 #ifdef HAVE_PTHREADS_FINAL
12152 /* Final pthreads */
12153 pthread_attr_t attr;
12155 status = pthread_attr_init(&attr);
12156 if( status ) return status;
12158 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12160 #if defined( PTHREAD_CREATE_JOINABLE )
12161 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12163 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12166 #ifdef PTHREAD_CREATE_DETACHED
12168 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12171 if( status ) return status;
12174 status = pthread_create( &t, &attr, task, NULL );
12175 if( status ) return status;
12177 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12179 /* give thread a chance to complete */
12180 /* it should remain joinable and hence detachable */
12183 status = pthread_detach( t );
12184 if( status ) return status;
12189 /* Draft 4 pthreads */
12190 status = pthread_create( &t, pthread_attr_default, task, NULL );
12191 if( status ) return status;
12194 /* give thread a chance to complete */
12195 /* it should remain joinable and hence detachable */
12198 status = pthread_detach( &t );
12199 if( status ) return status;
12203 #ifdef HAVE_LINUX_THREADS
12204 pthread_kill_other_threads_np();
12212 if { (eval echo configure:12213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12214 ol_cv_pthread_kthread=yes
12216 echo "configure: failed program was:" >&5
12217 cat conftest.$ac_ext >&5
12219 ol_cv_pthread_kthread=no
12230 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
12232 if test $ol_cv_pthread_kthread = yes ; then
12233 ol_link_pthreads="-kthread"
12234 ol_link_threads=posix
12238 # Pthread try link: -pthread (ol_cv_pthread_pthread)
12239 if test "$ol_link_threads" = no ; then
12241 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
12242 echo "configure:12243: checking for pthread link with -pthread" >&5
12243 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
12244 echo $ac_n "(cached) $ac_c" 1>&6
12249 LIBS="-pthread $LIBS"
12251 if test "$cross_compiling" = yes; then
12252 cat > conftest.$ac_ext <<EOF
12253 #line 12254 "configure"
12254 #include "confdefs.h"
12255 /* pthread test headers */
12256 #include <pthread.h>
12258 #define NULL (void*)0
12261 static void *task(p)
12264 return (void *) (p == NULL);
12269 /* pthread test function */
12274 #ifdef HAVE_PTHREADS_FINAL
12275 /* Final pthreads */
12276 pthread_attr_t attr;
12278 status = pthread_attr_init(&attr);
12279 if( status ) return status;
12281 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12283 #if defined( PTHREAD_CREATE_JOINABLE )
12284 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12286 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12289 #ifdef PTHREAD_CREATE_DETACHED
12291 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12294 if( status ) return status;
12297 status = pthread_create( &t, &attr, task, NULL );
12298 if( status ) return status;
12300 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12302 /* give thread a chance to complete */
12303 /* it should remain joinable and hence detachable */
12306 status = pthread_detach( t );
12307 if( status ) return status;
12312 /* Draft 4 pthreads */
12313 status = pthread_create( &t, pthread_attr_default, task, NULL );
12314 if( status ) return status;
12317 /* give thread a chance to complete */
12318 /* it should remain joinable and hence detachable */
12321 status = pthread_detach( &t );
12322 if( status ) return status;
12326 #ifdef HAVE_LINUX_THREADS
12327 pthread_kill_other_threads_np();
12334 if { (eval echo configure:12335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12336 ol_cv_pthread_pthread=yes
12338 echo "configure: failed program was:" >&5
12339 cat conftest.$ac_ext >&5
12341 ol_cv_pthread_pthread=no
12345 cat > conftest.$ac_ext <<EOF
12346 #line 12347 "configure"
12347 #include "confdefs.h"
12348 /* pthread test headers */
12349 #include <pthread.h>
12351 #define NULL (void*)0
12354 static void *task(p)
12357 return (void *) (p == NULL);
12361 int main(argc, argv)
12366 /* pthread test function */
12371 #ifdef HAVE_PTHREADS_FINAL
12372 /* Final pthreads */
12373 pthread_attr_t attr;
12375 status = pthread_attr_init(&attr);
12376 if( status ) return status;
12378 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12380 #if defined( PTHREAD_CREATE_JOINABLE )
12381 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12383 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12386 #ifdef PTHREAD_CREATE_DETACHED
12388 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12391 if( status ) return status;
12394 status = pthread_create( &t, &attr, task, NULL );
12395 if( status ) return status;
12397 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12399 /* give thread a chance to complete */
12400 /* it should remain joinable and hence detachable */
12403 status = pthread_detach( t );
12404 if( status ) return status;
12409 /* Draft 4 pthreads */
12410 status = pthread_create( &t, pthread_attr_default, task, NULL );
12411 if( status ) return status;
12414 /* give thread a chance to complete */
12415 /* it should remain joinable and hence detachable */
12418 status = pthread_detach( &t );
12419 if( status ) return status;
12423 #ifdef HAVE_LINUX_THREADS
12424 pthread_kill_other_threads_np();
12432 if { (eval echo configure:12433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12434 ol_cv_pthread_pthread=yes
12436 echo "configure: failed program was:" >&5
12437 cat conftest.$ac_ext >&5
12439 ol_cv_pthread_pthread=no
12450 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
12452 if test $ol_cv_pthread_pthread = yes ; then
12453 ol_link_pthreads="-pthread"
12454 ol_link_threads=posix
12458 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
12459 if test "$ol_link_threads" = no ; then
12461 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
12462 echo "configure:12463: checking for pthread link with -pthreads" >&5
12463 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
12464 echo $ac_n "(cached) $ac_c" 1>&6
12469 LIBS="-pthreads $LIBS"
12471 if test "$cross_compiling" = yes; then
12472 cat > conftest.$ac_ext <<EOF
12473 #line 12474 "configure"
12474 #include "confdefs.h"
12475 /* pthread test headers */
12476 #include <pthread.h>
12478 #define NULL (void*)0
12481 static void *task(p)
12484 return (void *) (p == NULL);
12489 /* pthread test function */
12494 #ifdef HAVE_PTHREADS_FINAL
12495 /* Final pthreads */
12496 pthread_attr_t attr;
12498 status = pthread_attr_init(&attr);
12499 if( status ) return status;
12501 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12503 #if defined( PTHREAD_CREATE_JOINABLE )
12504 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12506 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12509 #ifdef PTHREAD_CREATE_DETACHED
12511 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12514 if( status ) return status;
12517 status = pthread_create( &t, &attr, task, NULL );
12518 if( status ) return status;
12520 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12522 /* give thread a chance to complete */
12523 /* it should remain joinable and hence detachable */
12526 status = pthread_detach( t );
12527 if( status ) return status;
12532 /* Draft 4 pthreads */
12533 status = pthread_create( &t, pthread_attr_default, task, NULL );
12534 if( status ) return status;
12537 /* give thread a chance to complete */
12538 /* it should remain joinable and hence detachable */
12541 status = pthread_detach( &t );
12542 if( status ) return status;
12546 #ifdef HAVE_LINUX_THREADS
12547 pthread_kill_other_threads_np();
12554 if { (eval echo configure:12555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12556 ol_cv_pthread_pthreads=yes
12558 echo "configure: failed program was:" >&5
12559 cat conftest.$ac_ext >&5
12561 ol_cv_pthread_pthreads=no
12565 cat > conftest.$ac_ext <<EOF
12566 #line 12567 "configure"
12567 #include "confdefs.h"
12568 /* pthread test headers */
12569 #include <pthread.h>
12571 #define NULL (void*)0
12574 static void *task(p)
12577 return (void *) (p == NULL);
12581 int main(argc, argv)
12586 /* pthread test function */
12591 #ifdef HAVE_PTHREADS_FINAL
12592 /* Final pthreads */
12593 pthread_attr_t attr;
12595 status = pthread_attr_init(&attr);
12596 if( status ) return status;
12598 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12600 #if defined( PTHREAD_CREATE_JOINABLE )
12601 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12603 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12606 #ifdef PTHREAD_CREATE_DETACHED
12608 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12611 if( status ) return status;
12614 status = pthread_create( &t, &attr, task, NULL );
12615 if( status ) return status;
12617 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12619 /* give thread a chance to complete */
12620 /* it should remain joinable and hence detachable */
12623 status = pthread_detach( t );
12624 if( status ) return status;
12629 /* Draft 4 pthreads */
12630 status = pthread_create( &t, pthread_attr_default, task, NULL );
12631 if( status ) return status;
12634 /* give thread a chance to complete */
12635 /* it should remain joinable and hence detachable */
12638 status = pthread_detach( &t );
12639 if( status ) return status;
12643 #ifdef HAVE_LINUX_THREADS
12644 pthread_kill_other_threads_np();
12652 if { (eval echo configure:12653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12654 ol_cv_pthread_pthreads=yes
12656 echo "configure: failed program was:" >&5
12657 cat conftest.$ac_ext >&5
12659 ol_cv_pthread_pthreads=no
12670 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
12672 if test $ol_cv_pthread_pthreads = yes ; then
12673 ol_link_pthreads="-pthreads"
12674 ol_link_threads=posix
12678 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
12679 if test "$ol_link_threads" = no ; then
12681 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
12682 echo "configure:12683: checking for pthread link with -mthreads" >&5
12683 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
12684 echo $ac_n "(cached) $ac_c" 1>&6
12689 LIBS="-mthreads $LIBS"
12691 if test "$cross_compiling" = yes; then
12692 cat > conftest.$ac_ext <<EOF
12693 #line 12694 "configure"
12694 #include "confdefs.h"
12695 /* pthread test headers */
12696 #include <pthread.h>
12698 #define NULL (void*)0
12701 static void *task(p)
12704 return (void *) (p == NULL);
12709 /* pthread test function */
12714 #ifdef HAVE_PTHREADS_FINAL
12715 /* Final pthreads */
12716 pthread_attr_t attr;
12718 status = pthread_attr_init(&attr);
12719 if( status ) return status;
12721 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12723 #if defined( PTHREAD_CREATE_JOINABLE )
12724 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12726 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12729 #ifdef PTHREAD_CREATE_DETACHED
12731 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12734 if( status ) return status;
12737 status = pthread_create( &t, &attr, task, NULL );
12738 if( status ) return status;
12740 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12742 /* give thread a chance to complete */
12743 /* it should remain joinable and hence detachable */
12746 status = pthread_detach( t );
12747 if( status ) return status;
12752 /* Draft 4 pthreads */
12753 status = pthread_create( &t, pthread_attr_default, task, NULL );
12754 if( status ) return status;
12757 /* give thread a chance to complete */
12758 /* it should remain joinable and hence detachable */
12761 status = pthread_detach( &t );
12762 if( status ) return status;
12766 #ifdef HAVE_LINUX_THREADS
12767 pthread_kill_other_threads_np();
12774 if { (eval echo configure:12775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12776 ol_cv_pthread_mthreads=yes
12778 echo "configure: failed program was:" >&5
12779 cat conftest.$ac_ext >&5
12781 ol_cv_pthread_mthreads=no
12785 cat > conftest.$ac_ext <<EOF
12786 #line 12787 "configure"
12787 #include "confdefs.h"
12788 /* pthread test headers */
12789 #include <pthread.h>
12791 #define NULL (void*)0
12794 static void *task(p)
12797 return (void *) (p == NULL);
12801 int main(argc, argv)
12806 /* pthread test function */
12811 #ifdef HAVE_PTHREADS_FINAL
12812 /* Final pthreads */
12813 pthread_attr_t attr;
12815 status = pthread_attr_init(&attr);
12816 if( status ) return status;
12818 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12820 #if defined( PTHREAD_CREATE_JOINABLE )
12821 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12823 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12826 #ifdef PTHREAD_CREATE_DETACHED
12828 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12831 if( status ) return status;
12834 status = pthread_create( &t, &attr, task, NULL );
12835 if( status ) return status;
12837 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12839 /* give thread a chance to complete */
12840 /* it should remain joinable and hence detachable */
12843 status = pthread_detach( t );
12844 if( status ) return status;
12849 /* Draft 4 pthreads */
12850 status = pthread_create( &t, pthread_attr_default, task, NULL );
12851 if( status ) return status;
12854 /* give thread a chance to complete */
12855 /* it should remain joinable and hence detachable */
12858 status = pthread_detach( &t );
12859 if( status ) return status;
12863 #ifdef HAVE_LINUX_THREADS
12864 pthread_kill_other_threads_np();
12872 if { (eval echo configure:12873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12874 ol_cv_pthread_mthreads=yes
12876 echo "configure: failed program was:" >&5
12877 cat conftest.$ac_ext >&5
12879 ol_cv_pthread_mthreads=no
12890 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
12892 if test $ol_cv_pthread_mthreads = yes ; then
12893 ol_link_pthreads="-mthreads"
12894 ol_link_threads=posix
12898 # Pthread try link: -thread (ol_cv_pthread_thread)
12899 if test "$ol_link_threads" = no ; then
12901 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
12902 echo "configure:12903: checking for pthread link with -thread" >&5
12903 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
12904 echo $ac_n "(cached) $ac_c" 1>&6
12909 LIBS="-thread $LIBS"
12911 if test "$cross_compiling" = yes; then
12912 cat > conftest.$ac_ext <<EOF
12913 #line 12914 "configure"
12914 #include "confdefs.h"
12915 /* pthread test headers */
12916 #include <pthread.h>
12918 #define NULL (void*)0
12921 static void *task(p)
12924 return (void *) (p == NULL);
12929 /* pthread test function */
12934 #ifdef HAVE_PTHREADS_FINAL
12935 /* Final pthreads */
12936 pthread_attr_t attr;
12938 status = pthread_attr_init(&attr);
12939 if( status ) return status;
12941 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12943 #if defined( PTHREAD_CREATE_JOINABLE )
12944 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12946 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12949 #ifdef PTHREAD_CREATE_DETACHED
12951 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12954 if( status ) return status;
12957 status = pthread_create( &t, &attr, task, NULL );
12958 if( status ) return status;
12960 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12962 /* give thread a chance to complete */
12963 /* it should remain joinable and hence detachable */
12966 status = pthread_detach( t );
12967 if( status ) return status;
12972 /* Draft 4 pthreads */
12973 status = pthread_create( &t, pthread_attr_default, task, NULL );
12974 if( status ) return status;
12977 /* give thread a chance to complete */
12978 /* it should remain joinable and hence detachable */
12981 status = pthread_detach( &t );
12982 if( status ) return status;
12986 #ifdef HAVE_LINUX_THREADS
12987 pthread_kill_other_threads_np();
12994 if { (eval echo configure:12995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12996 ol_cv_pthread_thread=yes
12998 echo "configure: failed program was:" >&5
12999 cat conftest.$ac_ext >&5
13001 ol_cv_pthread_thread=no
13005 cat > conftest.$ac_ext <<EOF
13006 #line 13007 "configure"
13007 #include "confdefs.h"
13008 /* pthread test headers */
13009 #include <pthread.h>
13011 #define NULL (void*)0
13014 static void *task(p)
13017 return (void *) (p == NULL);
13021 int main(argc, argv)
13026 /* pthread test function */
13031 #ifdef HAVE_PTHREADS_FINAL
13032 /* Final pthreads */
13033 pthread_attr_t attr;
13035 status = pthread_attr_init(&attr);
13036 if( status ) return status;
13038 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13040 #if defined( PTHREAD_CREATE_JOINABLE )
13041 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13043 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13046 #ifdef PTHREAD_CREATE_DETACHED
13048 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13051 if( status ) return status;
13054 status = pthread_create( &t, &attr, task, NULL );
13055 if( status ) return status;
13057 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13059 /* give thread a chance to complete */
13060 /* it should remain joinable and hence detachable */
13063 status = pthread_detach( t );
13064 if( status ) return status;
13069 /* Draft 4 pthreads */
13070 status = pthread_create( &t, pthread_attr_default, task, NULL );
13071 if( status ) return status;
13074 /* give thread a chance to complete */
13075 /* it should remain joinable and hence detachable */
13078 status = pthread_detach( &t );
13079 if( status ) return status;
13083 #ifdef HAVE_LINUX_THREADS
13084 pthread_kill_other_threads_np();
13092 if { (eval echo configure:13093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13094 ol_cv_pthread_thread=yes
13096 echo "configure: failed program was:" >&5
13097 cat conftest.$ac_ext >&5
13099 ol_cv_pthread_thread=no
13110 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
13112 if test $ol_cv_pthread_thread = yes ; then
13113 ol_link_pthreads="-thread"
13114 ol_link_threads=posix
13119 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
13120 if test "$ol_link_threads" = no ; then
13121 # try -lpthread -lmach -lexc -lc_r
13122 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
13123 echo "configure:13124: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
13124 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
13125 echo $ac_n "(cached) $ac_c" 1>&6
13130 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
13132 if test "$cross_compiling" = yes; then
13133 cat > conftest.$ac_ext <<EOF
13134 #line 13135 "configure"
13135 #include "confdefs.h"
13136 /* pthread test headers */
13137 #include <pthread.h>
13139 #define NULL (void*)0
13142 static void *task(p)
13145 return (void *) (p == NULL);
13150 /* pthread test function */
13155 #ifdef HAVE_PTHREADS_FINAL
13156 /* Final pthreads */
13157 pthread_attr_t attr;
13159 status = pthread_attr_init(&attr);
13160 if( status ) return status;
13162 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13164 #if defined( PTHREAD_CREATE_JOINABLE )
13165 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13167 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13170 #ifdef PTHREAD_CREATE_DETACHED
13172 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13175 if( status ) return status;
13178 status = pthread_create( &t, &attr, task, NULL );
13179 if( status ) return status;
13181 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13183 /* give thread a chance to complete */
13184 /* it should remain joinable and hence detachable */
13187 status = pthread_detach( t );
13188 if( status ) return status;
13193 /* Draft 4 pthreads */
13194 status = pthread_create( &t, pthread_attr_default, task, NULL );
13195 if( status ) return status;
13198 /* give thread a chance to complete */
13199 /* it should remain joinable and hence detachable */
13202 status = pthread_detach( &t );
13203 if( status ) return status;
13207 #ifdef HAVE_LINUX_THREADS
13208 pthread_kill_other_threads_np();
13215 if { (eval echo configure:13216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13217 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
13219 echo "configure: failed program was:" >&5
13220 cat conftest.$ac_ext >&5
13222 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
13226 cat > conftest.$ac_ext <<EOF
13227 #line 13228 "configure"
13228 #include "confdefs.h"
13229 /* pthread test headers */
13230 #include <pthread.h>
13232 #define NULL (void*)0
13235 static void *task(p)
13238 return (void *) (p == NULL);
13242 int main(argc, argv)
13247 /* pthread test function */
13252 #ifdef HAVE_PTHREADS_FINAL
13253 /* Final pthreads */
13254 pthread_attr_t attr;
13256 status = pthread_attr_init(&attr);
13257 if( status ) return status;
13259 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13261 #if defined( PTHREAD_CREATE_JOINABLE )
13262 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13264 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13267 #ifdef PTHREAD_CREATE_DETACHED
13269 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13272 if( status ) return status;
13275 status = pthread_create( &t, &attr, task, NULL );
13276 if( status ) return status;
13278 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13280 /* give thread a chance to complete */
13281 /* it should remain joinable and hence detachable */
13284 status = pthread_detach( t );
13285 if( status ) return status;
13290 /* Draft 4 pthreads */
13291 status = pthread_create( &t, pthread_attr_default, task, NULL );
13292 if( status ) return status;
13295 /* give thread a chance to complete */
13296 /* it should remain joinable and hence detachable */
13299 status = pthread_detach( &t );
13300 if( status ) return status;
13304 #ifdef HAVE_LINUX_THREADS
13305 pthread_kill_other_threads_np();
13313 if { (eval echo configure:13314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13315 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
13317 echo "configure: failed program was:" >&5
13318 cat conftest.$ac_ext >&5
13320 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
13331 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
13333 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
13334 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
13335 ol_link_threads=posix
13339 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
13340 if test "$ol_link_threads" = no ; then
13341 # try -lpthread -lmach -lexc
13342 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
13343 echo "configure:13344: checking for pthread link with -lpthread -lmach -lexc" >&5
13344 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
13345 echo $ac_n "(cached) $ac_c" 1>&6
13350 LIBS="-lpthread -lmach -lexc $LIBS"
13352 if test "$cross_compiling" = yes; then
13353 cat > conftest.$ac_ext <<EOF
13354 #line 13355 "configure"
13355 #include "confdefs.h"
13356 /* pthread test headers */
13357 #include <pthread.h>
13359 #define NULL (void*)0
13362 static void *task(p)
13365 return (void *) (p == NULL);
13370 /* pthread test function */
13375 #ifdef HAVE_PTHREADS_FINAL
13376 /* Final pthreads */
13377 pthread_attr_t attr;
13379 status = pthread_attr_init(&attr);
13380 if( status ) return status;
13382 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13384 #if defined( PTHREAD_CREATE_JOINABLE )
13385 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13387 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13390 #ifdef PTHREAD_CREATE_DETACHED
13392 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13395 if( status ) return status;
13398 status = pthread_create( &t, &attr, task, NULL );
13399 if( status ) return status;
13401 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13403 /* give thread a chance to complete */
13404 /* it should remain joinable and hence detachable */
13407 status = pthread_detach( t );
13408 if( status ) return status;
13413 /* Draft 4 pthreads */
13414 status = pthread_create( &t, pthread_attr_default, task, NULL );
13415 if( status ) return status;
13418 /* give thread a chance to complete */
13419 /* it should remain joinable and hence detachable */
13422 status = pthread_detach( &t );
13423 if( status ) return status;
13427 #ifdef HAVE_LINUX_THREADS
13428 pthread_kill_other_threads_np();
13435 if { (eval echo configure:13436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13437 ol_cv_pthread_lpthread_lmach_lexc=yes
13439 echo "configure: failed program was:" >&5
13440 cat conftest.$ac_ext >&5
13442 ol_cv_pthread_lpthread_lmach_lexc=no
13446 cat > conftest.$ac_ext <<EOF
13447 #line 13448 "configure"
13448 #include "confdefs.h"
13449 /* pthread test headers */
13450 #include <pthread.h>
13452 #define NULL (void*)0
13455 static void *task(p)
13458 return (void *) (p == NULL);
13462 int main(argc, argv)
13467 /* pthread test function */
13472 #ifdef HAVE_PTHREADS_FINAL
13473 /* Final pthreads */
13474 pthread_attr_t attr;
13476 status = pthread_attr_init(&attr);
13477 if( status ) return status;
13479 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13481 #if defined( PTHREAD_CREATE_JOINABLE )
13482 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13484 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13487 #ifdef PTHREAD_CREATE_DETACHED
13489 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13492 if( status ) return status;
13495 status = pthread_create( &t, &attr, task, NULL );
13496 if( status ) return status;
13498 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13500 /* give thread a chance to complete */
13501 /* it should remain joinable and hence detachable */
13504 status = pthread_detach( t );
13505 if( status ) return status;
13510 /* Draft 4 pthreads */
13511 status = pthread_create( &t, pthread_attr_default, task, NULL );
13512 if( status ) return status;
13515 /* give thread a chance to complete */
13516 /* it should remain joinable and hence detachable */
13519 status = pthread_detach( &t );
13520 if( status ) return status;
13524 #ifdef HAVE_LINUX_THREADS
13525 pthread_kill_other_threads_np();
13533 if { (eval echo configure:13534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13535 ol_cv_pthread_lpthread_lmach_lexc=yes
13537 echo "configure: failed program was:" >&5
13538 cat conftest.$ac_ext >&5
13540 ol_cv_pthread_lpthread_lmach_lexc=no
13551 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
13553 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
13554 ol_link_pthreads="-lpthread -lmach -lexc"
13555 ol_link_threads=posix
13560 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
13561 if test "$ol_link_threads" = no ; then
13562 # try -lpthread -Wl,-woff,85
13563 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
13564 echo "configure:13565: checking for pthread link with -lpthread -Wl,-woff,85" >&5
13565 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
13566 echo $ac_n "(cached) $ac_c" 1>&6
13571 LIBS="-lpthread -Wl,-woff,85 $LIBS"
13573 if test "$cross_compiling" = yes; then
13574 cat > conftest.$ac_ext <<EOF
13575 #line 13576 "configure"
13576 #include "confdefs.h"
13577 /* pthread test headers */
13578 #include <pthread.h>
13580 #define NULL (void*)0
13583 static void *task(p)
13586 return (void *) (p == NULL);
13591 /* pthread test function */
13596 #ifdef HAVE_PTHREADS_FINAL
13597 /* Final pthreads */
13598 pthread_attr_t attr;
13600 status = pthread_attr_init(&attr);
13601 if( status ) return status;
13603 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13605 #if defined( PTHREAD_CREATE_JOINABLE )
13606 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13608 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13611 #ifdef PTHREAD_CREATE_DETACHED
13613 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13616 if( status ) return status;
13619 status = pthread_create( &t, &attr, task, NULL );
13620 if( status ) return status;
13622 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13624 /* give thread a chance to complete */
13625 /* it should remain joinable and hence detachable */
13628 status = pthread_detach( t );
13629 if( status ) return status;
13634 /* Draft 4 pthreads */
13635 status = pthread_create( &t, pthread_attr_default, task, NULL );
13636 if( status ) return status;
13639 /* give thread a chance to complete */
13640 /* it should remain joinable and hence detachable */
13643 status = pthread_detach( &t );
13644 if( status ) return status;
13648 #ifdef HAVE_LINUX_THREADS
13649 pthread_kill_other_threads_np();
13656 if { (eval echo configure:13657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13658 ol_cv_pthread_lib_lpthread_woff=yes
13660 echo "configure: failed program was:" >&5
13661 cat conftest.$ac_ext >&5
13663 ol_cv_pthread_lib_lpthread_woff=no
13667 cat > conftest.$ac_ext <<EOF
13668 #line 13669 "configure"
13669 #include "confdefs.h"
13670 /* pthread test headers */
13671 #include <pthread.h>
13673 #define NULL (void*)0
13676 static void *task(p)
13679 return (void *) (p == NULL);
13683 int main(argc, argv)
13688 /* pthread test function */
13693 #ifdef HAVE_PTHREADS_FINAL
13694 /* Final pthreads */
13695 pthread_attr_t attr;
13697 status = pthread_attr_init(&attr);
13698 if( status ) return status;
13700 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13702 #if defined( PTHREAD_CREATE_JOINABLE )
13703 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13705 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13708 #ifdef PTHREAD_CREATE_DETACHED
13710 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13713 if( status ) return status;
13716 status = pthread_create( &t, &attr, task, NULL );
13717 if( status ) return status;
13719 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13721 /* give thread a chance to complete */
13722 /* it should remain joinable and hence detachable */
13725 status = pthread_detach( t );
13726 if( status ) return status;
13731 /* Draft 4 pthreads */
13732 status = pthread_create( &t, pthread_attr_default, task, NULL );
13733 if( status ) return status;
13736 /* give thread a chance to complete */
13737 /* it should remain joinable and hence detachable */
13740 status = pthread_detach( &t );
13741 if( status ) return status;
13745 #ifdef HAVE_LINUX_THREADS
13746 pthread_kill_other_threads_np();
13754 if { (eval echo configure:13755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13756 ol_cv_pthread_lib_lpthread_woff=yes
13758 echo "configure: failed program was:" >&5
13759 cat conftest.$ac_ext >&5
13761 ol_cv_pthread_lib_lpthread_woff=no
13772 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
13774 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
13775 ol_link_pthreads="-lpthread -Wl,-woff,85"
13776 ol_link_threads=posix
13781 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
13782 if test "$ol_link_threads" = no ; then
13784 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
13785 echo "configure:13786: checking for pthread link with -lpthread" >&5
13786 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
13787 echo $ac_n "(cached) $ac_c" 1>&6
13792 LIBS="-lpthread $LIBS"
13794 if test "$cross_compiling" = yes; then
13795 cat > conftest.$ac_ext <<EOF
13796 #line 13797 "configure"
13797 #include "confdefs.h"
13798 /* pthread test headers */
13799 #include <pthread.h>
13801 #define NULL (void*)0
13804 static void *task(p)
13807 return (void *) (p == NULL);
13812 /* pthread test function */
13817 #ifdef HAVE_PTHREADS_FINAL
13818 /* Final pthreads */
13819 pthread_attr_t attr;
13821 status = pthread_attr_init(&attr);
13822 if( status ) return status;
13824 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13826 #if defined( PTHREAD_CREATE_JOINABLE )
13827 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13829 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13832 #ifdef PTHREAD_CREATE_DETACHED
13834 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13837 if( status ) return status;
13840 status = pthread_create( &t, &attr, task, NULL );
13841 if( status ) return status;
13843 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13845 /* give thread a chance to complete */
13846 /* it should remain joinable and hence detachable */
13849 status = pthread_detach( t );
13850 if( status ) return status;
13855 /* Draft 4 pthreads */
13856 status = pthread_create( &t, pthread_attr_default, task, NULL );
13857 if( status ) return status;
13860 /* give thread a chance to complete */
13861 /* it should remain joinable and hence detachable */
13864 status = pthread_detach( &t );
13865 if( status ) return status;
13869 #ifdef HAVE_LINUX_THREADS
13870 pthread_kill_other_threads_np();
13877 if { (eval echo configure:13878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13879 ol_cv_pthread_lpthread=yes
13881 echo "configure: failed program was:" >&5
13882 cat conftest.$ac_ext >&5
13884 ol_cv_pthread_lpthread=no
13888 cat > conftest.$ac_ext <<EOF
13889 #line 13890 "configure"
13890 #include "confdefs.h"
13891 /* pthread test headers */
13892 #include <pthread.h>
13894 #define NULL (void*)0
13897 static void *task(p)
13900 return (void *) (p == NULL);
13904 int main(argc, argv)
13909 /* pthread test function */
13914 #ifdef HAVE_PTHREADS_FINAL
13915 /* Final pthreads */
13916 pthread_attr_t attr;
13918 status = pthread_attr_init(&attr);
13919 if( status ) return status;
13921 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13923 #if defined( PTHREAD_CREATE_JOINABLE )
13924 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13926 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13929 #ifdef PTHREAD_CREATE_DETACHED
13931 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13934 if( status ) return status;
13937 status = pthread_create( &t, &attr, task, NULL );
13938 if( status ) return status;
13940 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13942 /* give thread a chance to complete */
13943 /* it should remain joinable and hence detachable */
13946 status = pthread_detach( t );
13947 if( status ) return status;
13952 /* Draft 4 pthreads */
13953 status = pthread_create( &t, pthread_attr_default, task, NULL );
13954 if( status ) return status;
13957 /* give thread a chance to complete */
13958 /* it should remain joinable and hence detachable */
13961 status = pthread_detach( &t );
13962 if( status ) return status;
13966 #ifdef HAVE_LINUX_THREADS
13967 pthread_kill_other_threads_np();
13975 if { (eval echo configure:13976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13977 ol_cv_pthread_lpthread=yes
13979 echo "configure: failed program was:" >&5
13980 cat conftest.$ac_ext >&5
13982 ol_cv_pthread_lpthread=no
13993 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
13995 if test $ol_cv_pthread_lpthread = yes ; then
13996 ol_link_pthreads="-lpthread"
13997 ol_link_threads=posix
14001 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
14002 if test "$ol_link_threads" = no ; then
14004 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
14005 echo "configure:14006: checking for pthread link with -lc_r" >&5
14006 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
14007 echo $ac_n "(cached) $ac_c" 1>&6
14014 if test "$cross_compiling" = yes; then
14015 cat > conftest.$ac_ext <<EOF
14016 #line 14017 "configure"
14017 #include "confdefs.h"
14018 /* pthread test headers */
14019 #include <pthread.h>
14021 #define NULL (void*)0
14024 static void *task(p)
14027 return (void *) (p == NULL);
14032 /* pthread test function */
14037 #ifdef HAVE_PTHREADS_FINAL
14038 /* Final pthreads */
14039 pthread_attr_t attr;
14041 status = pthread_attr_init(&attr);
14042 if( status ) return status;
14044 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14046 #if defined( PTHREAD_CREATE_JOINABLE )
14047 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14049 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14052 #ifdef PTHREAD_CREATE_DETACHED
14054 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14057 if( status ) return status;
14060 status = pthread_create( &t, &attr, task, NULL );
14061 if( status ) return status;
14063 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14065 /* give thread a chance to complete */
14066 /* it should remain joinable and hence detachable */
14069 status = pthread_detach( t );
14070 if( status ) return status;
14075 /* Draft 4 pthreads */
14076 status = pthread_create( &t, pthread_attr_default, task, NULL );
14077 if( status ) return status;
14080 /* give thread a chance to complete */
14081 /* it should remain joinable and hence detachable */
14084 status = pthread_detach( &t );
14085 if( status ) return status;
14089 #ifdef HAVE_LINUX_THREADS
14090 pthread_kill_other_threads_np();
14097 if { (eval echo configure:14098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14099 ol_cv_pthread_lc_r=yes
14101 echo "configure: failed program was:" >&5
14102 cat conftest.$ac_ext >&5
14104 ol_cv_pthread_lc_r=no
14108 cat > conftest.$ac_ext <<EOF
14109 #line 14110 "configure"
14110 #include "confdefs.h"
14111 /* pthread test headers */
14112 #include <pthread.h>
14114 #define NULL (void*)0
14117 static void *task(p)
14120 return (void *) (p == NULL);
14124 int main(argc, argv)
14129 /* pthread test function */
14134 #ifdef HAVE_PTHREADS_FINAL
14135 /* Final pthreads */
14136 pthread_attr_t attr;
14138 status = pthread_attr_init(&attr);
14139 if( status ) return status;
14141 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14143 #if defined( PTHREAD_CREATE_JOINABLE )
14144 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14146 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14149 #ifdef PTHREAD_CREATE_DETACHED
14151 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14154 if( status ) return status;
14157 status = pthread_create( &t, &attr, task, NULL );
14158 if( status ) return status;
14160 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14162 /* give thread a chance to complete */
14163 /* it should remain joinable and hence detachable */
14166 status = pthread_detach( t );
14167 if( status ) return status;
14172 /* Draft 4 pthreads */
14173 status = pthread_create( &t, pthread_attr_default, task, NULL );
14174 if( status ) return status;
14177 /* give thread a chance to complete */
14178 /* it should remain joinable and hence detachable */
14181 status = pthread_detach( &t );
14182 if( status ) return status;
14186 #ifdef HAVE_LINUX_THREADS
14187 pthread_kill_other_threads_np();
14195 if { (eval echo configure:14196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14197 ol_cv_pthread_lc_r=yes
14199 echo "configure: failed program was:" >&5
14200 cat conftest.$ac_ext >&5
14202 ol_cv_pthread_lc_r=no
14213 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
14215 if test $ol_cv_pthread_lc_r = yes ; then
14216 ol_link_pthreads="-lc_r"
14217 ol_link_threads=posix
14222 # Pthread try link: -threads (ol_cv_pthread_threads)
14223 if test "$ol_link_threads" = no ; then
14225 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
14226 echo "configure:14227: checking for pthread link with -threads" >&5
14227 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
14228 echo $ac_n "(cached) $ac_c" 1>&6
14233 LIBS="-threads $LIBS"
14235 if test "$cross_compiling" = yes; then
14236 cat > conftest.$ac_ext <<EOF
14237 #line 14238 "configure"
14238 #include "confdefs.h"
14239 /* pthread test headers */
14240 #include <pthread.h>
14242 #define NULL (void*)0
14245 static void *task(p)
14248 return (void *) (p == NULL);
14253 /* pthread test function */
14258 #ifdef HAVE_PTHREADS_FINAL
14259 /* Final pthreads */
14260 pthread_attr_t attr;
14262 status = pthread_attr_init(&attr);
14263 if( status ) return status;
14265 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14267 #if defined( PTHREAD_CREATE_JOINABLE )
14268 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14270 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14273 #ifdef PTHREAD_CREATE_DETACHED
14275 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14278 if( status ) return status;
14281 status = pthread_create( &t, &attr, task, NULL );
14282 if( status ) return status;
14284 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14286 /* give thread a chance to complete */
14287 /* it should remain joinable and hence detachable */
14290 status = pthread_detach( t );
14291 if( status ) return status;
14296 /* Draft 4 pthreads */
14297 status = pthread_create( &t, pthread_attr_default, task, NULL );
14298 if( status ) return status;
14301 /* give thread a chance to complete */
14302 /* it should remain joinable and hence detachable */
14305 status = pthread_detach( &t );
14306 if( status ) return status;
14310 #ifdef HAVE_LINUX_THREADS
14311 pthread_kill_other_threads_np();
14318 if { (eval echo configure:14319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14320 ol_cv_pthread_threads=yes
14322 echo "configure: failed program was:" >&5
14323 cat conftest.$ac_ext >&5
14325 ol_cv_pthread_threads=no
14329 cat > conftest.$ac_ext <<EOF
14330 #line 14331 "configure"
14331 #include "confdefs.h"
14332 /* pthread test headers */
14333 #include <pthread.h>
14335 #define NULL (void*)0
14338 static void *task(p)
14341 return (void *) (p == NULL);
14345 int main(argc, argv)
14350 /* pthread test function */
14355 #ifdef HAVE_PTHREADS_FINAL
14356 /* Final pthreads */
14357 pthread_attr_t attr;
14359 status = pthread_attr_init(&attr);
14360 if( status ) return status;
14362 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14364 #if defined( PTHREAD_CREATE_JOINABLE )
14365 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14367 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14370 #ifdef PTHREAD_CREATE_DETACHED
14372 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14375 if( status ) return status;
14378 status = pthread_create( &t, &attr, task, NULL );
14379 if( status ) return status;
14381 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14383 /* give thread a chance to complete */
14384 /* it should remain joinable and hence detachable */
14387 status = pthread_detach( t );
14388 if( status ) return status;
14393 /* Draft 4 pthreads */
14394 status = pthread_create( &t, pthread_attr_default, task, NULL );
14395 if( status ) return status;
14398 /* give thread a chance to complete */
14399 /* it should remain joinable and hence detachable */
14402 status = pthread_detach( &t );
14403 if( status ) return status;
14407 #ifdef HAVE_LINUX_THREADS
14408 pthread_kill_other_threads_np();
14416 if { (eval echo configure:14417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14418 ol_cv_pthread_threads=yes
14420 echo "configure: failed program was:" >&5
14421 cat conftest.$ac_ext >&5
14423 ol_cv_pthread_threads=no
14434 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
14436 if test $ol_cv_pthread_threads = yes ; then
14437 ol_link_pthreads="-threads"
14438 ol_link_threads=posix
14443 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
14444 if test "$ol_link_threads" = no ; then
14445 # try -lpthreads -lmach -lexc -lc_r
14446 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
14447 echo "configure:14448: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
14448 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
14449 echo $ac_n "(cached) $ac_c" 1>&6
14454 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
14456 if test "$cross_compiling" = yes; then
14457 cat > conftest.$ac_ext <<EOF
14458 #line 14459 "configure"
14459 #include "confdefs.h"
14460 /* pthread test headers */
14461 #include <pthread.h>
14463 #define NULL (void*)0
14466 static void *task(p)
14469 return (void *) (p == NULL);
14474 /* pthread test function */
14479 #ifdef HAVE_PTHREADS_FINAL
14480 /* Final pthreads */
14481 pthread_attr_t attr;
14483 status = pthread_attr_init(&attr);
14484 if( status ) return status;
14486 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14488 #if defined( PTHREAD_CREATE_JOINABLE )
14489 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14491 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14494 #ifdef PTHREAD_CREATE_DETACHED
14496 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14499 if( status ) return status;
14502 status = pthread_create( &t, &attr, task, NULL );
14503 if( status ) return status;
14505 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14507 /* give thread a chance to complete */
14508 /* it should remain joinable and hence detachable */
14511 status = pthread_detach( t );
14512 if( status ) return status;
14517 /* Draft 4 pthreads */
14518 status = pthread_create( &t, pthread_attr_default, task, NULL );
14519 if( status ) return status;
14522 /* give thread a chance to complete */
14523 /* it should remain joinable and hence detachable */
14526 status = pthread_detach( &t );
14527 if( status ) return status;
14531 #ifdef HAVE_LINUX_THREADS
14532 pthread_kill_other_threads_np();
14539 if { (eval echo configure:14540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14541 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
14543 echo "configure: failed program was:" >&5
14544 cat conftest.$ac_ext >&5
14546 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
14550 cat > conftest.$ac_ext <<EOF
14551 #line 14552 "configure"
14552 #include "confdefs.h"
14553 /* pthread test headers */
14554 #include <pthread.h>
14556 #define NULL (void*)0
14559 static void *task(p)
14562 return (void *) (p == NULL);
14566 int main(argc, argv)
14571 /* pthread test function */
14576 #ifdef HAVE_PTHREADS_FINAL
14577 /* Final pthreads */
14578 pthread_attr_t attr;
14580 status = pthread_attr_init(&attr);
14581 if( status ) return status;
14583 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14585 #if defined( PTHREAD_CREATE_JOINABLE )
14586 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14588 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14591 #ifdef PTHREAD_CREATE_DETACHED
14593 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14596 if( status ) return status;
14599 status = pthread_create( &t, &attr, task, NULL );
14600 if( status ) return status;
14602 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14604 /* give thread a chance to complete */
14605 /* it should remain joinable and hence detachable */
14608 status = pthread_detach( t );
14609 if( status ) return status;
14614 /* Draft 4 pthreads */
14615 status = pthread_create( &t, pthread_attr_default, task, NULL );
14616 if( status ) return status;
14619 /* give thread a chance to complete */
14620 /* it should remain joinable and hence detachable */
14623 status = pthread_detach( &t );
14624 if( status ) return status;
14628 #ifdef HAVE_LINUX_THREADS
14629 pthread_kill_other_threads_np();
14637 if { (eval echo configure:14638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14639 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
14641 echo "configure: failed program was:" >&5
14642 cat conftest.$ac_ext >&5
14644 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
14655 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
14657 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
14658 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
14659 ol_link_threads=posix
14663 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
14664 if test "$ol_link_threads" = no ; then
14665 # try -lpthreads -lmach -lexc
14666 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
14667 echo "configure:14668: checking for pthread link with -lpthreads -lmach -lexc" >&5
14668 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
14669 echo $ac_n "(cached) $ac_c" 1>&6
14674 LIBS="-lpthreads -lmach -lexc $LIBS"
14676 if test "$cross_compiling" = yes; then
14677 cat > conftest.$ac_ext <<EOF
14678 #line 14679 "configure"
14679 #include "confdefs.h"
14680 /* pthread test headers */
14681 #include <pthread.h>
14683 #define NULL (void*)0
14686 static void *task(p)
14689 return (void *) (p == NULL);
14694 /* pthread test function */
14699 #ifdef HAVE_PTHREADS_FINAL
14700 /* Final pthreads */
14701 pthread_attr_t attr;
14703 status = pthread_attr_init(&attr);
14704 if( status ) return status;
14706 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14708 #if defined( PTHREAD_CREATE_JOINABLE )
14709 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14711 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14714 #ifdef PTHREAD_CREATE_DETACHED
14716 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14719 if( status ) return status;
14722 status = pthread_create( &t, &attr, task, NULL );
14723 if( status ) return status;
14725 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14727 /* give thread a chance to complete */
14728 /* it should remain joinable and hence detachable */
14731 status = pthread_detach( t );
14732 if( status ) return status;
14737 /* Draft 4 pthreads */
14738 status = pthread_create( &t, pthread_attr_default, task, NULL );
14739 if( status ) return status;
14742 /* give thread a chance to complete */
14743 /* it should remain joinable and hence detachable */
14746 status = pthread_detach( &t );
14747 if( status ) return status;
14751 #ifdef HAVE_LINUX_THREADS
14752 pthread_kill_other_threads_np();
14759 if { (eval echo configure:14760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14761 ol_cv_pthread_lpthreads_lmach_lexc=yes
14763 echo "configure: failed program was:" >&5
14764 cat conftest.$ac_ext >&5
14766 ol_cv_pthread_lpthreads_lmach_lexc=no
14770 cat > conftest.$ac_ext <<EOF
14771 #line 14772 "configure"
14772 #include "confdefs.h"
14773 /* pthread test headers */
14774 #include <pthread.h>
14776 #define NULL (void*)0
14779 static void *task(p)
14782 return (void *) (p == NULL);
14786 int main(argc, argv)
14791 /* pthread test function */
14796 #ifdef HAVE_PTHREADS_FINAL
14797 /* Final pthreads */
14798 pthread_attr_t attr;
14800 status = pthread_attr_init(&attr);
14801 if( status ) return status;
14803 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14805 #if defined( PTHREAD_CREATE_JOINABLE )
14806 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14808 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14811 #ifdef PTHREAD_CREATE_DETACHED
14813 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14816 if( status ) return status;
14819 status = pthread_create( &t, &attr, task, NULL );
14820 if( status ) return status;
14822 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14824 /* give thread a chance to complete */
14825 /* it should remain joinable and hence detachable */
14828 status = pthread_detach( t );
14829 if( status ) return status;
14834 /* Draft 4 pthreads */
14835 status = pthread_create( &t, pthread_attr_default, task, NULL );
14836 if( status ) return status;
14839 /* give thread a chance to complete */
14840 /* it should remain joinable and hence detachable */
14843 status = pthread_detach( &t );
14844 if( status ) return status;
14848 #ifdef HAVE_LINUX_THREADS
14849 pthread_kill_other_threads_np();
14857 if { (eval echo configure:14858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14859 ol_cv_pthread_lpthreads_lmach_lexc=yes
14861 echo "configure: failed program was:" >&5
14862 cat conftest.$ac_ext >&5
14864 ol_cv_pthread_lpthreads_lmach_lexc=no
14875 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
14877 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
14878 ol_link_pthreads="-lpthreads -lmach -lexc"
14879 ol_link_threads=posix
14883 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
14884 if test "$ol_link_threads" = no ; then
14885 # try -lpthreads -lexc
14886 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
14887 echo "configure:14888: checking for pthread link with -lpthreads -lexc" >&5
14888 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
14889 echo $ac_n "(cached) $ac_c" 1>&6
14894 LIBS="-lpthreads -lexc $LIBS"
14896 if test "$cross_compiling" = yes; then
14897 cat > conftest.$ac_ext <<EOF
14898 #line 14899 "configure"
14899 #include "confdefs.h"
14900 /* pthread test headers */
14901 #include <pthread.h>
14903 #define NULL (void*)0
14906 static void *task(p)
14909 return (void *) (p == NULL);
14914 /* pthread test function */
14919 #ifdef HAVE_PTHREADS_FINAL
14920 /* Final pthreads */
14921 pthread_attr_t attr;
14923 status = pthread_attr_init(&attr);
14924 if( status ) return status;
14926 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14928 #if defined( PTHREAD_CREATE_JOINABLE )
14929 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14931 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14934 #ifdef PTHREAD_CREATE_DETACHED
14936 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14939 if( status ) return status;
14942 status = pthread_create( &t, &attr, task, NULL );
14943 if( status ) return status;
14945 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14947 /* give thread a chance to complete */
14948 /* it should remain joinable and hence detachable */
14951 status = pthread_detach( t );
14952 if( status ) return status;
14957 /* Draft 4 pthreads */
14958 status = pthread_create( &t, pthread_attr_default, task, NULL );
14959 if( status ) return status;
14962 /* give thread a chance to complete */
14963 /* it should remain joinable and hence detachable */
14966 status = pthread_detach( &t );
14967 if( status ) return status;
14971 #ifdef HAVE_LINUX_THREADS
14972 pthread_kill_other_threads_np();
14979 if { (eval echo configure:14980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14981 ol_cv_pthread_lpthreads_lexc=yes
14983 echo "configure: failed program was:" >&5
14984 cat conftest.$ac_ext >&5
14986 ol_cv_pthread_lpthreads_lexc=no
14990 cat > conftest.$ac_ext <<EOF
14991 #line 14992 "configure"
14992 #include "confdefs.h"
14993 /* pthread test headers */
14994 #include <pthread.h>
14996 #define NULL (void*)0
14999 static void *task(p)
15002 return (void *) (p == NULL);
15006 int main(argc, argv)
15011 /* pthread test function */
15016 #ifdef HAVE_PTHREADS_FINAL
15017 /* Final pthreads */
15018 pthread_attr_t attr;
15020 status = pthread_attr_init(&attr);
15021 if( status ) return status;
15023 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
15025 #if defined( PTHREAD_CREATE_JOINABLE )
15026 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
15028 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
15031 #ifdef PTHREAD_CREATE_DETACHED
15033 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
15036 if( status ) return status;
15039 status = pthread_create( &t, &attr, task, NULL );
15040 if( status ) return status;
15042 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
15044 /* give thread a chance to complete */
15045 /* it should remain joinable and hence detachable */
15048 status = pthread_detach( t );
15049 if( status ) return status;
15054 /* Draft 4 pthreads */
15055 status = pthread_create( &t, pthread_attr_default, task, NULL );
15056 if( status ) return status;
15059 /* give thread a chance to complete */
15060 /* it should remain joinable and hence detachable */
15063 status = pthread_detach( &t );
15064 if( status ) return status;
15068 #ifdef HAVE_LINUX_THREADS
15069 pthread_kill_other_threads_np();
15077 if { (eval echo configure:15078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15079 ol_cv_pthread_lpthreads_lexc=yes
15081 echo "configure: failed program was:" >&5
15082 cat conftest.$ac_ext >&5
15084 ol_cv_pthread_lpthreads_lexc=no
15095 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
15097 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
15098 ol_link_pthreads="-lpthreads -lexc"
15099 ol_link_threads=posix
15104 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
15105 if test "$ol_link_threads" = no ; then
15107 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
15108 echo "configure:15109: checking for pthread link with -lpthreads" >&5
15109 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
15110 echo $ac_n "(cached) $ac_c" 1>&6
15115 LIBS="-lpthreads $LIBS"
15117 if test "$cross_compiling" = yes; then
15118 cat > conftest.$ac_ext <<EOF
15119 #line 15120 "configure"
15120 #include "confdefs.h"
15121 /* pthread test headers */
15122 #include <pthread.h>
15124 #define NULL (void*)0
15127 static void *task(p)
15130 return (void *) (p == NULL);
15135 /* pthread test function */
15140 #ifdef HAVE_PTHREADS_FINAL
15141 /* Final pthreads */
15142 pthread_attr_t attr;
15144 status = pthread_attr_init(&attr);
15145 if( status ) return status;
15147 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
15149 #if defined( PTHREAD_CREATE_JOINABLE )
15150 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
15152 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
15155 #ifdef PTHREAD_CREATE_DETACHED
15157 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
15160 if( status ) return status;
15163 status = pthread_create( &t, &attr, task, NULL );
15164 if( status ) return status;
15166 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
15168 /* give thread a chance to complete */
15169 /* it should remain joinable and hence detachable */
15172 status = pthread_detach( t );
15173 if( status ) return status;
15178 /* Draft 4 pthreads */
15179 status = pthread_create( &t, pthread_attr_default, task, NULL );
15180 if( status ) return status;
15183 /* give thread a chance to complete */
15184 /* it should remain joinable and hence detachable */
15187 status = pthread_detach( &t );
15188 if( status ) return status;
15192 #ifdef HAVE_LINUX_THREADS
15193 pthread_kill_other_threads_np();
15200 if { (eval echo configure:15201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15202 ol_cv_pthread_lib_lpthreads=yes
15204 echo "configure: failed program was:" >&5
15205 cat conftest.$ac_ext >&5
15207 ol_cv_pthread_lib_lpthreads=no
15211 cat > conftest.$ac_ext <<EOF
15212 #line 15213 "configure"
15213 #include "confdefs.h"
15214 /* pthread test headers */
15215 #include <pthread.h>
15217 #define NULL (void*)0
15220 static void *task(p)
15223 return (void *) (p == NULL);
15227 int main(argc, argv)
15232 /* pthread test function */
15237 #ifdef HAVE_PTHREADS_FINAL
15238 /* Final pthreads */
15239 pthread_attr_t attr;
15241 status = pthread_attr_init(&attr);
15242 if( status ) return status;
15244 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
15246 #if defined( PTHREAD_CREATE_JOINABLE )
15247 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
15249 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
15252 #ifdef PTHREAD_CREATE_DETACHED
15254 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
15257 if( status ) return status;
15260 status = pthread_create( &t, &attr, task, NULL );
15261 if( status ) return status;
15263 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
15265 /* give thread a chance to complete */
15266 /* it should remain joinable and hence detachable */
15269 status = pthread_detach( t );
15270 if( status ) return status;
15275 /* Draft 4 pthreads */
15276 status = pthread_create( &t, pthread_attr_default, task, NULL );
15277 if( status ) return status;
15280 /* give thread a chance to complete */
15281 /* it should remain joinable and hence detachable */
15284 status = pthread_detach( &t );
15285 if( status ) return status;
15289 #ifdef HAVE_LINUX_THREADS
15290 pthread_kill_other_threads_np();
15298 if { (eval echo configure:15299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15300 ol_cv_pthread_lib_lpthreads=yes
15302 echo "configure: failed program was:" >&5
15303 cat conftest.$ac_ext >&5
15305 ol_cv_pthread_lib_lpthreads=no
15316 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
15318 if test $ol_cv_pthread_lib_lpthreads = yes ; then
15319 ol_link_pthreads="-lpthreads"
15320 ol_link_threads=posix
15325 if test $ol_link_threads != no ; then
15326 cat >> confdefs.h <<\EOF
15327 #define HAVE_PTHREADS 1
15331 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
15333 save_CPPFLAGS="$CPPFLAGS"
15335 LIBS="$LTHREAD_LIBS $LIBS"
15337 for ac_func in sched_yield pthread_yield
15339 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15340 echo "configure:15341: checking for $ac_func" >&5
15341 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15342 echo $ac_n "(cached) $ac_c" 1>&6
15344 cat > conftest.$ac_ext <<EOF
15345 #line 15346 "configure"
15346 #include "confdefs.h"
15347 /* System header to define __stub macros and hopefully few prototypes,
15348 which can conflict with char $ac_func(); below. */
15349 #include <assert.h>
15350 /* Override any gcc2 internal prototype to avoid an error. */
15351 /* We use char because int might match the return type of a gcc2
15352 builtin and then its argument prototype would still apply. */
15358 /* The GNU C library defines this for functions which it implements
15359 to always fail with ENOSYS. Some functions are actually named
15360 something starting with __ and the normal name is an alias. */
15361 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15369 if { (eval echo configure:15370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15371 eval "ac_cv_func_$ac_func=yes"
15373 echo "configure: failed program was:" >&5
15374 cat conftest.$ac_ext >&5
15376 eval "ac_cv_func_$ac_func=no"
15381 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15382 echo "$ac_t""yes" 1>&6
15383 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15384 cat >> confdefs.h <<EOF
15385 #define $ac_tr_func 1
15389 echo "$ac_t""no" 1>&6
15394 if test $ac_cv_func_sched_yield = no -a \
15395 $ac_cv_func_pthread_yield = no ; then
15396 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
15397 echo "configure:15398: checking for sched_yield in -lrt" >&5
15398 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
15399 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15400 echo $ac_n "(cached) $ac_c" 1>&6
15402 ac_save_LIBS="$LIBS"
15404 cat > conftest.$ac_ext <<EOF
15405 #line 15406 "configure"
15406 #include "confdefs.h"
15407 /* Override any gcc2 internal prototype to avoid an error. */
15408 /* We use char because int might match the return type of a gcc2
15409 builtin and then its argument prototype would still apply. */
15410 char sched_yield();
15416 if { (eval echo configure:15417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15418 eval "ac_cv_lib_$ac_lib_var=yes"
15420 echo "configure: failed program was:" >&5
15421 cat conftest.$ac_ext >&5
15423 eval "ac_cv_lib_$ac_lib_var=no"
15426 LIBS="$ac_save_LIBS"
15429 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15430 echo "$ac_t""yes" 1>&6
15431 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
15432 cat >> confdefs.h <<\EOF
15433 #define HAVE_SCHED_YIELD 1
15436 ac_cv_func_sched_yield=yes
15438 echo "$ac_t""no" 1>&6
15439 ac_cv_func_sched_yield=no
15443 if test $ac_cv_func_sched_yield = no -a \
15444 $ac_cv_func_pthread_yield = no ; then
15445 for ac_func in thr_yield
15447 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15448 echo "configure:15449: checking for $ac_func" >&5
15449 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15450 echo $ac_n "(cached) $ac_c" 1>&6
15452 cat > conftest.$ac_ext <<EOF
15453 #line 15454 "configure"
15454 #include "confdefs.h"
15455 /* System header to define __stub macros and hopefully few prototypes,
15456 which can conflict with char $ac_func(); below. */
15457 #include <assert.h>
15458 /* Override any gcc2 internal prototype to avoid an error. */
15459 /* We use char because int might match the return type of a gcc2
15460 builtin and then its argument prototype would still apply. */
15466 /* The GNU C library defines this for functions which it implements
15467 to always fail with ENOSYS. Some functions are actually named
15468 something starting with __ and the normal name is an alias. */
15469 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15477 if { (eval echo configure:15478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15479 eval "ac_cv_func_$ac_func=yes"
15481 echo "configure: failed program was:" >&5
15482 cat conftest.$ac_ext >&5
15484 eval "ac_cv_func_$ac_func=no"
15489 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15490 echo "$ac_t""yes" 1>&6
15491 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15492 cat >> confdefs.h <<EOF
15493 #define $ac_tr_func 1
15497 echo "$ac_t""no" 1>&6
15502 if test $ac_cv_func_sched_yield = no -a \
15503 $ac_cv_func_pthread_yield = no -a \
15504 "$ac_cv_func_thr_yield" = no ; then
15505 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
15508 for ac_func in pthread_kill pthread_rwlock_destroy
15510 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15511 echo "configure:15512: checking for $ac_func" >&5
15512 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15513 echo $ac_n "(cached) $ac_c" 1>&6
15515 cat > conftest.$ac_ext <<EOF
15516 #line 15517 "configure"
15517 #include "confdefs.h"
15518 /* System header to define __stub macros and hopefully few prototypes,
15519 which can conflict with char $ac_func(); below. */
15520 #include <assert.h>
15521 /* Override any gcc2 internal prototype to avoid an error. */
15522 /* We use char because int might match the return type of a gcc2
15523 builtin and then its argument prototype would still apply. */
15529 /* The GNU C library defines this for functions which it implements
15530 to always fail with ENOSYS. Some functions are actually named
15531 something starting with __ and the normal name is an alias. */
15532 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15540 if { (eval echo configure:15541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15542 eval "ac_cv_func_$ac_func=yes"
15544 echo "configure: failed program was:" >&5
15545 cat conftest.$ac_ext >&5
15547 eval "ac_cv_func_$ac_func=no"
15552 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15553 echo "$ac_t""yes" 1>&6
15554 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15555 cat >> confdefs.h <<EOF
15556 #define $ac_tr_func 1
15560 echo "$ac_t""no" 1>&6
15565 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
15566 echo "configure:15567: checking for pthread_detach with <pthread.h>" >&5
15567 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
15568 echo $ac_n "(cached) $ac_c" 1>&6
15571 cat > conftest.$ac_ext <<EOF
15572 #line 15573 "configure"
15573 #include "confdefs.h"
15575 #include <pthread.h>
15577 #define NULL (void*)0
15581 pthread_detach(NULL);
15584 if { (eval echo configure:15585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15586 ol_cv_func_pthread_detach=yes
15588 echo "configure: failed program was:" >&5
15589 cat conftest.$ac_ext >&5
15591 ol_cv_func_pthread_detach=no
15597 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
15599 if test $ol_cv_func_pthread_detach = no ; then
15600 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
15603 cat >> confdefs.h <<\EOF
15604 #define HAVE_PTHREAD_DETACH 1
15609 pthread_setconcurrency \
15610 pthread_getconcurrency \
15611 thr_setconcurrency \
15612 thr_getconcurrency \
15615 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15616 echo "configure:15617: checking for $ac_func" >&5
15617 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15618 echo $ac_n "(cached) $ac_c" 1>&6
15620 cat > conftest.$ac_ext <<EOF
15621 #line 15622 "configure"
15622 #include "confdefs.h"
15623 /* System header to define __stub macros and hopefully few prototypes,
15624 which can conflict with char $ac_func(); below. */
15625 #include <assert.h>
15626 /* Override any gcc2 internal prototype to avoid an error. */
15627 /* We use char because int might match the return type of a gcc2
15628 builtin and then its argument prototype would still apply. */
15634 /* The GNU C library defines this for functions which it implements
15635 to always fail with ENOSYS. Some functions are actually named
15636 something starting with __ and the normal name is an alias. */
15637 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15645 if { (eval echo configure:15646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15647 eval "ac_cv_func_$ac_func=yes"
15649 echo "configure: failed program was:" >&5
15650 cat conftest.$ac_ext >&5
15652 eval "ac_cv_func_$ac_func=no"
15657 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15658 echo "$ac_t""yes" 1>&6
15659 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15660 cat >> confdefs.h <<EOF
15661 #define $ac_tr_func 1
15665 echo "$ac_t""no" 1>&6
15671 for ac_func in pthread_kill_other_threads_np
15673 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15674 echo "configure:15675: checking for $ac_func" >&5
15675 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15676 echo $ac_n "(cached) $ac_c" 1>&6
15678 cat > conftest.$ac_ext <<EOF
15679 #line 15680 "configure"
15680 #include "confdefs.h"
15681 /* System header to define __stub macros and hopefully few prototypes,
15682 which can conflict with char $ac_func(); below. */
15683 #include <assert.h>
15684 /* Override any gcc2 internal prototype to avoid an error. */
15685 /* We use char because int might match the return type of a gcc2
15686 builtin and then its argument prototype would still apply. */
15692 /* The GNU C library defines this for functions which it implements
15693 to always fail with ENOSYS. Some functions are actually named
15694 something starting with __ and the normal name is an alias. */
15695 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15703 if { (eval echo configure:15704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15705 eval "ac_cv_func_$ac_func=yes"
15707 echo "configure: failed program was:" >&5
15708 cat conftest.$ac_ext >&5
15710 eval "ac_cv_func_$ac_func=no"
15715 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15716 echo "$ac_t""yes" 1>&6
15717 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15718 cat >> confdefs.h <<EOF
15719 #define $ac_tr_func 1
15723 echo "$ac_t""no" 1>&6
15727 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
15728 echo "configure:15729: checking for LinuxThreads implementation" >&5
15729 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
15730 echo $ac_n "(cached) $ac_c" 1>&6
15732 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
15735 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
15740 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
15741 echo "configure:15742: checking for LinuxThreads consistency" >&5
15742 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
15743 echo $ac_n "(cached) $ac_c" 1>&6
15746 if test $ol_cv_header_linux_threads = yes -a \
15747 $ol_cv_sys_linux_threads = yes; then
15748 ol_cv_linux_threads=yes
15749 elif test $ol_cv_header_linux_threads = no -a \
15750 $ol_cv_sys_linux_threads = no; then
15751 ol_cv_linux_threads=no
15753 ol_cv_linux_threads=error
15758 echo "$ac_t""$ol_cv_linux_threads" 1>&6
15761 if test $ol_cv_linux_threads = error; then
15762 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
15765 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
15766 echo "configure:15767: checking if pthread_create() works" >&5
15767 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
15768 echo $ac_n "(cached) $ac_c" 1>&6
15771 if test "$cross_compiling" = yes; then
15772 ol_cv_pthread_create_works=yes
15774 cat > conftest.$ac_ext <<EOF
15775 #line 15776 "configure"
15776 #include "confdefs.h"
15777 /* pthread test headers */
15778 #include <pthread.h>
15780 #define NULL (void*)0
15783 static void *task(p)
15786 return (void *) (p == NULL);
15790 int main(argc, argv)
15795 /* pthread test function */
15800 #ifdef HAVE_PTHREADS_FINAL
15801 /* Final pthreads */
15802 pthread_attr_t attr;
15804 status = pthread_attr_init(&attr);
15805 if( status ) return status;
15807 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
15809 #if defined( PTHREAD_CREATE_JOINABLE )
15810 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
15812 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
15815 #ifdef PTHREAD_CREATE_DETACHED
15817 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
15820 if( status ) return status;
15823 status = pthread_create( &t, &attr, task, NULL );
15824 if( status ) return status;
15826 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
15828 /* give thread a chance to complete */
15829 /* it should remain joinable and hence detachable */
15832 status = pthread_detach( t );
15833 if( status ) return status;
15838 /* Draft 4 pthreads */
15839 status = pthread_create( &t, pthread_attr_default, task, NULL );
15840 if( status ) return status;
15843 /* give thread a chance to complete */
15844 /* it should remain joinable and hence detachable */
15847 status = pthread_detach( &t );
15848 if( status ) return status;
15852 #ifdef HAVE_LINUX_THREADS
15853 pthread_kill_other_threads_np();
15861 if { (eval echo configure:15862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15863 ol_cv_pthread_create_works=yes
15865 echo "configure: failed program was:" >&5
15866 cat conftest.$ac_ext >&5
15868 ol_cv_pthread_create_works=no
15875 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
15877 if test $ol_cv_pthread_create_works = no ; then
15878 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
15881 if test $ol_with_yielding_select = auto ; then
15882 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
15883 echo "configure:15884: checking if select yields when using pthreads" >&5
15884 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
15885 echo $ac_n "(cached) $ac_c" 1>&6
15888 if test "$cross_compiling" = yes; then
15889 ol_cv_pthread_select_yields=cross
15891 cat > conftest.$ac_ext <<EOF
15892 #line 15893 "configure"
15893 #include "confdefs.h"
15895 #include <sys/types.h>
15896 #include <sys/time.h>
15897 #include <unistd.h>
15898 #include <pthread.h>
15900 #define NULL (void*) 0
15903 static int fildes[2];
15905 static void *task(p)
15917 FD_SET(fildes[0], &rfds);
15919 /* we're not interested in any fds */
15920 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
15927 exit(0); /* if we exit here, the select blocked the whole process */
15930 int main(argc, argv)
15936 /* create a pipe to select */
15937 if(pipe(&fildes[0])) {
15942 #ifdef HAVE_PTHREAD_SETCONCURRENCY
15943 (void) pthread_setconcurrency(2);
15945 #ifdef HAVE_THR_SETCONCURRENCY
15946 /* Set Solaris LWP concurrency to 2 */
15947 thr_setconcurrency(2);
15951 #if HAVE_PTHREADS_D4
15952 pthread_create(&t, pthread_attr_default, task, NULL);
15954 pthread_create(&t, NULL, task, NULL);
15957 #if HAVE_SCHED_YIELD
15958 sched_yield(); /* make sure task runs first */
15960 #ifdef HAVE_PTHREAD_YIELD
15961 pthread_yield(); /* make sure task runs first */
15968 if { (eval echo configure:15969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15970 ol_cv_pthread_select_yields=no
15972 echo "configure: failed program was:" >&5
15973 cat conftest.$ac_ext >&5
15975 ol_cv_pthread_select_yields=yes
15982 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
15984 if test $ol_cv_pthread_select_yields = cross ; then
15985 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
15988 if test $ol_cv_pthread_select_yields = yes ; then
15989 ol_with_yielding_select=yes
15993 CPPFLAGS="$save_CPPFLAGS"
15996 { echo "configure: error: could not locate usable POSIX Threads" 1>&2; exit 1; }
16000 if test $ol_with_threads = posix ; then
16001 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
16005 if test $ol_with_threads = auto -o $ol_with_threads = yes \
16006 -o $ol_with_threads = mach ; then
16008 for ac_hdr in mach/cthreads.h cthreads.h
16010 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16011 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16012 echo "configure:16013: checking for $ac_hdr" >&5
16013 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16014 echo $ac_n "(cached) $ac_c" 1>&6
16016 cat > conftest.$ac_ext <<EOF
16017 #line 16018 "configure"
16018 #include "confdefs.h"
16021 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16022 { (eval echo configure:16023: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16023 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16024 if test -z "$ac_err"; then
16026 eval "ac_cv_header_$ac_safe=yes"
16029 echo "configure: failed program was:" >&5
16030 cat conftest.$ac_ext >&5
16032 eval "ac_cv_header_$ac_safe=no"
16036 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16037 echo "$ac_t""yes" 1>&6
16038 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16039 cat >> confdefs.h <<EOF
16040 #define $ac_tr_hdr 1
16044 echo "$ac_t""no" 1>&6
16048 if test $ac_cv_header_mach_cthreads_h = yes ; then
16049 ol_with_threads=found
16051 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
16052 echo "configure:16053: checking for cthread_fork" >&5
16053 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
16054 echo $ac_n "(cached) $ac_c" 1>&6
16056 cat > conftest.$ac_ext <<EOF
16057 #line 16058 "configure"
16058 #include "confdefs.h"
16059 /* System header to define __stub macros and hopefully few prototypes,
16060 which can conflict with char cthread_fork(); below. */
16061 #include <assert.h>
16062 /* Override any gcc2 internal prototype to avoid an error. */
16063 /* We use char because int might match the return type of a gcc2
16064 builtin and then its argument prototype would still apply. */
16065 char cthread_fork();
16070 /* The GNU C library defines this for functions which it implements
16071 to always fail with ENOSYS. Some functions are actually named
16072 something starting with __ and the normal name is an alias. */
16073 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
16081 if { (eval echo configure:16082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16083 eval "ac_cv_func_cthread_fork=yes"
16085 echo "configure: failed program was:" >&5
16086 cat conftest.$ac_ext >&5
16088 eval "ac_cv_func_cthread_fork=no"
16093 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
16094 echo "$ac_t""yes" 1>&6
16095 ol_link_threads=yes
16097 echo "$ac_t""no" 1>&6
16101 if test $ol_link_threads = no ; then
16102 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
16103 echo "configure:16104: checking for cthread_fork with -all_load" >&5
16104 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
16105 echo $ac_n "(cached) $ac_c" 1>&6
16109 LIBS="-all_load $LIBS"
16110 cat > conftest.$ac_ext <<EOF
16111 #line 16112 "configure"
16112 #include "confdefs.h"
16113 #include <mach/cthreads.h>
16116 cthread_fork((void *)0, (void *)0);
16120 if { (eval echo configure:16121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16122 ol_cv_cthread_all_load=yes
16124 echo "configure: failed program was:" >&5
16125 cat conftest.$ac_ext >&5
16127 ol_cv_cthread_all_load=no
16134 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
16136 if test $ol_cv_cthread_all_load = yes ; then
16137 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
16138 ol_link_threads=mach
16139 ol_with_threads=found
16143 elif test $ac_cv_header_cthreads_h = yes ; then
16145 ol_with_threads=found
16148 LIBS="$LIBS -lthreads"
16149 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
16150 echo "configure:16151: checking for cthread_fork" >&5
16151 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
16152 echo $ac_n "(cached) $ac_c" 1>&6
16154 cat > conftest.$ac_ext <<EOF
16155 #line 16156 "configure"
16156 #include "confdefs.h"
16157 /* System header to define __stub macros and hopefully few prototypes,
16158 which can conflict with char cthread_fork(); below. */
16159 #include <assert.h>
16160 /* Override any gcc2 internal prototype to avoid an error. */
16161 /* We use char because int might match the return type of a gcc2
16162 builtin and then its argument prototype would still apply. */
16163 char cthread_fork();
16168 /* The GNU C library defines this for functions which it implements
16169 to always fail with ENOSYS. Some functions are actually named
16170 something starting with __ and the normal name is an alias. */
16171 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
16179 if { (eval echo configure:16180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16181 eval "ac_cv_func_cthread_fork=yes"
16183 echo "configure: failed program was:" >&5
16184 cat conftest.$ac_ext >&5
16186 eval "ac_cv_func_cthread_fork=no"
16191 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
16192 echo "$ac_t""yes" 1>&6
16193 ol_link_threads=yes
16195 echo "$ac_t""no" 1>&6
16200 if test $ol_link_threads = yes ; then
16201 LTHREAD_LIBS="-lthreads"
16202 ol_link_threads=mach
16203 ol_with_threads=found
16205 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
16208 elif test $ol_with_threads = mach ; then
16209 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
16212 if test $ol_link_threads = mach ; then
16213 cat >> confdefs.h <<\EOF
16214 #define HAVE_MACH_CTHREADS 1
16217 elif test $ol_with_threads = found ; then
16218 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
16222 if test $ol_with_threads = auto -o $ol_with_threads = yes \
16223 -o $ol_with_threads = pth ; then
16225 for ac_hdr in pth.h
16227 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16228 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16229 echo "configure:16230: checking for $ac_hdr" >&5
16230 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16231 echo $ac_n "(cached) $ac_c" 1>&6
16233 cat > conftest.$ac_ext <<EOF
16234 #line 16235 "configure"
16235 #include "confdefs.h"
16238 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16239 { (eval echo configure:16240: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16240 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16241 if test -z "$ac_err"; then
16243 eval "ac_cv_header_$ac_safe=yes"
16246 echo "configure: failed program was:" >&5
16247 cat conftest.$ac_ext >&5
16249 eval "ac_cv_header_$ac_safe=no"
16253 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16254 echo "$ac_t""yes" 1>&6
16255 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16256 cat >> confdefs.h <<EOF
16257 #define $ac_tr_hdr 1
16261 echo "$ac_t""no" 1>&6
16266 if test $ac_cv_header_pth_h = yes ; then
16267 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
16268 echo "configure:16269: checking for pth_version in -lpth" >&5
16269 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
16270 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
16271 echo $ac_n "(cached) $ac_c" 1>&6
16273 ac_save_LIBS="$LIBS"
16275 cat > conftest.$ac_ext <<EOF
16276 #line 16277 "configure"
16277 #include "confdefs.h"
16278 /* Override any gcc2 internal prototype to avoid an error. */
16279 /* We use char because int might match the return type of a gcc2
16280 builtin and then its argument prototype would still apply. */
16281 char pth_version();
16287 if { (eval echo configure:16288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16289 eval "ac_cv_lib_$ac_lib_var=yes"
16291 echo "configure: failed program was:" >&5
16292 cat conftest.$ac_ext >&5
16294 eval "ac_cv_lib_$ac_lib_var=no"
16297 LIBS="$ac_save_LIBS"
16300 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16301 echo "$ac_t""yes" 1>&6
16304 echo "$ac_t""no" 1>&6
16309 if test $have_pth = yes ; then
16310 cat >> confdefs.h <<\EOF
16311 #define HAVE_GNU_PTH 1
16314 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
16315 ol_link_threads=pth
16316 ol_with_threads=found
16318 if test $ol_with_yielding_select = auto ; then
16319 ol_with_yielding_select=yes
16325 if test $ol_with_threads = auto -o $ol_with_threads = yes \
16326 -o $ol_with_threads = lwp ; then
16328 for ac_hdr in thread.h synch.h
16330 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16331 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16332 echo "configure:16333: checking for $ac_hdr" >&5
16333 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16334 echo $ac_n "(cached) $ac_c" 1>&6
16336 cat > conftest.$ac_ext <<EOF
16337 #line 16338 "configure"
16338 #include "confdefs.h"
16341 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16342 { (eval echo configure:16343: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16343 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16344 if test -z "$ac_err"; then
16346 eval "ac_cv_header_$ac_safe=yes"
16349 echo "configure: failed program was:" >&5
16350 cat conftest.$ac_ext >&5
16352 eval "ac_cv_header_$ac_safe=no"
16356 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16357 echo "$ac_t""yes" 1>&6
16358 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16359 cat >> confdefs.h <<EOF
16360 #define $ac_tr_hdr 1
16364 echo "$ac_t""no" 1>&6
16368 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
16369 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
16370 echo "configure:16371: checking for thr_create in -lthread" >&5
16371 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
16372 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
16373 echo $ac_n "(cached) $ac_c" 1>&6
16375 ac_save_LIBS="$LIBS"
16376 LIBS="-lthread $LIBS"
16377 cat > conftest.$ac_ext <<EOF
16378 #line 16379 "configure"
16379 #include "confdefs.h"
16380 /* Override any gcc2 internal prototype to avoid an error. */
16381 /* We use char because int might match the return type of a gcc2
16382 builtin and then its argument prototype would still apply. */
16389 if { (eval echo configure:16390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16391 eval "ac_cv_lib_$ac_lib_var=yes"
16393 echo "configure: failed program was:" >&5
16394 cat conftest.$ac_ext >&5
16396 eval "ac_cv_lib_$ac_lib_var=no"
16399 LIBS="$ac_save_LIBS"
16402 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16403 echo "$ac_t""yes" 1>&6
16406 echo "$ac_t""no" 1>&6
16411 if test $have_thr = yes ; then
16412 cat >> confdefs.h <<\EOF
16416 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
16417 ol_link_threads=thr
16419 if test $ol_with_yielding_select = auto ; then
16420 ol_with_yielding_select=yes
16424 thr_setconcurrency \
16425 thr_getconcurrency \
16428 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16429 echo "configure:16430: checking for $ac_func" >&5
16430 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
16431 echo $ac_n "(cached) $ac_c" 1>&6
16433 cat > conftest.$ac_ext <<EOF
16434 #line 16435 "configure"
16435 #include "confdefs.h"
16436 /* System header to define __stub macros and hopefully few prototypes,
16437 which can conflict with char $ac_func(); below. */
16438 #include <assert.h>
16439 /* Override any gcc2 internal prototype to avoid an error. */
16440 /* We use char because int might match the return type of a gcc2
16441 builtin and then its argument prototype would still apply. */
16447 /* The GNU C library defines this for functions which it implements
16448 to always fail with ENOSYS. Some functions are actually named
16449 something starting with __ and the normal name is an alias. */
16450 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16458 if { (eval echo configure:16459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16460 eval "ac_cv_func_$ac_func=yes"
16462 echo "configure: failed program was:" >&5
16463 cat conftest.$ac_ext >&5
16465 eval "ac_cv_func_$ac_func=no"
16470 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16471 echo "$ac_t""yes" 1>&6
16472 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16473 cat >> confdefs.h <<EOF
16474 #define $ac_tr_func 1
16478 echo "$ac_t""no" 1>&6
16485 for ac_hdr in lwp/lwp.h
16487 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16488 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16489 echo "configure:16490: checking for $ac_hdr" >&5
16490 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16491 echo $ac_n "(cached) $ac_c" 1>&6
16493 cat > conftest.$ac_ext <<EOF
16494 #line 16495 "configure"
16495 #include "confdefs.h"
16498 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16499 { (eval echo configure:16500: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16500 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16501 if test -z "$ac_err"; then
16503 eval "ac_cv_header_$ac_safe=yes"
16506 echo "configure: failed program was:" >&5
16507 cat conftest.$ac_ext >&5
16509 eval "ac_cv_header_$ac_safe=no"
16513 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16514 echo "$ac_t""yes" 1>&6
16515 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16516 cat >> confdefs.h <<EOF
16517 #define $ac_tr_hdr 1
16521 echo "$ac_t""no" 1>&6
16525 if test $ac_cv_header_lwp_lwp_h = yes ; then
16526 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
16527 echo "configure:16528: checking for lwp_create in -llwp" >&5
16528 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
16529 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
16530 echo $ac_n "(cached) $ac_c" 1>&6
16532 ac_save_LIBS="$LIBS"
16534 cat > conftest.$ac_ext <<EOF
16535 #line 16536 "configure"
16536 #include "confdefs.h"
16537 /* Override any gcc2 internal prototype to avoid an error. */
16538 /* We use char because int might match the return type of a gcc2
16539 builtin and then its argument prototype would still apply. */
16546 if { (eval echo configure:16547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16548 eval "ac_cv_lib_$ac_lib_var=yes"
16550 echo "configure: failed program was:" >&5
16551 cat conftest.$ac_ext >&5
16553 eval "ac_cv_lib_$ac_lib_var=no"
16556 LIBS="$ac_save_LIBS"
16559 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16560 echo "$ac_t""yes" 1>&6
16563 echo "$ac_t""no" 1>&6
16568 if test $have_lwp = yes ; then
16569 cat >> confdefs.h <<\EOF
16573 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
16574 ol_link_threads=lwp
16576 if test $ol_with_yielding_select = auto ; then
16577 ol_with_yielding_select=no
16583 if test $ol_with_yielding_select = yes ; then
16584 cat >> confdefs.h <<\EOF
16585 #define HAVE_YIELDING_SELECT 1
16590 if test $ol_with_threads = manual ; then
16591 ol_link_threads=yes
16593 echo "configure: warning: thread defines and link options must be set manually" 1>&2
16595 for ac_hdr in pthread.h sched.h
16597 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16598 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16599 echo "configure:16600: checking for $ac_hdr" >&5
16600 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16601 echo $ac_n "(cached) $ac_c" 1>&6
16603 cat > conftest.$ac_ext <<EOF
16604 #line 16605 "configure"
16605 #include "confdefs.h"
16608 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16609 { (eval echo configure:16610: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16610 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16611 if test -z "$ac_err"; then
16613 eval "ac_cv_header_$ac_safe=yes"
16616 echo "configure: failed program was:" >&5
16617 cat conftest.$ac_ext >&5
16619 eval "ac_cv_header_$ac_safe=no"
16623 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16624 echo "$ac_t""yes" 1>&6
16625 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16626 cat >> confdefs.h <<EOF
16627 #define $ac_tr_hdr 1
16631 echo "$ac_t""no" 1>&6
16635 for ac_func in sched_yield pthread_yield
16637 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16638 echo "configure:16639: checking for $ac_func" >&5
16639 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
16640 echo $ac_n "(cached) $ac_c" 1>&6
16642 cat > conftest.$ac_ext <<EOF
16643 #line 16644 "configure"
16644 #include "confdefs.h"
16645 /* System header to define __stub macros and hopefully few prototypes,
16646 which can conflict with char $ac_func(); below. */
16647 #include <assert.h>
16648 /* Override any gcc2 internal prototype to avoid an error. */
16649 /* We use char because int might match the return type of a gcc2
16650 builtin and then its argument prototype would still apply. */
16656 /* The GNU C library defines this for functions which it implements
16657 to always fail with ENOSYS. Some functions are actually named
16658 something starting with __ and the normal name is an alias. */
16659 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16667 if { (eval echo configure:16668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16669 eval "ac_cv_func_$ac_func=yes"
16671 echo "configure: failed program was:" >&5
16672 cat conftest.$ac_ext >&5
16674 eval "ac_cv_func_$ac_func=no"
16679 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16680 echo "$ac_t""yes" 1>&6
16681 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16682 cat >> confdefs.h <<EOF
16683 #define $ac_tr_func 1
16687 echo "$ac_t""no" 1>&6
16692 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
16693 echo "configure:16694: checking for LinuxThreads pthread.h" >&5
16694 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
16695 echo $ac_n "(cached) $ac_c" 1>&6
16697 cat > conftest.$ac_ext <<EOF
16698 #line 16699 "configure"
16699 #include "confdefs.h"
16700 #include <pthread.h>
16702 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16703 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
16705 ol_cv_header_linux_threads=yes
16708 ol_cv_header_linux_threads=no
16715 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
16716 if test $ol_cv_header_linux_threads = yes; then
16717 cat >> confdefs.h <<\EOF
16718 #define HAVE_LINUX_THREADS 1
16724 for ac_hdr in mach/cthreads.h
16726 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16727 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16728 echo "configure:16729: checking for $ac_hdr" >&5
16729 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16730 echo $ac_n "(cached) $ac_c" 1>&6
16732 cat > conftest.$ac_ext <<EOF
16733 #line 16734 "configure"
16734 #include "confdefs.h"
16737 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16738 { (eval echo configure:16739: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16739 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16740 if test -z "$ac_err"; then
16742 eval "ac_cv_header_$ac_safe=yes"
16745 echo "configure: failed program was:" >&5
16746 cat conftest.$ac_ext >&5
16748 eval "ac_cv_header_$ac_safe=no"
16752 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16753 echo "$ac_t""yes" 1>&6
16754 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16755 cat >> confdefs.h <<EOF
16756 #define $ac_tr_hdr 1
16760 echo "$ac_t""no" 1>&6
16764 for ac_hdr in lwp/lwp.h
16766 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16767 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16768 echo "configure:16769: checking for $ac_hdr" >&5
16769 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16770 echo $ac_n "(cached) $ac_c" 1>&6
16772 cat > conftest.$ac_ext <<EOF
16773 #line 16774 "configure"
16774 #include "confdefs.h"
16777 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16778 { (eval echo configure:16779: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16779 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16780 if test -z "$ac_err"; then
16782 eval "ac_cv_header_$ac_safe=yes"
16785 echo "configure: failed program was:" >&5
16786 cat conftest.$ac_ext >&5
16788 eval "ac_cv_header_$ac_safe=no"
16792 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16793 echo "$ac_t""yes" 1>&6
16794 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16795 cat >> confdefs.h <<EOF
16796 #define $ac_tr_hdr 1
16800 echo "$ac_t""no" 1>&6
16804 for ac_hdr in thread.h synch.h
16806 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16807 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16808 echo "configure:16809: checking for $ac_hdr" >&5
16809 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16810 echo $ac_n "(cached) $ac_c" 1>&6
16812 cat > conftest.$ac_ext <<EOF
16813 #line 16814 "configure"
16814 #include "confdefs.h"
16817 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16818 { (eval echo configure:16819: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16819 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16820 if test -z "$ac_err"; then
16822 eval "ac_cv_header_$ac_safe=yes"
16825 echo "configure: failed program was:" >&5
16826 cat conftest.$ac_ext >&5
16828 eval "ac_cv_header_$ac_safe=no"
16832 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16833 echo "$ac_t""yes" 1>&6
16834 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16835 cat >> confdefs.h <<EOF
16836 #define $ac_tr_hdr 1
16840 echo "$ac_t""no" 1>&6
16846 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
16847 cat >> confdefs.h <<\EOF
16848 #define REENTRANT 1
16851 cat >> confdefs.h <<\EOF
16852 #define _REENTRANT 1
16855 cat >> confdefs.h <<\EOF
16856 #define THREAD_SAFE 1
16859 cat >> confdefs.h <<\EOF
16860 #define _THREAD_SAFE 1
16863 cat >> confdefs.h <<\EOF
16864 #define THREADSAFE 1
16867 cat >> confdefs.h <<\EOF
16868 #define _THREADSAFE 1
16871 cat >> confdefs.h <<\EOF
16872 #define _SGI_MP_SOURCE 1
16876 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
16877 echo "configure:16878: checking for thread specific errno" >&5
16878 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
16879 echo $ac_n "(cached) $ac_c" 1>&6
16882 cat > conftest.$ac_ext <<EOF
16883 #line 16884 "configure"
16884 #include "confdefs.h"
16890 if { (eval echo configure:16891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16892 ol_cv_errno_thread_specific=yes
16894 echo "configure: failed program was:" >&5
16895 cat conftest.$ac_ext >&5
16897 ol_cv_errno_thread_specific=no
16903 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
16905 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
16906 echo "configure:16907: checking for thread specific h_errno" >&5
16907 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
16908 echo $ac_n "(cached) $ac_c" 1>&6
16911 cat > conftest.$ac_ext <<EOF
16912 #line 16913 "configure"
16913 #include "confdefs.h"
16919 if { (eval echo configure:16920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16921 ol_cv_h_errno_thread_specific=yes
16923 echo "configure: failed program was:" >&5
16924 cat conftest.$ac_ext >&5
16926 ol_cv_h_errno_thread_specific=no
16932 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
16934 if test $ol_cv_errno_thread_specific != yes \
16935 -o $ol_cv_h_errno_thread_specific != yes ; then
16936 LIBS="$LTHREAD_LIBS $LIBS"
16942 if test $ol_link_threads = no ; then
16943 if test $ol_with_threads = yes ; then
16944 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
16947 if test $ol_with_threads = auto ; then
16948 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
16952 cat >> confdefs.h <<\EOF
16953 #define NO_THREADS 1
16959 if test $ol_link_threads != no ; then
16960 cat >> confdefs.h <<\EOF
16961 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
16968 if test $ol_with_ldbm_api = auto \
16969 -o $ol_with_ldbm_api = berkeley \
16970 -o $ol_with_ldbm_api = bcompat ; then
16972 if test $ol_with_ldbm_api = bcompat; then \
16973 for ac_hdr in db_185.h db.h
16975 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16976 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16977 echo "configure:16978: checking for $ac_hdr" >&5
16978 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16979 echo $ac_n "(cached) $ac_c" 1>&6
16981 cat > conftest.$ac_ext <<EOF
16982 #line 16983 "configure"
16983 #include "confdefs.h"
16986 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16987 { (eval echo configure:16988: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16988 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16989 if test -z "$ac_err"; then
16991 eval "ac_cv_header_$ac_safe=yes"
16994 echo "configure: failed program was:" >&5
16995 cat conftest.$ac_ext >&5
16997 eval "ac_cv_header_$ac_safe=no"
17001 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17002 echo "$ac_t""yes" 1>&6
17003 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17004 cat >> confdefs.h <<EOF
17005 #define $ac_tr_hdr 1
17009 echo "$ac_t""no" 1>&6
17013 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
17014 echo $ac_n "checking if Berkeley DB header compatibility""... $ac_c" 1>&6
17015 echo "configure:17016: checking if Berkeley DB header compatibility" >&5
17016 if eval "test \"\${ol_cv_header_db1+set}\" = set"; then
17017 echo $ac_n "(cached) $ac_c" 1>&6
17020 cat > conftest.$ac_ext <<EOF
17021 #line 17022 "configure"
17022 #include "confdefs.h"
17025 # include <db_185.h>
17030 /* this check could be improved */
17031 #ifndef DB_VERSION_MAJOR
17032 # define DB_VERSION_MAJOR 1
17035 #if DB_VERSION_MAJOR == 1
17040 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17041 egrep "__db_version_1" >/dev/null 2>&1; then
17043 ol_cv_header_db1=yes
17046 ol_cv_header_db1=no
17052 echo "$ac_t""$ol_cv_header_db1" 1>&6
17054 if test $ol_cv_header_db1 = yes ; then
17056 if test $ol_cv_lib_db = no ; then
17057 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
17058 echo "configure:17059: checking for Berkeley DB link (default)" >&5
17059 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
17060 echo $ac_n "(cached) $ac_c" 1>&6
17065 LIBS="$ol_DB_LIB $LIBS"
17067 cat > conftest.$ac_ext <<EOF
17068 #line 17069 "configure"
17069 #include "confdefs.h"
17071 #ifdef HAVE_DB_185_H
17072 # include <db_185.h>
17077 #ifndef DB_VERSION_MAJOR
17078 # define DB_VERSION_MAJOR 1
17082 #define NULL ((void*)0)
17087 #if DB_VERSION_MAJOR > 1
17090 int major, minor, patch;
17092 version = db_version( &major, &minor, &patch );
17094 if( major != DB_VERSION_MAJOR ||
17095 minor < DB_VERSION_MINOR )
17097 printf("Berkeley DB version mismatch\n"
17098 "\texpected: %s\n\tgot: %s\n",
17099 DB_VERSION_STRING, version);
17105 #if DB_VERSION_MAJOR > 2
17106 db_env_create( NULL, 0 );
17107 #elif DB_VERSION_MAJOR > 1
17108 db_appexit( NULL );
17110 (void) dbopen( NULL, 0, 0, 0, NULL);
17115 if { (eval echo configure:17116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17119 echo "configure: failed program was:" >&5
17120 cat conftest.$ac_ext >&5
17130 echo "$ac_t""$ol_cv_db_none" 1>&6
17132 if test $ol_cv_db_none = yes ; then
17137 if test $ol_cv_lib_db = no ; then
17138 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
17139 echo "configure:17140: checking for Berkeley DB link (-ldb)" >&5
17140 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
17141 echo $ac_n "(cached) $ac_c" 1>&6
17146 LIBS="$ol_DB_LIB $LIBS"
17148 cat > conftest.$ac_ext <<EOF
17149 #line 17150 "configure"
17150 #include "confdefs.h"
17152 #ifdef HAVE_DB_185_H
17153 # include <db_185.h>
17158 #ifndef DB_VERSION_MAJOR
17159 # define DB_VERSION_MAJOR 1
17163 #define NULL ((void*)0)
17168 #if DB_VERSION_MAJOR > 1
17171 int major, minor, patch;
17173 version = db_version( &major, &minor, &patch );
17175 if( major != DB_VERSION_MAJOR ||
17176 minor < DB_VERSION_MINOR )
17178 printf("Berkeley DB version mismatch\n"
17179 "\texpected: %s\n\tgot: %s\n",
17180 DB_VERSION_STRING, version);
17186 #if DB_VERSION_MAJOR > 2
17187 db_env_create( NULL, 0 );
17188 #elif DB_VERSION_MAJOR > 1
17189 db_appexit( NULL );
17191 (void) dbopen( NULL, 0, 0, 0, NULL);
17196 if { (eval echo configure:17197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17200 echo "configure: failed program was:" >&5
17201 cat conftest.$ac_ext >&5
17211 echo "$ac_t""$ol_cv_db_db" 1>&6
17213 if test $ol_cv_db_db = yes ; then
17218 if test $ol_cv_lib_db = no ; then
17219 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
17220 echo "configure:17221: checking for Berkeley DB link (-ldb4)" >&5
17221 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
17222 echo $ac_n "(cached) $ac_c" 1>&6
17227 LIBS="$ol_DB_LIB $LIBS"
17229 cat > conftest.$ac_ext <<EOF
17230 #line 17231 "configure"
17231 #include "confdefs.h"
17233 #ifdef HAVE_DB_185_H
17234 # include <db_185.h>
17239 #ifndef DB_VERSION_MAJOR
17240 # define DB_VERSION_MAJOR 1
17244 #define NULL ((void*)0)
17249 #if DB_VERSION_MAJOR > 1
17252 int major, minor, patch;
17254 version = db_version( &major, &minor, &patch );
17256 if( major != DB_VERSION_MAJOR ||
17257 minor < DB_VERSION_MINOR )
17259 printf("Berkeley DB version mismatch\n"
17260 "\texpected: %s\n\tgot: %s\n",
17261 DB_VERSION_STRING, version);
17267 #if DB_VERSION_MAJOR > 2
17268 db_env_create( NULL, 0 );
17269 #elif DB_VERSION_MAJOR > 1
17270 db_appexit( NULL );
17272 (void) dbopen( NULL, 0, 0, 0, NULL);
17277 if { (eval echo configure:17278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17281 echo "configure: failed program was:" >&5
17282 cat conftest.$ac_ext >&5
17292 echo "$ac_t""$ol_cv_db_db4" 1>&6
17294 if test $ol_cv_db_db4 = yes ; then
17299 if test $ol_cv_lib_db = no ; then
17300 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
17301 echo "configure:17302: checking for Berkeley DB link (-ldb3)" >&5
17302 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
17303 echo $ac_n "(cached) $ac_c" 1>&6
17308 LIBS="$ol_DB_LIB $LIBS"
17310 cat > conftest.$ac_ext <<EOF
17311 #line 17312 "configure"
17312 #include "confdefs.h"
17314 #ifdef HAVE_DB_185_H
17315 # include <db_185.h>
17320 #ifndef DB_VERSION_MAJOR
17321 # define DB_VERSION_MAJOR 1
17325 #define NULL ((void*)0)
17330 #if DB_VERSION_MAJOR > 1
17333 int major, minor, patch;
17335 version = db_version( &major, &minor, &patch );
17337 if( major != DB_VERSION_MAJOR ||
17338 minor < DB_VERSION_MINOR )
17340 printf("Berkeley DB version mismatch\n"
17341 "\texpected: %s\n\tgot: %s\n",
17342 DB_VERSION_STRING, version);
17348 #if DB_VERSION_MAJOR > 2
17349 db_env_create( NULL, 0 );
17350 #elif DB_VERSION_MAJOR > 1
17351 db_appexit( NULL );
17353 (void) dbopen( NULL, 0, 0, 0, NULL);
17358 if { (eval echo configure:17359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17362 echo "configure: failed program was:" >&5
17363 cat conftest.$ac_ext >&5
17373 echo "$ac_t""$ol_cv_db_db3" 1>&6
17375 if test $ol_cv_db_db3 = yes ; then
17380 if test $ol_cv_lib_db = no ; then
17381 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
17382 echo "configure:17383: checking for Berkeley DB link (-ldb2)" >&5
17383 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
17384 echo $ac_n "(cached) $ac_c" 1>&6
17389 LIBS="$ol_DB_LIB $LIBS"
17391 cat > conftest.$ac_ext <<EOF
17392 #line 17393 "configure"
17393 #include "confdefs.h"
17395 #ifdef HAVE_DB_185_H
17396 # include <db_185.h>
17401 #ifndef DB_VERSION_MAJOR
17402 # define DB_VERSION_MAJOR 1
17406 #define NULL ((void*)0)
17411 #if DB_VERSION_MAJOR > 1
17414 int major, minor, patch;
17416 version = db_version( &major, &minor, &patch );
17418 if( major != DB_VERSION_MAJOR ||
17419 minor < DB_VERSION_MINOR )
17421 printf("Berkeley DB version mismatch\n"
17422 "\texpected: %s\n\tgot: %s\n",
17423 DB_VERSION_STRING, version);
17429 #if DB_VERSION_MAJOR > 2
17430 db_env_create( NULL, 0 );
17431 #elif DB_VERSION_MAJOR > 1
17432 db_appexit( NULL );
17434 (void) dbopen( NULL, 0, 0, 0, NULL);
17439 if { (eval echo configure:17440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17443 echo "configure: failed program was:" >&5
17444 cat conftest.$ac_ext >&5
17454 echo "$ac_t""$ol_cv_db_db2" 1>&6
17456 if test $ol_cv_db_db2 = yes ; then
17461 if test $ol_cv_lib_db = no ; then
17462 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
17463 echo "configure:17464: checking for Berkeley DB link (-ldb1)" >&5
17464 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
17465 echo $ac_n "(cached) $ac_c" 1>&6
17470 LIBS="$ol_DB_LIB $LIBS"
17472 cat > conftest.$ac_ext <<EOF
17473 #line 17474 "configure"
17474 #include "confdefs.h"
17476 #ifdef HAVE_DB_185_H
17477 # include <db_185.h>
17482 #ifndef DB_VERSION_MAJOR
17483 # define DB_VERSION_MAJOR 1
17487 #define NULL ((void*)0)
17492 #if DB_VERSION_MAJOR > 1
17495 int major, minor, patch;
17497 version = db_version( &major, &minor, &patch );
17499 if( major != DB_VERSION_MAJOR ||
17500 minor < DB_VERSION_MINOR )
17502 printf("Berkeley DB version mismatch\n"
17503 "\texpected: %s\n\tgot: %s\n",
17504 DB_VERSION_STRING, version);
17510 #if DB_VERSION_MAJOR > 2
17511 db_env_create( NULL, 0 );
17512 #elif DB_VERSION_MAJOR > 1
17513 db_appexit( NULL );
17515 (void) dbopen( NULL, 0, 0, 0, NULL);
17520 if { (eval echo configure:17521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17524 echo "configure: failed program was:" >&5
17525 cat conftest.$ac_ext >&5
17535 echo "$ac_t""$ol_cv_db_db1" 1>&6
17537 if test $ol_cv_db_db1 = yes ; then
17543 if test "$ol_cv_lib_db" != no ; then
17544 ol_cv_berkeley_db=yes
17550 ol_cv_berkeley_db=no
17553 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17554 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17555 echo "configure:17556: checking for $ac_hdr" >&5
17556 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
17557 echo $ac_n "(cached) $ac_c" 1>&6
17559 cat > conftest.$ac_ext <<EOF
17560 #line 17561 "configure"
17561 #include "confdefs.h"
17564 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17565 { (eval echo configure:17566: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17566 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17567 if test -z "$ac_err"; then
17569 eval "ac_cv_header_$ac_safe=yes"
17572 echo "configure: failed program was:" >&5
17573 cat conftest.$ac_ext >&5
17575 eval "ac_cv_header_$ac_safe=no"
17579 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17580 echo "$ac_t""yes" 1>&6
17581 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17582 cat >> confdefs.h <<EOF
17583 #define $ac_tr_hdr 1
17587 echo "$ac_t""no" 1>&6
17591 if test $ac_cv_header_db_h = yes; then
17593 if test $ol_cv_lib_db = no ; then
17594 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
17595 echo "configure:17596: checking for Berkeley DB link (default)" >&5
17596 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
17597 echo $ac_n "(cached) $ac_c" 1>&6
17602 LIBS="$ol_DB_LIB $LIBS"
17604 cat > conftest.$ac_ext <<EOF
17605 #line 17606 "configure"
17606 #include "confdefs.h"
17608 #ifdef HAVE_DB_185_H
17609 # include <db_185.h>
17614 #ifndef DB_VERSION_MAJOR
17615 # define DB_VERSION_MAJOR 1
17619 #define NULL ((void*)0)
17624 #if DB_VERSION_MAJOR > 1
17627 int major, minor, patch;
17629 version = db_version( &major, &minor, &patch );
17631 if( major != DB_VERSION_MAJOR ||
17632 minor < DB_VERSION_MINOR )
17634 printf("Berkeley DB version mismatch\n"
17635 "\texpected: %s\n\tgot: %s\n",
17636 DB_VERSION_STRING, version);
17642 #if DB_VERSION_MAJOR > 2
17643 db_env_create( NULL, 0 );
17644 #elif DB_VERSION_MAJOR > 1
17645 db_appexit( NULL );
17647 (void) dbopen( NULL, 0, 0, 0, NULL);
17652 if { (eval echo configure:17653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17656 echo "configure: failed program was:" >&5
17657 cat conftest.$ac_ext >&5
17667 echo "$ac_t""$ol_cv_db_none" 1>&6
17669 if test $ol_cv_db_none = yes ; then
17674 if test $ol_cv_lib_db = no ; then
17675 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
17676 echo "configure:17677: checking for Berkeley DB link (-ldb)" >&5
17677 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
17678 echo $ac_n "(cached) $ac_c" 1>&6
17683 LIBS="$ol_DB_LIB $LIBS"
17685 cat > conftest.$ac_ext <<EOF
17686 #line 17687 "configure"
17687 #include "confdefs.h"
17689 #ifdef HAVE_DB_185_H
17690 # include <db_185.h>
17695 #ifndef DB_VERSION_MAJOR
17696 # define DB_VERSION_MAJOR 1
17700 #define NULL ((void*)0)
17705 #if DB_VERSION_MAJOR > 1
17708 int major, minor, patch;
17710 version = db_version( &major, &minor, &patch );
17712 if( major != DB_VERSION_MAJOR ||
17713 minor < DB_VERSION_MINOR )
17715 printf("Berkeley DB version mismatch\n"
17716 "\texpected: %s\n\tgot: %s\n",
17717 DB_VERSION_STRING, version);
17723 #if DB_VERSION_MAJOR > 2
17724 db_env_create( NULL, 0 );
17725 #elif DB_VERSION_MAJOR > 1
17726 db_appexit( NULL );
17728 (void) dbopen( NULL, 0, 0, 0, NULL);
17733 if { (eval echo configure:17734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17737 echo "configure: failed program was:" >&5
17738 cat conftest.$ac_ext >&5
17748 echo "$ac_t""$ol_cv_db_db" 1>&6
17750 if test $ol_cv_db_db = yes ; then
17755 if test $ol_cv_lib_db = no ; then
17756 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
17757 echo "configure:17758: checking for Berkeley DB link (-ldb4)" >&5
17758 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
17759 echo $ac_n "(cached) $ac_c" 1>&6
17764 LIBS="$ol_DB_LIB $LIBS"
17766 cat > conftest.$ac_ext <<EOF
17767 #line 17768 "configure"
17768 #include "confdefs.h"
17770 #ifdef HAVE_DB_185_H
17771 # include <db_185.h>
17776 #ifndef DB_VERSION_MAJOR
17777 # define DB_VERSION_MAJOR 1
17781 #define NULL ((void*)0)
17786 #if DB_VERSION_MAJOR > 1
17789 int major, minor, patch;
17791 version = db_version( &major, &minor, &patch );
17793 if( major != DB_VERSION_MAJOR ||
17794 minor < DB_VERSION_MINOR )
17796 printf("Berkeley DB version mismatch\n"
17797 "\texpected: %s\n\tgot: %s\n",
17798 DB_VERSION_STRING, version);
17804 #if DB_VERSION_MAJOR > 2
17805 db_env_create( NULL, 0 );
17806 #elif DB_VERSION_MAJOR > 1
17807 db_appexit( NULL );
17809 (void) dbopen( NULL, 0, 0, 0, NULL);
17814 if { (eval echo configure:17815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17818 echo "configure: failed program was:" >&5
17819 cat conftest.$ac_ext >&5
17829 echo "$ac_t""$ol_cv_db_db4" 1>&6
17831 if test $ol_cv_db_db4 = yes ; then
17836 if test $ol_cv_lib_db = no ; then
17837 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
17838 echo "configure:17839: checking for Berkeley DB link (-ldb3)" >&5
17839 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
17840 echo $ac_n "(cached) $ac_c" 1>&6
17845 LIBS="$ol_DB_LIB $LIBS"
17847 cat > conftest.$ac_ext <<EOF
17848 #line 17849 "configure"
17849 #include "confdefs.h"
17851 #ifdef HAVE_DB_185_H
17852 # include <db_185.h>
17857 #ifndef DB_VERSION_MAJOR
17858 # define DB_VERSION_MAJOR 1
17862 #define NULL ((void*)0)
17867 #if DB_VERSION_MAJOR > 1
17870 int major, minor, patch;
17872 version = db_version( &major, &minor, &patch );
17874 if( major != DB_VERSION_MAJOR ||
17875 minor < DB_VERSION_MINOR )
17877 printf("Berkeley DB version mismatch\n"
17878 "\texpected: %s\n\tgot: %s\n",
17879 DB_VERSION_STRING, version);
17885 #if DB_VERSION_MAJOR > 2
17886 db_env_create( NULL, 0 );
17887 #elif DB_VERSION_MAJOR > 1
17888 db_appexit( NULL );
17890 (void) dbopen( NULL, 0, 0, 0, NULL);
17895 if { (eval echo configure:17896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17899 echo "configure: failed program was:" >&5
17900 cat conftest.$ac_ext >&5
17910 echo "$ac_t""$ol_cv_db_db3" 1>&6
17912 if test $ol_cv_db_db3 = yes ; then
17917 if test $ol_cv_lib_db = no ; then
17918 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
17919 echo "configure:17920: checking for Berkeley DB link (-ldb2)" >&5
17920 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
17921 echo $ac_n "(cached) $ac_c" 1>&6
17926 LIBS="$ol_DB_LIB $LIBS"
17928 cat > conftest.$ac_ext <<EOF
17929 #line 17930 "configure"
17930 #include "confdefs.h"
17932 #ifdef HAVE_DB_185_H
17933 # include <db_185.h>
17938 #ifndef DB_VERSION_MAJOR
17939 # define DB_VERSION_MAJOR 1
17943 #define NULL ((void*)0)
17948 #if DB_VERSION_MAJOR > 1
17951 int major, minor, patch;
17953 version = db_version( &major, &minor, &patch );
17955 if( major != DB_VERSION_MAJOR ||
17956 minor < DB_VERSION_MINOR )
17958 printf("Berkeley DB version mismatch\n"
17959 "\texpected: %s\n\tgot: %s\n",
17960 DB_VERSION_STRING, version);
17966 #if DB_VERSION_MAJOR > 2
17967 db_env_create( NULL, 0 );
17968 #elif DB_VERSION_MAJOR > 1
17969 db_appexit( NULL );
17971 (void) dbopen( NULL, 0, 0, 0, NULL);
17976 if { (eval echo configure:17977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17980 echo "configure: failed program was:" >&5
17981 cat conftest.$ac_ext >&5
17991 echo "$ac_t""$ol_cv_db_db2" 1>&6
17993 if test $ol_cv_db_db2 = yes ; then
17998 if test $ol_cv_lib_db = no ; then
17999 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
18000 echo "configure:18001: checking for Berkeley DB link (-ldb1)" >&5
18001 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
18002 echo $ac_n "(cached) $ac_c" 1>&6
18007 LIBS="$ol_DB_LIB $LIBS"
18009 cat > conftest.$ac_ext <<EOF
18010 #line 18011 "configure"
18011 #include "confdefs.h"
18013 #ifdef HAVE_DB_185_H
18014 # include <db_185.h>
18019 #ifndef DB_VERSION_MAJOR
18020 # define DB_VERSION_MAJOR 1
18024 #define NULL ((void*)0)
18029 #if DB_VERSION_MAJOR > 1
18032 int major, minor, patch;
18034 version = db_version( &major, &minor, &patch );
18036 if( major != DB_VERSION_MAJOR ||
18037 minor < DB_VERSION_MINOR )
18039 printf("Berkeley DB version mismatch\n"
18040 "\texpected: %s\n\tgot: %s\n",
18041 DB_VERSION_STRING, version);
18047 #if DB_VERSION_MAJOR > 2
18048 db_env_create( NULL, 0 );
18049 #elif DB_VERSION_MAJOR > 1
18050 db_appexit( NULL );
18052 (void) dbopen( NULL, 0, 0, 0, NULL);
18057 if { (eval echo configure:18058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18061 echo "configure: failed program was:" >&5
18062 cat conftest.$ac_ext >&5
18072 echo "$ac_t""$ol_cv_db_db1" 1>&6
18074 if test $ol_cv_db_db1 = yes ; then
18080 if test "$ol_cv_lib_db" != no ; then
18081 ol_cv_berkeley_db=yes
18082 echo $ac_n "checking for Berkeley DB thread support""... $ac_c" 1>&6
18083 echo "configure:18084: checking for Berkeley DB thread support" >&5
18084 if eval "test \"\${ol_cv_berkeley_db_thread+set}\" = set"; then
18085 echo $ac_n "(cached) $ac_c" 1>&6
18089 if test $ol_cv_lib_db != yes ; then
18090 LIBS="$ol_cv_lib_db"
18093 if test "$cross_compiling" = yes; then
18094 ol_cv_berkeley_db_thread=cross
18096 cat > conftest.$ac_ext <<EOF
18097 #line 18098 "configure"
18098 #include "confdefs.h"
18100 #ifdef HAVE_DB_185_H
18106 #define NULL ((void *)0)
18111 u_int32_t flags = DB_CREATE |
18117 #if DB_VERSION_MAJOR > 2
18118 DB_ENV *env = NULL;
18120 rc = db_env_create( &env, 0 );
18122 flags |= DB_INIT_MPOOL;
18123 #ifdef DB_MPOOL_PRIVATE
18124 flags |= DB_MPOOL_PRIVATE;
18128 printf("BerkeleyDB: %s\n", db_strerror(rc) );
18132 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
18133 rc = env->open( env, NULL, flags, 0 );
18135 rc = env->open( env, NULL, NULL, flags, 0 );
18139 rc = env->close( env, 0 );
18143 printf("BerkeleyDB: %s\n", db_strerror(rc) );
18149 memset( &env, '\0', sizeof(env) );
18151 rc = db_appinit( NULL, NULL, &env, flags );
18154 db_appexit( &env );
18157 unlink("__db_mpool.share");
18158 unlink("__db_lock.share");
18164 if { (eval echo configure:18165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
18166 ol_cv_berkeley_db_thread=yes
18168 echo "configure: failed program was:" >&5
18169 cat conftest.$ac_ext >&5
18171 ol_cv_berkeley_db_thread=no
18179 if test $ol_cv_berkeley_db_thread != no ; then
18180 cat >> confdefs.h <<\EOF
18181 #define HAVE_BERKELEY_DB_THREAD 1
18188 echo "$ac_t""$ol_cv_berkeley_db_thread" 1>&6
18194 if test $ol_cv_berkeley_db != no ; then
18195 cat >> confdefs.h <<\EOF
18196 #define HAVE_BERKELEY_DB 1
18200 ol_link_ldbm=berkeley
18201 ol_with_ldbm_api=berkeley
18203 if test $ol_with_ldbm_type = hash ; then
18204 cat >> confdefs.h <<\EOF
18205 #define LDBM_USE_DBHASH 1
18209 cat >> confdefs.h <<\EOF
18210 #define LDBM_USE_DBBTREE 1
18215 if test $ol_cv_lib_db != yes ; then
18216 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
18221 if test $ol_enable_bdb = yes -a $ol_link_ldbm != berkeley ; then
18222 { echo "configure: error: BDB: BerkeleyDB not available" 1>&2; exit 1; }
18223 elif test $ol_enable_bdb != no -a $ol_link_ldbm = berkeley ; then
18224 echo $ac_n "checking Berkeley DB version for BDB backend""... $ac_c" 1>&6
18225 echo "configure:18226: checking Berkeley DB version for BDB backend" >&5
18226 if eval "test \"\${ol_cv_bdb_compat+set}\" = set"; then
18227 echo $ac_n "(cached) $ac_c" 1>&6
18230 cat > conftest.$ac_ext <<EOF
18231 #line 18232 "configure"
18232 #include "confdefs.h"
18236 /* this check could be improved */
18237 #ifndef DB_VERSION_MAJOR
18238 # define DB_VERSION_MAJOR 1
18241 /* require 4.0 or later */
18242 #if DB_VERSION_MAJOR >= 4
18243 __db_version_compat
18247 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18248 egrep "__db_version_compat" >/dev/null 2>&1; then
18250 ol_cv_bdb_compat=yes
18253 ol_cv_bdb_compat=no
18259 echo "$ac_t""$ol_cv_bdb_compat" 1>&6
18262 if test $ol_cv_bdb_compat = yes ; then
18264 elif test $ol_enable_bdb = yes ; then
18265 { echo "configure: error: BDB: BerkeleyDB version incompatible" 1>&2; exit 1; }
18271 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
18272 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
18273 ol_with_ldbm_api=none
18276 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
18277 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
18278 echo "configure:18279: checking for MDBM library" >&5
18279 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
18280 echo $ac_n "(cached) $ac_c" 1>&6
18283 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
18284 echo "configure:18285: checking for mdbm_set_chain" >&5
18285 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
18286 echo $ac_n "(cached) $ac_c" 1>&6
18288 cat > conftest.$ac_ext <<EOF
18289 #line 18290 "configure"
18290 #include "confdefs.h"
18291 /* System header to define __stub macros and hopefully few prototypes,
18292 which can conflict with char mdbm_set_chain(); below. */
18293 #include <assert.h>
18294 /* Override any gcc2 internal prototype to avoid an error. */
18295 /* We use char because int might match the return type of a gcc2
18296 builtin and then its argument prototype would still apply. */
18297 char mdbm_set_chain();
18302 /* The GNU C library defines this for functions which it implements
18303 to always fail with ENOSYS. Some functions are actually named
18304 something starting with __ and the normal name is an alias. */
18305 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
18308 f = mdbm_set_chain;
18313 if { (eval echo configure:18314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18315 eval "ac_cv_func_mdbm_set_chain=yes"
18317 echo "configure: failed program was:" >&5
18318 cat conftest.$ac_ext >&5
18320 eval "ac_cv_func_mdbm_set_chain=no"
18325 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
18326 echo "$ac_t""yes" 1>&6
18329 echo "$ac_t""no" 1>&6
18331 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
18332 echo "configure:18333: checking for mdbm_set_chain in -lmdbm" >&5
18333 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
18334 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
18335 echo $ac_n "(cached) $ac_c" 1>&6
18337 ac_save_LIBS="$LIBS"
18338 LIBS="-lmdbm $LIBS"
18339 cat > conftest.$ac_ext <<EOF
18340 #line 18341 "configure"
18341 #include "confdefs.h"
18342 /* Override any gcc2 internal prototype to avoid an error. */
18343 /* We use char because int might match the return type of a gcc2
18344 builtin and then its argument prototype would still apply. */
18345 char mdbm_set_chain();
18351 if { (eval echo configure:18352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18353 eval "ac_cv_lib_$ac_lib_var=yes"
18355 echo "configure: failed program was:" >&5
18356 cat conftest.$ac_ext >&5
18358 eval "ac_cv_lib_$ac_lib_var=no"
18361 LIBS="$ac_save_LIBS"
18364 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18365 echo "$ac_t""yes" 1>&6
18366 ol_cv_lib_mdbm=-lmdbm
18368 echo "$ac_t""no" 1>&6
18379 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
18382 for ac_hdr in mdbm.h
18384 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18385 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18386 echo "configure:18387: checking for $ac_hdr" >&5
18387 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
18388 echo $ac_n "(cached) $ac_c" 1>&6
18390 cat > conftest.$ac_ext <<EOF
18391 #line 18392 "configure"
18392 #include "confdefs.h"
18395 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18396 { (eval echo configure:18397: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18397 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18398 if test -z "$ac_err"; then
18400 eval "ac_cv_header_$ac_safe=yes"
18403 echo "configure: failed program was:" >&5
18404 cat conftest.$ac_ext >&5
18406 eval "ac_cv_header_$ac_safe=no"
18410 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18411 echo "$ac_t""yes" 1>&6
18412 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18413 cat >> confdefs.h <<EOF
18414 #define $ac_tr_hdr 1
18418 echo "$ac_t""no" 1>&6
18422 echo $ac_n "checking for db""... $ac_c" 1>&6
18423 echo "configure:18424: checking for db" >&5
18424 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
18425 echo $ac_n "(cached) $ac_c" 1>&6
18428 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
18436 echo "$ac_t""$ol_cv_mdbm" 1>&6
18437 if test $ol_cv_mdbm = yes ; then
18438 cat >> confdefs.h <<\EOF
18439 #define HAVE_MDBM 1
18445 if test $ol_cv_mdbm = yes ; then
18447 ol_with_ldbm_api=mdbm
18448 if test $ol_cv_lib_mdbm != yes ; then
18449 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
18454 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
18455 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
18456 echo "configure:18457: checking for GDBM library" >&5
18457 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
18458 echo $ac_n "(cached) $ac_c" 1>&6
18461 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
18462 echo "configure:18463: checking for gdbm_open" >&5
18463 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
18464 echo $ac_n "(cached) $ac_c" 1>&6
18466 cat > conftest.$ac_ext <<EOF
18467 #line 18468 "configure"
18468 #include "confdefs.h"
18469 /* System header to define __stub macros and hopefully few prototypes,
18470 which can conflict with char gdbm_open(); below. */
18471 #include <assert.h>
18472 /* Override any gcc2 internal prototype to avoid an error. */
18473 /* We use char because int might match the return type of a gcc2
18474 builtin and then its argument prototype would still apply. */
18480 /* The GNU C library defines this for functions which it implements
18481 to always fail with ENOSYS. Some functions are actually named
18482 something starting with __ and the normal name is an alias. */
18483 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
18491 if { (eval echo configure:18492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18493 eval "ac_cv_func_gdbm_open=yes"
18495 echo "configure: failed program was:" >&5
18496 cat conftest.$ac_ext >&5
18498 eval "ac_cv_func_gdbm_open=no"
18503 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
18504 echo "$ac_t""yes" 1>&6
18507 echo "$ac_t""no" 1>&6
18509 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
18510 echo "configure:18511: checking for gdbm_open in -lgdbm" >&5
18511 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
18512 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
18513 echo $ac_n "(cached) $ac_c" 1>&6
18515 ac_save_LIBS="$LIBS"
18516 LIBS="-lgdbm $LIBS"
18517 cat > conftest.$ac_ext <<EOF
18518 #line 18519 "configure"
18519 #include "confdefs.h"
18520 /* Override any gcc2 internal prototype to avoid an error. */
18521 /* We use char because int might match the return type of a gcc2
18522 builtin and then its argument prototype would still apply. */
18529 if { (eval echo configure:18530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18531 eval "ac_cv_lib_$ac_lib_var=yes"
18533 echo "configure: failed program was:" >&5
18534 cat conftest.$ac_ext >&5
18536 eval "ac_cv_lib_$ac_lib_var=no"
18539 LIBS="$ac_save_LIBS"
18542 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18543 echo "$ac_t""yes" 1>&6
18544 ol_cv_lib_gdbm=-lgdbm
18546 echo "$ac_t""no" 1>&6
18557 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
18560 for ac_hdr in gdbm.h
18562 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18563 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18564 echo "configure:18565: checking for $ac_hdr" >&5
18565 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
18566 echo $ac_n "(cached) $ac_c" 1>&6
18568 cat > conftest.$ac_ext <<EOF
18569 #line 18570 "configure"
18570 #include "confdefs.h"
18573 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18574 { (eval echo configure:18575: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18575 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18576 if test -z "$ac_err"; then
18578 eval "ac_cv_header_$ac_safe=yes"
18581 echo "configure: failed program was:" >&5
18582 cat conftest.$ac_ext >&5
18584 eval "ac_cv_header_$ac_safe=no"
18588 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18589 echo "$ac_t""yes" 1>&6
18590 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18591 cat >> confdefs.h <<EOF
18592 #define $ac_tr_hdr 1
18596 echo "$ac_t""no" 1>&6
18600 echo $ac_n "checking for db""... $ac_c" 1>&6
18601 echo "configure:18602: checking for db" >&5
18602 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
18603 echo $ac_n "(cached) $ac_c" 1>&6
18606 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
18614 echo "$ac_t""$ol_cv_gdbm" 1>&6
18615 if test $ol_cv_gdbm = yes ; then
18616 cat >> confdefs.h <<\EOF
18617 #define HAVE_GDBM 1
18623 if test $ol_cv_gdbm = yes ; then
18625 ol_with_ldbm_api=gdbm
18627 if test $ol_cv_lib_gdbm != yes ; then
18628 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
18633 if test $ol_with_ldbm_api = ndbm ; then
18634 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
18635 echo "configure:18636: checking for NDBM library" >&5
18636 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
18637 echo $ac_n "(cached) $ac_c" 1>&6
18640 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
18641 echo "configure:18642: checking for dbm_open" >&5
18642 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
18643 echo $ac_n "(cached) $ac_c" 1>&6
18645 cat > conftest.$ac_ext <<EOF
18646 #line 18647 "configure"
18647 #include "confdefs.h"
18648 /* System header to define __stub macros and hopefully few prototypes,
18649 which can conflict with char dbm_open(); below. */
18650 #include <assert.h>
18651 /* Override any gcc2 internal prototype to avoid an error. */
18652 /* We use char because int might match the return type of a gcc2
18653 builtin and then its argument prototype would still apply. */
18659 /* The GNU C library defines this for functions which it implements
18660 to always fail with ENOSYS. Some functions are actually named
18661 something starting with __ and the normal name is an alias. */
18662 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
18670 if { (eval echo configure:18671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18672 eval "ac_cv_func_dbm_open=yes"
18674 echo "configure: failed program was:" >&5
18675 cat conftest.$ac_ext >&5
18677 eval "ac_cv_func_dbm_open=no"
18682 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
18683 echo "$ac_t""yes" 1>&6
18686 echo "$ac_t""no" 1>&6
18688 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
18689 echo "configure:18690: checking for dbm_open in -lndbm" >&5
18690 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
18691 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
18692 echo $ac_n "(cached) $ac_c" 1>&6
18694 ac_save_LIBS="$LIBS"
18695 LIBS="-lndbm $LIBS"
18696 cat > conftest.$ac_ext <<EOF
18697 #line 18698 "configure"
18698 #include "confdefs.h"
18699 /* Override any gcc2 internal prototype to avoid an error. */
18700 /* We use char because int might match the return type of a gcc2
18701 builtin and then its argument prototype would still apply. */
18708 if { (eval echo configure:18709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18710 eval "ac_cv_lib_$ac_lib_var=yes"
18712 echo "configure: failed program was:" >&5
18713 cat conftest.$ac_ext >&5
18715 eval "ac_cv_lib_$ac_lib_var=no"
18718 LIBS="$ac_save_LIBS"
18721 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18722 echo "$ac_t""yes" 1>&6
18723 ol_cv_lib_ndbm=-lndbm
18725 echo "$ac_t""no" 1>&6
18727 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
18728 echo "configure:18729: checking for dbm_open in -ldbm" >&5
18729 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
18730 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
18731 echo $ac_n "(cached) $ac_c" 1>&6
18733 ac_save_LIBS="$LIBS"
18735 cat > conftest.$ac_ext <<EOF
18736 #line 18737 "configure"
18737 #include "confdefs.h"
18738 /* Override any gcc2 internal prototype to avoid an error. */
18739 /* We use char because int might match the return type of a gcc2
18740 builtin and then its argument prototype would still apply. */
18747 if { (eval echo configure:18748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18749 eval "ac_cv_lib_$ac_lib_var=yes"
18751 echo "configure: failed program was:" >&5
18752 cat conftest.$ac_ext >&5
18754 eval "ac_cv_lib_$ac_lib_var=no"
18757 LIBS="$ac_save_LIBS"
18760 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18761 echo "$ac_t""yes" 1>&6
18762 ol_cv_lib_ndbm=-ldbm
18764 echo "$ac_t""no" 1>&6
18777 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
18780 for ac_hdr in ndbm.h
18782 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18783 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18784 echo "configure:18785: checking for $ac_hdr" >&5
18785 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
18786 echo $ac_n "(cached) $ac_c" 1>&6
18788 cat > conftest.$ac_ext <<EOF
18789 #line 18790 "configure"
18790 #include "confdefs.h"
18793 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18794 { (eval echo configure:18795: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18795 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18796 if test -z "$ac_err"; then
18798 eval "ac_cv_header_$ac_safe=yes"
18801 echo "configure: failed program was:" >&5
18802 cat conftest.$ac_ext >&5
18804 eval "ac_cv_header_$ac_safe=no"
18808 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18809 echo "$ac_t""yes" 1>&6
18810 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18811 cat >> confdefs.h <<EOF
18812 #define $ac_tr_hdr 1
18816 echo "$ac_t""no" 1>&6
18820 echo $ac_n "checking for db""... $ac_c" 1>&6
18821 echo "configure:18822: checking for db" >&5
18822 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
18823 echo $ac_n "(cached) $ac_c" 1>&6
18826 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
18834 echo "$ac_t""$ol_cv_ndbm" 1>&6
18835 if test $ol_cv_ndbm = yes ; then
18836 cat >> confdefs.h <<\EOF
18837 #define HAVE_NDBM 1
18843 if test $ol_cv_ndbm = yes ; then
18845 ol_with_ldbm_api=ndbm
18847 if test $ol_cv_lib_ndbm != yes ; then
18848 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
18853 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
18854 echo "configure: warning: could not find suitable LDBM backend" 1>&2
18855 if test $ol_enable_ldbm = yes ; then
18856 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
18859 echo "configure: warning: disabling LDBM" 1>&2
18863 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
18864 BUILD_LIBS_DYNAMIC=shared
18865 cat >> confdefs.h <<\EOF
18866 #define LDAP_LIBS_DYNAMIC 1
18870 BUILD_LIBS_DYNAMIC=static
18873 if test $ol_enable_wrappers != no ; then
18874 for ac_hdr in tcpd.h
18876 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18877 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18878 echo "configure:18879: checking for $ac_hdr" >&5
18879 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
18880 echo $ac_n "(cached) $ac_c" 1>&6
18882 cat > conftest.$ac_ext <<EOF
18883 #line 18884 "configure"
18884 #include "confdefs.h"
18887 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18888 { (eval echo configure:18889: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18889 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18890 if test -z "$ac_err"; then
18892 eval "ac_cv_header_$ac_safe=yes"
18895 echo "configure: failed program was:" >&5
18896 cat conftest.$ac_ext >&5
18898 eval "ac_cv_header_$ac_safe=no"
18902 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18903 echo "$ac_t""yes" 1>&6
18904 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18905 cat >> confdefs.h <<EOF
18906 #define $ac_tr_hdr 1
18909 echo $ac_n "checking for TCP wrappers library""... $ac_c" 1>&6
18910 echo "configure:18911: checking for TCP wrappers library" >&5
18912 LIBS="$LIBS -lwrap"
18913 cat > conftest.$ac_ext <<EOF
18914 #line 18915 "configure"
18915 #include "confdefs.h"
18918 int allow_severity = 0;
18919 int deny_severity = 0;
18921 struct request_info *req;
18929 if { (eval echo configure:18930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18931 echo "$ac_t""-lwrap" 1>&6
18935 echo "configure: failed program was:" >&5
18936 cat conftest.$ac_ext >&5
18940 cat > conftest.$ac_ext <<EOF
18941 #line 18942 "configure"
18942 #include "confdefs.h"
18945 int allow_severity = 0;
18946 int deny_severity = 0;
18948 struct request_info *req;
18956 if { (eval echo configure:18957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18958 echo "$ac_t""-lwrap -lnsl" 1>&6
18960 LIBS="$save_LIBS -lnsl"
18962 echo "configure: failed program was:" >&5
18963 cat conftest.$ac_ext >&5
18966 echo "$ac_t""no" 1>&6
18974 echo "$ac_t""no" 1>&6
18980 if test $have_wrappers = yes ; then
18981 cat >> confdefs.h <<\EOF
18982 #define HAVE_TCPD 1
18986 elif test $ol_enable_wrappers = yes ; then
18987 { echo "configure: error: could not find TCP wrappers, select apppropriate options ore disable" 1>&2; exit 1; }
18989 echo "configure: warning: could not find TCP wrappers, support disabled" 1>&2
18994 if test $ol_enable_syslog != no ; then
18995 echo $ac_n "checking for openlog""... $ac_c" 1>&6
18996 echo "configure:18997: checking for openlog" >&5
18997 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
18998 echo $ac_n "(cached) $ac_c" 1>&6
19000 cat > conftest.$ac_ext <<EOF
19001 #line 19002 "configure"
19002 #include "confdefs.h"
19003 /* System header to define __stub macros and hopefully few prototypes,
19004 which can conflict with char openlog(); below. */
19005 #include <assert.h>
19006 /* Override any gcc2 internal prototype to avoid an error. */
19007 /* We use char because int might match the return type of a gcc2
19008 builtin and then its argument prototype would still apply. */
19014 /* The GNU C library defines this for functions which it implements
19015 to always fail with ENOSYS. Some functions are actually named
19016 something starting with __ and the normal name is an alias. */
19017 #if defined (__stub_openlog) || defined (__stub___openlog)
19025 if { (eval echo configure:19026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19027 eval "ac_cv_func_openlog=yes"
19029 echo "configure: failed program was:" >&5
19030 cat conftest.$ac_ext >&5
19032 eval "ac_cv_func_openlog=no"
19037 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
19038 echo "$ac_t""yes" 1>&6
19041 echo "$ac_t""no" 1>&6
19044 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
19045 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
19047 ol_enable_syslog=$ac_cv_func_openlog
19052 if test $ol_enable_sql != no ; then
19053 echo $ac_n "checking for SQLDriverConnect in -liodbc""... $ac_c" 1>&6
19054 echo "configure:19055: checking for SQLDriverConnect in -liodbc" >&5
19055 ac_lib_var=`echo iodbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
19056 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19057 echo $ac_n "(cached) $ac_c" 1>&6
19059 ac_save_LIBS="$LIBS"
19060 LIBS="-liodbc $LIBS"
19061 cat > conftest.$ac_ext <<EOF
19062 #line 19063 "configure"
19063 #include "confdefs.h"
19064 /* Override any gcc2 internal prototype to avoid an error. */
19065 /* We use char because int might match the return type of a gcc2
19066 builtin and then its argument prototype would still apply. */
19067 char SQLDriverConnect();
19073 if { (eval echo configure:19074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19075 eval "ac_cv_lib_$ac_lib_var=yes"
19077 echo "configure: failed program was:" >&5
19078 cat conftest.$ac_ext >&5
19080 eval "ac_cv_lib_$ac_lib_var=no"
19083 LIBS="$ac_save_LIBS"
19086 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19087 echo "$ac_t""yes" 1>&6
19090 echo "$ac_t""no" 1>&6
19094 if test $have_iodbc = yes ; then
19095 ol_link_sql="-liodbc"
19097 echo $ac_n "checking for SQLDriverConnect in -lodbc""... $ac_c" 1>&6
19098 echo "configure:19099: checking for SQLDriverConnect in -lodbc" >&5
19099 ac_lib_var=`echo odbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
19100 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19101 echo $ac_n "(cached) $ac_c" 1>&6
19103 ac_save_LIBS="$LIBS"
19104 LIBS="-lodbc $LIBS"
19105 cat > conftest.$ac_ext <<EOF
19106 #line 19107 "configure"
19107 #include "confdefs.h"
19108 /* Override any gcc2 internal prototype to avoid an error. */
19109 /* We use char because int might match the return type of a gcc2
19110 builtin and then its argument prototype would still apply. */
19111 char SQLDriverConnect();
19117 if { (eval echo configure:19118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19119 eval "ac_cv_lib_$ac_lib_var=yes"
19121 echo "configure: failed program was:" >&5
19122 cat conftest.$ac_ext >&5
19124 eval "ac_cv_lib_$ac_lib_var=no"
19127 LIBS="$ac_save_LIBS"
19130 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19131 echo "$ac_t""yes" 1>&6
19134 echo "$ac_t""no" 1>&6
19138 if test $have_odbc = yes ; then
19139 ol_link_sql="-lodbc"
19143 if test $ol_link_sql != no ; then
19144 SLAPD_SQL_LIBS="$ol_link_sql"
19146 elif test $ol_enable_sql != auto ; then
19147 { echo "configure: error: could not locate suitable ODBC library" 1>&2; exit 1; }
19151 if test $ol_enable_tcl != no ; then
19152 for ac_hdr in tcl.h
19154 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19155 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19156 echo "configure:19157: checking for $ac_hdr" >&5
19157 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19158 echo $ac_n "(cached) $ac_c" 1>&6
19160 cat > conftest.$ac_ext <<EOF
19161 #line 19162 "configure"
19162 #include "confdefs.h"
19165 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19166 { (eval echo configure:19167: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19167 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19168 if test -z "$ac_err"; then
19170 eval "ac_cv_header_$ac_safe=yes"
19173 echo "configure: failed program was:" >&5
19174 cat conftest.$ac_ext >&5
19176 eval "ac_cv_header_$ac_safe=no"
19180 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19181 echo "$ac_t""yes" 1>&6
19182 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19183 cat >> confdefs.h <<EOF
19184 #define $ac_tr_hdr 1
19188 echo "$ac_t""no" 1>&6
19193 if test $ac_cv_header_tcl_h != yes ; then
19196 for lib in tcl tcl7.6 tcl8.0 tcl8.2 ; do
19197 echo $ac_n "checking for main in -l$lib""... $ac_c" 1>&6
19198 echo "configure:19199: checking for main in -l$lib" >&5
19199 ac_lib_var=`echo $lib'_'main | sed 'y%./+-:%__p__%'`
19200 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19201 echo $ac_n "(cached) $ac_c" 1>&6
19203 ac_save_LIBS="$LIBS"
19204 LIBS="-l$lib $LIBS"
19205 cat > conftest.$ac_ext <<EOF
19206 #line 19207 "configure"
19207 #include "confdefs.h"
19213 if { (eval echo configure:19214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19215 eval "ac_cv_lib_$ac_lib_var=yes"
19217 echo "configure: failed program was:" >&5
19218 cat conftest.$ac_ext >&5
19220 eval "ac_cv_lib_$ac_lib_var=no"
19223 LIBS="$ac_save_LIBS"
19226 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19227 echo "$ac_t""yes" 1>&6
19229 if test x"$ol_with_tcl_module" = "xstatic" ; then
19230 SLAPD_LIBS="$SLAPD_LIBS -l${lib}"
19232 MOD_TCL_LIB="-l${lib}"
19235 echo "$ac_t""no" 1>&6
19242 if test $have_tcl != yes ; then
19243 echo "configure: warning: could not find -ltcl" 1>&2
19244 if test $ol_enable_tcl = yes ; then
19245 { echo "configure: error: could not find tcl, select appropriate options or disable" 1>&2; exit 1; }
19253 for ac_hdr in termcap.h ncurses.h
19255 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19256 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19257 echo "configure:19258: checking for $ac_hdr" >&5
19258 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19259 echo $ac_n "(cached) $ac_c" 1>&6
19261 cat > conftest.$ac_ext <<EOF
19262 #line 19263 "configure"
19263 #include "confdefs.h"
19266 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19267 { (eval echo configure:19268: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19268 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19269 if test -z "$ac_err"; then
19271 eval "ac_cv_header_$ac_safe=yes"
19274 echo "configure: failed program was:" >&5
19275 cat conftest.$ac_ext >&5
19277 eval "ac_cv_header_$ac_safe=no"
19281 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19282 echo "$ac_t""yes" 1>&6
19283 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19284 cat >> confdefs.h <<EOF
19285 #define $ac_tr_hdr 1
19289 echo "$ac_t""no" 1>&6
19294 if test $ol_link_termcap = no ; then
19295 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
19296 echo "configure:19297: checking for tputs in -ltermcap" >&5
19297 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-:%__p__%'`
19298 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19299 echo $ac_n "(cached) $ac_c" 1>&6
19301 ac_save_LIBS="$LIBS"
19302 LIBS="-ltermcap $LIBS"
19303 cat > conftest.$ac_ext <<EOF
19304 #line 19305 "configure"
19305 #include "confdefs.h"
19306 /* Override any gcc2 internal prototype to avoid an error. */
19307 /* We use char because int might match the return type of a gcc2
19308 builtin and then its argument prototype would still apply. */
19315 if { (eval echo configure:19316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19317 eval "ac_cv_lib_$ac_lib_var=yes"
19319 echo "configure: failed program was:" >&5
19320 cat conftest.$ac_ext >&5
19322 eval "ac_cv_lib_$ac_lib_var=no"
19325 LIBS="$ac_save_LIBS"
19328 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19329 echo "$ac_t""yes" 1>&6
19332 echo "$ac_t""no" 1>&6
19336 if test $have_termcap = yes ; then
19337 cat >> confdefs.h <<\EOF
19338 #define HAVE_TERMCAP 1
19341 ol_link_termcap=yes
19342 TERMCAP_LIBS=-ltermcap
19346 if test $ol_link_termcap = no ; then
19347 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
19348 echo "configure:19349: checking for initscr in -lncurses" >&5
19349 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-:%__p__%'`
19350 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19351 echo $ac_n "(cached) $ac_c" 1>&6
19353 ac_save_LIBS="$LIBS"
19354 LIBS="-lncurses $LIBS"
19355 cat > conftest.$ac_ext <<EOF
19356 #line 19357 "configure"
19357 #include "confdefs.h"
19358 /* Override any gcc2 internal prototype to avoid an error. */
19359 /* We use char because int might match the return type of a gcc2
19360 builtin and then its argument prototype would still apply. */
19367 if { (eval echo configure:19368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19369 eval "ac_cv_lib_$ac_lib_var=yes"
19371 echo "configure: failed program was:" >&5
19372 cat conftest.$ac_ext >&5
19374 eval "ac_cv_lib_$ac_lib_var=no"
19377 LIBS="$ac_save_LIBS"
19380 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19381 echo "$ac_t""yes" 1>&6
19384 echo "$ac_t""no" 1>&6
19388 if test $have_ncurses = yes ; then
19389 cat >> confdefs.h <<\EOF
19390 #define HAVE_NCURSES 1
19393 ol_link_termcap=yes
19394 TERMCAP_LIBS=-lncurses
19398 if test $ol_link_termcap = no ; then
19399 cat >> confdefs.h <<\EOF
19400 #define NO_TERMCAP 1
19408 if test $ol_with_cyrus_sasl != no ; then
19409 for ac_hdr in sasl/sasl.h sasl.h
19411 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19412 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19413 echo "configure:19414: checking for $ac_hdr" >&5
19414 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19415 echo $ac_n "(cached) $ac_c" 1>&6
19417 cat > conftest.$ac_ext <<EOF
19418 #line 19419 "configure"
19419 #include "confdefs.h"
19422 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19423 { (eval echo configure:19424: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19424 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19425 if test -z "$ac_err"; then
19427 eval "ac_cv_header_$ac_safe=yes"
19430 echo "configure: failed program was:" >&5
19431 cat conftest.$ac_ext >&5
19433 eval "ac_cv_header_$ac_safe=no"
19437 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19438 echo "$ac_t""yes" 1>&6
19439 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19440 cat >> confdefs.h <<EOF
19441 #define $ac_tr_hdr 1
19445 echo "$ac_t""no" 1>&6
19450 if test $ac_cv_header_sasl_sasl_h = yes -o $ac_cv_header_sasl_h = yes; then
19451 echo $ac_n "checking for sasl_client_init in -lsasl2""... $ac_c" 1>&6
19452 echo "configure:19453: checking for sasl_client_init in -lsasl2" >&5
19453 ac_lib_var=`echo sasl2'_'sasl_client_init | sed 'y%./+-:%__p__%'`
19454 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19455 echo $ac_n "(cached) $ac_c" 1>&6
19457 ac_save_LIBS="$LIBS"
19458 LIBS="-lsasl2 $LIBS"
19459 cat > conftest.$ac_ext <<EOF
19460 #line 19461 "configure"
19461 #include "confdefs.h"
19462 /* Override any gcc2 internal prototype to avoid an error. */
19463 /* We use char because int might match the return type of a gcc2
19464 builtin and then its argument prototype would still apply. */
19465 char sasl_client_init();
19471 if { (eval echo configure:19472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19473 eval "ac_cv_lib_$ac_lib_var=yes"
19475 echo "configure: failed program was:" >&5
19476 cat conftest.$ac_ext >&5
19478 eval "ac_cv_lib_$ac_lib_var=no"
19481 LIBS="$ac_save_LIBS"
19484 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19485 echo "$ac_t""yes" 1>&6
19486 ol_link_sasl="-lsasl2"
19488 echo "$ac_t""no" 1>&6
19489 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
19490 echo "configure:19491: checking for sasl_client_init in -lsasl" >&5
19491 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
19492 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19493 echo $ac_n "(cached) $ac_c" 1>&6
19495 ac_save_LIBS="$LIBS"
19496 LIBS="-lsasl $LIBS"
19497 cat > conftest.$ac_ext <<EOF
19498 #line 19499 "configure"
19499 #include "confdefs.h"
19500 /* Override any gcc2 internal prototype to avoid an error. */
19501 /* We use char because int might match the return type of a gcc2
19502 builtin and then its argument prototype would still apply. */
19503 char sasl_client_init();
19509 if { (eval echo configure:19510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19511 eval "ac_cv_lib_$ac_lib_var=yes"
19513 echo "configure: failed program was:" >&5
19514 cat conftest.$ac_ext >&5
19516 eval "ac_cv_lib_$ac_lib_var=no"
19519 LIBS="$ac_save_LIBS"
19522 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19523 echo "$ac_t""yes" 1>&6
19524 ol_link_sasl="-lsasl"
19526 echo "$ac_t""no" 1>&6
19533 if test $ol_link_sasl = no ; then
19534 if test $ol_with_cyrus_sasl != auto ; then
19535 { echo "configure: error: Could not locate Cyrus SASL" 1>&2; exit 1; }
19537 echo "configure: warning: Could not locate Cyrus SASL" 1>&2
19538 echo "configure: warning: SASL authentication not supported!" 1>&2
19539 if test $ol_link_tls = no ; then
19540 echo "configure: warning: Strong authentication not supported!" 1>&2
19544 cat >> confdefs.h <<\EOF
19545 #define HAVE_CYRUS_SASL 1
19548 SASL_LIBS="$ol_link_sasl"
19549 if test $ol_enable_spasswd != no ; then
19550 ol_link_spasswd=yes
19555 echo "configure: warning: SASL authentication not supported!" 1>&2
19556 if test $ol_link_tls = no ; then
19557 echo "configure: warning: Strong authentication not supported!" 1>&2
19561 if test $cross_compiling != yes -a "$ac_cv_mingw32" != yes ; then
19563 if test -r /dev/urandom ; then
19564 dev="/dev/urandom";
19565 elif test -r /idev/urandom ; then
19566 dev="/idev/urandom";
19567 elif test -r /dev/srandom ; then
19568 dev="/dev/srandom";
19569 elif test -r /dev/random ; then
19571 elif test -r /idev/random ; then
19572 dev="/idev/random";
19575 if test $dev != no ; then
19576 cat >> confdefs.h <<EOF
19577 #define URANDOM_DEVICE "$dev"
19584 if test $ol_with_fetch != no ; then
19586 LIBS="-lfetch -lcom_err $LIBS"
19587 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
19588 echo "configure:19589: checking fetch(3) library" >&5
19589 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
19590 echo $ac_n "(cached) $ac_c" 1>&6
19593 cat > conftest.$ac_ext <<EOF
19594 #line 19595 "configure"
19595 #include "confdefs.h"
19597 #include <sys/param.h>
19601 struct url *u = fetchParseURL("file:///");
19604 if { (eval echo configure:19605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19606 ol_cv_lib_fetch=yes
19608 echo "configure: failed program was:" >&5
19609 cat conftest.$ac_ext >&5
19616 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
19618 if test $ol_cv_lib_fetch != no ; then
19619 ol_link_fetch="-lfetch -lcom_err"
19620 cat >> confdefs.h <<\EOF
19621 #define HAVE_FETCH 1
19627 if test $ol_cv_lib_fetch != no ; then
19628 LDIF_LIBS="$LDIF_LIBS $ol_link_fetch"
19629 ol_link_fetch=freebsd
19631 elif test $ol_with_fetch != auto ; then
19632 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
19636 ol_link_readline=no
19637 if test $ol_with_readline != no ; then
19638 for ac_hdr in readline/readline.h readline/history.h
19640 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19641 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19642 echo "configure:19643: checking for $ac_hdr" >&5
19643 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19644 echo $ac_n "(cached) $ac_c" 1>&6
19646 cat > conftest.$ac_ext <<EOF
19647 #line 19648 "configure"
19648 #include "confdefs.h"
19651 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19652 { (eval echo configure:19653: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19653 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19654 if test -z "$ac_err"; then
19656 eval "ac_cv_header_$ac_safe=yes"
19659 echo "configure: failed program was:" >&5
19660 cat conftest.$ac_ext >&5
19662 eval "ac_cv_header_$ac_safe=no"
19666 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19667 echo "$ac_t""yes" 1>&6
19668 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19669 cat >> confdefs.h <<EOF
19670 #define $ac_tr_hdr 1
19674 echo "$ac_t""no" 1>&6
19679 if test $ac_cv_header_readline_readline_h = yes ; then
19681 LIBS="$TERMCAP_LIBS $LIBS"
19682 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
19683 echo "configure:19684: checking for readline in -lreadline" >&5
19684 ac_lib_var=`echo readline'_'readline | sed 'y%./+-:%__p__%'`
19685 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19686 echo $ac_n "(cached) $ac_c" 1>&6
19688 ac_save_LIBS="$LIBS"
19689 LIBS="-lreadline $LIBS"
19690 cat > conftest.$ac_ext <<EOF
19691 #line 19692 "configure"
19692 #include "confdefs.h"
19693 /* Override any gcc2 internal prototype to avoid an error. */
19694 /* We use char because int might match the return type of a gcc2
19695 builtin and then its argument prototype would still apply. */
19702 if { (eval echo configure:19703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19704 eval "ac_cv_lib_$ac_lib_var=yes"
19706 echo "configure: failed program was:" >&5
19707 cat conftest.$ac_ext >&5
19709 eval "ac_cv_lib_$ac_lib_var=no"
19712 LIBS="$ac_save_LIBS"
19715 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19716 echo "$ac_t""yes" 1>&6
19719 echo "$ac_t""no" 1>&6
19725 if test $have_readline = yes ; then
19726 ol_with_readline=found
19727 ol_link_readline=yes
19729 READLINE_LIBS="-lreadline"
19734 if test $ol_link_readline = yes ; then
19735 cat >> confdefs.h <<\EOF
19736 #define HAVE_READLINE 1
19742 if test $ol_enable_crypt != no ; then
19743 echo $ac_n "checking for crypt""... $ac_c" 1>&6
19744 echo "configure:19745: checking for crypt" >&5
19745 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
19746 echo $ac_n "(cached) $ac_c" 1>&6
19748 cat > conftest.$ac_ext <<EOF
19749 #line 19750 "configure"
19750 #include "confdefs.h"
19751 /* System header to define __stub macros and hopefully few prototypes,
19752 which can conflict with char crypt(); below. */
19753 #include <assert.h>
19754 /* Override any gcc2 internal prototype to avoid an error. */
19755 /* We use char because int might match the return type of a gcc2
19756 builtin and then its argument prototype would still apply. */
19762 /* The GNU C library defines this for functions which it implements
19763 to always fail with ENOSYS. Some functions are actually named
19764 something starting with __ and the normal name is an alias. */
19765 #if defined (__stub_crypt) || defined (__stub___crypt)
19773 if { (eval echo configure:19774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19775 eval "ac_cv_func_crypt=yes"
19777 echo "configure: failed program was:" >&5
19778 cat conftest.$ac_ext >&5
19780 eval "ac_cv_func_crypt=no"
19785 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
19786 echo "$ac_t""yes" 1>&6
19789 echo "$ac_t""no" 1>&6
19791 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
19792 echo "configure:19793: checking for crypt in -lcrypt" >&5
19793 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
19794 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19795 echo $ac_n "(cached) $ac_c" 1>&6
19797 ac_save_LIBS="$LIBS"
19798 LIBS="-lcrypt $LIBS"
19799 cat > conftest.$ac_ext <<EOF
19800 #line 19801 "configure"
19801 #include "confdefs.h"
19802 /* Override any gcc2 internal prototype to avoid an error. */
19803 /* We use char because int might match the return type of a gcc2
19804 builtin and then its argument prototype would still apply. */
19811 if { (eval echo configure:19812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19813 eval "ac_cv_lib_$ac_lib_var=yes"
19815 echo "configure: failed program was:" >&5
19816 cat conftest.$ac_ext >&5
19818 eval "ac_cv_lib_$ac_lib_var=no"
19821 LIBS="$ac_save_LIBS"
19824 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19825 echo "$ac_t""yes" 1>&6
19826 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
19829 echo "$ac_t""no" 1>&6
19836 if test $have_crypt = yes ; then
19837 cat >> confdefs.h <<\EOF
19838 #define HAVE_CRYPT 1
19842 echo "configure: warning: could not find crypt" 1>&2
19843 if test $ol_enable_crypt = yes ; then
19844 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
19847 echo "configure: warning: disabling crypt support" 1>&2
19852 if test $ol_enable_proctitle != no ; then
19853 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
19854 echo "configure:19855: checking for setproctitle" >&5
19855 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
19856 echo $ac_n "(cached) $ac_c" 1>&6
19858 cat > conftest.$ac_ext <<EOF
19859 #line 19860 "configure"
19860 #include "confdefs.h"
19861 /* System header to define __stub macros and hopefully few prototypes,
19862 which can conflict with char setproctitle(); below. */
19863 #include <assert.h>
19864 /* Override any gcc2 internal prototype to avoid an error. */
19865 /* We use char because int might match the return type of a gcc2
19866 builtin and then its argument prototype would still apply. */
19867 char setproctitle();
19872 /* The GNU C library defines this for functions which it implements
19873 to always fail with ENOSYS. Some functions are actually named
19874 something starting with __ and the normal name is an alias. */
19875 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
19883 if { (eval echo configure:19884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19885 eval "ac_cv_func_setproctitle=yes"
19887 echo "configure: failed program was:" >&5
19888 cat conftest.$ac_ext >&5
19890 eval "ac_cv_func_setproctitle=no"
19895 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
19896 echo "$ac_t""yes" 1>&6
19897 have_setproctitle=yes
19899 echo "$ac_t""no" 1>&6
19901 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
19902 echo "configure:19903: checking for setproctitle in -lutil" >&5
19903 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
19904 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19905 echo $ac_n "(cached) $ac_c" 1>&6
19907 ac_save_LIBS="$LIBS"
19908 LIBS="-lutil $LIBS"
19909 cat > conftest.$ac_ext <<EOF
19910 #line 19911 "configure"
19911 #include "confdefs.h"
19912 /* Override any gcc2 internal prototype to avoid an error. */
19913 /* We use char because int might match the return type of a gcc2
19914 builtin and then its argument prototype would still apply. */
19915 char setproctitle();
19921 if { (eval echo configure:19922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19923 eval "ac_cv_lib_$ac_lib_var=yes"
19925 echo "configure: failed program was:" >&5
19926 cat conftest.$ac_ext >&5
19928 eval "ac_cv_lib_$ac_lib_var=no"
19931 LIBS="$ac_save_LIBS"
19934 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19935 echo "$ac_t""yes" 1>&6
19936 have_setproctitle=yes
19937 LUTIL_LIBS="$LUTIL_LIBS -lutil"
19939 echo "$ac_t""no" 1>&6
19940 have_setproctitle=no
19941 LIBOBJS="$LIBOBJS setproctitle.o"
19942 LIBSRCS="$LIBSRCS setproctitle.c"
19948 if test $have_setproctitle = yes ; then
19949 cat >> confdefs.h <<\EOF
19950 #define HAVE_SETPROCTITLE 1
19956 if test $ol_enable_slp != no ; then
19957 for ac_hdr in slp.h
19959 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19960 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19961 echo "configure:19962: checking for $ac_hdr" >&5
19962 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19963 echo $ac_n "(cached) $ac_c" 1>&6
19965 cat > conftest.$ac_ext <<EOF
19966 #line 19967 "configure"
19967 #include "confdefs.h"
19970 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19971 { (eval echo configure:19972: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19972 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19973 if test -z "$ac_err"; then
19975 eval "ac_cv_header_$ac_safe=yes"
19978 echo "configure: failed program was:" >&5
19979 cat conftest.$ac_ext >&5
19981 eval "ac_cv_header_$ac_safe=no"
19985 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19986 echo "$ac_t""yes" 1>&6
19987 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19988 cat >> confdefs.h <<EOF
19989 #define $ac_tr_hdr 1
19993 echo "$ac_t""no" 1>&6
19998 if test $ac_cv_header_slp_h = yes ; then
19999 echo $ac_n "checking for SLPOpen in -lslp""... $ac_c" 1>&6
20000 echo "configure:20001: checking for SLPOpen in -lslp" >&5
20001 ac_lib_var=`echo slp'_'SLPOpen | sed 'y%./+-:%__p__%'`
20002 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20003 echo $ac_n "(cached) $ac_c" 1>&6
20005 ac_save_LIBS="$LIBS"
20007 cat > conftest.$ac_ext <<EOF
20008 #line 20009 "configure"
20009 #include "confdefs.h"
20010 /* Override any gcc2 internal prototype to avoid an error. */
20011 /* We use char because int might match the return type of a gcc2
20012 builtin and then its argument prototype would still apply. */
20019 if { (eval echo configure:20020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20021 eval "ac_cv_lib_$ac_lib_var=yes"
20023 echo "configure: failed program was:" >&5
20024 cat conftest.$ac_ext >&5
20026 eval "ac_cv_lib_$ac_lib_var=no"
20029 LIBS="$ac_save_LIBS"
20032 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20033 echo "$ac_t""yes" 1>&6
20036 echo "$ac_t""no" 1>&6
20040 if test $have_slp = yes ; then
20041 cat >> confdefs.h <<\EOF
20045 SLAPD_SLP_LIBS=-lslp
20048 elif test $ol_enable_slp = yes ; then
20049 { echo "configure: error: SLP not found" 1>&2; exit 1; }
20053 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
20054 echo "configure:20055: checking for ANSI C header files" >&5
20055 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
20056 echo $ac_n "(cached) $ac_c" 1>&6
20058 cat > conftest.$ac_ext <<EOF
20059 #line 20060 "configure"
20060 #include "confdefs.h"
20061 #include <stdlib.h>
20062 #include <stdarg.h>
20063 #include <string.h>
20066 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20067 { (eval echo configure:20068: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20068 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20069 if test -z "$ac_err"; then
20071 ac_cv_header_stdc=yes
20074 echo "configure: failed program was:" >&5
20075 cat conftest.$ac_ext >&5
20077 ac_cv_header_stdc=no
20081 if test $ac_cv_header_stdc = yes; then
20082 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20083 cat > conftest.$ac_ext <<EOF
20084 #line 20085 "configure"
20085 #include "confdefs.h"
20086 #include <string.h>
20088 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20089 egrep "memchr" >/dev/null 2>&1; then
20093 ac_cv_header_stdc=no
20099 if test $ac_cv_header_stdc = yes; then
20100 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20101 cat > conftest.$ac_ext <<EOF
20102 #line 20103 "configure"
20103 #include "confdefs.h"
20104 #include <stdlib.h>
20106 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20107 egrep "free" >/dev/null 2>&1; then
20111 ac_cv_header_stdc=no
20117 if test $ac_cv_header_stdc = yes; then
20118 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20119 if test "$cross_compiling" = yes; then
20122 cat > conftest.$ac_ext <<EOF
20123 #line 20124 "configure"
20124 #include "confdefs.h"
20126 #if ((' ' & 0x0FF) == 0x020)
20127 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20128 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20130 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
20131 || ('j' <= (c) && (c) <= 'r') \
20132 || ('s' <= (c) && (c) <= 'z'))
20133 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20135 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20136 int main () { int i; for (i = 0; i < 256; i++)
20137 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
20141 if { (eval echo configure:20142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
20145 echo "configure: failed program was:" >&5
20146 cat conftest.$ac_ext >&5
20148 ac_cv_header_stdc=no
20156 echo "$ac_t""$ac_cv_header_stdc" 1>&6
20157 if test $ac_cv_header_stdc = yes; then
20158 cat >> confdefs.h <<\EOF
20159 #define STDC_HEADERS 1
20164 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
20165 echo "configure:20166: checking for mode_t" >&5
20166 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
20167 echo $ac_n "(cached) $ac_c" 1>&6
20169 cat > conftest.$ac_ext <<EOF
20170 #line 20171 "configure"
20171 #include "confdefs.h"
20172 #include <sys/types.h>
20174 #include <stdlib.h>
20175 #include <stddef.h>
20179 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20180 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20182 eval "ac_cv_type_mode_t=yes"
20185 eval "ac_cv_type_mode_t=no"
20190 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
20191 echo "$ac_t""yes" 1>&6
20193 echo "$ac_t""no" 1>&6
20194 cat >> confdefs.h <<EOF
20200 echo $ac_n "checking for off_t""... $ac_c" 1>&6
20201 echo "configure:20202: checking for off_t" >&5
20202 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
20203 echo $ac_n "(cached) $ac_c" 1>&6
20205 cat > conftest.$ac_ext <<EOF
20206 #line 20207 "configure"
20207 #include "confdefs.h"
20208 #include <sys/types.h>
20210 #include <stdlib.h>
20211 #include <stddef.h>
20215 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20216 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20218 eval "ac_cv_type_off_t=yes"
20221 eval "ac_cv_type_off_t=no"
20226 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
20227 echo "$ac_t""yes" 1>&6
20229 echo "$ac_t""no" 1>&6
20230 cat >> confdefs.h <<EOF
20236 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
20237 echo "configure:20238: checking for pid_t" >&5
20238 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
20239 echo $ac_n "(cached) $ac_c" 1>&6
20241 cat > conftest.$ac_ext <<EOF
20242 #line 20243 "configure"
20243 #include "confdefs.h"
20244 #include <sys/types.h>
20246 #include <stdlib.h>
20247 #include <stddef.h>
20251 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20252 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20254 eval "ac_cv_type_pid_t=yes"
20257 eval "ac_cv_type_pid_t=no"
20262 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
20263 echo "$ac_t""yes" 1>&6
20265 echo "$ac_t""no" 1>&6
20266 cat >> confdefs.h <<EOF
20272 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
20273 echo "configure:20274: checking for ptrdiff_t" >&5
20274 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
20275 echo $ac_n "(cached) $ac_c" 1>&6
20277 cat > conftest.$ac_ext <<EOF
20278 #line 20279 "configure"
20279 #include "confdefs.h"
20280 #include <stddef.h>
20285 if { (eval echo configure:20286: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20287 am_cv_type_ptrdiff_t=yes
20289 echo "configure: failed program was:" >&5
20290 cat conftest.$ac_ext >&5
20292 am_cv_type_ptrdiff_t=no
20297 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
20298 if test $am_cv_type_ptrdiff_t = yes; then
20299 cat >> confdefs.h <<\EOF
20300 #define HAVE_PTRDIFF_T 1
20305 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
20306 echo "configure:20307: checking return type of signal handlers" >&5
20307 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
20308 echo $ac_n "(cached) $ac_c" 1>&6
20310 cat > conftest.$ac_ext <<EOF
20311 #line 20312 "configure"
20312 #include "confdefs.h"
20313 #include <sys/types.h>
20314 #include <signal.h>
20319 extern "C" void (*signal (int, void (*)(int)))(int);
20321 void (*signal ()) ();
20328 if { (eval echo configure:20329: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20330 ac_cv_type_signal=void
20332 echo "configure: failed program was:" >&5
20333 cat conftest.$ac_ext >&5
20335 ac_cv_type_signal=int
20340 echo "$ac_t""$ac_cv_type_signal" 1>&6
20341 cat >> confdefs.h <<EOF
20342 #define RETSIGTYPE $ac_cv_type_signal
20346 echo $ac_n "checking for size_t""... $ac_c" 1>&6
20347 echo "configure:20348: checking for size_t" >&5
20348 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
20349 echo $ac_n "(cached) $ac_c" 1>&6
20351 cat > conftest.$ac_ext <<EOF
20352 #line 20353 "configure"
20353 #include "confdefs.h"
20354 #include <sys/types.h>
20356 #include <stdlib.h>
20357 #include <stddef.h>
20361 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20362 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20364 eval "ac_cv_type_size_t=yes"
20367 eval "ac_cv_type_size_t=no"
20372 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
20373 echo "$ac_t""yes" 1>&6
20375 echo "$ac_t""no" 1>&6
20376 cat >> confdefs.h <<EOF
20377 #define size_t unsigned
20383 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
20384 echo "configure:20385: checking for ssize_t" >&5
20385 if eval "test \"\${ac_cv_type_ssize_t+set}\" = set"; then
20386 echo $ac_n "(cached) $ac_c" 1>&6
20388 cat > conftest.$ac_ext <<EOF
20389 #line 20390 "configure"
20390 #include "confdefs.h"
20391 #include <sys/types.h>
20393 #include <stdlib.h>
20394 #include <stddef.h>
20398 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20399 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20401 eval "ac_cv_type_ssize_t=yes"
20404 eval "ac_cv_type_ssize_t=no"
20409 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
20410 echo "$ac_t""yes" 1>&6
20412 echo "$ac_t""no" 1>&6
20413 cat >> confdefs.h <<EOF
20414 #define ssize_t signed int
20419 echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
20420 echo "configure:20421: checking for caddr_t" >&5
20421 if eval "test \"\${ac_cv_type_caddr_t+set}\" = set"; then
20422 echo $ac_n "(cached) $ac_c" 1>&6
20424 cat > conftest.$ac_ext <<EOF
20425 #line 20426 "configure"
20426 #include "confdefs.h"
20427 #include <sys/types.h>
20429 #include <stdlib.h>
20430 #include <stddef.h>
20434 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20435 egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20437 eval "ac_cv_type_caddr_t=yes"
20440 eval "ac_cv_type_caddr_t=no"
20445 if eval "test \"`echo '$ac_cv_type_'caddr_t`\" = yes"; then
20446 echo "$ac_t""yes" 1>&6
20448 echo "$ac_t""no" 1>&6
20449 cat >> confdefs.h <<EOF
20450 #define caddr_t char *
20456 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
20457 echo "configure:20458: checking for socklen_t" >&5
20458 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
20459 echo $ac_n "(cached) $ac_c" 1>&6
20461 cat > conftest.$ac_ext <<EOF
20462 #line 20463 "configure"
20463 #include "confdefs.h"
20465 #ifdef HAVE_SYS_TYPES_H
20466 #include <sys/types.h>
20468 #ifdef HAVE_SYS_SOCKET_H
20469 #include <sys/socket.h>
20476 if { (eval echo configure:20477: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20478 ol_cv_type_socklen_t=yes
20480 echo "configure: failed program was:" >&5
20481 cat conftest.$ac_ext >&5
20483 ol_cv_type_socklen_t=no
20488 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
20489 if test $ol_cv_type_socklen_t = no; then
20490 cat >> confdefs.h <<\EOF
20491 #define socklen_t int
20496 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
20497 echo "configure:20498: checking for member st_blksize in aggregate type struct stat" >&5
20498 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
20499 echo $ac_n "(cached) $ac_c" 1>&6
20501 cat > conftest.$ac_ext <<EOF
20502 #line 20503 "configure"
20503 #include "confdefs.h"
20504 #include <sys/types.h>
20505 #include <sys/stat.h>
20507 struct stat foo; foo.st_blksize;
20510 if { (eval echo configure:20511: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20512 ac_cv_c_struct_member_st_blksize=yes
20514 echo "configure: failed program was:" >&5
20515 cat conftest.$ac_ext >&5
20517 ac_cv_c_struct_member_st_blksize=no
20522 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
20523 st_blksize="$ac_cv_c_struct_member_st_blksize"
20524 if test $ac_cv_c_struct_member_st_blksize = yes; then
20525 cat >> confdefs.h <<\EOF
20526 #define HAVE_ST_BLKSIZE 1
20531 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
20532 echo "configure:20533: checking whether time.h and sys/time.h may both be included" >&5
20533 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
20534 echo $ac_n "(cached) $ac_c" 1>&6
20536 cat > conftest.$ac_ext <<EOF
20537 #line 20538 "configure"
20538 #include "confdefs.h"
20539 #include <sys/types.h>
20540 #include <sys/time.h>
20546 if { (eval echo configure:20547: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20548 ac_cv_header_time=yes
20550 echo "configure: failed program was:" >&5
20551 cat conftest.$ac_ext >&5
20553 ac_cv_header_time=no
20558 echo "$ac_t""$ac_cv_header_time" 1>&6
20559 if test $ac_cv_header_time = yes; then
20560 cat >> confdefs.h <<\EOF
20561 #define TIME_WITH_SYS_TIME 1
20566 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
20567 echo "configure:20568: checking whether struct tm is in sys/time.h or time.h" >&5
20568 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
20569 echo $ac_n "(cached) $ac_c" 1>&6
20571 cat > conftest.$ac_ext <<EOF
20572 #line 20573 "configure"
20573 #include "confdefs.h"
20574 #include <sys/types.h>
20577 struct tm *tp; tp->tm_sec;
20580 if { (eval echo configure:20581: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20582 ac_cv_struct_tm=time.h
20584 echo "configure: failed program was:" >&5
20585 cat conftest.$ac_ext >&5
20587 ac_cv_struct_tm=sys/time.h
20592 echo "$ac_t""$ac_cv_struct_tm" 1>&6
20593 if test $ac_cv_struct_tm = sys/time.h; then
20594 cat >> confdefs.h <<\EOF
20595 #define TM_IN_SYS_TIME 1
20600 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
20601 echo "configure:20602: checking for uid_t in sys/types.h" >&5
20602 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
20603 echo $ac_n "(cached) $ac_c" 1>&6
20605 cat > conftest.$ac_ext <<EOF
20606 #line 20607 "configure"
20607 #include "confdefs.h"
20608 #include <sys/types.h>
20610 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20611 egrep "uid_t" >/dev/null 2>&1; then
20613 ac_cv_type_uid_t=yes
20616 ac_cv_type_uid_t=no
20622 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
20623 if test $ac_cv_type_uid_t = no; then
20624 cat >> confdefs.h <<\EOF
20628 cat >> confdefs.h <<\EOF
20634 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
20635 echo "configure:20636: checking for sig_atomic_t" >&5
20636 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
20637 echo $ac_n "(cached) $ac_c" 1>&6
20639 cat > conftest.$ac_ext <<EOF
20640 #line 20641 "configure"
20641 #include "confdefs.h"
20642 #include <signal.h>
20644 sig_atomic_t atomic;
20647 if { (eval echo configure:20648: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20649 ol_cv_type_sig_atomic_t=yes
20651 echo "configure: failed program was:" >&5
20652 cat conftest.$ac_ext >&5
20654 ol_cv_type_sig_atomic_t=no
20659 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
20660 if test $ol_cv_type_sig_atomic_t = no; then
20661 cat >> confdefs.h <<\EOF
20662 #define sig_atomic_t int
20669 # test for pw_gecos in struct passwd
20670 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
20671 echo "configure:20672: checking struct passwd for pw_gecos" >&5
20672 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
20673 echo $ac_n "(cached) $ac_c" 1>&6
20676 cat > conftest.$ac_ext <<EOF
20677 #line 20678 "configure"
20678 #include "confdefs.h"
20683 pwd.pw_gecos = pwd.pw_name;
20687 if { (eval echo configure:20688: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20689 ol_cv_struct_passwd_pw_gecos=yes
20691 echo "configure: failed program was:" >&5
20692 cat conftest.$ac_ext >&5
20694 ol_cv_struct_passwd_pw_gecos=no
20699 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
20700 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
20701 cat >> confdefs.h <<\EOF
20702 #define HAVE_PW_GECOS 1
20707 # test for pw_passwd in struct passwd
20708 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
20709 echo "configure:20710: checking struct passwd for pw_passwd" >&5
20710 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
20711 echo $ac_n "(cached) $ac_c" 1>&6
20714 cat > conftest.$ac_ext <<EOF
20715 #line 20716 "configure"
20716 #include "confdefs.h"
20721 pwd.pw_passwd = pwd.pw_name;
20725 if { (eval echo configure:20726: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20727 ol_cv_struct_passwd_pw_passwd=yes
20729 echo "configure: failed program was:" >&5
20730 cat conftest.$ac_ext >&5
20732 ol_cv_struct_passwd_pw_passwd=no
20737 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
20738 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
20739 cat >> confdefs.h <<\EOF
20740 #define HAVE_PW_PASSWD 1
20746 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
20747 echo "configure:20748: checking if toupper() requires islower()" >&5
20748 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
20749 echo $ac_n "(cached) $ac_c" 1>&6
20752 if test "$cross_compiling" = yes; then
20753 ol_cv_c_upper_lower=safe
20755 cat > conftest.$ac_ext <<EOF
20756 #line 20757 "configure"
20757 #include "confdefs.h"
20762 if ('C' == toupper('C'))
20768 if { (eval echo configure:20769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
20770 ol_cv_c_upper_lower=no
20772 echo "configure: failed program was:" >&5
20773 cat conftest.$ac_ext >&5
20775 ol_cv_c_upper_lower=yes
20782 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
20783 if test $ol_cv_c_upper_lower != no ; then
20784 cat >> confdefs.h <<\EOF
20785 #define C_UPPER_LOWER 1
20790 echo $ac_n "checking for working const""... $ac_c" 1>&6
20791 echo "configure:20792: checking for working const" >&5
20792 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
20793 echo $ac_n "(cached) $ac_c" 1>&6
20795 cat > conftest.$ac_ext <<EOF
20796 #line 20797 "configure"
20797 #include "confdefs.h"
20801 /* Ultrix mips cc rejects this. */
20802 typedef int charset[2]; const charset x;
20803 /* SunOS 4.1.1 cc rejects this. */
20804 char const *const *ccp;
20806 /* NEC SVR4.0.2 mips cc rejects this. */
20807 struct point {int x, y;};
20808 static struct point const zero = {0,0};
20809 /* AIX XL C 1.02.0.0 rejects this.
20810 It does not let you subtract one const X* pointer from another in an arm
20811 of an if-expression whose if-part is not a constant expression */
20812 const char *g = "string";
20813 ccp = &g + (g ? g-g : 0);
20814 /* HPUX 7.0 cc rejects these. */
20817 ccp = (char const *const *) p;
20818 { /* SCO 3.2v4 cc rejects this. */
20820 char const *s = 0 ? (char *) 0 : (char const *) 0;
20824 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20825 int x[] = {25, 17};
20826 const int *foo = &x[0];
20829 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20830 typedef const int *iptr;
20834 { /* AIX XL C 1.02.0.0 rejects this saying
20835 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20836 struct s { int j; const int *ap[3]; };
20837 struct s *b; b->j = 5;
20839 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20840 const int foo = 10;
20845 if { (eval echo configure:20846: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20849 echo "configure: failed program was:" >&5
20850 cat conftest.$ac_ext >&5
20857 echo "$ac_t""$ac_cv_c_const" 1>&6
20858 if test $ac_cv_c_const = no; then
20859 cat >> confdefs.h <<\EOF
20865 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
20866 echo "configure:20867: checking if compiler understands volatile" >&5
20867 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
20868 echo $ac_n "(cached) $ac_c" 1>&6
20870 cat > conftest.$ac_ext <<EOF
20871 #line 20872 "configure"
20872 #include "confdefs.h"
20875 volatile int a; int * volatile b = x ? &y : &z;
20876 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
20880 if { (eval echo configure:20881: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20882 ol_cv_c_volatile=yes
20884 echo "configure: failed program was:" >&5
20885 cat conftest.$ac_ext >&5
20887 ol_cv_c_volatile=no
20892 echo "$ac_t""$ol_cv_c_volatile" 1>&6
20893 if test $ol_cv_c_volatile = yes; then
20896 cat >> confdefs.h <<\EOF
20903 if test $cross_compiling = yes ; then
20904 cat >> confdefs.h <<\EOF
20905 #define CROSS_COMPILING 1
20909 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
20910 echo "configure:20911: checking whether byte ordering is bigendian" >&5
20911 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
20912 echo $ac_n "(cached) $ac_c" 1>&6
20914 ac_cv_c_bigendian=unknown
20915 # See if sys/param.h defines the BYTE_ORDER macro.
20916 cat > conftest.$ac_ext <<EOF
20917 #line 20918 "configure"
20918 #include "confdefs.h"
20919 #include <sys/types.h>
20920 #include <sys/param.h>
20923 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20924 bogus endian macros
20928 if { (eval echo configure:20929: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20930 # It does; now see whether it defined to BIG_ENDIAN or not.
20931 cat > conftest.$ac_ext <<EOF
20932 #line 20933 "configure"
20933 #include "confdefs.h"
20934 #include <sys/types.h>
20935 #include <sys/param.h>
20938 #if BYTE_ORDER != BIG_ENDIAN
20943 if { (eval echo configure:20944: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20945 ac_cv_c_bigendian=yes
20947 echo "configure: failed program was:" >&5
20948 cat conftest.$ac_ext >&5
20950 ac_cv_c_bigendian=no
20954 echo "configure: failed program was:" >&5
20955 cat conftest.$ac_ext >&5
20958 if test $ac_cv_c_bigendian = unknown; then
20959 if test "$cross_compiling" = yes; then
20960 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
20962 cat > conftest.$ac_ext <<EOF
20963 #line 20964 "configure"
20964 #include "confdefs.h"
20966 /* Are we little or big endian? From Harbison&Steele. */
20970 char c[sizeof (long)];
20973 exit (u.c[sizeof (long) - 1] == 1);
20976 if { (eval echo configure:20977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
20978 ac_cv_c_bigendian=no
20980 echo "configure: failed program was:" >&5
20981 cat conftest.$ac_ext >&5
20983 ac_cv_c_bigendian=yes
20991 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
20992 if test $ac_cv_c_bigendian = yes; then
20993 cat >> confdefs.h <<\EOF
20994 #define WORDS_BIGENDIAN 1
21001 echo $ac_n "checking size of short""... $ac_c" 1>&6
21002 echo "configure:21003: checking size of short" >&5
21003 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
21004 echo $ac_n "(cached) $ac_c" 1>&6
21006 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
21007 cat > conftest.$ac_ext <<EOF
21008 #line 21009 "configure"
21009 #include "confdefs.h"
21010 #include "confdefs.h"
21011 #include <sys/types.h>
21015 switch (0) case 0: case (sizeof (short) == $ac_size):;
21018 if { (eval echo configure:21019: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21020 ac_cv_sizeof_short=$ac_size
21022 echo "configure: failed program was:" >&5
21023 cat conftest.$ac_ext >&5
21026 if test x$ac_cv_sizeof_short != x ; then break; fi
21031 if test x$ac_cv_sizeof_short = x ; then
21032 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
21034 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
21035 cat >> confdefs.h <<EOF
21036 #define SIZEOF_SHORT $ac_cv_sizeof_short
21040 echo $ac_n "checking size of int""... $ac_c" 1>&6
21041 echo "configure:21042: checking size of int" >&5
21042 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
21043 echo $ac_n "(cached) $ac_c" 1>&6
21045 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
21046 cat > conftest.$ac_ext <<EOF
21047 #line 21048 "configure"
21048 #include "confdefs.h"
21049 #include "confdefs.h"
21050 #include <sys/types.h>
21054 switch (0) case 0: case (sizeof (int) == $ac_size):;
21057 if { (eval echo configure:21058: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21059 ac_cv_sizeof_int=$ac_size
21061 echo "configure: failed program was:" >&5
21062 cat conftest.$ac_ext >&5
21065 if test x$ac_cv_sizeof_int != x ; then break; fi
21070 if test x$ac_cv_sizeof_int = x ; then
21071 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
21073 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
21074 cat >> confdefs.h <<EOF
21075 #define SIZEOF_INT $ac_cv_sizeof_int
21079 echo $ac_n "checking size of long""... $ac_c" 1>&6
21080 echo "configure:21081: checking size of long" >&5
21081 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
21082 echo $ac_n "(cached) $ac_c" 1>&6
21084 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
21085 cat > conftest.$ac_ext <<EOF
21086 #line 21087 "configure"
21087 #include "confdefs.h"
21088 #include "confdefs.h"
21089 #include <sys/types.h>
21093 switch (0) case 0: case (sizeof (long) == $ac_size):;
21096 if { (eval echo configure:21097: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21098 ac_cv_sizeof_long=$ac_size
21100 echo "configure: failed program was:" >&5
21101 cat conftest.$ac_ext >&5
21104 if test x$ac_cv_sizeof_long != x ; then break; fi
21109 if test x$ac_cv_sizeof_long = x ; then
21110 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
21112 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
21113 cat >> confdefs.h <<EOF
21114 #define SIZEOF_LONG $ac_cv_sizeof_long
21119 if test "$ac_cv_sizeof_int" -lt 4 ; then
21120 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
21122 cat >> confdefs.h <<\EOF
21123 #define LBER_INT_T long
21127 cat >> confdefs.h <<\EOF
21128 #define LBER_INT_T int
21133 cat >> confdefs.h <<\EOF
21134 #define LBER_LEN_T long
21137 cat >> confdefs.h <<\EOF
21138 #define LBER_SOCKET_T int
21141 cat >> confdefs.h <<\EOF
21142 #define LBER_TAG_T long
21146 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
21147 echo "configure:21148: checking for 8-bit clean memcmp" >&5
21148 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
21149 echo $ac_n "(cached) $ac_c" 1>&6
21151 if test "$cross_compiling" = yes; then
21152 ac_cv_func_memcmp_clean=no
21154 cat > conftest.$ac_ext <<EOF
21155 #line 21156 "configure"
21156 #include "confdefs.h"
21160 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
21161 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
21165 if { (eval echo configure:21166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21167 ac_cv_func_memcmp_clean=yes
21169 echo "configure: failed program was:" >&5
21170 cat conftest.$ac_ext >&5
21172 ac_cv_func_memcmp_clean=no
21179 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
21180 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
21182 echo $ac_n "checking for strftime""... $ac_c" 1>&6
21183 echo "configure:21184: checking for strftime" >&5
21184 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
21185 echo $ac_n "(cached) $ac_c" 1>&6
21187 cat > conftest.$ac_ext <<EOF
21188 #line 21189 "configure"
21189 #include "confdefs.h"
21190 /* System header to define __stub macros and hopefully few prototypes,
21191 which can conflict with char strftime(); below. */
21192 #include <assert.h>
21193 /* Override any gcc2 internal prototype to avoid an error. */
21194 /* We use char because int might match the return type of a gcc2
21195 builtin and then its argument prototype would still apply. */
21201 /* The GNU C library defines this for functions which it implements
21202 to always fail with ENOSYS. Some functions are actually named
21203 something starting with __ and the normal name is an alias. */
21204 #if defined (__stub_strftime) || defined (__stub___strftime)
21212 if { (eval echo configure:21213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21214 eval "ac_cv_func_strftime=yes"
21216 echo "configure: failed program was:" >&5
21217 cat conftest.$ac_ext >&5
21219 eval "ac_cv_func_strftime=no"
21224 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
21225 echo "$ac_t""yes" 1>&6
21226 cat >> confdefs.h <<\EOF
21227 #define HAVE_STRFTIME 1
21231 echo "$ac_t""no" 1>&6
21232 # strftime is in -lintl on SCO UNIX.
21233 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
21234 echo "configure:21235: checking for strftime in -lintl" >&5
21235 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
21236 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21237 echo $ac_n "(cached) $ac_c" 1>&6
21239 ac_save_LIBS="$LIBS"
21240 LIBS="-lintl $LIBS"
21241 cat > conftest.$ac_ext <<EOF
21242 #line 21243 "configure"
21243 #include "confdefs.h"
21244 /* Override any gcc2 internal prototype to avoid an error. */
21245 /* We use char because int might match the return type of a gcc2
21246 builtin and then its argument prototype would still apply. */
21253 if { (eval echo configure:21254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21255 eval "ac_cv_lib_$ac_lib_var=yes"
21257 echo "configure: failed program was:" >&5
21258 cat conftest.$ac_ext >&5
21260 eval "ac_cv_lib_$ac_lib_var=no"
21263 LIBS="$ac_save_LIBS"
21266 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21267 echo "$ac_t""yes" 1>&6
21268 cat >> confdefs.h <<\EOF
21269 #define HAVE_STRFTIME 1
21272 LIBS="-lintl $LIBS"
21274 echo "$ac_t""no" 1>&6
21280 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
21281 echo "configure:21282: checking for inet_aton()" >&5
21282 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
21283 echo $ac_n "(cached) $ac_c" 1>&6
21285 cat > conftest.$ac_ext <<EOF
21286 #line 21287 "configure"
21287 #include "confdefs.h"
21289 #ifdef HAVE_SYS_TYPES_H
21290 # include <sys/types.h>
21292 #ifdef HAVE_SYS_SOCKET_H
21293 # include <sys/socket.h>
21294 # ifdef HAVE_SYS_SELECT_H
21295 # include <sys/select.h>
21297 # include <netinet/in.h>
21298 # ifdef HAVE_ARPA_INET_H
21299 # include <arpa/inet.h>
21305 int rc = inet_aton( "255.255.255.255", &in );
21308 if { (eval echo configure:21309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21310 ol_cv_func_inet_aton=yes
21312 echo "configure: failed program was:" >&5
21313 cat conftest.$ac_ext >&5
21315 ol_cv_func_inet_aton=no
21320 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
21321 if test $ol_cv_func_inet_aton != no; then
21322 cat >> confdefs.h <<\EOF
21323 #define HAVE_INET_ATON 1
21329 echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
21330 echo "configure:21331: checking for _spawnlp" >&5
21331 if eval "test \"\${ac_cv_func__spawnlp+set}\" = set"; then
21332 echo $ac_n "(cached) $ac_c" 1>&6
21334 cat > conftest.$ac_ext <<EOF
21335 #line 21336 "configure"
21336 #include "confdefs.h"
21337 /* System header to define __stub macros and hopefully few prototypes,
21338 which can conflict with char _spawnlp(); below. */
21339 #include <assert.h>
21340 /* Override any gcc2 internal prototype to avoid an error. */
21341 /* We use char because int might match the return type of a gcc2
21342 builtin and then its argument prototype would still apply. */
21348 /* The GNU C library defines this for functions which it implements
21349 to always fail with ENOSYS. Some functions are actually named
21350 something starting with __ and the normal name is an alias. */
21351 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
21359 if { (eval echo configure:21360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21361 eval "ac_cv_func__spawnlp=yes"
21363 echo "configure: failed program was:" >&5
21364 cat conftest.$ac_ext >&5
21366 eval "ac_cv_func__spawnlp=no"
21371 if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
21372 echo "$ac_t""yes" 1>&6
21373 cat >> confdefs.h <<\EOF
21374 #define HAVE_SPAWNLP 1
21378 echo "$ac_t""no" 1>&6
21382 echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
21383 echo "configure:21384: checking for _snprintf" >&5
21384 if eval "test \"\${ac_cv_func__snprintf+set}\" = set"; then
21385 echo $ac_n "(cached) $ac_c" 1>&6
21387 cat > conftest.$ac_ext <<EOF
21388 #line 21389 "configure"
21389 #include "confdefs.h"
21390 /* System header to define __stub macros and hopefully few prototypes,
21391 which can conflict with char _snprintf(); below. */
21392 #include <assert.h>
21393 /* Override any gcc2 internal prototype to avoid an error. */
21394 /* We use char because int might match the return type of a gcc2
21395 builtin and then its argument prototype would still apply. */
21401 /* The GNU C library defines this for functions which it implements
21402 to always fail with ENOSYS. Some functions are actually named
21403 something starting with __ and the normal name is an alias. */
21404 #if defined (__stub__snprintf) || defined (__stub____snprintf)
21412 if { (eval echo configure:21413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21414 eval "ac_cv_func__snprintf=yes"
21416 echo "configure: failed program was:" >&5
21417 cat conftest.$ac_ext >&5
21419 eval "ac_cv_func__snprintf=no"
21424 if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
21425 echo "$ac_t""yes" 1>&6
21426 ac_cv_func_snprintf=yes
21427 cat >> confdefs.h <<\EOF
21428 #define snprintf _snprintf
21433 echo "$ac_t""no" 1>&6
21437 echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
21438 echo "configure:21439: checking for _vsnprintf" >&5
21439 if eval "test \"\${ac_cv_func__vsnprintf+set}\" = set"; then
21440 echo $ac_n "(cached) $ac_c" 1>&6
21442 cat > conftest.$ac_ext <<EOF
21443 #line 21444 "configure"
21444 #include "confdefs.h"
21445 /* System header to define __stub macros and hopefully few prototypes,
21446 which can conflict with char _vsnprintf(); below. */
21447 #include <assert.h>
21448 /* Override any gcc2 internal prototype to avoid an error. */
21449 /* We use char because int might match the return type of a gcc2
21450 builtin and then its argument prototype would still apply. */
21456 /* The GNU C library defines this for functions which it implements
21457 to always fail with ENOSYS. Some functions are actually named
21458 something starting with __ and the normal name is an alias. */
21459 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
21467 if { (eval echo configure:21468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21469 eval "ac_cv_func__vsnprintf=yes"
21471 echo "configure: failed program was:" >&5
21472 cat conftest.$ac_ext >&5
21474 eval "ac_cv_func__vsnprintf=no"
21479 if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
21480 echo "$ac_t""yes" 1>&6
21481 ac_cv_func_vsnprintf=yes
21482 cat >> confdefs.h <<\EOF
21483 #define vsnprintf _vsnprintf
21488 echo "$ac_t""no" 1>&6
21492 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
21493 echo "configure:21494: checking for vprintf" >&5
21494 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
21495 echo $ac_n "(cached) $ac_c" 1>&6
21497 cat > conftest.$ac_ext <<EOF
21498 #line 21499 "configure"
21499 #include "confdefs.h"
21500 /* System header to define __stub macros and hopefully few prototypes,
21501 which can conflict with char vprintf(); below. */
21502 #include <assert.h>
21503 /* Override any gcc2 internal prototype to avoid an error. */
21504 /* We use char because int might match the return type of a gcc2
21505 builtin and then its argument prototype would still apply. */
21511 /* The GNU C library defines this for functions which it implements
21512 to always fail with ENOSYS. Some functions are actually named
21513 something starting with __ and the normal name is an alias. */
21514 #if defined (__stub_vprintf) || defined (__stub___vprintf)
21522 if { (eval echo configure:21523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21524 eval "ac_cv_func_vprintf=yes"
21526 echo "configure: failed program was:" >&5
21527 cat conftest.$ac_ext >&5
21529 eval "ac_cv_func_vprintf=no"
21534 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
21535 echo "$ac_t""yes" 1>&6
21536 cat >> confdefs.h <<\EOF
21537 #define HAVE_VPRINTF 1
21541 echo "$ac_t""no" 1>&6
21544 if test "$ac_cv_func_vprintf" != yes; then
21545 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
21546 echo "configure:21547: checking for _doprnt" >&5
21547 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
21548 echo $ac_n "(cached) $ac_c" 1>&6
21550 cat > conftest.$ac_ext <<EOF
21551 #line 21552 "configure"
21552 #include "confdefs.h"
21553 /* System header to define __stub macros and hopefully few prototypes,
21554 which can conflict with char _doprnt(); below. */
21555 #include <assert.h>
21556 /* Override any gcc2 internal prototype to avoid an error. */
21557 /* We use char because int might match the return type of a gcc2
21558 builtin and then its argument prototype would still apply. */
21564 /* The GNU C library defines this for functions which it implements
21565 to always fail with ENOSYS. Some functions are actually named
21566 something starting with __ and the normal name is an alias. */
21567 #if defined (__stub__doprnt) || defined (__stub____doprnt)
21575 if { (eval echo configure:21576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21577 eval "ac_cv_func__doprnt=yes"
21579 echo "configure: failed program was:" >&5
21580 cat conftest.$ac_ext >&5
21582 eval "ac_cv_func__doprnt=no"
21587 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
21588 echo "$ac_t""yes" 1>&6
21589 cat >> confdefs.h <<\EOF
21590 #define HAVE_DOPRNT 1
21594 echo "$ac_t""no" 1>&6
21600 if test $ac_cv_func_vprintf = yes ; then
21601 for ac_func in vsnprintf vsprintf
21603 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21604 echo "configure:21605: checking for $ac_func" >&5
21605 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
21606 echo $ac_n "(cached) $ac_c" 1>&6
21608 cat > conftest.$ac_ext <<EOF
21609 #line 21610 "configure"
21610 #include "confdefs.h"
21611 /* System header to define __stub macros and hopefully few prototypes,
21612 which can conflict with char $ac_func(); below. */
21613 #include <assert.h>
21614 /* Override any gcc2 internal prototype to avoid an error. */
21615 /* We use char because int might match the return type of a gcc2
21616 builtin and then its argument prototype would still apply. */
21622 /* The GNU C library defines this for functions which it implements
21623 to always fail with ENOSYS. Some functions are actually named
21624 something starting with __ and the normal name is an alias. */
21625 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21633 if { (eval echo configure:21634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21635 eval "ac_cv_func_$ac_func=yes"
21637 echo "configure: failed program was:" >&5
21638 cat conftest.$ac_ext >&5
21640 eval "ac_cv_func_$ac_func=no"
21645 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21646 echo "$ac_t""yes" 1>&6
21647 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21648 cat >> confdefs.h <<EOF
21649 #define $ac_tr_func 1
21653 echo "$ac_t""no" 1>&6
21713 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21714 echo "configure:21715: checking for $ac_func" >&5
21715 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
21716 echo $ac_n "(cached) $ac_c" 1>&6
21718 cat > conftest.$ac_ext <<EOF
21719 #line 21720 "configure"
21720 #include "confdefs.h"
21721 /* System header to define __stub macros and hopefully few prototypes,
21722 which can conflict with char $ac_func(); below. */
21723 #include <assert.h>
21724 /* Override any gcc2 internal prototype to avoid an error. */
21725 /* We use char because int might match the return type of a gcc2
21726 builtin and then its argument prototype would still apply. */
21732 /* The GNU C library defines this for functions which it implements
21733 to always fail with ENOSYS. Some functions are actually named
21734 something starting with __ and the normal name is an alias. */
21735 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21743 if { (eval echo configure:21744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21745 eval "ac_cv_func_$ac_func=yes"
21747 echo "configure: failed program was:" >&5
21748 cat conftest.$ac_ext >&5
21750 eval "ac_cv_func_$ac_func=no"
21755 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21756 echo "$ac_t""yes" 1>&6
21757 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21758 cat >> confdefs.h <<EOF
21759 #define $ac_tr_func 1
21763 echo "$ac_t""no" 1>&6
21768 for ac_func in getopt
21770 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21771 echo "configure:21772: checking for $ac_func" >&5
21772 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
21773 echo $ac_n "(cached) $ac_c" 1>&6
21775 cat > conftest.$ac_ext <<EOF
21776 #line 21777 "configure"
21777 #include "confdefs.h"
21778 /* System header to define __stub macros and hopefully few prototypes,
21779 which can conflict with char $ac_func(); below. */
21780 #include <assert.h>
21781 /* Override any gcc2 internal prototype to avoid an error. */
21782 /* We use char because int might match the return type of a gcc2
21783 builtin and then its argument prototype would still apply. */
21789 /* The GNU C library defines this for functions which it implements
21790 to always fail with ENOSYS. Some functions are actually named
21791 something starting with __ and the normal name is an alias. */
21792 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21800 if { (eval echo configure:21801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21802 eval "ac_cv_func_$ac_func=yes"
21804 echo "configure: failed program was:" >&5
21805 cat conftest.$ac_ext >&5
21807 eval "ac_cv_func_$ac_func=no"
21812 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21813 echo "$ac_t""yes" 1>&6
21814 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21815 cat >> confdefs.h <<EOF
21816 #define $ac_tr_func 1
21820 echo "$ac_t""no" 1>&6
21821 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
21827 if test "$ac_cv_func_getopt" != yes; then
21828 LIBSRCS="$LIBSRCS getopt.c"
21831 # Check Configuration
21832 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
21833 echo "configure:21834: checking declaration of sys_errlist" >&5
21834 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
21835 echo $ac_n "(cached) $ac_c" 1>&6
21838 cat > conftest.$ac_ext <<EOF
21839 #line 21840 "configure"
21840 #include "confdefs.h"
21843 #include <sys/types.h>
21846 #include <stdlib.h>
21849 char *c = (char *) *sys_errlist
21852 if { (eval echo configure:21853: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21854 ol_cv_dcl_sys_errlist=yes
21855 ol_cv_have_sys_errlist=yes
21857 echo "configure: failed program was:" >&5
21858 cat conftest.$ac_ext >&5
21860 ol_cv_dcl_sys_errlist=no
21865 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
21867 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
21868 if test $ol_cv_dcl_sys_errlist = no ; then
21869 cat >> confdefs.h <<\EOF
21870 #define DECL_SYS_ERRLIST 1
21874 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
21875 echo "configure:21876: checking existence of sys_errlist" >&5
21876 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
21877 echo $ac_n "(cached) $ac_c" 1>&6
21880 cat > conftest.$ac_ext <<EOF
21881 #line 21882 "configure"
21882 #include "confdefs.h"
21885 char *c = (char *) *sys_errlist
21888 if { (eval echo configure:21889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21890 ol_cv_have_sys_errlist=yes
21892 echo "configure: failed program was:" >&5
21893 cat conftest.$ac_ext >&5
21895 ol_cv_have_sys_errlist=no
21900 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
21902 if test $ol_cv_have_sys_errlist = yes ; then
21903 cat >> confdefs.h <<\EOF
21904 #define HAVE_SYS_ERRLIST 1
21911 if test "$ol_enable_debug" != no ; then
21912 cat >> confdefs.h <<\EOF
21913 #define LDAP_DEBUG 1
21917 if test "$ol_enable_syslog" = yes ; then
21918 cat >> confdefs.h <<\EOF
21919 #define LDAP_SYSLOG 1
21923 if test "$ol_enable_cache" = no ; then
21924 cat >> confdefs.h <<\EOF
21925 #define LDAP_NOCACHE 1
21929 if test "$ol_link_kbind" != no ; then
21930 cat >> confdefs.h <<\EOF
21931 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
21935 if test "$ol_enable_proctitle" != no ; then
21936 cat >> confdefs.h <<\EOF
21937 #define LDAP_PROCTITLE 1
21941 if test "$ol_enable_referrals" != no ; then
21942 cat >> confdefs.h <<\EOF
21943 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
21947 if test "$ol_enable_local" != no; then
21948 cat >> confdefs.h <<\EOF
21949 #define LDAP_PF_LOCAL 1
21953 if test "$ol_link_ipv6" != no; then
21954 cat >> confdefs.h <<\EOF
21955 #define LDAP_PF_INET6 1
21959 if test "$ol_enable_cleartext" != no ; then
21960 cat >> confdefs.h <<\EOF
21961 #define SLAPD_CLEARTEXT 1
21965 if test "$ol_enable_crypt" != no ; then
21966 cat >> confdefs.h <<\EOF
21967 #define SLAPD_CRYPT 1
21971 if test "$ol_link_kpasswd" != no ; then
21972 cat >> confdefs.h <<\EOF
21973 #define SLAPD_KPASSWD 1
21977 if test "$ol_link_spasswd" != no ; then
21978 cat >> confdefs.h <<\EOF
21979 #define SLAPD_SPASSWD 1
21983 if test "$ol_enable_phonetic" != no ; then
21984 cat >> confdefs.h <<\EOF
21985 #define SLAPD_PHONETIC 1
21989 if test "$ol_enable_rlookups" != no ; then
21990 cat >> confdefs.h <<\EOF
21991 #define SLAPD_RLOOKUPS 1
21995 if test "$ol_enable_aci" != no ; then
21996 cat >> confdefs.h <<\EOF
21997 #define SLAPD_ACI_ENABLED 1
22002 if test "$ol_link_modules" != no ; then
22003 cat >> confdefs.h <<\EOF
22004 #define SLAPD_MODULES 1
22008 SLAPD_MODULES_LDFLAGS="-dlopen self"
22011 if test "$ol_enable_bdb" != no ; then
22012 cat >> confdefs.h <<\EOF
22013 #define SLAPD_BDB 1
22018 if test "$ol_with_bdb_module" != static ; then
22019 cat >> confdefs.h <<\EOF
22020 #define SLAPD_BDB_DYNAMIC 1
22024 BUILD_BDB_DYNAMIC=shared
22025 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-bdb/back_bdb.la"
22026 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
22028 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
22032 if test "$ol_link_dnssrv" != no ; then
22033 cat >> confdefs.h <<\EOF
22034 #define SLAPD_DNSSRV 1
22039 if test "$ol_with_dnssrv_module" != static ; then
22040 cat >> confdefs.h <<\EOF
22041 #define SLAPD_DNSSRV_DYNAMIC 1
22045 BUILD_DNSSRV_DYNAMIC=shared
22046 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-dnssrv/back_dnssrv.la"
22047 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
22049 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
22053 if test "$ol_enable_ldap" != no ; then
22054 cat >> confdefs.h <<\EOF
22055 #define SLAPD_LDAP 1
22060 if test "$ol_with_ldap_module" != static ; then
22061 cat >> confdefs.h <<\EOF
22062 #define SLAPD_LDAP_DYNAMIC 1
22066 BUILD_LDAP_DYNAMIC=shared
22067 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldap/back_ldap.la"
22068 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
22070 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
22074 if test "$ol_link_ldbm" != no -a $ol_enable_ldbm != no; then
22075 cat >> confdefs.h <<\EOF
22076 #define SLAPD_LDBM 1
22082 if test "$ol_with_ldbm_module" != static ; then
22083 cat >> confdefs.h <<\EOF
22084 #define SLAPD_LDBM_DYNAMIC 1
22088 BUILD_LDBM_DYNAMIC=shared
22089 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldbm/back_ldbm.la"
22090 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
22092 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
22096 if test "$ol_enable_meta" != no ; then
22097 if test "$ol_enable_ldap" = no ; then
22098 { echo "configure: error: need --enable-ldap to use --enable-meta" 1>&2; exit 1; }
22100 if test "$ol_enable_rewrite" = no ; then
22101 { echo "configure: error: need --enable-rewrite to use --enable-meta" 1>&2; exit 1; }
22103 cat >> confdefs.h <<\EOF
22104 #define SLAPD_META 1
22109 if test "$ol_with_meta_module" != static ; then
22110 cat >> confdefs.h <<\EOF
22111 #define SLAPD_META_DYNAMIC 1
22115 BUILD_META_DYNAMIC=shared
22116 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-meta/back_meta.la"
22117 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
22119 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
22123 if test "$ol_enable_monitor" != no ; then
22124 cat >> confdefs.h <<\EOF
22125 #define SLAPD_MONITOR 1
22130 if test "$ol_with_monitor_module" != static ; then
22131 cat >> confdefs.h <<\EOF
22132 #define SLAPD_MONITOR_DYNAMIC 1
22136 BUILD_MONITOR_DYNAMIC=shared
22137 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-monitor/back_monitor.la"
22138 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
22140 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
22144 if test "$ol_enable_passwd" != no ; then
22145 cat >> confdefs.h <<\EOF
22146 #define SLAPD_PASSWD 1
22151 if test "$ol_with_passwd_module" != static ; then
22152 cat >> confdefs.h <<\EOF
22153 #define SLAPD_PASSWD_DYNAMIC 1
22157 BUILD_PASSWD_DYNAMIC=shared
22158 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-passwd/back_passwd.la"
22159 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
22161 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
22165 if test "$ol_link_perl" != no ; then
22166 cat >> confdefs.h <<\EOF
22167 #define SLAPD_PERL 1
22172 if test "$ol_with_perl_module" != static ; then
22173 cat >> confdefs.h <<\EOF
22174 #define SLAPD_PERL_DYNAMIC 1
22178 BUILD_PERL_DYNAMIC=shared
22179 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-perl/back_perl.la"
22180 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
22182 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
22186 if test "$ol_enable_shell" != no ; then
22187 cat >> confdefs.h <<\EOF
22188 #define SLAPD_SHELL 1
22193 if test "$ol_with_shell_module" != static ; then
22194 cat >> confdefs.h <<\EOF
22195 #define SLAPD_SHELL_DYNAMIC 1
22199 BUILD_SHELL_DYNAMIC=shared
22200 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-shell/back_shell.la"
22201 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
22203 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
22207 if test "$ol_enable_tcl" != no ; then
22208 cat >> confdefs.h <<\EOF
22209 #define SLAPD_TCL 1
22214 if test "$ol_with_tcl_module" != static; then
22215 cat >> confdefs.h <<\EOF
22216 #define SLAPD_TCL_DYNAMIC 1
22220 BUILD_TCL_DYNAMIC=shared
22221 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-tcl/back_tcl.la"
22222 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-tcl"
22224 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-tcl"
22228 if test "$ol_link_sql" != no ; then
22229 cat >> confdefs.h <<\EOF
22230 #define SLAPD_SQL 1
22235 if test "$ol_with_sql_module" != static; then
22236 cat >> confdefs.h <<\EOF
22237 #define SLAPD_SQL_DYNAMIC 1
22241 BUILD_SQL_DYNAMIC=shared
22242 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-sql/back_sql.la"
22243 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
22245 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
22249 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
22250 $BUILD_SLAPD = yes ; then
22254 if test "$ol_enable_rewrite" != no ; then
22255 cat >> confdefs.h <<\EOF
22256 #define ENABLE_REWRITE 1
22264 if test "$ac_cv_mingw32" = yes ; then
22266 SLAPD_MODULES_LDFLAGS=
22267 SLAPD_MODULES_LIST=
22339 # Check whether --with-xxinstall or --without-xxinstall was given.
22340 if test "${with_xxinstall+set}" = set; then
22341 withval="$with_xxinstall"
22349 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
22351 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22352 # Let make expand exec_prefix.
22353 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22355 # Any assignment to VPATH causes Sun make to only execute
22356 # the first set of double-colon rules, so remove it if not needed.
22357 # If there is a colon in the path, we need to keep it.
22358 if test "x$srcdir" = x.; then
22359 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
22362 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
22364 DEFS=-DHAVE_CONFIG_H
22366 # Without the "./", some shells look in PATH for config.status.
22367 : ${CONFIG_STATUS=./config.status}
22369 echo creating $CONFIG_STATUS
22370 rm -f $CONFIG_STATUS
22371 cat > $CONFIG_STATUS <<EOF
22373 # Generated automatically by configure.
22374 # Run this file to recreate the current configuration.
22375 # This directory was configured as follows,
22376 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22378 # $0 $ac_configure_args
22380 # Compiler output produced by configure, useful for debugging
22381 # configure, is in ./config.log if it exists.
22383 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
22386 case "\$ac_option" in
22387 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22388 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
22389 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
22390 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
22391 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
22393 -help | --help | --hel | --he | --h)
22394 echo "\$ac_cs_usage"; exit 0 ;;
22395 *) echo "\$ac_cs_usage"; exit 1 ;;
22399 ac_given_srcdir=$srcdir
22400 ac_given_INSTALL="$INSTALL"
22402 trap 'rm -fr `echo "\
22403 Makefile:build/top.mk:Makefile.in:build/dir.mk \
22404 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
22405 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
22406 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
22407 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
22408 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
22409 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
22410 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
22411 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
22412 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
22413 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
22414 clients/maildap/Makefile:build/top.mk:clients/maildap/Makefile.in:build/rules.mk \
22415 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
22416 include/Makefile:build/top.mk:include/Makefile.in \
22417 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
22418 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
22419 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
22420 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
22421 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
22422 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
22423 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
22424 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
22425 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
22426 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
22427 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
22428 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
22429 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
22430 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
22431 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
22432 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
22433 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
22434 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
22435 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
22436 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
22437 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
22438 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
22439 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
22440 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
22441 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
22442 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
22443 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
22444 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
22445 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
22447 cat >> $CONFIG_STATUS <<EOF
22449 # Protect against being on the right side of a sed subst in config.status.
22450 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
22451 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
22455 s%@CFLAGS@%$CFLAGS%g
22456 s%@CPPFLAGS@%$CPPFLAGS%g
22457 s%@CXXFLAGS@%$CXXFLAGS%g
22458 s%@FFLAGS@%$FFLAGS%g
22460 s%@LDFLAGS@%$LDFLAGS%g
22462 s%@exec_prefix@%$exec_prefix%g
22463 s%@prefix@%$prefix%g
22464 s%@program_transform_name@%$program_transform_name%g
22465 s%@bindir@%$bindir%g
22466 s%@sbindir@%$sbindir%g
22467 s%@libexecdir@%$libexecdir%g
22468 s%@datadir@%$datadir%g
22469 s%@sysconfdir@%$sysconfdir%g
22470 s%@sharedstatedir@%$sharedstatedir%g
22471 s%@localstatedir@%$localstatedir%g
22472 s%@libdir@%$libdir%g
22473 s%@includedir@%$includedir%g
22474 s%@oldincludedir@%$oldincludedir%g
22475 s%@infodir@%$infodir%g
22476 s%@mandir@%$mandir%g
22478 s%@host_alias@%$host_alias%g
22479 s%@host_cpu@%$host_cpu%g
22480 s%@host_vendor@%$host_vendor%g
22481 s%@host_os@%$host_os%g
22482 s%@target@%$target%g
22483 s%@target_alias@%$target_alias%g
22484 s%@target_cpu@%$target_cpu%g
22485 s%@target_vendor@%$target_vendor%g
22486 s%@target_os@%$target_os%g
22488 s%@build_alias@%$build_alias%g
22489 s%@build_cpu@%$build_cpu%g
22490 s%@build_vendor@%$build_vendor%g
22491 s%@build_os@%$build_os%g
22492 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
22493 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
22494 s%@INSTALL_DATA@%$INSTALL_DATA%g
22495 s%@PACKAGE@%$PACKAGE%g
22496 s%@VERSION@%$VERSION%g
22497 s%@ACLOCAL@%$ACLOCAL%g
22498 s%@AUTOCONF@%$AUTOCONF%g
22499 s%@AUTOMAKE@%$AUTOMAKE%g
22500 s%@AUTOHEADER@%$AUTOHEADER%g
22501 s%@MAKEINFO@%$MAKEINFO%g
22502 s%@install_sh@%$install_sh%g
22505 s%@AMTARFLAGS@%$AMTARFLAGS%g
22506 s%@SET_MAKE@%$SET_MAKE%g
22507 s%@OPENLDAP_LIBVERSION@%$OPENLDAP_LIBVERSION%g
22508 s%@top_builddir@%$top_builddir%g
22509 s%@ldap_subdir@%$ldap_subdir%g
22513 s%@OBJEXT@%$OBJEXT%g
22514 s%@EXEEXT@%$EXEEXT%g
22516 s%@RANLIB@%$RANLIB%g
22518 s%@DLLTOOL@%$DLLTOOL%g
22520 s%@OBJDUMP@%$OBJDUMP%g
22522 s%@LIBTOOL@%$LIBTOOL%g
22524 s%@SENDMAIL@%$SENDMAIL%g
22525 s%@EDITOR@%$EDITOR%g
22526 s%@FINGER@%$FINGER%g
22527 s%@PERLBIN@%$PERLBIN%g
22528 s%@OL_MKDEP@%$OL_MKDEP%g
22529 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
22530 s%@LIBOBJS@%$LIBOBJS%g
22531 s%@LIBSRCS@%$LIBSRCS%g
22533 s%@BUILD_LIBS_DYNAMIC@%$BUILD_LIBS_DYNAMIC%g
22534 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
22535 s%@BUILD_BDB@%$BUILD_BDB%g
22536 s%@BUILD_DNSSRV@%$BUILD_DNSSRV%g
22537 s%@BUILD_LDAP@%$BUILD_LDAP%g
22538 s%@BUILD_LDBM@%$BUILD_LDBM%g
22539 s%@BUILD_META@%$BUILD_META%g
22540 s%@BUILD_MONITOR@%$BUILD_MONITOR%g
22541 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
22542 s%@BUILD_PERL@%$BUILD_PERL%g
22543 s%@BUILD_SHELL@%$BUILD_SHELL%g
22544 s%@BUILD_SQL@%$BUILD_SQL%g
22545 s%@BUILD_TCL@%$BUILD_TCL%g
22546 s%@BUILD_BDB_DYNAMIC@%$BUILD_BDB_DYNAMIC%g
22547 s%@BUILD_DNSSRV_DYNAMIC@%$BUILD_DNSSRV_DYNAMIC%g
22548 s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
22549 s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
22550 s%@BUILD_META_DYNAMIC@%$BUILD_META_DYNAMIC%g
22551 s%@BUILD_MONITOR_DYNAMIC@%$BUILD_MONITOR_DYNAMIC%g
22552 s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
22553 s%@BUILD_PERL_DYNAMIC@%$BUILD_PERL_DYNAMIC%g
22554 s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
22555 s%@BUILD_SQL_DYNAMIC@%$BUILD_SQL_DYNAMIC%g
22556 s%@BUILD_TCL_DYNAMIC@%$BUILD_TCL_DYNAMIC%g
22557 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
22558 s%@LDBM_LIB@%$LDBM_LIB%g
22559 s%@LDAP_LIBS@%$LDAP_LIBS%g
22560 s%@LDIF_LIBS@%$LDIF_LIBS%g
22561 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
22562 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
22563 s%@LDBM_LIBS@%$LDBM_LIBS%g
22564 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
22565 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
22566 s%@WRAP_LIBS@%$WRAP_LIBS%g
22567 s%@MOD_TCL_LIB@%$MOD_TCL_LIB%g
22568 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
22569 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
22570 s%@SLAPD_MODULES_LIST@%$SLAPD_MODULES_LIST%g
22571 s%@SLAPD_STATIC_BACKENDS@%$SLAPD_STATIC_BACKENDS%g
22572 s%@SLAPD_DYNAMIC_BACKENDS@%$SLAPD_DYNAMIC_BACKENDS%g
22573 s%@PERL_CPPFLAGS@%$PERL_CPPFLAGS%g
22574 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
22575 s%@MOD_PERL_LDFLAGS@%$MOD_PERL_LDFLAGS%g
22576 s%@KRB4_LIBS@%$KRB4_LIBS%g
22577 s%@KRB5_LIBS@%$KRB5_LIBS%g
22578 s%@READLINE_LIBS@%$READLINE_LIBS%g
22579 s%@SASL_LIBS@%$SASL_LIBS%g
22580 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
22581 s%@TLS_LIBS@%$TLS_LIBS%g
22582 s%@MODULES_LIBS@%$MODULES_LIBS%g
22583 s%@AUTH_LIBS@%$AUTH_LIBS%g
22584 s%@SLAPD_SLP_LIBS@%$SLAPD_SLP_LIBS%g
22585 s%@SLAPD_SQL_LDFLAGS@%$SLAPD_SQL_LDFLAGS%g
22586 s%@SLAPD_SQL_LIBS@%$SLAPD_SQL_LIBS%g
22587 s%@SLAPD_SQL_INCLUDES@%$SLAPD_SQL_INCLUDES%g
22592 cat >> $CONFIG_STATUS <<\EOF
22594 # Split the substitutions into bite-sized pieces for seds with
22595 # small command number limits, like on Digital OSF/1 and HP-UX.
22596 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
22597 ac_file=1 # Number of current file.
22598 ac_beg=1 # First line for current file.
22599 ac_end=$ac_max_sed_cmds # Line after last line for current file.
22602 while $ac_more_lines; do
22603 if test $ac_beg -gt 1; then
22604 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
22606 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
22608 if test ! -s conftest.s$ac_file; then
22609 ac_more_lines=false
22610 rm -f conftest.s$ac_file
22612 if test -z "$ac_sed_cmds"; then
22613 ac_sed_cmds="sed -f conftest.s$ac_file"
22615 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
22617 ac_file=`expr $ac_file + 1`
22619 ac_end=`expr $ac_end + $ac_max_sed_cmds`
22622 if test -z "$ac_sed_cmds"; then
22627 cat >> $CONFIG_STATUS <<EOF
22629 CONFIG_FILES=\${CONFIG_FILES-"\
22630 Makefile:build/top.mk:Makefile.in:build/dir.mk \
22631 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
22632 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
22633 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
22634 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
22635 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
22636 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
22637 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
22638 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
22639 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
22640 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
22641 clients/maildap/Makefile:build/top.mk:clients/maildap/Makefile.in:build/rules.mk \
22642 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
22643 include/Makefile:build/top.mk:include/Makefile.in \
22644 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
22645 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
22646 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
22647 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
22648 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
22649 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
22650 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
22651 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
22652 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
22653 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
22654 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
22655 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
22656 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
22657 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
22658 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
22659 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
22660 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
22661 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
22662 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
22663 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
22664 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
22665 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
22666 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
22667 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
22668 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
22669 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
22670 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
22671 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
22674 cat >> $CONFIG_STATUS <<\EOF
22675 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
22676 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22678 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22679 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22680 *) ac_file_in="${ac_file}.in" ;;
22683 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
22685 # Remove last slash and all that follows it. Not all systems have dirname.
22686 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
22687 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22688 # The file is in a subdirectory.
22689 test ! -d "$ac_dir" && mkdir "$ac_dir"
22690 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
22691 # A "../" for each directory in $ac_dir_suffix.
22692 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
22694 ac_dir_suffix= ac_dots=
22697 case "$ac_given_srcdir" in
22699 if test -z "$ac_dots"; then top_srcdir=.
22700 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
22701 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
22702 *) # Relative path.
22703 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
22704 top_srcdir="$ac_dots$ac_given_srcdir" ;;
22707 case "$ac_given_INSTALL" in
22708 [/$]*) INSTALL="$ac_given_INSTALL" ;;
22709 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
22712 echo creating "$ac_file"
22714 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
22716 *[Mm]akefile*) ac_comsub="1i\\
22717 # $configure_input" ;;
22721 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
22723 s%@configure_input@%$configure_input%g
22724 s%@srcdir@%$srcdir%g
22725 s%@top_srcdir@%$top_srcdir%g
22726 s%@INSTALL@%$INSTALL%g
22727 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
22731 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22732 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22734 # ac_d sets the value in "#define NAME VALUE" lines.
22735 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22736 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
22739 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
22740 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22741 ac_uB='\([ ]\)%\1#\2define\3'
22744 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22745 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22746 ac_eB='$%\1#\2define\3'
22750 if test "${CONFIG_HEADERS+set}" != set; then
22752 cat >> $CONFIG_STATUS <<EOF
22753 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
22755 cat >> $CONFIG_STATUS <<\EOF
22757 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
22758 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22760 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22761 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22762 *) ac_file_in="${ac_file}.in" ;;
22765 echo creating $ac_file
22767 rm -f conftest.frag conftest.in conftest.out
22768 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
22769 cat $ac_file_inputs > conftest.in
22773 # Transform confdefs.h into a sed script conftest.vals that substitutes
22774 # the proper values into config.h.in to produce config.h. And first:
22775 # Protect against being on the right side of a sed subst in config.status.
22776 # Protect against being in an unquoted here document in config.status.
22777 rm -f conftest.vals
22778 cat > conftest.hdr <<\EOF
22781 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
22785 sed -n -f conftest.hdr confdefs.h > conftest.vals
22788 # This sed command replaces #undef with comments. This is necessary, for
22789 # example, in the case of _POSIX_SOURCE, which is predefined and required
22790 # on some systems where configure will not decide to define it.
22791 cat >> conftest.vals <<\EOF
22792 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
22795 # Break up conftest.vals because some shells have a limit on
22796 # the size of here documents, and old seds have small limits too.
22798 rm -f conftest.tail
22801 ac_lines=`grep -c . conftest.vals`
22802 # grep -c gives empty output for an empty file on some AIX systems.
22803 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
22804 # Write a limited-size here document to conftest.frag.
22805 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
22806 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
22808 sed -f conftest.frag conftest.in > conftest.out
22810 mv conftest.out conftest.in
22811 ' >> $CONFIG_STATUS
22812 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
22813 rm -f conftest.vals
22814 mv conftest.tail conftest.vals
22816 rm -f conftest.vals
22818 cat >> $CONFIG_STATUS <<\EOF
22819 rm -f conftest.frag conftest.h
22820 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
22821 cat conftest.in >> conftest.h
22823 if cmp -s $ac_file conftest.h 2>/dev/null; then
22824 echo "$ac_file is unchanged"
22827 # Remove last slash and all that follows it. Not all systems have dirname.
22828 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
22829 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22830 # The file is in a subdirectory.
22831 test ! -d "$ac_dir" && mkdir "$ac_dir"
22834 mv conftest.h $ac_file
22839 cat >> $CONFIG_STATUS <<EOF
22842 cat >> $CONFIG_STATUS <<\EOF
22845 echo Please run \"make depend\" to build dependencies
22849 chmod +x $CONFIG_STATUS
22850 rm -fr confdefs* $ac_clean_files
22851 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1