3 # from OpenLDAP: pkg/ldap/configure.in,v 1.478.2.12 2004/01/17 18:36:41 kurt Exp
5 # This work is part of OpenLDAP Software <http://www.openldap.org/>.
7 # Copyright 1998-2004 The OpenLDAP Foundation.
10 # Redistribution and use in source and binary forms, with or without
11 # modification, are permitted only as authorized by the OpenLDAP
14 # A copy of this license is available in the file LICENSE in the
15 # top-level directory of the distribution or, alternatively, at
16 # <http://www.OpenLDAP.org/license.html>.
18 echo "Copyright 1998-2004 The OpenLDAP Foundation. All rights reserved."
19 echo " Restrictions apply, see COPYRIGHT and LICENSE files."
21 # Guess values for system-dependent variables and create Makefiles.
22 # Generated automatically using autoconf version 2.13.1
23 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
25 # This configure script is free software; the Free Software Foundation
26 # gives unlimited permission to copy, distribute and modify it.
30 ac_default_prefix=/usr/local
31 # Any additions from configure.in:
32 ac_default_prefix=/usr/local
34 --with-subdir=DIR change default subdirectory used for installs"
36 --enable-debug enable debugging [yes]"
38 --enable-dynamic enable linking built binaries with dynamic libs [no]"
40 --enable-syslog enable syslog support [auto]"
42 --enable-proctitle enable proctitle support [yes]"
44 --enable-ipv6 enable IPv6 support [auto]"
46 --enable-local enable AF_LOCAL (AF_UNIX) socket support [auto]"
48 --enable-x-compile enable cross compiling [no]"
50 --with-cyrus-sasl with Cyrus SASL support [auto]"
52 --with-fetch with fetch(3) URL support [auto]"
54 --with-threads with threads [auto]"
56 --with-tls with TLS/SSL support [auto]"
58 --with-yielding-select with implicitly yielding select [auto]"
61 SLAPD (Standalone LDAP Daemon) Options:"
63 --enable-slapd enable building slapd [yes]"
65 --enable-aci enable per-object ACIs (experimental) [no]"
67 --enable-cleartext enable cleartext passwords [yes]"
69 --enable-crypt enable crypt(3) passwords [no]"
71 --enable-lmpasswd enable LAN Manager passwords [no]"
73 --enable-spasswd enable (Cyrus) SASL password verification [no]"
75 --enable-modules enable dynamic module support [no]"
77 --enable-rewrite enable DN rewriting in back-ldap and back-meta [no]"
79 --enable-rlookups enable reverse lookups of client hostnames [no]"
81 --enable-slapi enable SLAPI support (experimental) [no]"
83 --enable-slp enable SLPv2 support [no]"
85 --enable-wrappers enable tcp wrapper support [no]"
87 --enable-bdb enable Berkeley DB backend [yes]"
89 --with-bdb-module module type static|dynamic [static]"
91 --enable-dnssrv enable dnssrv backend [no]"
93 --with-dnssrv-module module type static|dynamic [static]"
95 --enable-hdb enable Hierarchical DB backend [no]"
97 --with-hdb-module module type static|dynamic [static]"
99 --enable-ldap enable ldap backend [no]"
101 --with-ldap-module module type static|dynamic [static]"
103 --enable-ldbm enable ldbm backend [no]"
105 --with-ldbm-api with LDBM API auto|berkeley|bcompat|mdbm|gdbm [auto]"
107 --with-ldbm-module module type static|dynamic [static]"
109 --with-ldbm-type use LDBM type auto|btree|hash [auto]"
111 --enable-meta enable metadirectory backend [no]"
113 --with-meta-module module type static|dynamic [static]"
115 --enable-monitor enable monitor backend [yes]"
117 --with-monitor-module module type static|dynamic [static]"
119 --enable-null enable null backend [no]"
121 --with-null-module module type static|dynamic [static]"
123 --enable-passwd enable passwd backend [no]"
125 --with-passwd-module module type static|dynamic [static]"
127 --enable-perl enable perl backend [no]"
129 --with-perl-module module type static|dynamic [static]"
131 --enable-shell enable shell backend [no]"
133 --with-shell-module module type static|dynamic [static]"
135 --enable-sql enable sql backend [no]"
137 --with-sql-module module type static|dynamic [static]"
140 SLAPD Overlay Options:"
142 --with-dyngroup Dynamic Group overlay no|yes|mod [no]"
144 --with-proxycache Proxy Cache overlay no|yes|mod [no]"
147 SLURPD (Replication Daemon) Options:"
149 --enable-slurpd enable building slurpd [auto]"
152 Library Generation & Linking Options"
154 --enable-static[=PKGS] build static libraries [default=yes]"
156 --enable-shared[=PKGS] build shared libraries [default=yes]"
158 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
160 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
162 # Find the correct PATH separator. Usually this is `:', but
163 # DJGPP uses `;' like DOS.
164 if test "X${PATH_SEPARATOR+set}" != Xset; then
165 UNAME=${UNAME-`uname 2>/dev/null`}
167 *-DOS) lt_cv_sys_path_separator=';' ;;
168 *) lt_cv_sys_path_separator=':' ;;
170 PATH_SEPARATOR=$lt_cv_sys_path_separator
174 # Check that we are running under the correct shell.
175 SHELL=${CONFIG_SHELL-/bin/sh}
179 # Remove one level of quotation (which was required for Make).
180 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
185 if test "X$1" = X--no-reexec; then
186 # Discard the --no-reexec flag, and continue.
188 elif test "X$1" = X--fallback-echo; then
189 # Avoid inline document here, it may be left over
191 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
192 # Yippee, $echo works!
195 # Restart under the correct shell.
196 exec $SHELL "$0" --no-reexec ${1+"$@"}
199 if test "X$1" = X--fallback-echo; then
200 # used as fallback echo
208 # The HP-UX ksh and POSIX shell print the target directory to stdout
210 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
212 if test -z "$ECHO"; then
213 if test "X${echo_test_string+set}" != Xset; then
214 # find a string as large as possible, as long as the shell can cope with it
215 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
216 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
217 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
218 echo_test_string="`eval $cmd`" &&
219 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
226 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
227 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
228 test "X$echo_testing_string" = "X$echo_test_string"; then
231 # The Solaris, AIX, and Digital Unix default echo programs unquote
232 # backslashes. This makes it impossible to quote backslashes using
233 # echo "$something" | sed 's/\\/\\\\/g'
235 # So, first we look for a working echo in the user's PATH.
237 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
238 for dir in $PATH /usr/ucb; do
239 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
240 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
241 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
242 test "X$echo_testing_string" = "X$echo_test_string"; then
249 if test "X$echo" = Xecho; then
250 # We didn't find a better echo, so look for alternatives.
251 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
252 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
253 test "X$echo_testing_string" = "X$echo_test_string"; then
254 # This shell has a builtin print -r that does the trick.
256 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
257 test "X$CONFIG_SHELL" != X/bin/ksh; then
258 # If we have ksh, try running configure again with it.
259 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
260 export ORIGINAL_CONFIG_SHELL
261 CONFIG_SHELL=/bin/ksh
263 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
267 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
268 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
269 test "X$echo_testing_string" = "X$echo_test_string"; then
272 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
273 test "X$echo_testing_string" = 'X\t' &&
274 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
275 test "X$echo_testing_string" = "X$echo_test_string"; then
276 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
278 SHELL="$CONFIG_SHELL"
280 echo="$CONFIG_SHELL $0 --fallback-echo"
281 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
282 test "X$echo_testing_string" = 'X\t' &&
283 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
284 test "X$echo_testing_string" = "X$echo_test_string"; then
285 echo="$CONFIG_SHELL $0 --fallback-echo"
287 # maybe with a smaller string...
290 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
291 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
298 if test "$prev" != 'sed 50q "$0"'; then
299 echo_test_string=`eval $prev`
300 export echo_test_string
301 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
303 # Oops. We lost completely, so just stick with echo.
312 # Copy echo and quote the copy suitably for passing to libtool from
313 # the Makefile, instead of quoting the original, which is used later.
315 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
316 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
321 --disable-libtool-lock avoid locking (might break parallel builds)"
323 --with-pic try to use only PIC/non-PIC objects [default=use both]"
326 See INSTALL file for further details."
328 # Initialize some variables set by options.
329 # The variables have the same names as the options, with
330 # dashes changed to underlines.
332 cache_file=./config.cache
341 program_transform_name=s,x,x,
349 bindir='${exec_prefix}/bin'
350 sbindir='${exec_prefix}/sbin'
351 libexecdir='${exec_prefix}/libexec'
352 datadir='${prefix}/share'
353 sysconfdir='${prefix}/etc'
354 sharedstatedir='${prefix}/com'
355 localstatedir='${prefix}/var'
356 libdir='${exec_prefix}/lib'
357 includedir='${prefix}/include'
358 oldincludedir='/usr/include'
359 infodir='${prefix}/info'
360 mandir='${prefix}/man'
362 # Initialize some other variables.
365 SHELL=${CONFIG_SHELL-/bin/sh}
366 # Maximum number of lines to put in a shell here document.
373 # If the previous option needs an argument, assign it.
374 if test -n "$ac_prev"; then
375 eval "$ac_prev=\$ac_option"
381 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
385 # Accept the important Cygnus configure options, so we can diagnose typos.
389 -bindir | --bindir | --bindi | --bind | --bin | --bi)
391 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
392 bindir="$ac_optarg" ;;
394 -build | --build | --buil | --bui | --bu)
396 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
397 build="$ac_optarg" ;;
399 -cache-file | --cache-file | --cache-fil | --cache-fi \
400 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
401 ac_prev=cache_file ;;
402 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
403 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
404 cache_file="$ac_optarg" ;;
406 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
408 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
410 datadir="$ac_optarg" ;;
412 -disable-* | --disable-*)
413 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
414 # Reject names that are not valid shell variable names.
415 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
416 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
418 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
419 eval "enable_${ac_feature}=no" ;;
421 -enable-* | --enable-*)
422 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
423 # Reject names that are not valid shell variable names.
424 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
425 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
427 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
432 eval "enable_${ac_feature}='$ac_optarg'" ;;
434 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
435 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
436 | --exec | --exe | --ex)
437 ac_prev=exec_prefix ;;
438 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
439 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
440 | --exec=* | --exe=* | --ex=*)
441 exec_prefix="$ac_optarg" ;;
443 -gas | --gas | --ga | --g)
444 # Obsolete; use --with-gas.
447 -help | --help | --hel | --he)
448 # Omit some internal or obsolete options to make the list less imposing.
449 # This message is too long to be a string in the A/UX 3.1 sh.
451 Usage: configure [options] [host]
452 Options: [defaults in brackets after descriptions]
454 --cache-file=FILE cache test results in FILE
455 --help print this message
456 --no-create do not create output files
457 --quiet, --silent do not print \`checking...' messages
458 --version print the version of autoconf that created configure
459 Directory and file names:
460 --prefix=PREFIX install architecture-independent files in PREFIX
462 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
464 --bindir=DIR user executables in DIR [EPREFIX/bin]
465 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
466 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
467 --datadir=DIR read-only architecture-independent data in DIR
469 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
470 --sharedstatedir=DIR modifiable architecture-independent data in DIR
472 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
473 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
474 --includedir=DIR C header files in DIR [PREFIX/include]
475 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
476 --infodir=DIR info documentation in DIR [PREFIX/info]
477 --mandir=DIR man documentation in DIR [PREFIX/man]
478 --srcdir=DIR find the sources in DIR [configure dir or ..]
479 --program-prefix=PREFIX prepend PREFIX to installed program names
480 --program-suffix=SUFFIX append SUFFIX to installed program names
481 --program-transform-name=PROGRAM
482 run sed PROGRAM on installed program names
486 --build=BUILD configure for building on BUILD [BUILD=HOST]
487 --host=HOST configure for HOST [guessed]
488 --target=TARGET configure for TARGET [TARGET=HOST]
489 Features and packages:
490 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
491 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
492 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
493 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
494 --x-includes=DIR X include files are in DIR
495 --x-libraries=DIR X library files are in DIR
497 if test -n "$ac_help"; then
498 echo "--enable and --with options recognized:$ac_help"
502 -host | --host | --hos | --ho)
504 -host=* | --host=* | --hos=* | --ho=*)
507 -includedir | --includedir | --includedi | --included | --include \
508 | --includ | --inclu | --incl | --inc)
509 ac_prev=includedir ;;
510 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
511 | --includ=* | --inclu=* | --incl=* | --inc=*)
512 includedir="$ac_optarg" ;;
514 -infodir | --infodir | --infodi | --infod | --info | --inf)
516 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
517 infodir="$ac_optarg" ;;
519 -libdir | --libdir | --libdi | --libd)
521 -libdir=* | --libdir=* | --libdi=* | --libd=*)
522 libdir="$ac_optarg" ;;
524 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
525 | --libexe | --libex | --libe)
526 ac_prev=libexecdir ;;
527 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
528 | --libexe=* | --libex=* | --libe=*)
529 libexecdir="$ac_optarg" ;;
531 -localstatedir | --localstatedir | --localstatedi | --localstated \
532 | --localstate | --localstat | --localsta | --localst \
533 | --locals | --local | --loca | --loc | --lo)
534 ac_prev=localstatedir ;;
535 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
536 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
537 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
538 localstatedir="$ac_optarg" ;;
540 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
542 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
543 mandir="$ac_optarg" ;;
546 # Obsolete; use --without-fp.
549 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
553 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
554 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
557 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
558 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
559 | --oldin | --oldi | --old | --ol | --o)
560 ac_prev=oldincludedir ;;
561 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
562 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
563 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
564 oldincludedir="$ac_optarg" ;;
566 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
568 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
569 prefix="$ac_optarg" ;;
571 -program-prefix | --program-prefix | --program-prefi | --program-pref \
572 | --program-pre | --program-pr | --program-p)
573 ac_prev=program_prefix ;;
574 -program-prefix=* | --program-prefix=* | --program-prefi=* \
575 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
576 program_prefix="$ac_optarg" ;;
578 -program-suffix | --program-suffix | --program-suffi | --program-suff \
579 | --program-suf | --program-su | --program-s)
580 ac_prev=program_suffix ;;
581 -program-suffix=* | --program-suffix=* | --program-suffi=* \
582 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
583 program_suffix="$ac_optarg" ;;
585 -program-transform-name | --program-transform-name \
586 | --program-transform-nam | --program-transform-na \
587 | --program-transform-n | --program-transform- \
588 | --program-transform | --program-transfor \
589 | --program-transfo | --program-transf \
590 | --program-trans | --program-tran \
591 | --progr-tra | --program-tr | --program-t)
592 ac_prev=program_transform_name ;;
593 -program-transform-name=* | --program-transform-name=* \
594 | --program-transform-nam=* | --program-transform-na=* \
595 | --program-transform-n=* | --program-transform-=* \
596 | --program-transform=* | --program-transfor=* \
597 | --program-transfo=* | --program-transf=* \
598 | --program-trans=* | --program-tran=* \
599 | --progr-tra=* | --program-tr=* | --program-t=*)
600 program_transform_name="$ac_optarg" ;;
602 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
603 | -silent | --silent | --silen | --sile | --sil)
606 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
608 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
610 sbindir="$ac_optarg" ;;
612 -sharedstatedir | --sharedstatedir | --sharedstatedi \
613 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
614 | --sharedst | --shareds | --shared | --share | --shar \
616 ac_prev=sharedstatedir ;;
617 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
618 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
619 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
621 sharedstatedir="$ac_optarg" ;;
623 -site | --site | --sit)
625 -site=* | --site=* | --sit=*)
628 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
630 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
631 srcdir="$ac_optarg" ;;
633 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
634 | --syscon | --sysco | --sysc | --sys | --sy)
635 ac_prev=sysconfdir ;;
636 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
637 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
638 sysconfdir="$ac_optarg" ;;
640 -target | --target | --targe | --targ | --tar | --ta | --t)
642 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
643 target="$ac_optarg" ;;
645 -v | -verbose | --verbose | --verbos | --verbo | --verb)
648 -version | --version | --versio | --versi | --vers)
649 echo "configure generated by autoconf version 2.13.1"
653 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
654 # Reject names that are not valid shell variable names.
655 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
656 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
658 ac_package=`echo $ac_package| sed 's/-/_/g'`
663 eval "with_${ac_package}='$ac_optarg'" ;;
665 -without-* | --without-*)
666 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
667 # Reject names that are not valid shell variable names.
668 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
669 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
671 ac_package=`echo $ac_package| sed 's/-/_/g'`
672 eval "with_${ac_package}=no" ;;
675 # Obsolete; use --with-x.
678 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
679 | --x-incl | --x-inc | --x-in | --x-i)
680 ac_prev=x_includes ;;
681 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
682 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
683 x_includes="$ac_optarg" ;;
685 -x-libraries | --x-libraries | --x-librarie | --x-librari \
686 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
687 ac_prev=x_libraries ;;
688 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
689 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
690 x_libraries="$ac_optarg" ;;
692 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
696 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
697 echo "configure: warning: $ac_option: invalid host type" 1>&2
699 if test "x$nonopt" != xNONE; then
700 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
708 if test -n "$ac_prev"; then
709 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
712 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
714 # File descriptor usage:
717 # 2 errors and warnings
718 # 3 some systems may open it to /dev/tty
719 # 4 used on the Kubota Titan
720 # 6 checking for... messages and results
721 # 5 compiler messages saved in config.log
722 if test "$silent" = yes; then
730 This file contains any messages produced by compilers while
731 running configure, to aid debugging if configure makes a mistake.
734 # Strip out --no-create and --no-recursion so they do not pile up.
735 # Also quote any args containing shell metacharacters.
740 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
741 | --no-cr | --no-c) ;;
742 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
743 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
744 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
745 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
746 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
751 # Only set these to C if already set. These must not be set unconditionally
752 # because not all systems understand e.g. LANG=C (notably SCO).
753 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
754 # Non-C LC_CTYPE values break the ctype check.
755 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
756 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
757 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
758 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
760 # confdefs.h avoids OS command line length limits that DEFS can exceed.
761 rm -rf conftest* confdefs.h
762 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
765 # A filename unique to this package, relative to the directory that
766 # configure is in, which we can look for to find out if srcdir is correct.
767 ac_unique_file=build/version.sh
769 # Find the source files, if location was not specified.
770 if test -z "$srcdir"; then
771 ac_srcdir_defaulted=yes
772 # Try the directory containing this script, then its parent.
774 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
775 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
777 if test ! -r $srcdir/$ac_unique_file; then
781 ac_srcdir_defaulted=no
783 if test ! -r $srcdir/$ac_unique_file; then
784 if test "$ac_srcdir_defaulted" = yes; then
785 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
787 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
790 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
792 # Prefer explicitly selected file to automatically selected ones.
793 if test -z "$CONFIG_SITE"; then
794 if test "x$prefix" != xNONE; then
795 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
797 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
800 for ac_site_file in $CONFIG_SITE; do
801 if test -r "$ac_site_file"; then
802 echo "loading site script $ac_site_file"
809 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
810 ac_cpp='$CPP $CPPFLAGS'
811 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
812 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
813 cross_compiling=$ac_cv_prog_cc_cross
817 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
818 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
819 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
826 ac_n= ac_c='\c' ac_t=
830 # set unset (borrowed from autoconf 2.49c)
831 if (OL_FOO=OL_FOO; unset OL_FOO) >/dev/null 2>&1; then
837 $ol_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
840 for ac_dir in build $srcdir/build; do
841 if test -f $ac_dir/install-sh; then
843 ac_install_sh="$ac_aux_dir/install-sh -c"
845 elif test -f $ac_dir/install.sh; then
847 ac_install_sh="$ac_aux_dir/install.sh -c"
849 elif test -f $ac_dir/shtool; then
851 ac_install_sh="$ac_aux_dir/shtool install -c"
855 if test -z "$ac_aux_dir"; then
856 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
858 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
859 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
860 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
862 eval `$ac_aux_dir/version.sh`
863 if test -z "$OL_STRING"; then
864 { echo "configure: error: could not determine version" 1>&2; exit 1; }
867 if test -f "$ac_aux_dir/shtool" -a ! -d $ac_aux_dir/shtool; then
868 ac_cv_shtool="$ac_aux_dir/shtool"
870 { echo "configure: error: no shtool found in $ac_aux_dir" 1>&2; exit 1; }
873 SHTOOL="$ac_cv_shtool"
875 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
876 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
879 if test -d $ac_aux_dir/CVS; then
880 OPENLDAP_CVS="(from CVS sources) "
883 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
886 echo $ac_n "checking host system type""... $ac_c" 1>&6
887 echo "configure:888: checking host system type" >&5
888 if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
890 # Make sure we can run config.sub.
891 if $ac_config_sub sun4 >/dev/null 2>&1; then :
892 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
895 ac_cv_host_alias=$host
896 case "$ac_cv_host_alias" in
900 if ac_cv_host_alias=`$ac_config_guess`; then :
901 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
903 *) ac_cv_host_alias=$nonopt ;;
907 ac_cv_host=`$ac_config_sub $ac_cv_host_alias`
908 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
909 ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
910 ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
912 echo $ac_n "(cached) $ac_c" 1>&6
915 echo "$ac_t""$ac_cv_host" 1>&6
918 host_alias=$ac_cv_host_alias
919 host_cpu=$ac_cv_host_cpu
920 host_vendor=$ac_cv_host_vendor
921 host_os=$ac_cv_host_os
927 echo $ac_n "checking target system type""... $ac_c" 1>&6
928 echo "configure:929: checking target system type" >&5
929 if test "x$ac_cv_target" = "x" || (test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
931 # Make sure we can run config.sub.
932 if $ac_config_sub sun4 >/dev/null 2>&1; then :
933 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
936 ac_cv_target_alias=$target
937 case "$ac_cv_target_alias" in
941 ac_cv_target_alias=$host_alias ;;
943 *) ac_cv_target_alias=$nonopt ;;
947 ac_cv_target=`$ac_config_sub $ac_cv_target_alias`
948 ac_cv_target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
949 ac_cv_target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
950 ac_cv_target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
952 echo $ac_n "(cached) $ac_c" 1>&6
955 echo "$ac_t""$ac_cv_target" 1>&6
958 target_alias=$ac_cv_target_alias
959 target_cpu=$ac_cv_target_cpu
960 target_vendor=$ac_cv_target_vendor
961 target_os=$ac_cv_target_os
967 echo $ac_n "checking build system type""... $ac_c" 1>&6
968 echo "configure:969: checking build system type" >&5
969 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
971 # Make sure we can run config.sub.
972 if $ac_config_sub sun4 >/dev/null 2>&1; then :
973 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
976 ac_cv_build_alias=$build
977 case "$ac_cv_build_alias" in
981 ac_cv_build_alias=$host_alias ;;
983 *) ac_cv_build_alias=$nonopt ;;
987 ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
988 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
989 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
990 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
992 echo $ac_n "(cached) $ac_c" 1>&6
995 echo "$ac_t""$ac_cv_build" 1>&6
998 build_alias=$ac_cv_build_alias
999 build_cpu=$ac_cv_build_cpu
1000 build_vendor=$ac_cv_build_vendor
1001 build_os=$ac_cv_build_os
1007 # Do some error checking and defaulting for the host and target type.
1009 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1012 # 1. You are not allowed to specify --host, --target, and nonopt at the
1014 # 2. Host defaults to nonopt.
1015 # 3. If nonopt is not specified, then host defaults to the current host,
1016 # as determined by config.guess.
1017 # 4. Target and build default to nonopt.
1018 # 5. If nonopt is not specified, then target and build default to host.
1020 # The aliases save the names the user supplied, while $host etc.
1021 # will get canonicalized.
1022 case $host---$target---$nonopt in
1023 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1024 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1027 test "$host_alias" != "$target_alias" &&
1028 test "$program_prefix$program_suffix$program_transform_name" = \
1030 program_prefix=${target_alias}-
1033 # Find a good install program. We prefer a C program (faster),
1034 # so one script is as good as another. But avoid the broken or
1035 # incompatible versions:
1036 # SysV /etc/install, /usr/sbin/install
1037 # SunOS /usr/etc/install
1038 # IRIX /sbin/install
1040 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1041 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1042 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1043 # ./install, which can be erroneously created by make from ./install.sh.
1044 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1045 echo "configure:1046: checking for a BSD compatible install" >&5
1046 if test -z "$INSTALL"; then
1047 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
1048 echo $ac_n "(cached) $ac_c" 1>&6
1050 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1051 for ac_dir in $PATH; do
1052 # Account for people who put trailing slashes in PATH elements.
1054 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1056 # OSF1 and SCO ODT 3.0 have their own names for install.
1057 # Don't use installbsd from OSF since it installs stuff as root
1059 for ac_prog in ginstall scoinst install; do
1060 if test -f $ac_dir/$ac_prog; then
1061 if test $ac_prog = install &&
1062 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1063 # AIX install. It has an incompatible calling convention.
1065 elif test $ac_prog = install &&
1066 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
1067 # program-specific install script used by HP pwplus--don't use.
1070 ac_cv_path_install="$ac_dir/$ac_prog -c"
1081 if test "${ac_cv_path_install+set}" = set; then
1082 INSTALL="$ac_cv_path_install"
1084 # As a last resort, use the slow shell script. We don't cache a
1085 # path for INSTALL within a source directory, because that will
1086 # break other packages using the cache if that directory is
1087 # removed, or if the path is relative.
1088 INSTALL="$ac_install_sh"
1091 echo "$ac_t""$INSTALL" 1>&6
1093 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1094 # It thinks the first close brace ends the variable substitution.
1095 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1097 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1099 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1101 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1102 echo "configure:1103: checking whether build environment is sane" >&5
1105 echo timestamp > conftestfile
1106 # Do `set' in a subshell so we don't clobber the current shell's
1107 # arguments. Must try -L first in case configure is actually a
1108 # symlink; some systems play weird games with the mod time of symlinks
1109 # (eg FreeBSD returns the mod time of the symlink's containing
1112 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1113 if test "$*" = "X"; then
1115 set X `ls -t $srcdir/configure conftestfile`
1117 if test "$*" != "X $srcdir/configure conftestfile" \
1118 && test "$*" != "X conftestfile $srcdir/configure"; then
1120 # If neither matched, then we have a broken ls. This can happen
1121 # if, for instance, CONFIG_SHELL is bash and it inherits a
1122 # broken ls alias from the environment. This has actually
1123 # happened. Such a system could not be considered "sane".
1124 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1125 alias in your environment" 1>&2; exit 1; }
1128 test "$2" = conftestfile
1134 { echo "configure: error: newly created file is older than distributed files!
1135 Check your system clock" 1>&2; exit 1; }
1138 echo "$ac_t""yes" 1>&6
1139 if test "$program_transform_name" = s,x,x,; then
1140 program_transform_name=
1142 # Double any \ or $. echo might interpret backslashes.
1143 cat <<\EOF_SED > conftestsed
1144 s,\\,\\\\,g; s,\$,$$,g
1146 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1149 test "$program_prefix" != NONE &&
1150 program_transform_name="s,^,${program_prefix},;$program_transform_name"
1151 # Use a double $ so make ignores it.
1152 test "$program_suffix" != NONE &&
1153 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
1155 # sed with no file args requires a program.
1156 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1158 for ac_prog in mawk gawk nawk awk
1160 # Extract the first word of "$ac_prog", so it can be a program name with args.
1161 set dummy $ac_prog; ac_word=$2
1162 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1163 echo "configure:1164: checking for $ac_word" >&5
1164 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
1165 echo $ac_n "(cached) $ac_c" 1>&6
1167 if test -n "$AWK"; then
1168 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1170 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1172 for ac_dir in $ac_dummy; do
1173 test -z "$ac_dir" && ac_dir=.
1174 if test -f $ac_dir/$ac_word; then
1175 ac_cv_prog_AWK="$ac_prog"
1182 AWK="$ac_cv_prog_AWK"
1183 if test -n "$AWK"; then
1184 echo "$ac_t""$AWK" 1>&6
1186 echo "$ac_t""no" 1>&6
1189 test -n "$AWK" && break
1192 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1193 echo "configure:1194: checking whether ${MAKE-make} sets \${MAKE}" >&5
1194 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1195 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1196 echo $ac_n "(cached) $ac_c" 1>&6
1198 cat > conftestmake <<\EOF
1200 @echo 'ac_maketemp="${MAKE}"'
1202 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1203 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1204 if test -n "$ac_maketemp"; then
1205 eval ac_cv_prog_make_${ac_make}_set=yes
1207 eval ac_cv_prog_make_${ac_make}_set=no
1211 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1212 echo "$ac_t""yes" 1>&6
1215 echo "$ac_t""no" 1>&6
1216 SET_MAKE="MAKE=${MAKE-make}"
1225 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1226 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1231 missing_dir=`cd $ac_aux_dir && pwd`
1232 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1233 echo "configure:1234: checking for working aclocal" >&5
1234 # Run test in a subshell; some versions of sh will print an error if
1235 # an executable is not found, even if stderr is redirected.
1236 # Redirect stdin to placate older versions of autoconf. Sigh.
1237 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1239 echo "$ac_t""found" 1>&6
1241 ACLOCAL="$missing_dir/missing aclocal"
1242 echo "$ac_t""missing" 1>&6
1245 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1246 echo "configure:1247: checking for working autoconf" >&5
1247 # Run test in a subshell; some versions of sh will print an error if
1248 # an executable is not found, even if stderr is redirected.
1249 # Redirect stdin to placate older versions of autoconf. Sigh.
1250 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1252 echo "$ac_t""found" 1>&6
1254 AUTOCONF="$missing_dir/missing autoconf"
1255 echo "$ac_t""missing" 1>&6
1258 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1259 echo "configure:1260: checking for working automake" >&5
1260 # Run test in a subshell; some versions of sh will print an error if
1261 # an executable is not found, even if stderr is redirected.
1262 # Redirect stdin to placate older versions of autoconf. Sigh.
1263 if (automake --version) < /dev/null > /dev/null 2>&1; then
1265 echo "$ac_t""found" 1>&6
1267 AUTOMAKE="$missing_dir/missing automake"
1268 echo "$ac_t""missing" 1>&6
1271 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1272 echo "configure:1273: checking for working autoheader" >&5
1273 # Run test in a subshell; some versions of sh will print an error if
1274 # an executable is not found, even if stderr is redirected.
1275 # Redirect stdin to placate older versions of autoconf. Sigh.
1276 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1277 AUTOHEADER=autoheader
1278 echo "$ac_t""found" 1>&6
1280 AUTOHEADER="$missing_dir/missing autoheader"
1281 echo "$ac_t""missing" 1>&6
1284 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1285 echo "configure:1286: checking for working makeinfo" >&5
1286 # Run test in a subshell; some versions of sh will print an error if
1287 # an executable is not found, even if stderr is redirected.
1288 # Redirect stdin to placate older versions of autoconf. Sigh.
1289 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1291 echo "$ac_t""found" 1>&6
1293 MAKEINFO="$missing_dir/missing makeinfo"
1294 echo "$ac_t""missing" 1>&6
1297 install_sh="$missing_dir/install-sh"
1298 test -f "$install_sh" || install_sh="$missing_dir/install.sh"
1300 for ac_prog in gnutar gtar tar
1302 # Extract the first word of "$ac_prog", so it can be a program name with args.
1303 set dummy $ac_prog; ac_word=$2
1304 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1305 echo "configure:1306: checking for $ac_word" >&5
1306 if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then
1307 echo $ac_n "(cached) $ac_c" 1>&6
1309 if test -n "$AMTAR"; then
1310 ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
1312 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1314 for ac_dir in $ac_dummy; do
1315 test -z "$ac_dir" && ac_dir=.
1316 if test -f $ac_dir/$ac_word; then
1317 ac_cv_prog_AMTAR="$ac_prog"
1324 AMTAR="$ac_cv_prog_AMTAR"
1325 if test -n "$AMTAR"; then
1326 echo "$ac_t""$AMTAR" 1>&6
1328 echo "$ac_t""no" 1>&6
1331 test -n "$AMTAR" && break
1336 if test -n "$AMTAR"; then
1337 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
1342 cat >> confdefs.h <<EOF
1343 #define OPENLDAP_PACKAGE "$PACKAGE"
1346 cat >> confdefs.h <<EOF
1347 #define OPENLDAP_VERSION "$VERSION"
1351 cat >> confdefs.h <<EOF
1352 #define LDAP_VENDOR_VERSION $OL_API_INC
1355 cat >> confdefs.h <<EOF
1356 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
1359 cat >> confdefs.h <<EOF
1360 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
1363 cat >> confdefs.h <<EOF
1364 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
1368 OPENLDAP_LIBVERSION=$OL_API_LIB
1370 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
1374 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
1375 echo "configure:1376: checking configure arguments" >&5
1380 ldap_subdir="/openldap"
1382 # Check whether --with-subdir or --without-subdir was given.
1383 if test "${with_subdir+set}" = set; then
1384 withval="$with_subdir"
1391 ldap_subdir="$withval"
1394 ldap_subdir="/$withval"
1401 # OpenLDAP --enable-debug
1402 # Check whether --enable-debug or --disable-debug was given.
1403 if test "${enable_debug+set}" = set; then
1404 enableval="$enable_debug"
1407 for ol_val in auto yes no ; do
1408 if test "$enableval" = "$ol_val" ; then
1412 if test "$ol_arg" = "invalid" ; then
1413 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
1415 ol_enable_debug="$ol_arg"
1418 ol_enable_debug="yes"
1420 # end --enable-debug
1421 # OpenLDAP --enable-dynamic
1422 # Check whether --enable-dynamic or --disable-dynamic was given.
1423 if test "${enable_dynamic+set}" = set; then
1424 enableval="$enable_dynamic"
1427 for ol_val in auto yes no ; do
1428 if test "$enableval" = "$ol_val" ; then
1432 if test "$ol_arg" = "invalid" ; then
1433 { echo "configure: error: bad value $enableval for --enable-dynamic" 1>&2; exit 1; }
1435 ol_enable_dynamic="$ol_arg"
1438 ol_enable_dynamic="no"
1440 # end --enable-dynamic
1441 # OpenLDAP --enable-syslog
1442 # Check whether --enable-syslog or --disable-syslog was given.
1443 if test "${enable_syslog+set}" = set; then
1444 enableval="$enable_syslog"
1447 for ol_val in auto yes no ; do
1448 if test "$enableval" = "$ol_val" ; then
1452 if test "$ol_arg" = "invalid" ; then
1453 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
1455 ol_enable_syslog="$ol_arg"
1458 ol_enable_syslog="auto"
1460 # end --enable-syslog
1461 # OpenLDAP --enable-proctitle
1462 # Check whether --enable-proctitle or --disable-proctitle was given.
1463 if test "${enable_proctitle+set}" = set; then
1464 enableval="$enable_proctitle"
1467 for ol_val in auto yes no ; do
1468 if test "$enableval" = "$ol_val" ; then
1472 if test "$ol_arg" = "invalid" ; then
1473 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
1475 ol_enable_proctitle="$ol_arg"
1478 ol_enable_proctitle="yes"
1480 # end --enable-proctitle
1481 ol_enable_referrals=${ol_enable_referrals-no}
1482 ol_enable_kbind=${ol_enable_kbind-no}
1483 # OpenLDAP --enable-ipv6
1484 # Check whether --enable-ipv6 or --disable-ipv6 was given.
1485 if test "${enable_ipv6+set}" = set; then
1486 enableval="$enable_ipv6"
1489 for ol_val in auto yes no ; do
1490 if test "$enableval" = "$ol_val" ; then
1494 if test "$ol_arg" = "invalid" ; then
1495 { echo "configure: error: bad value $enableval for --enable-ipv6" 1>&2; exit 1; }
1497 ol_enable_ipv6="$ol_arg"
1500 ol_enable_ipv6="auto"
1503 # OpenLDAP --enable-local
1504 # Check whether --enable-local or --disable-local was given.
1505 if test "${enable_local+set}" = set; then
1506 enableval="$enable_local"
1509 for ol_val in auto yes no ; do
1510 if test "$enableval" = "$ol_val" ; then
1514 if test "$ol_arg" = "invalid" ; then
1515 { echo "configure: error: bad value $enableval for --enable-local" 1>&2; exit 1; }
1517 ol_enable_local="$ol_arg"
1520 ol_enable_local="auto"
1522 # end --enable-local
1523 # OpenLDAP --enable-x_compile
1524 # Check whether --enable-x_compile or --disable-x_compile was given.
1525 if test "${enable_x_compile+set}" = set; then
1526 enableval="$enable_x_compile"
1529 for ol_val in yes no ; do
1530 if test "$enableval" = "$ol_val" ; then
1534 if test "$ol_arg" = "invalid" ; then
1535 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1537 ol_enable_x_compile="$ol_arg"
1540 ol_enable_x_compile="no"
1542 # end --enable-x_compile
1545 # OpenLDAP --with-cyrus_sasl
1546 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
1547 if test "${with_cyrus_sasl+set}" = set; then
1548 withval="$with_cyrus_sasl"
1551 for ol_val in auto yes no ; do
1552 if test "$withval" = "$ol_val" ; then
1556 if test "$ol_arg" = "invalid" ; then
1557 { echo "configure: error: bad value $withval for --with-cyrus_sasl" 1>&2; exit 1; }
1559 ol_with_cyrus_sasl="$ol_arg"
1562 ol_with_cyrus_sasl="auto"
1564 # end --with-cyrus_sasl
1566 # OpenLDAP --with-fetch
1567 # Check whether --with-fetch or --without-fetch was given.
1568 if test "${with_fetch+set}" = set; then
1569 withval="$with_fetch"
1572 for ol_val in auto yes no ; do
1573 if test "$withval" = "$ol_val" ; then
1577 if test "$ol_arg" = "invalid" ; then
1578 { echo "configure: error: bad value $withval for --with-fetch" 1>&2; exit 1; }
1580 ol_with_fetch="$ol_arg"
1583 ol_with_fetch="auto"
1587 ol_with_kerberos=${ol_with_kerberos-auto}
1588 # OpenLDAP --with-threads
1589 # Check whether --with-threads or --without-threads was given.
1590 if test "${with_threads+set}" = set; then
1591 withval="$with_threads"
1594 for ol_val in auto nt posix mach pth lwp yes no manual ; do
1595 if test "$withval" = "$ol_val" ; then
1599 if test "$ol_arg" = "invalid" ; then
1600 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1602 ol_with_threads="$ol_arg"
1605 ol_with_threads="auto"
1607 # end --with-threads
1609 # OpenLDAP --with-tls
1610 # Check whether --with-tls or --without-tls was given.
1611 if test "${with_tls+set}" = set; then
1615 for ol_val in auto ssleay openssl yes no ; do
1616 if test "$withval" = "$ol_val" ; then
1620 if test "$ol_arg" = "invalid" ; then
1621 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1623 ol_with_tls="$ol_arg"
1630 # OpenLDAP --with-yielding_select
1631 # Check whether --with-yielding_select or --without-yielding_select was given.
1632 if test "${with_yielding_select+set}" = set; then
1633 withval="$with_yielding_select"
1636 for ol_val in auto yes no manual ; do
1637 if test "$withval" = "$ol_val" ; then
1641 if test "$ol_arg" = "invalid" ; then
1642 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1644 ol_with_yielding_select="$ol_arg"
1647 ol_with_yielding_select="auto"
1649 # end --with-yielding_select
1653 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1654 if test "${with_xxslapdoptions+set}" = set; then
1655 withval="$with_xxslapdoptions"
1659 # OpenLDAP --enable-slapd
1660 # Check whether --enable-slapd or --disable-slapd was given.
1661 if test "${enable_slapd+set}" = set; then
1662 enableval="$enable_slapd"
1665 for ol_val in auto yes no ; do
1666 if test "$enableval" = "$ol_val" ; then
1670 if test "$ol_arg" = "invalid" ; then
1671 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1673 ol_enable_slapd="$ol_arg"
1676 ol_enable_slapd="yes"
1678 # end --enable-slapd
1679 # OpenLDAP --enable-aci
1680 # Check whether --enable-aci or --disable-aci was given.
1681 if test "${enable_aci+set}" = set; then
1682 enableval="$enable_aci"
1685 for ol_val in auto yes no ; do
1686 if test "$enableval" = "$ol_val" ; then
1690 if test "$ol_arg" = "invalid" ; then
1691 { echo "configure: error: bad value $enableval for --enable-aci" 1>&2; exit 1; }
1693 ol_enable_aci="$ol_arg"
1699 # OpenLDAP --enable-cleartext
1700 # Check whether --enable-cleartext or --disable-cleartext was given.
1701 if test "${enable_cleartext+set}" = set; then
1702 enableval="$enable_cleartext"
1705 for ol_val in auto yes no ; do
1706 if test "$enableval" = "$ol_val" ; then
1710 if test "$ol_arg" = "invalid" ; then
1711 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1713 ol_enable_cleartext="$ol_arg"
1716 ol_enable_cleartext="yes"
1718 # end --enable-cleartext
1719 # OpenLDAP --enable-crypt
1720 # Check whether --enable-crypt or --disable-crypt was given.
1721 if test "${enable_crypt+set}" = set; then
1722 enableval="$enable_crypt"
1725 for ol_val in auto yes no ; do
1726 if test "$enableval" = "$ol_val" ; then
1730 if test "$ol_arg" = "invalid" ; then
1731 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1733 ol_enable_crypt="$ol_arg"
1736 ol_enable_crypt="no"
1738 # end --enable-crypt
1739 ol_enable_kpasswd=${ol_enable_kpasswd-no}
1740 # OpenLDAP --enable-lmpasswd
1741 # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
1742 if test "${enable_lmpasswd+set}" = set; then
1743 enableval="$enable_lmpasswd"
1746 for ol_val in auto yes no ; do
1747 if test "$enableval" = "$ol_val" ; then
1751 if test "$ol_arg" = "invalid" ; then
1752 { echo "configure: error: bad value $enableval for --enable-lmpasswd" 1>&2; exit 1; }
1754 ol_enable_lmpasswd="$ol_arg"
1757 ol_enable_lmpasswd="no"
1759 # end --enable-lmpasswd
1760 # OpenLDAP --enable-spasswd
1761 # Check whether --enable-spasswd or --disable-spasswd was given.
1762 if test "${enable_spasswd+set}" = set; then
1763 enableval="$enable_spasswd"
1766 for ol_val in auto yes no ; do
1767 if test "$enableval" = "$ol_val" ; then
1771 if test "$ol_arg" = "invalid" ; then
1772 { echo "configure: error: bad value $enableval for --enable-spasswd" 1>&2; exit 1; }
1774 ol_enable_spasswd="$ol_arg"
1777 ol_enable_spasswd="no"
1779 # end --enable-spasswd
1780 # OpenLDAP --enable-modules
1781 # Check whether --enable-modules or --disable-modules was given.
1782 if test "${enable_modules+set}" = set; then
1783 enableval="$enable_modules"
1786 for ol_val in auto yes no ; do
1787 if test "$enableval" = "$ol_val" ; then
1791 if test "$ol_arg" = "invalid" ; then
1792 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1794 ol_enable_modules="$ol_arg"
1797 ol_enable_modules="no"
1799 # end --enable-modules
1800 ol_enable_multimaster=${ol_enable_multimaster-no}
1801 # OpenLDAP --enable-rewrite
1802 # Check whether --enable-rewrite or --disable-rewrite was given.
1803 if test "${enable_rewrite+set}" = set; then
1804 enableval="$enable_rewrite"
1807 for ol_val in auto yes no ; do
1808 if test "$enableval" = "$ol_val" ; then
1812 if test "$ol_arg" = "invalid" ; then
1813 { echo "configure: error: bad value $enableval for --enable-rewrite" 1>&2; exit 1; }
1815 ol_enable_rewrite="$ol_arg"
1818 ol_enable_rewrite="no"
1820 # end --enable-rewrite
1821 # OpenLDAP --enable-rlookups
1822 # Check whether --enable-rlookups or --disable-rlookups was given.
1823 if test "${enable_rlookups+set}" = set; then
1824 enableval="$enable_rlookups"
1827 for ol_val in auto yes no ; do
1828 if test "$enableval" = "$ol_val" ; then
1832 if test "$ol_arg" = "invalid" ; then
1833 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1835 ol_enable_rlookups="$ol_arg"
1838 ol_enable_rlookups="no"
1840 # end --enable-rlookups
1841 # OpenLDAP --enable-slapi
1842 # Check whether --enable-slapi or --disable-slapi was given.
1843 if test "${enable_slapi+set}" = set; then
1844 enableval="$enable_slapi"
1847 for ol_val in auto yes no ; do
1848 if test "$enableval" = "$ol_val" ; then
1852 if test "$ol_arg" = "invalid" ; then
1853 { echo "configure: error: bad value $enableval for --enable-slapi" 1>&2; exit 1; }
1855 ol_enable_slapi="$ol_arg"
1858 ol_enable_slapi="no"
1860 # end --enable-slapi
1861 # OpenLDAP --enable-slp
1862 # Check whether --enable-slp or --disable-slp was given.
1863 if test "${enable_slp+set}" = set; then
1864 enableval="$enable_slp"
1867 for ol_val in auto yes no ; do
1868 if test "$enableval" = "$ol_val" ; then
1872 if test "$ol_arg" = "invalid" ; then
1873 { echo "configure: error: bad value $enableval for --enable-slp" 1>&2; exit 1; }
1875 ol_enable_slp="$ol_arg"
1881 # OpenLDAP --enable-wrappers
1882 # Check whether --enable-wrappers or --disable-wrappers was given.
1883 if test "${enable_wrappers+set}" = set; then
1884 enableval="$enable_wrappers"
1887 for ol_val in auto yes no ; do
1888 if test "$enableval" = "$ol_val" ; then
1892 if test "$ol_arg" = "invalid" ; then
1893 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1895 ol_enable_wrappers="$ol_arg"
1898 ol_enable_wrappers="no"
1900 # end --enable-wrappers
1903 # OpenLDAP --enable-bdb
1904 # Check whether --enable-bdb or --disable-bdb was given.
1905 if test "${enable_bdb+set}" = set; then
1906 enableval="$enable_bdb"
1909 for ol_val in auto yes no ; do
1910 if test "$enableval" = "$ol_val" ; then
1914 if test "$ol_arg" = "invalid" ; then
1915 { echo "configure: error: bad value $enableval for --enable-bdb" 1>&2; exit 1; }
1917 ol_enable_bdb="$ol_arg"
1923 # OpenLDAP --with-bdb_module
1924 # Check whether --with-bdb_module or --without-bdb_module was given.
1925 if test "${with_bdb_module+set}" = set; then
1926 withval="$with_bdb_module"
1929 for ol_val in static dynamic ; do
1930 if test "$withval" = "$ol_val" ; then
1934 if test "$ol_arg" = "invalid" ; then
1935 { echo "configure: error: bad value $withval for --with-bdb_module" 1>&2; exit 1; }
1937 ol_with_bdb_module="$ol_arg"
1940 ol_with_bdb_module="static"
1942 # end --with-bdb_module
1944 # OpenLDAP --enable-dnssrv
1945 # Check whether --enable-dnssrv or --disable-dnssrv was given.
1946 if test "${enable_dnssrv+set}" = set; then
1947 enableval="$enable_dnssrv"
1950 for ol_val in auto yes no ; do
1951 if test "$enableval" = "$ol_val" ; then
1955 if test "$ol_arg" = "invalid" ; then
1956 { echo "configure: error: bad value $enableval for --enable-dnssrv" 1>&2; exit 1; }
1958 ol_enable_dnssrv="$ol_arg"
1961 ol_enable_dnssrv="no"
1963 # end --enable-dnssrv
1964 # OpenLDAP --with-dnssrv_module
1965 # Check whether --with-dnssrv_module or --without-dnssrv_module was given.
1966 if test "${with_dnssrv_module+set}" = set; then
1967 withval="$with_dnssrv_module"
1970 for ol_val in static dynamic ; do
1971 if test "$withval" = "$ol_val" ; then
1975 if test "$ol_arg" = "invalid" ; then
1976 { echo "configure: error: bad value $withval for --with-dnssrv_module" 1>&2; exit 1; }
1978 ol_with_dnssrv_module="$ol_arg"
1981 ol_with_dnssrv_module="static"
1983 # end --with-dnssrv_module
1985 # OpenLDAP --enable-hdb
1986 # Check whether --enable-hdb or --disable-hdb was given.
1987 if test "${enable_hdb+set}" = set; then
1988 enableval="$enable_hdb"
1991 for ol_val in auto yes no ; do
1992 if test "$enableval" = "$ol_val" ; then
1996 if test "$ol_arg" = "invalid" ; then
1997 { echo "configure: error: bad value $enableval for --enable-hdb" 1>&2; exit 1; }
1999 ol_enable_hdb="$ol_arg"
2005 # OpenLDAP --with-hdb_module
2006 # Check whether --with-hdb_module or --without-hdb_module was given.
2007 if test "${with_hdb_module+set}" = set; then
2008 withval="$with_hdb_module"
2011 for ol_val in static dynamic ; do
2012 if test "$withval" = "$ol_val" ; then
2016 if test "$ol_arg" = "invalid" ; then
2017 { echo "configure: error: bad value $withval for --with-hdb_module" 1>&2; exit 1; }
2019 ol_with_hdb_module="$ol_arg"
2022 ol_with_hdb_module="static"
2024 # end --with-hdb_module
2026 # OpenLDAP --enable-ldap
2027 # Check whether --enable-ldap or --disable-ldap was given.
2028 if test "${enable_ldap+set}" = set; then
2029 enableval="$enable_ldap"
2032 for ol_val in auto yes no ; do
2033 if test "$enableval" = "$ol_val" ; then
2037 if test "$ol_arg" = "invalid" ; then
2038 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
2040 ol_enable_ldap="$ol_arg"
2046 # OpenLDAP --with-ldap_module
2047 # Check whether --with-ldap_module or --without-ldap_module was given.
2048 if test "${with_ldap_module+set}" = set; then
2049 withval="$with_ldap_module"
2052 for ol_val in static dynamic ; do
2053 if test "$withval" = "$ol_val" ; then
2057 if test "$ol_arg" = "invalid" ; then
2058 { echo "configure: error: bad value $withval for --with-ldap_module" 1>&2; exit 1; }
2060 ol_with_ldap_module="$ol_arg"
2063 ol_with_ldap_module="static"
2065 # end --with-ldap_module
2067 # OpenLDAP --enable-ldbm
2068 # Check whether --enable-ldbm or --disable-ldbm was given.
2069 if test "${enable_ldbm+set}" = set; then
2070 enableval="$enable_ldbm"
2073 for ol_val in auto yes no ; do
2074 if test "$enableval" = "$ol_val" ; then
2078 if test "$ol_arg" = "invalid" ; then
2079 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
2081 ol_enable_ldbm="$ol_arg"
2087 # OpenLDAP --with-ldbm_api
2088 # Check whether --with-ldbm_api or --without-ldbm_api was given.
2089 if test "${with_ldbm_api+set}" = set; then
2090 withval="$with_ldbm_api"
2093 for ol_val in auto berkeley bcompat mdbm gdbm ; do
2094 if test "$withval" = "$ol_val" ; then
2098 if test "$ol_arg" = "invalid" ; then
2099 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
2101 ol_with_ldbm_api="$ol_arg"
2104 ol_with_ldbm_api="auto"
2106 # end --with-ldbm_api
2108 # OpenLDAP --with-ldbm_module
2109 # Check whether --with-ldbm_module or --without-ldbm_module was given.
2110 if test "${with_ldbm_module+set}" = set; then
2111 withval="$with_ldbm_module"
2114 for ol_val in static dynamic ; do
2115 if test "$withval" = "$ol_val" ; then
2119 if test "$ol_arg" = "invalid" ; then
2120 { echo "configure: error: bad value $withval for --with-ldbm_module" 1>&2; exit 1; }
2122 ol_with_ldbm_module="$ol_arg"
2125 ol_with_ldbm_module="static"
2127 # end --with-ldbm_module
2129 # OpenLDAP --with-ldbm_type
2130 # Check whether --with-ldbm_type or --without-ldbm_type was given.
2131 if test "${with_ldbm_type+set}" = set; then
2132 withval="$with_ldbm_type"
2135 for ol_val in auto btree hash ; do
2136 if test "$withval" = "$ol_val" ; then
2140 if test "$ol_arg" = "invalid" ; then
2141 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
2143 ol_with_ldbm_type="$ol_arg"
2146 ol_with_ldbm_type="auto"
2148 # end --with-ldbm_type
2150 # OpenLDAP --enable-meta
2151 # Check whether --enable-meta or --disable-meta was given.
2152 if test "${enable_meta+set}" = set; then
2153 enableval="$enable_meta"
2156 for ol_val in auto yes no ; do
2157 if test "$enableval" = "$ol_val" ; then
2161 if test "$ol_arg" = "invalid" ; then
2162 { echo "configure: error: bad value $enableval for --enable-meta" 1>&2; exit 1; }
2164 ol_enable_meta="$ol_arg"
2170 # OpenLDAP --with-meta_module
2171 # Check whether --with-meta_module or --without-meta_module was given.
2172 if test "${with_meta_module+set}" = set; then
2173 withval="$with_meta_module"
2176 for ol_val in static dynamic ; do
2177 if test "$withval" = "$ol_val" ; then
2181 if test "$ol_arg" = "invalid" ; then
2182 { echo "configure: error: bad value $withval for --with-meta_module" 1>&2; exit 1; }
2184 ol_with_meta_module="$ol_arg"
2187 ol_with_meta_module="static"
2189 # end --with-meta_module
2191 # OpenLDAP --enable-monitor
2192 # Check whether --enable-monitor or --disable-monitor was given.
2193 if test "${enable_monitor+set}" = set; then
2194 enableval="$enable_monitor"
2197 for ol_val in auto yes no ; do
2198 if test "$enableval" = "$ol_val" ; then
2202 if test "$ol_arg" = "invalid" ; then
2203 { echo "configure: error: bad value $enableval for --enable-monitor" 1>&2; exit 1; }
2205 ol_enable_monitor="$ol_arg"
2208 ol_enable_monitor="yes"
2210 # end --enable-monitor
2211 # OpenLDAP --with-monitor_module
2212 # Check whether --with-monitor_module or --without-monitor_module was given.
2213 if test "${with_monitor_module+set}" = set; then
2214 withval="$with_monitor_module"
2217 for ol_val in static dynamic ; do
2218 if test "$withval" = "$ol_val" ; then
2222 if test "$ol_arg" = "invalid" ; then
2223 { echo "configure: error: bad value $withval for --with-monitor_module" 1>&2; exit 1; }
2225 ol_with_monitor_module="$ol_arg"
2228 ol_with_monitor_module="static"
2230 # end --with-monitor_module
2232 # OpenLDAP --enable-null
2233 # Check whether --enable-null or --disable-null was given.
2234 if test "${enable_null+set}" = set; then
2235 enableval="$enable_null"
2238 for ol_val in auto yes no ; do
2239 if test "$enableval" = "$ol_val" ; then
2243 if test "$ol_arg" = "invalid" ; then
2244 { echo "configure: error: bad value $enableval for --enable-null" 1>&2; exit 1; }
2246 ol_enable_null="$ol_arg"
2252 # OpenLDAP --with-null_module
2253 # Check whether --with-null_module or --without-null_module was given.
2254 if test "${with_null_module+set}" = set; then
2255 withval="$with_null_module"
2258 for ol_val in static dynamic ; do
2259 if test "$withval" = "$ol_val" ; then
2263 if test "$ol_arg" = "invalid" ; then
2264 { echo "configure: error: bad value $withval for --with-null_module" 1>&2; exit 1; }
2266 ol_with_null_module="$ol_arg"
2269 ol_with_null_module="static"
2271 # end --with-null_module
2273 # OpenLDAP --enable-passwd
2274 # Check whether --enable-passwd or --disable-passwd was given.
2275 if test "${enable_passwd+set}" = set; then
2276 enableval="$enable_passwd"
2279 for ol_val in auto yes no ; do
2280 if test "$enableval" = "$ol_val" ; then
2284 if test "$ol_arg" = "invalid" ; then
2285 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
2287 ol_enable_passwd="$ol_arg"
2290 ol_enable_passwd="no"
2292 # end --enable-passwd
2293 # OpenLDAP --with-passwd_module
2294 # Check whether --with-passwd_module or --without-passwd_module was given.
2295 if test "${with_passwd_module+set}" = set; then
2296 withval="$with_passwd_module"
2299 for ol_val in static dynamic ; do
2300 if test "$withval" = "$ol_val" ; then
2304 if test "$ol_arg" = "invalid" ; then
2305 { echo "configure: error: bad value $withval for --with-passwd_module" 1>&2; exit 1; }
2307 ol_with_passwd_module="$ol_arg"
2310 ol_with_passwd_module="static"
2312 # end --with-passwd_module
2314 # OpenLDAP --enable-perl
2315 # Check whether --enable-perl or --disable-perl was given.
2316 if test "${enable_perl+set}" = set; then
2317 enableval="$enable_perl"
2320 for ol_val in auto yes no ; do
2321 if test "$enableval" = "$ol_val" ; then
2325 if test "$ol_arg" = "invalid" ; then
2326 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
2328 ol_enable_perl="$ol_arg"
2334 # OpenLDAP --with-perl_module
2335 # Check whether --with-perl_module or --without-perl_module was given.
2336 if test "${with_perl_module+set}" = set; then
2337 withval="$with_perl_module"
2340 for ol_val in static dynamic ; do
2341 if test "$withval" = "$ol_val" ; then
2345 if test "$ol_arg" = "invalid" ; then
2346 { echo "configure: error: bad value $withval for --with-perl_module" 1>&2; exit 1; }
2348 ol_with_perl_module="$ol_arg"
2351 ol_with_perl_module="static"
2353 # end --with-perl_module
2355 # OpenLDAP --enable-shell
2356 # Check whether --enable-shell or --disable-shell was given.
2357 if test "${enable_shell+set}" = set; then
2358 enableval="$enable_shell"
2361 for ol_val in auto yes no ; do
2362 if test "$enableval" = "$ol_val" ; then
2366 if test "$ol_arg" = "invalid" ; then
2367 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
2369 ol_enable_shell="$ol_arg"
2372 ol_enable_shell="no"
2374 # end --enable-shell
2375 # OpenLDAP --with-shell_module
2376 # Check whether --with-shell_module or --without-shell_module was given.
2377 if test "${with_shell_module+set}" = set; then
2378 withval="$with_shell_module"
2381 for ol_val in static dynamic ; do
2382 if test "$withval" = "$ol_val" ; then
2386 if test "$ol_arg" = "invalid" ; then
2387 { echo "configure: error: bad value $withval for --with-shell_module" 1>&2; exit 1; }
2389 ol_with_shell_module="$ol_arg"
2392 ol_with_shell_module="static"
2394 # end --with-shell_module
2396 # OpenLDAP --enable-sql
2397 # Check whether --enable-sql or --disable-sql was given.
2398 if test "${enable_sql+set}" = set; then
2399 enableval="$enable_sql"
2402 for ol_val in auto yes no ; do
2403 if test "$enableval" = "$ol_val" ; then
2407 if test "$ol_arg" = "invalid" ; then
2408 { echo "configure: error: bad value $enableval for --enable-sql" 1>&2; exit 1; }
2410 ol_enable_sql="$ol_arg"
2416 # OpenLDAP --with-sql_module
2417 # Check whether --with-sql_module or --without-sql_module was given.
2418 if test "${with_sql_module+set}" = set; then
2419 withval="$with_sql_module"
2422 for ol_val in static dynamic ; do
2423 if test "$withval" = "$ol_val" ; then
2427 if test "$ol_arg" = "invalid" ; then
2428 { echo "configure: error: bad value $withval for --with-sql_module" 1>&2; exit 1; }
2430 ol_with_sql_module="$ol_arg"
2433 ol_with_sql_module="static"
2435 # end --with-sql_module
2438 # Check whether --with-xxslapoverlays or --without-xxslapoverlays was given.
2439 if test "${with_xxslapoverlays+set}" = set; then
2440 withval="$with_xxslapoverlays"
2444 # OpenLDAP --with-dyngroup
2445 # Check whether --with-dyngroup or --without-dyngroup was given.
2446 if test "${with_dyngroup+set}" = set; then
2447 withval="$with_dyngroup"
2450 for ol_val in no yes mod ; do
2451 if test "$withval" = "$ol_val" ; then
2455 if test "$ol_arg" = "invalid" ; then
2456 { echo "configure: error: bad value $withval for --with-dyngroup" 1>&2; exit 1; }
2458 ol_with_dyngroup="$ol_arg"
2461 ol_with_dyngroup="no"
2463 # end --with-dyngroup
2465 # OpenLDAP --with-proxycache
2466 # Check whether --with-proxycache or --without-proxycache was given.
2467 if test "${with_proxycache+set}" = set; then
2468 withval="$with_proxycache"
2471 for ol_val in no yes mod ; do
2472 if test "$withval" = "$ol_val" ; then
2476 if test "$ol_arg" = "invalid" ; then
2477 { echo "configure: error: bad value $withval for --with-proxycache" 1>&2; exit 1; }
2479 ol_with_proxycache="$ol_arg"
2482 ol_with_proxycache="no"
2484 # end --with-proxycache
2487 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
2488 if test "${with_xxslurpdoptions+set}" = set; then
2489 withval="$with_xxslurpdoptions"
2493 # OpenLDAP --enable-slurpd
2494 # Check whether --enable-slurpd or --disable-slurpd was given.
2495 if test "${enable_slurpd+set}" = set; then
2496 enableval="$enable_slurpd"
2499 for ol_val in auto yes no ; do
2500 if test "$enableval" = "$ol_val" ; then
2504 if test "$ol_arg" = "invalid" ; then
2505 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
2507 ol_enable_slurpd="$ol_arg"
2510 ol_enable_slurpd="auto"
2512 # end --enable-slurpd
2514 # Check whether --with-xxliboptions or --without-xxliboptions was given.
2515 if test "${with_xxliboptions+set}" = set; then
2516 withval="$with_xxliboptions"
2520 # Check whether --enable-static or --disable-static was given.
2521 if test "${enable_static+set}" = set; then
2522 enableval="$enable_static"
2523 p=${PACKAGE-default}
2525 yes) enable_static=yes ;;
2526 no) enable_static=no ;;
2529 # Look at the argument we got. We use all the common list separators.
2530 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2531 for pkg in $enableval; do
2532 if test "X$pkg" = "X$p"; then
2543 # Check whether --enable-shared or --disable-shared was given.
2544 if test "${enable_shared+set}" = set; then
2545 enableval="$enable_shared"
2546 p=${PACKAGE-default}
2548 yes) enable_shared=yes ;;
2549 no) enable_shared=no ;;
2552 # Look at the argument we got. We use all the common list separators.
2553 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2554 for pkg in $enableval; do
2555 if test "X$pkg" = "X$p"; then
2569 if test $ol_enable_slapd = no ; then
2570 if test $ol_enable_slapi = yes ; then
2571 echo "configure: warning: slapd disabled, ignoring --enable-slapi argument" 1>&2
2573 if test $ol_enable_bdb = yes ; then
2574 echo "configure: warning: slapd disabled, ignoring --enable-bdb argument" 1>&2
2576 if test $ol_enable_dnssrv = yes ; then
2577 echo "configure: warning: slapd disabled, ignoring --enable-dnssrv argument" 1>&2
2579 if test $ol_enable_hdb = yes ; then
2580 echo "configure: warning: slapd disabled, ignoring --enable-hdb argument" 1>&2
2582 if test $ol_enable_ldap = yes ; then
2583 echo "configure: warning: slapd disabled, ignoring --enable-ldap argument" 1>&2
2585 if test $ol_enable_ldbm = yes ; then
2586 echo "configure: warning: slapd disabled, ignoring --enable-ldbm argument" 1>&2
2588 if test $ol_enable_meta = yes ; then
2589 echo "configure: warning: slapd disabled, ignoring --enable-meta argument" 1>&2
2591 if test $ol_enable_monitor = yes ; then
2592 echo "configure: warning: slapd disabled, ignoring --enable-monitor argument" 1>&2
2594 if test $ol_enable_null = yes ; then
2595 echo "configure: warning: slapd disabled, ignoring --enable-null argument" 1>&2
2597 if test $ol_enable_passwd = yes ; then
2598 echo "configure: warning: slapd disabled, ignoring --enable-passwd argument" 1>&2
2600 if test $ol_enable_perl = yes ; then
2601 echo "configure: warning: slapd disabled, ignoring --enable-perl argument" 1>&2
2603 if test $ol_enable_shell = yes ; then
2604 echo "configure: warning: slapd disabled, ignoring --enable-shell argument" 1>&2
2606 if test $ol_enable_sql = yes ; then
2607 echo "configure: warning: slapd disabled, ignoring --enable-sql argument" 1>&2
2609 if test $ol_enable_modules = yes ; then
2610 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2612 if test $ol_enable_multimaster = yes ; then
2613 echo "configure: warning: slapd disabled, ignoring --enable-multimaster argument" 1>&2
2615 if test $ol_enable_wrappers = yes ; then
2616 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2618 if test $ol_enable_rlookups = yes ; then
2619 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2621 if test $ol_enable_aci = yes ; then
2622 echo "configure: warning: slapd disabled, ignoring --enable-aci argument" 1>&2
2624 if test $ol_with_ldbm_api != auto ; then
2625 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2627 if test $ol_with_ldbm_type != auto ; then
2628 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2630 if test $ol_with_bdb_module != static ; then
2631 echo "configure: warning: slapd disabled, ignoring --with-bdb-module argument" 1>&2
2633 if test $ol_with_dnssrv_module != static ; then
2634 echo "configure: warning: slapd disabled, ignoring --with-dnssrv-module argument" 1>&2
2636 if test $ol_with_hdb_module != static ; then
2637 echo "configure: warning: slapd disabled, ignoring --with-hdb-module argument" 1>&2
2639 if test $ol_with_ldap_module != static ; then
2640 echo "configure: warning: slapd disabled, ignoring --with-ldap-module argument" 1>&2
2642 if test $ol_with_ldbm_module != static ; then
2643 echo "configure: warning: slapd disabled, ignoring --with-ldbm-module argument" 1>&2
2645 if test $ol_with_meta_module != static ; then
2646 echo "configure: warning: slapd disabled, ignoring --with-meta-module argument" 1>&2
2648 if test $ol_with_monitor_module != static ; then
2649 echo "configure: warning: slapd disabled, ignoring --with-monitor-module argument" 1>&2
2651 if test $ol_with_null_module != static ; then
2652 echo "configure: warning: slapd disabled, ignoring --with-null-module argument" 1>&2
2654 if test $ol_with_passwd_module != static ; then
2655 echo "configure: warning: slapd disabled, ignoring --with-passwd-module argument" 1>&2
2657 if test $ol_with_perl_module != static ; then
2658 echo "configure: warning: slapd disabled, ignoring --with-perl-module argument" 1>&2
2660 if test $ol_with_shell_module != static ; then
2661 echo "configure: warning: slapd disabled, ignoring --with-shell-module argument" 1>&2
2663 if test $ol_with_sql_module != static ; then
2664 echo "configure: warning: slapd disabled, ignoring --with-sql-module argument" 1>&2
2666 if test $ol_enable_slurpd = yes ; then
2667 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2669 if test $ol_enable_rewrite = yes ; then
2670 echo "configure: warning: slapd disabled, ignoring --enable-rewrite argument" 1>&2
2672 if test $ol_with_dyngroup != no ; then
2673 echo "configure: warning: slapd disabled, ignoring --with-dyngroup argument" 1>&2
2675 if test $ol_with_proxycache != no ; then
2676 echo "configure: warning: slapd disabled, ignoring --with-proxycache argument" 1>&2
2679 # force settings to no
2687 ol_enable_monitor=no
2694 ol_enable_modules=no
2695 ol_enable_multimaster=no
2696 ol_enable_rlookups=no
2698 ol_enable_wrappers=no
2701 ol_with_ldbm_type=no
2703 ol_with_bdb_module=static
2704 ol_with_dnssrv_module=static
2705 ol_with_hdb_module=static
2706 ol_with_ldap_module=static
2707 ol_with_ldbm_module=static
2708 ol_with_meta_module=static
2709 ol_with_monitor_module=static
2710 ol_with_null_module=static
2711 ol_with_passwd_module=static
2712 ol_with_perl_module=static
2713 ol_with_shell_module=static
2714 ol_with_sql_module=static
2718 ol_enable_rewrite=no
2721 ol_with_proxycache=no
2723 elif test $ol_enable_ldbm = no ; then
2725 if test $ol_with_ldbm_api != auto ; then
2726 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2729 if test $ol_with_ldbm_type != auto ; then
2730 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2733 if test $ol_with_ldbm_module != static ; then
2734 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-module argument" 1>&2
2737 if test $ol_enable_modules != yes -a \
2738 $ol_enable_bdb = no -a \
2739 $ol_enable_dnssrv = no -a \
2740 $ol_enable_hdb = no -a \
2741 $ol_enable_ldap = no -a \
2742 $ol_enable_meta = no -a \
2743 $ol_enable_monitor = no -a \
2744 $ol_enable_null = no -a \
2745 $ol_enable_passwd = no -a \
2746 $ol_enable_perl = no -a \
2747 $ol_enable_shell = no -a \
2748 $ol_enable_sql = no ; then
2750 if test $ol_enable_slapd = yes ; then
2751 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2753 echo "configure: warning: skipping slapd, no backend specified" 1>&2
2759 ol_with_ldbm_type=no
2760 ol_with_ldbm_module=static
2762 if test $ol_enable_bdb != no -o $ol_enable_hdb != no; then
2763 ol_with_ldbm_api=berkeley
2767 if test $ol_with_ldbm_api = gdbm -a \
2768 $ol_with_ldbm_type = btree ; then
2769 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2771 if test $ol_with_ldbm_api = mdbm -a \
2772 $ol_with_ldbm_type = btree ; then
2773 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2775 if test $ol_with_ldbm_api = ndbm -a \
2776 $ol_with_ldbm_type = btree ; then
2777 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2780 if test $ol_enable_bdb = yes -o $ol_enable_hdb = yes ; then
2781 if test $ol_with_ldbm_api = auto ; then
2782 ol_with_ldbm_api=berkeley
2783 elif test $ol_with_ldbm_api != berkeley ; then
2784 { echo "configure: error: LDBM API not compatible with BDB/HDB" 1>&2; exit 1; }
2787 elif test $ol_enable_bdb = auto ; then
2788 if test $ol_with_ldbm_api != berkeley \
2789 -o $ol_with_ldbm_api != auto ; then
2790 echo "configure: warning: LDBM API not compatible with BDB, disabling BDB" 1>&2
2796 if test $ol_enable_slurpd = yes ; then
2797 if test $ol_with_threads = no ; then
2798 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2802 if test $ol_enable_lmpasswd = yes ; then
2803 if test $ol_with_tls = no ; then
2804 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
2808 if test $ol_enable_kbind = yes -o $ol_enable_kpasswd = yes ; then
2809 if test $ol_with_kerberos = no ; then
2810 { echo "configure: error: options require --with-kerberos" 1>&2; exit 1; }
2811 elif test $ol_with_kerberos = auto ; then
2812 ol_with_kerberos=yes
2815 elif test $ol_enable_kbind = no -o $ol_enable_kpasswd = no ; then
2816 if test $ol_with_kerberos = auto ; then
2818 elif test $ol_with_kerberos != no ; then
2819 echo "configure: warning: Kerberos detection enabled unnecessarily" 1>&2;
2824 if test $ol_enable_spasswd = yes ; then
2825 if test $ol_with_cyrus_sasl = no ; then
2826 { echo "configure: error: options require --with-cyrus-sasl" 1>&2; exit 1; }
2828 ol_with_cyrus_sasl=yes
2831 echo "$ac_t""done" 1>&6
2862 BUILD_BDB_DYNAMIC=static
2863 BUILD_DNSSRV_DYNAMIC=static
2864 BUILD_HDB_DYNAMIC=static
2865 BUILD_LDAP_DYNAMIC=static
2866 BUILD_LDBM_DYNAMIC=static
2867 BUILD_META_DYNAMIC=static
2868 BUILD_MONITOR_DYNAMIC=static
2869 BUILD_NULL_DYNAMIC=static
2870 BUILD_PASSWD_DYNAMIC=static
2871 BUILD_PERL_DYNAMIC=static
2872 BUILD_SHELL_DYNAMIC=static
2873 BUILD_SQL_DYNAMIC=static
2878 SLAPD_DYNAMIC_OVERLAYS=
2880 SLAPD_MODULES_LDFLAGS=
2881 SLAPD_MODULES_CPPFLAGS=
2883 SLAPD_STATIC_BACKENDS=
2884 SLAPD_DYNAMIC_BACKENDS=
2907 # Find a good install program. We prefer a C program (faster),
2908 # so one script is as good as another. But avoid the broken or
2909 # incompatible versions:
2910 # SysV /etc/install, /usr/sbin/install
2911 # SunOS /usr/etc/install
2912 # IRIX /sbin/install
2914 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2915 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2916 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2917 # ./install, which can be erroneously created by make from ./install.sh.
2918 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2919 echo "configure:2920: checking for a BSD compatible install" >&5
2920 if test -z "$INSTALL"; then
2921 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
2922 echo $ac_n "(cached) $ac_c" 1>&6
2924 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2925 for ac_dir in $PATH; do
2926 # Account for people who put trailing slashes in PATH elements.
2928 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2930 # OSF1 and SCO ODT 3.0 have their own names for install.
2931 # Don't use installbsd from OSF since it installs stuff as root
2933 for ac_prog in ginstall scoinst install; do
2934 if test -f $ac_dir/$ac_prog; then
2935 if test $ac_prog = install &&
2936 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2937 # AIX install. It has an incompatible calling convention.
2939 elif test $ac_prog = install &&
2940 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
2941 # program-specific install script used by HP pwplus--don't use.
2944 ac_cv_path_install="$ac_dir/$ac_prog -c"
2955 if test "${ac_cv_path_install+set}" = set; then
2956 INSTALL="$ac_cv_path_install"
2958 # As a last resort, use the slow shell script. We don't cache a
2959 # path for INSTALL within a source directory, because that will
2960 # break other packages using the cache if that directory is
2961 # removed, or if the path is relative.
2962 INSTALL="$ac_install_sh"
2965 echo "$ac_t""$INSTALL" 1>&6
2967 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2968 # It thinks the first close brace ends the variable substitution.
2969 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2971 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2973 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2976 cat >> confdefs.h <<\EOF
2977 #define HAVE_MKVERSION 1
2985 *-*-aix*) if test -z "$CC" ; then
2986 case "$ol_with_threads" in
2987 auto | yes | posix) ol_aix_threads=yes ;;
2993 if test $ol_aix_threads = yes ; then
2994 if test -z "${CC}" ; then
2995 for ac_prog in cc_r xlc_r cc
2997 # Extract the first word of "$ac_prog", so it can be a program name with args.
2998 set dummy $ac_prog; ac_word=$2
2999 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3000 echo "configure:3001: checking for $ac_word" >&5
3001 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3002 echo $ac_n "(cached) $ac_c" 1>&6
3004 if test -n "$CC"; then
3005 ac_cv_prog_CC="$CC" # Let the user override the test.
3007 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3009 for ac_dir in $ac_dummy; do
3010 test -z "$ac_dir" && ac_dir=.
3011 if test -f $ac_dir/$ac_word; then
3012 ac_cv_prog_CC="$ac_prog"
3020 if test -n "$CC"; then
3021 echo "$ac_t""$CC" 1>&6
3023 echo "$ac_t""no" 1>&6
3026 test -n "$CC" && break
3030 if test "$CC" = cc ; then
3031 if test $ol_with_threads != auto ; then
3032 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
3034 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
3040 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
3041 ol_with_threads=posix
3042 ol_cv_pthread_create=yes
3046 if test -z "${CC}"; then
3047 for ac_prog in cc gcc
3049 # Extract the first word of "$ac_prog", so it can be a program name with args.
3050 set dummy $ac_prog; ac_word=$2
3051 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3052 echo "configure:3053: checking for $ac_word" >&5
3053 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3054 echo $ac_n "(cached) $ac_c" 1>&6
3056 if test -n "$CC"; then
3057 ac_cv_prog_CC="$CC" # Let the user override the test.
3059 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3061 for ac_dir in $ac_dummy; do
3062 test -z "$ac_dir" && ac_dir=.
3063 if test -f $ac_dir/$ac_word; then
3064 ac_cv_prog_CC="$ac_prog"
3072 if test -n "$CC"; then
3073 echo "$ac_t""$CC" 1>&6
3075 echo "$ac_t""no" 1>&6
3078 test -n "$CC" && break
3080 test -n "$CC" || CC="missing"
3083 if test "${CC}" = "missing" ; then
3084 { echo "configure: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." 1>&2; exit 1; }
3088 if test -z "${AR}"; then
3089 for ac_prog in ar gar
3091 # Extract the first word of "$ac_prog", so it can be a program name with args.
3092 set dummy $ac_prog; ac_word=$2
3093 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3094 echo "configure:3095: checking for $ac_word" >&5
3095 if eval "test \"\${ac_cv_prog_AR+set}\" = set"; then
3096 echo $ac_n "(cached) $ac_c" 1>&6
3098 if test -n "$AR"; then
3099 ac_cv_prog_AR="$AR" # Let the user override the test.
3101 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3103 for ac_dir in $ac_dummy; do
3104 test -z "$ac_dir" && ac_dir=.
3105 if test -f $ac_dir/$ac_word; then
3106 ac_cv_prog_AR="$ac_prog"
3114 if test -n "$AR"; then
3115 echo "$ac_t""$AR" 1>&6
3117 echo "$ac_t""no" 1>&6
3120 test -n "$AR" && break
3122 test -n "$AR" || AR="missing"
3125 if test "${AR}" = "missing" ; then
3126 { echo "configure: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." 1>&2; exit 1; }
3132 # Find the correct PATH separator. Usually this is `:', but
3133 # DJGPP uses `;' like DOS.
3134 if test "X${PATH_SEPARATOR+set}" != Xset; then
3135 UNAME=${UNAME-`uname 2>/dev/null`}
3137 *-DOS) lt_cv_sys_path_separator=';' ;;
3138 *) lt_cv_sys_path_separator=':' ;;
3140 PATH_SEPARATOR=$lt_cv_sys_path_separator
3143 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3144 echo "configure:3145: checking for Cygwin environment" >&5
3145 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
3146 echo $ac_n "(cached) $ac_c" 1>&6
3148 cat > conftest.$ac_ext <<EOF
3149 #line 3150 "configure"
3150 #include "confdefs.h"
3155 #define __CYGWIN__ __CYGWIN32__
3160 if { (eval echo configure:3161: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3164 echo "configure: failed program was:" >&5
3165 cat conftest.$ac_ext >&5
3172 echo "$ac_t""$ac_cv_cygwin" 1>&6
3174 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3175 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3176 echo "configure:3177: checking for mingw32 environment" >&5
3177 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
3178 echo $ac_n "(cached) $ac_c" 1>&6
3180 cat > conftest.$ac_ext <<EOF
3181 #line 3182 "configure"
3182 #include "confdefs.h"
3188 if { (eval echo configure:3189: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3192 echo "configure: failed program was:" >&5
3193 cat conftest.$ac_ext >&5
3200 echo "$ac_t""$ac_cv_mingw32" 1>&6
3202 test "$ac_cv_mingw32" = yes && MINGW32=yes
3203 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
3204 echo "configure:3205: checking for EMX OS/2 environment" >&5
3205 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
3206 echo $ac_n "(cached) $ac_c" 1>&6
3208 cat > conftest.$ac_ext <<EOF
3209 #line 3210 "configure"
3210 #include "confdefs.h"
3216 if { (eval echo configure:3217: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3220 echo "configure: failed program was:" >&5
3221 cat conftest.$ac_ext >&5
3228 echo "$ac_t""$ac_cv_emxos2" 1>&6
3230 test "$ac_cv_emxos2" = yes && EMXOS2=yes
3231 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3232 echo "configure:3233: checking how to run the C preprocessor" >&5
3233 # On Suns, sometimes $CPP names a directory.
3234 if test -n "$CPP" && test -d "$CPP"; then
3237 if test -z "$CPP"; then
3238 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
3239 echo $ac_n "(cached) $ac_c" 1>&6
3241 # This must be in double quotes, not single quotes, because CPP may get
3242 # substituted into the Makefile and "${CC-cc}" will confuse make.
3244 # On the NeXT, cc -E runs the code through the compiler's parser,
3245 # not just through cpp.
3246 cat > conftest.$ac_ext <<EOF
3247 #line 3248 "configure"
3248 #include "confdefs.h"
3252 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3253 { (eval echo configure:3254: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3254 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3255 if test -z "$ac_err"; then
3259 echo "configure: failed program was:" >&5
3260 cat conftest.$ac_ext >&5
3262 CPP="${CC-cc} -E -traditional-cpp"
3263 cat > conftest.$ac_ext <<EOF
3264 #line 3265 "configure"
3265 #include "confdefs.h"
3269 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3270 { (eval echo configure:3271: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3271 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3272 if test -z "$ac_err"; then
3276 echo "configure: failed program was:" >&5
3277 cat conftest.$ac_ext >&5
3279 CPP="${CC-cc} -nologo -E"
3280 cat > conftest.$ac_ext <<EOF
3281 #line 3282 "configure"
3282 #include "confdefs.h"
3286 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3287 { (eval echo configure:3288: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3288 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3289 if test -z "$ac_err"; then
3293 echo "configure: failed program was:" >&5
3294 cat conftest.$ac_ext >&5
3303 ac_cv_prog_CPP="$CPP"
3305 CPP="$ac_cv_prog_CPP"
3307 ac_cv_prog_CPP="$CPP"
3309 echo "$ac_t""$CPP" 1>&6
3311 # Check whether --enable-fast-install or --disable-fast-install was given.
3312 if test "${enable_fast_install+set}" = set; then
3313 enableval="$enable_fast_install"
3314 p=${PACKAGE-default}
3316 yes) enable_fast_install=yes ;;
3317 no) enable_fast_install=no ;;
3319 enable_fast_install=no
3320 # Look at the argument we got. We use all the common list separators.
3321 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3322 for pkg in $enableval; do
3323 if test "X$pkg" = "X$p"; then
3324 enable_fast_install=yes
3331 enable_fast_install=yes
3334 # Extract the first word of "gcc", so it can be a program name with args.
3335 set dummy gcc; ac_word=$2
3336 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3337 echo "configure:3338: checking for $ac_word" >&5
3338 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3339 echo $ac_n "(cached) $ac_c" 1>&6
3341 if test -n "$CC"; then
3342 ac_cv_prog_CC="$CC" # Let the user override the test.
3344 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3346 for ac_dir in $ac_dummy; do
3347 test -z "$ac_dir" && ac_dir=.
3348 if test -f $ac_dir/$ac_word; then
3357 if test -n "$CC"; then
3358 echo "$ac_t""$CC" 1>&6
3360 echo "$ac_t""no" 1>&6
3363 if test -z "$CC"; then
3364 # Extract the first word of "cc", so it can be a program name with args.
3365 set dummy cc; ac_word=$2
3366 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3367 echo "configure:3368: checking for $ac_word" >&5
3368 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3369 echo $ac_n "(cached) $ac_c" 1>&6
3371 if test -n "$CC"; then
3372 ac_cv_prog_CC="$CC" # Let the user override the test.
3374 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3377 for ac_dir in $ac_dummy; do
3378 test -z "$ac_dir" && ac_dir=.
3379 if test -f $ac_dir/$ac_word; then
3380 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
3381 ac_prog_rejected=yes
3389 if test $ac_prog_rejected = yes; then
3390 # We found a bogon in the path, so make sure we never use it.
3391 set dummy $ac_cv_prog_CC
3393 if test $# -gt 0; then
3394 # We chose a different compiler from the bogus one.
3395 # However, it has the same basename, so the bogon will be chosen
3396 # first if we set CC to just the basename; use the full file name.
3398 set dummy "$ac_dir/$ac_word" "$@"
3406 if test -n "$CC"; then
3407 echo "$ac_t""$CC" 1>&6
3409 echo "$ac_t""no" 1>&6
3412 if test -z "$CC"; then
3413 case "`uname -s`" in
3414 *win32* | *WIN32* | *CYGWIN*)
3415 # Extract the first word of "cl", so it can be a program name with args.
3416 set dummy cl; ac_word=$2
3417 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3418 echo "configure:3419: checking for $ac_word" >&5
3419 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3420 echo $ac_n "(cached) $ac_c" 1>&6
3422 if test -n "$CC"; then
3423 ac_cv_prog_CC="$CC" # Let the user override the test.
3425 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3427 for ac_dir in $ac_dummy; do
3428 test -z "$ac_dir" && ac_dir=.
3429 if test -f $ac_dir/$ac_word; then
3438 if test -n "$CC"; then
3439 echo "$ac_t""$CC" 1>&6
3441 echo "$ac_t""no" 1>&6
3446 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
3449 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
3450 echo "configure:3451: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
3453 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3454 ac_cpp='$CPP $CPPFLAGS'
3455 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3456 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3457 cross_compiling=$ac_cv_prog_cc_cross
3459 cat > conftest.$ac_ext << EOF
3461 #line 3462 "configure"
3462 #include "confdefs.h"
3466 if { (eval echo configure:3467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3467 ac_cv_prog_cc_works=yes
3468 # If we can't run a trivial program, we are probably using a cross compiler.
3469 if (./conftest; exit) 2>/dev/null; then
3470 ac_cv_prog_cc_cross=no
3472 ac_cv_prog_cc_cross=yes
3475 echo "configure: failed program was:" >&5
3476 cat conftest.$ac_ext >&5
3477 ac_cv_prog_cc_works=no
3481 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3482 ac_cpp='$CPP $CPPFLAGS'
3483 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3484 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3485 cross_compiling=$ac_cv_prog_cc_cross
3487 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
3488 if test $ac_cv_prog_cc_works = no; then
3489 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
3491 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
3492 echo "configure:3493: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
3493 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
3494 cross_compiling=$ac_cv_prog_cc_cross
3496 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
3497 echo "configure:3498: checking whether we are using GNU C" >&5
3498 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
3499 echo $ac_n "(cached) $ac_c" 1>&6
3501 cat > conftest.c <<EOF
3506 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:3507: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
3513 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
3515 if test $ac_cv_prog_gcc = yes; then
3521 ac_test_CFLAGS="${CFLAGS+set}"
3522 ac_save_CFLAGS="$CFLAGS"
3524 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
3525 echo "configure:3526: checking whether ${CC-cc} accepts -g" >&5
3526 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
3527 echo $ac_n "(cached) $ac_c" 1>&6
3529 echo 'void f(){}' > conftest.c
3530 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
3539 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
3540 if test "$ac_test_CFLAGS" = set; then
3541 CFLAGS="$ac_save_CFLAGS"
3542 elif test $ac_cv_prog_cc_g = yes; then
3543 if test "$GCC" = yes; then
3549 if test "$GCC" = yes; then
3556 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3557 if test "${with_gnu_ld+set}" = set; then
3558 withval="$with_gnu_ld"
3559 test "$withval" = no || with_gnu_ld=yes
3565 if test "$GCC" = yes; then
3566 # Check if gcc -print-prog-name=ld gives a path.
3567 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
3568 echo "configure:3569: checking for ld used by GCC" >&5
3571 # gcc leaves a trailing carriage return which upsets mingw
3572 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3574 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3577 # Accept absolute paths.
3578 [\\/]* | [A-Za-z]:[\\/]*)
3579 re_direlt='/[^/][^/]*/\.\./'
3580 # Canonicalize the path of ld
3581 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3582 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3583 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3585 test -z "$LD" && LD="$ac_prog"
3588 # If it fails, then pretend we aren't using GCC.
3592 # If it is relative, then search for the first ld in PATH.
3596 elif test "$with_gnu_ld" = yes; then
3597 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
3598 echo "configure:3599: checking for GNU ld" >&5
3600 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
3601 echo "configure:3602: checking for non-GNU ld" >&5
3603 if eval "test \"\${lt_cv_path_LD+set}\" = set"; then
3604 echo $ac_n "(cached) $ac_c" 1>&6
3606 if test -z "$LD"; then
3607 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3608 for ac_dir in $PATH; do
3609 test -z "$ac_dir" && ac_dir=.
3610 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3611 lt_cv_path_LD="$ac_dir/$ac_prog"
3612 # Check to see if the program is GNU ld. I'd rather use --version,
3613 # but apparently some GNU ld's only accept -v.
3614 # Break only if it was the GNU/non-GNU ld that we prefer.
3615 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3616 test "$with_gnu_ld" != no && break
3618 test "$with_gnu_ld" != yes && break
3624 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3629 if test -n "$LD"; then
3630 echo "$ac_t""$LD" 1>&6
3632 echo "$ac_t""no" 1>&6
3634 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
3635 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
3636 echo "configure:3637: checking if the linker ($LD) is GNU ld" >&5
3637 if eval "test \"\${lt_cv_prog_gnu_ld+set}\" = set"; then
3638 echo $ac_n "(cached) $ac_c" 1>&6
3640 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3641 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3642 lt_cv_prog_gnu_ld=yes
3644 lt_cv_prog_gnu_ld=no
3648 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
3649 with_gnu_ld=$lt_cv_prog_gnu_ld
3652 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
3653 echo "configure:3654: checking for $LD option to reload object files" >&5
3654 if eval "test \"\${lt_cv_ld_reload_flag+set}\" = set"; then
3655 echo $ac_n "(cached) $ac_c" 1>&6
3657 lt_cv_ld_reload_flag='-r'
3660 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
3661 reload_flag=$lt_cv_ld_reload_flag
3662 test -n "$reload_flag" && reload_flag=" $reload_flag"
3664 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
3665 echo "configure:3666: checking for BSD-compatible nm" >&5
3666 if eval "test \"\${lt_cv_path_NM+set}\" = set"; then
3667 echo $ac_n "(cached) $ac_c" 1>&6
3669 if test -n "$NM"; then
3670 # Let the user override the test.
3673 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3674 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3675 test -z "$ac_dir" && ac_dir=.
3676 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3677 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3678 # Check to see if the nm accepts a BSD-compat flag.
3679 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3680 # nm: unknown option "B" ignored
3681 # Tru64's nm complains that /dev/null is an invalid object file
3682 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3683 lt_cv_path_NM="$tmp_nm -B"
3685 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3686 lt_cv_path_NM="$tmp_nm -p"
3689 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3690 continue # so that we can try to find one that supports BSD flags
3695 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3700 echo "$ac_t""$NM" 1>&6
3702 echo $ac_n "checking for a sed that does not truncate output""... $ac_c" 1>&6
3703 echo "configure:3704: checking for a sed that does not truncate output" >&5
3704 if eval "test \"\${lt_cv_path_SED+set}\" = set"; then
3705 echo $ac_n "(cached) $ac_c" 1>&6
3707 # Loop through the user's path and test for sed and gsed.
3708 # Then use that list of sed's as ones to test for truncation.
3709 as_executable_p="test -f"
3710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3714 test -z "$as_dir" && as_dir=.
3715 for ac_prog in sed gsed; do
3716 for ac_exec_ext in '' $ac_executable_extensions; do
3717 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3718 _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3724 # Create a temporary directory, and hook for its removal unless debugging.
3727 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3728 trap '{ (exit 1); exit 1; }' 1 2 13 15
3731 # Create a (secure) tmp directory for tmp files.
3734 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3735 test -n "$tmp" && test -d "$tmp"
3738 tmp=$TMPDIR/sed$$-$RANDOM
3739 (umask 077 && mkdir $tmp)
3742 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3743 { (exit 1); exit 1; }
3747 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3748 # along with /bin/sed that truncates output.
3749 for _sed in $_sed_list /usr/xpg4/bin/sed; do
3750 test ! -f ${_sed} && break
3751 cat /dev/null > "$tmp/sed.in"
3753 echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
3754 # Check for GNU sed and select it if it is found.
3755 if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
3756 lt_cv_path_SED=${_sed}
3760 cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3761 mv "$tmp/sed.tmp" "$tmp/sed.in"
3762 cp "$tmp/sed.in" "$tmp/sed.nl"
3763 echo >>"$tmp/sed.nl"
3764 ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
3765 cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
3766 # 40000 chars as input seems more than enough
3767 test $_count -gt 10 && break
3768 _count=`expr $_count + 1`
3769 if test $_count -gt $_max; then
3771 lt_cv_path_SED=$_sed
3779 if test "X$SED" != "X"; then
3784 echo "$ac_t""$SED" 1>&6
3786 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3787 echo "configure:3788: checking whether ln -s works" >&5
3788 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3789 echo $ac_n "(cached) $ac_c" 1>&6
3792 if ln -s X conftestdata 2>/dev/null
3795 ac_cv_prog_LN_S="ln -s"
3800 LN_S="$ac_cv_prog_LN_S"
3801 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3802 echo "$ac_t""yes" 1>&6
3804 echo "$ac_t""no" 1>&6
3807 echo $ac_n "checking how to recognise dependent libraries""... $ac_c" 1>&6
3808 echo "configure:3809: checking how to recognise dependent libraries" >&5
3809 if eval "test \"\${lt_cv_deplibs_check_method+set}\" = set"; then
3810 echo $ac_n "(cached) $ac_c" 1>&6
3812 lt_cv_file_magic_cmd='$MAGIC_CMD'
3813 lt_cv_file_magic_test_file=
3814 lt_cv_deplibs_check_method='unknown'
3815 # Need to set the preceding variable on all platforms that support
3816 # interlibrary dependencies.
3817 # 'none' -- dependencies not supported.
3818 # `unknown' -- same as none, but documents that we really don't know.
3819 # 'pass_all' -- all dependencies passed with no checks.
3820 # 'test_compile' -- check by making test program.
3821 # 'file_magic [[regex]]' -- check by looking for files in library path
3822 # which responds to the $file_magic_cmd with a given egrep regex.
3823 # If you have `file' or equivalent on your system and you're not sure
3824 # whether `pass_all' will *always* work, you probably want this one.
3828 lt_cv_deplibs_check_method=pass_all
3832 lt_cv_deplibs_check_method=pass_all
3836 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3837 lt_cv_file_magic_cmd='/usr/bin/file -L'
3838 lt_cv_file_magic_test_file=/shlib/libc.so
3841 cygwin* | mingw* | pw32*)
3842 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3843 lt_cv_file_magic_cmd='$OBJDUMP -f'
3846 darwin* | rhapsody*)
3847 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3848 lt_cv_file_magic_cmd='/usr/bin/file -L'
3850 rhapsody* | darwin1.[012])
3851 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3854 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3860 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3863 # Not sure whether the presence of OpenBSD here was a mistake.
3864 # Let's accept both of them until this is cleared up.
3865 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3866 lt_cv_file_magic_cmd=/usr/bin/file
3867 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3871 lt_cv_deplibs_check_method=pass_all
3876 lt_cv_deplibs_check_method=pass_all
3880 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3881 lt_cv_file_magic_cmd=/usr/bin/file
3882 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3885 irix5* | irix6* | nonstopux*)
3887 irix5* | nonstopux*)
3888 # this will be overridden with pass_all, but let us keep it just in case
3889 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3893 *-32|*"-32 ") libmagic=32-bit;;
3894 *-n32|*"-n32 ") libmagic=N32;;
3895 *-64|*"-64 ") libmagic=64-bit;;
3896 *) libmagic=never-match;;
3898 # this will be overridden with pass_all, but let us keep it just in case
3899 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3902 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3903 lt_cv_deplibs_check_method=pass_all
3906 # This must be Linux ELF.
3909 alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64*)
3910 lt_cv_deplibs_check_method=pass_all ;;
3912 # glibc up to 2.1.1 does not perform some relocations on ARM
3913 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3915 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3919 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3920 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3922 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3927 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3928 lt_cv_file_magic_cmd=/usr/bin/file
3929 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3933 lt_cv_file_magic_cmd=/usr/bin/file
3934 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3935 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3936 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3938 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3943 lt_cv_deplibs_check_method=pass_all
3946 osf3* | osf4* | osf5*)
3947 # this will be overridden with pass_all, but let us keep it just in case
3948 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3949 lt_cv_file_magic_test_file=/shlib/libc.so
3950 lt_cv_deplibs_check_method=pass_all
3954 lt_cv_deplibs_check_method=pass_all
3958 lt_cv_deplibs_check_method=pass_all
3959 lt_cv_file_magic_test_file=/lib/libc.so
3962 sysv5uw[78]* | sysv4*uw2*)
3963 lt_cv_deplibs_check_method=pass_all
3966 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3967 case $host_vendor in
3969 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]'
3970 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3973 lt_cv_deplibs_check_method=pass_all
3976 lt_cv_file_magic_cmd='/bin/file'
3977 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3980 lt_cv_file_magic_cmd='/bin/file'
3981 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3982 lt_cv_file_magic_test_file=/lib/libc.so
3985 lt_cv_deplibs_check_method=pass_all
3993 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
3994 file_magic_cmd=$lt_cv_file_magic_cmd
3995 deplibs_check_method=$lt_cv_deplibs_check_method
3997 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
3998 echo "configure:3999: checking for object suffix" >&5
3999 if eval "test \"\${ac_cv_objext+set}\" = set"; then
4000 echo $ac_n "(cached) $ac_c" 1>&6
4003 echo 'int i = 1;' > conftest.$ac_ext
4004 if { (eval echo configure:4005: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4005 for ac_file in conftest.*; do
4008 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
4012 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
4017 echo "$ac_t""$ac_cv_objext" 1>&6
4018 OBJEXT=$ac_cv_objext
4019 ac_objext=$ac_cv_objext
4024 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
4025 echo "configure:4026: checking for executable suffix" >&5
4026 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
4027 echo $ac_n "(cached) $ac_c" 1>&6
4029 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
4033 echo 'int main () { return 0; }' > conftest.$ac_ext
4035 if { (eval echo configure:4036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
4036 for file in conftest.*; do
4038 *.c | *.C | *.o | *.obj | *.xcoff) ;;
4039 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
4043 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
4046 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
4051 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
4052 echo "$ac_t""${ac_cv_exeext}" 1>&6
4055 if test $host != $build; then
4056 ac_tool_prefix=${host_alias}-
4064 # Check for command to grab the raw symbol name followed by C symbol from nm.
4065 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
4066 echo "configure:4067: checking command to parse $NM output" >&5
4067 if eval "test \"\${lt_cv_sys_global_symbol_pipe+set}\" = set"; then
4068 echo $ac_n "(cached) $ac_c" 1>&6
4071 # These are sane defaults that work on at least a few old systems.
4072 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4074 # Character class describing NM global symbol codes.
4075 symcode='[BCDEGRST]'
4077 # Regexp to match symbols that can be accessed directly from C.
4078 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4080 # Transform the above into a raw symbol and a C symbol.
4081 symxfrm='\1 \2\3 \3'
4083 # Transform an extracted symbol line into a proper C declaration
4084 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
4086 # Transform an extracted symbol line into symbol name and symbol address
4087 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'"
4089 # Define system-specific variables.
4094 cygwin* | mingw* | pw32*)
4095 symcode='[ABCDGISTW]'
4097 hpux*) # Its linker distinguishes data from code symbols
4098 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4099 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'"
4102 symcode='[BCDEGRST]'
4105 symcode='[BCDEGQRST]'
4115 # Handle CRLF in mingw tool chain
4119 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4123 # If we're using GNU nm, then use its standard symbol codes.
4124 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
4125 symcode='[ABCDGISTW]'
4128 # Try without a prefix undercore, then with it.
4129 for ac_symprfx in "" "_"; do
4131 # Write the raw and C identifiers.
4132 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4134 # Check to see that the pipe works correctly.
4137 cat > conftest.$ac_ext <<EOF
4142 void nm_test_func(){}
4146 int main(){nm_test_var='a';nm_test_func();return(0);}
4149 if { (eval echo configure:4150: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4150 # Now try to grab the symbols.
4152 if { (eval echo configure:4153: \"$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
4153 # Try sorting and uniquifying the output.
4154 if sort "$nlist" | uniq > "$nlist"T; then
4155 mv -f "$nlist"T "$nlist"
4160 # Make sure that we snagged all the symbols we need.
4161 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4162 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4163 cat <<EOF > conftest.$ac_ext
4169 # Now generate the symbol file.
4170 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4172 cat <<EOF >> conftest.$ac_ext
4173 #if defined (__STDC__) && __STDC__
4174 # define lt_ptr void *
4176 # define lt_ptr char *
4180 /* The mapping between symbol names and symbols. */
4185 lt_preloaded_symbols[] =
4188 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4189 cat <<\EOF >> conftest.$ac_ext
4197 # Now try linking the two files.
4198 mv conftest.$ac_objext conftstm.$ac_objext
4200 save_CFLAGS="$CFLAGS"
4201 LIBS="conftstm.$ac_objext"
4202 CFLAGS="$CFLAGS$no_builtin_flag"
4203 if { (eval echo configure:4204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
4207 CFLAGS="$save_CFLAGS"
4209 echo "cannot find nm_test_func in $nlist" >&5
4212 echo "cannot find nm_test_var in $nlist" >&5
4215 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4218 echo "$progname: failed program was:" >&5
4219 cat conftest.$ac_ext >&5
4221 rm -f conftest* conftst*
4223 # Do not use the global_symbol_pipe unless it works.
4224 if test "$pipe_works" = yes; then
4227 lt_cv_sys_global_symbol_pipe=
4233 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4234 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4235 global_symbol_to_cdecl=
4236 global_symbol_to_c_name_address=
4238 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4239 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4241 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4243 echo "$ac_t""failed" 1>&6
4245 echo "$ac_t""ok" 1>&6
4248 for ac_hdr in dlfcn.h
4250 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4251 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4252 echo "configure:4253: checking for $ac_hdr" >&5
4253 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4254 echo $ac_n "(cached) $ac_c" 1>&6
4256 cat > conftest.$ac_ext <<EOF
4257 #line 4258 "configure"
4258 #include "confdefs.h"
4261 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4262 { (eval echo configure:4263: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4263 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4264 if test -z "$ac_err"; then
4266 eval "ac_cv_header_$ac_safe=yes"
4269 echo "configure: failed program was:" >&5
4270 cat conftest.$ac_ext >&5
4272 eval "ac_cv_header_$ac_safe=no"
4276 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4277 echo "$ac_t""yes" 1>&6
4278 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4279 cat >> confdefs.h <<EOF
4280 #define $ac_tr_hdr 1
4284 echo "$ac_t""no" 1>&6
4293 # Only perform the check for file, if the check method requires it
4294 case $deplibs_check_method in
4296 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4297 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
4298 echo "configure:4299: checking for ${ac_tool_prefix}file" >&5
4299 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
4300 echo $ac_n "(cached) $ac_c" 1>&6
4304 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4307 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4310 ac_save_MAGIC_CMD="$MAGIC_CMD"
4311 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4312 ac_dummy="/usr/bin:$PATH"
4313 for ac_dir in $ac_dummy; do
4314 test -z "$ac_dir" && ac_dir=.
4315 if test -f $ac_dir/${ac_tool_prefix}file; then
4316 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4317 if test -n "$file_magic_test_file"; then
4318 case $deplibs_check_method in
4320 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4321 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4322 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4323 egrep "$file_magic_regex" > /dev/null; then
4328 *** Warning: the command libtool uses to detect shared libraries,
4329 *** $file_magic_cmd, produces output that libtool cannot recognize.
4330 *** The result is that libtool may fail to recognize shared libraries
4331 *** as such. This will affect the creation of libtool libraries that
4332 *** depend on shared libraries, but programs linked with such libtool
4333 *** libraries will work regardless of this problem. Nevertheless, you
4334 *** may want to report the problem to your system manager and/or to
4335 *** bug-libtool@gnu.org
4345 MAGIC_CMD="$ac_save_MAGIC_CMD"
4350 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4351 if test -n "$MAGIC_CMD"; then
4352 echo "$ac_t""$MAGIC_CMD" 1>&6
4354 echo "$ac_t""no" 1>&6
4357 if test -z "$lt_cv_path_MAGIC_CMD"; then
4358 if test -n "$ac_tool_prefix"; then
4359 echo $ac_n "checking for file""... $ac_c" 1>&6
4360 echo "configure:4361: checking for file" >&5
4361 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
4362 echo $ac_n "(cached) $ac_c" 1>&6
4366 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4369 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4372 ac_save_MAGIC_CMD="$MAGIC_CMD"
4373 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4374 ac_dummy="/usr/bin:$PATH"
4375 for ac_dir in $ac_dummy; do
4376 test -z "$ac_dir" && ac_dir=.
4377 if test -f $ac_dir/file; then
4378 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4379 if test -n "$file_magic_test_file"; then
4380 case $deplibs_check_method in
4382 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4383 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4384 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4385 egrep "$file_magic_regex" > /dev/null; then
4390 *** Warning: the command libtool uses to detect shared libraries,
4391 *** $file_magic_cmd, produces output that libtool cannot recognize.
4392 *** The result is that libtool may fail to recognize shared libraries
4393 *** as such. This will affect the creation of libtool libraries that
4394 *** depend on shared libraries, but programs linked with such libtool
4395 *** libraries will work regardless of this problem. Nevertheless, you
4396 *** may want to report the problem to your system manager and/or to
4397 *** bug-libtool@gnu.org
4407 MAGIC_CMD="$ac_save_MAGIC_CMD"
4412 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4413 if test -n "$MAGIC_CMD"; then
4414 echo "$ac_t""$MAGIC_CMD" 1>&6
4416 echo "$ac_t""no" 1>&6
4428 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4429 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4430 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4431 echo "configure:4432: checking for $ac_word" >&5
4432 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
4433 echo $ac_n "(cached) $ac_c" 1>&6
4435 if test -n "$RANLIB"; then
4436 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4438 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4440 for ac_dir in $ac_dummy; do
4441 test -z "$ac_dir" && ac_dir=.
4442 if test -f $ac_dir/$ac_word; then
4443 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4450 RANLIB="$ac_cv_prog_RANLIB"
4451 if test -n "$RANLIB"; then
4452 echo "$ac_t""$RANLIB" 1>&6
4454 echo "$ac_t""no" 1>&6
4458 if test -z "$ac_cv_prog_RANLIB"; then
4459 if test -n "$ac_tool_prefix"; then
4460 # Extract the first word of "ranlib", so it can be a program name with args.
4461 set dummy ranlib; ac_word=$2
4462 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4463 echo "configure:4464: checking for $ac_word" >&5
4464 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
4465 echo $ac_n "(cached) $ac_c" 1>&6
4467 if test -n "$RANLIB"; then
4468 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4470 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4472 for ac_dir in $ac_dummy; do
4473 test -z "$ac_dir" && ac_dir=.
4474 if test -f $ac_dir/$ac_word; then
4475 ac_cv_prog_RANLIB="ranlib"
4480 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
4483 RANLIB="$ac_cv_prog_RANLIB"
4484 if test -n "$RANLIB"; then
4485 echo "$ac_t""$RANLIB" 1>&6
4487 echo "$ac_t""no" 1>&6
4495 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4496 set dummy ${ac_tool_prefix}strip; ac_word=$2
4497 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4498 echo "configure:4499: checking for $ac_word" >&5
4499 if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then
4500 echo $ac_n "(cached) $ac_c" 1>&6
4502 if test -n "$STRIP"; then
4503 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4505 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4507 for ac_dir in $ac_dummy; do
4508 test -z "$ac_dir" && ac_dir=.
4509 if test -f $ac_dir/$ac_word; then
4510 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4517 STRIP="$ac_cv_prog_STRIP"
4518 if test -n "$STRIP"; then
4519 echo "$ac_t""$STRIP" 1>&6
4521 echo "$ac_t""no" 1>&6
4525 if test -z "$ac_cv_prog_STRIP"; then
4526 if test -n "$ac_tool_prefix"; then
4527 # Extract the first word of "strip", so it can be a program name with args.
4528 set dummy strip; ac_word=$2
4529 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4530 echo "configure:4531: checking for $ac_word" >&5
4531 if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then
4532 echo $ac_n "(cached) $ac_c" 1>&6
4534 if test -n "$STRIP"; then
4535 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4537 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4539 for ac_dir in $ac_dummy; do
4540 test -z "$ac_dir" && ac_dir=.
4541 if test -f $ac_dir/$ac_word; then
4542 ac_cv_prog_STRIP="strip"
4547 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
4550 STRIP="$ac_cv_prog_STRIP"
4551 if test -n "$STRIP"; then
4552 echo "$ac_t""$STRIP" 1>&6
4554 echo "$ac_t""no" 1>&6
4564 enable_win32_dll=yes
4566 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4567 if test "${enable_libtool_lock+set}" = set; then
4568 enableval="$enable_libtool_lock"
4572 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4574 # Some flags need to be propagated to the compiler or linker for good
4578 # Find out which ABI we are using.
4579 echo '#line 4580 "configure"' > conftest.$ac_ext
4580 if { (eval echo configure:4581: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4581 case `/usr/bin/file conftest.$ac_objext` in
4597 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4598 SAVE_CFLAGS="$CFLAGS"
4599 CFLAGS="$CFLAGS -belf"
4600 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
4601 echo "configure:4602: checking whether the C compiler needs -belf" >&5
4602 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
4603 echo $ac_n "(cached) $ac_c" 1>&6
4607 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4608 ac_cpp='$CPP $CPPFLAGS'
4609 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4610 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4611 cross_compiling=$ac_cv_prog_cc_cross
4613 cat > conftest.$ac_ext <<EOF
4614 #line 4615 "configure"
4615 #include "confdefs.h"
4621 if { (eval echo configure:4622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4623 lt_cv_cc_needs_belf=yes
4625 echo "configure: failed program was:" >&5
4626 cat conftest.$ac_ext >&5
4628 lt_cv_cc_needs_belf=no
4632 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4633 ac_cpp='$CPP $CPPFLAGS'
4634 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4635 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4636 cross_compiling=$ac_cv_prog_cc_cross
4640 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
4641 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4642 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4643 CFLAGS="$SAVE_CFLAGS"
4647 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4648 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4649 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4650 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4651 echo "configure:4652: checking for $ac_word" >&5
4652 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
4653 echo $ac_n "(cached) $ac_c" 1>&6
4655 if test -n "$DLLTOOL"; then
4656 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4658 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4660 for ac_dir in $ac_dummy; do
4661 test -z "$ac_dir" && ac_dir=.
4662 if test -f $ac_dir/$ac_word; then
4663 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4670 DLLTOOL="$ac_cv_prog_DLLTOOL"
4671 if test -n "$DLLTOOL"; then
4672 echo "$ac_t""$DLLTOOL" 1>&6
4674 echo "$ac_t""no" 1>&6
4678 if test -z "$ac_cv_prog_DLLTOOL"; then
4679 if test -n "$ac_tool_prefix"; then
4680 # Extract the first word of "dlltool", so it can be a program name with args.
4681 set dummy dlltool; ac_word=$2
4682 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4683 echo "configure:4684: checking for $ac_word" >&5
4684 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
4685 echo $ac_n "(cached) $ac_c" 1>&6
4687 if test -n "$DLLTOOL"; then
4688 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4690 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4692 for ac_dir in $ac_dummy; do
4693 test -z "$ac_dir" && ac_dir=.
4694 if test -f $ac_dir/$ac_word; then
4695 ac_cv_prog_DLLTOOL="dlltool"
4700 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
4703 DLLTOOL="$ac_cv_prog_DLLTOOL"
4704 if test -n "$DLLTOOL"; then
4705 echo "$ac_t""$DLLTOOL" 1>&6
4707 echo "$ac_t""no" 1>&6
4715 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4716 set dummy ${ac_tool_prefix}as; ac_word=$2
4717 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4718 echo "configure:4719: checking for $ac_word" >&5
4719 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
4720 echo $ac_n "(cached) $ac_c" 1>&6
4722 if test -n "$AS"; then
4723 ac_cv_prog_AS="$AS" # Let the user override the test.
4725 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4727 for ac_dir in $ac_dummy; do
4728 test -z "$ac_dir" && ac_dir=.
4729 if test -f $ac_dir/$ac_word; then
4730 ac_cv_prog_AS="${ac_tool_prefix}as"
4738 if test -n "$AS"; then
4739 echo "$ac_t""$AS" 1>&6
4741 echo "$ac_t""no" 1>&6
4745 if test -z "$ac_cv_prog_AS"; then
4746 if test -n "$ac_tool_prefix"; then
4747 # Extract the first word of "as", so it can be a program name with args.
4748 set dummy as; ac_word=$2
4749 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4750 echo "configure:4751: checking for $ac_word" >&5
4751 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
4752 echo $ac_n "(cached) $ac_c" 1>&6
4754 if test -n "$AS"; then
4755 ac_cv_prog_AS="$AS" # Let the user override the test.
4757 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4759 for ac_dir in $ac_dummy; do
4760 test -z "$ac_dir" && ac_dir=.
4761 if test -f $ac_dir/$ac_word; then
4767 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
4771 if test -n "$AS"; then
4772 echo "$ac_t""$AS" 1>&6
4774 echo "$ac_t""no" 1>&6
4782 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4783 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4784 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4785 echo "configure:4786: checking for $ac_word" >&5
4786 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
4787 echo $ac_n "(cached) $ac_c" 1>&6
4789 if test -n "$OBJDUMP"; then
4790 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4792 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4794 for ac_dir in $ac_dummy; do
4795 test -z "$ac_dir" && ac_dir=.
4796 if test -f $ac_dir/$ac_word; then
4797 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4804 OBJDUMP="$ac_cv_prog_OBJDUMP"
4805 if test -n "$OBJDUMP"; then
4806 echo "$ac_t""$OBJDUMP" 1>&6
4808 echo "$ac_t""no" 1>&6
4812 if test -z "$ac_cv_prog_OBJDUMP"; then
4813 if test -n "$ac_tool_prefix"; then
4814 # Extract the first word of "objdump", so it can be a program name with args.
4815 set dummy objdump; ac_word=$2
4816 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4817 echo "configure:4818: checking for $ac_word" >&5
4818 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
4819 echo $ac_n "(cached) $ac_c" 1>&6
4821 if test -n "$OBJDUMP"; then
4822 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4824 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4826 for ac_dir in $ac_dummy; do
4827 test -z "$ac_dir" && ac_dir=.
4828 if test -f $ac_dir/$ac_word; then
4829 ac_cv_prog_OBJDUMP="objdump"
4834 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
4837 OBJDUMP="$ac_cv_prog_OBJDUMP"
4838 if test -n "$OBJDUMP"; then
4839 echo "$ac_t""$OBJDUMP" 1>&6
4841 echo "$ac_t""no" 1>&6
4850 # recent cygwin and mingw systems supply a stub DllMain which the user
4851 # can override, but on older systems we have to supply one
4852 echo $ac_n "checking if libtool should supply DllMain function""... $ac_c" 1>&6
4853 echo "configure:4854: checking if libtool should supply DllMain function" >&5
4854 if eval "test \"\${lt_cv_need_dllmain+set}\" = set"; then
4855 echo $ac_n "(cached) $ac_c" 1>&6
4857 cat > conftest.$ac_ext <<EOF
4858 #line 4859 "configure"
4859 #include "confdefs.h"
4862 extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
4866 if { (eval echo configure:4867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4868 lt_cv_need_dllmain=no
4870 echo "configure: failed program was:" >&5
4871 cat conftest.$ac_ext >&5
4873 lt_cv_need_dllmain=yes
4878 echo "$ac_t""$lt_cv_need_dllmain" 1>&6
4881 *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
4882 # old mingw systems require "-dll" to link a DLL, while more recent ones
4884 SAVE_CFLAGS="$CFLAGS"
4885 CFLAGS="$CFLAGS -mdll"
4886 echo $ac_n "checking how to link DLLs""... $ac_c" 1>&6
4887 echo "configure:4888: checking how to link DLLs" >&5
4888 if eval "test \"\${lt_cv_cc_dll_switch+set}\" = set"; then
4889 echo $ac_n "(cached) $ac_c" 1>&6
4891 cat > conftest.$ac_ext <<EOF
4892 #line 4893 "configure"
4893 #include "confdefs.h"
4899 if { (eval echo configure:4900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4901 lt_cv_cc_dll_switch=-mdll
4903 echo "configure: failed program was:" >&5
4904 cat conftest.$ac_ext >&5
4906 lt_cv_cc_dll_switch=-dll
4911 echo "$ac_t""$lt_cv_cc_dll_switch" 1>&6
4912 CFLAGS="$SAVE_CFLAGS" ;;
4913 *-*-cygwin* | *-*-pw32*)
4914 # cygwin systems need to pass --dll to the linker, and not link
4915 # crt.o which will require a WinMain@16 definition.
4916 lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
4922 # Sed substitution that helps us do robust quoting. It backslashifies
4923 # metacharacters that are still active within double-quoted strings.
4924 Xsed='sed -e s/^X//'
4925 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4927 # Same as above, but do not quote variable references.
4928 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4930 # Sed substitution to delay expansion of an escaped shell variable in a
4931 # double_quote_subst'ed string.
4932 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4938 default_ofile=libtool
4939 can_build_shared=yes
4941 # All known linkers require a `.a' archive for static linking (except M$VC,
4942 # which needs '.lib').
4944 ltmain="$ac_aux_dir/ltmain.sh"
4945 ofile="$default_ofile"
4946 with_gnu_ld="$lt_cv_prog_gnu_ld"
4947 need_locks="$enable_libtool_lock"
4950 old_CFLAGS="$CFLAGS"
4952 # Set sane defaults for various variables
4953 test -z "$AR" && AR=ar
4954 test -z "$AR_FLAGS" && AR_FLAGS=cru
4955 test -z "$AS" && AS=as
4956 test -z "$CC" && CC=cc
4957 test -z "$DLLTOOL" && DLLTOOL=dlltool
4958 test -z "$LD" && LD=ld
4959 test -z "$LN_S" && LN_S="ln -s"
4960 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4961 test -z "$NM" && NM=nm
4962 test -z "$OBJDUMP" && OBJDUMP=objdump
4963 test -z "$RANLIB" && RANLIB=:
4964 test -z "$STRIP" && STRIP=:
4965 test -z "$ac_objext" && ac_objext=o
4967 if test x"$host" != x"$build"; then
4968 ac_tool_prefix=${host_alias}-
4973 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4976 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4981 # AIX sometimes has problems with the GCC collect2 program. For some
4982 # reason, if we set the COLLECT_NAMES environment variable, the problems
4983 # vanish in a puff of smoke.
4984 if test "X${COLLECT_NAMES+set}" != Xset; then
4986 export COLLECT_NAMES
4991 # Determine commands to create old-style static archives.
4992 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4993 old_postinstall_cmds='chmod 644 $oldlib'
4994 old_postuninstall_cmds=
4996 if test -n "$RANLIB"; then
4999 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5002 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5005 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5008 # Allow CC to be a program name with arguments.
5012 echo $ac_n "checking for objdir""... $ac_c" 1>&6
5013 echo "configure:5014: checking for objdir" >&5
5014 rm -f .libs 2>/dev/null
5015 mkdir .libs 2>/dev/null
5016 if test -d .libs; then
5019 # MS-DOS does not allow filenames that begin with a dot.
5022 rmdir .libs 2>/dev/null
5023 echo "$ac_t""$objdir" 1>&6
5026 # Check whether --with-pic or --without-pic was given.
5027 if test "${with_pic+set}" = set; then
5034 test -z "$pic_mode" && pic_mode=default
5036 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
5037 # in isolation, and that seeing it set (from the cache) indicates that
5038 # the associated values are set (in the cache) correctly too.
5039 echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6
5040 echo "configure:5041: checking for $compiler option to produce PIC" >&5
5041 if eval "test \"\${lt_cv_prog_cc_pic+set}\" = set"; then
5042 echo $ac_n "(cached) $ac_c" 1>&6
5045 lt_cv_prog_cc_shlib=
5047 lt_cv_prog_cc_static=
5048 lt_cv_prog_cc_no_builtin=
5049 lt_cv_prog_cc_can_build_shared=$can_build_shared
5051 if test "$GCC" = yes; then
5052 lt_cv_prog_cc_wl='-Wl,'
5053 lt_cv_prog_cc_static='-static'
5057 # Below there is a dirty hack to force normal static linking with -ldl
5058 # The problem is because libdl dynamically linked with both libc and
5059 # libC (AIX C++ library), which obviously doesn't included in libraries
5060 # list by gcc. This cause undefined symbols with -static flags.
5061 # This hack allows C programs to be linked with "-static -ldl", but
5062 # not sure about C++ programs.
5063 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5066 # FIXME: we need at least 68020 code to build shared libraries, but
5067 # adding the `-m68020' flag to GCC prevents building anything better,
5069 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5071 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5072 # PIC is the default for these OSes.
5074 darwin* | rhapsody*)
5075 # PIC is the default on this platform
5076 # Common symbols not allowed in MH_DYLIB files
5077 lt_cv_prog_cc_pic='-fno-common'
5079 cygwin* | mingw* | pw32* | os2*)
5080 # This hack is so that the source file can tell whether it is being
5081 # built for inclusion in a dll (and should export symbols for example).
5082 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5085 if test -d /usr/nec; then
5086 lt_cv_prog_cc_pic=-Kconform_pic
5090 lt_cv_prog_cc_pic='-fPIC'
5094 # PORTME Check for PIC flags for the system compiler.
5096 aix3* | aix4* | aix5*)
5097 lt_cv_prog_cc_wl='-Wl,'
5098 # All AIX code is PIC.
5099 if test "$host_cpu" = ia64; then
5100 # AIX 5 now supports IA64 processor
5101 lt_cv_prog_cc_static='-Bstatic'
5103 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5107 hpux9* | hpux10* | hpux11*)
5108 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5109 lt_cv_prog_cc_wl='-Wl,'
5110 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5111 lt_cv_prog_cc_pic='+Z'
5114 irix5* | irix6* | nonstopux*)
5115 lt_cv_prog_cc_wl='-Wl,'
5116 lt_cv_prog_cc_static='-non_shared'
5117 # PIC (with -KPIC) is the default.
5120 cygwin* | mingw* | pw32* | os2*)
5121 # This hack is so that the source file can tell whether it is being
5122 # built for inclusion in a dll (and should export symbols for example).
5123 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5127 lt_cv_prog_cc_pic='-KPIC'
5128 lt_cv_prog_cc_static='-Bstatic'
5132 # XPLINK code is PIC by default
5135 osf3* | osf4* | osf5*)
5136 # All OSF/1 code is PIC.
5137 lt_cv_prog_cc_wl='-Wl,'
5138 lt_cv_prog_cc_static='-non_shared'
5142 lt_cv_prog_cc_pic='-Kpic'
5143 lt_cv_prog_cc_static='-dn'
5144 lt_cv_prog_cc_shlib='-belf'
5148 lt_cv_prog_cc_pic='-KPIC'
5149 lt_cv_prog_cc_static='-Bstatic'
5150 lt_cv_prog_cc_wl='-Wl,'
5154 lt_cv_prog_cc_pic='-PIC'
5155 lt_cv_prog_cc_static='-Bstatic'
5156 lt_cv_prog_cc_wl='-Qoption ld '
5159 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5160 lt_cv_prog_cc_pic='-KPIC'
5161 lt_cv_prog_cc_static='-Bstatic'
5162 lt_cv_prog_cc_wl='-Wl,'
5166 lt_cv_prog_cc_pic='-pic'
5167 lt_cv_prog_cc_static='-Bstatic'
5171 if test -d /usr/nec ;then
5172 lt_cv_prog_cc_pic='-Kconform_pic'
5173 lt_cv_prog_cc_static='-Bstatic'
5178 lt_cv_prog_cc_can_build_shared=no
5185 if test -z "$lt_cv_prog_cc_pic"; then
5186 echo "$ac_t""none" 1>&6
5188 echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6
5190 # Check to make sure the pic_flag actually works.
5191 echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6
5192 echo "configure:5193: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5193 if eval "test \"\${lt_cv_prog_cc_pic_works+set}\" = set"; then
5194 echo $ac_n "(cached) $ac_c" 1>&6
5196 save_CFLAGS="$CFLAGS"
5197 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5198 cat > conftest.$ac_ext <<EOF
5199 #line 5200 "configure"
5200 #include "confdefs.h"
5206 if { (eval echo configure:5207: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5209 hpux9* | hpux10* | hpux11*)
5210 # On HP-UX, both CC and GCC only warn that PIC is supported... then
5211 # they create non-PIC objects. So, if there were any warnings, we
5212 # assume that PIC is not supported.
5213 if test -s conftest.err; then
5214 lt_cv_prog_cc_pic_works=no
5216 lt_cv_prog_cc_pic_works=yes
5220 lt_cv_prog_cc_pic_works=yes
5225 echo "configure: failed program was:" >&5
5226 cat conftest.$ac_ext >&5
5228 lt_cv_prog_cc_pic_works=no
5232 CFLAGS="$save_CFLAGS"
5237 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5239 lt_cv_prog_cc_can_build_shared=no
5241 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5244 echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6
5247 # Check for any special shared library compilation flags.
5248 if test -n "$lt_cv_prog_cc_shlib"; then
5249 echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2
5250 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5252 echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2
5253 lt_cv_prog_cc_can_build_shared=no
5257 echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6
5258 echo "configure:5259: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5259 if eval "test \"\${lt_cv_prog_cc_static_works+set}\" = set"; then
5260 echo $ac_n "(cached) $ac_c" 1>&6
5262 lt_cv_prog_cc_static_works=no
5263 save_LDFLAGS="$LDFLAGS"
5264 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5265 cat > conftest.$ac_ext <<EOF
5266 #line 5267 "configure"
5267 #include "confdefs.h"
5273 if { (eval echo configure:5274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5275 lt_cv_prog_cc_static_works=yes
5277 echo "configure: failed program was:" >&5
5278 cat conftest.$ac_ext >&5
5281 LDFLAGS="$save_LDFLAGS"
5286 # Belt *and* braces to stop my trousers falling down:
5287 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5288 echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6
5290 pic_flag="$lt_cv_prog_cc_pic"
5291 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5292 wl="$lt_cv_prog_cc_wl"
5293 link_static_flag="$lt_cv_prog_cc_static"
5294 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5295 can_build_shared="$lt_cv_prog_cc_can_build_shared"
5298 # Check to see if options -o and -c are simultaneously supported by compiler
5299 echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6
5300 echo "configure:5301: checking if $compiler supports -c -o file.$ac_objext" >&5
5301 if eval "test \"\${lt_cv_compiler_c_o+set}\" = set"; then
5302 echo $ac_n "(cached) $ac_c" 1>&6
5305 $rm -r conftest 2>/dev/null
5308 echo "int some_variable = 0;" > conftest.$ac_ext
5310 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5311 # that will create temporary files in the current directory regardless of
5312 # the output directory. Thus, making CWD read-only will cause this test
5313 # to fail, enabling locking or at least warning the user not to do parallel
5316 save_CFLAGS="$CFLAGS"
5317 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5319 if { (eval echo configure:5320: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5320 # The compiler can only warn and ignore the option if not recognized
5321 # So say no if there are warnings
5322 if test -s out/conftest.err; then
5323 lt_cv_compiler_c_o=no
5325 lt_cv_compiler_c_o=yes
5328 # Append any errors to the config.log.
5329 cat out/conftest.err 1>&5
5330 lt_cv_compiler_c_o=no
5332 CFLAGS="$save_CFLAGS"
5338 $rm -r conftest 2>/dev/null
5342 compiler_c_o=$lt_cv_compiler_c_o
5343 echo "$ac_t""$compiler_c_o" 1>&6
5345 if test x"$compiler_c_o" = x"yes"; then
5346 # Check to see if we can write to a .lo
5347 echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6
5348 echo "configure:5349: checking if $compiler supports -c -o file.lo" >&5
5349 if eval "test \"\${lt_cv_compiler_o_lo+set}\" = set"; then
5350 echo $ac_n "(cached) $ac_c" 1>&6
5353 lt_cv_compiler_o_lo=no
5354 save_CFLAGS="$CFLAGS"
5355 CFLAGS="$CFLAGS -c -o conftest.lo"
5356 save_objext="$ac_objext"
5358 cat > conftest.$ac_ext <<EOF
5359 #line 5360 "configure"
5360 #include "confdefs.h"
5363 int some_variable = 0;
5366 if { (eval echo configure:5367: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5368 # The compiler can only warn and ignore the option if not recognized
5369 # So say no if there are warnings
5370 if test -s conftest.err; then
5371 lt_cv_compiler_o_lo=no
5373 lt_cv_compiler_o_lo=yes
5377 echo "configure: failed program was:" >&5
5378 cat conftest.$ac_ext >&5
5381 ac_objext="$save_objext"
5382 CFLAGS="$save_CFLAGS"
5386 compiler_o_lo=$lt_cv_compiler_o_lo
5387 echo "$ac_t""$compiler_o_lo" 1>&6
5392 # Check to see if we can do hard links to lock some files if needed
5393 hard_links="nottested"
5394 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5395 # do not overwrite the value of need_locks provided by the user
5396 echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6
5397 echo "configure:5398: checking if we can lock with hard links" >&5
5400 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5402 ln conftest.a conftest.b 2>&5 || hard_links=no
5403 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5404 echo "$ac_t""$hard_links" 1>&6
5405 if test "$hard_links" = no; then
5406 echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2
5413 if test "$GCC" = yes; then
5414 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5415 echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6
5416 echo "configure:5417: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5417 echo "int some_variable = 0;" > conftest.$ac_ext
5418 save_CFLAGS="$CFLAGS"
5419 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5420 compiler_rtti_exceptions=no
5421 cat > conftest.$ac_ext <<EOF
5422 #line 5423 "configure"
5423 #include "confdefs.h"
5426 int some_variable = 0;
5429 if { (eval echo configure:5430: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5431 # The compiler can only warn and ignore the option if not recognized
5432 # So say no if there are warnings
5433 if test -s conftest.err; then
5434 compiler_rtti_exceptions=no
5436 compiler_rtti_exceptions=yes
5440 echo "configure: failed program was:" >&5
5441 cat conftest.$ac_ext >&5
5444 CFLAGS="$save_CFLAGS"
5445 echo "$ac_t""$compiler_rtti_exceptions" 1>&6
5447 if test "$compiler_rtti_exceptions" = "yes"; then
5448 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5450 no_builtin_flag=' -fno-builtin'
5454 # See if the linker supports building shared libraries.
5455 echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6
5456 echo "configure:5457: checking whether the linker ($LD) supports shared libraries" >&5
5458 allow_undefined_flag=
5460 need_lib_prefix=unknown
5461 need_version=unknown
5462 # when you set need_version to no, make sure it does not cause -set_version
5463 # flags to be left without arguments
5465 archive_expsym_cmds=
5466 old_archive_from_new_cmds=
5467 old_archive_from_expsyms_cmds=
5468 export_dynamic_flag_spec=
5469 whole_archive_flag_spec=
5470 thread_safe_flag_spec=
5471 hardcode_into_libs=no
5472 hardcode_libdir_flag_spec=
5473 hardcode_libdir_separator=
5476 hardcode_shlibpath_var=unsupported
5478 link_all_deplibs=unknown
5479 always_export_symbols=no
5480 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5481 # include_expsyms should be a list of space-separated symbols to be *always*
5482 # included in the symbol list
5484 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5485 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5486 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5487 # as well as any symbol that contains `d'.
5488 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5489 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5490 # platforms (ab)use it in PIC code, but their linkers get confused if
5491 # the symbol is explicitly referenced. Since portable code cannot
5492 # rely on this symbol name, it's probably fine to never include it in
5493 # preloaded symbol tables.
5494 extract_expsyms_cmds=
5497 cygwin* | mingw* | pw32*)
5498 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5499 # When not using gcc, we currently assume that we are using
5500 # Microsoft Visual C++.
5501 if test "$GCC" != yes; then
5511 if test "$with_gnu_ld" = yes; then
5512 # If archive_cmds runs LD, not CC, wlarc should be empty
5515 # See if GNU ld supports shared libraries.
5517 aix3* | aix4* | aix5*)
5518 # On AIX, the GNU linker is very broken
5519 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5523 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5524 *** to be unable to reliably create shared libraries on AIX.
5525 *** Therefore, libtool is disabling shared libraries support. If you
5526 *** really care for shared libraries, you may want to modify your PATH
5527 *** so that a non-GNU linker is found, and then restart.
5533 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)'
5534 hardcode_libdir_flag_spec='-L$libdir'
5535 hardcode_minus_L=yes
5537 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5538 # that the semantics of dynamic libraries on AmigaOS, at least up
5539 # to version 4, is to share data among multiple programs linked
5540 # with the same dynamic library. Since this doesn't match the
5541 # behavior of shared libraries on other platforms, we can use
5547 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5548 allow_undefined_flag=unsupported
5549 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5550 # support --undefined. This deserves some investigation. FIXME
5551 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5557 cygwin* | mingw* | pw32*)
5558 # hardcode_libdir_flag_spec is actually meaningless, as there is
5559 # no search path for DLLs.
5560 hardcode_libdir_flag_spec='-L$libdir'
5561 allow_undefined_flag=unsupported
5562 always_export_symbols=yes
5564 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5565 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5566 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5567 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5568 else $CC -o impgen impgen.c ; fi)~
5569 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5571 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5573 # cygwin and mingw dlls have different entry points and sets of symbols
5575 # FIXME: what about values for MSVC?
5576 dll_entry=__cygwin_dll_entry@12
5577 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5581 dll_entry=_DllMainCRTStartup@12
5582 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5586 # mingw and cygwin differ, and it's simplest to just exclude the union
5587 # of the two symbol sets.
5588 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5590 # recent cygwin and mingw systems supply a stub DllMain which the user
5591 # can override, but on older systems we have to supply one (in ltdll.c)
5592 if test "x$lt_cv_need_dllmain" = "xyes"; then
5593 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5594 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~
5595 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5601 # Extract the symbol export list from an `--export-all' def file,
5602 # then regenerate the def file from the symbol export list, so that
5603 # the compiled dll only exports the symbol export list.
5604 # Be careful not to strip the DATA tag left be newer dlltools.
5605 export_symbols_cmds="$ltdll_cmds"'
5606 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5607 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5609 # If the export-symbols file already is a .def file (1st line
5610 # is EXPORTS), use it as is.
5611 # If DATA tags from a recent dlltool are present, honour them!
5612 archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
5613 cp $export_symbols $output_objdir/$soname-def;
5615 echo EXPORTS > $output_objdir/$soname-def;
5617 cat $export_symbols | while read symbol; do
5620 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5621 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
5622 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5624 _lt_hint=`expr 1 + \$_lt_hint`;
5628 $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~
5629 $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~
5630 $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~
5631 $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~
5632 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5636 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5637 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5640 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5641 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5646 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5650 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5651 *** create shared libraries on Solaris systems. Therefore, libtool
5652 *** is disabling shared libraries support. We urge you to upgrade GNU
5653 *** binutils to release 2.9.1 or newer. Another option is to modify
5654 *** your PATH or compiler configuration so that the native linker is
5655 *** used, and then restart.
5658 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5659 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5660 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5667 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5670 hardcode_shlibpath_var=no
5674 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5675 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5676 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5683 if test "$ld_shlibs" = yes; then
5684 runpath_var=LD_RUN_PATH
5685 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5686 export_dynamic_flag_spec='${wl}--export-dynamic'
5688 cygwin* | mingw* | pw32*)
5689 # dlltool doesn't understand --whole-archive et. al.
5690 whole_archive_flag_spec=
5693 # ancient GNU ld didn't support --whole-archive et. al.
5694 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5695 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5697 whole_archive_flag_spec=
5703 # PORTME fill in a description of your system's linker (not GNU ld)
5706 allow_undefined_flag=unsupported
5707 always_export_symbols=yes
5708 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'
5709 # Note: this linker hardcodes the directories in LIBPATH if there
5710 # are no directories specified by -L.
5711 hardcode_minus_L=yes
5712 if test "$GCC" = yes && test -z "$link_static_flag"; then
5713 # Neither direct hardcoding nor static linking is supported with a
5715 hardcode_direct=unsupported
5720 if test "$host_cpu" = ia64; then
5721 # On IA64, the linker does run time linking by default, so we don't
5722 # have to do anything special.
5723 aix_use_runtimelinking=no
5724 exp_sym_flag='-Bexport'
5727 aix_use_runtimelinking=no
5729 # Test if we are trying to use run time linking or normal
5730 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5731 # need to do runtime linking.
5732 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5733 for ld_flag in $LDFLAGS; do
5736 aix_use_runtimelinking=yes
5743 exp_sym_flag='-bexport'
5744 no_entry_flag='-bnoentry'
5747 # When large executables or shared objects are built, AIX ld can
5748 # have problems creating the table of contents. If linking a library
5749 # or program results in "error TOC overflow" add -mminimal-toc to
5750 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5751 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5755 hardcode_libdir_separator=':'
5756 if test "$GCC" = yes; then
5757 case $host_os in aix4.[012]|aix4.[012].*)
5758 collect2name=`${CC} -print-prog-name=collect2`
5759 if test -f "$collect2name" && \
5760 strings "$collect2name" | grep resolve_lib_name >/dev/null
5762 # We have reworked collect2
5765 # We have old collect2
5766 hardcode_direct=unsupported
5767 # It fails to find uninstalled libraries when the uninstalled
5768 # path is not listed in the libpath. Setting hardcode_minus_L
5769 # to unsupported forces relinking
5770 hardcode_minus_L=yes
5771 hardcode_libdir_flag_spec='-L$libdir'
5772 hardcode_libdir_separator=
5776 shared_flag='-shared'
5779 if test "$host_cpu" = ia64; then
5780 shared_flag='${wl}-G'
5782 if test "$aix_use_runtimelinking" = yes; then
5783 shared_flag='${wl}-G'
5785 shared_flag='${wl}-bM:SRE'
5790 # It seems that -bexpall can do strange things, so it is better to
5791 # generate a list of symbols to export.
5792 always_export_symbols=yes
5793 if test "$aix_use_runtimelinking" = yes; then
5794 # Warning - without using the other runtime loading flags (-brtl),
5795 # -berok will link without error, but may produce a broken library.
5796 allow_undefined_flag='-berok'
5797 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5798 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"
5800 if test "$host_cpu" = ia64; then
5801 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5802 allow_undefined_flag="-z nodefs"
5803 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"
5805 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5806 # Warning - without using the other run time loading flags,
5807 # -berok will link without error, but may produce a broken library.
5808 allow_undefined_flag='${wl}-berok'
5809 # This is a bit strange, but is similar to how AIX traditionally builds
5810 # it's shared libraries.
5811 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'
5817 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)'
5818 hardcode_libdir_flag_spec='-L$libdir'
5819 hardcode_minus_L=yes
5820 # see comment about different semantics on the GNU ld section
5824 cygwin* | mingw* | pw32*)
5825 # When not using gcc, we currently assume that we are using
5826 # Microsoft Visual C++.
5827 # hardcode_libdir_flag_spec is actually meaningless, as there is
5828 # no search path for DLLs.
5829 hardcode_libdir_flag_spec=' '
5830 allow_undefined_flag=unsupported
5831 # Tell ltmain to make .lib files, not .a files.
5833 # FIXME: Setting linknames here is a bad hack.
5834 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5835 # The linker will automatically build a .lib file if we build a DLL.
5836 old_archive_from_new_cmds='true'
5837 # FIXME: Should let the user specify the lib program.
5838 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5839 fix_srcfile_path='`cygpath -w "$srcfile"`'
5842 darwin* | rhapsody*)
5844 rhapsody* | darwin1.[012])
5845 allow_undefined_flag='-undefined suppress'
5848 allow_undefined_flag='-flat_namespace -undefined suppress'
5851 # FIXME: Relying on posixy $() will cause problems for
5852 # cross-compilation, but unfortunately the echo tests do not
5853 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
5854 # `"' quotes if we put them in here... so don't!
5855 archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
5856 # We need to add '_' to the symbols in $export_symbols first
5857 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5859 hardcode_shlibpath_var=no
5860 whole_archive_flag_spec='-all_load $convenience'
5867 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5868 # support. Future versions do this automatically, but an explicit c++rt0.o
5869 # does not break anything, and helps significantly (at the cost of a little
5872 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5873 hardcode_libdir_flag_spec='-R$libdir'
5875 hardcode_shlibpath_var=no
5878 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5880 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5882 hardcode_minus_L=yes
5883 hardcode_shlibpath_var=no
5886 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5888 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5889 hardcode_libdir_flag_spec='-R$libdir'
5891 hardcode_shlibpath_var=no
5894 hpux9* | hpux10* | hpux11*)
5896 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' ;;
5897 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5899 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5900 hardcode_libdir_separator=:
5902 hardcode_minus_L=yes # Not in the search PATH, but as the default
5903 # location of the library.
5904 export_dynamic_flag_spec='${wl}-E'
5907 irix5* | irix6* | nonstopux*)
5908 if test "$GCC" = yes; then
5909 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'
5910 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5912 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'
5913 hardcode_libdir_flag_spec='-rpath $libdir'
5915 hardcode_libdir_separator=:
5916 link_all_deplibs=yes
5920 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5921 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5923 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5925 hardcode_libdir_flag_spec='-R$libdir'
5927 hardcode_shlibpath_var=no
5931 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5933 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5934 hardcode_libdir_separator=:
5935 hardcode_shlibpath_var=no
5940 hardcode_shlibpath_var=no
5941 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5942 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5943 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5944 export_dynamic_flag_spec='${wl}-E'
5947 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5948 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5949 hardcode_libdir_flag_spec='-R$libdir'
5952 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5953 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5960 archive_cmds="\$CC -Wl,DLL \$libobjs \$deplibs \$compiler_flags -o \$lib &&
5961 cp \$linknames \$output_objdir && linknames=''"
5962 export_dynamic_flag_spec="-Wl,DLL"
5966 hardcode_libdir_flag_spec='-L$libdir'
5967 hardcode_minus_L=yes
5968 allow_undefined_flag=unsupported
5969 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'
5970 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5974 if test "$GCC" = yes; then
5975 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5976 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'
5978 allow_undefined_flag=' -expect_unresolved \*'
5979 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'
5981 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5982 hardcode_libdir_separator=:
5985 osf4* | osf5*) # as osf3* with the addition of -msym flag
5986 if test "$GCC" = yes; then
5987 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5988 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'
5989 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5991 allow_undefined_flag=' -expect_unresolved \*'
5992 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'
5993 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5994 $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'
5996 #Both c and cxx compiler support -rpath directly
5997 hardcode_libdir_flag_spec='-rpath $libdir'
5999 hardcode_libdir_separator=:
6003 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6004 hardcode_shlibpath_var=no
6005 runpath_var=LD_RUN_PATH
6006 hardcode_runpath_var=yes
6007 export_dynamic_flag_spec='${wl}-Bexport'
6011 # gcc --version < 3.0 without binutils cannot create self contained
6012 # shared libraries reliably, requiring libgcc.a to resolve some of
6013 # the object symbols generated in some cases. Libraries that use
6014 # assert need libgcc.a to resolve __eprintf, for example. Linking
6015 # a copy of libgcc.a into every shared library to guarantee resolving
6016 # such symbols causes other problems: According to Tim Van Holder
6017 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
6018 # (to the application) exception stack for one thing.
6019 no_undefined_flag=' -z defs'
6020 if test "$GCC" = yes; then
6021 case `$CC --version 2>/dev/null` in
6025 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
6026 *** create self contained shared libraries on Solaris systems, without
6027 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
6028 *** -no-undefined support, which will at least allow you to build shared
6029 *** libraries. However, you may find that when you link such libraries
6030 *** into an application without using GCC, you have to manually add
6031 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
6032 *** upgrade to a newer version of GCC. Another option is to rebuild your
6033 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
6040 # $CC -shared without GNU ld will not create a library from C++
6041 # object files and a static libstdc++, better avoid it by now
6042 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6043 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6044 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6045 hardcode_libdir_flag_spec='-R$libdir'
6046 hardcode_shlibpath_var=no
6048 solaris2.[0-5] | solaris2.[0-5].*) ;;
6049 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6050 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6052 link_all_deplibs=yes
6056 if test "x$host_vendor" = xsequent; then
6057 # Use $CC to link under sequent, because it throws in some extra .o
6058 # files that make .init and .fini sections work.
6059 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6061 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6063 hardcode_libdir_flag_spec='-L$libdir'
6065 hardcode_minus_L=yes
6066 hardcode_shlibpath_var=no
6070 case $host_vendor in
6072 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6073 hardcode_direct=yes # is this really true???
6076 ## LD is ld it makes a PLAMLIB
6077 ## CC just makes a GrossModule.
6078 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6079 reload_cmds='$CC -r -o $output$reload_objs'
6083 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6084 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6087 runpath_var='LD_RUN_PATH'
6088 hardcode_shlibpath_var=no
6092 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6093 hardcode_shlibpath_var=no
6094 export_dynamic_flag_spec='-Bexport'
6098 no_undefined_flag=' -z text'
6099 # $CC -shared without GNU ld will not create a library from C++
6100 # object files and a static libstdc++, better avoid it by now
6101 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6102 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6103 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6104 hardcode_libdir_flag_spec=
6105 hardcode_shlibpath_var=no
6106 runpath_var='LD_RUN_PATH'
6110 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6111 hardcode_libdir_flag_spec='-L$libdir'
6112 hardcode_shlibpath_var=no
6116 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6117 hardcode_libdir_flag_spec='-L$libdir'
6118 hardcode_shlibpath_var=no
6122 if test -d /usr/nec; then
6123 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6124 hardcode_shlibpath_var=no
6125 runpath_var=LD_RUN_PATH
6126 hardcode_runpath_var=yes
6132 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6135 hardcode_shlibpath_var=no
6136 hardcode_runpath_var=yes
6137 runpath_var=LD_RUN_PATH
6140 sysv5uw7* | unixware7*)
6141 no_undefined_flag='${wl}-z ${wl}text'
6142 if test "$GCC" = yes; then
6143 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6145 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6147 runpath_var='LD_RUN_PATH'
6148 hardcode_shlibpath_var=no
6156 echo "$ac_t""$ld_shlibs" 1>&6
6157 test "$ld_shlibs" = no && can_build_shared=no
6159 # Check hardcoding attributes.
6160 echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6
6161 echo "configure:6162: checking how to hardcode library paths into programs" >&5
6163 if test -n "$hardcode_libdir_flag_spec" || \
6164 test -n "$runpath_var"; then
6166 # We can hardcode non-existant directories.
6167 if test "$hardcode_direct" != no &&
6168 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6169 # have to relink, otherwise we might link with an installed library
6170 # when we should be linking with a yet-to-be-installed one
6171 ## test "$hardcode_shlibpath_var" != no &&
6172 test "$hardcode_minus_L" != no; then
6173 # Linking always hardcodes the temporary library directory.
6174 hardcode_action=relink
6176 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6177 hardcode_action=immediate
6180 # We cannot hardcode anything, or else we can only hardcode existing
6182 hardcode_action=unsupported
6184 echo "$ac_t""$hardcode_action" 1>&6
6188 echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6
6189 echo "configure:6190: checking whether stripping libraries is possible" >&5
6190 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6191 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6192 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6193 echo "$ac_t""yes" 1>&6
6195 echo "$ac_t""no" 1>&6
6198 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6199 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6201 # PORTME Fill in your ld.so characteristics
6202 echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6
6203 echo "configure:6204: checking dynamic linker characteristics" >&5
6205 libname_spec='lib$name'
6212 shlibpath_overrides_runpath=unknown
6214 dynamic_linker="$host_os ld.so"
6215 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6216 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6221 library_names_spec='${libname}${release}.so$versuffix $libname.a'
6222 shlibpath_var=LIBPATH
6224 # AIX has no versioning support, so we append a major version to the name.
6225 soname_spec='${libname}${release}.so$major'
6232 hardcode_into_libs=yes
6233 if test "$host_cpu" = ia64; then
6234 # AIX 5 supports IA64
6235 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6236 shlibpath_var=LD_LIBRARY_PATH
6238 # With GCC up to 2.95.x, collect2 would create an import file
6239 # for dependence libraries. The import file would start with
6240 # the line `#! .'. This would cause the generated library to
6241 # depend on `.', always an invalid library. This was fixed in
6242 # development snapshots of GCC prior to 3.0.
6244 aix4 | aix4.[01] | aix4.[01].*)
6245 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6247 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6254 # AIX (on Power*) has no versioning support, so currently we can
6255 # not hardcode correct soname into executable. Probably we can
6256 # add versioning support to collect2, so additional links can
6257 # be useful in future.
6258 if test "$aix_use_runtimelinking" = yes; then
6259 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6260 # instead of lib<name>.a to let people know that these are not
6261 # typical AIX shared libraries.
6262 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6264 # We preserve .a as extension for shared libraries through AIX4.2
6265 # and later when we are not doing run time linking.
6266 library_names_spec='${libname}${release}.a $libname.a'
6267 soname_spec='${libname}${release}.so$major'
6269 shlibpath_var=LIBPATH
6271 hardcode_into_libs=yes
6275 library_names_spec='$libname.ixlibrary $libname.a'
6276 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6277 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'
6281 library_names_spec='${libname}.so'
6282 dynamic_linker="$host_os ld.so"
6283 shlibpath_var=LIBRARY_PATH
6289 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6290 soname_spec='${libname}${release}.so$major'
6291 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6292 shlibpath_var=LD_LIBRARY_PATH
6293 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6294 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6295 export_dynamic_flag_spec=-rdynamic
6296 # the default ld.so.conf also contains /usr/contrib/lib and
6297 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6298 # libtool to hard-code these into programs
6301 cygwin* | mingw* | pw32*)
6302 version_type=windows
6305 case $GCC,$host_os in
6307 library_names_spec='$libname.dll.a'
6308 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6309 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6310 dldir=$destdir/`dirname \$dlpath`~
6311 test -d \$dldir || mkdir -p \$dldir~
6312 $install_prog .libs/$dlname \$dldir/$dlname'
6313 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6314 dlpath=$dir/\$dldll~
6318 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6319 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
6322 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6325 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6328 dynamic_linker='Win32 ld.exe'
6329 # FIXME: first we should search . and the directory the executable is in
6333 darwin* | rhapsody*)
6334 dynamic_linker="$host_os dyld"
6338 # FIXME: Relying on posixy $() will cause problems for
6339 # cross-compilation, but unfortunately the echo tests do not
6340 # yet detect zsh echo's removal of \ escapes.
6341 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)'
6342 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6343 shlibpath_overrides_runpath=yes
6344 shlibpath_var=DYLD_LIBRARY_PATH
6352 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6353 version_type=freebsd-$objformat
6354 case $version_type in
6356 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6361 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6365 shlibpath_var=LD_LIBRARY_PATH
6368 shlibpath_overrides_runpath=yes
6371 shlibpath_overrides_runpath=no
6372 hardcode_into_libs=yes
6381 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6382 soname_spec='${libname}${release}.so$major'
6383 shlibpath_var=LD_LIBRARY_PATH
6384 hardcode_into_libs=yes
6387 hpux9* | hpux10* | hpux11*)
6388 # Give a soname corresponding to the major version so that dld.sl refuses to
6389 # link against other versions.
6390 dynamic_linker="$host_os dld.sl"
6394 shlibpath_var=SHLIB_PATH
6395 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6396 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6397 soname_spec='${libname}${release}.sl$major'
6398 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6399 postinstall_cmds='chmod 555 $lib'
6402 irix5* | irix6* | nonstopux*)
6404 nonstopux*) version_type=nonstopux ;;
6405 *) version_type=irix ;;
6409 soname_spec='${libname}${release}.so$major'
6410 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6412 irix5* | nonstopux*)
6416 case $LD in # libtool.m4 will add one of these switches to LD
6417 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6418 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6419 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6420 *) libsuff= shlibsuff= libmagic=never-match;;
6424 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6425 shlibpath_overrides_runpath=no
6426 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6427 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6430 # No shared lib support for Linux oldld, aout, or coff.
6431 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6435 # This must be Linux ELF.
6440 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6441 soname_spec='${libname}${release}.so$major'
6442 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6443 shlibpath_var=LD_LIBRARY_PATH
6444 shlibpath_overrides_runpath=no
6445 # This implies no fast_install, which is unacceptable.
6446 # Some rework will be needed to allow for fast_install
6447 # before this can be enabled.
6448 hardcode_into_libs=yes
6450 # We used to test for /lib/ld.so.1 and disable shared libraries on
6451 # powerpc, because MkLinux only supported shared libraries with the
6452 # GNU dynamic linker. Since this was broken with cross compilers,
6453 # most powerpc-linux boxes support dynamic linking these days and
6454 # people can always --disable-shared, the test was removed, and we
6455 # assume the GNU/Linux dynamic linker is in use.
6456 dynamic_linker='GNU/Linux ld.so'
6463 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6464 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6465 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6466 dynamic_linker='NetBSD (a.out) ld.so'
6468 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6469 soname_spec='${libname}${release}.so$major'
6470 dynamic_linker='NetBSD ld.elf_so'
6472 shlibpath_var=LD_LIBRARY_PATH
6473 shlibpath_overrides_runpath=yes
6474 hardcode_into_libs=yes
6479 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6480 shlibpath_var=LD_LIBRARY_PATH
6481 shlibpath_overrides_runpath=yes
6488 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6490 openbsd2.[89] | openbsd2.[89].*)
6491 shlibpath_overrides_runpath=no
6494 shlibpath_overrides_runpath=yes
6498 shlibpath_overrides_runpath=yes
6500 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6501 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6502 shlibpath_var=LD_LIBRARY_PATH
6508 shlibpath_overrides_runpath=yes
6509 shlibpath_var=LIBPATH
6510 postinstall_cmds="rm \$destdir/\$linkname; cp \$linkname \$destdir; chmod a+x \$lib"
6511 # the library's exports are in libname.x; this is the file that must
6512 # actually be linked with to use a DLL.
6513 library_names_spec="\${libname}\${release}.so\$versuffix \${libname}.x"
6517 libname_spec='$name'
6519 library_names_spec='$libname.dll $libname.a'
6520 dynamic_linker='OS/2 ld.exe'
6521 shlibpath_var=LIBPATH
6524 osf3* | osf4* | osf5*)
6527 soname_spec='${libname}${release}.so$major'
6528 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6529 shlibpath_var=LD_LIBRARY_PATH
6530 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6531 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6532 hardcode_into_libs=yes
6537 soname_spec='${libname}${release}.so$major'
6538 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6539 shlibpath_var=LD_LIBRARY_PATH
6546 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6547 soname_spec='${libname}${release}.so$major'
6548 shlibpath_var=LD_LIBRARY_PATH
6549 shlibpath_overrides_runpath=yes
6550 hardcode_into_libs=yes
6551 # ldd complains unless libraries are executable
6552 postinstall_cmds='chmod +x $lib'
6557 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6558 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6559 shlibpath_var=LD_LIBRARY_PATH
6560 shlibpath_overrides_runpath=yes
6561 if test "$with_gnu_ld" = yes; then
6567 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6569 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6570 soname_spec='${libname}${release}.so$major'
6571 shlibpath_var=LD_LIBRARY_PATH
6572 case $host_vendor in
6574 shlibpath_overrides_runpath=no
6576 export_dynamic_flag_spec='${wl}-Blargedynsym'
6577 runpath_var=LD_RUN_PATH
6585 shlibpath_overrides_runpath=no
6586 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6593 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6594 soname_spec='${libname}${release}.so$major'
6595 shlibpath_var=LD_LIBRARY_PATH
6602 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6603 soname_spec='${libname}${release}.so$major'
6604 shlibpath_var=LD_LIBRARY_PATH
6608 if test -d /usr/nec ;then
6610 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6611 soname_spec='$libname.so.$major'
6612 shlibpath_var=LD_LIBRARY_PATH
6620 echo "$ac_t""$dynamic_linker" 1>&6
6621 test "$dynamic_linker" = no && can_build_shared=no
6623 # Report the final consequences.
6624 echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6
6625 echo "configure:6626: checking if libtool supports shared libraries" >&5
6626 echo "$ac_t""$can_build_shared" 1>&6
6628 echo $ac_n "checking whether to build shared libraries""... $ac_c" 1>&6
6629 echo "configure:6630: checking whether to build shared libraries" >&5
6630 test "$can_build_shared" = "no" && enable_shared=no
6632 # On AIX, shared libraries and static libraries use the same namespace, and
6633 # are all built from PIC.
6636 test "$enable_shared" = yes && enable_static=no
6637 if test -n "$RANLIB"; then
6638 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6639 postinstall_cmds='$RANLIB $lib'
6644 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6645 test "$enable_shared" = yes && enable_static=no
6649 echo "$ac_t""$enable_shared" 1>&6
6651 echo $ac_n "checking whether to build static libraries""... $ac_c" 1>&6
6652 echo "configure:6653: checking whether to build static libraries" >&5
6653 # Make sure either enable_shared or enable_static is yes.
6654 test "$enable_shared" = yes || enable_static=yes
6655 echo "$ac_t""$enable_static" 1>&6
6657 if test "$hardcode_action" = relink; then
6658 # Fast installation is not supported
6659 enable_fast_install=no
6660 elif test "$shlibpath_overrides_runpath" = yes ||
6661 test "$enable_shared" = no; then
6662 # Fast installation is not necessary
6663 enable_fast_install=needless
6666 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6667 if test "$GCC" = yes; then
6668 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6671 if test "x$enable_dlopen" != xyes; then
6672 enable_dlopen=unknown
6673 enable_dlopen_self=unknown
6674 enable_dlopen_self_static=unknown
6681 lt_cv_dlopen="load_add_on"
6683 lt_cv_dlopen_self=yes
6686 cygwin* | mingw* | pw32*)
6687 lt_cv_dlopen="LoadLibrary"
6692 echo $ac_n "checking for dllload""... $ac_c" 1>&6
6693 echo "configure:6694: checking for dllload" >&5
6694 if eval "test \"\${ac_cv_func_dllload+set}\" = set"; then
6695 echo $ac_n "(cached) $ac_c" 1>&6
6697 cat > conftest.$ac_ext <<EOF
6698 #line 6699 "configure"
6699 #include "confdefs.h"
6700 /* System header to define __stub macros and hopefully few prototypes,
6701 which can conflict with char dllload(); below. */
6703 /* Override any gcc2 internal prototype to avoid an error. */
6704 /* We use char because int might match the return type of a gcc2
6705 builtin and then its argument prototype would still apply. */
6711 /* The GNU C library defines this for functions which it implements
6712 to always fail with ENOSYS. Some functions are actually named
6713 something starting with __ and the normal name is an alias. */
6714 #if defined (__stub_dllload) || defined (__stub___dllload)
6722 if { (eval echo configure:6723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6724 eval "ac_cv_func_dllload=yes"
6726 echo "configure: failed program was:" >&5
6727 cat conftest.$ac_ext >&5
6729 eval "ac_cv_func_dllload=no"
6734 if eval "test \"`echo '$ac_cv_func_'dllload`\" = yes"; then
6735 echo "$ac_t""yes" 1>&6
6736 lt_cv_dlopen="dllload"
6738 echo "$ac_t""no" 1>&6
6739 echo $ac_n "checking for shl_load""... $ac_c" 1>&6
6740 echo "configure:6741: checking for shl_load" >&5
6741 if eval "test \"\${ac_cv_func_shl_load+set}\" = set"; then
6742 echo $ac_n "(cached) $ac_c" 1>&6
6744 cat > conftest.$ac_ext <<EOF
6745 #line 6746 "configure"
6746 #include "confdefs.h"
6747 /* System header to define __stub macros and hopefully few prototypes,
6748 which can conflict with char shl_load(); below. */
6750 /* Override any gcc2 internal prototype to avoid an error. */
6751 /* We use char because int might match the return type of a gcc2
6752 builtin and then its argument prototype would still apply. */
6758 /* The GNU C library defines this for functions which it implements
6759 to always fail with ENOSYS. Some functions are actually named
6760 something starting with __ and the normal name is an alias. */
6761 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6769 if { (eval echo configure:6770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6771 eval "ac_cv_func_shl_load=yes"
6773 echo "configure: failed program was:" >&5
6774 cat conftest.$ac_ext >&5
6776 eval "ac_cv_func_shl_load=no"
6781 if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
6782 echo "$ac_t""yes" 1>&6
6783 lt_cv_dlopen="shl_load"
6785 echo "$ac_t""no" 1>&6
6786 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
6787 echo "configure:6788: checking for shl_load in -ldld" >&5
6788 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-:%__p__%'`
6789 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6790 echo $ac_n "(cached) $ac_c" 1>&6
6792 ac_save_LIBS="$LIBS"
6794 cat > conftest.$ac_ext <<EOF
6795 #line 6796 "configure"
6796 #include "confdefs.h"
6797 /* Override any gcc2 internal prototype to avoid an error. */
6798 /* We use char because int might match the return type of a gcc2
6799 builtin and then its argument prototype would still apply. */
6806 if { (eval echo configure:6807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6808 eval "ac_cv_lib_$ac_lib_var=yes"
6810 echo "configure: failed program was:" >&5
6811 cat conftest.$ac_ext >&5
6813 eval "ac_cv_lib_$ac_lib_var=no"
6816 LIBS="$ac_save_LIBS"
6819 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6820 echo "$ac_t""yes" 1>&6
6821 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6823 echo "$ac_t""no" 1>&6
6824 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
6825 echo "configure:6826: checking for dlopen" >&5
6826 if eval "test \"\${ac_cv_func_dlopen+set}\" = set"; then
6827 echo $ac_n "(cached) $ac_c" 1>&6
6829 cat > conftest.$ac_ext <<EOF
6830 #line 6831 "configure"
6831 #include "confdefs.h"
6832 /* System header to define __stub macros and hopefully few prototypes,
6833 which can conflict with char dlopen(); below. */
6835 /* Override any gcc2 internal prototype to avoid an error. */
6836 /* We use char because int might match the return type of a gcc2
6837 builtin and then its argument prototype would still apply. */
6843 /* The GNU C library defines this for functions which it implements
6844 to always fail with ENOSYS. Some functions are actually named
6845 something starting with __ and the normal name is an alias. */
6846 #if defined (__stub_dlopen) || defined (__stub___dlopen)
6854 if { (eval echo configure:6855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6856 eval "ac_cv_func_dlopen=yes"
6858 echo "configure: failed program was:" >&5
6859 cat conftest.$ac_ext >&5
6861 eval "ac_cv_func_dlopen=no"
6866 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
6867 echo "$ac_t""yes" 1>&6
6868 lt_cv_dlopen="dlopen"
6870 echo "$ac_t""no" 1>&6
6871 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
6872 echo "configure:6873: checking for dlopen in -ldl" >&5
6873 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-:%__p__%'`
6874 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6875 echo $ac_n "(cached) $ac_c" 1>&6
6877 ac_save_LIBS="$LIBS"
6879 cat > conftest.$ac_ext <<EOF
6880 #line 6881 "configure"
6881 #include "confdefs.h"
6882 /* Override any gcc2 internal prototype to avoid an error. */
6883 /* We use char because int might match the return type of a gcc2
6884 builtin and then its argument prototype would still apply. */
6891 if { (eval echo configure:6892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6893 eval "ac_cv_lib_$ac_lib_var=yes"
6895 echo "configure: failed program was:" >&5
6896 cat conftest.$ac_ext >&5
6898 eval "ac_cv_lib_$ac_lib_var=no"
6901 LIBS="$ac_save_LIBS"
6904 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6905 echo "$ac_t""yes" 1>&6
6906 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6908 echo "$ac_t""no" 1>&6
6909 echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
6910 echo "configure:6911: checking for dlopen in -lsvld" >&5
6911 ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-:%__p__%'`
6912 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6913 echo $ac_n "(cached) $ac_c" 1>&6
6915 ac_save_LIBS="$LIBS"
6917 cat > conftest.$ac_ext <<EOF
6918 #line 6919 "configure"
6919 #include "confdefs.h"
6920 /* Override any gcc2 internal prototype to avoid an error. */
6921 /* We use char because int might match the return type of a gcc2
6922 builtin and then its argument prototype would still apply. */
6929 if { (eval echo configure:6930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6931 eval "ac_cv_lib_$ac_lib_var=yes"
6933 echo "configure: failed program was:" >&5
6934 cat conftest.$ac_ext >&5
6936 eval "ac_cv_lib_$ac_lib_var=no"
6939 LIBS="$ac_save_LIBS"
6942 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6943 echo "$ac_t""yes" 1>&6
6944 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6946 echo "$ac_t""no" 1>&6
6947 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
6948 echo "configure:6949: checking for dld_link in -ldld" >&5
6949 ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-:%__p__%'`
6950 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6951 echo $ac_n "(cached) $ac_c" 1>&6
6953 ac_save_LIBS="$LIBS"
6955 cat > conftest.$ac_ext <<EOF
6956 #line 6957 "configure"
6957 #include "confdefs.h"
6958 /* Override any gcc2 internal prototype to avoid an error. */
6959 /* We use char because int might match the return type of a gcc2
6960 builtin and then its argument prototype would still apply. */
6967 if { (eval echo configure:6968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6969 eval "ac_cv_lib_$ac_lib_var=yes"
6971 echo "configure: failed program was:" >&5
6972 cat conftest.$ac_ext >&5
6974 eval "ac_cv_lib_$ac_lib_var=no"
6977 LIBS="$ac_save_LIBS"
6980 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6981 echo "$ac_t""yes" 1>&6
6982 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6984 echo "$ac_t""no" 1>&6
7008 if test "x$lt_cv_dlopen" != xno; then
7014 case $lt_cv_dlopen in
7016 save_CPPFLAGS="$CPPFLAGS"
7017 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7019 save_LDFLAGS="$LDFLAGS"
7020 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7023 LIBS="$lt_cv_dlopen_libs $LIBS"
7025 echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
7026 echo "configure:7027: checking whether a program can dlopen itself" >&5
7027 if eval "test \"\${lt_cv_dlopen_self+set}\" = set"; then
7028 echo $ac_n "(cached) $ac_c" 1>&6
7030 if test "$cross_compiling" = yes; then :
7031 lt_cv_dlopen_self=cross
7033 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7034 lt_status=$lt_dlunknown
7035 cat > conftest.$ac_ext <<EOF
7036 #line 7037 "configure"
7037 #include "confdefs.h"
7046 # define LT_DLGLOBAL RTLD_GLOBAL
7049 # define LT_DLGLOBAL DL_GLOBAL
7051 # define LT_DLGLOBAL 0
7055 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7056 find out it does not work in some platform. */
7057 #ifndef LT_DLLAZY_OR_NOW
7059 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7062 # define LT_DLLAZY_OR_NOW DL_LAZY
7065 # define LT_DLLAZY_OR_NOW RTLD_NOW
7068 # define LT_DLLAZY_OR_NOW DL_NOW
7070 # define LT_DLLAZY_OR_NOW 0
7078 extern "C" void exit (int);
7081 void fnord() { int i=42;}
7084 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7085 int status = $lt_dlunknown;
7089 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7090 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7091 /* dlclose (self); */
7097 if { (eval echo configure:7098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
7098 (./conftest; exit; ) 2>/dev/null
7101 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7102 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7103 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7106 # compilation failed
7107 lt_cv_dlopen_self=no
7115 echo "$ac_t""$lt_cv_dlopen_self" 1>&6
7117 if test "x$lt_cv_dlopen_self" = xyes; then
7118 LDFLAGS="$LDFLAGS $link_static_flag"
7119 echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
7120 echo "configure:7121: checking whether a statically linked program can dlopen itself" >&5
7121 if eval "test \"\${lt_cv_dlopen_self_static+set}\" = set"; then
7122 echo $ac_n "(cached) $ac_c" 1>&6
7124 if test "$cross_compiling" = yes; then :
7125 lt_cv_dlopen_self_static=cross
7127 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7128 lt_status=$lt_dlunknown
7129 cat > conftest.$ac_ext <<EOF
7130 #line 7131 "configure"
7131 #include "confdefs.h"
7140 # define LT_DLGLOBAL RTLD_GLOBAL
7143 # define LT_DLGLOBAL DL_GLOBAL
7145 # define LT_DLGLOBAL 0
7149 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7150 find out it does not work in some platform. */
7151 #ifndef LT_DLLAZY_OR_NOW
7153 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7156 # define LT_DLLAZY_OR_NOW DL_LAZY
7159 # define LT_DLLAZY_OR_NOW RTLD_NOW
7162 # define LT_DLLAZY_OR_NOW DL_NOW
7164 # define LT_DLLAZY_OR_NOW 0
7172 extern "C" void exit (int);
7175 void fnord() { int i=42;}
7178 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7179 int status = $lt_dlunknown;
7183 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7184 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7185 /* dlclose (self); */
7191 if { (eval echo configure:7192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
7192 (./conftest; exit; ) 2>/dev/null
7195 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7196 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7197 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7200 # compilation failed
7201 lt_cv_dlopen_self_static=no
7209 echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6
7212 CPPFLAGS="$save_CPPFLAGS"
7213 LDFLAGS="$save_LDFLAGS"
7218 case $lt_cv_dlopen_self in
7219 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7220 *) enable_dlopen_self=unknown ;;
7223 case $lt_cv_dlopen_self_static in
7224 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7225 *) enable_dlopen_self_static=unknown ;;
7230 if test "$enable_shared" = yes && test "$GCC" = yes; then
7231 case $archive_cmds in
7233 # FIXME: we may have to deal with multi-command sequences.
7236 # Test whether the compiler implicitly links with -lc since on some
7237 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7238 # to ld, don't add -lc before -lgcc.
7239 echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6
7240 echo "configure:7241: checking whether -lc should be explicitly linked in" >&5
7241 if eval "test \"\${lt_cv_archive_cmds_need_lc+set}\" = set"; then
7242 echo $ac_n "(cached) $ac_c" 1>&6
7245 echo 'static int dummy;' > conftest.$ac_ext
7247 if { (eval echo configure:7248: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7250 libobjs=conftest.$ac_objext
7252 wl=$lt_cv_prog_cc_wl
7258 save_allow_undefined_flag=$allow_undefined_flag
7259 allow_undefined_flag=
7260 if { (eval echo configure:7261: \"$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; }
7262 lt_cv_archive_cmds_need_lc=no
7264 lt_cv_archive_cmds_need_lc=yes
7266 allow_undefined_flag=$save_allow_undefined_flag
7268 cat conftest.err 1>&5
7272 echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6
7276 need_lc=${lt_cv_archive_cmds_need_lc-yes}
7278 # The second clause should only fire when bootstrapping the
7279 # libtool distribution, otherwise you forgot to ship ltmain.sh
7280 # with your package, and you will get complaints that there are
7281 # no rules to generate ltmain.sh.
7282 if test -f "$ltmain"; then
7285 # If there is no Makefile yet, we rely on a make rule to execute
7286 # `config.status --recheck' to rerun these tests and create the
7287 # libtool script then.
7288 test -f Makefile && make "$ltmain"
7291 if test -f "$ltmain"; then
7292 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7295 echo creating $ofile
7297 # Now quote all the things that may contain metacharacters while being
7298 # careful not to overquote the AC_SUBSTed values. We take copies of the
7299 # variables and quote the copies for generation of the libtool script.
7300 for var in echo old_CC old_CFLAGS SED \
7301 AR AR_FLAGS CC LD LN_S NM SHELL \
7302 reload_flag reload_cmds wl \
7303 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7304 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7305 library_names_spec soname_spec \
7306 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7307 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7308 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7309 old_striplib striplib file_magic_cmd export_symbols_cmds \
7310 deplibs_check_method allow_undefined_flag no_undefined_flag \
7311 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7312 global_symbol_to_c_name_address \
7313 hardcode_libdir_flag_spec hardcode_libdir_separator \
7314 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7315 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7318 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7319 old_postinstall_cmds | old_postuninstall_cmds | \
7320 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7321 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7322 postinstall_cmds | postuninstall_cmds | \
7323 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7324 # Double-quote double-evaled strings.
7325 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7328 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7333 cat <<__EOF__ > "${ofile}T"
7336 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7337 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7338 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7340 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7341 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7343 # This program is free software; you can redistribute it and/or modify
7344 # it under the terms of the GNU General Public License as published by
7345 # the Free Software Foundation; either version 2 of the License, or
7346 # (at your option) any later version.
7348 # This program is distributed in the hope that it will be useful, but
7349 # WITHOUT ANY WARRANTY; without even the implied warranty of
7350 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7351 # General Public License for more details.
7353 # You should have received a copy of the GNU General Public License
7354 # along with this program; if not, write to the Free Software
7355 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7357 # As a special exception to the GNU General Public License, if you
7358 # distribute this file as part of a program that contains a
7359 # configuration script generated by Autoconf, you may include it under
7360 # the same distribution terms that you use for the rest of that program.
7362 # A sed that does not truncate output.
7365 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7366 Xsed="${SED} -e s/^X//"
7368 # The HP-UX ksh and POSIX shell print the target directory to stdout
7370 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7372 # ### BEGIN LIBTOOL CONFIG
7374 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7376 # Shell to use when invoking shell scripts.
7379 # Whether or not to build shared libraries.
7380 build_libtool_libs=$enable_shared
7382 # Whether or not to build static libraries.
7383 build_old_libs=$enable_static
7385 # Whether or not to add -lc for building shared libraries.
7386 build_libtool_need_lc=$need_lc
7388 # Whether or not to optimize for fast installation.
7389 fast_install=$enable_fast_install
7392 host_alias=$host_alias
7395 # An echo program that does not interpret backslashes.
7400 AR_FLAGS=$lt_AR_FLAGS
7402 # The default C compiler.
7405 # Is the compiler the GNU C compiler?
7408 # The linker used to build libraries.
7411 # Whether we need hard or soft links.
7414 # A BSD-compatible nm program.
7417 # A symbol stripping program
7420 # Used to examine libraries when file_magic_cmd begins "file"
7421 MAGIC_CMD=$MAGIC_CMD
7423 # Used on cygwin: DLL creation program.
7426 # Used on cygwin: object dumper.
7429 # Used on cygwin: assembler.
7432 # The name of the directory that contains temporary libtool files.
7435 # How to create reloadable object files.
7436 reload_flag=$lt_reload_flag
7437 reload_cmds=$lt_reload_cmds
7439 # How to pass a linker flag through the compiler.
7442 # Object file suffix (normally "o").
7445 # Old archive suffix (normally "a").
7448 # Executable file suffix (normally "").
7451 # Additional compiler flags for building library objects.
7452 pic_flag=$lt_pic_flag
7455 # Does compiler simultaneously support -c and -o options?
7456 compiler_c_o=$lt_compiler_c_o
7458 # Can we write directly to a .lo ?
7459 compiler_o_lo=$lt_compiler_o_lo
7461 # Must we lock files when doing compilation ?
7462 need_locks=$lt_need_locks
7464 # Do we need the lib prefix for modules?
7465 need_lib_prefix=$need_lib_prefix
7467 # Do we need a version for libraries?
7468 need_version=$need_version
7470 # Whether dlopen is supported.
7471 dlopen_support=$enable_dlopen
7473 # Whether dlopen of programs is supported.
7474 dlopen_self=$enable_dlopen_self
7476 # Whether dlopen of statically linked programs is supported.
7477 dlopen_self_static=$enable_dlopen_self_static
7479 # Compiler flag to prevent dynamic linking.
7480 link_static_flag=$lt_link_static_flag
7482 # Compiler flag to turn off builtin functions.
7483 no_builtin_flag=$lt_no_builtin_flag
7485 # Compiler flag to allow reflexive dlopens.
7486 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7488 # Compiler flag to generate shared objects directly from archives.
7489 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7491 # Compiler flag to generate thread-safe objects.
7492 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7494 # Library versioning type.
7495 version_type=$version_type
7497 # Format of library name prefix.
7498 libname_spec=$lt_libname_spec
7500 # List of archive names. First name is the real one, the rest are links.
7501 # The last name is the one that the linker finds with -lNAME.
7502 library_names_spec=$lt_library_names_spec
7504 # The coded name of the library, if different from the real name.
7505 soname_spec=$lt_soname_spec
7507 # Commands used to build and install an old-style archive.
7509 old_archive_cmds=$lt_old_archive_cmds
7510 old_postinstall_cmds=$lt_old_postinstall_cmds
7511 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7513 # Create an old-style archive from a shared archive.
7514 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7516 # Create a temporary old-style archive to link instead of a shared archive.
7517 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7519 # Commands used to build and install a shared archive.
7520 archive_cmds=$lt_archive_cmds
7521 archive_expsym_cmds=$lt_archive_expsym_cmds
7522 postinstall_cmds=$lt_postinstall_cmds
7523 postuninstall_cmds=$lt_postuninstall_cmds
7525 # Commands to strip libraries.
7526 old_striplib=$lt_old_striplib
7527 striplib=$lt_striplib
7529 # Method to check whether dependent libraries are shared objects.
7530 deplibs_check_method=$lt_deplibs_check_method
7532 # Command to use when deplibs_check_method == file_magic.
7533 file_magic_cmd=$lt_file_magic_cmd
7535 # Flag that allows shared libraries with undefined symbols to be built.
7536 allow_undefined_flag=$lt_allow_undefined_flag
7538 # Flag that forces no undefined symbols.
7539 no_undefined_flag=$lt_no_undefined_flag
7541 # Commands used to finish a libtool library installation in a directory.
7542 finish_cmds=$lt_finish_cmds
7544 # Same as above, but a single script fragment to be evaled but not shown.
7545 finish_eval=$lt_finish_eval
7547 # Take the output of nm and produce a listing of raw symbols and C names.
7548 global_symbol_pipe=$lt_global_symbol_pipe
7550 # Transform the output of nm in a proper C declaration
7551 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7553 # Transform the output of nm in a C name address pair
7554 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7556 # This is the shared library runtime path variable.
7557 runpath_var=$runpath_var
7559 # This is the shared library path variable.
7560 shlibpath_var=$shlibpath_var
7562 # Is shlibpath searched before the hard-coded library search path?
7563 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7565 # How to hardcode a shared library path into an executable.
7566 hardcode_action=$hardcode_action
7568 # Whether we should hardcode library paths into libraries.
7569 hardcode_into_libs=$hardcode_into_libs
7571 # Flag to hardcode \$libdir into a binary during linking.
7572 # This must work even if \$libdir does not exist.
7573 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7575 # Whether we need a single -rpath flag with a separated argument.
7576 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7578 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7580 hardcode_direct=$hardcode_direct
7582 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7584 hardcode_minus_L=$hardcode_minus_L
7586 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7587 # the resulting binary.
7588 hardcode_shlibpath_var=$hardcode_shlibpath_var
7590 # Variables whose values should be saved in libtool wrapper scripts and
7591 # restored at relink time.
7592 variables_saved_for_relink="$variables_saved_for_relink"
7594 # Whether libtool must link a program against all its dependency libraries.
7595 link_all_deplibs=$link_all_deplibs
7597 # Compile-time system search path for libraries
7598 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7600 # Run-time system search path for libraries
7601 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7603 # Fix the shell variable \$srcfile for the compiler.
7604 fix_srcfile_path="$fix_srcfile_path"
7606 # Set to yes if exported symbols are required.
7607 always_export_symbols=$always_export_symbols
7609 # The commands to list exported symbols.
7610 export_symbols_cmds=$lt_export_symbols_cmds
7612 # The commands to extract the exported symbol list from a shared archive.
7613 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7615 # Symbols that should not be listed in the preloaded symbols.
7616 exclude_expsyms=$lt_exclude_expsyms
7618 # Symbols that must always be exported.
7619 include_expsyms=$lt_include_expsyms
7621 # ### END LIBTOOL CONFIG
7627 cat <<\EOF >> "${ofile}T"
7629 # AIX sometimes has problems with the GCC collect2 program. For some
7630 # reason, if we set the COLLECT_NAMES environment variable, the problems
7631 # vanish in a puff of smoke.
7632 if test "X${COLLECT_NAMES+set}" != Xset; then
7634 export COLLECT_NAMES
7641 cygwin* | mingw* | pw32* | os2*)
7642 cat <<'EOF' >> "${ofile}T"
7643 # This is a source program that is used to create dlls on Windows
7644 # Don't remove nor modify the starting and closing comments
7645 # /* ltdll.c starts here */
7646 # #define WIN32_LEAN_AND_MEAN
7647 # #include <windows.h>
7648 # #undef WIN32_LEAN_AND_MEAN
7649 # #include <stdio.h>
7651 # #ifndef __CYGWIN__
7652 # # ifdef __CYGWIN32__
7653 # # define __CYGWIN__ __CYGWIN32__
7657 # #ifdef __cplusplus
7660 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7661 # #ifdef __cplusplus
7666 # #include <cygwin/cygwin_dll.h>
7667 # DECLARE_CYGWIN_DLL( DllMain );
7669 # HINSTANCE __hDllInstance_base;
7672 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7674 # __hDllInstance_base = hInst;
7677 # /* ltdll.c ends here */
7678 # This is a source program that is used to create import libraries
7679 # on Windows for dlls which lack them. Don't remove nor modify the
7680 # starting and closing comments
7681 # /* impgen.c starts here */
7682 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7684 # This file is part of GNU libtool.
7686 # This program is free software; you can redistribute it and/or modify
7687 # it under the terms of the GNU General Public License as published by
7688 # the Free Software Foundation; either version 2 of the License, or
7689 # (at your option) any later version.
7691 # This program is distributed in the hope that it will be useful,
7692 # but WITHOUT ANY WARRANTY; without even the implied warranty of
7693 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7694 # GNU General Public License for more details.
7696 # You should have received a copy of the GNU General Public License
7697 # along with this program; if not, write to the Free Software
7698 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7701 # #include <stdio.h> /* for printf() */
7702 # #include <unistd.h> /* for open(), lseek(), read() */
7703 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7704 # #include <string.h> /* for strdup() */
7706 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
7708 # #define O_BINARY 0
7711 # static unsigned int
7712 # pe_get16 (fd, offset)
7716 # unsigned char b[2];
7717 # lseek (fd, offset, SEEK_SET);
7719 # return b[0] + (b[1]<<8);
7722 # static unsigned int
7723 # pe_get32 (fd, offset)
7727 # unsigned char b[4];
7728 # lseek (fd, offset, SEEK_SET);
7730 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7733 # static unsigned int
7737 # unsigned char *b = ptr;
7738 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7747 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7748 # unsigned long export_rva, export_size, nsections, secptr, expptr;
7749 # unsigned long name_rvas, nexp;
7750 # unsigned char *expdata, *erva;
7751 # char *filename, *dll_name;
7753 # filename = argv[1];
7755 # dll = open(filename, O_RDONLY|O_BINARY);
7759 # dll_name = filename;
7761 # for (i=0; filename[i]; i++)
7762 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7763 # dll_name = filename + i +1;
7765 # pe_header_offset = pe_get32 (dll, 0x3c);
7766 # opthdr_ofs = pe_header_offset + 4 + 20;
7767 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
7769 # if (num_entries < 1) /* no exports */
7772 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
7773 # export_size = pe_get32 (dll, opthdr_ofs + 100);
7774 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7775 # secptr = (pe_header_offset + 4 + 20 +
7776 # pe_get16 (dll, pe_header_offset + 4 + 16));
7779 # for (i = 0; i < nsections; i++)
7782 # unsigned long secptr1 = secptr + 40 * i;
7783 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7784 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7785 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7786 # lseek(dll, secptr1, SEEK_SET);
7787 # read(dll, sname, 8);
7788 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
7790 # expptr = fptr + (export_rva - vaddr);
7791 # if (export_rva + export_size > vaddr + vsize)
7792 # export_size = vsize - (export_rva - vaddr);
7797 # expdata = (unsigned char*)malloc(export_size);
7798 # lseek (dll, expptr, SEEK_SET);
7799 # read (dll, expdata, export_size);
7800 # erva = expdata - export_rva;
7802 # nexp = pe_as32 (expdata+24);
7803 # name_rvas = pe_as32 (expdata+32);
7805 # printf ("EXPORTS\n");
7806 # for (i = 0; i<nexp; i++)
7808 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7809 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7814 # /* impgen.c ends here */
7820 # We use sed instead of cat because bash on DJGPP gets confused if
7821 # if finds mixed CR/LF and LF-only lines. Since sed operates in
7822 # text mode, it properly converts lines to CR/LF. This bash problem
7823 # is reportedly fixed, but why not run on old versions too?
7824 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7826 mv -f "${ofile}T" "$ofile" || \
7827 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7835 # This can be used to rebuild libtool when needed
7836 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7838 # Always use our own libtool.
7839 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7841 # Prevent multiple expansion
7845 # test for ln hardlink support
7846 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
7847 echo "configure:7848: checking whether ln works" >&5
7848 if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then
7849 echo $ac_n "(cached) $ac_c" 1>&6
7851 rm -f conftest.src conftest.dst
7852 echo "conftest" > conftest.src
7853 if ln conftest.src conftest.dst 2>/dev/null
7855 ol_cv_prog_LN_H="ln"
7857 ol_cv_prog_LN_H="cp"
7859 rm -f conftest.src conftest.dst
7862 LN_H="$ol_cv_prog_LN_H"
7863 if test "$ol_cv_prog_LN_H" = "ln"; then
7864 echo "$ac_t""yes" 1>&6
7866 echo "$ac_t""no" 1>&6
7869 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
7870 echo "configure:7871: checking whether ln -s works" >&5
7871 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
7872 echo $ac_n "(cached) $ac_c" 1>&6
7875 if ln -s X conftestdata 2>/dev/null
7878 ac_cv_prog_LN_S="ln -s"
7883 LN_S="$ac_cv_prog_LN_S"
7884 if test "$ac_cv_prog_LN_S" = "ln -s"; then
7885 echo "$ac_t""yes" 1>&6
7887 echo "$ac_t""no" 1>&6
7892 if test $ol_enable_perl != no ; then
7893 # Extract the first word of "perl", so it can be a program name with args.
7894 set dummy perl; ac_word=$2
7895 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7896 echo "configure:7897: checking for $ac_word" >&5
7897 if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then
7898 echo $ac_n "(cached) $ac_c" 1>&6
7902 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
7905 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
7908 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7910 for ac_dir in $ac_dummy; do
7911 test -z "$ac_dir" && ac_dir=.
7912 if test -f $ac_dir/$ac_word; then
7913 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
7918 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
7922 PERLBIN="$ac_cv_path_PERLBIN"
7923 if test -n "$PERLBIN"; then
7924 echo "$ac_t""$PERLBIN" 1>&6
7926 echo "$ac_t""no" 1>&6
7930 if test "no$PERLBIN" = "no" ; then
7931 if test $ol_enable_perl = yes ; then
7932 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
7936 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
7937 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
7939 if test x"$ol_with_perl_module" = "xstatic" ; then
7940 SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
7942 MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
7948 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
7949 echo "configure:7950: checking how to run the C preprocessor" >&5
7950 # On Suns, sometimes $CPP names a directory.
7951 if test -n "$CPP" && test -d "$CPP"; then
7954 if test -z "$CPP"; then
7955 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
7956 echo $ac_n "(cached) $ac_c" 1>&6
7958 # This must be in double quotes, not single quotes, because CPP may get
7959 # substituted into the Makefile and "${CC-cc}" will confuse make.
7961 # On the NeXT, cc -E runs the code through the compiler's parser,
7962 # not just through cpp.
7963 cat > conftest.$ac_ext <<EOF
7964 #line 7965 "configure"
7965 #include "confdefs.h"
7969 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7970 { (eval echo configure:7971: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7971 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7972 if test -z "$ac_err"; then
7976 echo "configure: failed program was:" >&5
7977 cat conftest.$ac_ext >&5
7979 CPP="${CC-cc} -E -traditional-cpp"
7980 cat > conftest.$ac_ext <<EOF
7981 #line 7982 "configure"
7982 #include "confdefs.h"
7986 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7987 { (eval echo configure:7988: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7988 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7989 if test -z "$ac_err"; then
7993 echo "configure: failed program was:" >&5
7994 cat conftest.$ac_ext >&5
7996 CPP="${CC-cc} -nologo -E"
7997 cat > conftest.$ac_ext <<EOF
7998 #line 7999 "configure"
7999 #include "confdefs.h"
8003 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8004 { (eval echo configure:8005: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8005 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8006 if test -z "$ac_err"; then
8010 echo "configure: failed program was:" >&5
8011 cat conftest.$ac_ext >&5
8020 ac_cv_prog_CPP="$CPP"
8022 CPP="$ac_cv_prog_CPP"
8024 ac_cv_prog_CPP="$CPP"
8026 echo "$ac_t""$CPP" 1>&6
8029 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
8030 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
8032 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
8033 echo "configure: warning: programs compiled here do run here..." 1>&2
8034 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
8036 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
8037 echo "configure: warning: programs compiled here do not run here..." 1>&2
8038 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
8042 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
8043 echo "configure:8044: checking for Cygwin environment" >&5
8044 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
8045 echo $ac_n "(cached) $ac_c" 1>&6
8047 cat > conftest.$ac_ext <<EOF
8048 #line 8049 "configure"
8049 #include "confdefs.h"
8054 #define __CYGWIN__ __CYGWIN32__
8059 if { (eval echo configure:8060: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8063 echo "configure: failed program was:" >&5
8064 cat conftest.$ac_ext >&5
8071 echo "$ac_t""$ac_cv_cygwin" 1>&6
8073 test "$ac_cv_cygwin" = yes && CYGWIN=yes
8074 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
8075 echo "configure:8076: checking for mingw32 environment" >&5
8076 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
8077 echo $ac_n "(cached) $ac_c" 1>&6
8079 cat > conftest.$ac_ext <<EOF
8080 #line 8081 "configure"
8081 #include "confdefs.h"
8087 if { (eval echo configure:8088: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8091 echo "configure: failed program was:" >&5
8092 cat conftest.$ac_ext >&5
8099 echo "$ac_t""$ac_cv_mingw32" 1>&6
8101 test "$ac_cv_mingw32" = yes && MINGW32=yes
8105 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
8106 echo "configure:8107: checking for executable suffix" >&5
8107 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
8108 echo $ac_n "(cached) $ac_c" 1>&6
8110 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
8114 echo 'int main () { return 0; }' > conftest.$ac_ext
8116 if { (eval echo configure:8117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
8117 for file in conftest.*; do
8119 *.c | *.C | *.o | *.obj | *.xcoff) ;;
8120 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
8124 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
8127 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
8132 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
8133 echo "$ac_t""${ac_cv_exeext}" 1>&6
8136 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
8137 echo "configure:8138: checking for object suffix" >&5
8138 if eval "test \"\${ac_cv_objext+set}\" = set"; then
8139 echo $ac_n "(cached) $ac_c" 1>&6
8142 echo 'int i = 1;' > conftest.$ac_ext
8143 if { (eval echo configure:8144: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8144 for ac_file in conftest.*; do
8147 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
8151 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
8156 echo "$ac_t""$ac_cv_objext" 1>&6
8157 OBJEXT=$ac_cv_objext
8158 ac_objext=$ac_cv_objext
8161 cat >> confdefs.h <<EOF
8162 #define EXEEXT "${EXEEXT}"
8166 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
8167 echo "configure:8168: checking for be_app in -lbe" >&5
8168 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
8169 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8170 echo $ac_n "(cached) $ac_c" 1>&6
8172 ac_save_LIBS="$LIBS"
8173 LIBS="-lbe -lroot -lnet $LIBS"
8174 cat > conftest.$ac_ext <<EOF
8175 #line 8176 "configure"
8176 #include "confdefs.h"
8177 /* Override any gcc2 internal prototype to avoid an error. */
8178 /* We use char because int might match the return type of a gcc2
8179 builtin and then its argument prototype would still apply. */
8186 if { (eval echo configure:8187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8188 eval "ac_cv_lib_$ac_lib_var=yes"
8190 echo "configure: failed program was:" >&5
8191 cat conftest.$ac_ext >&5
8193 eval "ac_cv_lib_$ac_lib_var=no"
8196 LIBS="$ac_save_LIBS"
8199 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8200 echo "$ac_t""yes" 1>&6
8201 LIBS="$LIBS -lbe -lroot -lnet"
8203 echo "$ac_t""no" 1>&6
8211 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
8212 echo "configure:8213: checking for ${CC-cc} option to accept ANSI C" >&5
8213 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
8214 echo $ac_n "(cached) $ac_c" 1>&6
8216 am_cv_prog_cc_stdc=no
8218 # Don't try gcc -ansi; that turns off useful extensions and
8219 # breaks some systems' header files.
8220 # AIX -qlanglvl=ansi
8221 # Ultrix and OSF/1 -std1
8222 # HP-UX 10.20 and later -Ae
8223 # HP-UX older versions -Aa -D_HPUX_SOURCE
8224 # SVR4 -Xc -D__EXTENSIONS__
8225 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
8227 CC="$ac_save_CC $ac_arg"
8228 cat > conftest.$ac_ext <<EOF
8229 #line 8230 "configure"
8230 #include "confdefs.h"
8233 #include <sys/types.h>
8234 #include <sys/stat.h>
8235 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
8236 struct buf { int x; };
8237 FILE * (*rcsopen) (struct buf *, struct stat *, int);
8238 static char *e (p, i)
8244 static char *f (char * (*g) (char **, int), char **p, ...)
8249 s = g (p, va_arg (v,int));
8253 int test (int i, double x);
8254 struct s1 {int (*f) (int a);};
8255 struct s2 {int (*f) (double a);};
8256 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
8262 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
8266 if { (eval echo configure:8267: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8268 am_cv_prog_cc_stdc="$ac_arg"; break
8270 echo "configure: failed program was:" >&5
8271 cat conftest.$ac_ext >&5
8279 if test -z "$am_cv_prog_cc_stdc"; then
8280 echo "$ac_t""none needed" 1>&6
8282 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
8284 case "x$am_cv_prog_cc_stdc" in
8286 *) CC="$CC $am_cv_prog_cc_stdc" ;;
8289 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
8290 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
8293 # test for make depend flag
8296 if test -z "${MKDEP}"; then
8298 if test -z "${MKDEP_FLAGS}"; then
8299 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
8300 echo "configure:8301: checking for ${OL_MKDEP} depend flag" >&5
8301 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
8302 echo $ac_n "(cached) $ac_c" 1>&6
8306 for flag in "-M" "-xM"; do
8307 cat > conftest.c <<EOF
8310 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:8311: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
8311 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
8313 if test ! -f conftest."${ac_object}" ; then
8315 OL_MKDEP_FLAGS="$flag"
8324 echo "$ac_t""$ol_cv_mkdep" 1>&6
8327 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
8332 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
8337 if test "${ol_cv_mkdep}" = no ; then
8338 # this will soon become an error
8339 echo "configure: warning: do not know how to generate dependencies" 1>&2
8342 echo $ac_n "checking for afopen in -ls""... $ac_c" 1>&6
8343 echo "configure:8344: checking for afopen in -ls" >&5
8344 ac_lib_var=`echo s'_'afopen | sed 'y%./+-:%__p__%'`
8345 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8346 echo $ac_n "(cached) $ac_c" 1>&6
8348 ac_save_LIBS="$LIBS"
8350 cat > conftest.$ac_ext <<EOF
8351 #line 8352 "configure"
8352 #include "confdefs.h"
8353 /* Override any gcc2 internal prototype to avoid an error. */
8354 /* We use char because int might match the return type of a gcc2
8355 builtin and then its argument prototype would still apply. */
8362 if { (eval echo configure:8363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8364 eval "ac_cv_lib_$ac_lib_var=yes"
8366 echo "configure: failed program was:" >&5
8367 cat conftest.$ac_ext >&5
8369 eval "ac_cv_lib_$ac_lib_var=no"
8372 LIBS="$ac_save_LIBS"
8375 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8376 echo "$ac_t""yes" 1>&6
8379 cat >> confdefs.h <<\EOF
8380 #define HAVE_AIX_SECURITY 1
8385 echo "$ac_t""no" 1>&6
8391 ac_cv_func_getopt=no
8392 cat >> confdefs.h <<\EOF
8393 #define BOTH_STRINGS_H 1
8400 if test $ol_enable_modules != no ; then
8401 for ac_hdr in ltdl.h
8403 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8404 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8405 echo "configure:8406: checking for $ac_hdr" >&5
8406 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8407 echo $ac_n "(cached) $ac_c" 1>&6
8409 cat > conftest.$ac_ext <<EOF
8410 #line 8411 "configure"
8411 #include "confdefs.h"
8414 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8415 { (eval echo configure:8416: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8416 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8417 if test -z "$ac_err"; then
8419 eval "ac_cv_header_$ac_safe=yes"
8422 echo "configure: failed program was:" >&5
8423 cat conftest.$ac_ext >&5
8425 eval "ac_cv_header_$ac_safe=no"
8429 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8430 echo "$ac_t""yes" 1>&6
8431 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8432 cat >> confdefs.h <<EOF
8433 #define $ac_tr_hdr 1
8437 echo "$ac_t""no" 1>&6
8442 if test $ac_cv_header_ltdl_h = no ; then
8443 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
8446 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
8447 echo "configure:8448: checking for lt_dlinit in -lltdl" >&5
8448 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
8449 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8450 echo $ac_n "(cached) $ac_c" 1>&6
8452 ac_save_LIBS="$LIBS"
8454 cat > conftest.$ac_ext <<EOF
8455 #line 8456 "configure"
8456 #include "confdefs.h"
8457 /* Override any gcc2 internal prototype to avoid an error. */
8458 /* We use char because int might match the return type of a gcc2
8459 builtin and then its argument prototype would still apply. */
8466 if { (eval echo configure:8467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8468 eval "ac_cv_lib_$ac_lib_var=yes"
8470 echo "configure: failed program was:" >&5
8471 cat conftest.$ac_ext >&5
8473 eval "ac_cv_lib_$ac_lib_var=no"
8476 LIBS="$ac_save_LIBS"
8479 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8480 echo "$ac_t""yes" 1>&6
8483 cat >> confdefs.h <<\EOF
8484 #define HAVE_LIBLTDL 1
8489 echo "$ac_t""no" 1>&6
8493 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
8494 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
8498 ol_with_bdb_module=static
8499 ol_with_dnssrv_module=static
8500 ol_with_hdb_module=static
8501 ol_with_ldap_module=static
8502 ol_with_ldbm_module=static
8503 ol_with_meta_module=static
8504 ol_with_monitor_module=static
8505 ol_with_null_module=static
8506 ol_with_passwd_module=static
8507 ol_with_perl_module=static
8508 ol_with_shell_module=static
8509 ol_with_sql_module=static
8510 if test $ol_with_dyngroup = mod ; then
8511 echo "configure: warning: building static dyngroup overlay" 1>&2
8512 ol_with_dyngroup=yes
8514 if test $ol_with_proxycache = mod ; then
8515 echo "configure: warning: building static proxycache overlay" 1>&2
8516 ol_with_proxycache=yes
8521 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
8522 echo "configure:8523: checking for EBCDIC" >&5
8523 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
8524 echo $ac_n "(cached) $ac_c" 1>&6
8527 cat > conftest.$ac_ext <<EOF
8528 #line 8529 "configure"
8529 #include "confdefs.h"
8532 #include <__ASCII__/generate_error.h>
8536 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8537 { (eval echo configure:8538: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8538 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8539 if test -z "$ac_err"; then
8541 ol_cv_cpp_ebcdic=yes
8544 echo "configure: failed program was:" >&5
8545 cat conftest.$ac_ext >&5
8552 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
8553 if test $ol_cv_cpp_ebcdic = yes ; then
8554 cat >> confdefs.h <<\EOF
8555 #define HAVE_EBCDIC 1
8560 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
8561 echo "configure:8562: checking for ANSI C header files" >&5
8562 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
8563 echo $ac_n "(cached) $ac_c" 1>&6
8565 cat > conftest.$ac_ext <<EOF
8566 #line 8567 "configure"
8567 #include "confdefs.h"
8573 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8574 { (eval echo configure:8575: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8575 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8576 if test -z "$ac_err"; then
8578 ol_cv_header_stdc=yes
8581 echo "configure: failed program was:" >&5
8582 cat conftest.$ac_ext >&5
8584 ol_cv_header_stdc=no
8588 if test $ol_cv_header_stdc = yes; then
8589 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8590 cat > conftest.$ac_ext <<EOF
8591 #line 8592 "configure"
8592 #include "confdefs.h"
8595 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8596 egrep "memchr" >/dev/null 2>&1; then
8600 ol_cv_header_stdc=no
8606 if test $ol_cv_header_stdc = yes; then
8607 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8608 cat > conftest.$ac_ext <<EOF
8609 #line 8610 "configure"
8610 #include "confdefs.h"
8613 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8614 egrep "free" >/dev/null 2>&1; then
8618 ol_cv_header_stdc=no
8624 if test $ol_cv_header_stdc = yes; then
8625 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8626 if test "$cross_compiling" = yes; then
8629 cat > conftest.$ac_ext <<EOF
8630 #line 8631 "configure"
8631 #include "confdefs.h"
8634 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8635 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8637 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
8638 || ('j' <= (c) && (c) <= 'r') \
8639 || ('s' <= (c) && (c) <= 'z'))
8640 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8642 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8643 int main () { int i; for (i = 0; i < 256; i++)
8644 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
8648 if { (eval echo configure:8649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8652 echo "configure: failed program was:" >&5
8653 cat conftest.$ac_ext >&5
8655 ol_cv_header_stdc=no
8663 echo "$ac_t""$ol_cv_header_stdc" 1>&6
8664 if test $ol_cv_header_stdc = yes; then
8665 cat >> confdefs.h <<\EOF
8666 #define STDC_HEADERS 1
8670 ac_cv_header_stdc=disable
8673 if test $ol_cv_header_stdc != yes; then
8674 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
8678 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
8680 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8681 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
8682 echo "configure:8683: checking for $ac_hdr that defines DIR" >&5
8683 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
8684 echo $ac_n "(cached) $ac_c" 1>&6
8686 cat > conftest.$ac_ext <<EOF
8687 #line 8688 "configure"
8688 #include "confdefs.h"
8689 #include <sys/types.h>
8695 if { (eval echo configure:8696: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8697 eval "ac_cv_header_dirent_$ac_safe=yes"
8699 echo "configure: failed program was:" >&5
8700 cat conftest.$ac_ext >&5
8702 eval "ac_cv_header_dirent_$ac_safe=no"
8706 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
8707 echo "$ac_t""yes" 1>&6
8708 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8709 cat >> confdefs.h <<EOF
8710 #define $ac_tr_hdr 1
8712 ac_header_dirent=$ac_hdr; break
8714 echo "$ac_t""no" 1>&6
8717 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8718 if test $ac_header_dirent = dirent.h; then
8719 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
8720 echo "configure:8721: checking for opendir in -ldir" >&5
8721 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
8722 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8723 echo $ac_n "(cached) $ac_c" 1>&6
8725 ac_save_LIBS="$LIBS"
8727 cat > conftest.$ac_ext <<EOF
8728 #line 8729 "configure"
8729 #include "confdefs.h"
8730 /* Override any gcc2 internal prototype to avoid an error. */
8731 /* We use char because int might match the return type of a gcc2
8732 builtin and then its argument prototype would still apply. */
8739 if { (eval echo configure:8740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8741 eval "ac_cv_lib_$ac_lib_var=yes"
8743 echo "configure: failed program was:" >&5
8744 cat conftest.$ac_ext >&5
8746 eval "ac_cv_lib_$ac_lib_var=no"
8749 LIBS="$ac_save_LIBS"
8752 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8753 echo "$ac_t""yes" 1>&6
8756 echo "$ac_t""no" 1>&6
8760 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
8761 echo "configure:8762: checking for opendir in -lx" >&5
8762 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
8763 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8764 echo $ac_n "(cached) $ac_c" 1>&6
8766 ac_save_LIBS="$LIBS"
8768 cat > conftest.$ac_ext <<EOF
8769 #line 8770 "configure"
8770 #include "confdefs.h"
8771 /* Override any gcc2 internal prototype to avoid an error. */
8772 /* We use char because int might match the return type of a gcc2
8773 builtin and then its argument prototype would still apply. */
8780 if { (eval echo configure:8781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8782 eval "ac_cv_lib_$ac_lib_var=yes"
8784 echo "configure: failed program was:" >&5
8785 cat conftest.$ac_ext >&5
8787 eval "ac_cv_lib_$ac_lib_var=no"
8790 LIBS="$ac_save_LIBS"
8793 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8794 echo "$ac_t""yes" 1>&6
8797 echo "$ac_t""no" 1>&6
8802 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
8803 echo "configure:8804: checking for sys/wait.h that is POSIX.1 compatible" >&5
8804 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
8805 echo $ac_n "(cached) $ac_c" 1>&6
8807 cat > conftest.$ac_ext <<EOF
8808 #line 8809 "configure"
8809 #include "confdefs.h"
8810 #include <sys/types.h>
8811 #include <sys/wait.h>
8813 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8816 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8821 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8824 if { (eval echo configure:8825: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8826 ac_cv_header_sys_wait_h=yes
8828 echo "configure: failed program was:" >&5
8829 cat conftest.$ac_ext >&5
8831 ac_cv_header_sys_wait_h=no
8836 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
8837 if test $ac_cv_header_sys_wait_h = yes; then
8838 cat >> confdefs.h <<\EOF
8839 #define HAVE_SYS_WAIT_H 1
8844 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
8845 echo "configure:8846: checking POSIX termios" >&5
8846 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
8847 echo $ac_n "(cached) $ac_c" 1>&6
8849 cat > conftest.$ac_ext <<EOF
8850 #line 8851 "configure"
8851 #include "confdefs.h"
8852 #include <sys/types.h>
8854 #include <termios.h>
8856 /* SunOS 4.0.3 has termios.h but not the library calls. */
8860 if { (eval echo configure:8861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8862 am_cv_sys_posix_termios=yes
8864 echo "configure: failed program was:" >&5
8865 cat conftest.$ac_ext >&5
8867 am_cv_sys_posix_termios=no
8872 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
8875 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
8876 echo "configure:8877: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
8877 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
8878 echo $ac_n "(cached) $ac_c" 1>&6
8880 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
8882 gwinsz_in_termios_h=no
8883 if test $am_cv_sys_posix_termios = yes; then
8884 cat > conftest.$ac_ext <<EOF
8885 #line 8886 "configure"
8886 #include "confdefs.h"
8887 #include <sys/types.h>
8888 # include <termios.h>
8894 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8895 egrep "yes" >/dev/null 2>&1; then
8897 gwinsz_in_termios_h=yes
8903 if test $gwinsz_in_termios_h = no; then
8904 cat > conftest.$ac_ext <<EOF
8905 #line 8906 "configure"
8906 #include "confdefs.h"
8907 #include <sys/types.h>
8908 # include <sys/ioctl.h>
8914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8915 egrep "yes" >/dev/null 2>&1; then
8917 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
8925 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
8926 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
8927 cat >> confdefs.h <<\EOF
8928 #define GWINSZ_IN_SYS_IOCTL 1
8933 if test $am_cv_sys_posix_termios = yes ; then
8934 cat >> confdefs.h <<\EOF
8935 #define HAVE_POSIX_TERMIOS 1
8991 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8992 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8993 echo "configure:8994: checking for $ac_hdr" >&5
8994 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8995 echo $ac_n "(cached) $ac_c" 1>&6
8997 cat > conftest.$ac_ext <<EOF
8998 #line 8999 "configure"
8999 #include "confdefs.h"
9002 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9003 { (eval echo configure:9004: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9004 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9005 if test -z "$ac_err"; then
9007 eval "ac_cv_header_$ac_safe=yes"
9010 echo "configure: failed program was:" >&5
9011 cat conftest.$ac_ext >&5
9013 eval "ac_cv_header_$ac_safe=no"
9017 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9018 echo "$ac_t""yes" 1>&6
9019 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9020 cat >> confdefs.h <<EOF
9021 #define $ac_tr_hdr 1
9025 echo "$ac_t""no" 1>&6
9032 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
9033 echo "configure:9034: checking for sigset in -lV3" >&5
9034 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
9035 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9036 echo $ac_n "(cached) $ac_c" 1>&6
9038 ac_save_LIBS="$LIBS"
9040 cat > conftest.$ac_ext <<EOF
9041 #line 9042 "configure"
9042 #include "confdefs.h"
9043 /* Override any gcc2 internal prototype to avoid an error. */
9044 /* We use char because int might match the return type of a gcc2
9045 builtin and then its argument prototype would still apply. */
9052 if { (eval echo configure:9053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9054 eval "ac_cv_lib_$ac_lib_var=yes"
9056 echo "configure: failed program was:" >&5
9057 cat conftest.$ac_ext >&5
9059 eval "ac_cv_lib_$ac_lib_var=no"
9062 LIBS="$ac_save_LIBS"
9065 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9066 echo "$ac_t""yes" 1>&6
9067 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9068 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9069 cat >> confdefs.h <<EOF
9070 #define $ac_tr_lib 1
9076 echo "$ac_t""no" 1>&6
9080 if test "$ac_cv_header_winsock_h" = yes; then
9081 echo $ac_n "checking for winsock""... $ac_c" 1>&6
9082 echo "configure:9083: checking for winsock" >&5
9083 if eval "test \"\${ol_cv_winsock+set}\" = set"; then
9084 echo $ac_n "(cached) $ac_c" 1>&6
9087 for curlib in ws2_32 wsock32; do
9088 LIBS="$LIBS -l$curlib"
9089 cat > conftest.$ac_ext <<EOF
9090 #line 9091 "configure"
9091 #include "confdefs.h"
9092 #include <winsock.h>
9097 select(0,NULL,NULL,NULL,NULL);
9099 gethostname(NULL,0);
9103 if { (eval echo configure:9104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9107 echo "configure: failed program was:" >&5
9108 cat conftest.$ac_ext >&5
9114 if test $ol_cv_winsock = yes; then
9115 cat >> confdefs.h <<\EOF
9116 #define HAVE_WINSOCK 1
9119 ac_cv_func_socket=yes
9120 ac_cv_func_select=yes
9121 ac_cv_func_closesocket=yes
9122 ac_cv_func_gethostname=yes
9123 if test $curlib = ws2_32; then
9124 ol_cv_winsock=winsock2
9125 cat >> confdefs.h <<\EOF
9126 #define HAVE_WINSOCK2 1
9136 echo "$ac_t""$ol_cv_winsock" 1>&6
9140 echo $ac_n "checking for socket""... $ac_c" 1>&6
9141 echo "configure:9142: checking for socket" >&5
9142 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
9143 echo $ac_n "(cached) $ac_c" 1>&6
9145 cat > conftest.$ac_ext <<EOF
9146 #line 9147 "configure"
9147 #include "confdefs.h"
9148 /* System header to define __stub macros and hopefully few prototypes,
9149 which can conflict with char socket(); below. */
9151 /* Override any gcc2 internal prototype to avoid an error. */
9152 /* We use char because int might match the return type of a gcc2
9153 builtin and then its argument prototype would still apply. */
9159 /* The GNU C library defines this for functions which it implements
9160 to always fail with ENOSYS. Some functions are actually named
9161 something starting with __ and the normal name is an alias. */
9162 #if defined (__stub_socket) || defined (__stub___socket)
9170 if { (eval echo configure:9171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9172 eval "ac_cv_func_socket=yes"
9174 echo "configure: failed program was:" >&5
9175 cat conftest.$ac_ext >&5
9177 eval "ac_cv_func_socket=no"
9182 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
9183 echo "$ac_t""yes" 1>&6
9186 echo "$ac_t""no" 1>&6
9188 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
9189 echo "configure:9190: checking for main in -lsocket" >&5
9190 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
9191 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9192 echo $ac_n "(cached) $ac_c" 1>&6
9194 ac_save_LIBS="$LIBS"
9195 LIBS="-lsocket $LIBS"
9196 cat > conftest.$ac_ext <<EOF
9197 #line 9198 "configure"
9198 #include "confdefs.h"
9204 if { (eval echo configure:9205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9206 eval "ac_cv_lib_$ac_lib_var=yes"
9208 echo "configure: failed program was:" >&5
9209 cat conftest.$ac_ext >&5
9211 eval "ac_cv_lib_$ac_lib_var=no"
9214 LIBS="$ac_save_LIBS"
9217 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9218 echo "$ac_t""yes" 1>&6
9219 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9220 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9221 cat >> confdefs.h <<EOF
9222 #define $ac_tr_lib 1
9225 LIBS="-lsocket $LIBS"
9228 echo "$ac_t""no" 1>&6
9231 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
9232 echo "configure:9233: checking for main in -lnet" >&5
9233 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
9234 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9235 echo $ac_n "(cached) $ac_c" 1>&6
9237 ac_save_LIBS="$LIBS"
9239 cat > conftest.$ac_ext <<EOF
9240 #line 9241 "configure"
9241 #include "confdefs.h"
9247 if { (eval echo configure:9248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9249 eval "ac_cv_lib_$ac_lib_var=yes"
9251 echo "configure: failed program was:" >&5
9252 cat conftest.$ac_ext >&5
9254 eval "ac_cv_lib_$ac_lib_var=no"
9257 LIBS="$ac_save_LIBS"
9260 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9261 echo "$ac_t""yes" 1>&6
9262 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9263 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9264 cat >> confdefs.h <<EOF
9265 #define $ac_tr_lib 1
9271 echo "$ac_t""no" 1>&6
9274 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
9275 echo "configure:9276: checking for main in -lnsl_s" >&5
9276 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
9277 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9278 echo $ac_n "(cached) $ac_c" 1>&6
9280 ac_save_LIBS="$LIBS"
9281 LIBS="-lnsl_s $LIBS"
9282 cat > conftest.$ac_ext <<EOF
9283 #line 9284 "configure"
9284 #include "confdefs.h"
9290 if { (eval echo configure:9291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9292 eval "ac_cv_lib_$ac_lib_var=yes"
9294 echo "configure: failed program was:" >&5
9295 cat conftest.$ac_ext >&5
9297 eval "ac_cv_lib_$ac_lib_var=no"
9300 LIBS="$ac_save_LIBS"
9303 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9304 echo "$ac_t""yes" 1>&6
9305 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9306 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9307 cat >> confdefs.h <<EOF
9308 #define $ac_tr_lib 1
9311 LIBS="-lnsl_s $LIBS"
9314 echo "$ac_t""no" 1>&6
9317 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
9318 echo "configure:9319: checking for main in -lnsl" >&5
9319 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
9320 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9321 echo $ac_n "(cached) $ac_c" 1>&6
9323 ac_save_LIBS="$LIBS"
9325 cat > conftest.$ac_ext <<EOF
9326 #line 9327 "configure"
9327 #include "confdefs.h"
9333 if { (eval echo configure:9334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9335 eval "ac_cv_lib_$ac_lib_var=yes"
9337 echo "configure: failed program was:" >&5
9338 cat conftest.$ac_ext >&5
9340 eval "ac_cv_lib_$ac_lib_var=no"
9343 LIBS="$ac_save_LIBS"
9346 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9347 echo "$ac_t""yes" 1>&6
9348 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9349 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9350 cat >> confdefs.h <<EOF
9351 #define $ac_tr_lib 1
9357 echo "$ac_t""no" 1>&6
9360 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
9361 echo "configure:9362: checking for socket in -linet" >&5
9362 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
9363 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9364 echo $ac_n "(cached) $ac_c" 1>&6
9366 ac_save_LIBS="$LIBS"
9368 cat > conftest.$ac_ext <<EOF
9369 #line 9370 "configure"
9370 #include "confdefs.h"
9371 /* Override any gcc2 internal prototype to avoid an error. */
9372 /* We use char because int might match the return type of a gcc2
9373 builtin and then its argument prototype would still apply. */
9380 if { (eval echo configure:9381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9382 eval "ac_cv_lib_$ac_lib_var=yes"
9384 echo "configure: failed program was:" >&5
9385 cat conftest.$ac_ext >&5
9387 eval "ac_cv_lib_$ac_lib_var=no"
9390 LIBS="$ac_save_LIBS"
9393 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9394 echo "$ac_t""yes" 1>&6
9395 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9396 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9397 cat >> confdefs.h <<EOF
9398 #define $ac_tr_lib 1
9404 echo "$ac_t""no" 1>&6
9407 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
9408 echo "configure:9409: checking for main in -lgen" >&5
9409 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
9410 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9411 echo $ac_n "(cached) $ac_c" 1>&6
9413 ac_save_LIBS="$LIBS"
9415 cat > conftest.$ac_ext <<EOF
9416 #line 9417 "configure"
9417 #include "confdefs.h"
9423 if { (eval echo configure:9424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9425 eval "ac_cv_lib_$ac_lib_var=yes"
9427 echo "configure: failed program was:" >&5
9428 cat conftest.$ac_ext >&5
9430 eval "ac_cv_lib_$ac_lib_var=no"
9433 LIBS="$ac_save_LIBS"
9436 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9437 echo "$ac_t""yes" 1>&6
9438 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9439 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9440 cat >> confdefs.h <<EOF
9441 #define $ac_tr_lib 1
9447 echo "$ac_t""no" 1>&6
9454 echo $ac_n "checking for select""... $ac_c" 1>&6
9455 echo "configure:9456: checking for select" >&5
9456 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
9457 echo $ac_n "(cached) $ac_c" 1>&6
9459 cat > conftest.$ac_ext <<EOF
9460 #line 9461 "configure"
9461 #include "confdefs.h"
9462 /* System header to define __stub macros and hopefully few prototypes,
9463 which can conflict with char select(); below. */
9465 /* Override any gcc2 internal prototype to avoid an error. */
9466 /* We use char because int might match the return type of a gcc2
9467 builtin and then its argument prototype would still apply. */
9473 /* The GNU C library defines this for functions which it implements
9474 to always fail with ENOSYS. Some functions are actually named
9475 something starting with __ and the normal name is an alias. */
9476 #if defined (__stub_select) || defined (__stub___select)
9484 if { (eval echo configure:9485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9486 eval "ac_cv_func_select=yes"
9488 echo "configure: failed program was:" >&5
9489 cat conftest.$ac_ext >&5
9491 eval "ac_cv_func_select=no"
9496 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
9497 echo "$ac_t""yes" 1>&6
9500 echo "$ac_t""no" 1>&6
9501 { echo "configure: error: select() required." 1>&2; exit 1; }
9505 if test "${ac_cv_header_winsock_h}" != yes; then
9506 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
9507 echo "configure:9508: checking types of arguments for select()" >&5
9508 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
9509 echo $ac_n "(cached) $ac_c" 1>&6
9511 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
9512 echo $ac_n "(cached) $ac_c" 1>&6
9514 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
9515 echo $ac_n "(cached) $ac_c" 1>&6
9517 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
9518 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
9519 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
9520 cat > conftest.$ac_ext <<EOF
9521 #line 9522 "configure"
9522 #include "confdefs.h"
9523 #ifdef HAVE_SYS_TYPES_H
9524 #include <sys/types.h>
9526 #ifdef HAVE_SYS_TIME_H
9527 #include <sys/time.h>
9529 #ifdef HAVE_SYS_SELECT_H
9530 #include <sys/select.h>
9532 #ifdef HAVE_SYS_SOCKET_H
9533 #include <sys/socket.h>
9535 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);
9540 if { (eval echo configure:9541: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9542 ac_not_found=no ; break 3
9544 echo "configure: failed program was:" >&5
9545 cat conftest.$ac_ext >&5
9559 if test "$ac_not_found" = yes; then
9560 ac_cv_func_select_arg1=int
9561 ac_cv_func_select_arg234='int *'
9562 ac_cv_func_select_arg5='struct timeval *'
9564 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
9565 cat >> confdefs.h <<EOF
9566 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
9569 cat >> confdefs.h <<EOF
9570 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
9573 cat >> confdefs.h <<EOF
9574 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
9581 for ac_hdr in regex.h
9583 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9584 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9585 echo "configure:9586: checking for $ac_hdr" >&5
9586 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9587 echo $ac_n "(cached) $ac_c" 1>&6
9589 cat > conftest.$ac_ext <<EOF
9590 #line 9591 "configure"
9591 #include "confdefs.h"
9594 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9595 { (eval echo configure:9596: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9596 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9597 if test -z "$ac_err"; then
9599 eval "ac_cv_header_$ac_safe=yes"
9602 echo "configure: failed program was:" >&5
9603 cat conftest.$ac_ext >&5
9605 eval "ac_cv_header_$ac_safe=no"
9609 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9610 echo "$ac_t""yes" 1>&6
9611 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9612 cat >> confdefs.h <<EOF
9613 #define $ac_tr_hdr 1
9617 echo "$ac_t""no" 1>&6
9621 if test "$ac_cv_header_regex_h" != yes ; then
9622 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
9625 echo $ac_n "checking for library containing regfree""... $ac_c" 1>&6
9626 echo "configure:9627: checking for library containing regfree" >&5
9627 if eval "test \"\${ac_cv_search_regfree+set}\" = set"; then
9628 echo $ac_n "(cached) $ac_c" 1>&6
9630 ac_func_search_save_LIBS="$LIBS"
9631 ac_cv_search_regfree="no"
9632 cat > conftest.$ac_ext <<EOF
9633 #line 9634 "configure"
9634 #include "confdefs.h"
9635 /* Override any gcc2 internal prototype to avoid an error. */
9636 /* We use char because int might match the return type of a gcc2
9637 builtin and then its argument prototype would still apply. */
9644 if { (eval echo configure:9645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9646 ac_cv_search_regfree="none required"
9648 echo "configure: failed program was:" >&5
9649 cat conftest.$ac_ext >&5
9652 test "$ac_cv_search_regfree" = "no" && for ac_lib in regex gnuregex; do
9653 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9654 cat > conftest.$ac_ext <<EOF
9655 #line 9656 "configure"
9656 #include "confdefs.h"
9657 /* Override any gcc2 internal prototype to avoid an error. */
9658 /* We use char because int might match the return type of a gcc2
9659 builtin and then its argument prototype would still apply. */
9666 if { (eval echo configure:9667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9668 ac_cv_search_regfree="-l$ac_lib"
9671 echo "configure: failed program was:" >&5
9672 cat conftest.$ac_ext >&5
9676 LIBS="$ac_func_search_save_LIBS"
9679 echo "$ac_t""$ac_cv_search_regfree" 1>&6
9680 if test "$ac_cv_search_regfree" != "no"; then
9681 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
9684 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
9688 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
9689 echo "configure:9690: checking for compatible POSIX regex" >&5
9690 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
9691 echo $ac_n "(cached) $ac_c" 1>&6
9694 if test "$cross_compiling" = yes; then
9695 ol_cv_c_posix_regex=cross
9697 cat > conftest.$ac_ext <<EOF
9698 #line 9699 "configure"
9699 #include "confdefs.h"
9701 #include <sys/types.h>
9703 static char *pattern, *string;
9711 if(regcomp(&re, pattern, 0)) {
9715 string = "ALL MATCH";
9717 rc = regexec(&re, string, 0, (void*)0, 0);
9724 if { (eval echo configure:9725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9726 ol_cv_c_posix_regex=yes
9728 echo "configure: failed program was:" >&5
9729 cat conftest.$ac_ext >&5
9731 ol_cv_c_posix_regex=no
9738 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
9740 if test "$ol_cv_c_posix_regex" = no ; then
9741 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
9746 for ac_hdr in sys/uuid.h
9748 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9749 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9750 echo "configure:9751: checking for $ac_hdr" >&5
9751 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9752 echo $ac_n "(cached) $ac_c" 1>&6
9754 cat > conftest.$ac_ext <<EOF
9755 #line 9756 "configure"
9756 #include "confdefs.h"
9759 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9760 { (eval echo configure:9761: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9761 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9762 if test -z "$ac_err"; then
9764 eval "ac_cv_header_$ac_safe=yes"
9767 echo "configure: failed program was:" >&5
9768 cat conftest.$ac_ext >&5
9770 eval "ac_cv_header_$ac_safe=no"
9774 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9775 echo "$ac_t""yes" 1>&6
9776 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9777 cat >> confdefs.h <<EOF
9778 #define $ac_tr_hdr 1
9782 echo "$ac_t""no" 1>&6
9786 if test $ac_cv_header_sys_uuid_h = yes ; then
9789 echo $ac_n "checking for library containing uuid_to_str""... $ac_c" 1>&6
9790 echo "configure:9791: checking for library containing uuid_to_str" >&5
9791 if eval "test \"\${ac_cv_search_uuid_to_str+set}\" = set"; then
9792 echo $ac_n "(cached) $ac_c" 1>&6
9794 ac_func_search_save_LIBS="$LIBS"
9795 ac_cv_search_uuid_to_str="no"
9796 cat > conftest.$ac_ext <<EOF
9797 #line 9798 "configure"
9798 #include "confdefs.h"
9799 /* Override any gcc2 internal prototype to avoid an error. */
9800 /* We use char because int might match the return type of a gcc2
9801 builtin and then its argument prototype would still apply. */
9808 if { (eval echo configure:9809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9810 ac_cv_search_uuid_to_str="none required"
9812 echo "configure: failed program was:" >&5
9813 cat conftest.$ac_ext >&5
9816 test "$ac_cv_search_uuid_to_str" = "no" && for ac_lib in uuid; do
9817 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9818 cat > conftest.$ac_ext <<EOF
9819 #line 9820 "configure"
9820 #include "confdefs.h"
9821 /* Override any gcc2 internal prototype to avoid an error. */
9822 /* We use char because int might match the return type of a gcc2
9823 builtin and then its argument prototype would still apply. */
9830 if { (eval echo configure:9831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9832 ac_cv_search_uuid_to_str="-l$ac_lib"
9835 echo "configure: failed program was:" >&5
9836 cat conftest.$ac_ext >&5
9840 LIBS="$ac_func_search_save_LIBS"
9843 echo "$ac_t""$ac_cv_search_uuid_to_str" 1>&6
9844 if test "$ac_cv_search_uuid_to_str" != "no"; then
9845 test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
9852 if test have_uuid = yes ; then
9853 cat >> confdefs.h <<\EOF
9854 #define HAVE_UUID_TO_STR 1
9858 test "$ac_cv_search_uuid_to_str" = "none required" || \
9859 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
9863 if test $have_uuid = no ; then
9864 echo $ac_n "checking to see if -lrpcrt4 is needed for win32 UUID support""... $ac_c" 1>&6
9865 echo "configure:9866: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
9867 LIBS="$LIBS -lrpcrt4"
9868 cat > conftest.$ac_ext <<EOF
9869 #line 9870 "configure"
9870 #include "confdefs.h"
9872 int __stdcall UuidCreate(void *);
9873 int __stdcall UuidToStringA(void *,void **);
9882 if { (eval echo configure:9883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9886 echo "configure: failed program was:" >&5
9887 cat conftest.$ac_ext >&5
9892 if test $need_rpcrt = yes; then
9893 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
9896 echo "$ac_t""$need_rpcrt" 1>&6
9900 echo $ac_n "checking for res_query""... $ac_c" 1>&6
9901 echo "configure:9902: checking for res_query" >&5
9902 if eval "test \"\${ac_cv_func_res_query+set}\" = set"; then
9903 echo $ac_n "(cached) $ac_c" 1>&6
9905 cat > conftest.$ac_ext <<EOF
9906 #line 9907 "configure"
9907 #include "confdefs.h"
9908 /* System header to define __stub macros and hopefully few prototypes,
9909 which can conflict with char res_query(); below. */
9911 /* Override any gcc2 internal prototype to avoid an error. */
9912 /* We use char because int might match the return type of a gcc2
9913 builtin and then its argument prototype would still apply. */
9919 /* The GNU C library defines this for functions which it implements
9920 to always fail with ENOSYS. Some functions are actually named
9921 something starting with __ and the normal name is an alias. */
9922 #if defined (__stub_res_query) || defined (__stub___res_query)
9930 if { (eval echo configure:9931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9932 eval "ac_cv_func_res_query=yes"
9934 echo "configure: failed program was:" >&5
9935 cat conftest.$ac_ext >&5
9937 eval "ac_cv_func_res_query=no"
9942 if eval "test \"`echo '$ac_cv_func_'res_query`\" = yes"; then
9943 echo "$ac_t""yes" 1>&6
9946 echo "$ac_t""no" 1>&6
9949 if test $ac_cv_func_res_query = no ; then
9950 echo $ac_n "checking for __res_query""... $ac_c" 1>&6
9951 echo "configure:9952: checking for __res_query" >&5
9952 if eval "test \"\${ac_cv_func___res_query+set}\" = set"; then
9953 echo $ac_n "(cached) $ac_c" 1>&6
9955 cat > conftest.$ac_ext <<EOF
9956 #line 9957 "configure"
9957 #include "confdefs.h"
9958 /* System header to define __stub macros and hopefully few prototypes,
9959 which can conflict with char __res_query(); below. */
9961 /* Override any gcc2 internal prototype to avoid an error. */
9962 /* We use char because int might match the return type of a gcc2
9963 builtin and then its argument prototype would still apply. */
9969 /* The GNU C library defines this for functions which it implements
9970 to always fail with ENOSYS. Some functions are actually named
9971 something starting with __ and the normal name is an alias. */
9972 #if defined (__stub___res_query) || defined (__stub_____res_query)
9980 if { (eval echo configure:9981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9982 eval "ac_cv_func___res_query=yes"
9984 echo "configure: failed program was:" >&5
9985 cat conftest.$ac_ext >&5
9987 eval "ac_cv_func___res_query=no"
9992 if eval "test \"`echo '$ac_cv_func_'__res_query`\" = yes"; then
9993 echo "$ac_t""yes" 1>&6
9996 echo "$ac_t""no" 1>&6
9999 ac_cv_func_res_query=$ac_cv_func___res_query
10002 if test $ac_cv_func_res_query = no ; then
10003 echo $ac_n "checking for res_query in -lbind""... $ac_c" 1>&6
10004 echo "configure:10005: checking for res_query in -lbind" >&5
10005 ac_lib_var=`echo bind'_'res_query | sed 'y%./+-:%__p__%'`
10006 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10007 echo $ac_n "(cached) $ac_c" 1>&6
10009 ac_save_LIBS="$LIBS"
10010 LIBS="-lbind $LIBS"
10011 cat > conftest.$ac_ext <<EOF
10012 #line 10013 "configure"
10013 #include "confdefs.h"
10014 /* Override any gcc2 internal prototype to avoid an error. */
10015 /* We use char because int might match the return type of a gcc2
10016 builtin and then its argument prototype would still apply. */
10023 if { (eval echo configure:10024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10025 eval "ac_cv_lib_$ac_lib_var=yes"
10027 echo "configure: failed program was:" >&5
10028 cat conftest.$ac_ext >&5
10030 eval "ac_cv_lib_$ac_lib_var=no"
10033 LIBS="$ac_save_LIBS"
10036 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10037 echo "$ac_t""yes" 1>&6
10038 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10039 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10040 cat >> confdefs.h <<EOF
10041 #define $ac_tr_lib 1
10044 LIBS="-lbind $LIBS"
10047 echo "$ac_t""no" 1>&6
10050 ac_cv_func_res_query=$ac_cv_lib_bind_res_query
10053 if test $ac_cv_func_res_query = no ; then
10054 echo $ac_n "checking for __res_query in -lbind""... $ac_c" 1>&6
10055 echo "configure:10056: checking for __res_query in -lbind" >&5
10056 ac_lib_var=`echo bind'_'__res_query | sed 'y%./+-:%__p__%'`
10057 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10058 echo $ac_n "(cached) $ac_c" 1>&6
10060 ac_save_LIBS="$LIBS"
10061 LIBS="-lbind $LIBS"
10062 cat > conftest.$ac_ext <<EOF
10063 #line 10064 "configure"
10064 #include "confdefs.h"
10065 /* Override any gcc2 internal prototype to avoid an error. */
10066 /* We use char because int might match the return type of a gcc2
10067 builtin and then its argument prototype would still apply. */
10068 char __res_query();
10074 if { (eval echo configure:10075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10076 eval "ac_cv_lib_$ac_lib_var=yes"
10078 echo "configure: failed program was:" >&5
10079 cat conftest.$ac_ext >&5
10081 eval "ac_cv_lib_$ac_lib_var=no"
10084 LIBS="$ac_save_LIBS"
10087 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10088 echo "$ac_t""yes" 1>&6
10089 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10090 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10091 cat >> confdefs.h <<EOF
10092 #define $ac_tr_lib 1
10095 LIBS="-lbind $LIBS"
10098 echo "$ac_t""no" 1>&6
10101 ac_cv_func_res_query=$ac_cv_lib_bind___res_query
10104 if test $ac_cv_func_res_query = no ; then
10105 echo $ac_n "checking for res_query in -lresolv""... $ac_c" 1>&6
10106 echo "configure:10107: checking for res_query in -lresolv" >&5
10107 ac_lib_var=`echo resolv'_'res_query | sed 'y%./+-:%__p__%'`
10108 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10109 echo $ac_n "(cached) $ac_c" 1>&6
10111 ac_save_LIBS="$LIBS"
10112 LIBS="-lresolv $LIBS"
10113 cat > conftest.$ac_ext <<EOF
10114 #line 10115 "configure"
10115 #include "confdefs.h"
10116 /* Override any gcc2 internal prototype to avoid an error. */
10117 /* We use char because int might match the return type of a gcc2
10118 builtin and then its argument prototype would still apply. */
10125 if { (eval echo configure:10126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10127 eval "ac_cv_lib_$ac_lib_var=yes"
10129 echo "configure: failed program was:" >&5
10130 cat conftest.$ac_ext >&5
10132 eval "ac_cv_lib_$ac_lib_var=no"
10135 LIBS="$ac_save_LIBS"
10138 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10139 echo "$ac_t""yes" 1>&6
10140 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10141 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10142 cat >> confdefs.h <<EOF
10143 #define $ac_tr_lib 1
10146 LIBS="-lresolv $LIBS"
10149 echo "$ac_t""no" 1>&6
10152 ac_cv_func_res_query=$ac_cv_lib_resolv_res_query
10155 if test $ac_cv_func_res_query = no ; then
10156 echo $ac_n "checking for __res_query in -lresolv""... $ac_c" 1>&6
10157 echo "configure:10158: checking for __res_query in -lresolv" >&5
10158 ac_lib_var=`echo resolv'_'__res_query | sed 'y%./+-:%__p__%'`
10159 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10160 echo $ac_n "(cached) $ac_c" 1>&6
10162 ac_save_LIBS="$LIBS"
10163 LIBS="-lresolv $LIBS"
10164 cat > conftest.$ac_ext <<EOF
10165 #line 10166 "configure"
10166 #include "confdefs.h"
10167 /* Override any gcc2 internal prototype to avoid an error. */
10168 /* We use char because int might match the return type of a gcc2
10169 builtin and then its argument prototype would still apply. */
10170 char __res_query();
10176 if { (eval echo configure:10177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10178 eval "ac_cv_lib_$ac_lib_var=yes"
10180 echo "configure: failed program was:" >&5
10181 cat conftest.$ac_ext >&5
10183 eval "ac_cv_lib_$ac_lib_var=no"
10186 LIBS="$ac_save_LIBS"
10189 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10190 echo "$ac_t""yes" 1>&6
10191 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10192 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10193 cat >> confdefs.h <<EOF
10194 #define $ac_tr_lib 1
10197 LIBS="-lresolv $LIBS"
10200 echo "$ac_t""no" 1>&6
10203 ac_cv_func_res_query=$ac_cv_lib_resolv___res_query
10206 if test "$ac_cv_func_res_query" = yes ; then
10207 cat >> confdefs.h <<\EOF
10208 #define HAVE_RES_QUERY 1
10212 if test $ol_enable_dnssrv != no ; then
10217 if test "$ol_enable_dnssrv" = yes -a "$ol_link_dnssrv" = no ; then
10218 { echo "configure: error: DNSSRV requires res_query()" 1>&2; exit 1; }
10221 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
10223 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10224 echo "configure:10225: checking for $ac_func" >&5
10225 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10226 echo $ac_n "(cached) $ac_c" 1>&6
10228 cat > conftest.$ac_ext <<EOF
10229 #line 10230 "configure"
10230 #include "confdefs.h"
10231 /* System header to define __stub macros and hopefully few prototypes,
10232 which can conflict with char $ac_func(); below. */
10233 #include <assert.h>
10234 /* Override any gcc2 internal prototype to avoid an error. */
10235 /* We use char because int might match the return type of a gcc2
10236 builtin and then its argument prototype would still apply. */
10242 /* The GNU C library defines this for functions which it implements
10243 to always fail with ENOSYS. Some functions are actually named
10244 something starting with __ and the normal name is an alias. */
10245 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10253 if { (eval echo configure:10254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10255 eval "ac_cv_func_$ac_func=yes"
10257 echo "configure: failed program was:" >&5
10258 cat conftest.$ac_ext >&5
10260 eval "ac_cv_func_$ac_func=no"
10265 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10266 echo "$ac_t""yes" 1>&6
10267 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10268 cat >> confdefs.h <<EOF
10269 #define $ac_tr_func 1
10273 echo "$ac_t""no" 1>&6
10279 if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then
10280 if test $ol_enable_ipv6 = yes ; then
10281 { echo "configure: error: IPv6 support requires getaddrinfo() and inet_ntop()" 1>&2; exit 1; }
10283 elif test $ol_enable_ipv6 != no ; then
10284 echo $ac_n "checking INET6_ADDRSTRLEN""... $ac_c" 1>&6
10285 echo "configure:10286: checking INET6_ADDRSTRLEN" >&5
10286 if eval "test \"\${ol_cv_inet6_addrstrlen+set}\" = set"; then
10287 echo $ac_n "(cached) $ac_c" 1>&6
10290 cat > conftest.$ac_ext <<EOF
10291 #line 10292 "configure"
10292 #include "confdefs.h"
10294 # include <netinet/in.h>
10295 # ifdef INET6_ADDRSTRLEN
10296 __has_inet6_addrstrlen__;
10300 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10301 egrep "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
10303 ol_cv_inet6_addrstrlen=yes
10306 ol_cv_inet6_addrstrlen=no
10312 echo "$ac_t""$ol_cv_inet6_addrstrlen" 1>&6
10315 echo $ac_n "checking struct sockaddr_storage""... $ac_c" 1>&6
10316 echo "configure:10317: checking struct sockaddr_storage" >&5
10317 if eval "test \"\${ol_cv_struct_sockaddr_storage+set}\" = set"; then
10318 echo $ac_n "(cached) $ac_c" 1>&6
10321 cat > conftest.$ac_ext <<EOF
10322 #line 10323 "configure"
10323 #include "confdefs.h"
10325 #include <sys/types.h>
10326 #include <sys/socket.h>
10330 struct sockaddr_storage ss;
10334 if { (eval echo configure:10335: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10336 ol_cv_struct_sockaddr_storage=yes
10338 echo "configure: failed program was:" >&5
10339 cat conftest.$ac_ext >&5
10341 ol_cv_struct_sockaddr_storage=no
10346 echo "$ac_t""$ol_cv_struct_sockaddr_storage" 1>&6
10348 if test $ol_cv_inet6_addrstrlen = yes \
10349 -a $ol_cv_struct_sockaddr_storage = yes ; then
10351 elif test $ol_enable_ipv6 = yes \
10352 -a $ol_cv_inet6_addrstrlen = no ; then
10353 { echo "configure: error: IPv6 support requires INET6_ADDRSTRLEN" 1>&2; exit 1; }
10354 elif test $ol_enable_ipv6 = yes \
10355 -a $ol_cv_struct_sockaddr_storage = no ; then
10356 { echo "configure: error: IPv6 support requires struct sockaddr_storage" 1>&2; exit 1; }
10360 if test $ol_enable_local != no ; then
10361 for ac_hdr in sys/un.h
10363 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10364 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10365 echo "configure:10366: checking for $ac_hdr" >&5
10366 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10367 echo $ac_n "(cached) $ac_c" 1>&6
10369 cat > conftest.$ac_ext <<EOF
10370 #line 10371 "configure"
10371 #include "confdefs.h"
10374 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10375 { (eval echo configure:10376: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10376 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10377 if test -z "$ac_err"; then
10379 eval "ac_cv_header_$ac_safe=yes"
10382 echo "configure: failed program was:" >&5
10383 cat conftest.$ac_ext >&5
10385 eval "ac_cv_header_$ac_safe=no"
10389 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10390 echo "$ac_t""yes" 1>&6
10391 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10392 cat >> confdefs.h <<EOF
10393 #define $ac_tr_hdr 1
10397 echo "$ac_t""no" 1>&6
10402 if test $ol_enable_local = auto ; then
10403 ol_enable_local=$ac_cv_header_sys_un_h
10404 elif test $ac_cv_header_sys_un_h = no ; then
10405 { echo "configure: error: AF_LOCAL domain support requires sys/un.h" 1>&2; exit 1; }
10414 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
10415 -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
10416 -o $ol_with_kerberos = k425 ; then
10418 for ac_hdr in krb5.h
10420 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10421 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10422 echo "configure:10423: checking for $ac_hdr" >&5
10423 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10424 echo $ac_n "(cached) $ac_c" 1>&6
10426 cat > conftest.$ac_ext <<EOF
10427 #line 10428 "configure"
10428 #include "confdefs.h"
10431 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10432 { (eval echo configure:10433: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10433 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10434 if test -z "$ac_err"; then
10436 eval "ac_cv_header_$ac_safe=yes"
10439 echo "configure: failed program was:" >&5
10440 cat conftest.$ac_ext >&5
10442 eval "ac_cv_header_$ac_safe=no"
10446 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10447 echo "$ac_t""yes" 1>&6
10448 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10449 cat >> confdefs.h <<EOF
10450 #define $ac_tr_hdr 1
10454 echo "$ac_t""no" 1>&6
10459 if test $ac_cv_header_krb5_h = yes ; then
10460 for ac_hdr in heim_err.h
10462 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10463 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10464 echo "configure:10465: checking for $ac_hdr" >&5
10465 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10466 echo $ac_n "(cached) $ac_c" 1>&6
10468 cat > conftest.$ac_ext <<EOF
10469 #line 10470 "configure"
10470 #include "confdefs.h"
10473 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10474 { (eval echo configure:10475: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10475 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10476 if test -z "$ac_err"; then
10478 eval "ac_cv_header_$ac_safe=yes"
10481 echo "configure: failed program was:" >&5
10482 cat conftest.$ac_ext >&5
10484 eval "ac_cv_header_$ac_safe=no"
10488 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10489 echo "$ac_t""yes" 1>&6
10490 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10491 cat >> confdefs.h <<EOF
10492 #define $ac_tr_hdr 1
10496 echo "$ac_t""no" 1>&6
10500 if test $ac_cv_header_heim_err_h = yes ; then
10506 if test $krb5_impl = mit; then
10507 echo $ac_n "checking for main in -lk5crypto""... $ac_c" 1>&6
10508 echo "configure:10509: checking for main in -lk5crypto" >&5
10509 ac_lib_var=`echo k5crypto'_'main | sed 'y%./+-:%__p__%'`
10510 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10511 echo $ac_n "(cached) $ac_c" 1>&6
10513 ac_save_LIBS="$LIBS"
10514 LIBS="-lk5crypto $LIBS"
10515 cat > conftest.$ac_ext <<EOF
10516 #line 10517 "configure"
10517 #include "confdefs.h"
10523 if { (eval echo configure:10524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10525 eval "ac_cv_lib_$ac_lib_var=yes"
10527 echo "configure: failed program was:" >&5
10528 cat conftest.$ac_ext >&5
10530 eval "ac_cv_lib_$ac_lib_var=no"
10533 LIBS="$ac_save_LIBS"
10536 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10537 echo "$ac_t""yes" 1>&6
10538 krb5crypto=k5crypto
10540 echo "$ac_t""no" 1>&6
10545 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
10546 echo "configure:10547: checking for main in -lkrb5" >&5
10547 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
10548 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10549 echo $ac_n "(cached) $ac_c" 1>&6
10551 ac_save_LIBS="$LIBS"
10552 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
10553 cat > conftest.$ac_ext <<EOF
10554 #line 10555 "configure"
10555 #include "confdefs.h"
10561 if { (eval echo configure:10562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10563 eval "ac_cv_lib_$ac_lib_var=yes"
10565 echo "configure: failed program was:" >&5
10566 cat conftest.$ac_ext >&5
10568 eval "ac_cv_lib_$ac_lib_var=no"
10571 LIBS="$ac_save_LIBS"
10574 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10575 echo "$ac_t""yes" 1>&6
10577 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
10579 echo "$ac_t""no" 1>&6
10584 elif test $krb5_impl = heimdal; then
10585 echo $ac_n "checking for main in -ldes""... $ac_c" 1>&6
10586 echo "configure:10587: checking for main in -ldes" >&5
10587 ac_lib_var=`echo des'_'main | sed 'y%./+-:%__p__%'`
10588 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10589 echo $ac_n "(cached) $ac_c" 1>&6
10591 ac_save_LIBS="$LIBS"
10593 cat > conftest.$ac_ext <<EOF
10594 #line 10595 "configure"
10595 #include "confdefs.h"
10601 if { (eval echo configure:10602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10603 eval "ac_cv_lib_$ac_lib_var=yes"
10605 echo "configure: failed program was:" >&5
10606 cat conftest.$ac_ext >&5
10608 eval "ac_cv_lib_$ac_lib_var=no"
10611 LIBS="$ac_save_LIBS"
10614 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10615 echo "$ac_t""yes" 1>&6
10618 echo "$ac_t""no" 1>&6
10623 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
10624 echo "configure:10625: checking for main in -lkrb5" >&5
10625 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
10626 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10627 echo $ac_n "(cached) $ac_c" 1>&6
10629 ac_save_LIBS="$LIBS"
10630 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
10631 cat > conftest.$ac_ext <<EOF
10632 #line 10633 "configure"
10633 #include "confdefs.h"
10639 if { (eval echo configure:10640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10641 eval "ac_cv_lib_$ac_lib_var=yes"
10643 echo "configure: failed program was:" >&5
10644 cat conftest.$ac_ext >&5
10646 eval "ac_cv_lib_$ac_lib_var=no"
10649 LIBS="$ac_save_LIBS"
10652 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10653 echo "$ac_t""yes" 1>&6
10655 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
10657 echo "$ac_t""no" 1>&6
10662 cat >> confdefs.h <<\EOF
10663 #define HAVE_HEIMDAL_KERBEROS 1
10669 echo "configure: warning: Unrecognized Kerberos5 Implementation" 1>&2
10672 if test $have_krb5 = yes ; then
10675 cat >> confdefs.h <<\EOF
10676 #define HAVE_KRB5 1
10680 if test $ol_enable_kpasswd != no ; then
10681 ol_link_kpasswd=yes;
10684 if test $ol_with_kerberos = k5only ; then
10685 ol_with_kerberos=found
10688 elif test $ol_with_kerberos != auto ; then
10689 { echo "configure: error: Required Kerberos 5 support not available" 1>&2; exit 1; }
10695 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
10696 $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
10698 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
10700 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10701 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10702 echo "configure:10703: checking for $ac_hdr" >&5
10703 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10704 echo $ac_n "(cached) $ac_c" 1>&6
10706 cat > conftest.$ac_ext <<EOF
10707 #line 10708 "configure"
10708 #include "confdefs.h"
10711 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10712 { (eval echo configure:10713: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10713 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10714 if test -z "$ac_err"; then
10716 eval "ac_cv_header_$ac_safe=yes"
10719 echo "configure: failed program was:" >&5
10720 cat conftest.$ac_ext >&5
10722 eval "ac_cv_header_$ac_safe=no"
10726 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10727 echo "$ac_t""yes" 1>&6
10728 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10729 cat >> confdefs.h <<EOF
10730 #define $ac_tr_hdr 1
10734 echo "$ac_t""no" 1>&6
10739 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
10740 if test $krb5_impl = mit; then
10741 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
10742 echo "configure:10743: checking for main in -lkrb4" >&5
10743 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
10744 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10745 echo $ac_n "(cached) $ac_c" 1>&6
10747 ac_save_LIBS="$LIBS"
10748 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
10749 cat > conftest.$ac_ext <<EOF
10750 #line 10751 "configure"
10751 #include "confdefs.h"
10757 if { (eval echo configure:10758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10759 eval "ac_cv_lib_$ac_lib_var=yes"
10761 echo "configure: failed program was:" >&5
10762 cat conftest.$ac_ext >&5
10764 eval "ac_cv_lib_$ac_lib_var=no"
10767 LIBS="$ac_save_LIBS"
10770 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10771 echo "$ac_t""yes" 1>&6
10773 KRB4_LIBS="-lkrb4 -ldes425"
10775 echo "$ac_t""no" 1>&6
10780 elif test $krb5_impl = heimdal; then
10781 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
10782 echo "configure:10783: checking for main in -lkrb4" >&5
10783 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
10784 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10785 echo $ac_n "(cached) $ac_c" 1>&6
10787 ac_save_LIBS="$LIBS"
10788 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
10789 cat > conftest.$ac_ext <<EOF
10790 #line 10791 "configure"
10791 #include "confdefs.h"
10797 if { (eval echo configure:10798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10799 eval "ac_cv_lib_$ac_lib_var=yes"
10801 echo "configure: failed program was:" >&5
10802 cat conftest.$ac_ext >&5
10804 eval "ac_cv_lib_$ac_lib_var=no"
10807 LIBS="$ac_save_LIBS"
10810 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10811 echo "$ac_t""yes" 1>&6
10815 echo "$ac_t""no" 1>&6
10822 echo "configure: warning: Unrecongized Kerberos V Implementation" 1>&2
10825 if test $have_k425 = yes ; then
10826 ol_with_kerberos=found
10829 cat >> confdefs.h <<\EOF
10830 #define HAVE_KRB425 1
10833 cat >> confdefs.h <<\EOF
10834 #define HAVE_KRB4 1
10838 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
10839 echo "configure:10840: checking for des_debug in Kerberos libraries" >&5
10840 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
10841 echo $ac_n "(cached) $ac_c" 1>&6
10845 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
10846 cat > conftest.$ac_ext <<EOF
10847 #line 10848 "configure"
10848 #include "confdefs.h"
10850 #include <kerberosIV/krb.h>
10851 #include <kerberosIV/des.h>
10852 extern int des_debug;
10860 if { (eval echo configure:10861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10862 ol_cv_var_des_debug=yes
10864 echo "configure: failed program was:" >&5
10865 cat conftest.$ac_ext >&5
10867 ol_cv_var_des_debug=no
10874 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
10876 if test $ol_cv_var_des_debug = yes ; then
10877 cat >> confdefs.h <<\EOF
10878 #define HAVE_DES_DEBUG 1
10888 if test $ol_link_krb5 = yes ; then
10889 ol_with_kerberos=found
10892 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
10893 -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
10895 for ac_hdr in krb.h des.h krb-archaeology.h
10897 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10898 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10899 echo "configure:10900: checking for $ac_hdr" >&5
10900 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10901 echo $ac_n "(cached) $ac_c" 1>&6
10903 cat > conftest.$ac_ext <<EOF
10904 #line 10905 "configure"
10905 #include "confdefs.h"
10908 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10909 { (eval echo configure:10910: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10910 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10911 if test -z "$ac_err"; then
10913 eval "ac_cv_header_$ac_safe=yes"
10916 echo "configure: failed program was:" >&5
10917 cat conftest.$ac_ext >&5
10919 eval "ac_cv_header_$ac_safe=no"
10923 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10924 echo "$ac_t""yes" 1>&6
10925 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10926 cat >> confdefs.h <<EOF
10927 #define $ac_tr_hdr 1
10931 echo "$ac_t""no" 1>&6
10936 if test $ac_cv_header_krb_h = yes ; then
10937 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
10938 echo "configure:10939: checking for main in -lkrb" >&5
10939 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
10940 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10941 echo $ac_n "(cached) $ac_c" 1>&6
10943 ac_save_LIBS="$LIBS"
10944 LIBS="-lkrb -ldes $LIBS"
10945 cat > conftest.$ac_ext <<EOF
10946 #line 10947 "configure"
10947 #include "confdefs.h"
10953 if { (eval echo configure:10954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10955 eval "ac_cv_lib_$ac_lib_var=yes"
10957 echo "configure: failed program was:" >&5
10958 cat conftest.$ac_ext >&5
10960 eval "ac_cv_lib_$ac_lib_var=no"
10963 LIBS="$ac_save_LIBS"
10966 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10967 echo "$ac_t""yes" 1>&6
10970 echo "$ac_t""no" 1>&6
10975 if test $have_k4 = yes ; then
10976 ol_with_kerberos=found
10979 cat >> confdefs.h <<\EOF
10980 #define HAVE_KRB4 1
10984 KRB4_LIBS="-lkrb -ldes"
10986 if test $ac_cv_header_krb_archaeology_h = yes ; then
10987 cat >> confdefs.h <<\EOF
10988 #define HAVE_KTH_KERBEROS 1
10996 if test $ol_link_krb4 = yes -a $ol_enable_kpasswd != no ; then
10997 ol_link_kpasswd=yes
11000 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
11003 elif test $ol_enable_kbind = yes ; then
11004 { echo "configure: error: Kerberos IV detection failed" 1>&2; exit 1; }
11007 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
11008 cat >> confdefs.h <<\EOF
11009 #define HAVE_KERBEROS 1
11013 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
11014 { echo "configure: error: Kerberos detection failed" 1>&2; exit 1; }
11018 if test $ol_with_tls != no ; then
11019 for ac_hdr in openssl/ssl.h ssl.h
11021 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11022 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11023 echo "configure:11024: checking for $ac_hdr" >&5
11024 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11025 echo $ac_n "(cached) $ac_c" 1>&6
11027 cat > conftest.$ac_ext <<EOF
11028 #line 11029 "configure"
11029 #include "confdefs.h"
11032 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11033 { (eval echo configure:11034: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11034 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11035 if test -z "$ac_err"; then
11037 eval "ac_cv_header_$ac_safe=yes"
11040 echo "configure: failed program was:" >&5
11041 cat conftest.$ac_ext >&5
11043 eval "ac_cv_header_$ac_safe=no"
11047 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11048 echo "$ac_t""yes" 1>&6
11049 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11050 cat >> confdefs.h <<EOF
11051 #define $ac_tr_hdr 1
11055 echo "$ac_t""no" 1>&6
11060 if test $ac_cv_header_openssl_ssl_h = yes \
11061 -o $ac_cv_header_ssl_h = yes ; then
11062 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
11063 echo "configure:11064: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
11064 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
11065 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11066 echo $ac_n "(cached) $ac_c" 1>&6
11068 ac_save_LIBS="$LIBS"
11069 LIBS="-lssl -lcrypto $LIBS"
11070 cat > conftest.$ac_ext <<EOF
11071 #line 11072 "configure"
11072 #include "confdefs.h"
11073 /* Override any gcc2 internal prototype to avoid an error. */
11074 /* We use char because int might match the return type of a gcc2
11075 builtin and then its argument prototype would still apply. */
11076 char SSLeay_add_ssl_algorithms();
11079 SSLeay_add_ssl_algorithms()
11082 if { (eval echo configure:11083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11084 eval "ac_cv_lib_$ac_lib_var=yes"
11086 echo "configure: failed program was:" >&5
11087 cat conftest.$ac_ext >&5
11089 eval "ac_cv_lib_$ac_lib_var=no"
11092 LIBS="$ac_save_LIBS"
11095 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11096 echo "$ac_t""yes" 1>&6
11100 echo "$ac_t""no" 1>&6
11105 if test $have_ssleay = no ; then
11106 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
11107 echo "configure:11108: checking for SSL_library_init in -lssl" >&5
11108 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
11109 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11110 echo $ac_n "(cached) $ac_c" 1>&6
11112 ac_save_LIBS="$LIBS"
11113 LIBS="-lssl -lcrypto $LIBS"
11114 cat > conftest.$ac_ext <<EOF
11115 #line 11116 "configure"
11116 #include "confdefs.h"
11117 /* Override any gcc2 internal prototype to avoid an error. */
11118 /* We use char because int might match the return type of a gcc2
11119 builtin and then its argument prototype would still apply. */
11120 char SSL_library_init();
11126 if { (eval echo configure:11127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11128 eval "ac_cv_lib_$ac_lib_var=yes"
11130 echo "configure: failed program was:" >&5
11131 cat conftest.$ac_ext >&5
11133 eval "ac_cv_lib_$ac_lib_var=no"
11136 LIBS="$ac_save_LIBS"
11139 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11140 echo "$ac_t""yes" 1>&6
11144 echo "$ac_t""no" 1>&6
11150 if test $have_ssleay = no ; then
11151 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
11152 echo "configure:11153: checking for ssl3_accept in -lssl" >&5
11153 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
11154 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11155 echo $ac_n "(cached) $ac_c" 1>&6
11157 ac_save_LIBS="$LIBS"
11158 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
11159 cat > conftest.$ac_ext <<EOF
11160 #line 11161 "configure"
11161 #include "confdefs.h"
11162 /* Override any gcc2 internal prototype to avoid an error. */
11163 /* We use char because int might match the return type of a gcc2
11164 builtin and then its argument prototype would still apply. */
11165 char ssl3_accept();
11171 if { (eval echo configure:11172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11173 eval "ac_cv_lib_$ac_lib_var=yes"
11175 echo "configure: failed program was:" >&5
11176 cat conftest.$ac_ext >&5
11178 eval "ac_cv_lib_$ac_lib_var=no"
11181 LIBS="$ac_save_LIBS"
11184 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11185 echo "$ac_t""yes" 1>&6
11189 echo "$ac_t""no" 1>&6
11195 if test $have_ssleay = yes ; then
11199 cat >> confdefs.h <<\EOF
11200 #define HAVE_SSLEAY 1
11204 if test $need_rsaref = yes; then
11205 cat >> confdefs.h <<\EOF
11206 #define HAVE_RSAREF 1
11210 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
11212 TLS_LIBS="-lssl -lcrypto"
11218 echo "configure: warning: TLS data protection not supported!" 1>&2
11222 if test $ol_link_tls = yes ; then
11223 cat >> confdefs.h <<\EOF
11229 elif test $ol_with_tls = auto ; then
11230 echo "configure: warning: Could not locate TLS/SSL package" 1>&2
11231 echo "configure: warning: TLS data protection not supported!" 1>&2
11233 elif test $ol_with_tls != no ; then
11234 { echo "configure: error: Could not locate TLS/SSL package" 1>&2; exit 1; }
11237 if test $ol_enable_lmpasswd != no; then
11238 if test $ol_link_tls != yes ; then
11239 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
11242 cat >> confdefs.h <<\EOF
11243 #define SLAPD_LMHASH 1
11250 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11251 -o $ol_with_threads = nt ; then
11254 echo $ac_n "checking for _beginthread""... $ac_c" 1>&6
11255 echo "configure:11256: checking for _beginthread" >&5
11256 if eval "test \"\${ac_cv_func__beginthread+set}\" = set"; then
11257 echo $ac_n "(cached) $ac_c" 1>&6
11259 cat > conftest.$ac_ext <<EOF
11260 #line 11261 "configure"
11261 #include "confdefs.h"
11262 /* System header to define __stub macros and hopefully few prototypes,
11263 which can conflict with char _beginthread(); below. */
11264 #include <assert.h>
11265 /* Override any gcc2 internal prototype to avoid an error. */
11266 /* We use char because int might match the return type of a gcc2
11267 builtin and then its argument prototype would still apply. */
11268 char _beginthread();
11273 /* The GNU C library defines this for functions which it implements
11274 to always fail with ENOSYS. Some functions are actually named
11275 something starting with __ and the normal name is an alias. */
11276 #if defined (__stub__beginthread) || defined (__stub____beginthread)
11284 if { (eval echo configure:11285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11286 eval "ac_cv_func__beginthread=yes"
11288 echo "configure: failed program was:" >&5
11289 cat conftest.$ac_ext >&5
11291 eval "ac_cv_func__beginthread=no"
11296 if eval "test \"`echo '$ac_cv_func_'_beginthread`\" = yes"; then
11297 echo "$ac_t""yes" 1>&6
11300 echo "$ac_t""no" 1>&6
11304 if test $ac_cv_func__beginthread = yes ; then
11305 cat >> confdefs.h <<\EOF
11306 #define HAVE_NT_THREADS 1
11309 ol_cv_nt_threads=yes
11313 if test "$ol_cv_nt_threads" = yes ; then
11315 ol_with_threads=found
11316 ol_with_yielding_select=yes
11318 cat >> confdefs.h <<\EOF
11319 #define HAVE_NT_SERVICE_MANAGER 1
11322 cat >> confdefs.h <<\EOF
11323 #define HAVE_NT_EVENT_LOG 1
11328 if test $ol_with_threads = nt ; then
11329 { echo "configure: error: could not locate NT Threads" 1>&2; exit 1; }
11333 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11334 -o $ol_with_threads = posix ; then
11336 for ac_hdr in pthread.h
11338 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11339 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11340 echo "configure:11341: checking for $ac_hdr" >&5
11341 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11342 echo $ac_n "(cached) $ac_c" 1>&6
11344 cat > conftest.$ac_ext <<EOF
11345 #line 11346 "configure"
11346 #include "confdefs.h"
11349 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11350 { (eval echo configure:11351: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11351 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11352 if test -z "$ac_err"; then
11354 eval "ac_cv_header_$ac_safe=yes"
11357 echo "configure: failed program was:" >&5
11358 cat conftest.$ac_ext >&5
11360 eval "ac_cv_header_$ac_safe=no"
11364 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11365 echo "$ac_t""yes" 1>&6
11366 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11367 cat >> confdefs.h <<EOF
11368 #define $ac_tr_hdr 1
11372 echo "$ac_t""no" 1>&6
11377 if test $ac_cv_header_pthread_h = yes ; then
11378 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
11379 echo "configure:11380: checking POSIX thread version" >&5
11380 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
11381 echo $ac_n "(cached) $ac_c" 1>&6
11384 cat > conftest.$ac_ext <<EOF
11385 #line 11386 "configure"
11386 #include "confdefs.h"
11388 # include <pthread.h>
11392 int i = PTHREAD_CREATE_JOINABLE;
11396 if { (eval echo configure:11397: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11399 cat > conftest.$ac_ext <<EOF
11400 #line 11401 "configure"
11401 #include "confdefs.h"
11402 #include <pthread.h>
11404 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11405 egrep "pthread_detach" >/dev/null 2>&1; then
11407 ol_cv_pthread_version=10
11410 ol_cv_pthread_version=8
11415 echo "configure: failed program was:" >&5
11416 cat conftest.$ac_ext >&5
11419 cat > conftest.$ac_ext <<EOF
11420 #line 11421 "configure"
11421 #include "confdefs.h"
11423 # include <pthread.h>
11424 # ifdef PTHREAD_CREATE_UNDETACHED
11429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11430 egrep "draft7" >/dev/null 2>&1; then
11432 ol_cv_pthread_version=7
11436 cat > conftest.$ac_ext <<EOF
11437 #line 11438 "configure"
11438 #include "confdefs.h"
11439 #include <pthread.h>
11441 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11442 egrep "pthread_attr_init" >/dev/null 2>&1; then
11444 ol_cv_pthread_version=6
11448 cat > conftest.$ac_ext <<EOF
11449 #line 11450 "configure"
11450 #include "confdefs.h"
11452 # include <pthread.h>
11453 #ifdef PTHREAD_MUTEX_INITIALIZER
11458 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11459 egrep "draft5" >/dev/null 2>&1; then
11461 ol_cv_pthread_version=5
11464 ol_cv_pthread_version=4
11479 echo "$ac_t""$ol_cv_pthread_version" 1>&6
11482 if test $ol_cv_pthread_version != 0 ; then
11483 cat >> confdefs.h <<EOF
11484 #define HAVE_PTHREADS $ol_cv_pthread_version
11488 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
11491 # consider threads found
11492 ol_with_threads=found
11495 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
11496 echo "configure:11497: checking for LinuxThreads pthread.h" >&5
11497 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
11498 echo $ac_n "(cached) $ac_c" 1>&6
11500 cat > conftest.$ac_ext <<EOF
11501 #line 11502 "configure"
11502 #include "confdefs.h"
11503 #include <pthread.h>
11505 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11506 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
11508 ol_cv_header_linux_threads=yes
11511 ol_cv_header_linux_threads=no
11518 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
11519 if test $ol_cv_header_linux_threads = yes; then
11520 cat >> confdefs.h <<\EOF
11521 #define HAVE_LINUX_THREADS 1
11527 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
11528 echo "configure:11529: checking for GNU Pth pthread.h" >&5
11529 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
11530 echo $ac_n "(cached) $ac_c" 1>&6
11532 cat > conftest.$ac_ext <<EOF
11533 #line 11534 "configure"
11534 #include "confdefs.h"
11535 #include <pthread.h>
11536 #ifdef _POSIX_THREAD_IS_GNU_PTH
11541 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11542 egrep "__gnu_pth__" >/dev/null 2>&1; then
11544 ol_cv_header_gnu_pth_pthread_h=yes
11547 ol_cv_header_gnu_pth_pthread_h=no
11554 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
11557 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
11558 for ac_hdr in sched.h
11560 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11561 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11562 echo "configure:11563: checking for $ac_hdr" >&5
11563 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11564 echo $ac_n "(cached) $ac_c" 1>&6
11566 cat > conftest.$ac_ext <<EOF
11567 #line 11568 "configure"
11568 #include "confdefs.h"
11571 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11572 { (eval echo configure:11573: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11573 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11574 if test -z "$ac_err"; then
11576 eval "ac_cv_header_$ac_safe=yes"
11579 echo "configure: failed program was:" >&5
11580 cat conftest.$ac_ext >&5
11582 eval "ac_cv_header_$ac_safe=no"
11586 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11587 echo "$ac_t""yes" 1>&6
11588 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11589 cat >> confdefs.h <<EOF
11590 #define $ac_tr_hdr 1
11594 echo "$ac_t""no" 1>&6
11601 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
11602 echo "configure:11603: checking for pthread_create in default libraries" >&5
11603 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
11604 echo $ac_n "(cached) $ac_c" 1>&6
11607 if test "$cross_compiling" = yes; then
11608 cat > conftest.$ac_ext <<EOF
11609 #line 11610 "configure"
11610 #include "confdefs.h"
11611 /* pthread test headers */
11612 #include <pthread.h>
11613 #if HAVE_PTHREADS < 7
11617 #define NULL (void*)0
11620 static void *task(p)
11623 return (void *) (p == NULL);
11628 /* pthread test function */
11629 #ifndef PTHREAD_CREATE_DETACHED
11630 #define PTHREAD_CREATE_DETACHED 1
11634 int detach = PTHREAD_CREATE_DETACHED;
11636 #if HAVE_PTHREADS > 4
11637 /* Final pthreads */
11638 pthread_attr_t attr;
11640 status = pthread_attr_init(&attr);
11641 if( status ) return status;
11643 #if HAVE_PTHREADS < 7
11644 status = pthread_attr_setdetachstate(&attr, &detach);
11645 if( status < 0 ) status = errno;
11647 status = pthread_attr_setdetachstate(&attr, detach);
11649 if( status ) return status;
11650 status = pthread_create( &t, &attr, task, NULL );
11651 #if HAVE_PTHREADS < 7
11652 if( status < 0 ) status = errno;
11654 if( status ) return status;
11656 /* Draft 4 pthreads */
11657 status = pthread_create( &t, pthread_attr_default, task, NULL );
11658 if( status ) return errno;
11660 /* give thread a chance to complete */
11661 /* it should remain joinable and hence detachable */
11664 status = pthread_detach( &t );
11665 if( status ) return errno;
11668 #ifdef HAVE_LINUX_THREADS
11669 pthread_kill_other_threads_np();
11676 if { (eval echo configure:11677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11678 ol_cv_pthread_create=yes
11680 echo "configure: failed program was:" >&5
11681 cat conftest.$ac_ext >&5
11683 ol_cv_pthread_create=no
11687 cat > conftest.$ac_ext <<EOF
11688 #line 11689 "configure"
11689 #include "confdefs.h"
11690 /* pthread test headers */
11691 #include <pthread.h>
11692 #if HAVE_PTHREADS < 7
11696 #define NULL (void*)0
11699 static void *task(p)
11702 return (void *) (p == NULL);
11706 int main(argc, argv)
11711 /* pthread test function */
11712 #ifndef PTHREAD_CREATE_DETACHED
11713 #define PTHREAD_CREATE_DETACHED 1
11717 int detach = PTHREAD_CREATE_DETACHED;
11719 #if HAVE_PTHREADS > 4
11720 /* Final pthreads */
11721 pthread_attr_t attr;
11723 status = pthread_attr_init(&attr);
11724 if( status ) return status;
11726 #if HAVE_PTHREADS < 7
11727 status = pthread_attr_setdetachstate(&attr, &detach);
11728 if( status < 0 ) status = errno;
11730 status = pthread_attr_setdetachstate(&attr, detach);
11732 if( status ) return status;
11733 status = pthread_create( &t, &attr, task, NULL );
11734 #if HAVE_PTHREADS < 7
11735 if( status < 0 ) status = errno;
11737 if( status ) return status;
11739 /* Draft 4 pthreads */
11740 status = pthread_create( &t, pthread_attr_default, task, NULL );
11741 if( status ) return errno;
11743 /* give thread a chance to complete */
11744 /* it should remain joinable and hence detachable */
11747 status = pthread_detach( &t );
11748 if( status ) return errno;
11751 #ifdef HAVE_LINUX_THREADS
11752 pthread_kill_other_threads_np();
11760 if { (eval echo configure:11761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11762 ol_cv_pthread_create=yes
11764 echo "configure: failed program was:" >&5
11765 cat conftest.$ac_ext >&5
11767 ol_cv_pthread_create=no
11774 echo "$ac_t""$ol_cv_pthread_create" 1>&6
11776 if test $ol_cv_pthread_create != no ; then
11777 ol_link_threads=posix
11778 ol_link_pthreads=""
11781 # Pthread try link: -kthread (ol_cv_pthread_kthread)
11782 if test "$ol_link_threads" = no ; then
11784 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
11785 echo "configure:11786: checking for pthread link with -kthread" >&5
11786 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
11787 echo $ac_n "(cached) $ac_c" 1>&6
11792 LIBS="-kthread $LIBS"
11794 if test "$cross_compiling" = yes; then
11795 cat > conftest.$ac_ext <<EOF
11796 #line 11797 "configure"
11797 #include "confdefs.h"
11798 /* pthread test headers */
11799 #include <pthread.h>
11800 #if HAVE_PTHREADS < 7
11804 #define NULL (void*)0
11807 static void *task(p)
11810 return (void *) (p == NULL);
11815 /* pthread test function */
11816 #ifndef PTHREAD_CREATE_DETACHED
11817 #define PTHREAD_CREATE_DETACHED 1
11821 int detach = PTHREAD_CREATE_DETACHED;
11823 #if HAVE_PTHREADS > 4
11824 /* Final pthreads */
11825 pthread_attr_t attr;
11827 status = pthread_attr_init(&attr);
11828 if( status ) return status;
11830 #if HAVE_PTHREADS < 7
11831 status = pthread_attr_setdetachstate(&attr, &detach);
11832 if( status < 0 ) status = errno;
11834 status = pthread_attr_setdetachstate(&attr, detach);
11836 if( status ) return status;
11837 status = pthread_create( &t, &attr, task, NULL );
11838 #if HAVE_PTHREADS < 7
11839 if( status < 0 ) status = errno;
11841 if( status ) return status;
11843 /* Draft 4 pthreads */
11844 status = pthread_create( &t, pthread_attr_default, task, NULL );
11845 if( status ) return errno;
11847 /* give thread a chance to complete */
11848 /* it should remain joinable and hence detachable */
11851 status = pthread_detach( &t );
11852 if( status ) return errno;
11855 #ifdef HAVE_LINUX_THREADS
11856 pthread_kill_other_threads_np();
11863 if { (eval echo configure:11864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11865 ol_cv_pthread_kthread=yes
11867 echo "configure: failed program was:" >&5
11868 cat conftest.$ac_ext >&5
11870 ol_cv_pthread_kthread=no
11874 cat > conftest.$ac_ext <<EOF
11875 #line 11876 "configure"
11876 #include "confdefs.h"
11877 /* pthread test headers */
11878 #include <pthread.h>
11879 #if HAVE_PTHREADS < 7
11883 #define NULL (void*)0
11886 static void *task(p)
11889 return (void *) (p == NULL);
11893 int main(argc, argv)
11898 /* pthread test function */
11899 #ifndef PTHREAD_CREATE_DETACHED
11900 #define PTHREAD_CREATE_DETACHED 1
11904 int detach = PTHREAD_CREATE_DETACHED;
11906 #if HAVE_PTHREADS > 4
11907 /* Final pthreads */
11908 pthread_attr_t attr;
11910 status = pthread_attr_init(&attr);
11911 if( status ) return status;
11913 #if HAVE_PTHREADS < 7
11914 status = pthread_attr_setdetachstate(&attr, &detach);
11915 if( status < 0 ) status = errno;
11917 status = pthread_attr_setdetachstate(&attr, detach);
11919 if( status ) return status;
11920 status = pthread_create( &t, &attr, task, NULL );
11921 #if HAVE_PTHREADS < 7
11922 if( status < 0 ) status = errno;
11924 if( status ) return status;
11926 /* Draft 4 pthreads */
11927 status = pthread_create( &t, pthread_attr_default, task, NULL );
11928 if( status ) return errno;
11930 /* give thread a chance to complete */
11931 /* it should remain joinable and hence detachable */
11934 status = pthread_detach( &t );
11935 if( status ) return errno;
11938 #ifdef HAVE_LINUX_THREADS
11939 pthread_kill_other_threads_np();
11947 if { (eval echo configure:11948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11949 ol_cv_pthread_kthread=yes
11951 echo "configure: failed program was:" >&5
11952 cat conftest.$ac_ext >&5
11954 ol_cv_pthread_kthread=no
11965 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
11967 if test $ol_cv_pthread_kthread = yes ; then
11968 ol_link_pthreads="-kthread"
11969 ol_link_threads=posix
11973 # Pthread try link: -pthread (ol_cv_pthread_pthread)
11974 if test "$ol_link_threads" = no ; then
11976 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
11977 echo "configure:11978: checking for pthread link with -pthread" >&5
11978 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
11979 echo $ac_n "(cached) $ac_c" 1>&6
11984 LIBS="-pthread $LIBS"
11986 if test "$cross_compiling" = yes; then
11987 cat > conftest.$ac_ext <<EOF
11988 #line 11989 "configure"
11989 #include "confdefs.h"
11990 /* pthread test headers */
11991 #include <pthread.h>
11992 #if HAVE_PTHREADS < 7
11996 #define NULL (void*)0
11999 static void *task(p)
12002 return (void *) (p == NULL);
12007 /* pthread test function */
12008 #ifndef PTHREAD_CREATE_DETACHED
12009 #define PTHREAD_CREATE_DETACHED 1
12013 int detach = PTHREAD_CREATE_DETACHED;
12015 #if HAVE_PTHREADS > 4
12016 /* Final pthreads */
12017 pthread_attr_t attr;
12019 status = pthread_attr_init(&attr);
12020 if( status ) return status;
12022 #if HAVE_PTHREADS < 7
12023 status = pthread_attr_setdetachstate(&attr, &detach);
12024 if( status < 0 ) status = errno;
12026 status = pthread_attr_setdetachstate(&attr, detach);
12028 if( status ) return status;
12029 status = pthread_create( &t, &attr, task, NULL );
12030 #if HAVE_PTHREADS < 7
12031 if( status < 0 ) status = errno;
12033 if( status ) return status;
12035 /* Draft 4 pthreads */
12036 status = pthread_create( &t, pthread_attr_default, task, NULL );
12037 if( status ) return errno;
12039 /* give thread a chance to complete */
12040 /* it should remain joinable and hence detachable */
12043 status = pthread_detach( &t );
12044 if( status ) return errno;
12047 #ifdef HAVE_LINUX_THREADS
12048 pthread_kill_other_threads_np();
12055 if { (eval echo configure:12056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12057 ol_cv_pthread_pthread=yes
12059 echo "configure: failed program was:" >&5
12060 cat conftest.$ac_ext >&5
12062 ol_cv_pthread_pthread=no
12066 cat > conftest.$ac_ext <<EOF
12067 #line 12068 "configure"
12068 #include "confdefs.h"
12069 /* pthread test headers */
12070 #include <pthread.h>
12071 #if HAVE_PTHREADS < 7
12075 #define NULL (void*)0
12078 static void *task(p)
12081 return (void *) (p == NULL);
12085 int main(argc, argv)
12090 /* pthread test function */
12091 #ifndef PTHREAD_CREATE_DETACHED
12092 #define PTHREAD_CREATE_DETACHED 1
12096 int detach = PTHREAD_CREATE_DETACHED;
12098 #if HAVE_PTHREADS > 4
12099 /* Final pthreads */
12100 pthread_attr_t attr;
12102 status = pthread_attr_init(&attr);
12103 if( status ) return status;
12105 #if HAVE_PTHREADS < 7
12106 status = pthread_attr_setdetachstate(&attr, &detach);
12107 if( status < 0 ) status = errno;
12109 status = pthread_attr_setdetachstate(&attr, detach);
12111 if( status ) return status;
12112 status = pthread_create( &t, &attr, task, NULL );
12113 #if HAVE_PTHREADS < 7
12114 if( status < 0 ) status = errno;
12116 if( status ) return status;
12118 /* Draft 4 pthreads */
12119 status = pthread_create( &t, pthread_attr_default, task, NULL );
12120 if( status ) return errno;
12122 /* give thread a chance to complete */
12123 /* it should remain joinable and hence detachable */
12126 status = pthread_detach( &t );
12127 if( status ) return errno;
12130 #ifdef HAVE_LINUX_THREADS
12131 pthread_kill_other_threads_np();
12139 if { (eval echo configure:12140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12141 ol_cv_pthread_pthread=yes
12143 echo "configure: failed program was:" >&5
12144 cat conftest.$ac_ext >&5
12146 ol_cv_pthread_pthread=no
12157 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
12159 if test $ol_cv_pthread_pthread = yes ; then
12160 ol_link_pthreads="-pthread"
12161 ol_link_threads=posix
12165 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
12166 if test "$ol_link_threads" = no ; then
12168 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
12169 echo "configure:12170: checking for pthread link with -pthreads" >&5
12170 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
12171 echo $ac_n "(cached) $ac_c" 1>&6
12176 LIBS="-pthreads $LIBS"
12178 if test "$cross_compiling" = yes; then
12179 cat > conftest.$ac_ext <<EOF
12180 #line 12181 "configure"
12181 #include "confdefs.h"
12182 /* pthread test headers */
12183 #include <pthread.h>
12184 #if HAVE_PTHREADS < 7
12188 #define NULL (void*)0
12191 static void *task(p)
12194 return (void *) (p == NULL);
12199 /* pthread test function */
12200 #ifndef PTHREAD_CREATE_DETACHED
12201 #define PTHREAD_CREATE_DETACHED 1
12205 int detach = PTHREAD_CREATE_DETACHED;
12207 #if HAVE_PTHREADS > 4
12208 /* Final pthreads */
12209 pthread_attr_t attr;
12211 status = pthread_attr_init(&attr);
12212 if( status ) return status;
12214 #if HAVE_PTHREADS < 7
12215 status = pthread_attr_setdetachstate(&attr, &detach);
12216 if( status < 0 ) status = errno;
12218 status = pthread_attr_setdetachstate(&attr, detach);
12220 if( status ) return status;
12221 status = pthread_create( &t, &attr, task, NULL );
12222 #if HAVE_PTHREADS < 7
12223 if( status < 0 ) status = errno;
12225 if( status ) return status;
12227 /* Draft 4 pthreads */
12228 status = pthread_create( &t, pthread_attr_default, task, NULL );
12229 if( status ) return errno;
12231 /* give thread a chance to complete */
12232 /* it should remain joinable and hence detachable */
12235 status = pthread_detach( &t );
12236 if( status ) return errno;
12239 #ifdef HAVE_LINUX_THREADS
12240 pthread_kill_other_threads_np();
12247 if { (eval echo configure:12248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12249 ol_cv_pthread_pthreads=yes
12251 echo "configure: failed program was:" >&5
12252 cat conftest.$ac_ext >&5
12254 ol_cv_pthread_pthreads=no
12258 cat > conftest.$ac_ext <<EOF
12259 #line 12260 "configure"
12260 #include "confdefs.h"
12261 /* pthread test headers */
12262 #include <pthread.h>
12263 #if HAVE_PTHREADS < 7
12267 #define NULL (void*)0
12270 static void *task(p)
12273 return (void *) (p == NULL);
12277 int main(argc, argv)
12282 /* pthread test function */
12283 #ifndef PTHREAD_CREATE_DETACHED
12284 #define PTHREAD_CREATE_DETACHED 1
12288 int detach = PTHREAD_CREATE_DETACHED;
12290 #if HAVE_PTHREADS > 4
12291 /* Final pthreads */
12292 pthread_attr_t attr;
12294 status = pthread_attr_init(&attr);
12295 if( status ) return status;
12297 #if HAVE_PTHREADS < 7
12298 status = pthread_attr_setdetachstate(&attr, &detach);
12299 if( status < 0 ) status = errno;
12301 status = pthread_attr_setdetachstate(&attr, detach);
12303 if( status ) return status;
12304 status = pthread_create( &t, &attr, task, NULL );
12305 #if HAVE_PTHREADS < 7
12306 if( status < 0 ) status = errno;
12308 if( status ) return status;
12310 /* Draft 4 pthreads */
12311 status = pthread_create( &t, pthread_attr_default, task, NULL );
12312 if( status ) return errno;
12314 /* give thread a chance to complete */
12315 /* it should remain joinable and hence detachable */
12318 status = pthread_detach( &t );
12319 if( status ) return errno;
12322 #ifdef HAVE_LINUX_THREADS
12323 pthread_kill_other_threads_np();
12331 if { (eval echo configure:12332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12333 ol_cv_pthread_pthreads=yes
12335 echo "configure: failed program was:" >&5
12336 cat conftest.$ac_ext >&5
12338 ol_cv_pthread_pthreads=no
12349 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
12351 if test $ol_cv_pthread_pthreads = yes ; then
12352 ol_link_pthreads="-pthreads"
12353 ol_link_threads=posix
12357 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
12358 if test "$ol_link_threads" = no ; then
12360 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
12361 echo "configure:12362: checking for pthread link with -mthreads" >&5
12362 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
12363 echo $ac_n "(cached) $ac_c" 1>&6
12368 LIBS="-mthreads $LIBS"
12370 if test "$cross_compiling" = yes; then
12371 cat > conftest.$ac_ext <<EOF
12372 #line 12373 "configure"
12373 #include "confdefs.h"
12374 /* pthread test headers */
12375 #include <pthread.h>
12376 #if HAVE_PTHREADS < 7
12380 #define NULL (void*)0
12383 static void *task(p)
12386 return (void *) (p == NULL);
12391 /* pthread test function */
12392 #ifndef PTHREAD_CREATE_DETACHED
12393 #define PTHREAD_CREATE_DETACHED 1
12397 int detach = PTHREAD_CREATE_DETACHED;
12399 #if HAVE_PTHREADS > 4
12400 /* Final pthreads */
12401 pthread_attr_t attr;
12403 status = pthread_attr_init(&attr);
12404 if( status ) return status;
12406 #if HAVE_PTHREADS < 7
12407 status = pthread_attr_setdetachstate(&attr, &detach);
12408 if( status < 0 ) status = errno;
12410 status = pthread_attr_setdetachstate(&attr, detach);
12412 if( status ) return status;
12413 status = pthread_create( &t, &attr, task, NULL );
12414 #if HAVE_PTHREADS < 7
12415 if( status < 0 ) status = errno;
12417 if( status ) return status;
12419 /* Draft 4 pthreads */
12420 status = pthread_create( &t, pthread_attr_default, task, NULL );
12421 if( status ) return errno;
12423 /* give thread a chance to complete */
12424 /* it should remain joinable and hence detachable */
12427 status = pthread_detach( &t );
12428 if( status ) return errno;
12431 #ifdef HAVE_LINUX_THREADS
12432 pthread_kill_other_threads_np();
12439 if { (eval echo configure:12440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12441 ol_cv_pthread_mthreads=yes
12443 echo "configure: failed program was:" >&5
12444 cat conftest.$ac_ext >&5
12446 ol_cv_pthread_mthreads=no
12450 cat > conftest.$ac_ext <<EOF
12451 #line 12452 "configure"
12452 #include "confdefs.h"
12453 /* pthread test headers */
12454 #include <pthread.h>
12455 #if HAVE_PTHREADS < 7
12459 #define NULL (void*)0
12462 static void *task(p)
12465 return (void *) (p == NULL);
12469 int main(argc, argv)
12474 /* pthread test function */
12475 #ifndef PTHREAD_CREATE_DETACHED
12476 #define PTHREAD_CREATE_DETACHED 1
12480 int detach = PTHREAD_CREATE_DETACHED;
12482 #if HAVE_PTHREADS > 4
12483 /* Final pthreads */
12484 pthread_attr_t attr;
12486 status = pthread_attr_init(&attr);
12487 if( status ) return status;
12489 #if HAVE_PTHREADS < 7
12490 status = pthread_attr_setdetachstate(&attr, &detach);
12491 if( status < 0 ) status = errno;
12493 status = pthread_attr_setdetachstate(&attr, detach);
12495 if( status ) return status;
12496 status = pthread_create( &t, &attr, task, NULL );
12497 #if HAVE_PTHREADS < 7
12498 if( status < 0 ) status = errno;
12500 if( status ) return status;
12502 /* Draft 4 pthreads */
12503 status = pthread_create( &t, pthread_attr_default, task, NULL );
12504 if( status ) return errno;
12506 /* give thread a chance to complete */
12507 /* it should remain joinable and hence detachable */
12510 status = pthread_detach( &t );
12511 if( status ) return errno;
12514 #ifdef HAVE_LINUX_THREADS
12515 pthread_kill_other_threads_np();
12523 if { (eval echo configure:12524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12525 ol_cv_pthread_mthreads=yes
12527 echo "configure: failed program was:" >&5
12528 cat conftest.$ac_ext >&5
12530 ol_cv_pthread_mthreads=no
12541 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
12543 if test $ol_cv_pthread_mthreads = yes ; then
12544 ol_link_pthreads="-mthreads"
12545 ol_link_threads=posix
12549 # Pthread try link: -thread (ol_cv_pthread_thread)
12550 if test "$ol_link_threads" = no ; then
12552 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
12553 echo "configure:12554: checking for pthread link with -thread" >&5
12554 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
12555 echo $ac_n "(cached) $ac_c" 1>&6
12560 LIBS="-thread $LIBS"
12562 if test "$cross_compiling" = yes; then
12563 cat > conftest.$ac_ext <<EOF
12564 #line 12565 "configure"
12565 #include "confdefs.h"
12566 /* pthread test headers */
12567 #include <pthread.h>
12568 #if HAVE_PTHREADS < 7
12572 #define NULL (void*)0
12575 static void *task(p)
12578 return (void *) (p == NULL);
12583 /* pthread test function */
12584 #ifndef PTHREAD_CREATE_DETACHED
12585 #define PTHREAD_CREATE_DETACHED 1
12589 int detach = PTHREAD_CREATE_DETACHED;
12591 #if HAVE_PTHREADS > 4
12592 /* Final pthreads */
12593 pthread_attr_t attr;
12595 status = pthread_attr_init(&attr);
12596 if( status ) return status;
12598 #if HAVE_PTHREADS < 7
12599 status = pthread_attr_setdetachstate(&attr, &detach);
12600 if( status < 0 ) status = errno;
12602 status = pthread_attr_setdetachstate(&attr, detach);
12604 if( status ) return status;
12605 status = pthread_create( &t, &attr, task, NULL );
12606 #if HAVE_PTHREADS < 7
12607 if( status < 0 ) status = errno;
12609 if( status ) return status;
12611 /* Draft 4 pthreads */
12612 status = pthread_create( &t, pthread_attr_default, task, NULL );
12613 if( status ) return errno;
12615 /* give thread a chance to complete */
12616 /* it should remain joinable and hence detachable */
12619 status = pthread_detach( &t );
12620 if( status ) return errno;
12623 #ifdef HAVE_LINUX_THREADS
12624 pthread_kill_other_threads_np();
12631 if { (eval echo configure:12632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12633 ol_cv_pthread_thread=yes
12635 echo "configure: failed program was:" >&5
12636 cat conftest.$ac_ext >&5
12638 ol_cv_pthread_thread=no
12642 cat > conftest.$ac_ext <<EOF
12643 #line 12644 "configure"
12644 #include "confdefs.h"
12645 /* pthread test headers */
12646 #include <pthread.h>
12647 #if HAVE_PTHREADS < 7
12651 #define NULL (void*)0
12654 static void *task(p)
12657 return (void *) (p == NULL);
12661 int main(argc, argv)
12666 /* pthread test function */
12667 #ifndef PTHREAD_CREATE_DETACHED
12668 #define PTHREAD_CREATE_DETACHED 1
12672 int detach = PTHREAD_CREATE_DETACHED;
12674 #if HAVE_PTHREADS > 4
12675 /* Final pthreads */
12676 pthread_attr_t attr;
12678 status = pthread_attr_init(&attr);
12679 if( status ) return status;
12681 #if HAVE_PTHREADS < 7
12682 status = pthread_attr_setdetachstate(&attr, &detach);
12683 if( status < 0 ) status = errno;
12685 status = pthread_attr_setdetachstate(&attr, detach);
12687 if( status ) return status;
12688 status = pthread_create( &t, &attr, task, NULL );
12689 #if HAVE_PTHREADS < 7
12690 if( status < 0 ) status = errno;
12692 if( status ) return status;
12694 /* Draft 4 pthreads */
12695 status = pthread_create( &t, pthread_attr_default, task, NULL );
12696 if( status ) return errno;
12698 /* give thread a chance to complete */
12699 /* it should remain joinable and hence detachable */
12702 status = pthread_detach( &t );
12703 if( status ) return errno;
12706 #ifdef HAVE_LINUX_THREADS
12707 pthread_kill_other_threads_np();
12715 if { (eval echo configure:12716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12717 ol_cv_pthread_thread=yes
12719 echo "configure: failed program was:" >&5
12720 cat conftest.$ac_ext >&5
12722 ol_cv_pthread_thread=no
12733 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
12735 if test $ol_cv_pthread_thread = yes ; then
12736 ol_link_pthreads="-thread"
12737 ol_link_threads=posix
12742 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
12743 if test "$ol_link_threads" = no ; then
12744 # try -lpthread -lmach -lexc -lc_r
12745 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
12746 echo "configure:12747: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
12747 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
12748 echo $ac_n "(cached) $ac_c" 1>&6
12753 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
12755 if test "$cross_compiling" = yes; then
12756 cat > conftest.$ac_ext <<EOF
12757 #line 12758 "configure"
12758 #include "confdefs.h"
12759 /* pthread test headers */
12760 #include <pthread.h>
12761 #if HAVE_PTHREADS < 7
12765 #define NULL (void*)0
12768 static void *task(p)
12771 return (void *) (p == NULL);
12776 /* pthread test function */
12777 #ifndef PTHREAD_CREATE_DETACHED
12778 #define PTHREAD_CREATE_DETACHED 1
12782 int detach = PTHREAD_CREATE_DETACHED;
12784 #if HAVE_PTHREADS > 4
12785 /* Final pthreads */
12786 pthread_attr_t attr;
12788 status = pthread_attr_init(&attr);
12789 if( status ) return status;
12791 #if HAVE_PTHREADS < 7
12792 status = pthread_attr_setdetachstate(&attr, &detach);
12793 if( status < 0 ) status = errno;
12795 status = pthread_attr_setdetachstate(&attr, detach);
12797 if( status ) return status;
12798 status = pthread_create( &t, &attr, task, NULL );
12799 #if HAVE_PTHREADS < 7
12800 if( status < 0 ) status = errno;
12802 if( status ) return status;
12804 /* Draft 4 pthreads */
12805 status = pthread_create( &t, pthread_attr_default, task, NULL );
12806 if( status ) return errno;
12808 /* give thread a chance to complete */
12809 /* it should remain joinable and hence detachable */
12812 status = pthread_detach( &t );
12813 if( status ) return errno;
12816 #ifdef HAVE_LINUX_THREADS
12817 pthread_kill_other_threads_np();
12824 if { (eval echo configure:12825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12826 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
12828 echo "configure: failed program was:" >&5
12829 cat conftest.$ac_ext >&5
12831 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
12835 cat > conftest.$ac_ext <<EOF
12836 #line 12837 "configure"
12837 #include "confdefs.h"
12838 /* pthread test headers */
12839 #include <pthread.h>
12840 #if HAVE_PTHREADS < 7
12844 #define NULL (void*)0
12847 static void *task(p)
12850 return (void *) (p == NULL);
12854 int main(argc, argv)
12859 /* pthread test function */
12860 #ifndef PTHREAD_CREATE_DETACHED
12861 #define PTHREAD_CREATE_DETACHED 1
12865 int detach = PTHREAD_CREATE_DETACHED;
12867 #if HAVE_PTHREADS > 4
12868 /* Final pthreads */
12869 pthread_attr_t attr;
12871 status = pthread_attr_init(&attr);
12872 if( status ) return status;
12874 #if HAVE_PTHREADS < 7
12875 status = pthread_attr_setdetachstate(&attr, &detach);
12876 if( status < 0 ) status = errno;
12878 status = pthread_attr_setdetachstate(&attr, detach);
12880 if( status ) return status;
12881 status = pthread_create( &t, &attr, task, NULL );
12882 #if HAVE_PTHREADS < 7
12883 if( status < 0 ) status = errno;
12885 if( status ) return status;
12887 /* Draft 4 pthreads */
12888 status = pthread_create( &t, pthread_attr_default, task, NULL );
12889 if( status ) return errno;
12891 /* give thread a chance to complete */
12892 /* it should remain joinable and hence detachable */
12895 status = pthread_detach( &t );
12896 if( status ) return errno;
12899 #ifdef HAVE_LINUX_THREADS
12900 pthread_kill_other_threads_np();
12908 if { (eval echo configure:12909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12910 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
12912 echo "configure: failed program was:" >&5
12913 cat conftest.$ac_ext >&5
12915 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
12926 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
12928 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
12929 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
12930 ol_link_threads=posix
12934 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
12935 if test "$ol_link_threads" = no ; then
12936 # try -lpthread -lmach -lexc
12937 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
12938 echo "configure:12939: checking for pthread link with -lpthread -lmach -lexc" >&5
12939 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
12940 echo $ac_n "(cached) $ac_c" 1>&6
12945 LIBS="-lpthread -lmach -lexc $LIBS"
12947 if test "$cross_compiling" = yes; then
12948 cat > conftest.$ac_ext <<EOF
12949 #line 12950 "configure"
12950 #include "confdefs.h"
12951 /* pthread test headers */
12952 #include <pthread.h>
12953 #if HAVE_PTHREADS < 7
12957 #define NULL (void*)0
12960 static void *task(p)
12963 return (void *) (p == NULL);
12968 /* pthread test function */
12969 #ifndef PTHREAD_CREATE_DETACHED
12970 #define PTHREAD_CREATE_DETACHED 1
12974 int detach = PTHREAD_CREATE_DETACHED;
12976 #if HAVE_PTHREADS > 4
12977 /* Final pthreads */
12978 pthread_attr_t attr;
12980 status = pthread_attr_init(&attr);
12981 if( status ) return status;
12983 #if HAVE_PTHREADS < 7
12984 status = pthread_attr_setdetachstate(&attr, &detach);
12985 if( status < 0 ) status = errno;
12987 status = pthread_attr_setdetachstate(&attr, detach);
12989 if( status ) return status;
12990 status = pthread_create( &t, &attr, task, NULL );
12991 #if HAVE_PTHREADS < 7
12992 if( status < 0 ) status = errno;
12994 if( status ) return status;
12996 /* Draft 4 pthreads */
12997 status = pthread_create( &t, pthread_attr_default, task, NULL );
12998 if( status ) return errno;
13000 /* give thread a chance to complete */
13001 /* it should remain joinable and hence detachable */
13004 status = pthread_detach( &t );
13005 if( status ) return errno;
13008 #ifdef HAVE_LINUX_THREADS
13009 pthread_kill_other_threads_np();
13016 if { (eval echo configure:13017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13018 ol_cv_pthread_lpthread_lmach_lexc=yes
13020 echo "configure: failed program was:" >&5
13021 cat conftest.$ac_ext >&5
13023 ol_cv_pthread_lpthread_lmach_lexc=no
13027 cat > conftest.$ac_ext <<EOF
13028 #line 13029 "configure"
13029 #include "confdefs.h"
13030 /* pthread test headers */
13031 #include <pthread.h>
13032 #if HAVE_PTHREADS < 7
13036 #define NULL (void*)0
13039 static void *task(p)
13042 return (void *) (p == NULL);
13046 int main(argc, argv)
13051 /* pthread test function */
13052 #ifndef PTHREAD_CREATE_DETACHED
13053 #define PTHREAD_CREATE_DETACHED 1
13057 int detach = PTHREAD_CREATE_DETACHED;
13059 #if HAVE_PTHREADS > 4
13060 /* Final pthreads */
13061 pthread_attr_t attr;
13063 status = pthread_attr_init(&attr);
13064 if( status ) return status;
13066 #if HAVE_PTHREADS < 7
13067 status = pthread_attr_setdetachstate(&attr, &detach);
13068 if( status < 0 ) status = errno;
13070 status = pthread_attr_setdetachstate(&attr, detach);
13072 if( status ) return status;
13073 status = pthread_create( &t, &attr, task, NULL );
13074 #if HAVE_PTHREADS < 7
13075 if( status < 0 ) status = errno;
13077 if( status ) return status;
13079 /* Draft 4 pthreads */
13080 status = pthread_create( &t, pthread_attr_default, task, NULL );
13081 if( status ) return errno;
13083 /* give thread a chance to complete */
13084 /* it should remain joinable and hence detachable */
13087 status = pthread_detach( &t );
13088 if( status ) return errno;
13091 #ifdef HAVE_LINUX_THREADS
13092 pthread_kill_other_threads_np();
13100 if { (eval echo configure:13101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13102 ol_cv_pthread_lpthread_lmach_lexc=yes
13104 echo "configure: failed program was:" >&5
13105 cat conftest.$ac_ext >&5
13107 ol_cv_pthread_lpthread_lmach_lexc=no
13118 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
13120 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
13121 ol_link_pthreads="-lpthread -lmach -lexc"
13122 ol_link_threads=posix
13127 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
13128 if test "$ol_link_threads" = no ; then
13129 # try -lpthread -Wl,-woff,85
13130 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
13131 echo "configure:13132: checking for pthread link with -lpthread -Wl,-woff,85" >&5
13132 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
13133 echo $ac_n "(cached) $ac_c" 1>&6
13138 LIBS="-lpthread -Wl,-woff,85 $LIBS"
13140 if test "$cross_compiling" = yes; then
13141 cat > conftest.$ac_ext <<EOF
13142 #line 13143 "configure"
13143 #include "confdefs.h"
13144 /* pthread test headers */
13145 #include <pthread.h>
13146 #if HAVE_PTHREADS < 7
13150 #define NULL (void*)0
13153 static void *task(p)
13156 return (void *) (p == NULL);
13161 /* pthread test function */
13162 #ifndef PTHREAD_CREATE_DETACHED
13163 #define PTHREAD_CREATE_DETACHED 1
13167 int detach = PTHREAD_CREATE_DETACHED;
13169 #if HAVE_PTHREADS > 4
13170 /* Final pthreads */
13171 pthread_attr_t attr;
13173 status = pthread_attr_init(&attr);
13174 if( status ) return status;
13176 #if HAVE_PTHREADS < 7
13177 status = pthread_attr_setdetachstate(&attr, &detach);
13178 if( status < 0 ) status = errno;
13180 status = pthread_attr_setdetachstate(&attr, detach);
13182 if( status ) return status;
13183 status = pthread_create( &t, &attr, task, NULL );
13184 #if HAVE_PTHREADS < 7
13185 if( status < 0 ) status = errno;
13187 if( status ) return status;
13189 /* Draft 4 pthreads */
13190 status = pthread_create( &t, pthread_attr_default, task, NULL );
13191 if( status ) return errno;
13193 /* give thread a chance to complete */
13194 /* it should remain joinable and hence detachable */
13197 status = pthread_detach( &t );
13198 if( status ) return errno;
13201 #ifdef HAVE_LINUX_THREADS
13202 pthread_kill_other_threads_np();
13209 if { (eval echo configure:13210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13211 ol_cv_pthread_lib_lpthread_woff=yes
13213 echo "configure: failed program was:" >&5
13214 cat conftest.$ac_ext >&5
13216 ol_cv_pthread_lib_lpthread_woff=no
13220 cat > conftest.$ac_ext <<EOF
13221 #line 13222 "configure"
13222 #include "confdefs.h"
13223 /* pthread test headers */
13224 #include <pthread.h>
13225 #if HAVE_PTHREADS < 7
13229 #define NULL (void*)0
13232 static void *task(p)
13235 return (void *) (p == NULL);
13239 int main(argc, argv)
13244 /* pthread test function */
13245 #ifndef PTHREAD_CREATE_DETACHED
13246 #define PTHREAD_CREATE_DETACHED 1
13250 int detach = PTHREAD_CREATE_DETACHED;
13252 #if HAVE_PTHREADS > 4
13253 /* Final pthreads */
13254 pthread_attr_t attr;
13256 status = pthread_attr_init(&attr);
13257 if( status ) return status;
13259 #if HAVE_PTHREADS < 7
13260 status = pthread_attr_setdetachstate(&attr, &detach);
13261 if( status < 0 ) status = errno;
13263 status = pthread_attr_setdetachstate(&attr, detach);
13265 if( status ) return status;
13266 status = pthread_create( &t, &attr, task, NULL );
13267 #if HAVE_PTHREADS < 7
13268 if( status < 0 ) status = errno;
13270 if( status ) return status;
13272 /* Draft 4 pthreads */
13273 status = pthread_create( &t, pthread_attr_default, task, NULL );
13274 if( status ) return errno;
13276 /* give thread a chance to complete */
13277 /* it should remain joinable and hence detachable */
13280 status = pthread_detach( &t );
13281 if( status ) return errno;
13284 #ifdef HAVE_LINUX_THREADS
13285 pthread_kill_other_threads_np();
13293 if { (eval echo configure:13294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13295 ol_cv_pthread_lib_lpthread_woff=yes
13297 echo "configure: failed program was:" >&5
13298 cat conftest.$ac_ext >&5
13300 ol_cv_pthread_lib_lpthread_woff=no
13311 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
13313 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
13314 ol_link_pthreads="-lpthread -Wl,-woff,85"
13315 ol_link_threads=posix
13320 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
13321 if test "$ol_link_threads" = no ; then
13323 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
13324 echo "configure:13325: checking for pthread link with -lpthread" >&5
13325 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
13326 echo $ac_n "(cached) $ac_c" 1>&6
13331 LIBS="-lpthread $LIBS"
13333 if test "$cross_compiling" = yes; then
13334 cat > conftest.$ac_ext <<EOF
13335 #line 13336 "configure"
13336 #include "confdefs.h"
13337 /* pthread test headers */
13338 #include <pthread.h>
13339 #if HAVE_PTHREADS < 7
13343 #define NULL (void*)0
13346 static void *task(p)
13349 return (void *) (p == NULL);
13354 /* pthread test function */
13355 #ifndef PTHREAD_CREATE_DETACHED
13356 #define PTHREAD_CREATE_DETACHED 1
13360 int detach = PTHREAD_CREATE_DETACHED;
13362 #if HAVE_PTHREADS > 4
13363 /* Final pthreads */
13364 pthread_attr_t attr;
13366 status = pthread_attr_init(&attr);
13367 if( status ) return status;
13369 #if HAVE_PTHREADS < 7
13370 status = pthread_attr_setdetachstate(&attr, &detach);
13371 if( status < 0 ) status = errno;
13373 status = pthread_attr_setdetachstate(&attr, detach);
13375 if( status ) return status;
13376 status = pthread_create( &t, &attr, task, NULL );
13377 #if HAVE_PTHREADS < 7
13378 if( status < 0 ) status = errno;
13380 if( status ) return status;
13382 /* Draft 4 pthreads */
13383 status = pthread_create( &t, pthread_attr_default, task, NULL );
13384 if( status ) return errno;
13386 /* give thread a chance to complete */
13387 /* it should remain joinable and hence detachable */
13390 status = pthread_detach( &t );
13391 if( status ) return errno;
13394 #ifdef HAVE_LINUX_THREADS
13395 pthread_kill_other_threads_np();
13402 if { (eval echo configure:13403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13404 ol_cv_pthread_lpthread=yes
13406 echo "configure: failed program was:" >&5
13407 cat conftest.$ac_ext >&5
13409 ol_cv_pthread_lpthread=no
13413 cat > conftest.$ac_ext <<EOF
13414 #line 13415 "configure"
13415 #include "confdefs.h"
13416 /* pthread test headers */
13417 #include <pthread.h>
13418 #if HAVE_PTHREADS < 7
13422 #define NULL (void*)0
13425 static void *task(p)
13428 return (void *) (p == NULL);
13432 int main(argc, argv)
13437 /* pthread test function */
13438 #ifndef PTHREAD_CREATE_DETACHED
13439 #define PTHREAD_CREATE_DETACHED 1
13443 int detach = PTHREAD_CREATE_DETACHED;
13445 #if HAVE_PTHREADS > 4
13446 /* Final pthreads */
13447 pthread_attr_t attr;
13449 status = pthread_attr_init(&attr);
13450 if( status ) return status;
13452 #if HAVE_PTHREADS < 7
13453 status = pthread_attr_setdetachstate(&attr, &detach);
13454 if( status < 0 ) status = errno;
13456 status = pthread_attr_setdetachstate(&attr, detach);
13458 if( status ) return status;
13459 status = pthread_create( &t, &attr, task, NULL );
13460 #if HAVE_PTHREADS < 7
13461 if( status < 0 ) status = errno;
13463 if( status ) return status;
13465 /* Draft 4 pthreads */
13466 status = pthread_create( &t, pthread_attr_default, task, NULL );
13467 if( status ) return errno;
13469 /* give thread a chance to complete */
13470 /* it should remain joinable and hence detachable */
13473 status = pthread_detach( &t );
13474 if( status ) return errno;
13477 #ifdef HAVE_LINUX_THREADS
13478 pthread_kill_other_threads_np();
13486 if { (eval echo configure:13487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13488 ol_cv_pthread_lpthread=yes
13490 echo "configure: failed program was:" >&5
13491 cat conftest.$ac_ext >&5
13493 ol_cv_pthread_lpthread=no
13504 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
13506 if test $ol_cv_pthread_lpthread = yes ; then
13507 ol_link_pthreads="-lpthread"
13508 ol_link_threads=posix
13512 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
13513 if test "$ol_link_threads" = no ; then
13515 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
13516 echo "configure:13517: checking for pthread link with -lc_r" >&5
13517 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
13518 echo $ac_n "(cached) $ac_c" 1>&6
13525 if test "$cross_compiling" = yes; then
13526 cat > conftest.$ac_ext <<EOF
13527 #line 13528 "configure"
13528 #include "confdefs.h"
13529 /* pthread test headers */
13530 #include <pthread.h>
13531 #if HAVE_PTHREADS < 7
13535 #define NULL (void*)0
13538 static void *task(p)
13541 return (void *) (p == NULL);
13546 /* pthread test function */
13547 #ifndef PTHREAD_CREATE_DETACHED
13548 #define PTHREAD_CREATE_DETACHED 1
13552 int detach = PTHREAD_CREATE_DETACHED;
13554 #if HAVE_PTHREADS > 4
13555 /* Final pthreads */
13556 pthread_attr_t attr;
13558 status = pthread_attr_init(&attr);
13559 if( status ) return status;
13561 #if HAVE_PTHREADS < 7
13562 status = pthread_attr_setdetachstate(&attr, &detach);
13563 if( status < 0 ) status = errno;
13565 status = pthread_attr_setdetachstate(&attr, detach);
13567 if( status ) return status;
13568 status = pthread_create( &t, &attr, task, NULL );
13569 #if HAVE_PTHREADS < 7
13570 if( status < 0 ) status = errno;
13572 if( status ) return status;
13574 /* Draft 4 pthreads */
13575 status = pthread_create( &t, pthread_attr_default, task, NULL );
13576 if( status ) return errno;
13578 /* give thread a chance to complete */
13579 /* it should remain joinable and hence detachable */
13582 status = pthread_detach( &t );
13583 if( status ) return errno;
13586 #ifdef HAVE_LINUX_THREADS
13587 pthread_kill_other_threads_np();
13594 if { (eval echo configure:13595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13596 ol_cv_pthread_lc_r=yes
13598 echo "configure: failed program was:" >&5
13599 cat conftest.$ac_ext >&5
13601 ol_cv_pthread_lc_r=no
13605 cat > conftest.$ac_ext <<EOF
13606 #line 13607 "configure"
13607 #include "confdefs.h"
13608 /* pthread test headers */
13609 #include <pthread.h>
13610 #if HAVE_PTHREADS < 7
13614 #define NULL (void*)0
13617 static void *task(p)
13620 return (void *) (p == NULL);
13624 int main(argc, argv)
13629 /* pthread test function */
13630 #ifndef PTHREAD_CREATE_DETACHED
13631 #define PTHREAD_CREATE_DETACHED 1
13635 int detach = PTHREAD_CREATE_DETACHED;
13637 #if HAVE_PTHREADS > 4
13638 /* Final pthreads */
13639 pthread_attr_t attr;
13641 status = pthread_attr_init(&attr);
13642 if( status ) return status;
13644 #if HAVE_PTHREADS < 7
13645 status = pthread_attr_setdetachstate(&attr, &detach);
13646 if( status < 0 ) status = errno;
13648 status = pthread_attr_setdetachstate(&attr, detach);
13650 if( status ) return status;
13651 status = pthread_create( &t, &attr, task, NULL );
13652 #if HAVE_PTHREADS < 7
13653 if( status < 0 ) status = errno;
13655 if( status ) return status;
13657 /* Draft 4 pthreads */
13658 status = pthread_create( &t, pthread_attr_default, task, NULL );
13659 if( status ) return errno;
13661 /* give thread a chance to complete */
13662 /* it should remain joinable and hence detachable */
13665 status = pthread_detach( &t );
13666 if( status ) return errno;
13669 #ifdef HAVE_LINUX_THREADS
13670 pthread_kill_other_threads_np();
13678 if { (eval echo configure:13679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13680 ol_cv_pthread_lc_r=yes
13682 echo "configure: failed program was:" >&5
13683 cat conftest.$ac_ext >&5
13685 ol_cv_pthread_lc_r=no
13696 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
13698 if test $ol_cv_pthread_lc_r = yes ; then
13699 ol_link_pthreads="-lc_r"
13700 ol_link_threads=posix
13705 # Pthread try link: -threads (ol_cv_pthread_threads)
13706 if test "$ol_link_threads" = no ; then
13708 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
13709 echo "configure:13710: checking for pthread link with -threads" >&5
13710 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
13711 echo $ac_n "(cached) $ac_c" 1>&6
13716 LIBS="-threads $LIBS"
13718 if test "$cross_compiling" = yes; then
13719 cat > conftest.$ac_ext <<EOF
13720 #line 13721 "configure"
13721 #include "confdefs.h"
13722 /* pthread test headers */
13723 #include <pthread.h>
13724 #if HAVE_PTHREADS < 7
13728 #define NULL (void*)0
13731 static void *task(p)
13734 return (void *) (p == NULL);
13739 /* pthread test function */
13740 #ifndef PTHREAD_CREATE_DETACHED
13741 #define PTHREAD_CREATE_DETACHED 1
13745 int detach = PTHREAD_CREATE_DETACHED;
13747 #if HAVE_PTHREADS > 4
13748 /* Final pthreads */
13749 pthread_attr_t attr;
13751 status = pthread_attr_init(&attr);
13752 if( status ) return status;
13754 #if HAVE_PTHREADS < 7
13755 status = pthread_attr_setdetachstate(&attr, &detach);
13756 if( status < 0 ) status = errno;
13758 status = pthread_attr_setdetachstate(&attr, detach);
13760 if( status ) return status;
13761 status = pthread_create( &t, &attr, task, NULL );
13762 #if HAVE_PTHREADS < 7
13763 if( status < 0 ) status = errno;
13765 if( status ) return status;
13767 /* Draft 4 pthreads */
13768 status = pthread_create( &t, pthread_attr_default, task, NULL );
13769 if( status ) return errno;
13771 /* give thread a chance to complete */
13772 /* it should remain joinable and hence detachable */
13775 status = pthread_detach( &t );
13776 if( status ) return errno;
13779 #ifdef HAVE_LINUX_THREADS
13780 pthread_kill_other_threads_np();
13787 if { (eval echo configure:13788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13789 ol_cv_pthread_threads=yes
13791 echo "configure: failed program was:" >&5
13792 cat conftest.$ac_ext >&5
13794 ol_cv_pthread_threads=no
13798 cat > conftest.$ac_ext <<EOF
13799 #line 13800 "configure"
13800 #include "confdefs.h"
13801 /* pthread test headers */
13802 #include <pthread.h>
13803 #if HAVE_PTHREADS < 7
13807 #define NULL (void*)0
13810 static void *task(p)
13813 return (void *) (p == NULL);
13817 int main(argc, argv)
13822 /* pthread test function */
13823 #ifndef PTHREAD_CREATE_DETACHED
13824 #define PTHREAD_CREATE_DETACHED 1
13828 int detach = PTHREAD_CREATE_DETACHED;
13830 #if HAVE_PTHREADS > 4
13831 /* Final pthreads */
13832 pthread_attr_t attr;
13834 status = pthread_attr_init(&attr);
13835 if( status ) return status;
13837 #if HAVE_PTHREADS < 7
13838 status = pthread_attr_setdetachstate(&attr, &detach);
13839 if( status < 0 ) status = errno;
13841 status = pthread_attr_setdetachstate(&attr, detach);
13843 if( status ) return status;
13844 status = pthread_create( &t, &attr, task, NULL );
13845 #if HAVE_PTHREADS < 7
13846 if( status < 0 ) status = errno;
13848 if( status ) return status;
13850 /* Draft 4 pthreads */
13851 status = pthread_create( &t, pthread_attr_default, task, NULL );
13852 if( status ) return errno;
13854 /* give thread a chance to complete */
13855 /* it should remain joinable and hence detachable */
13858 status = pthread_detach( &t );
13859 if( status ) return errno;
13862 #ifdef HAVE_LINUX_THREADS
13863 pthread_kill_other_threads_np();
13871 if { (eval echo configure:13872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13873 ol_cv_pthread_threads=yes
13875 echo "configure: failed program was:" >&5
13876 cat conftest.$ac_ext >&5
13878 ol_cv_pthread_threads=no
13889 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
13891 if test $ol_cv_pthread_threads = yes ; then
13892 ol_link_pthreads="-threads"
13893 ol_link_threads=posix
13898 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
13899 if test "$ol_link_threads" = no ; then
13900 # try -lpthreads -lmach -lexc -lc_r
13901 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
13902 echo "configure:13903: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
13903 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
13904 echo $ac_n "(cached) $ac_c" 1>&6
13909 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
13911 if test "$cross_compiling" = yes; then
13912 cat > conftest.$ac_ext <<EOF
13913 #line 13914 "configure"
13914 #include "confdefs.h"
13915 /* pthread test headers */
13916 #include <pthread.h>
13917 #if HAVE_PTHREADS < 7
13921 #define NULL (void*)0
13924 static void *task(p)
13927 return (void *) (p == NULL);
13932 /* pthread test function */
13933 #ifndef PTHREAD_CREATE_DETACHED
13934 #define PTHREAD_CREATE_DETACHED 1
13938 int detach = PTHREAD_CREATE_DETACHED;
13940 #if HAVE_PTHREADS > 4
13941 /* Final pthreads */
13942 pthread_attr_t attr;
13944 status = pthread_attr_init(&attr);
13945 if( status ) return status;
13947 #if HAVE_PTHREADS < 7
13948 status = pthread_attr_setdetachstate(&attr, &detach);
13949 if( status < 0 ) status = errno;
13951 status = pthread_attr_setdetachstate(&attr, detach);
13953 if( status ) return status;
13954 status = pthread_create( &t, &attr, task, NULL );
13955 #if HAVE_PTHREADS < 7
13956 if( status < 0 ) status = errno;
13958 if( status ) return status;
13960 /* Draft 4 pthreads */
13961 status = pthread_create( &t, pthread_attr_default, task, NULL );
13962 if( status ) return errno;
13964 /* give thread a chance to complete */
13965 /* it should remain joinable and hence detachable */
13968 status = pthread_detach( &t );
13969 if( status ) return errno;
13972 #ifdef HAVE_LINUX_THREADS
13973 pthread_kill_other_threads_np();
13980 if { (eval echo configure:13981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13982 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
13984 echo "configure: failed program was:" >&5
13985 cat conftest.$ac_ext >&5
13987 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
13991 cat > conftest.$ac_ext <<EOF
13992 #line 13993 "configure"
13993 #include "confdefs.h"
13994 /* pthread test headers */
13995 #include <pthread.h>
13996 #if HAVE_PTHREADS < 7
14000 #define NULL (void*)0
14003 static void *task(p)
14006 return (void *) (p == NULL);
14010 int main(argc, argv)
14015 /* pthread test function */
14016 #ifndef PTHREAD_CREATE_DETACHED
14017 #define PTHREAD_CREATE_DETACHED 1
14021 int detach = PTHREAD_CREATE_DETACHED;
14023 #if HAVE_PTHREADS > 4
14024 /* Final pthreads */
14025 pthread_attr_t attr;
14027 status = pthread_attr_init(&attr);
14028 if( status ) return status;
14030 #if HAVE_PTHREADS < 7
14031 status = pthread_attr_setdetachstate(&attr, &detach);
14032 if( status < 0 ) status = errno;
14034 status = pthread_attr_setdetachstate(&attr, detach);
14036 if( status ) return status;
14037 status = pthread_create( &t, &attr, task, NULL );
14038 #if HAVE_PTHREADS < 7
14039 if( status < 0 ) status = errno;
14041 if( status ) return status;
14043 /* Draft 4 pthreads */
14044 status = pthread_create( &t, pthread_attr_default, task, NULL );
14045 if( status ) return errno;
14047 /* give thread a chance to complete */
14048 /* it should remain joinable and hence detachable */
14051 status = pthread_detach( &t );
14052 if( status ) return errno;
14055 #ifdef HAVE_LINUX_THREADS
14056 pthread_kill_other_threads_np();
14064 if { (eval echo configure:14065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14066 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
14068 echo "configure: failed program was:" >&5
14069 cat conftest.$ac_ext >&5
14071 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
14082 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
14084 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
14085 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
14086 ol_link_threads=posix
14090 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
14091 if test "$ol_link_threads" = no ; then
14092 # try -lpthreads -lmach -lexc
14093 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
14094 echo "configure:14095: checking for pthread link with -lpthreads -lmach -lexc" >&5
14095 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
14096 echo $ac_n "(cached) $ac_c" 1>&6
14101 LIBS="-lpthreads -lmach -lexc $LIBS"
14103 if test "$cross_compiling" = yes; then
14104 cat > conftest.$ac_ext <<EOF
14105 #line 14106 "configure"
14106 #include "confdefs.h"
14107 /* pthread test headers */
14108 #include <pthread.h>
14109 #if HAVE_PTHREADS < 7
14113 #define NULL (void*)0
14116 static void *task(p)
14119 return (void *) (p == NULL);
14124 /* pthread test function */
14125 #ifndef PTHREAD_CREATE_DETACHED
14126 #define PTHREAD_CREATE_DETACHED 1
14130 int detach = PTHREAD_CREATE_DETACHED;
14132 #if HAVE_PTHREADS > 4
14133 /* Final pthreads */
14134 pthread_attr_t attr;
14136 status = pthread_attr_init(&attr);
14137 if( status ) return status;
14139 #if HAVE_PTHREADS < 7
14140 status = pthread_attr_setdetachstate(&attr, &detach);
14141 if( status < 0 ) status = errno;
14143 status = pthread_attr_setdetachstate(&attr, detach);
14145 if( status ) return status;
14146 status = pthread_create( &t, &attr, task, NULL );
14147 #if HAVE_PTHREADS < 7
14148 if( status < 0 ) status = errno;
14150 if( status ) return status;
14152 /* Draft 4 pthreads */
14153 status = pthread_create( &t, pthread_attr_default, task, NULL );
14154 if( status ) return errno;
14156 /* give thread a chance to complete */
14157 /* it should remain joinable and hence detachable */
14160 status = pthread_detach( &t );
14161 if( status ) return errno;
14164 #ifdef HAVE_LINUX_THREADS
14165 pthread_kill_other_threads_np();
14172 if { (eval echo configure:14173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14174 ol_cv_pthread_lpthreads_lmach_lexc=yes
14176 echo "configure: failed program was:" >&5
14177 cat conftest.$ac_ext >&5
14179 ol_cv_pthread_lpthreads_lmach_lexc=no
14183 cat > conftest.$ac_ext <<EOF
14184 #line 14185 "configure"
14185 #include "confdefs.h"
14186 /* pthread test headers */
14187 #include <pthread.h>
14188 #if HAVE_PTHREADS < 7
14192 #define NULL (void*)0
14195 static void *task(p)
14198 return (void *) (p == NULL);
14202 int main(argc, argv)
14207 /* pthread test function */
14208 #ifndef PTHREAD_CREATE_DETACHED
14209 #define PTHREAD_CREATE_DETACHED 1
14213 int detach = PTHREAD_CREATE_DETACHED;
14215 #if HAVE_PTHREADS > 4
14216 /* Final pthreads */
14217 pthread_attr_t attr;
14219 status = pthread_attr_init(&attr);
14220 if( status ) return status;
14222 #if HAVE_PTHREADS < 7
14223 status = pthread_attr_setdetachstate(&attr, &detach);
14224 if( status < 0 ) status = errno;
14226 status = pthread_attr_setdetachstate(&attr, detach);
14228 if( status ) return status;
14229 status = pthread_create( &t, &attr, task, NULL );
14230 #if HAVE_PTHREADS < 7
14231 if( status < 0 ) status = errno;
14233 if( status ) return status;
14235 /* Draft 4 pthreads */
14236 status = pthread_create( &t, pthread_attr_default, task, NULL );
14237 if( status ) return errno;
14239 /* give thread a chance to complete */
14240 /* it should remain joinable and hence detachable */
14243 status = pthread_detach( &t );
14244 if( status ) return errno;
14247 #ifdef HAVE_LINUX_THREADS
14248 pthread_kill_other_threads_np();
14256 if { (eval echo configure:14257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14258 ol_cv_pthread_lpthreads_lmach_lexc=yes
14260 echo "configure: failed program was:" >&5
14261 cat conftest.$ac_ext >&5
14263 ol_cv_pthread_lpthreads_lmach_lexc=no
14274 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
14276 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
14277 ol_link_pthreads="-lpthreads -lmach -lexc"
14278 ol_link_threads=posix
14282 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
14283 if test "$ol_link_threads" = no ; then
14284 # try -lpthreads -lexc
14285 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
14286 echo "configure:14287: checking for pthread link with -lpthreads -lexc" >&5
14287 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
14288 echo $ac_n "(cached) $ac_c" 1>&6
14293 LIBS="-lpthreads -lexc $LIBS"
14295 if test "$cross_compiling" = yes; then
14296 cat > conftest.$ac_ext <<EOF
14297 #line 14298 "configure"
14298 #include "confdefs.h"
14299 /* pthread test headers */
14300 #include <pthread.h>
14301 #if HAVE_PTHREADS < 7
14305 #define NULL (void*)0
14308 static void *task(p)
14311 return (void *) (p == NULL);
14316 /* pthread test function */
14317 #ifndef PTHREAD_CREATE_DETACHED
14318 #define PTHREAD_CREATE_DETACHED 1
14322 int detach = PTHREAD_CREATE_DETACHED;
14324 #if HAVE_PTHREADS > 4
14325 /* Final pthreads */
14326 pthread_attr_t attr;
14328 status = pthread_attr_init(&attr);
14329 if( status ) return status;
14331 #if HAVE_PTHREADS < 7
14332 status = pthread_attr_setdetachstate(&attr, &detach);
14333 if( status < 0 ) status = errno;
14335 status = pthread_attr_setdetachstate(&attr, detach);
14337 if( status ) return status;
14338 status = pthread_create( &t, &attr, task, NULL );
14339 #if HAVE_PTHREADS < 7
14340 if( status < 0 ) status = errno;
14342 if( status ) return status;
14344 /* Draft 4 pthreads */
14345 status = pthread_create( &t, pthread_attr_default, task, NULL );
14346 if( status ) return errno;
14348 /* give thread a chance to complete */
14349 /* it should remain joinable and hence detachable */
14352 status = pthread_detach( &t );
14353 if( status ) return errno;
14356 #ifdef HAVE_LINUX_THREADS
14357 pthread_kill_other_threads_np();
14364 if { (eval echo configure:14365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14366 ol_cv_pthread_lpthreads_lexc=yes
14368 echo "configure: failed program was:" >&5
14369 cat conftest.$ac_ext >&5
14371 ol_cv_pthread_lpthreads_lexc=no
14375 cat > conftest.$ac_ext <<EOF
14376 #line 14377 "configure"
14377 #include "confdefs.h"
14378 /* pthread test headers */
14379 #include <pthread.h>
14380 #if HAVE_PTHREADS < 7
14384 #define NULL (void*)0
14387 static void *task(p)
14390 return (void *) (p == NULL);
14394 int main(argc, argv)
14399 /* pthread test function */
14400 #ifndef PTHREAD_CREATE_DETACHED
14401 #define PTHREAD_CREATE_DETACHED 1
14405 int detach = PTHREAD_CREATE_DETACHED;
14407 #if HAVE_PTHREADS > 4
14408 /* Final pthreads */
14409 pthread_attr_t attr;
14411 status = pthread_attr_init(&attr);
14412 if( status ) return status;
14414 #if HAVE_PTHREADS < 7
14415 status = pthread_attr_setdetachstate(&attr, &detach);
14416 if( status < 0 ) status = errno;
14418 status = pthread_attr_setdetachstate(&attr, detach);
14420 if( status ) return status;
14421 status = pthread_create( &t, &attr, task, NULL );
14422 #if HAVE_PTHREADS < 7
14423 if( status < 0 ) status = errno;
14425 if( status ) return status;
14427 /* Draft 4 pthreads */
14428 status = pthread_create( &t, pthread_attr_default, task, NULL );
14429 if( status ) return errno;
14431 /* give thread a chance to complete */
14432 /* it should remain joinable and hence detachable */
14435 status = pthread_detach( &t );
14436 if( status ) return errno;
14439 #ifdef HAVE_LINUX_THREADS
14440 pthread_kill_other_threads_np();
14448 if { (eval echo configure:14449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14450 ol_cv_pthread_lpthreads_lexc=yes
14452 echo "configure: failed program was:" >&5
14453 cat conftest.$ac_ext >&5
14455 ol_cv_pthread_lpthreads_lexc=no
14466 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
14468 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
14469 ol_link_pthreads="-lpthreads -lexc"
14470 ol_link_threads=posix
14475 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
14476 if test "$ol_link_threads" = no ; then
14478 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
14479 echo "configure:14480: checking for pthread link with -lpthreads" >&5
14480 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
14481 echo $ac_n "(cached) $ac_c" 1>&6
14486 LIBS="-lpthreads $LIBS"
14488 if test "$cross_compiling" = yes; then
14489 cat > conftest.$ac_ext <<EOF
14490 #line 14491 "configure"
14491 #include "confdefs.h"
14492 /* pthread test headers */
14493 #include <pthread.h>
14494 #if HAVE_PTHREADS < 7
14498 #define NULL (void*)0
14501 static void *task(p)
14504 return (void *) (p == NULL);
14509 /* pthread test function */
14510 #ifndef PTHREAD_CREATE_DETACHED
14511 #define PTHREAD_CREATE_DETACHED 1
14515 int detach = PTHREAD_CREATE_DETACHED;
14517 #if HAVE_PTHREADS > 4
14518 /* Final pthreads */
14519 pthread_attr_t attr;
14521 status = pthread_attr_init(&attr);
14522 if( status ) return status;
14524 #if HAVE_PTHREADS < 7
14525 status = pthread_attr_setdetachstate(&attr, &detach);
14526 if( status < 0 ) status = errno;
14528 status = pthread_attr_setdetachstate(&attr, detach);
14530 if( status ) return status;
14531 status = pthread_create( &t, &attr, task, NULL );
14532 #if HAVE_PTHREADS < 7
14533 if( status < 0 ) status = errno;
14535 if( status ) return status;
14537 /* Draft 4 pthreads */
14538 status = pthread_create( &t, pthread_attr_default, task, NULL );
14539 if( status ) return errno;
14541 /* give thread a chance to complete */
14542 /* it should remain joinable and hence detachable */
14545 status = pthread_detach( &t );
14546 if( status ) return errno;
14549 #ifdef HAVE_LINUX_THREADS
14550 pthread_kill_other_threads_np();
14557 if { (eval echo configure:14558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14559 ol_cv_pthread_lib_lpthreads=yes
14561 echo "configure: failed program was:" >&5
14562 cat conftest.$ac_ext >&5
14564 ol_cv_pthread_lib_lpthreads=no
14568 cat > conftest.$ac_ext <<EOF
14569 #line 14570 "configure"
14570 #include "confdefs.h"
14571 /* pthread test headers */
14572 #include <pthread.h>
14573 #if HAVE_PTHREADS < 7
14577 #define NULL (void*)0
14580 static void *task(p)
14583 return (void *) (p == NULL);
14587 int main(argc, argv)
14592 /* pthread test function */
14593 #ifndef PTHREAD_CREATE_DETACHED
14594 #define PTHREAD_CREATE_DETACHED 1
14598 int detach = PTHREAD_CREATE_DETACHED;
14600 #if HAVE_PTHREADS > 4
14601 /* Final pthreads */
14602 pthread_attr_t attr;
14604 status = pthread_attr_init(&attr);
14605 if( status ) return status;
14607 #if HAVE_PTHREADS < 7
14608 status = pthread_attr_setdetachstate(&attr, &detach);
14609 if( status < 0 ) status = errno;
14611 status = pthread_attr_setdetachstate(&attr, detach);
14613 if( status ) return status;
14614 status = pthread_create( &t, &attr, task, NULL );
14615 #if HAVE_PTHREADS < 7
14616 if( status < 0 ) status = errno;
14618 if( status ) return status;
14620 /* Draft 4 pthreads */
14621 status = pthread_create( &t, pthread_attr_default, task, NULL );
14622 if( status ) return errno;
14624 /* give thread a chance to complete */
14625 /* it should remain joinable and hence detachable */
14628 status = pthread_detach( &t );
14629 if( status ) return errno;
14632 #ifdef HAVE_LINUX_THREADS
14633 pthread_kill_other_threads_np();
14641 if { (eval echo configure:14642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14643 ol_cv_pthread_lib_lpthreads=yes
14645 echo "configure: failed program was:" >&5
14646 cat conftest.$ac_ext >&5
14648 ol_cv_pthread_lib_lpthreads=no
14659 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
14661 if test $ol_cv_pthread_lib_lpthreads = yes ; then
14662 ol_link_pthreads="-lpthreads"
14663 ol_link_threads=posix
14668 if test $ol_link_threads != no ; then
14669 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
14671 save_CPPFLAGS="$CPPFLAGS"
14673 LIBS="$LTHREAD_LIBS $LIBS"
14675 for ac_func in sched_yield pthread_yield thr_yield
14677 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14678 echo "configure:14679: checking for $ac_func" >&5
14679 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14680 echo $ac_n "(cached) $ac_c" 1>&6
14682 cat > conftest.$ac_ext <<EOF
14683 #line 14684 "configure"
14684 #include "confdefs.h"
14685 /* System header to define __stub macros and hopefully few prototypes,
14686 which can conflict with char $ac_func(); below. */
14687 #include <assert.h>
14688 /* Override any gcc2 internal prototype to avoid an error. */
14689 /* We use char because int might match the return type of a gcc2
14690 builtin and then its argument prototype would still apply. */
14696 /* The GNU C library defines this for functions which it implements
14697 to always fail with ENOSYS. Some functions are actually named
14698 something starting with __ and the normal name is an alias. */
14699 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14707 if { (eval echo configure:14708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14709 eval "ac_cv_func_$ac_func=yes"
14711 echo "configure: failed program was:" >&5
14712 cat conftest.$ac_ext >&5
14714 eval "ac_cv_func_$ac_func=no"
14719 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14720 echo "$ac_t""yes" 1>&6
14721 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14722 cat >> confdefs.h <<EOF
14723 #define $ac_tr_func 1
14727 echo "$ac_t""no" 1>&6
14732 if test $ac_cv_func_sched_yield = no -a \
14733 $ac_cv_func_pthread_yield = no -a \
14734 $ac_cv_func_thr_yield = no ; then
14735 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
14736 echo "configure:14737: checking for sched_yield in -lrt" >&5
14737 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
14738 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14739 echo $ac_n "(cached) $ac_c" 1>&6
14741 ac_save_LIBS="$LIBS"
14743 cat > conftest.$ac_ext <<EOF
14744 #line 14745 "configure"
14745 #include "confdefs.h"
14746 /* Override any gcc2 internal prototype to avoid an error. */
14747 /* We use char because int might match the return type of a gcc2
14748 builtin and then its argument prototype would still apply. */
14749 char sched_yield();
14755 if { (eval echo configure:14756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14757 eval "ac_cv_lib_$ac_lib_var=yes"
14759 echo "configure: failed program was:" >&5
14760 cat conftest.$ac_ext >&5
14762 eval "ac_cv_lib_$ac_lib_var=no"
14765 LIBS="$ac_save_LIBS"
14768 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14769 echo "$ac_t""yes" 1>&6
14770 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
14771 cat >> confdefs.h <<\EOF
14772 #define HAVE_SCHED_YIELD 1
14775 ac_cv_func_sched_yield=yes
14777 echo "$ac_t""no" 1>&6
14778 ac_cv_func_sched_yield=no
14782 if test $ac_cv_func_sched_yield = no -a \
14783 $ac_cv_func_pthread_yield = no -a \
14784 "$ac_cv_func_thr_yield" = no ; then
14785 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
14788 for ac_func in pthread_kill pthread_rwlock_destroy
14790 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14791 echo "configure:14792: checking for $ac_func" >&5
14792 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14793 echo $ac_n "(cached) $ac_c" 1>&6
14795 cat > conftest.$ac_ext <<EOF
14796 #line 14797 "configure"
14797 #include "confdefs.h"
14798 /* System header to define __stub macros and hopefully few prototypes,
14799 which can conflict with char $ac_func(); below. */
14800 #include <assert.h>
14801 /* Override any gcc2 internal prototype to avoid an error. */
14802 /* We use char because int might match the return type of a gcc2
14803 builtin and then its argument prototype would still apply. */
14809 /* The GNU C library defines this for functions which it implements
14810 to always fail with ENOSYS. Some functions are actually named
14811 something starting with __ and the normal name is an alias. */
14812 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14820 if { (eval echo configure:14821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14822 eval "ac_cv_func_$ac_func=yes"
14824 echo "configure: failed program was:" >&5
14825 cat conftest.$ac_ext >&5
14827 eval "ac_cv_func_$ac_func=no"
14832 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14833 echo "$ac_t""yes" 1>&6
14834 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14835 cat >> confdefs.h <<EOF
14836 #define $ac_tr_func 1
14840 echo "$ac_t""no" 1>&6
14845 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
14846 echo "configure:14847: checking for pthread_detach with <pthread.h>" >&5
14847 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
14848 echo $ac_n "(cached) $ac_c" 1>&6
14851 cat > conftest.$ac_ext <<EOF
14852 #line 14853 "configure"
14853 #include "confdefs.h"
14855 #include <pthread.h>
14857 #define NULL (void*)0
14861 pthread_detach(NULL);
14864 if { (eval echo configure:14865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14866 ol_cv_func_pthread_detach=yes
14868 echo "configure: failed program was:" >&5
14869 cat conftest.$ac_ext >&5
14871 ol_cv_func_pthread_detach=no
14877 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
14879 if test $ol_cv_func_pthread_detach = no ; then
14880 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
14883 cat >> confdefs.h <<\EOF
14884 #define HAVE_PTHREAD_DETACH 1
14889 pthread_setconcurrency \
14890 pthread_getconcurrency \
14891 thr_setconcurrency \
14892 thr_getconcurrency \
14895 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14896 echo "configure:14897: checking for $ac_func" >&5
14897 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14898 echo $ac_n "(cached) $ac_c" 1>&6
14900 cat > conftest.$ac_ext <<EOF
14901 #line 14902 "configure"
14902 #include "confdefs.h"
14903 /* System header to define __stub macros and hopefully few prototypes,
14904 which can conflict with char $ac_func(); below. */
14905 #include <assert.h>
14906 /* Override any gcc2 internal prototype to avoid an error. */
14907 /* We use char because int might match the return type of a gcc2
14908 builtin and then its argument prototype would still apply. */
14914 /* The GNU C library defines this for functions which it implements
14915 to always fail with ENOSYS. Some functions are actually named
14916 something starting with __ and the normal name is an alias. */
14917 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14925 if { (eval echo configure:14926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14927 eval "ac_cv_func_$ac_func=yes"
14929 echo "configure: failed program was:" >&5
14930 cat conftest.$ac_ext >&5
14932 eval "ac_cv_func_$ac_func=no"
14937 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14938 echo "$ac_t""yes" 1>&6
14939 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14940 cat >> confdefs.h <<EOF
14941 #define $ac_tr_func 1
14945 echo "$ac_t""no" 1>&6
14951 for ac_func in pthread_kill_other_threads_np
14953 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14954 echo "configure:14955: checking for $ac_func" >&5
14955 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14956 echo $ac_n "(cached) $ac_c" 1>&6
14958 cat > conftest.$ac_ext <<EOF
14959 #line 14960 "configure"
14960 #include "confdefs.h"
14961 /* System header to define __stub macros and hopefully few prototypes,
14962 which can conflict with char $ac_func(); below. */
14963 #include <assert.h>
14964 /* Override any gcc2 internal prototype to avoid an error. */
14965 /* We use char because int might match the return type of a gcc2
14966 builtin and then its argument prototype would still apply. */
14972 /* The GNU C library defines this for functions which it implements
14973 to always fail with ENOSYS. Some functions are actually named
14974 something starting with __ and the normal name is an alias. */
14975 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14983 if { (eval echo configure:14984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14985 eval "ac_cv_func_$ac_func=yes"
14987 echo "configure: failed program was:" >&5
14988 cat conftest.$ac_ext >&5
14990 eval "ac_cv_func_$ac_func=no"
14995 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14996 echo "$ac_t""yes" 1>&6
14997 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14998 cat >> confdefs.h <<EOF
14999 #define $ac_tr_func 1
15003 echo "$ac_t""no" 1>&6
15007 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
15008 echo "configure:15009: checking for LinuxThreads implementation" >&5
15009 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
15010 echo $ac_n "(cached) $ac_c" 1>&6
15012 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
15015 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
15020 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
15021 echo "configure:15022: checking for LinuxThreads consistency" >&5
15022 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
15023 echo $ac_n "(cached) $ac_c" 1>&6
15026 if test $ol_cv_header_linux_threads = yes -a \
15027 $ol_cv_sys_linux_threads = yes; then
15028 ol_cv_linux_threads=yes
15029 elif test $ol_cv_header_linux_threads = no -a \
15030 $ol_cv_sys_linux_threads = no; then
15031 ol_cv_linux_threads=no
15033 ol_cv_linux_threads=error
15038 echo "$ac_t""$ol_cv_linux_threads" 1>&6
15041 if test $ol_cv_linux_threads = error; then
15042 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
15045 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
15046 echo "configure:15047: checking if pthread_create() works" >&5
15047 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
15048 echo $ac_n "(cached) $ac_c" 1>&6
15051 if test "$cross_compiling" = yes; then
15052 ol_cv_pthread_create_works=yes
15054 cat > conftest.$ac_ext <<EOF
15055 #line 15056 "configure"
15056 #include "confdefs.h"
15057 /* pthread test headers */
15058 #include <pthread.h>
15059 #if HAVE_PTHREADS < 7
15063 #define NULL (void*)0
15066 static void *task(p)
15069 return (void *) (p == NULL);
15073 int main(argc, argv)
15078 /* pthread test function */
15079 #ifndef PTHREAD_CREATE_DETACHED
15080 #define PTHREAD_CREATE_DETACHED 1
15084 int detach = PTHREAD_CREATE_DETACHED;
15086 #if HAVE_PTHREADS > 4
15087 /* Final pthreads */
15088 pthread_attr_t attr;
15090 status = pthread_attr_init(&attr);
15091 if( status ) return status;
15093 #if HAVE_PTHREADS < 7
15094 status = pthread_attr_setdetachstate(&attr, &detach);
15095 if( status < 0 ) status = errno;
15097 status = pthread_attr_setdetachstate(&attr, detach);
15099 if( status ) return status;
15100 status = pthread_create( &t, &attr, task, NULL );
15101 #if HAVE_PTHREADS < 7
15102 if( status < 0 ) status = errno;
15104 if( status ) return status;
15106 /* Draft 4 pthreads */
15107 status = pthread_create( &t, pthread_attr_default, task, NULL );
15108 if( status ) return errno;
15110 /* give thread a chance to complete */
15111 /* it should remain joinable and hence detachable */
15114 status = pthread_detach( &t );
15115 if( status ) return errno;
15118 #ifdef HAVE_LINUX_THREADS
15119 pthread_kill_other_threads_np();
15127 if { (eval echo configure:15128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15129 ol_cv_pthread_create_works=yes
15131 echo "configure: failed program was:" >&5
15132 cat conftest.$ac_ext >&5
15134 ol_cv_pthread_create_works=no
15141 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
15143 if test $ol_cv_pthread_create_works = no ; then
15144 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
15147 if test $ol_with_yielding_select = auto ; then
15148 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
15149 echo "configure:15150: checking if select yields when using pthreads" >&5
15150 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
15151 echo $ac_n "(cached) $ac_c" 1>&6
15154 if test "$cross_compiling" = yes; then
15155 ol_cv_pthread_select_yields=cross
15157 cat > conftest.$ac_ext <<EOF
15158 #line 15159 "configure"
15159 #include "confdefs.h"
15161 #include <sys/types.h>
15162 #include <sys/time.h>
15163 #include <unistd.h>
15164 #include <pthread.h>
15166 #define NULL (void*) 0
15169 static int fildes[2];
15171 static void *task(p)
15183 FD_SET(fildes[0], &rfds);
15185 /* we're not interested in any fds */
15186 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
15193 exit(0); /* if we exit here, the select blocked the whole process */
15196 int main(argc, argv)
15202 /* create a pipe to select */
15203 if(pipe(&fildes[0])) {
15208 #ifdef HAVE_PTHREAD_SETCONCURRENCY
15209 (void) pthread_setconcurrency(2);
15211 #ifdef HAVE_THR_SETCONCURRENCY
15212 /* Set Solaris LWP concurrency to 2 */
15213 thr_setconcurrency(2);
15217 #if HAVE_PTHREADS < 6
15218 pthread_create(&t, pthread_attr_default, task, NULL);
15220 pthread_create(&t, NULL, task, NULL);
15223 /* make sure task runs first */
15226 #elif defined( HAVE_SCHED_YIELD )
15228 #elif defined( HAVE_PTHREAD_YIELD )
15235 if { (eval echo configure:15236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15237 ol_cv_pthread_select_yields=no
15239 echo "configure: failed program was:" >&5
15240 cat conftest.$ac_ext >&5
15242 ol_cv_pthread_select_yields=yes
15249 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
15251 if test $ol_cv_pthread_select_yields = cross ; then
15252 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
15255 if test $ol_cv_pthread_select_yields = yes ; then
15256 ol_with_yielding_select=yes
15260 CPPFLAGS="$save_CPPFLAGS"
15263 { echo "configure: error: could not locate usable POSIX Threads" 1>&2; exit 1; }
15267 if test $ol_with_threads = posix ; then
15268 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
15272 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15273 -o $ol_with_threads = mach ; then
15275 for ac_hdr in mach/cthreads.h cthreads.h
15277 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15278 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15279 echo "configure:15280: checking for $ac_hdr" >&5
15280 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15281 echo $ac_n "(cached) $ac_c" 1>&6
15283 cat > conftest.$ac_ext <<EOF
15284 #line 15285 "configure"
15285 #include "confdefs.h"
15288 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15289 { (eval echo configure:15290: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15290 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15291 if test -z "$ac_err"; then
15293 eval "ac_cv_header_$ac_safe=yes"
15296 echo "configure: failed program was:" >&5
15297 cat conftest.$ac_ext >&5
15299 eval "ac_cv_header_$ac_safe=no"
15303 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15304 echo "$ac_t""yes" 1>&6
15305 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15306 cat >> confdefs.h <<EOF
15307 #define $ac_tr_hdr 1
15311 echo "$ac_t""no" 1>&6
15315 if test $ac_cv_header_mach_cthreads_h = yes ; then
15316 ol_with_threads=found
15318 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
15319 echo "configure:15320: checking for cthread_fork" >&5
15320 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
15321 echo $ac_n "(cached) $ac_c" 1>&6
15323 cat > conftest.$ac_ext <<EOF
15324 #line 15325 "configure"
15325 #include "confdefs.h"
15326 /* System header to define __stub macros and hopefully few prototypes,
15327 which can conflict with char cthread_fork(); below. */
15328 #include <assert.h>
15329 /* Override any gcc2 internal prototype to avoid an error. */
15330 /* We use char because int might match the return type of a gcc2
15331 builtin and then its argument prototype would still apply. */
15332 char cthread_fork();
15337 /* The GNU C library defines this for functions which it implements
15338 to always fail with ENOSYS. Some functions are actually named
15339 something starting with __ and the normal name is an alias. */
15340 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
15348 if { (eval echo configure:15349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15350 eval "ac_cv_func_cthread_fork=yes"
15352 echo "configure: failed program was:" >&5
15353 cat conftest.$ac_ext >&5
15355 eval "ac_cv_func_cthread_fork=no"
15360 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
15361 echo "$ac_t""yes" 1>&6
15362 ol_link_threads=yes
15364 echo "$ac_t""no" 1>&6
15368 if test $ol_link_threads = no ; then
15369 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
15370 echo "configure:15371: checking for cthread_fork with -all_load" >&5
15371 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
15372 echo $ac_n "(cached) $ac_c" 1>&6
15376 LIBS="-all_load $LIBS"
15377 cat > conftest.$ac_ext <<EOF
15378 #line 15379 "configure"
15379 #include "confdefs.h"
15380 #include <mach/cthreads.h>
15383 cthread_fork((void *)0, (void *)0);
15387 if { (eval echo configure:15388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15389 ol_cv_cthread_all_load=yes
15391 echo "configure: failed program was:" >&5
15392 cat conftest.$ac_ext >&5
15394 ol_cv_cthread_all_load=no
15401 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
15403 if test $ol_cv_cthread_all_load = yes ; then
15404 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
15405 ol_link_threads=mach
15406 ol_with_threads=found
15410 elif test $ac_cv_header_cthreads_h = yes ; then
15412 ol_with_threads=found
15415 LIBS="$LIBS -lthreads"
15416 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
15417 echo "configure:15418: checking for cthread_fork" >&5
15418 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
15419 echo $ac_n "(cached) $ac_c" 1>&6
15421 cat > conftest.$ac_ext <<EOF
15422 #line 15423 "configure"
15423 #include "confdefs.h"
15424 /* System header to define __stub macros and hopefully few prototypes,
15425 which can conflict with char cthread_fork(); below. */
15426 #include <assert.h>
15427 /* Override any gcc2 internal prototype to avoid an error. */
15428 /* We use char because int might match the return type of a gcc2
15429 builtin and then its argument prototype would still apply. */
15430 char cthread_fork();
15435 /* The GNU C library defines this for functions which it implements
15436 to always fail with ENOSYS. Some functions are actually named
15437 something starting with __ and the normal name is an alias. */
15438 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
15446 if { (eval echo configure:15447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15448 eval "ac_cv_func_cthread_fork=yes"
15450 echo "configure: failed program was:" >&5
15451 cat conftest.$ac_ext >&5
15453 eval "ac_cv_func_cthread_fork=no"
15458 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
15459 echo "$ac_t""yes" 1>&6
15460 ol_link_threads=yes
15462 echo "$ac_t""no" 1>&6
15467 if test $ol_link_threads = yes ; then
15468 LTHREAD_LIBS="-lthreads"
15469 ol_link_threads=mach
15470 ol_with_threads=found
15472 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
15475 elif test $ol_with_threads = mach ; then
15476 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
15479 if test $ol_link_threads = mach ; then
15480 cat >> confdefs.h <<\EOF
15481 #define HAVE_MACH_CTHREADS 1
15484 elif test $ol_with_threads = found ; then
15485 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
15489 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15490 -o $ol_with_threads = pth ; then
15492 for ac_hdr in pth.h
15494 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15495 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15496 echo "configure:15497: checking for $ac_hdr" >&5
15497 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15498 echo $ac_n "(cached) $ac_c" 1>&6
15500 cat > conftest.$ac_ext <<EOF
15501 #line 15502 "configure"
15502 #include "confdefs.h"
15505 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15506 { (eval echo configure:15507: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15507 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15508 if test -z "$ac_err"; then
15510 eval "ac_cv_header_$ac_safe=yes"
15513 echo "configure: failed program was:" >&5
15514 cat conftest.$ac_ext >&5
15516 eval "ac_cv_header_$ac_safe=no"
15520 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15521 echo "$ac_t""yes" 1>&6
15522 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15523 cat >> confdefs.h <<EOF
15524 #define $ac_tr_hdr 1
15528 echo "$ac_t""no" 1>&6
15533 if test $ac_cv_header_pth_h = yes ; then
15534 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
15535 echo "configure:15536: checking for pth_version in -lpth" >&5
15536 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
15537 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15538 echo $ac_n "(cached) $ac_c" 1>&6
15540 ac_save_LIBS="$LIBS"
15542 cat > conftest.$ac_ext <<EOF
15543 #line 15544 "configure"
15544 #include "confdefs.h"
15545 /* Override any gcc2 internal prototype to avoid an error. */
15546 /* We use char because int might match the return type of a gcc2
15547 builtin and then its argument prototype would still apply. */
15548 char pth_version();
15554 if { (eval echo configure:15555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15556 eval "ac_cv_lib_$ac_lib_var=yes"
15558 echo "configure: failed program was:" >&5
15559 cat conftest.$ac_ext >&5
15561 eval "ac_cv_lib_$ac_lib_var=no"
15564 LIBS="$ac_save_LIBS"
15567 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15568 echo "$ac_t""yes" 1>&6
15571 echo "$ac_t""no" 1>&6
15576 if test $have_pth = yes ; then
15577 cat >> confdefs.h <<\EOF
15578 #define HAVE_GNU_PTH 1
15581 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
15582 ol_link_threads=pth
15583 ol_with_threads=found
15585 if test $ol_with_yielding_select = auto ; then
15586 ol_with_yielding_select=yes
15592 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15593 -o $ol_with_threads = lwp ; then
15595 for ac_hdr in thread.h synch.h
15597 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15598 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15599 echo "configure:15600: checking for $ac_hdr" >&5
15600 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15601 echo $ac_n "(cached) $ac_c" 1>&6
15603 cat > conftest.$ac_ext <<EOF
15604 #line 15605 "configure"
15605 #include "confdefs.h"
15608 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15609 { (eval echo configure:15610: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15610 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15611 if test -z "$ac_err"; then
15613 eval "ac_cv_header_$ac_safe=yes"
15616 echo "configure: failed program was:" >&5
15617 cat conftest.$ac_ext >&5
15619 eval "ac_cv_header_$ac_safe=no"
15623 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15624 echo "$ac_t""yes" 1>&6
15625 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15626 cat >> confdefs.h <<EOF
15627 #define $ac_tr_hdr 1
15631 echo "$ac_t""no" 1>&6
15635 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
15636 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
15637 echo "configure:15638: checking for thr_create in -lthread" >&5
15638 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
15639 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15640 echo $ac_n "(cached) $ac_c" 1>&6
15642 ac_save_LIBS="$LIBS"
15643 LIBS="-lthread $LIBS"
15644 cat > conftest.$ac_ext <<EOF
15645 #line 15646 "configure"
15646 #include "confdefs.h"
15647 /* Override any gcc2 internal prototype to avoid an error. */
15648 /* We use char because int might match the return type of a gcc2
15649 builtin and then its argument prototype would still apply. */
15656 if { (eval echo configure:15657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15658 eval "ac_cv_lib_$ac_lib_var=yes"
15660 echo "configure: failed program was:" >&5
15661 cat conftest.$ac_ext >&5
15663 eval "ac_cv_lib_$ac_lib_var=no"
15666 LIBS="$ac_save_LIBS"
15669 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15670 echo "$ac_t""yes" 1>&6
15673 echo "$ac_t""no" 1>&6
15678 if test $have_thr = yes ; then
15679 cat >> confdefs.h <<\EOF
15683 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
15684 ol_link_threads=thr
15686 if test $ol_with_yielding_select = auto ; then
15687 ol_with_yielding_select=yes
15691 thr_setconcurrency \
15692 thr_getconcurrency \
15695 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15696 echo "configure:15697: checking for $ac_func" >&5
15697 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15698 echo $ac_n "(cached) $ac_c" 1>&6
15700 cat > conftest.$ac_ext <<EOF
15701 #line 15702 "configure"
15702 #include "confdefs.h"
15703 /* System header to define __stub macros and hopefully few prototypes,
15704 which can conflict with char $ac_func(); below. */
15705 #include <assert.h>
15706 /* Override any gcc2 internal prototype to avoid an error. */
15707 /* We use char because int might match the return type of a gcc2
15708 builtin and then its argument prototype would still apply. */
15714 /* The GNU C library defines this for functions which it implements
15715 to always fail with ENOSYS. Some functions are actually named
15716 something starting with __ and the normal name is an alias. */
15717 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15725 if { (eval echo configure:15726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15727 eval "ac_cv_func_$ac_func=yes"
15729 echo "configure: failed program was:" >&5
15730 cat conftest.$ac_ext >&5
15732 eval "ac_cv_func_$ac_func=no"
15737 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15738 echo "$ac_t""yes" 1>&6
15739 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15740 cat >> confdefs.h <<EOF
15741 #define $ac_tr_func 1
15745 echo "$ac_t""no" 1>&6
15752 for ac_hdr in lwp/lwp.h
15754 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15755 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15756 echo "configure:15757: checking for $ac_hdr" >&5
15757 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15758 echo $ac_n "(cached) $ac_c" 1>&6
15760 cat > conftest.$ac_ext <<EOF
15761 #line 15762 "configure"
15762 #include "confdefs.h"
15765 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15766 { (eval echo configure:15767: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15767 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15768 if test -z "$ac_err"; then
15770 eval "ac_cv_header_$ac_safe=yes"
15773 echo "configure: failed program was:" >&5
15774 cat conftest.$ac_ext >&5
15776 eval "ac_cv_header_$ac_safe=no"
15780 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15781 echo "$ac_t""yes" 1>&6
15782 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15783 cat >> confdefs.h <<EOF
15784 #define $ac_tr_hdr 1
15788 echo "$ac_t""no" 1>&6
15792 if test $ac_cv_header_lwp_lwp_h = yes ; then
15793 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
15794 echo "configure:15795: checking for lwp_create in -llwp" >&5
15795 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
15796 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15797 echo $ac_n "(cached) $ac_c" 1>&6
15799 ac_save_LIBS="$LIBS"
15801 cat > conftest.$ac_ext <<EOF
15802 #line 15803 "configure"
15803 #include "confdefs.h"
15804 /* Override any gcc2 internal prototype to avoid an error. */
15805 /* We use char because int might match the return type of a gcc2
15806 builtin and then its argument prototype would still apply. */
15813 if { (eval echo configure:15814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15815 eval "ac_cv_lib_$ac_lib_var=yes"
15817 echo "configure: failed program was:" >&5
15818 cat conftest.$ac_ext >&5
15820 eval "ac_cv_lib_$ac_lib_var=no"
15823 LIBS="$ac_save_LIBS"
15826 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15827 echo "$ac_t""yes" 1>&6
15830 echo "$ac_t""no" 1>&6
15835 if test $have_lwp = yes ; then
15836 cat >> confdefs.h <<\EOF
15840 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
15841 ol_link_threads=lwp
15843 if test $ol_with_yielding_select = auto ; then
15844 ol_with_yielding_select=no
15850 if test $ol_with_yielding_select = yes ; then
15851 cat >> confdefs.h <<\EOF
15852 #define HAVE_YIELDING_SELECT 1
15857 if test $ol_with_threads = manual ; then
15858 ol_link_threads=yes
15860 echo "configure: warning: thread defines and link options must be set manually" 1>&2
15862 for ac_hdr in pthread.h sched.h
15864 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15865 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15866 echo "configure:15867: checking for $ac_hdr" >&5
15867 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15868 echo $ac_n "(cached) $ac_c" 1>&6
15870 cat > conftest.$ac_ext <<EOF
15871 #line 15872 "configure"
15872 #include "confdefs.h"
15875 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15876 { (eval echo configure:15877: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15877 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15878 if test -z "$ac_err"; then
15880 eval "ac_cv_header_$ac_safe=yes"
15883 echo "configure: failed program was:" >&5
15884 cat conftest.$ac_ext >&5
15886 eval "ac_cv_header_$ac_safe=no"
15890 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15891 echo "$ac_t""yes" 1>&6
15892 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15893 cat >> confdefs.h <<EOF
15894 #define $ac_tr_hdr 1
15898 echo "$ac_t""no" 1>&6
15902 for ac_func in sched_yield pthread_yield
15904 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15905 echo "configure:15906: checking for $ac_func" >&5
15906 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15907 echo $ac_n "(cached) $ac_c" 1>&6
15909 cat > conftest.$ac_ext <<EOF
15910 #line 15911 "configure"
15911 #include "confdefs.h"
15912 /* System header to define __stub macros and hopefully few prototypes,
15913 which can conflict with char $ac_func(); below. */
15914 #include <assert.h>
15915 /* Override any gcc2 internal prototype to avoid an error. */
15916 /* We use char because int might match the return type of a gcc2
15917 builtin and then its argument prototype would still apply. */
15923 /* The GNU C library defines this for functions which it implements
15924 to always fail with ENOSYS. Some functions are actually named
15925 something starting with __ and the normal name is an alias. */
15926 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15934 if { (eval echo configure:15935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15936 eval "ac_cv_func_$ac_func=yes"
15938 echo "configure: failed program was:" >&5
15939 cat conftest.$ac_ext >&5
15941 eval "ac_cv_func_$ac_func=no"
15946 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15947 echo "$ac_t""yes" 1>&6
15948 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15949 cat >> confdefs.h <<EOF
15950 #define $ac_tr_func 1
15954 echo "$ac_t""no" 1>&6
15959 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
15960 echo "configure:15961: checking for LinuxThreads pthread.h" >&5
15961 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
15962 echo $ac_n "(cached) $ac_c" 1>&6
15964 cat > conftest.$ac_ext <<EOF
15965 #line 15966 "configure"
15966 #include "confdefs.h"
15967 #include <pthread.h>
15969 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15970 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
15972 ol_cv_header_linux_threads=yes
15975 ol_cv_header_linux_threads=no
15982 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
15983 if test $ol_cv_header_linux_threads = yes; then
15984 cat >> confdefs.h <<\EOF
15985 #define HAVE_LINUX_THREADS 1
15991 for ac_hdr in mach/cthreads.h
15993 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15994 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15995 echo "configure:15996: checking for $ac_hdr" >&5
15996 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15997 echo $ac_n "(cached) $ac_c" 1>&6
15999 cat > conftest.$ac_ext <<EOF
16000 #line 16001 "configure"
16001 #include "confdefs.h"
16004 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16005 { (eval echo configure:16006: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16006 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16007 if test -z "$ac_err"; then
16009 eval "ac_cv_header_$ac_safe=yes"
16012 echo "configure: failed program was:" >&5
16013 cat conftest.$ac_ext >&5
16015 eval "ac_cv_header_$ac_safe=no"
16019 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16020 echo "$ac_t""yes" 1>&6
16021 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16022 cat >> confdefs.h <<EOF
16023 #define $ac_tr_hdr 1
16027 echo "$ac_t""no" 1>&6
16031 for ac_hdr in lwp/lwp.h
16033 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16034 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16035 echo "configure:16036: checking for $ac_hdr" >&5
16036 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16037 echo $ac_n "(cached) $ac_c" 1>&6
16039 cat > conftest.$ac_ext <<EOF
16040 #line 16041 "configure"
16041 #include "confdefs.h"
16044 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16045 { (eval echo configure:16046: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16046 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16047 if test -z "$ac_err"; then
16049 eval "ac_cv_header_$ac_safe=yes"
16052 echo "configure: failed program was:" >&5
16053 cat conftest.$ac_ext >&5
16055 eval "ac_cv_header_$ac_safe=no"
16059 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16060 echo "$ac_t""yes" 1>&6
16061 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16062 cat >> confdefs.h <<EOF
16063 #define $ac_tr_hdr 1
16067 echo "$ac_t""no" 1>&6
16071 for ac_hdr in thread.h synch.h
16073 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16074 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16075 echo "configure:16076: checking for $ac_hdr" >&5
16076 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16077 echo $ac_n "(cached) $ac_c" 1>&6
16079 cat > conftest.$ac_ext <<EOF
16080 #line 16081 "configure"
16081 #include "confdefs.h"
16084 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16085 { (eval echo configure:16086: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16086 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16087 if test -z "$ac_err"; then
16089 eval "ac_cv_header_$ac_safe=yes"
16092 echo "configure: failed program was:" >&5
16093 cat conftest.$ac_ext >&5
16095 eval "ac_cv_header_$ac_safe=no"
16099 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16100 echo "$ac_t""yes" 1>&6
16101 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16102 cat >> confdefs.h <<EOF
16103 #define $ac_tr_hdr 1
16107 echo "$ac_t""no" 1>&6
16113 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
16114 cat >> confdefs.h <<\EOF
16115 #define REENTRANT 1
16118 cat >> confdefs.h <<\EOF
16119 #define _REENTRANT 1
16122 cat >> confdefs.h <<\EOF
16123 #define THREAD_SAFE 1
16126 cat >> confdefs.h <<\EOF
16127 #define _THREAD_SAFE 1
16130 cat >> confdefs.h <<\EOF
16131 #define THREADSAFE 1
16134 cat >> confdefs.h <<\EOF
16135 #define _THREADSAFE 1
16138 cat >> confdefs.h <<\EOF
16139 #define _SGI_MP_SOURCE 1
16143 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
16144 echo "configure:16145: checking for thread specific errno" >&5
16145 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
16146 echo $ac_n "(cached) $ac_c" 1>&6
16149 cat > conftest.$ac_ext <<EOF
16150 #line 16151 "configure"
16151 #include "confdefs.h"
16157 if { (eval echo configure:16158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16159 ol_cv_errno_thread_specific=yes
16161 echo "configure: failed program was:" >&5
16162 cat conftest.$ac_ext >&5
16164 ol_cv_errno_thread_specific=no
16170 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
16172 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
16173 echo "configure:16174: checking for thread specific h_errno" >&5
16174 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
16175 echo $ac_n "(cached) $ac_c" 1>&6
16178 cat > conftest.$ac_ext <<EOF
16179 #line 16180 "configure"
16180 #include "confdefs.h"
16186 if { (eval echo configure:16187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16188 ol_cv_h_errno_thread_specific=yes
16190 echo "configure: failed program was:" >&5
16191 cat conftest.$ac_ext >&5
16193 ol_cv_h_errno_thread_specific=no
16199 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
16201 if test $ol_cv_errno_thread_specific != yes \
16202 -o $ol_cv_h_errno_thread_specific != yes ; then
16203 LIBS="$LTHREAD_LIBS $LIBS"
16209 if test $ol_link_threads = no ; then
16210 if test $ol_with_threads = yes ; then
16211 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
16214 if test $ol_with_threads = auto ; then
16215 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
16219 cat >> confdefs.h <<\EOF
16220 #define NO_THREADS 1
16226 if test $ol_link_threads != no ; then
16227 cat >> confdefs.h <<\EOF
16228 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
16235 gethostbyname_r gethostbyaddr_r \
16238 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16239 echo "configure:16240: checking for $ac_func" >&5
16240 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
16241 echo $ac_n "(cached) $ac_c" 1>&6
16243 cat > conftest.$ac_ext <<EOF
16244 #line 16245 "configure"
16245 #include "confdefs.h"
16246 /* System header to define __stub macros and hopefully few prototypes,
16247 which can conflict with char $ac_func(); below. */
16248 #include <assert.h>
16249 /* Override any gcc2 internal prototype to avoid an error. */
16250 /* We use char because int might match the return type of a gcc2
16251 builtin and then its argument prototype would still apply. */
16257 /* The GNU C library defines this for functions which it implements
16258 to always fail with ENOSYS. Some functions are actually named
16259 something starting with __ and the normal name is an alias. */
16260 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16268 if { (eval echo configure:16269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16270 eval "ac_cv_func_$ac_func=yes"
16272 echo "configure: failed program was:" >&5
16273 cat conftest.$ac_ext >&5
16275 eval "ac_cv_func_$ac_func=no"
16280 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16281 echo "$ac_t""yes" 1>&6
16282 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16283 cat >> confdefs.h <<EOF
16284 #define $ac_tr_func 1
16288 echo "$ac_t""no" 1>&6
16293 if test "$ac_cv_func_ctime_r" = no ; then
16294 ol_cv_func_ctime_r_nargs=0
16296 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
16297 echo "configure:16298: checking number of arguments of ctime_r" >&5
16298 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
16299 echo $ac_n "(cached) $ac_c" 1>&6
16301 cat > conftest.$ac_ext <<EOF
16302 #line 16303 "configure"
16303 #include "confdefs.h"
16306 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
16309 if { (eval echo configure:16310: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16311 ol_cv_func_ctime_r_nargs3=yes
16313 echo "configure: failed program was:" >&5
16314 cat conftest.$ac_ext >&5
16316 ol_cv_func_ctime_r_nargs3=no
16320 cat > conftest.$ac_ext <<EOF
16321 #line 16322 "configure"
16322 #include "confdefs.h"
16325 time_t ti; char *buffer; ctime_r(&ti,buffer);
16328 if { (eval echo configure:16329: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16330 ol_cv_func_ctime_r_nargs2=yes
16332 echo "configure: failed program was:" >&5
16333 cat conftest.$ac_ext >&5
16335 ol_cv_func_ctime_r_nargs2=no
16339 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
16340 $ol_cv_func_ctime_r_nargs2 = no ; then
16342 ol_cv_func_ctime_r_nargs=3
16344 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
16345 $ol_cv_func_ctime_r_nargs2 = yes ; then
16347 ol_cv_func_ctime_r_nargs=2
16350 ol_cv_func_ctime_r_nargs=0
16355 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
16357 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
16358 cat >> confdefs.h <<EOF
16359 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
16366 if test "$ac_cv_func_gethostbyname_r" = yes ; then
16367 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
16368 echo "configure:16369: checking number of arguments of gethostbyname_r" >&5
16369 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
16370 echo $ac_n "(cached) $ac_c" 1>&6
16372 cat > conftest.$ac_ext <<EOF
16373 #line 16374 "configure"
16374 #include "confdefs.h"
16375 #include <sys/types.h>
16376 #include <sys/socket.h>
16377 #include <netinet/in.h>
16379 #define BUFSIZE (sizeof(struct hostent)+10)
16381 struct hostent hent; char buffer[BUFSIZE];
16382 int bufsize=BUFSIZE;int h_errno;
16383 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
16384 buffer, bufsize, &h_errno);
16387 if { (eval echo configure:16388: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16389 ol_cv_func_gethostbyname_r_nargs5=yes
16391 echo "configure: failed program was:" >&5
16392 cat conftest.$ac_ext >&5
16394 ol_cv_func_gethostbyname_r_nargs5=no
16398 cat > conftest.$ac_ext <<EOF
16399 #line 16400 "configure"
16400 #include "confdefs.h"
16401 #include <sys/types.h>
16402 #include <sys/socket.h>
16403 #include <netinet/in.h>
16405 #define BUFSIZE (sizeof(struct hostent)+10)
16407 struct hostent hent;struct hostent *rhent;
16408 char buffer[BUFSIZE];
16409 int bufsize=BUFSIZE;int h_errno;
16410 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
16414 if { (eval echo configure:16415: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16416 ol_cv_func_gethostbyname_r_nargs6=yes
16418 echo "configure: failed program was:" >&5
16419 cat conftest.$ac_ext >&5
16421 ol_cv_func_gethostbyname_r_nargs6=no
16425 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
16426 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
16428 ol_cv_func_gethostbyname_r_nargs=5
16430 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
16431 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
16433 ol_cv_func_gethostbyname_r_nargs=6
16436 ol_cv_func_gethostbyname_r_nargs=0
16441 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
16442 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
16443 cat >> confdefs.h <<EOF
16444 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
16450 ol_cv_func_gethostbyname_r_nargs=0
16453 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
16454 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
16455 echo "configure:16456: checking number of arguments of gethostbyaddr_r" >&5
16456 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
16457 echo $ac_n "(cached) $ac_c" 1>&6
16459 cat > conftest.$ac_ext <<EOF
16460 #line 16461 "configure"
16461 #include "confdefs.h"
16462 #include <sys/types.h>
16463 #include <sys/socket.h>
16464 #include <netinet/in.h>
16466 #define BUFSIZE (sizeof(struct hostent)+10)
16468 struct hostent hent; char buffer[BUFSIZE];
16469 struct in_addr add;
16470 size_t alen=sizeof(struct in_addr);
16471 int bufsize=BUFSIZE;int h_errno;
16472 (void)gethostbyaddr_r( (void *)&(add.s_addr),
16473 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
16476 if { (eval echo configure:16477: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16478 ol_cv_func_gethostbyaddr_r_nargs7=yes
16480 echo "configure: failed program was:" >&5
16481 cat conftest.$ac_ext >&5
16483 ol_cv_func_gethostbyaddr_r_nargs7=no
16487 cat > conftest.$ac_ext <<EOF
16488 #line 16489 "configure"
16489 #include "confdefs.h"
16490 #include <sys/types.h>
16491 #include <sys/socket.h>
16492 #include <netinet/in.h>
16494 #define BUFSIZE (sizeof(struct hostent)+10)
16496 struct hostent hent;
16497 struct hostent *rhent; char buffer[BUFSIZE];
16498 struct in_addr add;
16499 size_t alen=sizeof(struct in_addr);
16500 int bufsize=BUFSIZE;int h_errno;
16501 (void)gethostbyaddr_r( (void *)&(add.s_addr),
16502 alen, AF_INET, &hent, buffer, bufsize,
16506 if { (eval echo configure:16507: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16508 ol_cv_func_gethostbyaddr_r_nargs8=yes
16510 echo "configure: failed program was:" >&5
16511 cat conftest.$ac_ext >&5
16513 ol_cv_func_gethostbyaddr_r_nargs8=no
16517 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
16518 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
16520 ol_cv_func_gethostbyaddr_r_nargs=7
16522 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
16523 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
16525 ol_cv_func_gethostbyaddr_r_nargs=8
16528 ol_cv_func_gethostbyaddr_r_nargs=0
16533 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
16534 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
16535 cat >> confdefs.h <<EOF
16536 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
16542 ol_cv_func_gethostbyaddr_r_nargs=0
16547 if test $ol_with_ldbm_api = auto \
16548 -o $ol_with_ldbm_api = berkeley \
16549 -o $ol_with_ldbm_api = bcompat ; then
16551 if test $ol_with_ldbm_api = bcompat; then \
16552 for ac_hdr in db_185.h db.h
16554 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16555 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16556 echo "configure:16557: checking for $ac_hdr" >&5
16557 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16558 echo $ac_n "(cached) $ac_c" 1>&6
16560 cat > conftest.$ac_ext <<EOF
16561 #line 16562 "configure"
16562 #include "confdefs.h"
16565 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16566 { (eval echo configure:16567: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16567 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16568 if test -z "$ac_err"; then
16570 eval "ac_cv_header_$ac_safe=yes"
16573 echo "configure: failed program was:" >&5
16574 cat conftest.$ac_ext >&5
16576 eval "ac_cv_header_$ac_safe=no"
16580 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16581 echo "$ac_t""yes" 1>&6
16582 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16583 cat >> confdefs.h <<EOF
16584 #define $ac_tr_hdr 1
16588 echo "$ac_t""no" 1>&6
16592 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
16593 echo $ac_n "checking if Berkeley DB header compatibility""... $ac_c" 1>&6
16594 echo "configure:16595: checking if Berkeley DB header compatibility" >&5
16595 if eval "test \"\${ol_cv_header_db1+set}\" = set"; then
16596 echo $ac_n "(cached) $ac_c" 1>&6
16599 cat > conftest.$ac_ext <<EOF
16600 #line 16601 "configure"
16601 #include "confdefs.h"
16604 # include <db_185.h>
16609 /* this check could be improved */
16610 #ifndef DB_VERSION_MAJOR
16611 # define DB_VERSION_MAJOR 1
16614 #if DB_VERSION_MAJOR == 1
16619 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16620 egrep "__db_version_1" >/dev/null 2>&1; then
16622 ol_cv_header_db1=yes
16625 ol_cv_header_db1=no
16631 echo "$ac_t""$ol_cv_header_db1" 1>&6
16633 if test $ol_cv_header_db1 = yes ; then
16635 if test $ol_cv_lib_db = no ; then
16636 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
16637 echo "configure:16638: checking for Berkeley DB link (default)" >&5
16638 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
16639 echo $ac_n "(cached) $ac_c" 1>&6
16644 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16646 cat > conftest.$ac_ext <<EOF
16647 #line 16648 "configure"
16648 #include "confdefs.h"
16650 #ifdef HAVE_DB_185_H
16651 # include <db_185.h>
16656 #ifndef DB_VERSION_MAJOR
16657 # define DB_VERSION_MAJOR 1
16661 #define NULL ((void*)0)
16666 #if DB_VERSION_MAJOR > 1
16669 int major, minor, patch;
16671 version = db_version( &major, &minor, &patch );
16673 if( major != DB_VERSION_MAJOR ||
16674 minor < DB_VERSION_MINOR )
16676 printf("Berkeley DB version mismatch\n"
16677 "\texpected: %s\n\tgot: %s\n",
16678 DB_VERSION_STRING, version);
16684 #if DB_VERSION_MAJOR > 2
16685 db_env_create( NULL, 0 );
16686 #elif DB_VERSION_MAJOR > 1
16687 db_appexit( NULL );
16689 (void) dbopen( NULL, 0, 0, 0, NULL);
16694 if { (eval echo configure:16695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16698 echo "configure: failed program was:" >&5
16699 cat conftest.$ac_ext >&5
16709 echo "$ac_t""$ol_cv_db_none" 1>&6
16711 if test $ol_cv_db_none = yes ; then
16716 if test $ol_cv_lib_db = no ; then
16717 echo $ac_n "checking for Berkeley DB link (-ldb42)""... $ac_c" 1>&6
16718 echo "configure:16719: checking for Berkeley DB link (-ldb42)" >&5
16719 if eval "test \"\${ol_cv_db_db42+set}\" = set"; then
16720 echo $ac_n "(cached) $ac_c" 1>&6
16725 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16727 cat > conftest.$ac_ext <<EOF
16728 #line 16729 "configure"
16729 #include "confdefs.h"
16731 #ifdef HAVE_DB_185_H
16732 # include <db_185.h>
16737 #ifndef DB_VERSION_MAJOR
16738 # define DB_VERSION_MAJOR 1
16742 #define NULL ((void*)0)
16747 #if DB_VERSION_MAJOR > 1
16750 int major, minor, patch;
16752 version = db_version( &major, &minor, &patch );
16754 if( major != DB_VERSION_MAJOR ||
16755 minor < DB_VERSION_MINOR )
16757 printf("Berkeley DB version mismatch\n"
16758 "\texpected: %s\n\tgot: %s\n",
16759 DB_VERSION_STRING, version);
16765 #if DB_VERSION_MAJOR > 2
16766 db_env_create( NULL, 0 );
16767 #elif DB_VERSION_MAJOR > 1
16768 db_appexit( NULL );
16770 (void) dbopen( NULL, 0, 0, 0, NULL);
16775 if { (eval echo configure:16776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16779 echo "configure: failed program was:" >&5
16780 cat conftest.$ac_ext >&5
16790 echo "$ac_t""$ol_cv_db_db42" 1>&6
16792 if test $ol_cv_db_db42 = yes ; then
16793 ol_cv_lib_db=-ldb42
16797 if test $ol_cv_lib_db = no ; then
16798 echo $ac_n "checking for Berkeley DB link (-ldb-42)""... $ac_c" 1>&6
16799 echo "configure:16800: checking for Berkeley DB link (-ldb-42)" >&5
16800 if eval "test \"\${ol_cv_db_db_42+set}\" = set"; then
16801 echo $ac_n "(cached) $ac_c" 1>&6
16806 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16808 cat > conftest.$ac_ext <<EOF
16809 #line 16810 "configure"
16810 #include "confdefs.h"
16812 #ifdef HAVE_DB_185_H
16813 # include <db_185.h>
16818 #ifndef DB_VERSION_MAJOR
16819 # define DB_VERSION_MAJOR 1
16823 #define NULL ((void*)0)
16828 #if DB_VERSION_MAJOR > 1
16831 int major, minor, patch;
16833 version = db_version( &major, &minor, &patch );
16835 if( major != DB_VERSION_MAJOR ||
16836 minor < DB_VERSION_MINOR )
16838 printf("Berkeley DB version mismatch\n"
16839 "\texpected: %s\n\tgot: %s\n",
16840 DB_VERSION_STRING, version);
16846 #if DB_VERSION_MAJOR > 2
16847 db_env_create( NULL, 0 );
16848 #elif DB_VERSION_MAJOR > 1
16849 db_appexit( NULL );
16851 (void) dbopen( NULL, 0, 0, 0, NULL);
16856 if { (eval echo configure:16857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16860 echo "configure: failed program was:" >&5
16861 cat conftest.$ac_ext >&5
16871 echo "$ac_t""$ol_cv_db_db_42" 1>&6
16873 if test $ol_cv_db_db_42 = yes ; then
16874 ol_cv_lib_db=-ldb-42
16878 if test $ol_cv_lib_db = no ; then
16879 echo $ac_n "checking for Berkeley DB link (-ldb-4.2)""... $ac_c" 1>&6
16880 echo "configure:16881: checking for Berkeley DB link (-ldb-4.2)" >&5
16881 if eval "test \"\${ol_cv_db_db_4_dot_2+set}\" = set"; then
16882 echo $ac_n "(cached) $ac_c" 1>&6
16887 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16889 cat > conftest.$ac_ext <<EOF
16890 #line 16891 "configure"
16891 #include "confdefs.h"
16893 #ifdef HAVE_DB_185_H
16894 # include <db_185.h>
16899 #ifndef DB_VERSION_MAJOR
16900 # define DB_VERSION_MAJOR 1
16904 #define NULL ((void*)0)
16909 #if DB_VERSION_MAJOR > 1
16912 int major, minor, patch;
16914 version = db_version( &major, &minor, &patch );
16916 if( major != DB_VERSION_MAJOR ||
16917 minor < DB_VERSION_MINOR )
16919 printf("Berkeley DB version mismatch\n"
16920 "\texpected: %s\n\tgot: %s\n",
16921 DB_VERSION_STRING, version);
16927 #if DB_VERSION_MAJOR > 2
16928 db_env_create( NULL, 0 );
16929 #elif DB_VERSION_MAJOR > 1
16930 db_appexit( NULL );
16932 (void) dbopen( NULL, 0, 0, 0, NULL);
16937 if { (eval echo configure:16938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16939 ol_cv_db_db_4_dot_2=yes
16941 echo "configure: failed program was:" >&5
16942 cat conftest.$ac_ext >&5
16944 ol_cv_db_db_4_dot_2=no
16952 echo "$ac_t""$ol_cv_db_db_4_dot_2" 1>&6
16954 if test $ol_cv_db_db_4_dot_2 = yes ; then
16955 ol_cv_lib_db=-ldb-4.2
16959 if test $ol_cv_lib_db = no ; then
16960 echo $ac_n "checking for Berkeley DB link (-ldb-4-2)""... $ac_c" 1>&6
16961 echo "configure:16962: checking for Berkeley DB link (-ldb-4-2)" >&5
16962 if eval "test \"\${ol_cv_db_db_4_2+set}\" = set"; then
16963 echo $ac_n "(cached) $ac_c" 1>&6
16968 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16970 cat > conftest.$ac_ext <<EOF
16971 #line 16972 "configure"
16972 #include "confdefs.h"
16974 #ifdef HAVE_DB_185_H
16975 # include <db_185.h>
16980 #ifndef DB_VERSION_MAJOR
16981 # define DB_VERSION_MAJOR 1
16985 #define NULL ((void*)0)
16990 #if DB_VERSION_MAJOR > 1
16993 int major, minor, patch;
16995 version = db_version( &major, &minor, &patch );
16997 if( major != DB_VERSION_MAJOR ||
16998 minor < DB_VERSION_MINOR )
17000 printf("Berkeley DB version mismatch\n"
17001 "\texpected: %s\n\tgot: %s\n",
17002 DB_VERSION_STRING, version);
17008 #if DB_VERSION_MAJOR > 2
17009 db_env_create( NULL, 0 );
17010 #elif DB_VERSION_MAJOR > 1
17011 db_appexit( NULL );
17013 (void) dbopen( NULL, 0, 0, 0, NULL);
17018 if { (eval echo configure:17019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17020 ol_cv_db_db_4_2=yes
17022 echo "configure: failed program was:" >&5
17023 cat conftest.$ac_ext >&5
17033 echo "$ac_t""$ol_cv_db_db_4_2" 1>&6
17035 if test $ol_cv_db_db_4_2 = yes ; then
17036 ol_cv_lib_db=-ldb-4-2
17040 if test $ol_cv_lib_db = no ; then
17041 echo $ac_n "checking for Berkeley DB link (-ldb-4)""... $ac_c" 1>&6
17042 echo "configure:17043: checking for Berkeley DB link (-ldb-4)" >&5
17043 if eval "test \"\${ol_cv_db_db_4+set}\" = set"; then
17044 echo $ac_n "(cached) $ac_c" 1>&6
17049 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17051 cat > conftest.$ac_ext <<EOF
17052 #line 17053 "configure"
17053 #include "confdefs.h"
17055 #ifdef HAVE_DB_185_H
17056 # include <db_185.h>
17061 #ifndef DB_VERSION_MAJOR
17062 # define DB_VERSION_MAJOR 1
17066 #define NULL ((void*)0)
17071 #if DB_VERSION_MAJOR > 1
17074 int major, minor, patch;
17076 version = db_version( &major, &minor, &patch );
17078 if( major != DB_VERSION_MAJOR ||
17079 minor < DB_VERSION_MINOR )
17081 printf("Berkeley DB version mismatch\n"
17082 "\texpected: %s\n\tgot: %s\n",
17083 DB_VERSION_STRING, version);
17089 #if DB_VERSION_MAJOR > 2
17090 db_env_create( NULL, 0 );
17091 #elif DB_VERSION_MAJOR > 1
17092 db_appexit( NULL );
17094 (void) dbopen( NULL, 0, 0, 0, NULL);
17099 if { (eval echo configure:17100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17103 echo "configure: failed program was:" >&5
17104 cat conftest.$ac_ext >&5
17114 echo "$ac_t""$ol_cv_db_db_4" 1>&6
17116 if test $ol_cv_db_db_4 = yes ; then
17117 ol_cv_lib_db=-ldb-4
17121 if test $ol_cv_lib_db = no ; then
17122 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
17123 echo "configure:17124: checking for Berkeley DB link (-ldb4)" >&5
17124 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
17125 echo $ac_n "(cached) $ac_c" 1>&6
17130 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17132 cat > conftest.$ac_ext <<EOF
17133 #line 17134 "configure"
17134 #include "confdefs.h"
17136 #ifdef HAVE_DB_185_H
17137 # include <db_185.h>
17142 #ifndef DB_VERSION_MAJOR
17143 # define DB_VERSION_MAJOR 1
17147 #define NULL ((void*)0)
17152 #if DB_VERSION_MAJOR > 1
17155 int major, minor, patch;
17157 version = db_version( &major, &minor, &patch );
17159 if( major != DB_VERSION_MAJOR ||
17160 minor < DB_VERSION_MINOR )
17162 printf("Berkeley DB version mismatch\n"
17163 "\texpected: %s\n\tgot: %s\n",
17164 DB_VERSION_STRING, version);
17170 #if DB_VERSION_MAJOR > 2
17171 db_env_create( NULL, 0 );
17172 #elif DB_VERSION_MAJOR > 1
17173 db_appexit( NULL );
17175 (void) dbopen( NULL, 0, 0, 0, NULL);
17180 if { (eval echo configure:17181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17184 echo "configure: failed program was:" >&5
17185 cat conftest.$ac_ext >&5
17195 echo "$ac_t""$ol_cv_db_db4" 1>&6
17197 if test $ol_cv_db_db4 = yes ; then
17202 if test $ol_cv_lib_db = no ; then
17203 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
17204 echo "configure:17205: checking for Berkeley DB link (-ldb)" >&5
17205 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
17206 echo $ac_n "(cached) $ac_c" 1>&6
17211 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17213 cat > conftest.$ac_ext <<EOF
17214 #line 17215 "configure"
17215 #include "confdefs.h"
17217 #ifdef HAVE_DB_185_H
17218 # include <db_185.h>
17223 #ifndef DB_VERSION_MAJOR
17224 # define DB_VERSION_MAJOR 1
17228 #define NULL ((void*)0)
17233 #if DB_VERSION_MAJOR > 1
17236 int major, minor, patch;
17238 version = db_version( &major, &minor, &patch );
17240 if( major != DB_VERSION_MAJOR ||
17241 minor < DB_VERSION_MINOR )
17243 printf("Berkeley DB version mismatch\n"
17244 "\texpected: %s\n\tgot: %s\n",
17245 DB_VERSION_STRING, version);
17251 #if DB_VERSION_MAJOR > 2
17252 db_env_create( NULL, 0 );
17253 #elif DB_VERSION_MAJOR > 1
17254 db_appexit( NULL );
17256 (void) dbopen( NULL, 0, 0, 0, NULL);
17261 if { (eval echo configure:17262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17265 echo "configure: failed program was:" >&5
17266 cat conftest.$ac_ext >&5
17276 echo "$ac_t""$ol_cv_db_db" 1>&6
17278 if test $ol_cv_db_db = yes ; then
17283 if test $ol_cv_lib_db = no ; then
17284 echo $ac_n "checking for Berkeley DB link (-ldb41)""... $ac_c" 1>&6
17285 echo "configure:17286: checking for Berkeley DB link (-ldb41)" >&5
17286 if eval "test \"\${ol_cv_db_db41+set}\" = set"; then
17287 echo $ac_n "(cached) $ac_c" 1>&6
17292 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17294 cat > conftest.$ac_ext <<EOF
17295 #line 17296 "configure"
17296 #include "confdefs.h"
17298 #ifdef HAVE_DB_185_H
17299 # include <db_185.h>
17304 #ifndef DB_VERSION_MAJOR
17305 # define DB_VERSION_MAJOR 1
17309 #define NULL ((void*)0)
17314 #if DB_VERSION_MAJOR > 1
17317 int major, minor, patch;
17319 version = db_version( &major, &minor, &patch );
17321 if( major != DB_VERSION_MAJOR ||
17322 minor < DB_VERSION_MINOR )
17324 printf("Berkeley DB version mismatch\n"
17325 "\texpected: %s\n\tgot: %s\n",
17326 DB_VERSION_STRING, version);
17332 #if DB_VERSION_MAJOR > 2
17333 db_env_create( NULL, 0 );
17334 #elif DB_VERSION_MAJOR > 1
17335 db_appexit( NULL );
17337 (void) dbopen( NULL, 0, 0, 0, NULL);
17342 if { (eval echo configure:17343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17346 echo "configure: failed program was:" >&5
17347 cat conftest.$ac_ext >&5
17357 echo "$ac_t""$ol_cv_db_db41" 1>&6
17359 if test $ol_cv_db_db41 = yes ; then
17360 ol_cv_lib_db=-ldb41
17364 if test $ol_cv_lib_db = no ; then
17365 echo $ac_n "checking for Berkeley DB link (-ldb-41)""... $ac_c" 1>&6
17366 echo "configure:17367: checking for Berkeley DB link (-ldb-41)" >&5
17367 if eval "test \"\${ol_cv_db_db_41+set}\" = set"; then
17368 echo $ac_n "(cached) $ac_c" 1>&6
17373 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17375 cat > conftest.$ac_ext <<EOF
17376 #line 17377 "configure"
17377 #include "confdefs.h"
17379 #ifdef HAVE_DB_185_H
17380 # include <db_185.h>
17385 #ifndef DB_VERSION_MAJOR
17386 # define DB_VERSION_MAJOR 1
17390 #define NULL ((void*)0)
17395 #if DB_VERSION_MAJOR > 1
17398 int major, minor, patch;
17400 version = db_version( &major, &minor, &patch );
17402 if( major != DB_VERSION_MAJOR ||
17403 minor < DB_VERSION_MINOR )
17405 printf("Berkeley DB version mismatch\n"
17406 "\texpected: %s\n\tgot: %s\n",
17407 DB_VERSION_STRING, version);
17413 #if DB_VERSION_MAJOR > 2
17414 db_env_create( NULL, 0 );
17415 #elif DB_VERSION_MAJOR > 1
17416 db_appexit( NULL );
17418 (void) dbopen( NULL, 0, 0, 0, NULL);
17423 if { (eval echo configure:17424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17427 echo "configure: failed program was:" >&5
17428 cat conftest.$ac_ext >&5
17438 echo "$ac_t""$ol_cv_db_db_41" 1>&6
17440 if test $ol_cv_db_db_41 = yes ; then
17441 ol_cv_lib_db=-ldb-41
17445 if test $ol_cv_lib_db = no ; then
17446 echo $ac_n "checking for Berkeley DB link (-ldb-4.1)""... $ac_c" 1>&6
17447 echo "configure:17448: checking for Berkeley DB link (-ldb-4.1)" >&5
17448 if eval "test \"\${ol_cv_db_db_4_dot_1+set}\" = set"; then
17449 echo $ac_n "(cached) $ac_c" 1>&6
17454 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17456 cat > conftest.$ac_ext <<EOF
17457 #line 17458 "configure"
17458 #include "confdefs.h"
17460 #ifdef HAVE_DB_185_H
17461 # include <db_185.h>
17466 #ifndef DB_VERSION_MAJOR
17467 # define DB_VERSION_MAJOR 1
17471 #define NULL ((void*)0)
17476 #if DB_VERSION_MAJOR > 1
17479 int major, minor, patch;
17481 version = db_version( &major, &minor, &patch );
17483 if( major != DB_VERSION_MAJOR ||
17484 minor < DB_VERSION_MINOR )
17486 printf("Berkeley DB version mismatch\n"
17487 "\texpected: %s\n\tgot: %s\n",
17488 DB_VERSION_STRING, version);
17494 #if DB_VERSION_MAJOR > 2
17495 db_env_create( NULL, 0 );
17496 #elif DB_VERSION_MAJOR > 1
17497 db_appexit( NULL );
17499 (void) dbopen( NULL, 0, 0, 0, NULL);
17504 if { (eval echo configure:17505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17506 ol_cv_db_db_4_dot_1=yes
17508 echo "configure: failed program was:" >&5
17509 cat conftest.$ac_ext >&5
17511 ol_cv_db_db_4_dot_1=no
17519 echo "$ac_t""$ol_cv_db_db_4_dot_1" 1>&6
17521 if test $ol_cv_db_db_4_dot_1 = yes ; then
17522 ol_cv_lib_db=-ldb-4.1
17526 if test $ol_cv_lib_db = no ; then
17527 echo $ac_n "checking for Berkeley DB link (-ldb-4-1)""... $ac_c" 1>&6
17528 echo "configure:17529: checking for Berkeley DB link (-ldb-4-1)" >&5
17529 if eval "test \"\${ol_cv_db_db_4_1+set}\" = set"; then
17530 echo $ac_n "(cached) $ac_c" 1>&6
17535 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17537 cat > conftest.$ac_ext <<EOF
17538 #line 17539 "configure"
17539 #include "confdefs.h"
17541 #ifdef HAVE_DB_185_H
17542 # include <db_185.h>
17547 #ifndef DB_VERSION_MAJOR
17548 # define DB_VERSION_MAJOR 1
17552 #define NULL ((void*)0)
17557 #if DB_VERSION_MAJOR > 1
17560 int major, minor, patch;
17562 version = db_version( &major, &minor, &patch );
17564 if( major != DB_VERSION_MAJOR ||
17565 minor < DB_VERSION_MINOR )
17567 printf("Berkeley DB version mismatch\n"
17568 "\texpected: %s\n\tgot: %s\n",
17569 DB_VERSION_STRING, version);
17575 #if DB_VERSION_MAJOR > 2
17576 db_env_create( NULL, 0 );
17577 #elif DB_VERSION_MAJOR > 1
17578 db_appexit( NULL );
17580 (void) dbopen( NULL, 0, 0, 0, NULL);
17585 if { (eval echo configure:17586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17587 ol_cv_db_db_4_1=yes
17589 echo "configure: failed program was:" >&5
17590 cat conftest.$ac_ext >&5
17600 echo "$ac_t""$ol_cv_db_db_4_1" 1>&6
17602 if test $ol_cv_db_db_4_1 = yes ; then
17603 ol_cv_lib_db=-ldb-4-1
17607 if test $ol_cv_lib_db = no ; then
17608 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
17609 echo "configure:17610: checking for Berkeley DB link (-ldb3)" >&5
17610 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
17611 echo $ac_n "(cached) $ac_c" 1>&6
17616 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17618 cat > conftest.$ac_ext <<EOF
17619 #line 17620 "configure"
17620 #include "confdefs.h"
17622 #ifdef HAVE_DB_185_H
17623 # include <db_185.h>
17628 #ifndef DB_VERSION_MAJOR
17629 # define DB_VERSION_MAJOR 1
17633 #define NULL ((void*)0)
17638 #if DB_VERSION_MAJOR > 1
17641 int major, minor, patch;
17643 version = db_version( &major, &minor, &patch );
17645 if( major != DB_VERSION_MAJOR ||
17646 minor < DB_VERSION_MINOR )
17648 printf("Berkeley DB version mismatch\n"
17649 "\texpected: %s\n\tgot: %s\n",
17650 DB_VERSION_STRING, version);
17656 #if DB_VERSION_MAJOR > 2
17657 db_env_create( NULL, 0 );
17658 #elif DB_VERSION_MAJOR > 1
17659 db_appexit( NULL );
17661 (void) dbopen( NULL, 0, 0, 0, NULL);
17666 if { (eval echo configure:17667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17670 echo "configure: failed program was:" >&5
17671 cat conftest.$ac_ext >&5
17681 echo "$ac_t""$ol_cv_db_db3" 1>&6
17683 if test $ol_cv_db_db3 = yes ; then
17688 if test $ol_cv_lib_db = no ; then
17689 echo $ac_n "checking for Berkeley DB link (-ldb-3)""... $ac_c" 1>&6
17690 echo "configure:17691: checking for Berkeley DB link (-ldb-3)" >&5
17691 if eval "test \"\${ol_cv_db_db_3+set}\" = set"; then
17692 echo $ac_n "(cached) $ac_c" 1>&6
17697 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17699 cat > conftest.$ac_ext <<EOF
17700 #line 17701 "configure"
17701 #include "confdefs.h"
17703 #ifdef HAVE_DB_185_H
17704 # include <db_185.h>
17709 #ifndef DB_VERSION_MAJOR
17710 # define DB_VERSION_MAJOR 1
17714 #define NULL ((void*)0)
17719 #if DB_VERSION_MAJOR > 1
17722 int major, minor, patch;
17724 version = db_version( &major, &minor, &patch );
17726 if( major != DB_VERSION_MAJOR ||
17727 minor < DB_VERSION_MINOR )
17729 printf("Berkeley DB version mismatch\n"
17730 "\texpected: %s\n\tgot: %s\n",
17731 DB_VERSION_STRING, version);
17737 #if DB_VERSION_MAJOR > 2
17738 db_env_create( NULL, 0 );
17739 #elif DB_VERSION_MAJOR > 1
17740 db_appexit( NULL );
17742 (void) dbopen( NULL, 0, 0, 0, NULL);
17747 if { (eval echo configure:17748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17751 echo "configure: failed program was:" >&5
17752 cat conftest.$ac_ext >&5
17762 echo "$ac_t""$ol_cv_db_db_3" 1>&6
17764 if test $ol_cv_db_db_3 = yes ; then
17765 ol_cv_lib_db=-ldb-3
17769 if test $ol_cv_lib_db = no ; then
17770 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
17771 echo "configure:17772: checking for Berkeley DB link (-ldb2)" >&5
17772 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
17773 echo $ac_n "(cached) $ac_c" 1>&6
17778 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17780 cat > conftest.$ac_ext <<EOF
17781 #line 17782 "configure"
17782 #include "confdefs.h"
17784 #ifdef HAVE_DB_185_H
17785 # include <db_185.h>
17790 #ifndef DB_VERSION_MAJOR
17791 # define DB_VERSION_MAJOR 1
17795 #define NULL ((void*)0)
17800 #if DB_VERSION_MAJOR > 1
17803 int major, minor, patch;
17805 version = db_version( &major, &minor, &patch );
17807 if( major != DB_VERSION_MAJOR ||
17808 minor < DB_VERSION_MINOR )
17810 printf("Berkeley DB version mismatch\n"
17811 "\texpected: %s\n\tgot: %s\n",
17812 DB_VERSION_STRING, version);
17818 #if DB_VERSION_MAJOR > 2
17819 db_env_create( NULL, 0 );
17820 #elif DB_VERSION_MAJOR > 1
17821 db_appexit( NULL );
17823 (void) dbopen( NULL, 0, 0, 0, NULL);
17828 if { (eval echo configure:17829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17832 echo "configure: failed program was:" >&5
17833 cat conftest.$ac_ext >&5
17843 echo "$ac_t""$ol_cv_db_db2" 1>&6
17845 if test $ol_cv_db_db2 = yes ; then
17850 if test $ol_cv_lib_db = no ; then
17851 echo $ac_n "checking for Berkeley DB link (-ldb-2)""... $ac_c" 1>&6
17852 echo "configure:17853: checking for Berkeley DB link (-ldb-2)" >&5
17853 if eval "test \"\${ol_cv_db_db_2+set}\" = set"; then
17854 echo $ac_n "(cached) $ac_c" 1>&6
17859 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17861 cat > conftest.$ac_ext <<EOF
17862 #line 17863 "configure"
17863 #include "confdefs.h"
17865 #ifdef HAVE_DB_185_H
17866 # include <db_185.h>
17871 #ifndef DB_VERSION_MAJOR
17872 # define DB_VERSION_MAJOR 1
17876 #define NULL ((void*)0)
17881 #if DB_VERSION_MAJOR > 1
17884 int major, minor, patch;
17886 version = db_version( &major, &minor, &patch );
17888 if( major != DB_VERSION_MAJOR ||
17889 minor < DB_VERSION_MINOR )
17891 printf("Berkeley DB version mismatch\n"
17892 "\texpected: %s\n\tgot: %s\n",
17893 DB_VERSION_STRING, version);
17899 #if DB_VERSION_MAJOR > 2
17900 db_env_create( NULL, 0 );
17901 #elif DB_VERSION_MAJOR > 1
17902 db_appexit( NULL );
17904 (void) dbopen( NULL, 0, 0, 0, NULL);
17909 if { (eval echo configure:17910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17913 echo "configure: failed program was:" >&5
17914 cat conftest.$ac_ext >&5
17924 echo "$ac_t""$ol_cv_db_db_2" 1>&6
17926 if test $ol_cv_db_db_2 = yes ; then
17927 ol_cv_lib_db=-ldb-2
17931 if test $ol_cv_lib_db = no ; then
17932 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
17933 echo "configure:17934: checking for Berkeley DB link (-ldb1)" >&5
17934 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
17935 echo $ac_n "(cached) $ac_c" 1>&6
17940 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17942 cat > conftest.$ac_ext <<EOF
17943 #line 17944 "configure"
17944 #include "confdefs.h"
17946 #ifdef HAVE_DB_185_H
17947 # include <db_185.h>
17952 #ifndef DB_VERSION_MAJOR
17953 # define DB_VERSION_MAJOR 1
17957 #define NULL ((void*)0)
17962 #if DB_VERSION_MAJOR > 1
17965 int major, minor, patch;
17967 version = db_version( &major, &minor, &patch );
17969 if( major != DB_VERSION_MAJOR ||
17970 minor < DB_VERSION_MINOR )
17972 printf("Berkeley DB version mismatch\n"
17973 "\texpected: %s\n\tgot: %s\n",
17974 DB_VERSION_STRING, version);
17980 #if DB_VERSION_MAJOR > 2
17981 db_env_create( NULL, 0 );
17982 #elif DB_VERSION_MAJOR > 1
17983 db_appexit( NULL );
17985 (void) dbopen( NULL, 0, 0, 0, NULL);
17990 if { (eval echo configure:17991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17994 echo "configure: failed program was:" >&5
17995 cat conftest.$ac_ext >&5
18005 echo "$ac_t""$ol_cv_db_db1" 1>&6
18007 if test $ol_cv_db_db1 = yes ; then
18012 if test $ol_cv_lib_db = no ; then
18013 echo $ac_n "checking for Berkeley DB link (-ldb-1)""... $ac_c" 1>&6
18014 echo "configure:18015: checking for Berkeley DB link (-ldb-1)" >&5
18015 if eval "test \"\${ol_cv_db_db_1+set}\" = set"; then
18016 echo $ac_n "(cached) $ac_c" 1>&6
18021 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18023 cat > conftest.$ac_ext <<EOF
18024 #line 18025 "configure"
18025 #include "confdefs.h"
18027 #ifdef HAVE_DB_185_H
18028 # include <db_185.h>
18033 #ifndef DB_VERSION_MAJOR
18034 # define DB_VERSION_MAJOR 1
18038 #define NULL ((void*)0)
18043 #if DB_VERSION_MAJOR > 1
18046 int major, minor, patch;
18048 version = db_version( &major, &minor, &patch );
18050 if( major != DB_VERSION_MAJOR ||
18051 minor < DB_VERSION_MINOR )
18053 printf("Berkeley DB version mismatch\n"
18054 "\texpected: %s\n\tgot: %s\n",
18055 DB_VERSION_STRING, version);
18061 #if DB_VERSION_MAJOR > 2
18062 db_env_create( NULL, 0 );
18063 #elif DB_VERSION_MAJOR > 1
18064 db_appexit( NULL );
18066 (void) dbopen( NULL, 0, 0, 0, NULL);
18071 if { (eval echo configure:18072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18075 echo "configure: failed program was:" >&5
18076 cat conftest.$ac_ext >&5
18086 echo "$ac_t""$ol_cv_db_db_1" 1>&6
18088 if test $ol_cv_db_db_1 = yes ; then
18089 ol_cv_lib_db=-ldb-1
18094 if test "$ol_cv_lib_db" != no ; then
18095 ol_cv_berkeley_db=yes
18101 ol_cv_berkeley_db=no
18104 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18105 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18106 echo "configure:18107: checking for $ac_hdr" >&5
18107 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
18108 echo $ac_n "(cached) $ac_c" 1>&6
18110 cat > conftest.$ac_ext <<EOF
18111 #line 18112 "configure"
18112 #include "confdefs.h"
18115 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18116 { (eval echo configure:18117: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18117 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18118 if test -z "$ac_err"; then
18120 eval "ac_cv_header_$ac_safe=yes"
18123 echo "configure: failed program was:" >&5
18124 cat conftest.$ac_ext >&5
18126 eval "ac_cv_header_$ac_safe=no"
18130 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18131 echo "$ac_t""yes" 1>&6
18132 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18133 cat >> confdefs.h <<EOF
18134 #define $ac_tr_hdr 1
18138 echo "$ac_t""no" 1>&6
18142 if test $ac_cv_header_db_h = yes; then
18144 if test $ol_cv_lib_db = no ; then
18145 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
18146 echo "configure:18147: checking for Berkeley DB link (default)" >&5
18147 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
18148 echo $ac_n "(cached) $ac_c" 1>&6
18153 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18155 cat > conftest.$ac_ext <<EOF
18156 #line 18157 "configure"
18157 #include "confdefs.h"
18159 #ifdef HAVE_DB_185_H
18160 # include <db_185.h>
18165 #ifndef DB_VERSION_MAJOR
18166 # define DB_VERSION_MAJOR 1
18170 #define NULL ((void*)0)
18175 #if DB_VERSION_MAJOR > 1
18178 int major, minor, patch;
18180 version = db_version( &major, &minor, &patch );
18182 if( major != DB_VERSION_MAJOR ||
18183 minor < DB_VERSION_MINOR )
18185 printf("Berkeley DB version mismatch\n"
18186 "\texpected: %s\n\tgot: %s\n",
18187 DB_VERSION_STRING, version);
18193 #if DB_VERSION_MAJOR > 2
18194 db_env_create( NULL, 0 );
18195 #elif DB_VERSION_MAJOR > 1
18196 db_appexit( NULL );
18198 (void) dbopen( NULL, 0, 0, 0, NULL);
18203 if { (eval echo configure:18204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18207 echo "configure: failed program was:" >&5
18208 cat conftest.$ac_ext >&5
18218 echo "$ac_t""$ol_cv_db_none" 1>&6
18220 if test $ol_cv_db_none = yes ; then
18225 if test $ol_cv_lib_db = no ; then
18226 echo $ac_n "checking for Berkeley DB link (-ldb42)""... $ac_c" 1>&6
18227 echo "configure:18228: checking for Berkeley DB link (-ldb42)" >&5
18228 if eval "test \"\${ol_cv_db_db42+set}\" = set"; then
18229 echo $ac_n "(cached) $ac_c" 1>&6
18234 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18236 cat > conftest.$ac_ext <<EOF
18237 #line 18238 "configure"
18238 #include "confdefs.h"
18240 #ifdef HAVE_DB_185_H
18241 # include <db_185.h>
18246 #ifndef DB_VERSION_MAJOR
18247 # define DB_VERSION_MAJOR 1
18251 #define NULL ((void*)0)
18256 #if DB_VERSION_MAJOR > 1
18259 int major, minor, patch;
18261 version = db_version( &major, &minor, &patch );
18263 if( major != DB_VERSION_MAJOR ||
18264 minor < DB_VERSION_MINOR )
18266 printf("Berkeley DB version mismatch\n"
18267 "\texpected: %s\n\tgot: %s\n",
18268 DB_VERSION_STRING, version);
18274 #if DB_VERSION_MAJOR > 2
18275 db_env_create( NULL, 0 );
18276 #elif DB_VERSION_MAJOR > 1
18277 db_appexit( NULL );
18279 (void) dbopen( NULL, 0, 0, 0, NULL);
18284 if { (eval echo configure:18285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18288 echo "configure: failed program was:" >&5
18289 cat conftest.$ac_ext >&5
18299 echo "$ac_t""$ol_cv_db_db42" 1>&6
18301 if test $ol_cv_db_db42 = yes ; then
18302 ol_cv_lib_db=-ldb42
18306 if test $ol_cv_lib_db = no ; then
18307 echo $ac_n "checking for Berkeley DB link (-ldb-42)""... $ac_c" 1>&6
18308 echo "configure:18309: checking for Berkeley DB link (-ldb-42)" >&5
18309 if eval "test \"\${ol_cv_db_db_42+set}\" = set"; then
18310 echo $ac_n "(cached) $ac_c" 1>&6
18315 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18317 cat > conftest.$ac_ext <<EOF
18318 #line 18319 "configure"
18319 #include "confdefs.h"
18321 #ifdef HAVE_DB_185_H
18322 # include <db_185.h>
18327 #ifndef DB_VERSION_MAJOR
18328 # define DB_VERSION_MAJOR 1
18332 #define NULL ((void*)0)
18337 #if DB_VERSION_MAJOR > 1
18340 int major, minor, patch;
18342 version = db_version( &major, &minor, &patch );
18344 if( major != DB_VERSION_MAJOR ||
18345 minor < DB_VERSION_MINOR )
18347 printf("Berkeley DB version mismatch\n"
18348 "\texpected: %s\n\tgot: %s\n",
18349 DB_VERSION_STRING, version);
18355 #if DB_VERSION_MAJOR > 2
18356 db_env_create( NULL, 0 );
18357 #elif DB_VERSION_MAJOR > 1
18358 db_appexit( NULL );
18360 (void) dbopen( NULL, 0, 0, 0, NULL);
18365 if { (eval echo configure:18366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18369 echo "configure: failed program was:" >&5
18370 cat conftest.$ac_ext >&5
18380 echo "$ac_t""$ol_cv_db_db_42" 1>&6
18382 if test $ol_cv_db_db_42 = yes ; then
18383 ol_cv_lib_db=-ldb-42
18387 if test $ol_cv_lib_db = no ; then
18388 echo $ac_n "checking for Berkeley DB link (-ldb-4.2)""... $ac_c" 1>&6
18389 echo "configure:18390: checking for Berkeley DB link (-ldb-4.2)" >&5
18390 if eval "test \"\${ol_cv_db_db_4_dot_2+set}\" = set"; then
18391 echo $ac_n "(cached) $ac_c" 1>&6
18396 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18398 cat > conftest.$ac_ext <<EOF
18399 #line 18400 "configure"
18400 #include "confdefs.h"
18402 #ifdef HAVE_DB_185_H
18403 # include <db_185.h>
18408 #ifndef DB_VERSION_MAJOR
18409 # define DB_VERSION_MAJOR 1
18413 #define NULL ((void*)0)
18418 #if DB_VERSION_MAJOR > 1
18421 int major, minor, patch;
18423 version = db_version( &major, &minor, &patch );
18425 if( major != DB_VERSION_MAJOR ||
18426 minor < DB_VERSION_MINOR )
18428 printf("Berkeley DB version mismatch\n"
18429 "\texpected: %s\n\tgot: %s\n",
18430 DB_VERSION_STRING, version);
18436 #if DB_VERSION_MAJOR > 2
18437 db_env_create( NULL, 0 );
18438 #elif DB_VERSION_MAJOR > 1
18439 db_appexit( NULL );
18441 (void) dbopen( NULL, 0, 0, 0, NULL);
18446 if { (eval echo configure:18447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18448 ol_cv_db_db_4_dot_2=yes
18450 echo "configure: failed program was:" >&5
18451 cat conftest.$ac_ext >&5
18453 ol_cv_db_db_4_dot_2=no
18461 echo "$ac_t""$ol_cv_db_db_4_dot_2" 1>&6
18463 if test $ol_cv_db_db_4_dot_2 = yes ; then
18464 ol_cv_lib_db=-ldb-4.2
18468 if test $ol_cv_lib_db = no ; then
18469 echo $ac_n "checking for Berkeley DB link (-ldb-4-2)""... $ac_c" 1>&6
18470 echo "configure:18471: checking for Berkeley DB link (-ldb-4-2)" >&5
18471 if eval "test \"\${ol_cv_db_db_4_2+set}\" = set"; then
18472 echo $ac_n "(cached) $ac_c" 1>&6
18477 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18479 cat > conftest.$ac_ext <<EOF
18480 #line 18481 "configure"
18481 #include "confdefs.h"
18483 #ifdef HAVE_DB_185_H
18484 # include <db_185.h>
18489 #ifndef DB_VERSION_MAJOR
18490 # define DB_VERSION_MAJOR 1
18494 #define NULL ((void*)0)
18499 #if DB_VERSION_MAJOR > 1
18502 int major, minor, patch;
18504 version = db_version( &major, &minor, &patch );
18506 if( major != DB_VERSION_MAJOR ||
18507 minor < DB_VERSION_MINOR )
18509 printf("Berkeley DB version mismatch\n"
18510 "\texpected: %s\n\tgot: %s\n",
18511 DB_VERSION_STRING, version);
18517 #if DB_VERSION_MAJOR > 2
18518 db_env_create( NULL, 0 );
18519 #elif DB_VERSION_MAJOR > 1
18520 db_appexit( NULL );
18522 (void) dbopen( NULL, 0, 0, 0, NULL);
18527 if { (eval echo configure:18528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18529 ol_cv_db_db_4_2=yes
18531 echo "configure: failed program was:" >&5
18532 cat conftest.$ac_ext >&5
18542 echo "$ac_t""$ol_cv_db_db_4_2" 1>&6
18544 if test $ol_cv_db_db_4_2 = yes ; then
18545 ol_cv_lib_db=-ldb-4-2
18549 if test $ol_cv_lib_db = no ; then
18550 echo $ac_n "checking for Berkeley DB link (-ldb-4)""... $ac_c" 1>&6
18551 echo "configure:18552: checking for Berkeley DB link (-ldb-4)" >&5
18552 if eval "test \"\${ol_cv_db_db_4+set}\" = set"; then
18553 echo $ac_n "(cached) $ac_c" 1>&6
18558 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18560 cat > conftest.$ac_ext <<EOF
18561 #line 18562 "configure"
18562 #include "confdefs.h"
18564 #ifdef HAVE_DB_185_H
18565 # include <db_185.h>
18570 #ifndef DB_VERSION_MAJOR
18571 # define DB_VERSION_MAJOR 1
18575 #define NULL ((void*)0)
18580 #if DB_VERSION_MAJOR > 1
18583 int major, minor, patch;
18585 version = db_version( &major, &minor, &patch );
18587 if( major != DB_VERSION_MAJOR ||
18588 minor < DB_VERSION_MINOR )
18590 printf("Berkeley DB version mismatch\n"
18591 "\texpected: %s\n\tgot: %s\n",
18592 DB_VERSION_STRING, version);
18598 #if DB_VERSION_MAJOR > 2
18599 db_env_create( NULL, 0 );
18600 #elif DB_VERSION_MAJOR > 1
18601 db_appexit( NULL );
18603 (void) dbopen( NULL, 0, 0, 0, NULL);
18608 if { (eval echo configure:18609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18612 echo "configure: failed program was:" >&5
18613 cat conftest.$ac_ext >&5
18623 echo "$ac_t""$ol_cv_db_db_4" 1>&6
18625 if test $ol_cv_db_db_4 = yes ; then
18626 ol_cv_lib_db=-ldb-4
18630 if test $ol_cv_lib_db = no ; then
18631 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
18632 echo "configure:18633: checking for Berkeley DB link (-ldb4)" >&5
18633 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
18634 echo $ac_n "(cached) $ac_c" 1>&6
18639 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18641 cat > conftest.$ac_ext <<EOF
18642 #line 18643 "configure"
18643 #include "confdefs.h"
18645 #ifdef HAVE_DB_185_H
18646 # include <db_185.h>
18651 #ifndef DB_VERSION_MAJOR
18652 # define DB_VERSION_MAJOR 1
18656 #define NULL ((void*)0)
18661 #if DB_VERSION_MAJOR > 1
18664 int major, minor, patch;
18666 version = db_version( &major, &minor, &patch );
18668 if( major != DB_VERSION_MAJOR ||
18669 minor < DB_VERSION_MINOR )
18671 printf("Berkeley DB version mismatch\n"
18672 "\texpected: %s\n\tgot: %s\n",
18673 DB_VERSION_STRING, version);
18679 #if DB_VERSION_MAJOR > 2
18680 db_env_create( NULL, 0 );
18681 #elif DB_VERSION_MAJOR > 1
18682 db_appexit( NULL );
18684 (void) dbopen( NULL, 0, 0, 0, NULL);
18689 if { (eval echo configure:18690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18693 echo "configure: failed program was:" >&5
18694 cat conftest.$ac_ext >&5
18704 echo "$ac_t""$ol_cv_db_db4" 1>&6
18706 if test $ol_cv_db_db4 = yes ; then
18711 if test $ol_cv_lib_db = no ; then
18712 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
18713 echo "configure:18714: checking for Berkeley DB link (-ldb)" >&5
18714 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
18715 echo $ac_n "(cached) $ac_c" 1>&6
18720 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18722 cat > conftest.$ac_ext <<EOF
18723 #line 18724 "configure"
18724 #include "confdefs.h"
18726 #ifdef HAVE_DB_185_H
18727 # include <db_185.h>
18732 #ifndef DB_VERSION_MAJOR
18733 # define DB_VERSION_MAJOR 1
18737 #define NULL ((void*)0)
18742 #if DB_VERSION_MAJOR > 1
18745 int major, minor, patch;
18747 version = db_version( &major, &minor, &patch );
18749 if( major != DB_VERSION_MAJOR ||
18750 minor < DB_VERSION_MINOR )
18752 printf("Berkeley DB version mismatch\n"
18753 "\texpected: %s\n\tgot: %s\n",
18754 DB_VERSION_STRING, version);
18760 #if DB_VERSION_MAJOR > 2
18761 db_env_create( NULL, 0 );
18762 #elif DB_VERSION_MAJOR > 1
18763 db_appexit( NULL );
18765 (void) dbopen( NULL, 0, 0, 0, NULL);
18770 if { (eval echo configure:18771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18774 echo "configure: failed program was:" >&5
18775 cat conftest.$ac_ext >&5
18785 echo "$ac_t""$ol_cv_db_db" 1>&6
18787 if test $ol_cv_db_db = yes ; then
18792 if test $ol_cv_lib_db = no ; then
18793 echo $ac_n "checking for Berkeley DB link (-ldb41)""... $ac_c" 1>&6
18794 echo "configure:18795: checking for Berkeley DB link (-ldb41)" >&5
18795 if eval "test \"\${ol_cv_db_db41+set}\" = set"; then
18796 echo $ac_n "(cached) $ac_c" 1>&6
18801 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18803 cat > conftest.$ac_ext <<EOF
18804 #line 18805 "configure"
18805 #include "confdefs.h"
18807 #ifdef HAVE_DB_185_H
18808 # include <db_185.h>
18813 #ifndef DB_VERSION_MAJOR
18814 # define DB_VERSION_MAJOR 1
18818 #define NULL ((void*)0)
18823 #if DB_VERSION_MAJOR > 1
18826 int major, minor, patch;
18828 version = db_version( &major, &minor, &patch );
18830 if( major != DB_VERSION_MAJOR ||
18831 minor < DB_VERSION_MINOR )
18833 printf("Berkeley DB version mismatch\n"
18834 "\texpected: %s\n\tgot: %s\n",
18835 DB_VERSION_STRING, version);
18841 #if DB_VERSION_MAJOR > 2
18842 db_env_create( NULL, 0 );
18843 #elif DB_VERSION_MAJOR > 1
18844 db_appexit( NULL );
18846 (void) dbopen( NULL, 0, 0, 0, NULL);
18851 if { (eval echo configure:18852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18855 echo "configure: failed program was:" >&5
18856 cat conftest.$ac_ext >&5
18866 echo "$ac_t""$ol_cv_db_db41" 1>&6
18868 if test $ol_cv_db_db41 = yes ; then
18869 ol_cv_lib_db=-ldb41
18873 if test $ol_cv_lib_db = no ; then
18874 echo $ac_n "checking for Berkeley DB link (-ldb-41)""... $ac_c" 1>&6
18875 echo "configure:18876: checking for Berkeley DB link (-ldb-41)" >&5
18876 if eval "test \"\${ol_cv_db_db_41+set}\" = set"; then
18877 echo $ac_n "(cached) $ac_c" 1>&6
18882 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18884 cat > conftest.$ac_ext <<EOF
18885 #line 18886 "configure"
18886 #include "confdefs.h"
18888 #ifdef HAVE_DB_185_H
18889 # include <db_185.h>
18894 #ifndef DB_VERSION_MAJOR
18895 # define DB_VERSION_MAJOR 1
18899 #define NULL ((void*)0)
18904 #if DB_VERSION_MAJOR > 1
18907 int major, minor, patch;
18909 version = db_version( &major, &minor, &patch );
18911 if( major != DB_VERSION_MAJOR ||
18912 minor < DB_VERSION_MINOR )
18914 printf("Berkeley DB version mismatch\n"
18915 "\texpected: %s\n\tgot: %s\n",
18916 DB_VERSION_STRING, version);
18922 #if DB_VERSION_MAJOR > 2
18923 db_env_create( NULL, 0 );
18924 #elif DB_VERSION_MAJOR > 1
18925 db_appexit( NULL );
18927 (void) dbopen( NULL, 0, 0, 0, NULL);
18932 if { (eval echo configure:18933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18936 echo "configure: failed program was:" >&5
18937 cat conftest.$ac_ext >&5
18947 echo "$ac_t""$ol_cv_db_db_41" 1>&6
18949 if test $ol_cv_db_db_41 = yes ; then
18950 ol_cv_lib_db=-ldb-41
18954 if test $ol_cv_lib_db = no ; then
18955 echo $ac_n "checking for Berkeley DB link (-ldb-4.1)""... $ac_c" 1>&6
18956 echo "configure:18957: checking for Berkeley DB link (-ldb-4.1)" >&5
18957 if eval "test \"\${ol_cv_db_db_4_dot_1+set}\" = set"; then
18958 echo $ac_n "(cached) $ac_c" 1>&6
18963 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18965 cat > conftest.$ac_ext <<EOF
18966 #line 18967 "configure"
18967 #include "confdefs.h"
18969 #ifdef HAVE_DB_185_H
18970 # include <db_185.h>
18975 #ifndef DB_VERSION_MAJOR
18976 # define DB_VERSION_MAJOR 1
18980 #define NULL ((void*)0)
18985 #if DB_VERSION_MAJOR > 1
18988 int major, minor, patch;
18990 version = db_version( &major, &minor, &patch );
18992 if( major != DB_VERSION_MAJOR ||
18993 minor < DB_VERSION_MINOR )
18995 printf("Berkeley DB version mismatch\n"
18996 "\texpected: %s\n\tgot: %s\n",
18997 DB_VERSION_STRING, version);
19003 #if DB_VERSION_MAJOR > 2
19004 db_env_create( NULL, 0 );
19005 #elif DB_VERSION_MAJOR > 1
19006 db_appexit( NULL );
19008 (void) dbopen( NULL, 0, 0, 0, NULL);
19013 if { (eval echo configure:19014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19015 ol_cv_db_db_4_dot_1=yes
19017 echo "configure: failed program was:" >&5
19018 cat conftest.$ac_ext >&5
19020 ol_cv_db_db_4_dot_1=no
19028 echo "$ac_t""$ol_cv_db_db_4_dot_1" 1>&6
19030 if test $ol_cv_db_db_4_dot_1 = yes ; then
19031 ol_cv_lib_db=-ldb-4.1
19035 if test $ol_cv_lib_db = no ; then
19036 echo $ac_n "checking for Berkeley DB link (-ldb-4-1)""... $ac_c" 1>&6
19037 echo "configure:19038: checking for Berkeley DB link (-ldb-4-1)" >&5
19038 if eval "test \"\${ol_cv_db_db_4_1+set}\" = set"; then
19039 echo $ac_n "(cached) $ac_c" 1>&6
19044 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19046 cat > conftest.$ac_ext <<EOF
19047 #line 19048 "configure"
19048 #include "confdefs.h"
19050 #ifdef HAVE_DB_185_H
19051 # include <db_185.h>
19056 #ifndef DB_VERSION_MAJOR
19057 # define DB_VERSION_MAJOR 1
19061 #define NULL ((void*)0)
19066 #if DB_VERSION_MAJOR > 1
19069 int major, minor, patch;
19071 version = db_version( &major, &minor, &patch );
19073 if( major != DB_VERSION_MAJOR ||
19074 minor < DB_VERSION_MINOR )
19076 printf("Berkeley DB version mismatch\n"
19077 "\texpected: %s\n\tgot: %s\n",
19078 DB_VERSION_STRING, version);
19084 #if DB_VERSION_MAJOR > 2
19085 db_env_create( NULL, 0 );
19086 #elif DB_VERSION_MAJOR > 1
19087 db_appexit( NULL );
19089 (void) dbopen( NULL, 0, 0, 0, NULL);
19094 if { (eval echo configure:19095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19096 ol_cv_db_db_4_1=yes
19098 echo "configure: failed program was:" >&5
19099 cat conftest.$ac_ext >&5
19109 echo "$ac_t""$ol_cv_db_db_4_1" 1>&6
19111 if test $ol_cv_db_db_4_1 = yes ; then
19112 ol_cv_lib_db=-ldb-4-1
19116 if test $ol_cv_lib_db = no ; then
19117 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
19118 echo "configure:19119: checking for Berkeley DB link (-ldb3)" >&5
19119 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
19120 echo $ac_n "(cached) $ac_c" 1>&6
19125 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19127 cat > conftest.$ac_ext <<EOF
19128 #line 19129 "configure"
19129 #include "confdefs.h"
19131 #ifdef HAVE_DB_185_H
19132 # include <db_185.h>
19137 #ifndef DB_VERSION_MAJOR
19138 # define DB_VERSION_MAJOR 1
19142 #define NULL ((void*)0)
19147 #if DB_VERSION_MAJOR > 1
19150 int major, minor, patch;
19152 version = db_version( &major, &minor, &patch );
19154 if( major != DB_VERSION_MAJOR ||
19155 minor < DB_VERSION_MINOR )
19157 printf("Berkeley DB version mismatch\n"
19158 "\texpected: %s\n\tgot: %s\n",
19159 DB_VERSION_STRING, version);
19165 #if DB_VERSION_MAJOR > 2
19166 db_env_create( NULL, 0 );
19167 #elif DB_VERSION_MAJOR > 1
19168 db_appexit( NULL );
19170 (void) dbopen( NULL, 0, 0, 0, NULL);
19175 if { (eval echo configure:19176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19179 echo "configure: failed program was:" >&5
19180 cat conftest.$ac_ext >&5
19190 echo "$ac_t""$ol_cv_db_db3" 1>&6
19192 if test $ol_cv_db_db3 = yes ; then
19197 if test $ol_cv_lib_db = no ; then
19198 echo $ac_n "checking for Berkeley DB link (-ldb-3)""... $ac_c" 1>&6
19199 echo "configure:19200: checking for Berkeley DB link (-ldb-3)" >&5
19200 if eval "test \"\${ol_cv_db_db_3+set}\" = set"; then
19201 echo $ac_n "(cached) $ac_c" 1>&6
19206 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19208 cat > conftest.$ac_ext <<EOF
19209 #line 19210 "configure"
19210 #include "confdefs.h"
19212 #ifdef HAVE_DB_185_H
19213 # include <db_185.h>
19218 #ifndef DB_VERSION_MAJOR
19219 # define DB_VERSION_MAJOR 1
19223 #define NULL ((void*)0)
19228 #if DB_VERSION_MAJOR > 1
19231 int major, minor, patch;
19233 version = db_version( &major, &minor, &patch );
19235 if( major != DB_VERSION_MAJOR ||
19236 minor < DB_VERSION_MINOR )
19238 printf("Berkeley DB version mismatch\n"
19239 "\texpected: %s\n\tgot: %s\n",
19240 DB_VERSION_STRING, version);
19246 #if DB_VERSION_MAJOR > 2
19247 db_env_create( NULL, 0 );
19248 #elif DB_VERSION_MAJOR > 1
19249 db_appexit( NULL );
19251 (void) dbopen( NULL, 0, 0, 0, NULL);
19256 if { (eval echo configure:19257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19260 echo "configure: failed program was:" >&5
19261 cat conftest.$ac_ext >&5
19271 echo "$ac_t""$ol_cv_db_db_3" 1>&6
19273 if test $ol_cv_db_db_3 = yes ; then
19274 ol_cv_lib_db=-ldb-3
19278 if test $ol_cv_lib_db = no ; then
19279 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
19280 echo "configure:19281: checking for Berkeley DB link (-ldb2)" >&5
19281 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
19282 echo $ac_n "(cached) $ac_c" 1>&6
19287 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19289 cat > conftest.$ac_ext <<EOF
19290 #line 19291 "configure"
19291 #include "confdefs.h"
19293 #ifdef HAVE_DB_185_H
19294 # include <db_185.h>
19299 #ifndef DB_VERSION_MAJOR
19300 # define DB_VERSION_MAJOR 1
19304 #define NULL ((void*)0)
19309 #if DB_VERSION_MAJOR > 1
19312 int major, minor, patch;
19314 version = db_version( &major, &minor, &patch );
19316 if( major != DB_VERSION_MAJOR ||
19317 minor < DB_VERSION_MINOR )
19319 printf("Berkeley DB version mismatch\n"
19320 "\texpected: %s\n\tgot: %s\n",
19321 DB_VERSION_STRING, version);
19327 #if DB_VERSION_MAJOR > 2
19328 db_env_create( NULL, 0 );
19329 #elif DB_VERSION_MAJOR > 1
19330 db_appexit( NULL );
19332 (void) dbopen( NULL, 0, 0, 0, NULL);
19337 if { (eval echo configure:19338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19341 echo "configure: failed program was:" >&5
19342 cat conftest.$ac_ext >&5
19352 echo "$ac_t""$ol_cv_db_db2" 1>&6
19354 if test $ol_cv_db_db2 = yes ; then
19359 if test $ol_cv_lib_db = no ; then
19360 echo $ac_n "checking for Berkeley DB link (-ldb-2)""... $ac_c" 1>&6
19361 echo "configure:19362: checking for Berkeley DB link (-ldb-2)" >&5
19362 if eval "test \"\${ol_cv_db_db_2+set}\" = set"; then
19363 echo $ac_n "(cached) $ac_c" 1>&6
19368 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19370 cat > conftest.$ac_ext <<EOF
19371 #line 19372 "configure"
19372 #include "confdefs.h"
19374 #ifdef HAVE_DB_185_H
19375 # include <db_185.h>
19380 #ifndef DB_VERSION_MAJOR
19381 # define DB_VERSION_MAJOR 1
19385 #define NULL ((void*)0)
19390 #if DB_VERSION_MAJOR > 1
19393 int major, minor, patch;
19395 version = db_version( &major, &minor, &patch );
19397 if( major != DB_VERSION_MAJOR ||
19398 minor < DB_VERSION_MINOR )
19400 printf("Berkeley DB version mismatch\n"
19401 "\texpected: %s\n\tgot: %s\n",
19402 DB_VERSION_STRING, version);
19408 #if DB_VERSION_MAJOR > 2
19409 db_env_create( NULL, 0 );
19410 #elif DB_VERSION_MAJOR > 1
19411 db_appexit( NULL );
19413 (void) dbopen( NULL, 0, 0, 0, NULL);
19418 if { (eval echo configure:19419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19422 echo "configure: failed program was:" >&5
19423 cat conftest.$ac_ext >&5
19433 echo "$ac_t""$ol_cv_db_db_2" 1>&6
19435 if test $ol_cv_db_db_2 = yes ; then
19436 ol_cv_lib_db=-ldb-2
19440 if test $ol_cv_lib_db = no ; then
19441 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
19442 echo "configure:19443: checking for Berkeley DB link (-ldb1)" >&5
19443 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
19444 echo $ac_n "(cached) $ac_c" 1>&6
19449 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19451 cat > conftest.$ac_ext <<EOF
19452 #line 19453 "configure"
19453 #include "confdefs.h"
19455 #ifdef HAVE_DB_185_H
19456 # include <db_185.h>
19461 #ifndef DB_VERSION_MAJOR
19462 # define DB_VERSION_MAJOR 1
19466 #define NULL ((void*)0)
19471 #if DB_VERSION_MAJOR > 1
19474 int major, minor, patch;
19476 version = db_version( &major, &minor, &patch );
19478 if( major != DB_VERSION_MAJOR ||
19479 minor < DB_VERSION_MINOR )
19481 printf("Berkeley DB version mismatch\n"
19482 "\texpected: %s\n\tgot: %s\n",
19483 DB_VERSION_STRING, version);
19489 #if DB_VERSION_MAJOR > 2
19490 db_env_create( NULL, 0 );
19491 #elif DB_VERSION_MAJOR > 1
19492 db_appexit( NULL );
19494 (void) dbopen( NULL, 0, 0, 0, NULL);
19499 if { (eval echo configure:19500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19503 echo "configure: failed program was:" >&5
19504 cat conftest.$ac_ext >&5
19514 echo "$ac_t""$ol_cv_db_db1" 1>&6
19516 if test $ol_cv_db_db1 = yes ; then
19521 if test $ol_cv_lib_db = no ; then
19522 echo $ac_n "checking for Berkeley DB link (-ldb-1)""... $ac_c" 1>&6
19523 echo "configure:19524: checking for Berkeley DB link (-ldb-1)" >&5
19524 if eval "test \"\${ol_cv_db_db_1+set}\" = set"; then
19525 echo $ac_n "(cached) $ac_c" 1>&6
19530 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19532 cat > conftest.$ac_ext <<EOF
19533 #line 19534 "configure"
19534 #include "confdefs.h"
19536 #ifdef HAVE_DB_185_H
19537 # include <db_185.h>
19542 #ifndef DB_VERSION_MAJOR
19543 # define DB_VERSION_MAJOR 1
19547 #define NULL ((void*)0)
19552 #if DB_VERSION_MAJOR > 1
19555 int major, minor, patch;
19557 version = db_version( &major, &minor, &patch );
19559 if( major != DB_VERSION_MAJOR ||
19560 minor < DB_VERSION_MINOR )
19562 printf("Berkeley DB version mismatch\n"
19563 "\texpected: %s\n\tgot: %s\n",
19564 DB_VERSION_STRING, version);
19570 #if DB_VERSION_MAJOR > 2
19571 db_env_create( NULL, 0 );
19572 #elif DB_VERSION_MAJOR > 1
19573 db_appexit( NULL );
19575 (void) dbopen( NULL, 0, 0, 0, NULL);
19580 if { (eval echo configure:19581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19584 echo "configure: failed program was:" >&5
19585 cat conftest.$ac_ext >&5
19595 echo "$ac_t""$ol_cv_db_db_1" 1>&6
19597 if test $ol_cv_db_db_1 = yes ; then
19598 ol_cv_lib_db=-ldb-1
19603 if test "$ol_cv_lib_db" != no ; then
19604 ol_cv_berkeley_db=yes
19605 echo $ac_n "checking for Berkeley DB thread support""... $ac_c" 1>&6
19606 echo "configure:19607: checking for Berkeley DB thread support" >&5
19607 if eval "test \"\${ol_cv_berkeley_db_thread+set}\" = set"; then
19608 echo $ac_n "(cached) $ac_c" 1>&6
19612 LIBS="$LTHREAD_LIBS $LIBS"
19613 if test $ol_cv_lib_db != yes ; then
19614 LIBS="$ol_cv_lib_db $LIBS"
19617 if test "$cross_compiling" = yes; then
19618 ol_cv_berkeley_db_thread=cross
19620 cat > conftest.$ac_ext <<EOF
19621 #line 19622 "configure"
19622 #include "confdefs.h"
19624 #ifdef HAVE_DB_185_H
19630 #define NULL ((void *)0)
19635 u_int32_t flags = DB_CREATE |
19641 #if DB_VERSION_MAJOR > 2
19642 DB_ENV *env = NULL;
19644 rc = db_env_create( &env, 0 );
19646 flags |= DB_INIT_MPOOL;
19647 #ifdef DB_MPOOL_PRIVATE
19648 flags |= DB_MPOOL_PRIVATE;
19652 printf("BerkeleyDB: %s\n", db_strerror(rc) );
19656 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
19657 rc = env->open( env, NULL, flags, 0 );
19659 rc = env->open( env, NULL, NULL, flags, 0 );
19663 rc = env->close( env, 0 );
19667 printf("BerkeleyDB: %s\n", db_strerror(rc) );
19673 memset( &env, '\0', sizeof(env) );
19675 rc = db_appinit( NULL, NULL, &env, flags );
19678 db_appexit( &env );
19681 unlink("__db_mpool.share");
19682 unlink("__db_lock.share");
19688 if { (eval echo configure:19689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
19690 ol_cv_berkeley_db_thread=yes
19692 echo "configure: failed program was:" >&5
19693 cat conftest.$ac_ext >&5
19695 ol_cv_berkeley_db_thread=no
19705 echo "$ac_t""$ol_cv_berkeley_db_thread" 1>&6
19707 if test $ol_cv_berkeley_db_thread != no ; then
19708 cat >> confdefs.h <<\EOF
19709 #define HAVE_BERKELEY_DB_THREAD 1
19719 if test $ol_cv_berkeley_db != no ; then
19720 cat >> confdefs.h <<\EOF
19721 #define HAVE_BERKELEY_DB 1
19725 ol_link_ldbm=berkeley
19726 ol_with_ldbm_api=berkeley
19728 if test $ol_with_ldbm_type = hash ; then
19729 cat >> confdefs.h <<\EOF
19730 #define LDBM_USE_DBHASH 1
19734 cat >> confdefs.h <<\EOF
19735 #define LDBM_USE_DBBTREE 1
19740 if test $ol_cv_lib_db != yes ; then
19741 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
19746 if test $ol_enable_bdb = yes -a $ol_link_ldbm != berkeley ; then
19747 { echo "configure: error: BDB: BerkeleyDB not available" 1>&2; exit 1; }
19748 elif test $ol_enable_bdb != no -a $ol_link_ldbm = berkeley ; then
19749 echo $ac_n "checking Berkeley DB version for BDB backend""... $ac_c" 1>&6
19750 echo "configure:19751: checking Berkeley DB version for BDB backend" >&5
19751 if eval "test \"\${ol_cv_bdb_compat+set}\" = set"; then
19752 echo $ac_n "(cached) $ac_c" 1>&6
19755 cat > conftest.$ac_ext <<EOF
19756 #line 19757 "configure"
19757 #include "confdefs.h"
19761 /* this check could be improved */
19762 #ifndef DB_VERSION_MAJOR
19763 # define DB_VERSION_MAJOR 1
19765 #ifndef DB_VERSION_MINOR
19766 # define DB_VERSION_MINOR 0
19769 /* require 4.2 or later */
19770 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2)
19771 __db_version_compat
19775 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19776 egrep "__db_version_compat" >/dev/null 2>&1; then
19778 ol_cv_bdb_compat=yes
19781 ol_cv_bdb_compat=no
19787 echo "$ac_t""$ol_cv_bdb_compat" 1>&6
19790 if test $ol_cv_bdb_compat = yes ; then
19792 elif test $ol_enable_bdb = yes ; then
19793 { echo "configure: error: BDB: BerkeleyDB version incompatible" 1>&2; exit 1; }
19798 if test $ol_enable_hdb = yes -a $ol_link_ldbm != berkeley ; then
19799 { echo "configure: error: HDB: BerkeleyDB not available" 1>&2; exit 1; }
19802 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
19803 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
19804 ol_with_ldbm_api=none
19807 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
19808 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
19809 echo "configure:19810: checking for MDBM library" >&5
19810 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
19811 echo $ac_n "(cached) $ac_c" 1>&6
19814 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
19815 echo "configure:19816: checking for mdbm_set_chain" >&5
19816 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
19817 echo $ac_n "(cached) $ac_c" 1>&6
19819 cat > conftest.$ac_ext <<EOF
19820 #line 19821 "configure"
19821 #include "confdefs.h"
19822 /* System header to define __stub macros and hopefully few prototypes,
19823 which can conflict with char mdbm_set_chain(); below. */
19824 #include <assert.h>
19825 /* Override any gcc2 internal prototype to avoid an error. */
19826 /* We use char because int might match the return type of a gcc2
19827 builtin and then its argument prototype would still apply. */
19828 char mdbm_set_chain();
19833 /* The GNU C library defines this for functions which it implements
19834 to always fail with ENOSYS. Some functions are actually named
19835 something starting with __ and the normal name is an alias. */
19836 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
19839 f = mdbm_set_chain;
19844 if { (eval echo configure:19845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19846 eval "ac_cv_func_mdbm_set_chain=yes"
19848 echo "configure: failed program was:" >&5
19849 cat conftest.$ac_ext >&5
19851 eval "ac_cv_func_mdbm_set_chain=no"
19856 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
19857 echo "$ac_t""yes" 1>&6
19860 echo "$ac_t""no" 1>&6
19862 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
19863 echo "configure:19864: checking for mdbm_set_chain in -lmdbm" >&5
19864 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
19865 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19866 echo $ac_n "(cached) $ac_c" 1>&6
19868 ac_save_LIBS="$LIBS"
19869 LIBS="-lmdbm $LIBS"
19870 cat > conftest.$ac_ext <<EOF
19871 #line 19872 "configure"
19872 #include "confdefs.h"
19873 /* Override any gcc2 internal prototype to avoid an error. */
19874 /* We use char because int might match the return type of a gcc2
19875 builtin and then its argument prototype would still apply. */
19876 char mdbm_set_chain();
19882 if { (eval echo configure:19883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19884 eval "ac_cv_lib_$ac_lib_var=yes"
19886 echo "configure: failed program was:" >&5
19887 cat conftest.$ac_ext >&5
19889 eval "ac_cv_lib_$ac_lib_var=no"
19892 LIBS="$ac_save_LIBS"
19895 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19896 echo "$ac_t""yes" 1>&6
19897 ol_cv_lib_mdbm=-lmdbm
19899 echo "$ac_t""no" 1>&6
19910 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
19913 for ac_hdr in mdbm.h
19915 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19916 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19917 echo "configure:19918: checking for $ac_hdr" >&5
19918 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19919 echo $ac_n "(cached) $ac_c" 1>&6
19921 cat > conftest.$ac_ext <<EOF
19922 #line 19923 "configure"
19923 #include "confdefs.h"
19926 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19927 { (eval echo configure:19928: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19928 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19929 if test -z "$ac_err"; then
19931 eval "ac_cv_header_$ac_safe=yes"
19934 echo "configure: failed program was:" >&5
19935 cat conftest.$ac_ext >&5
19937 eval "ac_cv_header_$ac_safe=no"
19941 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19942 echo "$ac_t""yes" 1>&6
19943 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19944 cat >> confdefs.h <<EOF
19945 #define $ac_tr_hdr 1
19949 echo "$ac_t""no" 1>&6
19953 echo $ac_n "checking for db""... $ac_c" 1>&6
19954 echo "configure:19955: checking for db" >&5
19955 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
19956 echo $ac_n "(cached) $ac_c" 1>&6
19959 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
19967 echo "$ac_t""$ol_cv_mdbm" 1>&6
19968 if test $ol_cv_mdbm = yes ; then
19969 cat >> confdefs.h <<\EOF
19970 #define HAVE_MDBM 1
19976 if test $ol_cv_mdbm = yes ; then
19978 ol_with_ldbm_api=mdbm
19979 if test $ol_cv_lib_mdbm != yes ; then
19980 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
19985 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
19986 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
19987 echo "configure:19988: checking for GDBM library" >&5
19988 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
19989 echo $ac_n "(cached) $ac_c" 1>&6
19992 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
19993 echo "configure:19994: checking for gdbm_open" >&5
19994 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
19995 echo $ac_n "(cached) $ac_c" 1>&6
19997 cat > conftest.$ac_ext <<EOF
19998 #line 19999 "configure"
19999 #include "confdefs.h"
20000 /* System header to define __stub macros and hopefully few prototypes,
20001 which can conflict with char gdbm_open(); below. */
20002 #include <assert.h>
20003 /* Override any gcc2 internal prototype to avoid an error. */
20004 /* We use char because int might match the return type of a gcc2
20005 builtin and then its argument prototype would still apply. */
20011 /* The GNU C library defines this for functions which it implements
20012 to always fail with ENOSYS. Some functions are actually named
20013 something starting with __ and the normal name is an alias. */
20014 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
20022 if { (eval echo configure:20023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20024 eval "ac_cv_func_gdbm_open=yes"
20026 echo "configure: failed program was:" >&5
20027 cat conftest.$ac_ext >&5
20029 eval "ac_cv_func_gdbm_open=no"
20034 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
20035 echo "$ac_t""yes" 1>&6
20038 echo "$ac_t""no" 1>&6
20040 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
20041 echo "configure:20042: checking for gdbm_open in -lgdbm" >&5
20042 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
20043 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20044 echo $ac_n "(cached) $ac_c" 1>&6
20046 ac_save_LIBS="$LIBS"
20047 LIBS="-lgdbm $LIBS"
20048 cat > conftest.$ac_ext <<EOF
20049 #line 20050 "configure"
20050 #include "confdefs.h"
20051 /* Override any gcc2 internal prototype to avoid an error. */
20052 /* We use char because int might match the return type of a gcc2
20053 builtin and then its argument prototype would still apply. */
20060 if { (eval echo configure:20061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20062 eval "ac_cv_lib_$ac_lib_var=yes"
20064 echo "configure: failed program was:" >&5
20065 cat conftest.$ac_ext >&5
20067 eval "ac_cv_lib_$ac_lib_var=no"
20070 LIBS="$ac_save_LIBS"
20073 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20074 echo "$ac_t""yes" 1>&6
20075 ol_cv_lib_gdbm=-lgdbm
20077 echo "$ac_t""no" 1>&6
20088 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
20091 for ac_hdr in gdbm.h
20093 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20094 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20095 echo "configure:20096: checking for $ac_hdr" >&5
20096 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20097 echo $ac_n "(cached) $ac_c" 1>&6
20099 cat > conftest.$ac_ext <<EOF
20100 #line 20101 "configure"
20101 #include "confdefs.h"
20104 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20105 { (eval echo configure:20106: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20106 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20107 if test -z "$ac_err"; then
20109 eval "ac_cv_header_$ac_safe=yes"
20112 echo "configure: failed program was:" >&5
20113 cat conftest.$ac_ext >&5
20115 eval "ac_cv_header_$ac_safe=no"
20119 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20120 echo "$ac_t""yes" 1>&6
20121 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20122 cat >> confdefs.h <<EOF
20123 #define $ac_tr_hdr 1
20127 echo "$ac_t""no" 1>&6
20131 echo $ac_n "checking for db""... $ac_c" 1>&6
20132 echo "configure:20133: checking for db" >&5
20133 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
20134 echo $ac_n "(cached) $ac_c" 1>&6
20137 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
20145 echo "$ac_t""$ol_cv_gdbm" 1>&6
20146 if test $ol_cv_gdbm = yes ; then
20147 cat >> confdefs.h <<\EOF
20148 #define HAVE_GDBM 1
20154 if test $ol_cv_gdbm = yes ; then
20156 ol_with_ldbm_api=gdbm
20158 if test $ol_cv_lib_gdbm != yes ; then
20159 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
20164 if test $ol_with_ldbm_api = ndbm ; then
20165 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
20166 echo "configure:20167: checking for NDBM library" >&5
20167 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
20168 echo $ac_n "(cached) $ac_c" 1>&6
20171 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
20172 echo "configure:20173: checking for dbm_open" >&5
20173 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
20174 echo $ac_n "(cached) $ac_c" 1>&6
20176 cat > conftest.$ac_ext <<EOF
20177 #line 20178 "configure"
20178 #include "confdefs.h"
20179 /* System header to define __stub macros and hopefully few prototypes,
20180 which can conflict with char dbm_open(); below. */
20181 #include <assert.h>
20182 /* Override any gcc2 internal prototype to avoid an error. */
20183 /* We use char because int might match the return type of a gcc2
20184 builtin and then its argument prototype would still apply. */
20190 /* The GNU C library defines this for functions which it implements
20191 to always fail with ENOSYS. Some functions are actually named
20192 something starting with __ and the normal name is an alias. */
20193 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
20201 if { (eval echo configure:20202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20203 eval "ac_cv_func_dbm_open=yes"
20205 echo "configure: failed program was:" >&5
20206 cat conftest.$ac_ext >&5
20208 eval "ac_cv_func_dbm_open=no"
20213 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
20214 echo "$ac_t""yes" 1>&6
20217 echo "$ac_t""no" 1>&6
20219 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
20220 echo "configure:20221: checking for dbm_open in -lndbm" >&5
20221 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
20222 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20223 echo $ac_n "(cached) $ac_c" 1>&6
20225 ac_save_LIBS="$LIBS"
20226 LIBS="-lndbm $LIBS"
20227 cat > conftest.$ac_ext <<EOF
20228 #line 20229 "configure"
20229 #include "confdefs.h"
20230 /* Override any gcc2 internal prototype to avoid an error. */
20231 /* We use char because int might match the return type of a gcc2
20232 builtin and then its argument prototype would still apply. */
20239 if { (eval echo configure:20240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20241 eval "ac_cv_lib_$ac_lib_var=yes"
20243 echo "configure: failed program was:" >&5
20244 cat conftest.$ac_ext >&5
20246 eval "ac_cv_lib_$ac_lib_var=no"
20249 LIBS="$ac_save_LIBS"
20252 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20253 echo "$ac_t""yes" 1>&6
20254 ol_cv_lib_ndbm=-lndbm
20256 echo "$ac_t""no" 1>&6
20258 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
20259 echo "configure:20260: checking for dbm_open in -ldbm" >&5
20260 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
20261 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20262 echo $ac_n "(cached) $ac_c" 1>&6
20264 ac_save_LIBS="$LIBS"
20266 cat > conftest.$ac_ext <<EOF
20267 #line 20268 "configure"
20268 #include "confdefs.h"
20269 /* Override any gcc2 internal prototype to avoid an error. */
20270 /* We use char because int might match the return type of a gcc2
20271 builtin and then its argument prototype would still apply. */
20278 if { (eval echo configure:20279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20280 eval "ac_cv_lib_$ac_lib_var=yes"
20282 echo "configure: failed program was:" >&5
20283 cat conftest.$ac_ext >&5
20285 eval "ac_cv_lib_$ac_lib_var=no"
20288 LIBS="$ac_save_LIBS"
20291 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20292 echo "$ac_t""yes" 1>&6
20293 ol_cv_lib_ndbm=-ldbm
20295 echo "$ac_t""no" 1>&6
20308 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
20311 for ac_hdr in ndbm.h
20313 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20314 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20315 echo "configure:20316: checking for $ac_hdr" >&5
20316 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20317 echo $ac_n "(cached) $ac_c" 1>&6
20319 cat > conftest.$ac_ext <<EOF
20320 #line 20321 "configure"
20321 #include "confdefs.h"
20324 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20325 { (eval echo configure:20326: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20326 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20327 if test -z "$ac_err"; then
20329 eval "ac_cv_header_$ac_safe=yes"
20332 echo "configure: failed program was:" >&5
20333 cat conftest.$ac_ext >&5
20335 eval "ac_cv_header_$ac_safe=no"
20339 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20340 echo "$ac_t""yes" 1>&6
20341 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20342 cat >> confdefs.h <<EOF
20343 #define $ac_tr_hdr 1
20347 echo "$ac_t""no" 1>&6
20351 echo $ac_n "checking for db""... $ac_c" 1>&6
20352 echo "configure:20353: checking for db" >&5
20353 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
20354 echo $ac_n "(cached) $ac_c" 1>&6
20357 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
20365 echo "$ac_t""$ol_cv_ndbm" 1>&6
20366 if test $ol_cv_ndbm = yes ; then
20367 cat >> confdefs.h <<\EOF
20368 #define HAVE_NDBM 1
20374 if test $ol_cv_ndbm = yes ; then
20376 ol_with_ldbm_api=ndbm
20378 if test $ol_cv_lib_ndbm != yes ; then
20379 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
20384 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
20385 echo "configure: warning: could not find suitable LDBM backend" 1>&2
20386 if test $ol_enable_ldbm = yes ; then
20387 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
20390 echo "configure: warning: disabling LDBM" 1>&2
20395 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
20396 BUILD_LIBS_DYNAMIC=shared
20397 cat >> confdefs.h <<\EOF
20398 #define LDAP_LIBS_DYNAMIC 1
20403 BUILD_LIBS_DYNAMIC=static
20407 if test $ol_enable_wrappers != no ; then
20408 for ac_hdr in tcpd.h
20410 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20411 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20412 echo "configure:20413: checking for $ac_hdr" >&5
20413 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20414 echo $ac_n "(cached) $ac_c" 1>&6
20416 cat > conftest.$ac_ext <<EOF
20417 #line 20418 "configure"
20418 #include "confdefs.h"
20421 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20422 { (eval echo configure:20423: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20423 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20424 if test -z "$ac_err"; then
20426 eval "ac_cv_header_$ac_safe=yes"
20429 echo "configure: failed program was:" >&5
20430 cat conftest.$ac_ext >&5
20432 eval "ac_cv_header_$ac_safe=no"
20436 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20437 echo "$ac_t""yes" 1>&6
20438 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20439 cat >> confdefs.h <<EOF
20440 #define $ac_tr_hdr 1
20443 echo $ac_n "checking for TCP wrappers library""... $ac_c" 1>&6
20444 echo "configure:20445: checking for TCP wrappers library" >&5
20446 LIBS="$LIBS -lwrap"
20447 cat > conftest.$ac_ext <<EOF
20448 #line 20449 "configure"
20449 #include "confdefs.h"
20452 int allow_severity = 0;
20453 int deny_severity = 0;
20455 struct request_info *req;
20463 if { (eval echo configure:20464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20465 echo "$ac_t""-lwrap" 1>&6
20469 echo "configure: failed program was:" >&5
20470 cat conftest.$ac_ext >&5
20474 cat > conftest.$ac_ext <<EOF
20475 #line 20476 "configure"
20476 #include "confdefs.h"
20479 int allow_severity = 0;
20480 int deny_severity = 0;
20482 struct request_info *req;
20490 if { (eval echo configure:20491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20492 echo "$ac_t""-lwrap -lnsl" 1>&6
20494 LIBS="$save_LIBS -lnsl"
20496 echo "configure: failed program was:" >&5
20497 cat conftest.$ac_ext >&5
20500 echo "$ac_t""no" 1>&6
20508 echo "$ac_t""no" 1>&6
20514 if test $have_wrappers = yes ; then
20515 cat >> confdefs.h <<\EOF
20516 #define HAVE_TCPD 1
20520 elif test $ol_enable_wrappers = yes ; then
20521 { echo "configure: error: could not find TCP wrappers, select apppropriate options or disable" 1>&2; exit 1; }
20523 echo "configure: warning: could not find TCP wrappers, support disabled" 1>&2
20528 if test $ol_enable_syslog != no ; then
20529 echo $ac_n "checking for openlog""... $ac_c" 1>&6
20530 echo "configure:20531: checking for openlog" >&5
20531 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
20532 echo $ac_n "(cached) $ac_c" 1>&6
20534 cat > conftest.$ac_ext <<EOF
20535 #line 20536 "configure"
20536 #include "confdefs.h"
20537 /* System header to define __stub macros and hopefully few prototypes,
20538 which can conflict with char openlog(); below. */
20539 #include <assert.h>
20540 /* Override any gcc2 internal prototype to avoid an error. */
20541 /* We use char because int might match the return type of a gcc2
20542 builtin and then its argument prototype would still apply. */
20548 /* The GNU C library defines this for functions which it implements
20549 to always fail with ENOSYS. Some functions are actually named
20550 something starting with __ and the normal name is an alias. */
20551 #if defined (__stub_openlog) || defined (__stub___openlog)
20559 if { (eval echo configure:20560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20561 eval "ac_cv_func_openlog=yes"
20563 echo "configure: failed program was:" >&5
20564 cat conftest.$ac_ext >&5
20566 eval "ac_cv_func_openlog=no"
20571 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
20572 echo "$ac_t""yes" 1>&6
20575 echo "$ac_t""no" 1>&6
20578 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
20579 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
20581 ol_enable_syslog=$ac_cv_func_openlog
20586 if test $ol_enable_sql != no ; then
20587 for ac_hdr in sql.h sqlext.h
20589 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20590 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20591 echo "configure:20592: checking for $ac_hdr" >&5
20592 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20593 echo $ac_n "(cached) $ac_c" 1>&6
20595 cat > conftest.$ac_ext <<EOF
20596 #line 20597 "configure"
20597 #include "confdefs.h"
20600 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20601 { (eval echo configure:20602: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20602 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20603 if test -z "$ac_err"; then
20605 eval "ac_cv_header_$ac_safe=yes"
20608 echo "configure: failed program was:" >&5
20609 cat conftest.$ac_ext >&5
20611 eval "ac_cv_header_$ac_safe=no"
20615 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20616 echo "$ac_t""yes" 1>&6
20617 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20618 cat >> confdefs.h <<EOF
20619 #define $ac_tr_hdr 1
20623 echo "$ac_t""no" 1>&6
20624 { echo "configure: error: could not locate SQL headers" 1>&2; exit 1; }
20630 echo $ac_n "checking for SQLDriverConnect in -liodbc""... $ac_c" 1>&6
20631 echo "configure:20632: checking for SQLDriverConnect in -liodbc" >&5
20632 ac_lib_var=`echo iodbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
20633 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20634 echo $ac_n "(cached) $ac_c" 1>&6
20636 ac_save_LIBS="$LIBS"
20637 LIBS="-liodbc $LIBS"
20638 cat > conftest.$ac_ext <<EOF
20639 #line 20640 "configure"
20640 #include "confdefs.h"
20641 /* Override any gcc2 internal prototype to avoid an error. */
20642 /* We use char because int might match the return type of a gcc2
20643 builtin and then its argument prototype would still apply. */
20644 char SQLDriverConnect();
20650 if { (eval echo configure:20651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20652 eval "ac_cv_lib_$ac_lib_var=yes"
20654 echo "configure: failed program was:" >&5
20655 cat conftest.$ac_ext >&5
20657 eval "ac_cv_lib_$ac_lib_var=no"
20660 LIBS="$ac_save_LIBS"
20663 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20664 echo "$ac_t""yes" 1>&6
20667 echo "$ac_t""no" 1>&6
20671 if test $have_iodbc = yes ; then
20672 ol_link_sql="-liodbc"
20674 echo $ac_n "checking for SQLDriverConnect in -lodbc""... $ac_c" 1>&6
20675 echo "configure:20676: checking for SQLDriverConnect in -lodbc" >&5
20676 ac_lib_var=`echo odbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
20677 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20678 echo $ac_n "(cached) $ac_c" 1>&6
20680 ac_save_LIBS="$LIBS"
20681 LIBS="-lodbc $LIBS"
20682 cat > conftest.$ac_ext <<EOF
20683 #line 20684 "configure"
20684 #include "confdefs.h"
20685 /* Override any gcc2 internal prototype to avoid an error. */
20686 /* We use char because int might match the return type of a gcc2
20687 builtin and then its argument prototype would still apply. */
20688 char SQLDriverConnect();
20694 if { (eval echo configure:20695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20696 eval "ac_cv_lib_$ac_lib_var=yes"
20698 echo "configure: failed program was:" >&5
20699 cat conftest.$ac_ext >&5
20701 eval "ac_cv_lib_$ac_lib_var=no"
20704 LIBS="$ac_save_LIBS"
20707 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20708 echo "$ac_t""yes" 1>&6
20711 echo "$ac_t""no" 1>&6
20715 if test $have_odbc = yes ; then
20716 ol_link_sql="-lodbc"
20720 if test $ol_link_sql != no ; then
20721 SLAPD_SQL_LIBS="$ol_link_sql"
20723 elif test $ol_enable_sql != auto ; then
20724 { echo "configure: error: could not locate suitable ODBC library" 1>&2; exit 1; }
20730 if test $ol_with_cyrus_sasl != no ; then
20731 for ac_hdr in sasl/sasl.h sasl.h
20733 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20734 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20735 echo "configure:20736: checking for $ac_hdr" >&5
20736 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20737 echo $ac_n "(cached) $ac_c" 1>&6
20739 cat > conftest.$ac_ext <<EOF
20740 #line 20741 "configure"
20741 #include "confdefs.h"
20744 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20745 { (eval echo configure:20746: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20746 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20747 if test -z "$ac_err"; then
20749 eval "ac_cv_header_$ac_safe=yes"
20752 echo "configure: failed program was:" >&5
20753 cat conftest.$ac_ext >&5
20755 eval "ac_cv_header_$ac_safe=no"
20759 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20760 echo "$ac_t""yes" 1>&6
20761 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20762 cat >> confdefs.h <<EOF
20763 #define $ac_tr_hdr 1
20767 echo "$ac_t""no" 1>&6
20772 if test $ac_cv_header_sasl_sasl_h = yes -o $ac_cv_header_sasl_h = yes; then
20773 echo $ac_n "checking for sasl_client_init in -lsasl2""... $ac_c" 1>&6
20774 echo "configure:20775: checking for sasl_client_init in -lsasl2" >&5
20775 ac_lib_var=`echo sasl2'_'sasl_client_init | sed 'y%./+-:%__p__%'`
20776 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20777 echo $ac_n "(cached) $ac_c" 1>&6
20779 ac_save_LIBS="$LIBS"
20780 LIBS="-lsasl2 $LIBS"
20781 cat > conftest.$ac_ext <<EOF
20782 #line 20783 "configure"
20783 #include "confdefs.h"
20784 /* Override any gcc2 internal prototype to avoid an error. */
20785 /* We use char because int might match the return type of a gcc2
20786 builtin and then its argument prototype would still apply. */
20787 char sasl_client_init();
20793 if { (eval echo configure:20794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20795 eval "ac_cv_lib_$ac_lib_var=yes"
20797 echo "configure: failed program was:" >&5
20798 cat conftest.$ac_ext >&5
20800 eval "ac_cv_lib_$ac_lib_var=no"
20803 LIBS="$ac_save_LIBS"
20806 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20807 echo "$ac_t""yes" 1>&6
20808 ol_link_sasl="-lsasl2"
20810 echo "$ac_t""no" 1>&6
20811 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
20812 echo "configure:20813: checking for sasl_client_init in -lsasl" >&5
20813 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
20814 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20815 echo $ac_n "(cached) $ac_c" 1>&6
20817 ac_save_LIBS="$LIBS"
20818 LIBS="-lsasl $LIBS"
20819 cat > conftest.$ac_ext <<EOF
20820 #line 20821 "configure"
20821 #include "confdefs.h"
20822 /* Override any gcc2 internal prototype to avoid an error. */
20823 /* We use char because int might match the return type of a gcc2
20824 builtin and then its argument prototype would still apply. */
20825 char sasl_client_init();
20831 if { (eval echo configure:20832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20833 eval "ac_cv_lib_$ac_lib_var=yes"
20835 echo "configure: failed program was:" >&5
20836 cat conftest.$ac_ext >&5
20838 eval "ac_cv_lib_$ac_lib_var=no"
20841 LIBS="$ac_save_LIBS"
20844 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20845 echo "$ac_t""yes" 1>&6
20846 ol_link_sasl="-lsasl"
20848 echo "$ac_t""no" 1>&6
20855 if test $ol_link_sasl = no ; then
20856 if test $ol_with_cyrus_sasl != auto ; then
20857 { echo "configure: error: Could not locate Cyrus SASL" 1>&2; exit 1; }
20859 echo "configure: warning: Could not locate Cyrus SASL" 1>&2
20860 echo "configure: warning: SASL authentication not supported!" 1>&2
20861 if test $ol_link_tls = no ; then
20862 echo "configure: warning: Strong authentication not supported!" 1>&2
20866 echo $ac_n "checking Cyrus SASL library version""... $ac_c" 1>&6
20867 echo "configure:20868: checking Cyrus SASL library version" >&5
20868 if eval "test \"\${ol_cv_sasl_compat+set}\" = set"; then
20869 echo $ac_n "(cached) $ac_c" 1>&6
20872 cat > conftest.$ac_ext <<EOF
20873 #line 20874 "configure"
20874 #include "confdefs.h"
20876 #ifdef HAVE_SASL_SASL_H
20877 #include <sasl/sasl.h>
20882 /* Require 2.1.15+ */
20883 #if SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
20884 char *__sasl_compat = "2.2+ or better okay (we guess)";
20885 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
20886 && SASL_VERSION_STEP >=15
20887 char *__sasl_compat = "2.1.15+ or better okay";
20891 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20892 egrep "__sasl_compat" >/dev/null 2>&1; then
20894 ol_cv_sasl_compat=yes
20897 ol_cv_sasl_compat=no
20903 echo "$ac_t""$ol_cv_sasl_compat" 1>&6
20905 if test $ol_cv_sasl_compat = no ; then
20907 { echo "configure: error: Cyrus SASL library located but incompatible" 1>&2; exit 1; }
20910 cat >> confdefs.h <<\EOF
20911 #define HAVE_CYRUS_SASL 1
20914 SASL_LIBS="$ol_link_sasl"
20915 if test $ol_enable_spasswd != no ; then
20916 ol_link_spasswd=yes
20919 ac_save_LIBS="$LIBS"
20920 LIBS="$LIBS $ol_link_sasl"
20921 echo $ac_n "checking for sasl_version""... $ac_c" 1>&6
20922 echo "configure:20923: checking for sasl_version" >&5
20923 if eval "test \"\${ac_cv_func_sasl_version+set}\" = set"; then
20924 echo $ac_n "(cached) $ac_c" 1>&6
20926 cat > conftest.$ac_ext <<EOF
20927 #line 20928 "configure"
20928 #include "confdefs.h"
20929 /* System header to define __stub macros and hopefully few prototypes,
20930 which can conflict with char sasl_version(); below. */
20931 #include <assert.h>
20932 /* Override any gcc2 internal prototype to avoid an error. */
20933 /* We use char because int might match the return type of a gcc2
20934 builtin and then its argument prototype would still apply. */
20935 char sasl_version();
20940 /* The GNU C library defines this for functions which it implements
20941 to always fail with ENOSYS. Some functions are actually named
20942 something starting with __ and the normal name is an alias. */
20943 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
20951 if { (eval echo configure:20952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20953 eval "ac_cv_func_sasl_version=yes"
20955 echo "configure: failed program was:" >&5
20956 cat conftest.$ac_ext >&5
20958 eval "ac_cv_func_sasl_version=no"
20963 if eval "test \"`echo '$ac_cv_func_'sasl_version`\" = yes"; then
20964 echo "$ac_t""yes" 1>&6
20965 cat >> confdefs.h <<\EOF
20966 #define HAVE_SASL_VERSION 1
20970 echo "$ac_t""no" 1>&6
20973 LIBS="$ac_save_LIBS"
20977 echo "configure: warning: SASL authentication not supported!" 1>&2
20978 if test $ol_link_tls = no ; then
20979 echo "configure: warning: Strong authentication not supported!" 1>&2
20983 if test $cross_compiling != yes -a "$ac_cv_mingw32" != yes ; then
20985 if test -r /dev/urandom ; then
20986 dev="/dev/urandom";
20987 elif test -r /idev/urandom ; then
20988 dev="/idev/urandom";
20989 elif test -r /dev/srandom ; then
20990 dev="/dev/srandom";
20991 elif test -r /dev/random ; then
20993 elif test -r /idev/random ; then
20994 dev="/idev/random";
20997 if test $dev != no ; then
20998 cat >> confdefs.h <<EOF
20999 #define URANDOM_DEVICE "$dev"
21006 if test $ol_with_fetch != no ; then
21008 LIBS="-lfetch -lcom_err $LIBS"
21009 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
21010 echo "configure:21011: checking fetch(3) library" >&5
21011 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
21012 echo $ac_n "(cached) $ac_c" 1>&6
21015 cat > conftest.$ac_ext <<EOF
21016 #line 21017 "configure"
21017 #include "confdefs.h"
21019 #include <sys/param.h>
21023 struct url *u = fetchParseURL("file:///");
21026 if { (eval echo configure:21027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21028 ol_cv_lib_fetch=yes
21030 echo "configure: failed program was:" >&5
21031 cat conftest.$ac_ext >&5
21038 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
21040 if test $ol_cv_lib_fetch != no ; then
21041 ol_link_fetch="-lfetch -lcom_err"
21042 cat >> confdefs.h <<\EOF
21043 #define HAVE_FETCH 1
21049 if test $ol_cv_lib_fetch != no ; then
21050 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
21051 ol_link_fetch=freebsd
21053 elif test $ol_with_fetch != auto ; then
21054 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
21058 if test $ol_enable_crypt != no ; then
21060 LIBS="$TLS_LIBS $LIBS"
21062 echo $ac_n "checking for crypt""... $ac_c" 1>&6
21063 echo "configure:21064: checking for crypt" >&5
21064 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
21065 echo $ac_n "(cached) $ac_c" 1>&6
21067 cat > conftest.$ac_ext <<EOF
21068 #line 21069 "configure"
21069 #include "confdefs.h"
21070 /* System header to define __stub macros and hopefully few prototypes,
21071 which can conflict with char crypt(); below. */
21072 #include <assert.h>
21073 /* Override any gcc2 internal prototype to avoid an error. */
21074 /* We use char because int might match the return type of a gcc2
21075 builtin and then its argument prototype would still apply. */
21081 /* The GNU C library defines this for functions which it implements
21082 to always fail with ENOSYS. Some functions are actually named
21083 something starting with __ and the normal name is an alias. */
21084 #if defined (__stub_crypt) || defined (__stub___crypt)
21092 if { (eval echo configure:21093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21094 eval "ac_cv_func_crypt=yes"
21096 echo "configure: failed program was:" >&5
21097 cat conftest.$ac_ext >&5
21099 eval "ac_cv_func_crypt=no"
21104 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
21105 echo "$ac_t""yes" 1>&6
21108 echo "$ac_t""no" 1>&6
21111 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
21112 echo "configure:21113: checking for crypt in -lcrypt" >&5
21113 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
21114 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21115 echo $ac_n "(cached) $ac_c" 1>&6
21117 ac_save_LIBS="$LIBS"
21118 LIBS="-lcrypt $LIBS"
21119 cat > conftest.$ac_ext <<EOF
21120 #line 21121 "configure"
21121 #include "confdefs.h"
21122 /* Override any gcc2 internal prototype to avoid an error. */
21123 /* We use char because int might match the return type of a gcc2
21124 builtin and then its argument prototype would still apply. */
21131 if { (eval echo configure:21132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21133 eval "ac_cv_lib_$ac_lib_var=yes"
21135 echo "configure: failed program was:" >&5
21136 cat conftest.$ac_ext >&5
21138 eval "ac_cv_lib_$ac_lib_var=no"
21141 LIBS="$ac_save_LIBS"
21144 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21145 echo "$ac_t""yes" 1>&6
21146 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
21149 echo "$ac_t""no" 1>&6
21158 if test $have_crypt = yes ; then
21159 cat >> confdefs.h <<\EOF
21160 #define HAVE_CRYPT 1
21164 echo "configure: warning: could not find crypt" 1>&2
21165 if test $ol_enable_crypt = yes ; then
21166 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
21169 echo "configure: warning: disabling crypt support" 1>&2
21174 if test $ol_enable_proctitle != no ; then
21175 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
21176 echo "configure:21177: checking for setproctitle" >&5
21177 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
21178 echo $ac_n "(cached) $ac_c" 1>&6
21180 cat > conftest.$ac_ext <<EOF
21181 #line 21182 "configure"
21182 #include "confdefs.h"
21183 /* System header to define __stub macros and hopefully few prototypes,
21184 which can conflict with char setproctitle(); below. */
21185 #include <assert.h>
21186 /* Override any gcc2 internal prototype to avoid an error. */
21187 /* We use char because int might match the return type of a gcc2
21188 builtin and then its argument prototype would still apply. */
21189 char setproctitle();
21194 /* The GNU C library defines this for functions which it implements
21195 to always fail with ENOSYS. Some functions are actually named
21196 something starting with __ and the normal name is an alias. */
21197 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
21205 if { (eval echo configure:21206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21207 eval "ac_cv_func_setproctitle=yes"
21209 echo "configure: failed program was:" >&5
21210 cat conftest.$ac_ext >&5
21212 eval "ac_cv_func_setproctitle=no"
21217 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
21218 echo "$ac_t""yes" 1>&6
21219 have_setproctitle=yes
21221 echo "$ac_t""no" 1>&6
21223 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
21224 echo "configure:21225: checking for setproctitle in -lutil" >&5
21225 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
21226 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21227 echo $ac_n "(cached) $ac_c" 1>&6
21229 ac_save_LIBS="$LIBS"
21230 LIBS="-lutil $LIBS"
21231 cat > conftest.$ac_ext <<EOF
21232 #line 21233 "configure"
21233 #include "confdefs.h"
21234 /* Override any gcc2 internal prototype to avoid an error. */
21235 /* We use char because int might match the return type of a gcc2
21236 builtin and then its argument prototype would still apply. */
21237 char setproctitle();
21243 if { (eval echo configure:21244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21245 eval "ac_cv_lib_$ac_lib_var=yes"
21247 echo "configure: failed program was:" >&5
21248 cat conftest.$ac_ext >&5
21250 eval "ac_cv_lib_$ac_lib_var=no"
21253 LIBS="$ac_save_LIBS"
21256 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21257 echo "$ac_t""yes" 1>&6
21258 have_setproctitle=yes
21259 LUTIL_LIBS="$LUTIL_LIBS -lutil"
21261 echo "$ac_t""no" 1>&6
21262 have_setproctitle=no
21263 LIBOBJS="$LIBOBJS setproctitle.o"
21264 LIBSRCS="$LIBSRCS setproctitle.c"
21270 if test $have_setproctitle = yes ; then
21271 cat >> confdefs.h <<\EOF
21272 #define HAVE_SETPROCTITLE 1
21278 if test $ol_enable_slp != no ; then
21279 for ac_hdr in slp.h
21281 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21282 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21283 echo "configure:21284: checking for $ac_hdr" >&5
21284 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
21285 echo $ac_n "(cached) $ac_c" 1>&6
21287 cat > conftest.$ac_ext <<EOF
21288 #line 21289 "configure"
21289 #include "confdefs.h"
21292 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21293 { (eval echo configure:21294: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21294 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21295 if test -z "$ac_err"; then
21297 eval "ac_cv_header_$ac_safe=yes"
21300 echo "configure: failed program was:" >&5
21301 cat conftest.$ac_ext >&5
21303 eval "ac_cv_header_$ac_safe=no"
21307 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21308 echo "$ac_t""yes" 1>&6
21309 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21310 cat >> confdefs.h <<EOF
21311 #define $ac_tr_hdr 1
21315 echo "$ac_t""no" 1>&6
21320 if test $ac_cv_header_slp_h = yes ; then
21321 echo $ac_n "checking for SLPOpen in -lslp""... $ac_c" 1>&6
21322 echo "configure:21323: checking for SLPOpen in -lslp" >&5
21323 ac_lib_var=`echo slp'_'SLPOpen | sed 'y%./+-:%__p__%'`
21324 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21325 echo $ac_n "(cached) $ac_c" 1>&6
21327 ac_save_LIBS="$LIBS"
21329 cat > conftest.$ac_ext <<EOF
21330 #line 21331 "configure"
21331 #include "confdefs.h"
21332 /* Override any gcc2 internal prototype to avoid an error. */
21333 /* We use char because int might match the return type of a gcc2
21334 builtin and then its argument prototype would still apply. */
21341 if { (eval echo configure:21342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21343 eval "ac_cv_lib_$ac_lib_var=yes"
21345 echo "configure: failed program was:" >&5
21346 cat conftest.$ac_ext >&5
21348 eval "ac_cv_lib_$ac_lib_var=no"
21351 LIBS="$ac_save_LIBS"
21354 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21355 echo "$ac_t""yes" 1>&6
21358 echo "$ac_t""no" 1>&6
21362 if test $have_slp = yes ; then
21363 cat >> confdefs.h <<\EOF
21367 SLAPD_SLP_LIBS=-lslp
21370 elif test $ol_enable_slp = yes ; then
21371 { echo "configure: error: SLP not found" 1>&2; exit 1; }
21376 echo $ac_n "checking long long""... $ac_c" 1>&6
21377 echo "configure:21378: checking long long" >&5
21378 if eval "test \"\${ol_cv_type_long_long+set}\" = set"; then
21379 echo $ac_n "(cached) $ac_c" 1>&6
21382 cat > conftest.$ac_ext <<EOF
21383 #line 21384 "configure"
21384 #include "confdefs.h"
21390 if { (eval echo configure:21391: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21392 ol_cv_type_long_long=yes
21394 echo "configure: failed program was:" >&5
21395 cat conftest.$ac_ext >&5
21397 ol_cv_type_long_long=no
21402 echo "$ac_t""$ol_cv_type_long_long" 1>&6
21403 if test $ol_cv_type_long_long = yes; then
21404 cat >> confdefs.h <<\EOF
21405 #define HAVE_LONG_LONG 1
21410 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
21411 echo "configure:21412: checking for ANSI C header files" >&5
21412 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
21413 echo $ac_n "(cached) $ac_c" 1>&6
21415 cat > conftest.$ac_ext <<EOF
21416 #line 21417 "configure"
21417 #include "confdefs.h"
21418 #include <stdlib.h>
21419 #include <stdarg.h>
21420 #include <string.h>
21423 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21424 { (eval echo configure:21425: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21425 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21426 if test -z "$ac_err"; then
21428 ac_cv_header_stdc=yes
21431 echo "configure: failed program was:" >&5
21432 cat conftest.$ac_ext >&5
21434 ac_cv_header_stdc=no
21438 if test $ac_cv_header_stdc = yes; then
21439 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21440 cat > conftest.$ac_ext <<EOF
21441 #line 21442 "configure"
21442 #include "confdefs.h"
21443 #include <string.h>
21445 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21446 egrep "memchr" >/dev/null 2>&1; then
21450 ac_cv_header_stdc=no
21456 if test $ac_cv_header_stdc = yes; then
21457 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21458 cat > conftest.$ac_ext <<EOF
21459 #line 21460 "configure"
21460 #include "confdefs.h"
21461 #include <stdlib.h>
21463 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21464 egrep "free" >/dev/null 2>&1; then
21468 ac_cv_header_stdc=no
21474 if test $ac_cv_header_stdc = yes; then
21475 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21476 if test "$cross_compiling" = yes; then
21479 cat > conftest.$ac_ext <<EOF
21480 #line 21481 "configure"
21481 #include "confdefs.h"
21483 #if ((' ' & 0x0FF) == 0x020)
21484 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21485 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21487 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
21488 || ('j' <= (c) && (c) <= 'r') \
21489 || ('s' <= (c) && (c) <= 'z'))
21490 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21492 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21493 int main () { int i; for (i = 0; i < 256; i++)
21494 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
21498 if { (eval echo configure:21499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21502 echo "configure: failed program was:" >&5
21503 cat conftest.$ac_ext >&5
21505 ac_cv_header_stdc=no
21513 echo "$ac_t""$ac_cv_header_stdc" 1>&6
21514 if test $ac_cv_header_stdc = yes; then
21515 cat >> confdefs.h <<\EOF
21516 #define STDC_HEADERS 1
21521 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
21522 echo "configure:21523: checking for mode_t" >&5
21523 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
21524 echo $ac_n "(cached) $ac_c" 1>&6
21526 cat > conftest.$ac_ext <<EOF
21527 #line 21528 "configure"
21528 #include "confdefs.h"
21529 #include <sys/types.h>
21531 #include <stdlib.h>
21532 #include <stddef.h>
21536 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21537 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21539 eval "ac_cv_type_mode_t=yes"
21542 eval "ac_cv_type_mode_t=no"
21547 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
21548 echo "$ac_t""yes" 1>&6
21550 echo "$ac_t""no" 1>&6
21551 cat >> confdefs.h <<EOF
21557 echo $ac_n "checking for off_t""... $ac_c" 1>&6
21558 echo "configure:21559: checking for off_t" >&5
21559 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
21560 echo $ac_n "(cached) $ac_c" 1>&6
21562 cat > conftest.$ac_ext <<EOF
21563 #line 21564 "configure"
21564 #include "confdefs.h"
21565 #include <sys/types.h>
21567 #include <stdlib.h>
21568 #include <stddef.h>
21572 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21573 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21575 eval "ac_cv_type_off_t=yes"
21578 eval "ac_cv_type_off_t=no"
21583 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
21584 echo "$ac_t""yes" 1>&6
21586 echo "$ac_t""no" 1>&6
21587 cat >> confdefs.h <<EOF
21593 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
21594 echo "configure:21595: checking for pid_t" >&5
21595 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
21596 echo $ac_n "(cached) $ac_c" 1>&6
21598 cat > conftest.$ac_ext <<EOF
21599 #line 21600 "configure"
21600 #include "confdefs.h"
21601 #include <sys/types.h>
21603 #include <stdlib.h>
21604 #include <stddef.h>
21608 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21609 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21611 eval "ac_cv_type_pid_t=yes"
21614 eval "ac_cv_type_pid_t=no"
21619 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
21620 echo "$ac_t""yes" 1>&6
21622 echo "$ac_t""no" 1>&6
21623 cat >> confdefs.h <<EOF
21629 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
21630 echo "configure:21631: checking for ptrdiff_t" >&5
21631 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
21632 echo $ac_n "(cached) $ac_c" 1>&6
21634 cat > conftest.$ac_ext <<EOF
21635 #line 21636 "configure"
21636 #include "confdefs.h"
21637 #include <stddef.h>
21642 if { (eval echo configure:21643: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21644 am_cv_type_ptrdiff_t=yes
21646 echo "configure: failed program was:" >&5
21647 cat conftest.$ac_ext >&5
21649 am_cv_type_ptrdiff_t=no
21654 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
21655 if test $am_cv_type_ptrdiff_t = yes; then
21656 cat >> confdefs.h <<\EOF
21657 #define HAVE_PTRDIFF_T 1
21662 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
21663 echo "configure:21664: checking return type of signal handlers" >&5
21664 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
21665 echo $ac_n "(cached) $ac_c" 1>&6
21667 cat > conftest.$ac_ext <<EOF
21668 #line 21669 "configure"
21669 #include "confdefs.h"
21670 #include <sys/types.h>
21671 #include <signal.h>
21676 extern "C" void (*signal (int, void (*)(int)))(int);
21678 void (*signal ()) ();
21685 if { (eval echo configure:21686: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21687 ac_cv_type_signal=void
21689 echo "configure: failed program was:" >&5
21690 cat conftest.$ac_ext >&5
21692 ac_cv_type_signal=int
21697 echo "$ac_t""$ac_cv_type_signal" 1>&6
21698 cat >> confdefs.h <<EOF
21699 #define RETSIGTYPE $ac_cv_type_signal
21703 echo $ac_n "checking for size_t""... $ac_c" 1>&6
21704 echo "configure:21705: checking for size_t" >&5
21705 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
21706 echo $ac_n "(cached) $ac_c" 1>&6
21708 cat > conftest.$ac_ext <<EOF
21709 #line 21710 "configure"
21710 #include "confdefs.h"
21711 #include <sys/types.h>
21713 #include <stdlib.h>
21714 #include <stddef.h>
21718 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21719 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21721 eval "ac_cv_type_size_t=yes"
21724 eval "ac_cv_type_size_t=no"
21729 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
21730 echo "$ac_t""yes" 1>&6
21732 echo "$ac_t""no" 1>&6
21733 cat >> confdefs.h <<EOF
21734 #define size_t unsigned
21740 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
21741 echo "configure:21742: checking for ssize_t" >&5
21742 if eval "test \"\${ac_cv_type_ssize_t+set}\" = set"; then
21743 echo $ac_n "(cached) $ac_c" 1>&6
21745 cat > conftest.$ac_ext <<EOF
21746 #line 21747 "configure"
21747 #include "confdefs.h"
21748 #include <sys/types.h>
21750 #include <stdlib.h>
21751 #include <stddef.h>
21755 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21756 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21758 eval "ac_cv_type_ssize_t=yes"
21761 eval "ac_cv_type_ssize_t=no"
21766 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
21767 echo "$ac_t""yes" 1>&6
21769 echo "$ac_t""no" 1>&6
21770 cat >> confdefs.h <<EOF
21771 #define ssize_t signed int
21776 echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
21777 echo "configure:21778: checking for caddr_t" >&5
21778 if eval "test \"\${ac_cv_type_caddr_t+set}\" = set"; then
21779 echo $ac_n "(cached) $ac_c" 1>&6
21781 cat > conftest.$ac_ext <<EOF
21782 #line 21783 "configure"
21783 #include "confdefs.h"
21784 #include <sys/types.h>
21786 #include <stdlib.h>
21787 #include <stddef.h>
21791 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21792 egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21794 eval "ac_cv_type_caddr_t=yes"
21797 eval "ac_cv_type_caddr_t=no"
21802 if eval "test \"`echo '$ac_cv_type_'caddr_t`\" = yes"; then
21803 echo "$ac_t""yes" 1>&6
21805 echo "$ac_t""no" 1>&6
21806 cat >> confdefs.h <<EOF
21807 #define caddr_t char *
21813 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
21814 echo "configure:21815: checking for socklen_t" >&5
21815 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
21816 echo $ac_n "(cached) $ac_c" 1>&6
21818 cat > conftest.$ac_ext <<EOF
21819 #line 21820 "configure"
21820 #include "confdefs.h"
21822 #ifdef HAVE_SYS_TYPES_H
21823 #include <sys/types.h>
21825 #ifdef HAVE_SYS_SOCKET_H
21826 #include <sys/socket.h>
21833 if { (eval echo configure:21834: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21835 ol_cv_type_socklen_t=yes
21837 echo "configure: failed program was:" >&5
21838 cat conftest.$ac_ext >&5
21840 ol_cv_type_socklen_t=no
21845 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
21846 if test $ol_cv_type_socklen_t = no; then
21847 cat >> confdefs.h <<\EOF
21848 #define socklen_t int
21853 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
21854 echo "configure:21855: checking for member st_blksize in aggregate type struct stat" >&5
21855 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
21856 echo $ac_n "(cached) $ac_c" 1>&6
21858 cat > conftest.$ac_ext <<EOF
21859 #line 21860 "configure"
21860 #include "confdefs.h"
21861 #include <sys/types.h>
21862 #include <sys/stat.h>
21864 struct stat foo; foo.st_blksize;
21867 if { (eval echo configure:21868: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21869 ac_cv_c_struct_member_st_blksize=yes
21871 echo "configure: failed program was:" >&5
21872 cat conftest.$ac_ext >&5
21874 ac_cv_c_struct_member_st_blksize=no
21879 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
21880 st_blksize="$ac_cv_c_struct_member_st_blksize"
21881 if test $ac_cv_c_struct_member_st_blksize = yes; then
21882 cat >> confdefs.h <<\EOF
21883 #define HAVE_ST_BLKSIZE 1
21888 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
21889 echo "configure:21890: checking whether time.h and sys/time.h may both be included" >&5
21890 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
21891 echo $ac_n "(cached) $ac_c" 1>&6
21893 cat > conftest.$ac_ext <<EOF
21894 #line 21895 "configure"
21895 #include "confdefs.h"
21896 #include <sys/types.h>
21897 #include <sys/time.h>
21903 if { (eval echo configure:21904: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21905 ac_cv_header_time=yes
21907 echo "configure: failed program was:" >&5
21908 cat conftest.$ac_ext >&5
21910 ac_cv_header_time=no
21915 echo "$ac_t""$ac_cv_header_time" 1>&6
21916 if test $ac_cv_header_time = yes; then
21917 cat >> confdefs.h <<\EOF
21918 #define TIME_WITH_SYS_TIME 1
21923 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
21924 echo "configure:21925: checking whether struct tm is in sys/time.h or time.h" >&5
21925 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
21926 echo $ac_n "(cached) $ac_c" 1>&6
21928 cat > conftest.$ac_ext <<EOF
21929 #line 21930 "configure"
21930 #include "confdefs.h"
21931 #include <sys/types.h>
21934 struct tm *tp; tp->tm_sec;
21937 if { (eval echo configure:21938: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21939 ac_cv_struct_tm=time.h
21941 echo "configure: failed program was:" >&5
21942 cat conftest.$ac_ext >&5
21944 ac_cv_struct_tm=sys/time.h
21949 echo "$ac_t""$ac_cv_struct_tm" 1>&6
21950 if test $ac_cv_struct_tm = sys/time.h; then
21951 cat >> confdefs.h <<\EOF
21952 #define TM_IN_SYS_TIME 1
21957 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
21958 echo "configure:21959: checking for uid_t in sys/types.h" >&5
21959 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
21960 echo $ac_n "(cached) $ac_c" 1>&6
21962 cat > conftest.$ac_ext <<EOF
21963 #line 21964 "configure"
21964 #include "confdefs.h"
21965 #include <sys/types.h>
21967 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21968 egrep "uid_t" >/dev/null 2>&1; then
21970 ac_cv_type_uid_t=yes
21973 ac_cv_type_uid_t=no
21979 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
21980 if test $ac_cv_type_uid_t = no; then
21981 cat >> confdefs.h <<\EOF
21985 cat >> confdefs.h <<\EOF
21991 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
21992 echo "configure:21993: checking for sig_atomic_t" >&5
21993 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
21994 echo $ac_n "(cached) $ac_c" 1>&6
21996 cat > conftest.$ac_ext <<EOF
21997 #line 21998 "configure"
21998 #include "confdefs.h"
21999 #include <signal.h>
22001 sig_atomic_t atomic;
22004 if { (eval echo configure:22005: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22006 ol_cv_type_sig_atomic_t=yes
22008 echo "configure: failed program was:" >&5
22009 cat conftest.$ac_ext >&5
22011 ol_cv_type_sig_atomic_t=no
22016 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
22017 if test $ol_cv_type_sig_atomic_t = no; then
22018 cat >> confdefs.h <<\EOF
22019 #define sig_atomic_t int
22026 # test for pw_gecos in struct passwd
22027 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
22028 echo "configure:22029: checking struct passwd for pw_gecos" >&5
22029 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
22030 echo $ac_n "(cached) $ac_c" 1>&6
22033 cat > conftest.$ac_ext <<EOF
22034 #line 22035 "configure"
22035 #include "confdefs.h"
22040 pwd.pw_gecos = pwd.pw_name;
22044 if { (eval echo configure:22045: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22046 ol_cv_struct_passwd_pw_gecos=yes
22048 echo "configure: failed program was:" >&5
22049 cat conftest.$ac_ext >&5
22051 ol_cv_struct_passwd_pw_gecos=no
22056 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
22057 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
22058 cat >> confdefs.h <<\EOF
22059 #define HAVE_PW_GECOS 1
22064 # test for pw_passwd in struct passwd
22065 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
22066 echo "configure:22067: checking struct passwd for pw_passwd" >&5
22067 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
22068 echo $ac_n "(cached) $ac_c" 1>&6
22071 cat > conftest.$ac_ext <<EOF
22072 #line 22073 "configure"
22073 #include "confdefs.h"
22078 pwd.pw_passwd = pwd.pw_name;
22082 if { (eval echo configure:22083: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22084 ol_cv_struct_passwd_pw_passwd=yes
22086 echo "configure: failed program was:" >&5
22087 cat conftest.$ac_ext >&5
22089 ol_cv_struct_passwd_pw_passwd=no
22094 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
22095 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
22096 cat >> confdefs.h <<\EOF
22097 #define HAVE_PW_PASSWD 1
22103 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
22104 echo "configure:22105: checking if toupper() requires islower()" >&5
22105 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
22106 echo $ac_n "(cached) $ac_c" 1>&6
22109 if test "$cross_compiling" = yes; then
22110 ol_cv_c_upper_lower=safe
22112 cat > conftest.$ac_ext <<EOF
22113 #line 22114 "configure"
22114 #include "confdefs.h"
22119 if ('C' == toupper('C'))
22125 if { (eval echo configure:22126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
22127 ol_cv_c_upper_lower=no
22129 echo "configure: failed program was:" >&5
22130 cat conftest.$ac_ext >&5
22132 ol_cv_c_upper_lower=yes
22139 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
22140 if test $ol_cv_c_upper_lower != no ; then
22141 cat >> confdefs.h <<\EOF
22142 #define C_UPPER_LOWER 1
22147 echo $ac_n "checking for working const""... $ac_c" 1>&6
22148 echo "configure:22149: checking for working const" >&5
22149 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
22150 echo $ac_n "(cached) $ac_c" 1>&6
22152 cat > conftest.$ac_ext <<EOF
22153 #line 22154 "configure"
22154 #include "confdefs.h"
22158 /* Ultrix mips cc rejects this. */
22159 typedef int charset[2]; const charset x;
22160 /* SunOS 4.1.1 cc rejects this. */
22161 char const *const *ccp;
22163 /* NEC SVR4.0.2 mips cc rejects this. */
22164 struct point {int x, y;};
22165 static struct point const zero = {0,0};
22166 /* AIX XL C 1.02.0.0 rejects this.
22167 It does not let you subtract one const X* pointer from another in an arm
22168 of an if-expression whose if-part is not a constant expression */
22169 const char *g = "string";
22170 ccp = &g + (g ? g-g : 0);
22171 /* HPUX 7.0 cc rejects these. */
22174 ccp = (char const *const *) p;
22175 { /* SCO 3.2v4 cc rejects this. */
22177 char const *s = 0 ? (char *) 0 : (char const *) 0;
22181 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22182 int x[] = {25, 17};
22183 const int *foo = &x[0];
22186 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22187 typedef const int *iptr;
22191 { /* AIX XL C 1.02.0.0 rejects this saying
22192 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22193 struct s { int j; const int *ap[3]; };
22194 struct s *b; b->j = 5;
22196 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22197 const int foo = 10;
22202 if { (eval echo configure:22203: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22206 echo "configure: failed program was:" >&5
22207 cat conftest.$ac_ext >&5
22214 echo "$ac_t""$ac_cv_c_const" 1>&6
22215 if test $ac_cv_c_const = no; then
22216 cat >> confdefs.h <<\EOF
22222 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
22223 echo "configure:22224: checking if compiler understands volatile" >&5
22224 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
22225 echo $ac_n "(cached) $ac_c" 1>&6
22227 cat > conftest.$ac_ext <<EOF
22228 #line 22229 "configure"
22229 #include "confdefs.h"
22232 volatile int a; int * volatile b = x ? &y : &z;
22233 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
22237 if { (eval echo configure:22238: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22239 ol_cv_c_volatile=yes
22241 echo "configure: failed program was:" >&5
22242 cat conftest.$ac_ext >&5
22244 ol_cv_c_volatile=no
22249 echo "$ac_t""$ol_cv_c_volatile" 1>&6
22250 if test $ol_cv_c_volatile = yes; then
22253 cat >> confdefs.h <<\EOF
22260 if test $cross_compiling = yes ; then
22261 cat >> confdefs.h <<\EOF
22262 #define CROSS_COMPILING 1
22266 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
22267 echo "configure:22268: checking whether byte ordering is bigendian" >&5
22268 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
22269 echo $ac_n "(cached) $ac_c" 1>&6
22271 ac_cv_c_bigendian=unknown
22272 # See if sys/param.h defines the BYTE_ORDER macro.
22273 cat > conftest.$ac_ext <<EOF
22274 #line 22275 "configure"
22275 #include "confdefs.h"
22276 #include <sys/types.h>
22277 #include <sys/param.h>
22280 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
22281 bogus endian macros
22285 if { (eval echo configure:22286: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22287 # It does; now see whether it defined to BIG_ENDIAN or not.
22288 cat > conftest.$ac_ext <<EOF
22289 #line 22290 "configure"
22290 #include "confdefs.h"
22291 #include <sys/types.h>
22292 #include <sys/param.h>
22295 #if BYTE_ORDER != BIG_ENDIAN
22300 if { (eval echo configure:22301: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22302 ac_cv_c_bigendian=yes
22304 echo "configure: failed program was:" >&5
22305 cat conftest.$ac_ext >&5
22307 ac_cv_c_bigendian=no
22311 echo "configure: failed program was:" >&5
22312 cat conftest.$ac_ext >&5
22315 if test $ac_cv_c_bigendian = unknown; then
22316 if test "$cross_compiling" = yes; then
22317 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
22319 cat > conftest.$ac_ext <<EOF
22320 #line 22321 "configure"
22321 #include "confdefs.h"
22323 /* Are we little or big endian? From Harbison&Steele. */
22327 char c[sizeof (long)];
22330 exit (u.c[sizeof (long) - 1] == 1);
22333 if { (eval echo configure:22334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
22335 ac_cv_c_bigendian=no
22337 echo "configure: failed program was:" >&5
22338 cat conftest.$ac_ext >&5
22340 ac_cv_c_bigendian=yes
22348 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
22349 if test $ac_cv_c_bigendian = yes; then
22350 cat >> confdefs.h <<\EOF
22351 #define WORDS_BIGENDIAN 1
22358 echo $ac_n "checking size of short""... $ac_c" 1>&6
22359 echo "configure:22360: checking size of short" >&5
22360 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
22361 echo $ac_n "(cached) $ac_c" 1>&6
22363 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22364 cat > conftest.$ac_ext <<EOF
22365 #line 22366 "configure"
22366 #include "confdefs.h"
22367 #include "confdefs.h"
22368 #include <sys/types.h>
22372 switch (0) case 0: case (sizeof (short) == $ac_size):;
22375 if { (eval echo configure:22376: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22377 ac_cv_sizeof_short=$ac_size
22379 echo "configure: failed program was:" >&5
22380 cat conftest.$ac_ext >&5
22383 if test x$ac_cv_sizeof_short != x ; then break; fi
22388 if test x$ac_cv_sizeof_short = x ; then
22389 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
22391 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
22392 cat >> confdefs.h <<EOF
22393 #define SIZEOF_SHORT $ac_cv_sizeof_short
22397 echo $ac_n "checking size of int""... $ac_c" 1>&6
22398 echo "configure:22399: checking size of int" >&5
22399 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
22400 echo $ac_n "(cached) $ac_c" 1>&6
22402 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22403 cat > conftest.$ac_ext <<EOF
22404 #line 22405 "configure"
22405 #include "confdefs.h"
22406 #include "confdefs.h"
22407 #include <sys/types.h>
22411 switch (0) case 0: case (sizeof (int) == $ac_size):;
22414 if { (eval echo configure:22415: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22416 ac_cv_sizeof_int=$ac_size
22418 echo "configure: failed program was:" >&5
22419 cat conftest.$ac_ext >&5
22422 if test x$ac_cv_sizeof_int != x ; then break; fi
22427 if test x$ac_cv_sizeof_int = x ; then
22428 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
22430 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
22431 cat >> confdefs.h <<EOF
22432 #define SIZEOF_INT $ac_cv_sizeof_int
22436 echo $ac_n "checking size of long""... $ac_c" 1>&6
22437 echo "configure:22438: checking size of long" >&5
22438 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
22439 echo $ac_n "(cached) $ac_c" 1>&6
22441 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22442 cat > conftest.$ac_ext <<EOF
22443 #line 22444 "configure"
22444 #include "confdefs.h"
22445 #include "confdefs.h"
22446 #include <sys/types.h>
22450 switch (0) case 0: case (sizeof (long) == $ac_size):;
22453 if { (eval echo configure:22454: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22455 ac_cv_sizeof_long=$ac_size
22457 echo "configure: failed program was:" >&5
22458 cat conftest.$ac_ext >&5
22461 if test x$ac_cv_sizeof_long != x ; then break; fi
22466 if test x$ac_cv_sizeof_long = x ; then
22467 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
22469 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
22470 cat >> confdefs.h <<EOF
22471 #define SIZEOF_LONG $ac_cv_sizeof_long
22476 if test "$ac_cv_sizeof_int" -lt 4 ; then
22477 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
22479 cat >> confdefs.h <<\EOF
22480 #define LBER_INT_T long
22484 cat >> confdefs.h <<\EOF
22485 #define LBER_INT_T int
22490 cat >> confdefs.h <<\EOF
22491 #define LBER_LEN_T long
22494 cat >> confdefs.h <<\EOF
22495 #define LBER_SOCKET_T int
22498 cat >> confdefs.h <<\EOF
22499 #define LBER_TAG_T long
22503 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
22504 echo "configure:22505: checking for 8-bit clean memcmp" >&5
22505 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
22506 echo $ac_n "(cached) $ac_c" 1>&6
22508 if test "$cross_compiling" = yes; then
22509 ac_cv_func_memcmp_clean=no
22511 cat > conftest.$ac_ext <<EOF
22512 #line 22513 "configure"
22513 #include "confdefs.h"
22517 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
22518 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
22522 if { (eval echo configure:22523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
22524 ac_cv_func_memcmp_clean=yes
22526 echo "configure: failed program was:" >&5
22527 cat conftest.$ac_ext >&5
22529 ac_cv_func_memcmp_clean=no
22536 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
22537 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
22539 echo $ac_n "checking for strftime""... $ac_c" 1>&6
22540 echo "configure:22541: checking for strftime" >&5
22541 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
22542 echo $ac_n "(cached) $ac_c" 1>&6
22544 cat > conftest.$ac_ext <<EOF
22545 #line 22546 "configure"
22546 #include "confdefs.h"
22547 /* System header to define __stub macros and hopefully few prototypes,
22548 which can conflict with char strftime(); below. */
22549 #include <assert.h>
22550 /* Override any gcc2 internal prototype to avoid an error. */
22551 /* We use char because int might match the return type of a gcc2
22552 builtin and then its argument prototype would still apply. */
22558 /* The GNU C library defines this for functions which it implements
22559 to always fail with ENOSYS. Some functions are actually named
22560 something starting with __ and the normal name is an alias. */
22561 #if defined (__stub_strftime) || defined (__stub___strftime)
22569 if { (eval echo configure:22570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22571 eval "ac_cv_func_strftime=yes"
22573 echo "configure: failed program was:" >&5
22574 cat conftest.$ac_ext >&5
22576 eval "ac_cv_func_strftime=no"
22581 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
22582 echo "$ac_t""yes" 1>&6
22583 cat >> confdefs.h <<\EOF
22584 #define HAVE_STRFTIME 1
22588 echo "$ac_t""no" 1>&6
22589 # strftime is in -lintl on SCO UNIX.
22590 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
22591 echo "configure:22592: checking for strftime in -lintl" >&5
22592 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
22593 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
22594 echo $ac_n "(cached) $ac_c" 1>&6
22596 ac_save_LIBS="$LIBS"
22597 LIBS="-lintl $LIBS"
22598 cat > conftest.$ac_ext <<EOF
22599 #line 22600 "configure"
22600 #include "confdefs.h"
22601 /* Override any gcc2 internal prototype to avoid an error. */
22602 /* We use char because int might match the return type of a gcc2
22603 builtin and then its argument prototype would still apply. */
22610 if { (eval echo configure:22611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22612 eval "ac_cv_lib_$ac_lib_var=yes"
22614 echo "configure: failed program was:" >&5
22615 cat conftest.$ac_ext >&5
22617 eval "ac_cv_lib_$ac_lib_var=no"
22620 LIBS="$ac_save_LIBS"
22623 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
22624 echo "$ac_t""yes" 1>&6
22625 cat >> confdefs.h <<\EOF
22626 #define HAVE_STRFTIME 1
22629 LIBS="-lintl $LIBS"
22631 echo "$ac_t""no" 1>&6
22637 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
22638 echo "configure:22639: checking for inet_aton()" >&5
22639 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
22640 echo $ac_n "(cached) $ac_c" 1>&6
22642 cat > conftest.$ac_ext <<EOF
22643 #line 22644 "configure"
22644 #include "confdefs.h"
22646 #ifdef HAVE_SYS_TYPES_H
22647 # include <sys/types.h>
22649 #ifdef HAVE_SYS_SOCKET_H
22650 # include <sys/socket.h>
22651 # ifdef HAVE_SYS_SELECT_H
22652 # include <sys/select.h>
22654 # include <netinet/in.h>
22655 # ifdef HAVE_ARPA_INET_H
22656 # include <arpa/inet.h>
22662 int rc = inet_aton( "255.255.255.255", &in );
22665 if { (eval echo configure:22666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22667 ol_cv_func_inet_aton=yes
22669 echo "configure: failed program was:" >&5
22670 cat conftest.$ac_ext >&5
22672 ol_cv_func_inet_aton=no
22677 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
22678 if test $ol_cv_func_inet_aton != no; then
22679 cat >> confdefs.h <<\EOF
22680 #define HAVE_INET_ATON 1
22686 echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
22687 echo "configure:22688: checking for _spawnlp" >&5
22688 if eval "test \"\${ac_cv_func__spawnlp+set}\" = set"; then
22689 echo $ac_n "(cached) $ac_c" 1>&6
22691 cat > conftest.$ac_ext <<EOF
22692 #line 22693 "configure"
22693 #include "confdefs.h"
22694 /* System header to define __stub macros and hopefully few prototypes,
22695 which can conflict with char _spawnlp(); below. */
22696 #include <assert.h>
22697 /* Override any gcc2 internal prototype to avoid an error. */
22698 /* We use char because int might match the return type of a gcc2
22699 builtin and then its argument prototype would still apply. */
22705 /* The GNU C library defines this for functions which it implements
22706 to always fail with ENOSYS. Some functions are actually named
22707 something starting with __ and the normal name is an alias. */
22708 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
22716 if { (eval echo configure:22717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22718 eval "ac_cv_func__spawnlp=yes"
22720 echo "configure: failed program was:" >&5
22721 cat conftest.$ac_ext >&5
22723 eval "ac_cv_func__spawnlp=no"
22728 if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
22729 echo "$ac_t""yes" 1>&6
22730 cat >> confdefs.h <<\EOF
22731 #define HAVE_SPAWNLP 1
22735 echo "$ac_t""no" 1>&6
22739 echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
22740 echo "configure:22741: checking for _snprintf" >&5
22741 if eval "test \"\${ac_cv_func__snprintf+set}\" = set"; then
22742 echo $ac_n "(cached) $ac_c" 1>&6
22744 cat > conftest.$ac_ext <<EOF
22745 #line 22746 "configure"
22746 #include "confdefs.h"
22747 /* System header to define __stub macros and hopefully few prototypes,
22748 which can conflict with char _snprintf(); below. */
22749 #include <assert.h>
22750 /* Override any gcc2 internal prototype to avoid an error. */
22751 /* We use char because int might match the return type of a gcc2
22752 builtin and then its argument prototype would still apply. */
22758 /* The GNU C library defines this for functions which it implements
22759 to always fail with ENOSYS. Some functions are actually named
22760 something starting with __ and the normal name is an alias. */
22761 #if defined (__stub__snprintf) || defined (__stub____snprintf)
22769 if { (eval echo configure:22770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22771 eval "ac_cv_func__snprintf=yes"
22773 echo "configure: failed program was:" >&5
22774 cat conftest.$ac_ext >&5
22776 eval "ac_cv_func__snprintf=no"
22781 if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
22782 echo "$ac_t""yes" 1>&6
22783 ac_cv_func_snprintf=yes
22784 cat >> confdefs.h <<\EOF
22785 #define snprintf _snprintf
22790 echo "$ac_t""no" 1>&6
22794 echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
22795 echo "configure:22796: checking for _vsnprintf" >&5
22796 if eval "test \"\${ac_cv_func__vsnprintf+set}\" = set"; then
22797 echo $ac_n "(cached) $ac_c" 1>&6
22799 cat > conftest.$ac_ext <<EOF
22800 #line 22801 "configure"
22801 #include "confdefs.h"
22802 /* System header to define __stub macros and hopefully few prototypes,
22803 which can conflict with char _vsnprintf(); below. */
22804 #include <assert.h>
22805 /* Override any gcc2 internal prototype to avoid an error. */
22806 /* We use char because int might match the return type of a gcc2
22807 builtin and then its argument prototype would still apply. */
22813 /* The GNU C library defines this for functions which it implements
22814 to always fail with ENOSYS. Some functions are actually named
22815 something starting with __ and the normal name is an alias. */
22816 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
22824 if { (eval echo configure:22825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22826 eval "ac_cv_func__vsnprintf=yes"
22828 echo "configure: failed program was:" >&5
22829 cat conftest.$ac_ext >&5
22831 eval "ac_cv_func__vsnprintf=no"
22836 if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
22837 echo "$ac_t""yes" 1>&6
22838 ac_cv_func_vsnprintf=yes
22839 cat >> confdefs.h <<\EOF
22840 #define vsnprintf _vsnprintf
22845 echo "$ac_t""no" 1>&6
22849 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
22850 echo "configure:22851: checking for vprintf" >&5
22851 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
22852 echo $ac_n "(cached) $ac_c" 1>&6
22854 cat > conftest.$ac_ext <<EOF
22855 #line 22856 "configure"
22856 #include "confdefs.h"
22857 /* System header to define __stub macros and hopefully few prototypes,
22858 which can conflict with char vprintf(); below. */
22859 #include <assert.h>
22860 /* Override any gcc2 internal prototype to avoid an error. */
22861 /* We use char because int might match the return type of a gcc2
22862 builtin and then its argument prototype would still apply. */
22868 /* The GNU C library defines this for functions which it implements
22869 to always fail with ENOSYS. Some functions are actually named
22870 something starting with __ and the normal name is an alias. */
22871 #if defined (__stub_vprintf) || defined (__stub___vprintf)
22879 if { (eval echo configure:22880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22881 eval "ac_cv_func_vprintf=yes"
22883 echo "configure: failed program was:" >&5
22884 cat conftest.$ac_ext >&5
22886 eval "ac_cv_func_vprintf=no"
22891 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
22892 echo "$ac_t""yes" 1>&6
22893 cat >> confdefs.h <<\EOF
22894 #define HAVE_VPRINTF 1
22898 echo "$ac_t""no" 1>&6
22901 if test "$ac_cv_func_vprintf" != yes; then
22902 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
22903 echo "configure:22904: checking for _doprnt" >&5
22904 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
22905 echo $ac_n "(cached) $ac_c" 1>&6
22907 cat > conftest.$ac_ext <<EOF
22908 #line 22909 "configure"
22909 #include "confdefs.h"
22910 /* System header to define __stub macros and hopefully few prototypes,
22911 which can conflict with char _doprnt(); below. */
22912 #include <assert.h>
22913 /* Override any gcc2 internal prototype to avoid an error. */
22914 /* We use char because int might match the return type of a gcc2
22915 builtin and then its argument prototype would still apply. */
22921 /* The GNU C library defines this for functions which it implements
22922 to always fail with ENOSYS. Some functions are actually named
22923 something starting with __ and the normal name is an alias. */
22924 #if defined (__stub__doprnt) || defined (__stub____doprnt)
22932 if { (eval echo configure:22933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22934 eval "ac_cv_func__doprnt=yes"
22936 echo "configure: failed program was:" >&5
22937 cat conftest.$ac_ext >&5
22939 eval "ac_cv_func__doprnt=no"
22944 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
22945 echo "$ac_t""yes" 1>&6
22946 cat >> confdefs.h <<\EOF
22947 #define HAVE_DOPRNT 1
22951 echo "$ac_t""no" 1>&6
22957 if test $ac_cv_func_vprintf = yes ; then
22958 for ac_func in snprintf vsnprintf
22960 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22961 echo "configure:22962: checking for $ac_func" >&5
22962 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
22963 echo $ac_n "(cached) $ac_c" 1>&6
22965 cat > conftest.$ac_ext <<EOF
22966 #line 22967 "configure"
22967 #include "confdefs.h"
22968 /* System header to define __stub macros and hopefully few prototypes,
22969 which can conflict with char $ac_func(); below. */
22970 #include <assert.h>
22971 /* Override any gcc2 internal prototype to avoid an error. */
22972 /* We use char because int might match the return type of a gcc2
22973 builtin and then its argument prototype would still apply. */
22979 /* The GNU C library defines this for functions which it implements
22980 to always fail with ENOSYS. Some functions are actually named
22981 something starting with __ and the normal name is an alias. */
22982 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22990 if { (eval echo configure:22991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22992 eval "ac_cv_func_$ac_func=yes"
22994 echo "configure: failed program was:" >&5
22995 cat conftest.$ac_ext >&5
22997 eval "ac_cv_func_$ac_func=no"
23002 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
23003 echo "$ac_t""yes" 1>&6
23004 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23005 cat >> confdefs.h <<EOF
23006 #define $ac_tr_func 1
23010 echo "$ac_t""no" 1>&6
23075 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
23076 echo "configure:23077: checking for $ac_func" >&5
23077 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
23078 echo $ac_n "(cached) $ac_c" 1>&6
23080 cat > conftest.$ac_ext <<EOF
23081 #line 23082 "configure"
23082 #include "confdefs.h"
23083 /* System header to define __stub macros and hopefully few prototypes,
23084 which can conflict with char $ac_func(); below. */
23085 #include <assert.h>
23086 /* Override any gcc2 internal prototype to avoid an error. */
23087 /* We use char because int might match the return type of a gcc2
23088 builtin and then its argument prototype would still apply. */
23094 /* The GNU C library defines this for functions which it implements
23095 to always fail with ENOSYS. Some functions are actually named
23096 something starting with __ and the normal name is an alias. */
23097 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23105 if { (eval echo configure:23106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23107 eval "ac_cv_func_$ac_func=yes"
23109 echo "configure: failed program was:" >&5
23110 cat conftest.$ac_ext >&5
23112 eval "ac_cv_func_$ac_func=no"
23117 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
23118 echo "$ac_t""yes" 1>&6
23119 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23120 cat >> confdefs.h <<EOF
23121 #define $ac_tr_func 1
23125 echo "$ac_t""no" 1>&6
23130 for ac_func in getopt getpeereid
23132 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
23133 echo "configure:23134: checking for $ac_func" >&5
23134 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
23135 echo $ac_n "(cached) $ac_c" 1>&6
23137 cat > conftest.$ac_ext <<EOF
23138 #line 23139 "configure"
23139 #include "confdefs.h"
23140 /* System header to define __stub macros and hopefully few prototypes,
23141 which can conflict with char $ac_func(); below. */
23142 #include <assert.h>
23143 /* Override any gcc2 internal prototype to avoid an error. */
23144 /* We use char because int might match the return type of a gcc2
23145 builtin and then its argument prototype would still apply. */
23151 /* The GNU C library defines this for functions which it implements
23152 to always fail with ENOSYS. Some functions are actually named
23153 something starting with __ and the normal name is an alias. */
23154 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23162 if { (eval echo configure:23163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23164 eval "ac_cv_func_$ac_func=yes"
23166 echo "configure: failed program was:" >&5
23167 cat conftest.$ac_ext >&5
23169 eval "ac_cv_func_$ac_func=no"
23174 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
23175 echo "$ac_t""yes" 1>&6
23176 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23177 cat >> confdefs.h <<EOF
23178 #define $ac_tr_func 1
23182 echo "$ac_t""no" 1>&6
23183 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
23189 if test "$ac_cv_func_getopt" != yes; then
23190 LIBSRCS="$LIBSRCS getopt.c"
23192 if test "$ac_cv_func_getpeereid" != yes; then
23193 echo $ac_n "checking for msg_accrights in msghdr""... $ac_c" 1>&6
23194 echo "configure:23195: checking for msg_accrights in msghdr" >&5
23195 if eval "test \"\${ol_cv_msghdr_msg_accrights+set}\" = set"; then
23196 echo $ac_n "(cached) $ac_c" 1>&6
23198 cat > conftest.$ac_ext <<EOF
23199 #line 23200 "configure"
23200 #include "confdefs.h"
23201 #include <sys/socket.h>
23203 struct msghdr m; m.msg_accrightslen=0
23206 if { (eval echo configure:23207: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23208 ol_cv_msghdr_msg_accrights=yes
23210 echo "configure: failed program was:" >&5
23211 cat conftest.$ac_ext >&5
23213 ol_cv_msghdr_msg_accrights=no
23219 echo "$ac_t""$ol_cv_msghdr_msg_accrights" 1>&6
23220 if test $ol_cv_msghdr_msg_accrights = "yes" ; then
23221 cat >> confdefs.h <<\EOF
23222 #define HAVE_MSGHDR_MSG_ACCRIGHTS 1
23227 LIBSRCS="$LIBSRCS getpeereid.c"
23229 if test "$ac_cv_func_snprintf" != yes -o "$ac_cv_func_vsnprintf" != yes; then
23230 if test "$ac_cv_func_snprintf" != yes; then
23231 cat >> confdefs.h <<\EOF
23232 #define snprintf ber_pvt_snprintf
23236 if test "$ac_cv_func_vsnprintf" != yes; then
23237 cat >> confdefs.h <<\EOF
23238 #define vsnprintf ber_pvt_vsnprintf
23244 # Check Configuration
23245 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
23246 echo "configure:23247: checking declaration of sys_errlist" >&5
23247 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
23248 echo $ac_n "(cached) $ac_c" 1>&6
23251 cat > conftest.$ac_ext <<EOF
23252 #line 23253 "configure"
23253 #include "confdefs.h"
23256 #include <sys/types.h>
23259 #include <stdlib.h>
23262 char *c = (char *) *sys_errlist
23265 if { (eval echo configure:23266: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23267 ol_cv_dcl_sys_errlist=yes
23268 ol_cv_have_sys_errlist=yes
23270 echo "configure: failed program was:" >&5
23271 cat conftest.$ac_ext >&5
23273 ol_cv_dcl_sys_errlist=no
23278 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
23280 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
23281 if test $ol_cv_dcl_sys_errlist = no ; then
23282 cat >> confdefs.h <<\EOF
23283 #define DECL_SYS_ERRLIST 1
23287 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
23288 echo "configure:23289: checking existence of sys_errlist" >&5
23289 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
23290 echo $ac_n "(cached) $ac_c" 1>&6
23293 cat > conftest.$ac_ext <<EOF
23294 #line 23295 "configure"
23295 #include "confdefs.h"
23298 char *c = (char *) *sys_errlist
23301 if { (eval echo configure:23302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23303 ol_cv_have_sys_errlist=yes
23305 echo "configure: failed program was:" >&5
23306 cat conftest.$ac_ext >&5
23308 ol_cv_have_sys_errlist=no
23313 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
23315 if test $ol_cv_have_sys_errlist = yes ; then
23316 cat >> confdefs.h <<\EOF
23317 #define HAVE_SYS_ERRLIST 1
23324 if test "$ol_enable_slapi" != no ; then
23325 for ac_hdr in ltdl.h
23327 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
23328 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
23329 echo "configure:23330: checking for $ac_hdr" >&5
23330 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
23331 echo $ac_n "(cached) $ac_c" 1>&6
23333 cat > conftest.$ac_ext <<EOF
23334 #line 23335 "configure"
23335 #include "confdefs.h"
23338 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
23339 { (eval echo configure:23340: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
23340 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
23341 if test -z "$ac_err"; then
23343 eval "ac_cv_header_$ac_safe=yes"
23346 echo "configure: failed program was:" >&5
23347 cat conftest.$ac_ext >&5
23349 eval "ac_cv_header_$ac_safe=no"
23353 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
23354 echo "$ac_t""yes" 1>&6
23355 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
23356 cat >> confdefs.h <<EOF
23357 #define $ac_tr_hdr 1
23361 echo "$ac_t""no" 1>&6
23366 if test $ac_cv_header_ltdl_h != yes ; then
23367 { echo "configure: error: could not locate <ltdl.h>" 1>&2; exit 1; }
23369 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
23370 echo "configure:23371: checking for lt_dlinit in -lltdl" >&5
23371 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
23372 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
23373 echo $ac_n "(cached) $ac_c" 1>&6
23375 ac_save_LIBS="$LIBS"
23376 LIBS="-lltdl $LIBS"
23377 cat > conftest.$ac_ext <<EOF
23378 #line 23379 "configure"
23379 #include "confdefs.h"
23380 /* Override any gcc2 internal prototype to avoid an error. */
23381 /* We use char because int might match the return type of a gcc2
23382 builtin and then its argument prototype would still apply. */
23389 if { (eval echo configure:23390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23391 eval "ac_cv_lib_$ac_lib_var=yes"
23393 echo "configure: failed program was:" >&5
23394 cat conftest.$ac_ext >&5
23396 eval "ac_cv_lib_$ac_lib_var=no"
23399 LIBS="$ac_save_LIBS"
23402 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
23403 echo "$ac_t""yes" 1>&6
23406 LIBSLAPI=libslapi.a
23407 LIBSLAPITOOLS=../libslapi.a
23408 cat >> confdefs.h <<\EOF
23409 #define HAVE_LIBLTDL 1
23414 echo "$ac_t""no" 1>&6
23415 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
23419 cat >> confdefs.h <<\EOF
23420 #define LDAP_SLAPI 1
23425 if test "$ol_enable_debug" != no ; then
23426 cat >> confdefs.h <<\EOF
23427 #define LDAP_DEBUG 1
23431 if test "$ol_enable_syslog" = yes ; then
23432 cat >> confdefs.h <<\EOF
23433 #define LDAP_SYSLOG 1
23437 if test "$ol_link_kbind" != no ; then
23438 cat >> confdefs.h <<\EOF
23439 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
23443 if test "$ol_enable_proctitle" != no ; then
23444 cat >> confdefs.h <<\EOF
23445 #define LDAP_PROCTITLE 1
23449 if test "$ol_enable_referrals" != no ; then
23450 cat >> confdefs.h <<\EOF
23451 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
23455 if test "$ol_enable_local" != no; then
23456 cat >> confdefs.h <<\EOF
23457 #define LDAP_PF_LOCAL 1
23461 if test "$ol_link_ipv6" != no; then
23462 cat >> confdefs.h <<\EOF
23463 #define LDAP_PF_INET6 1
23467 if test "$ol_enable_cleartext" != no ; then
23468 cat >> confdefs.h <<\EOF
23469 #define SLAPD_CLEARTEXT 1
23473 if test "$ol_enable_crypt" != no ; then
23474 cat >> confdefs.h <<\EOF
23475 #define SLAPD_CRYPT 1
23479 if test "$ol_link_kpasswd" != no ; then
23480 cat >> confdefs.h <<\EOF
23481 #define SLAPD_KPASSWD 1
23485 if test "$ol_link_spasswd" != no ; then
23486 cat >> confdefs.h <<\EOF
23487 #define SLAPD_SPASSWD 1
23491 if test "$ol_enable_multimaster" != no ; then
23492 cat >> confdefs.h <<\EOF
23493 #define SLAPD_MULTIMASTER 1
23497 if test "$ol_enable_rlookups" != no ; then
23498 cat >> confdefs.h <<\EOF
23499 #define SLAPD_RLOOKUPS 1
23503 if test "$ol_enable_aci" != no ; then
23504 cat >> confdefs.h <<\EOF
23505 #define SLAPD_ACI_ENABLED 1
23510 if test "$ol_link_modules" != no ; then
23511 cat >> confdefs.h <<\EOF
23512 #define SLAPD_MODULES 1
23516 SLAPD_MODULES_LDFLAGS="-dlopen self"
23519 cat >> confdefs.h <<\EOF
23520 #define SLAPD_MOD_STATIC 1
23523 cat >> confdefs.h <<\EOF
23524 #define SLAPD_MOD_DYNAMIC 2
23528 if test "$ol_enable_bdb" != no ; then
23529 cat >> confdefs.h <<\EOF
23530 #define SLAPD_BDB 1
23535 if test "$ol_with_bdb_module" != static ; then
23536 cat >> confdefs.h <<\EOF
23537 #define SLAPD_BDB_DYNAMIC 1
23541 BUILD_BDB_DYNAMIC=shared
23542 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
23544 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
23548 if test "$ol_link_dnssrv" != no ; then
23549 cat >> confdefs.h <<\EOF
23550 #define SLAPD_DNSSRV 1
23555 if test "$ol_with_dnssrv_module" != static ; then
23556 cat >> confdefs.h <<\EOF
23557 #define SLAPD_DNSSRV_DYNAMIC 1
23561 BUILD_DNSSRV_DYNAMIC=shared
23562 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
23564 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
23568 if test "$ol_enable_hdb" != no ; then
23569 cat >> confdefs.h <<\EOF
23570 #define SLAPD_HDB 1
23575 if test "$ol_with_hdb_module" != static ; then
23576 cat >> confdefs.h <<\EOF
23577 #define SLAPD_HDB_DYNAMIC 1
23581 BUILD_HDB_DYNAMIC=shared
23582 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
23584 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
23588 if test "$ol_enable_ldap" != no ; then
23589 cat >> confdefs.h <<\EOF
23590 #define SLAPD_LDAP 1
23595 if test "$ol_with_ldap_module" != static ; then
23596 cat >> confdefs.h <<\EOF
23597 #define SLAPD_LDAP_DYNAMIC 1
23601 BUILD_LDAP_DYNAMIC=shared
23602 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
23604 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
23608 if test "$ol_link_ldbm" != no -a $ol_enable_ldbm != no; then
23609 cat >> confdefs.h <<\EOF
23610 #define SLAPD_LDBM 1
23615 if test "$ol_with_ldbm_module" != static ; then
23616 cat >> confdefs.h <<\EOF
23617 #define SLAPD_LDBM_DYNAMIC 1
23621 BUILD_LDBM_DYNAMIC=shared
23622 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
23624 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
23628 if test "$ol_enable_meta" != no ; then
23629 if test "$ol_enable_ldap" = no ; then
23630 { echo "configure: error: need --enable-ldap to use --enable-meta" 1>&2; exit 1; }
23632 if test "$ol_enable_rewrite" = no ; then
23633 { echo "configure: error: need --enable-rewrite to use --enable-meta" 1>&2; exit 1; }
23635 cat >> confdefs.h <<\EOF
23636 #define SLAPD_META 1
23642 if test "$ol_with_meta_module" != static ; then
23643 cat >> confdefs.h <<\EOF
23644 #define SLAPD_META_DYNAMIC 1
23648 BUILD_META_DYNAMIC=shared
23649 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
23651 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
23655 if test "$ol_enable_monitor" != no ; then
23656 cat >> confdefs.h <<\EOF
23657 #define SLAPD_MONITOR 1
23662 if test "$ol_with_monitor_module" != static ; then
23663 cat >> confdefs.h <<\EOF
23664 #define SLAPD_MONITOR_DYNAMIC 1
23668 BUILD_MONITOR_DYNAMIC=shared
23669 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
23671 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
23675 if test "$ol_enable_null" != no ; then
23676 cat >> confdefs.h <<\EOF
23677 #define SLAPD_NULL 1
23682 if test "$ol_with_null_module" != static ; then
23683 cat >> confdefs.h <<\EOF
23684 #define SLAPD_NULL_DYNAMIC 1
23688 BUILD_NULL_DYNAMIC=shared
23689 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
23691 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
23695 if test "$ol_enable_passwd" != no ; then
23696 cat >> confdefs.h <<\EOF
23697 #define SLAPD_PASSWD 1
23702 if test "$ol_with_passwd_module" != static ; then
23703 cat >> confdefs.h <<\EOF
23704 #define SLAPD_PASSWD_DYNAMIC 1
23708 BUILD_PASSWD_DYNAMIC=shared
23709 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
23711 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
23715 if test "$ol_link_perl" != no ; then
23716 cat >> confdefs.h <<\EOF
23717 #define SLAPD_PERL 1
23722 if test "$ol_with_perl_module" != static ; then
23723 cat >> confdefs.h <<\EOF
23724 #define SLAPD_PERL_DYNAMIC 1
23728 BUILD_PERL_DYNAMIC=shared
23729 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
23731 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
23735 if test "$ol_enable_shell" != no ; then
23736 if test "$ol_link_thread" != no ; then
23737 echo "configure: warning: Use of --without-threads is recommended with back-shell" 1>&2
23739 cat >> confdefs.h <<\EOF
23740 #define SLAPD_SHELL 1
23745 if test "$ol_with_shell_module" != static ; then
23746 cat >> confdefs.h <<\EOF
23747 #define SLAPD_SHELL_DYNAMIC 1
23751 BUILD_SHELL_DYNAMIC=shared
23752 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
23754 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
23758 if test "$ol_link_sql" != no ; then
23759 cat >> confdefs.h <<\EOF
23760 #define SLAPD_SQL 1
23765 if test "$ol_with_sql_module" != static; then
23766 cat >> confdefs.h <<\EOF
23767 #define SLAPD_SQL_DYNAMIC 1
23771 BUILD_SQL_DYNAMIC=shared
23772 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
23774 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
23778 if test "$ol_with_dyngroup" != no ; then
23779 BUILD_DYNGROUP=$ol_with_dyngroup
23780 if test "$ol_with_dyngroup" = mod ; then
23781 MFLAG=SLAPD_MOD_DYNAMIC
23782 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
23784 MFLAG=SLAPD_MOD_STATIC
23786 cat >> confdefs.h <<EOF
23787 #define SLAPD_OVER_DYNGROUP $MFLAG
23792 if test "$ol_with_proxycache" != no ; then
23793 BUILD_PROXYCACHE=$ol_with_proxycache
23794 if test "$ol_with_proxycache" = mod ; then
23795 MFLAG=SLAPD_MOD_DYNAMIC
23796 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
23798 MFLAG=SLAPD_MOD_STATIC
23800 cat >> confdefs.h <<EOF
23801 #define SLAPD_OVER_PROXYCACHE $MFLAG
23806 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
23807 $BUILD_SLAPD = yes ; then
23811 if test "$ol_enable_rewrite" != no ; then
23812 cat >> confdefs.h <<\EOF
23813 #define ENABLE_REWRITE 1
23819 if test "$ol_enable_slapi" != no ; then
23820 cat >> confdefs.h <<\EOF
23821 #define ENABLE_SLAPI 1
23825 SLAPD_SLAPI_DEPEND=libslapi.a
23830 if test "$ac_cv_mingw32" = yes ; then
23832 SLAPD_MODULES_LDFLAGS=
23837 if test -z "$SLAPD_STATIC_BACKENDS"; then
23838 SLAPD_NO_STATIC='#'
23915 # Check whether --with-xxinstall or --without-xxinstall was given.
23916 if test "${with_xxinstall+set}" = set; then
23917 withval="$with_xxinstall"
23925 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
23927 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23928 # Let make expand exec_prefix.
23929 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23931 # Any assignment to VPATH causes Sun make to only execute
23932 # the first set of double-colon rules, so remove it if not needed.
23933 # If there is a colon in the path, we need to keep it.
23934 if test "x$srcdir" = x.; then
23935 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
23938 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
23940 DEFS=-DHAVE_CONFIG_H
23942 # Without the "./", some shells look in PATH for config.status.
23943 : ${CONFIG_STATUS=./config.status}
23945 echo creating $CONFIG_STATUS
23946 rm -f $CONFIG_STATUS
23947 cat > $CONFIG_STATUS <<EOF
23949 # Generated automatically by configure.
23950 # Run this file to recreate the current configuration.
23951 # This directory was configured as follows,
23952 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23954 # $0 $ac_configure_args
23956 # Compiler output produced by configure, useful for debugging
23957 # configure, is in ./config.log if it exists.
23959 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
23962 case "\$ac_option" in
23963 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23964 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
23965 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
23966 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
23967 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
23969 -help | --help | --hel | --he | --h)
23970 echo "\$ac_cs_usage"; exit 0 ;;
23971 *) echo "\$ac_cs_usage"; exit 1 ;;
23975 ac_given_srcdir=$srcdir
23976 ac_given_INSTALL="$INSTALL"
23978 trap 'rm -fr `echo "\
23979 Makefile:build/top.mk:Makefile.in:build/dir.mk \
23980 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
23981 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
23982 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
23983 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
23984 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
23985 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
23986 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
23987 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
23988 include/Makefile:build/top.mk:include/Makefile.in \
23989 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
23990 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
23991 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
23992 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
23993 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
23994 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
23995 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
23996 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
23997 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
23998 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
23999 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
24000 servers/slapd/back-hdb/Makefile:build/top.mk:servers/slapd/back-hdb/Makefile.in:build/mod.mk \
24001 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
24002 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
24003 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
24004 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
24005 servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk \
24006 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
24007 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
24008 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
24009 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
24010 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
24011 servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk \
24012 servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk \
24013 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
24014 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
24015 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
24017 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
24018 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
24020 cat >> $CONFIG_STATUS <<EOF
24022 # Protect against being on the right side of a sed subst in config.status.
24023 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
24024 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
24028 s%@CFLAGS@%$CFLAGS%g
24029 s%@CPPFLAGS@%$CPPFLAGS%g
24030 s%@CXXFLAGS@%$CXXFLAGS%g
24031 s%@FFLAGS@%$FFLAGS%g
24033 s%@LDFLAGS@%$LDFLAGS%g
24035 s%@exec_prefix@%$exec_prefix%g
24036 s%@prefix@%$prefix%g
24037 s%@program_transform_name@%$program_transform_name%g
24038 s%@bindir@%$bindir%g
24039 s%@sbindir@%$sbindir%g
24040 s%@libexecdir@%$libexecdir%g
24041 s%@datadir@%$datadir%g
24042 s%@sysconfdir@%$sysconfdir%g
24043 s%@sharedstatedir@%$sharedstatedir%g
24044 s%@localstatedir@%$localstatedir%g
24045 s%@libdir@%$libdir%g
24046 s%@includedir@%$includedir%g
24047 s%@oldincludedir@%$oldincludedir%g
24048 s%@infodir@%$infodir%g
24049 s%@mandir@%$mandir%g
24051 s%@host_alias@%$host_alias%g
24052 s%@host_cpu@%$host_cpu%g
24053 s%@host_vendor@%$host_vendor%g
24054 s%@host_os@%$host_os%g
24055 s%@target@%$target%g
24056 s%@target_alias@%$target_alias%g
24057 s%@target_cpu@%$target_cpu%g
24058 s%@target_vendor@%$target_vendor%g
24059 s%@target_os@%$target_os%g
24061 s%@build_alias@%$build_alias%g
24062 s%@build_cpu@%$build_cpu%g
24063 s%@build_vendor@%$build_vendor%g
24064 s%@build_os@%$build_os%g
24065 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
24066 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
24067 s%@INSTALL_DATA@%$INSTALL_DATA%g
24068 s%@PACKAGE@%$PACKAGE%g
24069 s%@VERSION@%$VERSION%g
24070 s%@ACLOCAL@%$ACLOCAL%g
24071 s%@AUTOCONF@%$AUTOCONF%g
24072 s%@AUTOMAKE@%$AUTOMAKE%g
24073 s%@AUTOHEADER@%$AUTOHEADER%g
24074 s%@MAKEINFO@%$MAKEINFO%g
24075 s%@install_sh@%$install_sh%g
24078 s%@AMTARFLAGS@%$AMTARFLAGS%g
24079 s%@SET_MAKE@%$SET_MAKE%g
24080 s%@OPENLDAP_LIBVERSION@%$OPENLDAP_LIBVERSION%g
24081 s%@OPENLDAP_RELEASE_DATE@%$OPENLDAP_RELEASE_DATE%g
24082 s%@top_builddir@%$top_builddir%g
24083 s%@ldap_subdir@%$ldap_subdir%g
24087 s%@OBJEXT@%$OBJEXT%g
24088 s%@EXEEXT@%$EXEEXT%g
24090 s%@RANLIB@%$RANLIB%g
24092 s%@DLLTOOL@%$DLLTOOL%g
24094 s%@OBJDUMP@%$OBJDUMP%g
24096 s%@LIBTOOL@%$LIBTOOL%g
24098 s%@PERLBIN@%$PERLBIN%g
24099 s%@OL_MKDEP@%$OL_MKDEP%g
24100 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
24101 s%@LTSTATIC@%$LTSTATIC%g
24102 s%@LIBOBJS@%$LIBOBJS%g
24103 s%@LIBSRCS@%$LIBSRCS%g
24105 s%@WITH_TLS@%$WITH_TLS%g
24106 s%@BUILD_LIBS_DYNAMIC@%$BUILD_LIBS_DYNAMIC%g
24107 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
24108 s%@BUILD_SLAPI@%$BUILD_SLAPI%g
24109 s%@SLAPD_SLAPI_DEPEND@%$SLAPD_SLAPI_DEPEND%g
24110 s%@BUILD_BDB@%$BUILD_BDB%g
24111 s%@BUILD_DNSSRV@%$BUILD_DNSSRV%g
24112 s%@BUILD_HDB@%$BUILD_HDB%g
24113 s%@BUILD_LDAP@%$BUILD_LDAP%g
24114 s%@BUILD_LDBM@%$BUILD_LDBM%g
24115 s%@BUILD_META@%$BUILD_META%g
24116 s%@BUILD_MONITOR@%$BUILD_MONITOR%g
24117 s%@BUILD_NULL@%$BUILD_NULL%g
24118 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
24119 s%@BUILD_PERL@%$BUILD_PERL%g
24120 s%@BUILD_SHELL@%$BUILD_SHELL%g
24121 s%@BUILD_SQL@%$BUILD_SQL%g
24122 s%@BUILD_BDB_DYNAMIC@%$BUILD_BDB_DYNAMIC%g
24123 s%@BUILD_DNSSRV_DYNAMIC@%$BUILD_DNSSRV_DYNAMIC%g
24124 s%@BUILD_HDB_DYNAMIC@%$BUILD_HDB_DYNAMIC%g
24125 s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
24126 s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
24127 s%@BUILD_META_DYNAMIC@%$BUILD_META_DYNAMIC%g
24128 s%@BUILD_MONITOR_DYNAMIC@%$BUILD_MONITOR_DYNAMIC%g
24129 s%@BUILD_NULL_DYNAMIC@%$BUILD_NULL_DYNAMIC%g
24130 s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
24131 s%@BUILD_PERL_DYNAMIC@%$BUILD_PERL_DYNAMIC%g
24132 s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
24133 s%@BUILD_SQL_DYNAMIC@%$BUILD_SQL_DYNAMIC%g
24134 s%@BUILD_DYNGROUP@%$BUILD_DYNGROUP%g
24135 s%@BUILD_PROXYCACHE@%$BUILD_PROXYCACHE%g
24136 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
24137 s%@LDAP_LIBS@%$LDAP_LIBS%g
24138 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
24139 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
24140 s%@LDBM_LIBS@%$LDBM_LIBS%g
24141 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
24142 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
24143 s%@WRAP_LIBS@%$WRAP_LIBS%g
24144 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
24145 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
24146 s%@SLAPD_NO_STATIC@%$SLAPD_NO_STATIC%g
24147 s%@SLAPD_STATIC_BACKENDS@%$SLAPD_STATIC_BACKENDS%g
24148 s%@SLAPD_DYNAMIC_BACKENDS@%$SLAPD_DYNAMIC_BACKENDS%g
24149 s%@SLAPD_DYNAMIC_OVERLAYS@%$SLAPD_DYNAMIC_OVERLAYS%g
24150 s%@PERL_CPPFLAGS@%$PERL_CPPFLAGS%g
24151 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
24152 s%@MOD_PERL_LDFLAGS@%$MOD_PERL_LDFLAGS%g
24153 s%@KRB4_LIBS@%$KRB4_LIBS%g
24154 s%@KRB5_LIBS@%$KRB5_LIBS%g
24155 s%@SASL_LIBS@%$SASL_LIBS%g
24156 s%@TLS_LIBS@%$TLS_LIBS%g
24157 s%@MODULES_LIBS@%$MODULES_LIBS%g
24158 s%@SLAPI_LIBS@%$SLAPI_LIBS%g
24159 s%@LIBSLAPI@%$LIBSLAPI%g
24160 s%@LIBSLAPITOOLS@%$LIBSLAPITOOLS%g
24161 s%@AUTH_LIBS@%$AUTH_LIBS%g
24162 s%@SLAPD_SLP_LIBS@%$SLAPD_SLP_LIBS%g
24163 s%@SLAPD_SQL_LDFLAGS@%$SLAPD_SQL_LDFLAGS%g
24164 s%@SLAPD_SQL_LIBS@%$SLAPD_SQL_LIBS%g
24165 s%@SLAPD_SQL_INCLUDES@%$SLAPD_SQL_INCLUDES%g
24170 cat >> $CONFIG_STATUS <<\EOF
24172 # Split the substitutions into bite-sized pieces for seds with
24173 # small command number limits, like on Digital OSF/1 and HP-UX.
24174 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
24175 ac_file=1 # Number of current file.
24176 ac_beg=1 # First line for current file.
24177 ac_end=$ac_max_sed_cmds # Line after last line for current file.
24180 while $ac_more_lines; do
24181 if test $ac_beg -gt 1; then
24182 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
24184 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
24186 if test ! -s conftest.s$ac_file; then
24187 ac_more_lines=false
24188 rm -f conftest.s$ac_file
24190 if test -z "$ac_sed_cmds"; then
24191 ac_sed_cmds="sed -f conftest.s$ac_file"
24193 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
24195 ac_file=`expr $ac_file + 1`
24197 ac_end=`expr $ac_end + $ac_max_sed_cmds`
24200 if test -z "$ac_sed_cmds"; then
24205 cat >> $CONFIG_STATUS <<EOF
24207 CONFIG_FILES=\${CONFIG_FILES-"\
24208 Makefile:build/top.mk:Makefile.in:build/dir.mk \
24209 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
24210 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
24211 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
24212 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
24213 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
24214 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
24215 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
24216 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
24217 include/Makefile:build/top.mk:include/Makefile.in \
24218 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
24219 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
24220 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
24221 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
24222 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
24223 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
24224 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
24225 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
24226 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
24227 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
24228 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
24229 servers/slapd/back-hdb/Makefile:build/top.mk:servers/slapd/back-hdb/Makefile.in:build/mod.mk \
24230 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
24231 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
24232 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
24233 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
24234 servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk \
24235 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
24236 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
24237 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
24238 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
24239 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
24240 servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk \
24241 servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk \
24242 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
24243 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
24244 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
24246 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
24249 cat >> $CONFIG_STATUS <<\EOF
24250 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
24251 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24253 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
24254 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24255 *) ac_file_in="${ac_file}.in" ;;
24258 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
24260 # Remove last slash and all that follows it. Not all systems have dirname.
24261 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
24262 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24263 # The file is in a subdirectory.
24264 test ! -d "$ac_dir" && mkdir "$ac_dir"
24265 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
24266 # A "../" for each directory in $ac_dir_suffix.
24267 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
24269 ac_dir_suffix= ac_dots=
24272 case "$ac_given_srcdir" in
24274 if test -z "$ac_dots"; then top_srcdir=.
24275 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
24276 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
24277 *) # Relative path.
24278 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
24279 top_srcdir="$ac_dots$ac_given_srcdir" ;;
24282 case "$ac_given_INSTALL" in
24283 [/$]*) INSTALL="$ac_given_INSTALL" ;;
24284 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
24287 echo creating "$ac_file"
24289 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
24291 *[Mm]akefile*) ac_comsub="1i\\
24292 # $configure_input" ;;
24296 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
24298 s%@configure_input@%$configure_input%g
24299 s%@srcdir@%$srcdir%g
24300 s%@top_srcdir@%$top_srcdir%g
24301 s%@INSTALL@%$INSTALL%g
24302 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
24306 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24307 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24309 # ac_d sets the value in "#define NAME VALUE" lines.
24310 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24311 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
24314 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
24315 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24316 ac_uB='\([ ]\)%\1#\2define\3'
24319 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24320 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24321 ac_eB='$%\1#\2define\3'
24325 if test "${CONFIG_HEADERS+set}" != set; then
24327 cat >> $CONFIG_STATUS <<EOF
24328 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
24330 cat >> $CONFIG_STATUS <<\EOF
24332 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
24333 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24335 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
24336 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24337 *) ac_file_in="${ac_file}.in" ;;
24340 echo creating $ac_file
24342 rm -f conftest.frag conftest.in conftest.out
24343 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
24344 cat $ac_file_inputs > conftest.in
24348 # Transform confdefs.h into a sed script conftest.vals that substitutes
24349 # the proper values into config.h.in to produce config.h. And first:
24350 # Protect against being on the right side of a sed subst in config.status.
24351 # Protect against being in an unquoted here document in config.status.
24352 rm -f conftest.vals
24353 cat > conftest.hdr <<\EOF
24356 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
24360 sed -n -f conftest.hdr confdefs.h > conftest.vals
24363 # This sed command replaces #undef with comments. This is necessary, for
24364 # example, in the case of _POSIX_SOURCE, which is predefined and required
24365 # on some systems where configure will not decide to define it.
24366 cat >> conftest.vals <<\EOF
24367 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
24370 # Break up conftest.vals because some shells have a limit on
24371 # the size of here documents, and old seds have small limits too.
24373 rm -f conftest.tail
24376 ac_lines=`grep -c . conftest.vals`
24377 # grep -c gives empty output for an empty file on some AIX systems.
24378 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
24379 # Write a limited-size here document to conftest.frag.
24380 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
24381 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
24383 sed -f conftest.frag conftest.in > conftest.out
24385 mv conftest.out conftest.in
24386 ' >> $CONFIG_STATUS
24387 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
24388 rm -f conftest.vals
24389 mv conftest.tail conftest.vals
24391 rm -f conftest.vals
24393 cat >> $CONFIG_STATUS <<\EOF
24394 rm -f conftest.frag conftest.h
24395 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
24396 cat conftest.in >> conftest.h
24398 if cmp -s $ac_file conftest.h 2>/dev/null; then
24399 echo "$ac_file is unchanged"
24402 # Remove last slash and all that follows it. Not all systems have dirname.
24403 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
24404 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24405 # The file is in a subdirectory.
24406 test ! -d "$ac_dir" && mkdir "$ac_dir"
24409 mv conftest.h $ac_file
24414 cat >> $CONFIG_STATUS <<EOF
24417 cat >> $CONFIG_STATUS <<\EOF
24421 echo Please run \"make depend\" to build dependencies
24425 chmod +x $CONFIG_STATUS
24426 rm -fr confdefs* $ac_clean_files
24427 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1