3 # from OpenLDAP: pkg/ldap/configure.in,v 1.478.2.14 2004/03/17 20:15:30 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 # OpenLDAP --enable-lmpasswd
1740 # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
1741 if test "${enable_lmpasswd+set}" = set; then
1742 enableval="$enable_lmpasswd"
1745 for ol_val in auto yes no ; do
1746 if test "$enableval" = "$ol_val" ; then
1750 if test "$ol_arg" = "invalid" ; then
1751 { echo "configure: error: bad value $enableval for --enable-lmpasswd" 1>&2; exit 1; }
1753 ol_enable_lmpasswd="$ol_arg"
1756 ol_enable_lmpasswd="no"
1758 # end --enable-lmpasswd
1759 # OpenLDAP --enable-spasswd
1760 # Check whether --enable-spasswd or --disable-spasswd was given.
1761 if test "${enable_spasswd+set}" = set; then
1762 enableval="$enable_spasswd"
1765 for ol_val in auto yes no ; do
1766 if test "$enableval" = "$ol_val" ; then
1770 if test "$ol_arg" = "invalid" ; then
1771 { echo "configure: error: bad value $enableval for --enable-spasswd" 1>&2; exit 1; }
1773 ol_enable_spasswd="$ol_arg"
1776 ol_enable_spasswd="no"
1778 # end --enable-spasswd
1779 # OpenLDAP --enable-modules
1780 # Check whether --enable-modules or --disable-modules was given.
1781 if test "${enable_modules+set}" = set; then
1782 enableval="$enable_modules"
1785 for ol_val in auto yes no ; do
1786 if test "$enableval" = "$ol_val" ; then
1790 if test "$ol_arg" = "invalid" ; then
1791 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1793 ol_enable_modules="$ol_arg"
1796 ol_enable_modules="no"
1798 # end --enable-modules
1799 ol_enable_multimaster=${ol_enable_multimaster-no}
1800 # OpenLDAP --enable-rewrite
1801 # Check whether --enable-rewrite or --disable-rewrite was given.
1802 if test "${enable_rewrite+set}" = set; then
1803 enableval="$enable_rewrite"
1806 for ol_val in auto yes no ; do
1807 if test "$enableval" = "$ol_val" ; then
1811 if test "$ol_arg" = "invalid" ; then
1812 { echo "configure: error: bad value $enableval for --enable-rewrite" 1>&2; exit 1; }
1814 ol_enable_rewrite="$ol_arg"
1817 ol_enable_rewrite="no"
1819 # end --enable-rewrite
1820 # OpenLDAP --enable-rlookups
1821 # Check whether --enable-rlookups or --disable-rlookups was given.
1822 if test "${enable_rlookups+set}" = set; then
1823 enableval="$enable_rlookups"
1826 for ol_val in auto yes no ; do
1827 if test "$enableval" = "$ol_val" ; then
1831 if test "$ol_arg" = "invalid" ; then
1832 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1834 ol_enable_rlookups="$ol_arg"
1837 ol_enable_rlookups="no"
1839 # end --enable-rlookups
1840 # OpenLDAP --enable-slapi
1841 # Check whether --enable-slapi or --disable-slapi was given.
1842 if test "${enable_slapi+set}" = set; then
1843 enableval="$enable_slapi"
1846 for ol_val in auto yes no ; do
1847 if test "$enableval" = "$ol_val" ; then
1851 if test "$ol_arg" = "invalid" ; then
1852 { echo "configure: error: bad value $enableval for --enable-slapi" 1>&2; exit 1; }
1854 ol_enable_slapi="$ol_arg"
1857 ol_enable_slapi="no"
1859 # end --enable-slapi
1860 # OpenLDAP --enable-slp
1861 # Check whether --enable-slp or --disable-slp was given.
1862 if test "${enable_slp+set}" = set; then
1863 enableval="$enable_slp"
1866 for ol_val in auto yes no ; do
1867 if test "$enableval" = "$ol_val" ; then
1871 if test "$ol_arg" = "invalid" ; then
1872 { echo "configure: error: bad value $enableval for --enable-slp" 1>&2; exit 1; }
1874 ol_enable_slp="$ol_arg"
1880 # OpenLDAP --enable-wrappers
1881 # Check whether --enable-wrappers or --disable-wrappers was given.
1882 if test "${enable_wrappers+set}" = set; then
1883 enableval="$enable_wrappers"
1886 for ol_val in auto yes no ; do
1887 if test "$enableval" = "$ol_val" ; then
1891 if test "$ol_arg" = "invalid" ; then
1892 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1894 ol_enable_wrappers="$ol_arg"
1897 ol_enable_wrappers="no"
1899 # end --enable-wrappers
1902 # OpenLDAP --enable-bdb
1903 # Check whether --enable-bdb or --disable-bdb was given.
1904 if test "${enable_bdb+set}" = set; then
1905 enableval="$enable_bdb"
1908 for ol_val in auto yes no ; do
1909 if test "$enableval" = "$ol_val" ; then
1913 if test "$ol_arg" = "invalid" ; then
1914 { echo "configure: error: bad value $enableval for --enable-bdb" 1>&2; exit 1; }
1916 ol_enable_bdb="$ol_arg"
1922 # OpenLDAP --with-bdb_module
1923 # Check whether --with-bdb_module or --without-bdb_module was given.
1924 if test "${with_bdb_module+set}" = set; then
1925 withval="$with_bdb_module"
1928 for ol_val in static dynamic ; do
1929 if test "$withval" = "$ol_val" ; then
1933 if test "$ol_arg" = "invalid" ; then
1934 { echo "configure: error: bad value $withval for --with-bdb_module" 1>&2; exit 1; }
1936 ol_with_bdb_module="$ol_arg"
1939 ol_with_bdb_module="static"
1941 # end --with-bdb_module
1943 # OpenLDAP --enable-dnssrv
1944 # Check whether --enable-dnssrv or --disable-dnssrv was given.
1945 if test "${enable_dnssrv+set}" = set; then
1946 enableval="$enable_dnssrv"
1949 for ol_val in auto yes no ; do
1950 if test "$enableval" = "$ol_val" ; then
1954 if test "$ol_arg" = "invalid" ; then
1955 { echo "configure: error: bad value $enableval for --enable-dnssrv" 1>&2; exit 1; }
1957 ol_enable_dnssrv="$ol_arg"
1960 ol_enable_dnssrv="no"
1962 # end --enable-dnssrv
1963 # OpenLDAP --with-dnssrv_module
1964 # Check whether --with-dnssrv_module or --without-dnssrv_module was given.
1965 if test "${with_dnssrv_module+set}" = set; then
1966 withval="$with_dnssrv_module"
1969 for ol_val in static dynamic ; do
1970 if test "$withval" = "$ol_val" ; then
1974 if test "$ol_arg" = "invalid" ; then
1975 { echo "configure: error: bad value $withval for --with-dnssrv_module" 1>&2; exit 1; }
1977 ol_with_dnssrv_module="$ol_arg"
1980 ol_with_dnssrv_module="static"
1982 # end --with-dnssrv_module
1984 # OpenLDAP --enable-hdb
1985 # Check whether --enable-hdb or --disable-hdb was given.
1986 if test "${enable_hdb+set}" = set; then
1987 enableval="$enable_hdb"
1990 for ol_val in auto yes no ; do
1991 if test "$enableval" = "$ol_val" ; then
1995 if test "$ol_arg" = "invalid" ; then
1996 { echo "configure: error: bad value $enableval for --enable-hdb" 1>&2; exit 1; }
1998 ol_enable_hdb="$ol_arg"
2004 # OpenLDAP --with-hdb_module
2005 # Check whether --with-hdb_module or --without-hdb_module was given.
2006 if test "${with_hdb_module+set}" = set; then
2007 withval="$with_hdb_module"
2010 for ol_val in static dynamic ; do
2011 if test "$withval" = "$ol_val" ; then
2015 if test "$ol_arg" = "invalid" ; then
2016 { echo "configure: error: bad value $withval for --with-hdb_module" 1>&2; exit 1; }
2018 ol_with_hdb_module="$ol_arg"
2021 ol_with_hdb_module="static"
2023 # end --with-hdb_module
2025 # OpenLDAP --enable-ldap
2026 # Check whether --enable-ldap or --disable-ldap was given.
2027 if test "${enable_ldap+set}" = set; then
2028 enableval="$enable_ldap"
2031 for ol_val in auto yes no ; do
2032 if test "$enableval" = "$ol_val" ; then
2036 if test "$ol_arg" = "invalid" ; then
2037 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
2039 ol_enable_ldap="$ol_arg"
2045 # OpenLDAP --with-ldap_module
2046 # Check whether --with-ldap_module or --without-ldap_module was given.
2047 if test "${with_ldap_module+set}" = set; then
2048 withval="$with_ldap_module"
2051 for ol_val in static dynamic ; do
2052 if test "$withval" = "$ol_val" ; then
2056 if test "$ol_arg" = "invalid" ; then
2057 { echo "configure: error: bad value $withval for --with-ldap_module" 1>&2; exit 1; }
2059 ol_with_ldap_module="$ol_arg"
2062 ol_with_ldap_module="static"
2064 # end --with-ldap_module
2066 # OpenLDAP --enable-ldbm
2067 # Check whether --enable-ldbm or --disable-ldbm was given.
2068 if test "${enable_ldbm+set}" = set; then
2069 enableval="$enable_ldbm"
2072 for ol_val in auto yes no ; do
2073 if test "$enableval" = "$ol_val" ; then
2077 if test "$ol_arg" = "invalid" ; then
2078 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
2080 ol_enable_ldbm="$ol_arg"
2086 # OpenLDAP --with-ldbm_api
2087 # Check whether --with-ldbm_api or --without-ldbm_api was given.
2088 if test "${with_ldbm_api+set}" = set; then
2089 withval="$with_ldbm_api"
2092 for ol_val in auto berkeley bcompat mdbm gdbm ; do
2093 if test "$withval" = "$ol_val" ; then
2097 if test "$ol_arg" = "invalid" ; then
2098 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
2100 ol_with_ldbm_api="$ol_arg"
2103 ol_with_ldbm_api="auto"
2105 # end --with-ldbm_api
2107 # OpenLDAP --with-ldbm_module
2108 # Check whether --with-ldbm_module or --without-ldbm_module was given.
2109 if test "${with_ldbm_module+set}" = set; then
2110 withval="$with_ldbm_module"
2113 for ol_val in static dynamic ; do
2114 if test "$withval" = "$ol_val" ; then
2118 if test "$ol_arg" = "invalid" ; then
2119 { echo "configure: error: bad value $withval for --with-ldbm_module" 1>&2; exit 1; }
2121 ol_with_ldbm_module="$ol_arg"
2124 ol_with_ldbm_module="static"
2126 # end --with-ldbm_module
2128 # OpenLDAP --with-ldbm_type
2129 # Check whether --with-ldbm_type or --without-ldbm_type was given.
2130 if test "${with_ldbm_type+set}" = set; then
2131 withval="$with_ldbm_type"
2134 for ol_val in auto btree hash ; do
2135 if test "$withval" = "$ol_val" ; then
2139 if test "$ol_arg" = "invalid" ; then
2140 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
2142 ol_with_ldbm_type="$ol_arg"
2145 ol_with_ldbm_type="auto"
2147 # end --with-ldbm_type
2149 # OpenLDAP --enable-meta
2150 # Check whether --enable-meta or --disable-meta was given.
2151 if test "${enable_meta+set}" = set; then
2152 enableval="$enable_meta"
2155 for ol_val in auto yes no ; do
2156 if test "$enableval" = "$ol_val" ; then
2160 if test "$ol_arg" = "invalid" ; then
2161 { echo "configure: error: bad value $enableval for --enable-meta" 1>&2; exit 1; }
2163 ol_enable_meta="$ol_arg"
2169 # OpenLDAP --with-meta_module
2170 # Check whether --with-meta_module or --without-meta_module was given.
2171 if test "${with_meta_module+set}" = set; then
2172 withval="$with_meta_module"
2175 for ol_val in static dynamic ; do
2176 if test "$withval" = "$ol_val" ; then
2180 if test "$ol_arg" = "invalid" ; then
2181 { echo "configure: error: bad value $withval for --with-meta_module" 1>&2; exit 1; }
2183 ol_with_meta_module="$ol_arg"
2186 ol_with_meta_module="static"
2188 # end --with-meta_module
2190 # OpenLDAP --enable-monitor
2191 # Check whether --enable-monitor or --disable-monitor was given.
2192 if test "${enable_monitor+set}" = set; then
2193 enableval="$enable_monitor"
2196 for ol_val in auto yes no ; do
2197 if test "$enableval" = "$ol_val" ; then
2201 if test "$ol_arg" = "invalid" ; then
2202 { echo "configure: error: bad value $enableval for --enable-monitor" 1>&2; exit 1; }
2204 ol_enable_monitor="$ol_arg"
2207 ol_enable_monitor="yes"
2209 # end --enable-monitor
2210 # OpenLDAP --with-monitor_module
2211 # Check whether --with-monitor_module or --without-monitor_module was given.
2212 if test "${with_monitor_module+set}" = set; then
2213 withval="$with_monitor_module"
2216 for ol_val in static dynamic ; do
2217 if test "$withval" = "$ol_val" ; then
2221 if test "$ol_arg" = "invalid" ; then
2222 { echo "configure: error: bad value $withval for --with-monitor_module" 1>&2; exit 1; }
2224 ol_with_monitor_module="$ol_arg"
2227 ol_with_monitor_module="static"
2229 # end --with-monitor_module
2231 # OpenLDAP --enable-null
2232 # Check whether --enable-null or --disable-null was given.
2233 if test "${enable_null+set}" = set; then
2234 enableval="$enable_null"
2237 for ol_val in auto yes no ; do
2238 if test "$enableval" = "$ol_val" ; then
2242 if test "$ol_arg" = "invalid" ; then
2243 { echo "configure: error: bad value $enableval for --enable-null" 1>&2; exit 1; }
2245 ol_enable_null="$ol_arg"
2251 # OpenLDAP --with-null_module
2252 # Check whether --with-null_module or --without-null_module was given.
2253 if test "${with_null_module+set}" = set; then
2254 withval="$with_null_module"
2257 for ol_val in static dynamic ; do
2258 if test "$withval" = "$ol_val" ; then
2262 if test "$ol_arg" = "invalid" ; then
2263 { echo "configure: error: bad value $withval for --with-null_module" 1>&2; exit 1; }
2265 ol_with_null_module="$ol_arg"
2268 ol_with_null_module="static"
2270 # end --with-null_module
2272 # OpenLDAP --enable-passwd
2273 # Check whether --enable-passwd or --disable-passwd was given.
2274 if test "${enable_passwd+set}" = set; then
2275 enableval="$enable_passwd"
2278 for ol_val in auto yes no ; do
2279 if test "$enableval" = "$ol_val" ; then
2283 if test "$ol_arg" = "invalid" ; then
2284 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
2286 ol_enable_passwd="$ol_arg"
2289 ol_enable_passwd="no"
2291 # end --enable-passwd
2292 # OpenLDAP --with-passwd_module
2293 # Check whether --with-passwd_module or --without-passwd_module was given.
2294 if test "${with_passwd_module+set}" = set; then
2295 withval="$with_passwd_module"
2298 for ol_val in static dynamic ; do
2299 if test "$withval" = "$ol_val" ; then
2303 if test "$ol_arg" = "invalid" ; then
2304 { echo "configure: error: bad value $withval for --with-passwd_module" 1>&2; exit 1; }
2306 ol_with_passwd_module="$ol_arg"
2309 ol_with_passwd_module="static"
2311 # end --with-passwd_module
2313 # OpenLDAP --enable-perl
2314 # Check whether --enable-perl or --disable-perl was given.
2315 if test "${enable_perl+set}" = set; then
2316 enableval="$enable_perl"
2319 for ol_val in auto yes no ; do
2320 if test "$enableval" = "$ol_val" ; then
2324 if test "$ol_arg" = "invalid" ; then
2325 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
2327 ol_enable_perl="$ol_arg"
2333 # OpenLDAP --with-perl_module
2334 # Check whether --with-perl_module or --without-perl_module was given.
2335 if test "${with_perl_module+set}" = set; then
2336 withval="$with_perl_module"
2339 for ol_val in static dynamic ; do
2340 if test "$withval" = "$ol_val" ; then
2344 if test "$ol_arg" = "invalid" ; then
2345 { echo "configure: error: bad value $withval for --with-perl_module" 1>&2; exit 1; }
2347 ol_with_perl_module="$ol_arg"
2350 ol_with_perl_module="static"
2352 # end --with-perl_module
2354 # OpenLDAP --enable-shell
2355 # Check whether --enable-shell or --disable-shell was given.
2356 if test "${enable_shell+set}" = set; then
2357 enableval="$enable_shell"
2360 for ol_val in auto yes no ; do
2361 if test "$enableval" = "$ol_val" ; then
2365 if test "$ol_arg" = "invalid" ; then
2366 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
2368 ol_enable_shell="$ol_arg"
2371 ol_enable_shell="no"
2373 # end --enable-shell
2374 # OpenLDAP --with-shell_module
2375 # Check whether --with-shell_module or --without-shell_module was given.
2376 if test "${with_shell_module+set}" = set; then
2377 withval="$with_shell_module"
2380 for ol_val in static dynamic ; do
2381 if test "$withval" = "$ol_val" ; then
2385 if test "$ol_arg" = "invalid" ; then
2386 { echo "configure: error: bad value $withval for --with-shell_module" 1>&2; exit 1; }
2388 ol_with_shell_module="$ol_arg"
2391 ol_with_shell_module="static"
2393 # end --with-shell_module
2395 # OpenLDAP --enable-sql
2396 # Check whether --enable-sql or --disable-sql was given.
2397 if test "${enable_sql+set}" = set; then
2398 enableval="$enable_sql"
2401 for ol_val in auto yes no ; do
2402 if test "$enableval" = "$ol_val" ; then
2406 if test "$ol_arg" = "invalid" ; then
2407 { echo "configure: error: bad value $enableval for --enable-sql" 1>&2; exit 1; }
2409 ol_enable_sql="$ol_arg"
2415 # OpenLDAP --with-sql_module
2416 # Check whether --with-sql_module or --without-sql_module was given.
2417 if test "${with_sql_module+set}" = set; then
2418 withval="$with_sql_module"
2421 for ol_val in static dynamic ; do
2422 if test "$withval" = "$ol_val" ; then
2426 if test "$ol_arg" = "invalid" ; then
2427 { echo "configure: error: bad value $withval for --with-sql_module" 1>&2; exit 1; }
2429 ol_with_sql_module="$ol_arg"
2432 ol_with_sql_module="static"
2434 # end --with-sql_module
2437 # Check whether --with-xxslapoverlays or --without-xxslapoverlays was given.
2438 if test "${with_xxslapoverlays+set}" = set; then
2439 withval="$with_xxslapoverlays"
2443 # OpenLDAP --with-dyngroup
2444 # Check whether --with-dyngroup or --without-dyngroup was given.
2445 if test "${with_dyngroup+set}" = set; then
2446 withval="$with_dyngroup"
2449 for ol_val in no yes mod ; do
2450 if test "$withval" = "$ol_val" ; then
2454 if test "$ol_arg" = "invalid" ; then
2455 { echo "configure: error: bad value $withval for --with-dyngroup" 1>&2; exit 1; }
2457 ol_with_dyngroup="$ol_arg"
2460 ol_with_dyngroup="no"
2462 # end --with-dyngroup
2464 # OpenLDAP --with-proxycache
2465 # Check whether --with-proxycache or --without-proxycache was given.
2466 if test "${with_proxycache+set}" = set; then
2467 withval="$with_proxycache"
2470 for ol_val in no yes mod ; do
2471 if test "$withval" = "$ol_val" ; then
2475 if test "$ol_arg" = "invalid" ; then
2476 { echo "configure: error: bad value $withval for --with-proxycache" 1>&2; exit 1; }
2478 ol_with_proxycache="$ol_arg"
2481 ol_with_proxycache="no"
2483 # end --with-proxycache
2486 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
2487 if test "${with_xxslurpdoptions+set}" = set; then
2488 withval="$with_xxslurpdoptions"
2492 # OpenLDAP --enable-slurpd
2493 # Check whether --enable-slurpd or --disable-slurpd was given.
2494 if test "${enable_slurpd+set}" = set; then
2495 enableval="$enable_slurpd"
2498 for ol_val in auto yes no ; do
2499 if test "$enableval" = "$ol_val" ; then
2503 if test "$ol_arg" = "invalid" ; then
2504 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
2506 ol_enable_slurpd="$ol_arg"
2509 ol_enable_slurpd="auto"
2511 # end --enable-slurpd
2513 # Check whether --with-xxliboptions or --without-xxliboptions was given.
2514 if test "${with_xxliboptions+set}" = set; then
2515 withval="$with_xxliboptions"
2519 # Check whether --enable-static or --disable-static was given.
2520 if test "${enable_static+set}" = set; then
2521 enableval="$enable_static"
2522 p=${PACKAGE-default}
2524 yes) enable_static=yes ;;
2525 no) enable_static=no ;;
2528 # Look at the argument we got. We use all the common list separators.
2529 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2530 for pkg in $enableval; do
2531 if test "X$pkg" = "X$p"; then
2542 # Check whether --enable-shared or --disable-shared was given.
2543 if test "${enable_shared+set}" = set; then
2544 enableval="$enable_shared"
2545 p=${PACKAGE-default}
2547 yes) enable_shared=yes ;;
2548 no) enable_shared=no ;;
2551 # Look at the argument we got. We use all the common list separators.
2552 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2553 for pkg in $enableval; do
2554 if test "X$pkg" = "X$p"; then
2568 if test $ol_enable_slapd = no ; then
2569 if test $ol_enable_slapi = yes ; then
2570 echo "configure: warning: slapd disabled, ignoring --enable-slapi argument" 1>&2
2572 if test $ol_enable_bdb = yes ; then
2573 echo "configure: warning: slapd disabled, ignoring --enable-bdb argument" 1>&2
2575 if test $ol_enable_dnssrv = yes ; then
2576 echo "configure: warning: slapd disabled, ignoring --enable-dnssrv argument" 1>&2
2578 if test $ol_enable_hdb = yes ; then
2579 echo "configure: warning: slapd disabled, ignoring --enable-hdb argument" 1>&2
2581 if test $ol_enable_ldap = yes ; then
2582 echo "configure: warning: slapd disabled, ignoring --enable-ldap argument" 1>&2
2584 if test $ol_enable_ldbm = yes ; then
2585 echo "configure: warning: slapd disabled, ignoring --enable-ldbm argument" 1>&2
2587 if test $ol_enable_meta = yes ; then
2588 echo "configure: warning: slapd disabled, ignoring --enable-meta argument" 1>&2
2590 if test $ol_enable_monitor = yes ; then
2591 echo "configure: warning: slapd disabled, ignoring --enable-monitor argument" 1>&2
2593 if test $ol_enable_null = yes ; then
2594 echo "configure: warning: slapd disabled, ignoring --enable-null argument" 1>&2
2596 if test $ol_enable_passwd = yes ; then
2597 echo "configure: warning: slapd disabled, ignoring --enable-passwd argument" 1>&2
2599 if test $ol_enable_perl = yes ; then
2600 echo "configure: warning: slapd disabled, ignoring --enable-perl argument" 1>&2
2602 if test $ol_enable_shell = yes ; then
2603 echo "configure: warning: slapd disabled, ignoring --enable-shell argument" 1>&2
2605 if test $ol_enable_sql = yes ; then
2606 echo "configure: warning: slapd disabled, ignoring --enable-sql argument" 1>&2
2608 if test $ol_enable_modules = yes ; then
2609 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2611 if test $ol_enable_multimaster = yes ; then
2612 echo "configure: warning: slapd disabled, ignoring --enable-multimaster argument" 1>&2
2614 if test $ol_enable_wrappers = yes ; then
2615 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2617 if test $ol_enable_rlookups = yes ; then
2618 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2620 if test $ol_enable_aci = yes ; then
2621 echo "configure: warning: slapd disabled, ignoring --enable-aci argument" 1>&2
2623 if test $ol_with_ldbm_api != auto ; then
2624 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2626 if test $ol_with_ldbm_type != auto ; then
2627 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2629 if test $ol_with_bdb_module != static ; then
2630 echo "configure: warning: slapd disabled, ignoring --with-bdb-module argument" 1>&2
2632 if test $ol_with_dnssrv_module != static ; then
2633 echo "configure: warning: slapd disabled, ignoring --with-dnssrv-module argument" 1>&2
2635 if test $ol_with_hdb_module != static ; then
2636 echo "configure: warning: slapd disabled, ignoring --with-hdb-module argument" 1>&2
2638 if test $ol_with_ldap_module != static ; then
2639 echo "configure: warning: slapd disabled, ignoring --with-ldap-module argument" 1>&2
2641 if test $ol_with_ldbm_module != static ; then
2642 echo "configure: warning: slapd disabled, ignoring --with-ldbm-module argument" 1>&2
2644 if test $ol_with_meta_module != static ; then
2645 echo "configure: warning: slapd disabled, ignoring --with-meta-module argument" 1>&2
2647 if test $ol_with_monitor_module != static ; then
2648 echo "configure: warning: slapd disabled, ignoring --with-monitor-module argument" 1>&2
2650 if test $ol_with_null_module != static ; then
2651 echo "configure: warning: slapd disabled, ignoring --with-null-module argument" 1>&2
2653 if test $ol_with_passwd_module != static ; then
2654 echo "configure: warning: slapd disabled, ignoring --with-passwd-module argument" 1>&2
2656 if test $ol_with_perl_module != static ; then
2657 echo "configure: warning: slapd disabled, ignoring --with-perl-module argument" 1>&2
2659 if test $ol_with_shell_module != static ; then
2660 echo "configure: warning: slapd disabled, ignoring --with-shell-module argument" 1>&2
2662 if test $ol_with_sql_module != static ; then
2663 echo "configure: warning: slapd disabled, ignoring --with-sql-module argument" 1>&2
2665 if test $ol_enable_slurpd = yes ; then
2666 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2668 if test $ol_enable_rewrite = yes ; then
2669 echo "configure: warning: slapd disabled, ignoring --enable-rewrite argument" 1>&2
2671 if test $ol_with_dyngroup != no ; then
2672 echo "configure: warning: slapd disabled, ignoring --with-dyngroup argument" 1>&2
2674 if test $ol_with_proxycache != no ; then
2675 echo "configure: warning: slapd disabled, ignoring --with-proxycache argument" 1>&2
2678 # force settings to no
2686 ol_enable_monitor=no
2693 ol_enable_modules=no
2694 ol_enable_multimaster=no
2695 ol_enable_rlookups=no
2697 ol_enable_wrappers=no
2700 ol_with_ldbm_type=no
2702 ol_with_bdb_module=static
2703 ol_with_dnssrv_module=static
2704 ol_with_hdb_module=static
2705 ol_with_ldap_module=static
2706 ol_with_ldbm_module=static
2707 ol_with_meta_module=static
2708 ol_with_monitor_module=static
2709 ol_with_null_module=static
2710 ol_with_passwd_module=static
2711 ol_with_perl_module=static
2712 ol_with_shell_module=static
2713 ol_with_sql_module=static
2717 ol_enable_rewrite=no
2720 ol_with_proxycache=no
2722 elif test $ol_enable_ldbm = no ; then
2724 if test $ol_with_ldbm_api != auto ; then
2725 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2728 if test $ol_with_ldbm_type != auto ; then
2729 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2732 if test $ol_with_ldbm_module != static ; then
2733 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-module argument" 1>&2
2736 if test $ol_enable_modules != yes -a \
2737 $ol_enable_bdb = no -a \
2738 $ol_enable_dnssrv = no -a \
2739 $ol_enable_hdb = no -a \
2740 $ol_enable_ldap = no -a \
2741 $ol_enable_meta = no -a \
2742 $ol_enable_monitor = no -a \
2743 $ol_enable_null = no -a \
2744 $ol_enable_passwd = no -a \
2745 $ol_enable_perl = no -a \
2746 $ol_enable_shell = no -a \
2747 $ol_enable_sql = no ; then
2749 if test $ol_enable_slapd = yes ; then
2750 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2752 echo "configure: warning: skipping slapd, no backend specified" 1>&2
2758 ol_with_ldbm_type=no
2759 ol_with_ldbm_module=static
2761 if test $ol_enable_bdb != no -o $ol_enable_hdb != no; then
2762 ol_with_ldbm_api=berkeley
2766 if test $ol_with_ldbm_api = gdbm -a \
2767 $ol_with_ldbm_type = btree ; then
2768 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2770 if test $ol_with_ldbm_api = mdbm -a \
2771 $ol_with_ldbm_type = btree ; then
2772 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2774 if test $ol_with_ldbm_api = ndbm -a \
2775 $ol_with_ldbm_type = btree ; then
2776 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2779 if test $ol_enable_bdb = yes -o $ol_enable_hdb = yes ; then
2780 if test $ol_with_ldbm_api = auto ; then
2781 ol_with_ldbm_api=berkeley
2782 elif test $ol_with_ldbm_api != berkeley ; then
2783 { echo "configure: error: LDBM API not compatible with BDB/HDB" 1>&2; exit 1; }
2786 elif test $ol_enable_bdb = auto ; then
2787 if test $ol_with_ldbm_api != berkeley \
2788 -o $ol_with_ldbm_api != auto ; then
2789 echo "configure: warning: LDBM API not compatible with BDB, disabling BDB" 1>&2
2795 if test $ol_enable_slurpd = yes ; then
2796 if test $ol_with_threads = no ; then
2797 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2801 if test $ol_enable_lmpasswd = yes ; then
2802 if test $ol_with_tls = no ; then
2803 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
2807 if test $ol_enable_kbind = yes ; then
2808 if test $ol_with_kerberos = no ; then
2809 { echo "configure: error: options require --with-kerberos" 1>&2; exit 1; }
2810 elif test $ol_with_kerberos = auto ; then
2811 ol_with_kerberos=yes
2814 elif test $ol_enable_kbind = no ; then
2815 if test $ol_with_kerberos = auto ; then
2817 elif test $ol_with_kerberos != no ; then
2818 echo "configure: warning: Kerberos detection enabled unnecessarily" 1>&2;
2823 if test $ol_enable_spasswd = yes ; then
2824 if test $ol_with_cyrus_sasl = no ; then
2825 { echo "configure: error: options require --with-cyrus-sasl" 1>&2; exit 1; }
2827 ol_with_cyrus_sasl=yes
2830 echo "$ac_t""done" 1>&6
2861 BUILD_BDB_DYNAMIC=static
2862 BUILD_DNSSRV_DYNAMIC=static
2863 BUILD_HDB_DYNAMIC=static
2864 BUILD_LDAP_DYNAMIC=static
2865 BUILD_LDBM_DYNAMIC=static
2866 BUILD_META_DYNAMIC=static
2867 BUILD_MONITOR_DYNAMIC=static
2868 BUILD_NULL_DYNAMIC=static
2869 BUILD_PASSWD_DYNAMIC=static
2870 BUILD_PERL_DYNAMIC=static
2871 BUILD_SHELL_DYNAMIC=static
2872 BUILD_SQL_DYNAMIC=static
2877 SLAPD_DYNAMIC_OVERLAYS=
2879 SLAPD_MODULES_LDFLAGS=
2880 SLAPD_MODULES_CPPFLAGS=
2882 SLAPD_STATIC_BACKENDS=
2883 SLAPD_DYNAMIC_BACKENDS=
2906 # Find a good install program. We prefer a C program (faster),
2907 # so one script is as good as another. But avoid the broken or
2908 # incompatible versions:
2909 # SysV /etc/install, /usr/sbin/install
2910 # SunOS /usr/etc/install
2911 # IRIX /sbin/install
2913 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2914 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2915 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2916 # ./install, which can be erroneously created by make from ./install.sh.
2917 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2918 echo "configure:2919: checking for a BSD compatible install" >&5
2919 if test -z "$INSTALL"; then
2920 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
2921 echo $ac_n "(cached) $ac_c" 1>&6
2923 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2924 for ac_dir in $PATH; do
2925 # Account for people who put trailing slashes in PATH elements.
2927 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2929 # OSF1 and SCO ODT 3.0 have their own names for install.
2930 # Don't use installbsd from OSF since it installs stuff as root
2932 for ac_prog in ginstall scoinst install; do
2933 if test -f $ac_dir/$ac_prog; then
2934 if test $ac_prog = install &&
2935 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2936 # AIX install. It has an incompatible calling convention.
2938 elif test $ac_prog = install &&
2939 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
2940 # program-specific install script used by HP pwplus--don't use.
2943 ac_cv_path_install="$ac_dir/$ac_prog -c"
2954 if test "${ac_cv_path_install+set}" = set; then
2955 INSTALL="$ac_cv_path_install"
2957 # As a last resort, use the slow shell script. We don't cache a
2958 # path for INSTALL within a source directory, because that will
2959 # break other packages using the cache if that directory is
2960 # removed, or if the path is relative.
2961 INSTALL="$ac_install_sh"
2964 echo "$ac_t""$INSTALL" 1>&6
2966 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2967 # It thinks the first close brace ends the variable substitution.
2968 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2970 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2972 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2975 cat >> confdefs.h <<\EOF
2976 #define HAVE_MKVERSION 1
2984 *-*-aix*) if test -z "$CC" ; then
2985 case "$ol_with_threads" in
2986 auto | yes | posix) ol_aix_threads=yes ;;
2992 if test $ol_aix_threads = yes ; then
2993 if test -z "${CC}" ; then
2994 for ac_prog in cc_r xlc_r cc
2996 # Extract the first word of "$ac_prog", so it can be a program name with args.
2997 set dummy $ac_prog; ac_word=$2
2998 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2999 echo "configure:3000: checking for $ac_word" >&5
3000 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3001 echo $ac_n "(cached) $ac_c" 1>&6
3003 if test -n "$CC"; then
3004 ac_cv_prog_CC="$CC" # Let the user override the test.
3006 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3008 for ac_dir in $ac_dummy; do
3009 test -z "$ac_dir" && ac_dir=.
3010 if test -f $ac_dir/$ac_word; then
3011 ac_cv_prog_CC="$ac_prog"
3019 if test -n "$CC"; then
3020 echo "$ac_t""$CC" 1>&6
3022 echo "$ac_t""no" 1>&6
3025 test -n "$CC" && break
3029 if test "$CC" = cc ; then
3030 if test $ol_with_threads != auto ; then
3031 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
3033 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
3039 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
3040 ol_with_threads=posix
3041 ol_cv_pthread_create=yes
3045 if test -z "${CC}"; then
3046 for ac_prog in cc gcc
3048 # Extract the first word of "$ac_prog", so it can be a program name with args.
3049 set dummy $ac_prog; ac_word=$2
3050 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3051 echo "configure:3052: checking for $ac_word" >&5
3052 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3053 echo $ac_n "(cached) $ac_c" 1>&6
3055 if test -n "$CC"; then
3056 ac_cv_prog_CC="$CC" # Let the user override the test.
3058 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3060 for ac_dir in $ac_dummy; do
3061 test -z "$ac_dir" && ac_dir=.
3062 if test -f $ac_dir/$ac_word; then
3063 ac_cv_prog_CC="$ac_prog"
3071 if test -n "$CC"; then
3072 echo "$ac_t""$CC" 1>&6
3074 echo "$ac_t""no" 1>&6
3077 test -n "$CC" && break
3079 test -n "$CC" || CC="missing"
3082 if test "${CC}" = "missing" ; then
3083 { echo "configure: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." 1>&2; exit 1; }
3087 if test -z "${AR}"; then
3088 for ac_prog in ar gar
3090 # Extract the first word of "$ac_prog", so it can be a program name with args.
3091 set dummy $ac_prog; ac_word=$2
3092 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3093 echo "configure:3094: checking for $ac_word" >&5
3094 if eval "test \"\${ac_cv_prog_AR+set}\" = set"; then
3095 echo $ac_n "(cached) $ac_c" 1>&6
3097 if test -n "$AR"; then
3098 ac_cv_prog_AR="$AR" # Let the user override the test.
3100 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3102 for ac_dir in $ac_dummy; do
3103 test -z "$ac_dir" && ac_dir=.
3104 if test -f $ac_dir/$ac_word; then
3105 ac_cv_prog_AR="$ac_prog"
3113 if test -n "$AR"; then
3114 echo "$ac_t""$AR" 1>&6
3116 echo "$ac_t""no" 1>&6
3119 test -n "$AR" && break
3121 test -n "$AR" || AR="missing"
3124 if test "${AR}" = "missing" ; then
3125 { echo "configure: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." 1>&2; exit 1; }
3131 # Find the correct PATH separator. Usually this is `:', but
3132 # DJGPP uses `;' like DOS.
3133 if test "X${PATH_SEPARATOR+set}" != Xset; then
3134 UNAME=${UNAME-`uname 2>/dev/null`}
3136 *-DOS) lt_cv_sys_path_separator=';' ;;
3137 *) lt_cv_sys_path_separator=':' ;;
3139 PATH_SEPARATOR=$lt_cv_sys_path_separator
3142 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3143 echo "configure:3144: checking for Cygwin environment" >&5
3144 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
3145 echo $ac_n "(cached) $ac_c" 1>&6
3147 cat > conftest.$ac_ext <<EOF
3148 #line 3149 "configure"
3149 #include "confdefs.h"
3154 #define __CYGWIN__ __CYGWIN32__
3159 if { (eval echo configure:3160: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3163 echo "configure: failed program was:" >&5
3164 cat conftest.$ac_ext >&5
3171 echo "$ac_t""$ac_cv_cygwin" 1>&6
3173 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3174 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3175 echo "configure:3176: checking for mingw32 environment" >&5
3176 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
3177 echo $ac_n "(cached) $ac_c" 1>&6
3179 cat > conftest.$ac_ext <<EOF
3180 #line 3181 "configure"
3181 #include "confdefs.h"
3187 if { (eval echo configure:3188: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3191 echo "configure: failed program was:" >&5
3192 cat conftest.$ac_ext >&5
3199 echo "$ac_t""$ac_cv_mingw32" 1>&6
3201 test "$ac_cv_mingw32" = yes && MINGW32=yes
3202 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
3203 echo "configure:3204: checking for EMX OS/2 environment" >&5
3204 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
3205 echo $ac_n "(cached) $ac_c" 1>&6
3207 cat > conftest.$ac_ext <<EOF
3208 #line 3209 "configure"
3209 #include "confdefs.h"
3215 if { (eval echo configure:3216: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3219 echo "configure: failed program was:" >&5
3220 cat conftest.$ac_ext >&5
3227 echo "$ac_t""$ac_cv_emxos2" 1>&6
3229 test "$ac_cv_emxos2" = yes && EMXOS2=yes
3230 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3231 echo "configure:3232: checking how to run the C preprocessor" >&5
3232 # On Suns, sometimes $CPP names a directory.
3233 if test -n "$CPP" && test -d "$CPP"; then
3236 if test -z "$CPP"; then
3237 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
3238 echo $ac_n "(cached) $ac_c" 1>&6
3240 # This must be in double quotes, not single quotes, because CPP may get
3241 # substituted into the Makefile and "${CC-cc}" will confuse make.
3243 # On the NeXT, cc -E runs the code through the compiler's parser,
3244 # not just through cpp.
3245 cat > conftest.$ac_ext <<EOF
3246 #line 3247 "configure"
3247 #include "confdefs.h"
3251 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3252 { (eval echo configure:3253: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3253 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3254 if test -z "$ac_err"; then
3258 echo "configure: failed program was:" >&5
3259 cat conftest.$ac_ext >&5
3261 CPP="${CC-cc} -E -traditional-cpp"
3262 cat > conftest.$ac_ext <<EOF
3263 #line 3264 "configure"
3264 #include "confdefs.h"
3268 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3269 { (eval echo configure:3270: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3270 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3271 if test -z "$ac_err"; then
3275 echo "configure: failed program was:" >&5
3276 cat conftest.$ac_ext >&5
3278 CPP="${CC-cc} -nologo -E"
3279 cat > conftest.$ac_ext <<EOF
3280 #line 3281 "configure"
3281 #include "confdefs.h"
3285 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3286 { (eval echo configure:3287: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3287 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3288 if test -z "$ac_err"; then
3292 echo "configure: failed program was:" >&5
3293 cat conftest.$ac_ext >&5
3302 ac_cv_prog_CPP="$CPP"
3304 CPP="$ac_cv_prog_CPP"
3306 ac_cv_prog_CPP="$CPP"
3308 echo "$ac_t""$CPP" 1>&6
3310 # Check whether --enable-fast-install or --disable-fast-install was given.
3311 if test "${enable_fast_install+set}" = set; then
3312 enableval="$enable_fast_install"
3313 p=${PACKAGE-default}
3315 yes) enable_fast_install=yes ;;
3316 no) enable_fast_install=no ;;
3318 enable_fast_install=no
3319 # Look at the argument we got. We use all the common list separators.
3320 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3321 for pkg in $enableval; do
3322 if test "X$pkg" = "X$p"; then
3323 enable_fast_install=yes
3330 enable_fast_install=yes
3333 # Extract the first word of "gcc", so it can be a program name with args.
3334 set dummy gcc; ac_word=$2
3335 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3336 echo "configure:3337: checking for $ac_word" >&5
3337 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3338 echo $ac_n "(cached) $ac_c" 1>&6
3340 if test -n "$CC"; then
3341 ac_cv_prog_CC="$CC" # Let the user override the test.
3343 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3345 for ac_dir in $ac_dummy; do
3346 test -z "$ac_dir" && ac_dir=.
3347 if test -f $ac_dir/$ac_word; then
3356 if test -n "$CC"; then
3357 echo "$ac_t""$CC" 1>&6
3359 echo "$ac_t""no" 1>&6
3362 if test -z "$CC"; then
3363 # Extract the first word of "cc", so it can be a program name with args.
3364 set dummy cc; ac_word=$2
3365 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3366 echo "configure:3367: checking for $ac_word" >&5
3367 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3368 echo $ac_n "(cached) $ac_c" 1>&6
3370 if test -n "$CC"; then
3371 ac_cv_prog_CC="$CC" # Let the user override the test.
3373 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3376 for ac_dir in $ac_dummy; do
3377 test -z "$ac_dir" && ac_dir=.
3378 if test -f $ac_dir/$ac_word; then
3379 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
3380 ac_prog_rejected=yes
3388 if test $ac_prog_rejected = yes; then
3389 # We found a bogon in the path, so make sure we never use it.
3390 set dummy $ac_cv_prog_CC
3392 if test $# -gt 0; then
3393 # We chose a different compiler from the bogus one.
3394 # However, it has the same basename, so the bogon will be chosen
3395 # first if we set CC to just the basename; use the full file name.
3397 set dummy "$ac_dir/$ac_word" "$@"
3405 if test -n "$CC"; then
3406 echo "$ac_t""$CC" 1>&6
3408 echo "$ac_t""no" 1>&6
3411 if test -z "$CC"; then
3412 case "`uname -s`" in
3413 *win32* | *WIN32* | *CYGWIN*)
3414 # Extract the first word of "cl", so it can be a program name with args.
3415 set dummy cl; ac_word=$2
3416 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3417 echo "configure:3418: checking for $ac_word" >&5
3418 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3419 echo $ac_n "(cached) $ac_c" 1>&6
3421 if test -n "$CC"; then
3422 ac_cv_prog_CC="$CC" # Let the user override the test.
3424 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3426 for ac_dir in $ac_dummy; do
3427 test -z "$ac_dir" && ac_dir=.
3428 if test -f $ac_dir/$ac_word; then
3437 if test -n "$CC"; then
3438 echo "$ac_t""$CC" 1>&6
3440 echo "$ac_t""no" 1>&6
3445 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
3448 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
3449 echo "configure:3450: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
3452 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3453 ac_cpp='$CPP $CPPFLAGS'
3454 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3455 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3456 cross_compiling=$ac_cv_prog_cc_cross
3458 cat > conftest.$ac_ext << EOF
3460 #line 3461 "configure"
3461 #include "confdefs.h"
3465 if { (eval echo configure:3466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3466 ac_cv_prog_cc_works=yes
3467 # If we can't run a trivial program, we are probably using a cross compiler.
3468 if (./conftest; exit) 2>/dev/null; then
3469 ac_cv_prog_cc_cross=no
3471 ac_cv_prog_cc_cross=yes
3474 echo "configure: failed program was:" >&5
3475 cat conftest.$ac_ext >&5
3476 ac_cv_prog_cc_works=no
3480 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3481 ac_cpp='$CPP $CPPFLAGS'
3482 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3483 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3484 cross_compiling=$ac_cv_prog_cc_cross
3486 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
3487 if test $ac_cv_prog_cc_works = no; then
3488 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
3490 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
3491 echo "configure:3492: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
3492 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
3493 cross_compiling=$ac_cv_prog_cc_cross
3495 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
3496 echo "configure:3497: checking whether we are using GNU C" >&5
3497 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
3498 echo $ac_n "(cached) $ac_c" 1>&6
3500 cat > conftest.c <<EOF
3505 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:3506: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
3512 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
3514 if test $ac_cv_prog_gcc = yes; then
3520 ac_test_CFLAGS="${CFLAGS+set}"
3521 ac_save_CFLAGS="$CFLAGS"
3523 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
3524 echo "configure:3525: checking whether ${CC-cc} accepts -g" >&5
3525 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
3526 echo $ac_n "(cached) $ac_c" 1>&6
3528 echo 'void f(){}' > conftest.c
3529 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
3538 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
3539 if test "$ac_test_CFLAGS" = set; then
3540 CFLAGS="$ac_save_CFLAGS"
3541 elif test $ac_cv_prog_cc_g = yes; then
3542 if test "$GCC" = yes; then
3548 if test "$GCC" = yes; then
3555 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3556 if test "${with_gnu_ld+set}" = set; then
3557 withval="$with_gnu_ld"
3558 test "$withval" = no || with_gnu_ld=yes
3564 if test "$GCC" = yes; then
3565 # Check if gcc -print-prog-name=ld gives a path.
3566 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
3567 echo "configure:3568: checking for ld used by GCC" >&5
3570 # gcc leaves a trailing carriage return which upsets mingw
3571 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3573 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3576 # Accept absolute paths.
3577 [\\/]* | [A-Za-z]:[\\/]*)
3578 re_direlt='/[^/][^/]*/\.\./'
3579 # Canonicalize the path of ld
3580 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3581 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3582 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3584 test -z "$LD" && LD="$ac_prog"
3587 # If it fails, then pretend we aren't using GCC.
3591 # If it is relative, then search for the first ld in PATH.
3595 elif test "$with_gnu_ld" = yes; then
3596 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
3597 echo "configure:3598: checking for GNU ld" >&5
3599 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
3600 echo "configure:3601: checking for non-GNU ld" >&5
3602 if eval "test \"\${lt_cv_path_LD+set}\" = set"; then
3603 echo $ac_n "(cached) $ac_c" 1>&6
3605 if test -z "$LD"; then
3606 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3607 for ac_dir in $PATH; do
3608 test -z "$ac_dir" && ac_dir=.
3609 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3610 lt_cv_path_LD="$ac_dir/$ac_prog"
3611 # Check to see if the program is GNU ld. I'd rather use --version,
3612 # but apparently some GNU ld's only accept -v.
3613 # Break only if it was the GNU/non-GNU ld that we prefer.
3614 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3615 test "$with_gnu_ld" != no && break
3617 test "$with_gnu_ld" != yes && break
3623 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3628 if test -n "$LD"; then
3629 echo "$ac_t""$LD" 1>&6
3631 echo "$ac_t""no" 1>&6
3633 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
3634 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
3635 echo "configure:3636: checking if the linker ($LD) is GNU ld" >&5
3636 if eval "test \"\${lt_cv_prog_gnu_ld+set}\" = set"; then
3637 echo $ac_n "(cached) $ac_c" 1>&6
3639 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3640 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3641 lt_cv_prog_gnu_ld=yes
3643 lt_cv_prog_gnu_ld=no
3647 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
3648 with_gnu_ld=$lt_cv_prog_gnu_ld
3651 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
3652 echo "configure:3653: checking for $LD option to reload object files" >&5
3653 if eval "test \"\${lt_cv_ld_reload_flag+set}\" = set"; then
3654 echo $ac_n "(cached) $ac_c" 1>&6
3656 lt_cv_ld_reload_flag='-r'
3659 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
3660 reload_flag=$lt_cv_ld_reload_flag
3661 test -n "$reload_flag" && reload_flag=" $reload_flag"
3663 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
3664 echo "configure:3665: checking for BSD-compatible nm" >&5
3665 if eval "test \"\${lt_cv_path_NM+set}\" = set"; then
3666 echo $ac_n "(cached) $ac_c" 1>&6
3668 if test -n "$NM"; then
3669 # Let the user override the test.
3672 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3673 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3674 test -z "$ac_dir" && ac_dir=.
3675 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3676 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3677 # Check to see if the nm accepts a BSD-compat flag.
3678 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3679 # nm: unknown option "B" ignored
3680 # Tru64's nm complains that /dev/null is an invalid object file
3681 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3682 lt_cv_path_NM="$tmp_nm -B"
3684 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3685 lt_cv_path_NM="$tmp_nm -p"
3688 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3689 continue # so that we can try to find one that supports BSD flags
3694 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3699 echo "$ac_t""$NM" 1>&6
3701 echo $ac_n "checking for a sed that does not truncate output""... $ac_c" 1>&6
3702 echo "configure:3703: checking for a sed that does not truncate output" >&5
3703 if eval "test \"\${lt_cv_path_SED+set}\" = set"; then
3704 echo $ac_n "(cached) $ac_c" 1>&6
3706 # Loop through the user's path and test for sed and gsed.
3707 # Then use that list of sed's as ones to test for truncation.
3708 as_executable_p="test -f"
3709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3713 test -z "$as_dir" && as_dir=.
3714 for ac_prog in sed gsed; do
3715 for ac_exec_ext in '' $ac_executable_extensions; do
3716 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3717 _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3723 # Create a temporary directory, and hook for its removal unless debugging.
3726 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3727 trap '{ (exit 1); exit 1; }' 1 2 13 15
3730 # Create a (secure) tmp directory for tmp files.
3733 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3734 test -n "$tmp" && test -d "$tmp"
3737 tmp=$TMPDIR/sed$$-$RANDOM
3738 (umask 077 && mkdir $tmp)
3741 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3742 { (exit 1); exit 1; }
3746 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3747 # along with /bin/sed that truncates output.
3748 for _sed in $_sed_list /usr/xpg4/bin/sed; do
3749 test ! -f ${_sed} && break
3750 cat /dev/null > "$tmp/sed.in"
3752 echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
3753 # Check for GNU sed and select it if it is found.
3754 if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
3755 lt_cv_path_SED=${_sed}
3759 cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3760 mv "$tmp/sed.tmp" "$tmp/sed.in"
3761 cp "$tmp/sed.in" "$tmp/sed.nl"
3762 echo >>"$tmp/sed.nl"
3763 ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
3764 cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
3765 # 40000 chars as input seems more than enough
3766 test $_count -gt 10 && break
3767 _count=`expr $_count + 1`
3768 if test $_count -gt $_max; then
3770 lt_cv_path_SED=$_sed
3778 if test "X$SED" != "X"; then
3783 echo "$ac_t""$SED" 1>&6
3785 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3786 echo "configure:3787: checking whether ln -s works" >&5
3787 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3788 echo $ac_n "(cached) $ac_c" 1>&6
3791 if ln -s X conftestdata 2>/dev/null
3794 ac_cv_prog_LN_S="ln -s"
3799 LN_S="$ac_cv_prog_LN_S"
3800 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3801 echo "$ac_t""yes" 1>&6
3803 echo "$ac_t""no" 1>&6
3806 echo $ac_n "checking how to recognise dependent libraries""... $ac_c" 1>&6
3807 echo "configure:3808: checking how to recognise dependent libraries" >&5
3808 if eval "test \"\${lt_cv_deplibs_check_method+set}\" = set"; then
3809 echo $ac_n "(cached) $ac_c" 1>&6
3811 lt_cv_file_magic_cmd='$MAGIC_CMD'
3812 lt_cv_file_magic_test_file=
3813 lt_cv_deplibs_check_method='unknown'
3814 # Need to set the preceding variable on all platforms that support
3815 # interlibrary dependencies.
3816 # 'none' -- dependencies not supported.
3817 # `unknown' -- same as none, but documents that we really don't know.
3818 # 'pass_all' -- all dependencies passed with no checks.
3819 # 'test_compile' -- check by making test program.
3820 # 'file_magic [[regex]]' -- check by looking for files in library path
3821 # which responds to the $file_magic_cmd with a given egrep regex.
3822 # If you have `file' or equivalent on your system and you're not sure
3823 # whether `pass_all' will *always* work, you probably want this one.
3827 lt_cv_deplibs_check_method=pass_all
3831 lt_cv_deplibs_check_method=pass_all
3835 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3836 lt_cv_file_magic_cmd='/usr/bin/file -L'
3837 lt_cv_file_magic_test_file=/shlib/libc.so
3840 cygwin* | mingw* | pw32*)
3841 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3842 lt_cv_file_magic_cmd='$OBJDUMP -f'
3845 darwin* | rhapsody*)
3846 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3847 lt_cv_file_magic_cmd='/usr/bin/file -L'
3849 rhapsody* | darwin1.[012])
3850 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3853 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3859 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3862 # Not sure whether the presence of OpenBSD here was a mistake.
3863 # Let's accept both of them until this is cleared up.
3864 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3865 lt_cv_file_magic_cmd=/usr/bin/file
3866 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3870 lt_cv_deplibs_check_method=pass_all
3875 lt_cv_deplibs_check_method=pass_all
3879 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3880 lt_cv_file_magic_cmd=/usr/bin/file
3881 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3884 irix5* | irix6* | nonstopux*)
3886 irix5* | nonstopux*)
3887 # this will be overridden with pass_all, but let us keep it just in case
3888 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3892 *-32|*"-32 ") libmagic=32-bit;;
3893 *-n32|*"-n32 ") libmagic=N32;;
3894 *-64|*"-64 ") libmagic=64-bit;;
3895 *) libmagic=never-match;;
3897 # this will be overridden with pass_all, but let us keep it just in case
3898 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3901 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3902 lt_cv_deplibs_check_method=pass_all
3905 # This must be Linux ELF.
3908 alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64*)
3909 lt_cv_deplibs_check_method=pass_all ;;
3911 # glibc up to 2.1.1 does not perform some relocations on ARM
3912 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3914 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3918 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3919 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3921 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3926 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3927 lt_cv_file_magic_cmd=/usr/bin/file
3928 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3932 lt_cv_file_magic_cmd=/usr/bin/file
3933 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3934 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3935 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3937 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3942 lt_cv_deplibs_check_method=pass_all
3945 osf3* | osf4* | osf5*)
3946 # this will be overridden with pass_all, but let us keep it just in case
3947 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3948 lt_cv_file_magic_test_file=/shlib/libc.so
3949 lt_cv_deplibs_check_method=pass_all
3953 lt_cv_deplibs_check_method=pass_all
3957 lt_cv_deplibs_check_method=pass_all
3958 lt_cv_file_magic_test_file=/lib/libc.so
3961 sysv5uw[78]* | sysv4*uw2*)
3962 lt_cv_deplibs_check_method=pass_all
3965 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3966 case $host_vendor in
3968 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]'
3969 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3972 lt_cv_deplibs_check_method=pass_all
3975 lt_cv_file_magic_cmd='/bin/file'
3976 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3979 lt_cv_file_magic_cmd='/bin/file'
3980 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3981 lt_cv_file_magic_test_file=/lib/libc.so
3984 lt_cv_deplibs_check_method=pass_all
3992 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
3993 file_magic_cmd=$lt_cv_file_magic_cmd
3994 deplibs_check_method=$lt_cv_deplibs_check_method
3996 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
3997 echo "configure:3998: checking for object suffix" >&5
3998 if eval "test \"\${ac_cv_objext+set}\" = set"; then
3999 echo $ac_n "(cached) $ac_c" 1>&6
4002 echo 'int i = 1;' > conftest.$ac_ext
4003 if { (eval echo configure:4004: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4004 for ac_file in conftest.*; do
4007 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
4011 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
4016 echo "$ac_t""$ac_cv_objext" 1>&6
4017 OBJEXT=$ac_cv_objext
4018 ac_objext=$ac_cv_objext
4023 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
4024 echo "configure:4025: checking for executable suffix" >&5
4025 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
4026 echo $ac_n "(cached) $ac_c" 1>&6
4028 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
4032 echo 'int main () { return 0; }' > conftest.$ac_ext
4034 if { (eval echo configure:4035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
4035 for file in conftest.*; do
4037 *.c | *.C | *.o | *.obj | *.xcoff) ;;
4038 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
4042 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
4045 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
4050 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
4051 echo "$ac_t""${ac_cv_exeext}" 1>&6
4054 if test $host != $build; then
4055 ac_tool_prefix=${host_alias}-
4063 # Check for command to grab the raw symbol name followed by C symbol from nm.
4064 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
4065 echo "configure:4066: checking command to parse $NM output" >&5
4066 if eval "test \"\${lt_cv_sys_global_symbol_pipe+set}\" = set"; then
4067 echo $ac_n "(cached) $ac_c" 1>&6
4070 # These are sane defaults that work on at least a few old systems.
4071 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4073 # Character class describing NM global symbol codes.
4074 symcode='[BCDEGRST]'
4076 # Regexp to match symbols that can be accessed directly from C.
4077 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4079 # Transform the above into a raw symbol and a C symbol.
4080 symxfrm='\1 \2\3 \3'
4082 # Transform an extracted symbol line into a proper C declaration
4083 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
4085 # Transform an extracted symbol line into symbol name and symbol address
4086 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'"
4088 # Define system-specific variables.
4093 cygwin* | mingw* | pw32*)
4094 symcode='[ABCDGISTW]'
4096 hpux*) # Its linker distinguishes data from code symbols
4097 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4098 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'"
4101 symcode='[BCDEGRST]'
4104 symcode='[BCDEGQRST]'
4114 # Handle CRLF in mingw tool chain
4118 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4122 # If we're using GNU nm, then use its standard symbol codes.
4123 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
4124 symcode='[ABCDGISTW]'
4127 # Try without a prefix undercore, then with it.
4128 for ac_symprfx in "" "_"; do
4130 # Write the raw and C identifiers.
4131 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4133 # Check to see that the pipe works correctly.
4136 cat > conftest.$ac_ext <<EOF
4141 void nm_test_func(){}
4145 int main(){nm_test_var='a';nm_test_func();return(0);}
4148 if { (eval echo configure:4149: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4149 # Now try to grab the symbols.
4151 if { (eval echo configure:4152: \"$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
4152 # Try sorting and uniquifying the output.
4153 if sort "$nlist" | uniq > "$nlist"T; then
4154 mv -f "$nlist"T "$nlist"
4159 # Make sure that we snagged all the symbols we need.
4160 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4161 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4162 cat <<EOF > conftest.$ac_ext
4168 # Now generate the symbol file.
4169 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4171 cat <<EOF >> conftest.$ac_ext
4172 #if defined (__STDC__) && __STDC__
4173 # define lt_ptr void *
4175 # define lt_ptr char *
4179 /* The mapping between symbol names and symbols. */
4184 lt_preloaded_symbols[] =
4187 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4188 cat <<\EOF >> conftest.$ac_ext
4196 # Now try linking the two files.
4197 mv conftest.$ac_objext conftstm.$ac_objext
4199 save_CFLAGS="$CFLAGS"
4200 LIBS="conftstm.$ac_objext"
4201 CFLAGS="$CFLAGS$no_builtin_flag"
4202 if { (eval echo configure:4203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
4206 CFLAGS="$save_CFLAGS"
4208 echo "cannot find nm_test_func in $nlist" >&5
4211 echo "cannot find nm_test_var in $nlist" >&5
4214 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4217 echo "$progname: failed program was:" >&5
4218 cat conftest.$ac_ext >&5
4220 rm -f conftest* conftst*
4222 # Do not use the global_symbol_pipe unless it works.
4223 if test "$pipe_works" = yes; then
4226 lt_cv_sys_global_symbol_pipe=
4232 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4233 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4234 global_symbol_to_cdecl=
4235 global_symbol_to_c_name_address=
4237 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4238 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4240 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4242 echo "$ac_t""failed" 1>&6
4244 echo "$ac_t""ok" 1>&6
4247 for ac_hdr in dlfcn.h
4249 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4250 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4251 echo "configure:4252: checking for $ac_hdr" >&5
4252 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4253 echo $ac_n "(cached) $ac_c" 1>&6
4255 cat > conftest.$ac_ext <<EOF
4256 #line 4257 "configure"
4257 #include "confdefs.h"
4260 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4261 { (eval echo configure:4262: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4262 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4263 if test -z "$ac_err"; then
4265 eval "ac_cv_header_$ac_safe=yes"
4268 echo "configure: failed program was:" >&5
4269 cat conftest.$ac_ext >&5
4271 eval "ac_cv_header_$ac_safe=no"
4275 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4276 echo "$ac_t""yes" 1>&6
4277 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4278 cat >> confdefs.h <<EOF
4279 #define $ac_tr_hdr 1
4283 echo "$ac_t""no" 1>&6
4292 # Only perform the check for file, if the check method requires it
4293 case $deplibs_check_method in
4295 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4296 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
4297 echo "configure:4298: checking for ${ac_tool_prefix}file" >&5
4298 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
4299 echo $ac_n "(cached) $ac_c" 1>&6
4303 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4306 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4309 ac_save_MAGIC_CMD="$MAGIC_CMD"
4310 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4311 ac_dummy="/usr/bin:$PATH"
4312 for ac_dir in $ac_dummy; do
4313 test -z "$ac_dir" && ac_dir=.
4314 if test -f $ac_dir/${ac_tool_prefix}file; then
4315 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4316 if test -n "$file_magic_test_file"; then
4317 case $deplibs_check_method in
4319 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4320 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4321 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4322 egrep "$file_magic_regex" > /dev/null; then
4327 *** Warning: the command libtool uses to detect shared libraries,
4328 *** $file_magic_cmd, produces output that libtool cannot recognize.
4329 *** The result is that libtool may fail to recognize shared libraries
4330 *** as such. This will affect the creation of libtool libraries that
4331 *** depend on shared libraries, but programs linked with such libtool
4332 *** libraries will work regardless of this problem. Nevertheless, you
4333 *** may want to report the problem to your system manager and/or to
4334 *** bug-libtool@gnu.org
4344 MAGIC_CMD="$ac_save_MAGIC_CMD"
4349 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4350 if test -n "$MAGIC_CMD"; then
4351 echo "$ac_t""$MAGIC_CMD" 1>&6
4353 echo "$ac_t""no" 1>&6
4356 if test -z "$lt_cv_path_MAGIC_CMD"; then
4357 if test -n "$ac_tool_prefix"; then
4358 echo $ac_n "checking for file""... $ac_c" 1>&6
4359 echo "configure:4360: checking for file" >&5
4360 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
4361 echo $ac_n "(cached) $ac_c" 1>&6
4365 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4368 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4371 ac_save_MAGIC_CMD="$MAGIC_CMD"
4372 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4373 ac_dummy="/usr/bin:$PATH"
4374 for ac_dir in $ac_dummy; do
4375 test -z "$ac_dir" && ac_dir=.
4376 if test -f $ac_dir/file; then
4377 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4378 if test -n "$file_magic_test_file"; then
4379 case $deplibs_check_method in
4381 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4382 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4383 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4384 egrep "$file_magic_regex" > /dev/null; then
4389 *** Warning: the command libtool uses to detect shared libraries,
4390 *** $file_magic_cmd, produces output that libtool cannot recognize.
4391 *** The result is that libtool may fail to recognize shared libraries
4392 *** as such. This will affect the creation of libtool libraries that
4393 *** depend on shared libraries, but programs linked with such libtool
4394 *** libraries will work regardless of this problem. Nevertheless, you
4395 *** may want to report the problem to your system manager and/or to
4396 *** bug-libtool@gnu.org
4406 MAGIC_CMD="$ac_save_MAGIC_CMD"
4411 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4412 if test -n "$MAGIC_CMD"; then
4413 echo "$ac_t""$MAGIC_CMD" 1>&6
4415 echo "$ac_t""no" 1>&6
4427 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4428 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4429 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4430 echo "configure:4431: checking for $ac_word" >&5
4431 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
4432 echo $ac_n "(cached) $ac_c" 1>&6
4434 if test -n "$RANLIB"; then
4435 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4437 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4439 for ac_dir in $ac_dummy; do
4440 test -z "$ac_dir" && ac_dir=.
4441 if test -f $ac_dir/$ac_word; then
4442 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4449 RANLIB="$ac_cv_prog_RANLIB"
4450 if test -n "$RANLIB"; then
4451 echo "$ac_t""$RANLIB" 1>&6
4453 echo "$ac_t""no" 1>&6
4457 if test -z "$ac_cv_prog_RANLIB"; then
4458 if test -n "$ac_tool_prefix"; then
4459 # Extract the first word of "ranlib", so it can be a program name with args.
4460 set dummy ranlib; ac_word=$2
4461 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4462 echo "configure:4463: checking for $ac_word" >&5
4463 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
4464 echo $ac_n "(cached) $ac_c" 1>&6
4466 if test -n "$RANLIB"; then
4467 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4469 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4471 for ac_dir in $ac_dummy; do
4472 test -z "$ac_dir" && ac_dir=.
4473 if test -f $ac_dir/$ac_word; then
4474 ac_cv_prog_RANLIB="ranlib"
4479 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
4482 RANLIB="$ac_cv_prog_RANLIB"
4483 if test -n "$RANLIB"; then
4484 echo "$ac_t""$RANLIB" 1>&6
4486 echo "$ac_t""no" 1>&6
4494 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4495 set dummy ${ac_tool_prefix}strip; ac_word=$2
4496 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4497 echo "configure:4498: checking for $ac_word" >&5
4498 if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then
4499 echo $ac_n "(cached) $ac_c" 1>&6
4501 if test -n "$STRIP"; then
4502 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4504 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4506 for ac_dir in $ac_dummy; do
4507 test -z "$ac_dir" && ac_dir=.
4508 if test -f $ac_dir/$ac_word; then
4509 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4516 STRIP="$ac_cv_prog_STRIP"
4517 if test -n "$STRIP"; then
4518 echo "$ac_t""$STRIP" 1>&6
4520 echo "$ac_t""no" 1>&6
4524 if test -z "$ac_cv_prog_STRIP"; then
4525 if test -n "$ac_tool_prefix"; then
4526 # Extract the first word of "strip", so it can be a program name with args.
4527 set dummy strip; ac_word=$2
4528 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4529 echo "configure:4530: checking for $ac_word" >&5
4530 if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then
4531 echo $ac_n "(cached) $ac_c" 1>&6
4533 if test -n "$STRIP"; then
4534 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4536 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4538 for ac_dir in $ac_dummy; do
4539 test -z "$ac_dir" && ac_dir=.
4540 if test -f $ac_dir/$ac_word; then
4541 ac_cv_prog_STRIP="strip"
4546 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
4549 STRIP="$ac_cv_prog_STRIP"
4550 if test -n "$STRIP"; then
4551 echo "$ac_t""$STRIP" 1>&6
4553 echo "$ac_t""no" 1>&6
4563 enable_win32_dll=yes
4565 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4566 if test "${enable_libtool_lock+set}" = set; then
4567 enableval="$enable_libtool_lock"
4571 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4573 # Some flags need to be propagated to the compiler or linker for good
4577 # Find out which ABI we are using.
4578 echo '#line 4579 "configure"' > conftest.$ac_ext
4579 if { (eval echo configure:4580: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4580 case `/usr/bin/file conftest.$ac_objext` in
4596 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4597 SAVE_CFLAGS="$CFLAGS"
4598 CFLAGS="$CFLAGS -belf"
4599 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
4600 echo "configure:4601: checking whether the C compiler needs -belf" >&5
4601 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
4602 echo $ac_n "(cached) $ac_c" 1>&6
4606 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4607 ac_cpp='$CPP $CPPFLAGS'
4608 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4609 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4610 cross_compiling=$ac_cv_prog_cc_cross
4612 cat > conftest.$ac_ext <<EOF
4613 #line 4614 "configure"
4614 #include "confdefs.h"
4620 if { (eval echo configure:4621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4622 lt_cv_cc_needs_belf=yes
4624 echo "configure: failed program was:" >&5
4625 cat conftest.$ac_ext >&5
4627 lt_cv_cc_needs_belf=no
4631 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4632 ac_cpp='$CPP $CPPFLAGS'
4633 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4634 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4635 cross_compiling=$ac_cv_prog_cc_cross
4639 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
4640 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4641 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4642 CFLAGS="$SAVE_CFLAGS"
4646 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4647 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4648 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4649 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4650 echo "configure:4651: checking for $ac_word" >&5
4651 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
4652 echo $ac_n "(cached) $ac_c" 1>&6
4654 if test -n "$DLLTOOL"; then
4655 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4657 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4659 for ac_dir in $ac_dummy; do
4660 test -z "$ac_dir" && ac_dir=.
4661 if test -f $ac_dir/$ac_word; then
4662 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4669 DLLTOOL="$ac_cv_prog_DLLTOOL"
4670 if test -n "$DLLTOOL"; then
4671 echo "$ac_t""$DLLTOOL" 1>&6
4673 echo "$ac_t""no" 1>&6
4677 if test -z "$ac_cv_prog_DLLTOOL"; then
4678 if test -n "$ac_tool_prefix"; then
4679 # Extract the first word of "dlltool", so it can be a program name with args.
4680 set dummy dlltool; ac_word=$2
4681 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4682 echo "configure:4683: checking for $ac_word" >&5
4683 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
4684 echo $ac_n "(cached) $ac_c" 1>&6
4686 if test -n "$DLLTOOL"; then
4687 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4689 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4691 for ac_dir in $ac_dummy; do
4692 test -z "$ac_dir" && ac_dir=.
4693 if test -f $ac_dir/$ac_word; then
4694 ac_cv_prog_DLLTOOL="dlltool"
4699 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
4702 DLLTOOL="$ac_cv_prog_DLLTOOL"
4703 if test -n "$DLLTOOL"; then
4704 echo "$ac_t""$DLLTOOL" 1>&6
4706 echo "$ac_t""no" 1>&6
4714 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4715 set dummy ${ac_tool_prefix}as; ac_word=$2
4716 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4717 echo "configure:4718: checking for $ac_word" >&5
4718 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
4719 echo $ac_n "(cached) $ac_c" 1>&6
4721 if test -n "$AS"; then
4722 ac_cv_prog_AS="$AS" # Let the user override the test.
4724 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4726 for ac_dir in $ac_dummy; do
4727 test -z "$ac_dir" && ac_dir=.
4728 if test -f $ac_dir/$ac_word; then
4729 ac_cv_prog_AS="${ac_tool_prefix}as"
4737 if test -n "$AS"; then
4738 echo "$ac_t""$AS" 1>&6
4740 echo "$ac_t""no" 1>&6
4744 if test -z "$ac_cv_prog_AS"; then
4745 if test -n "$ac_tool_prefix"; then
4746 # Extract the first word of "as", so it can be a program name with args.
4747 set dummy as; ac_word=$2
4748 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4749 echo "configure:4750: checking for $ac_word" >&5
4750 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
4751 echo $ac_n "(cached) $ac_c" 1>&6
4753 if test -n "$AS"; then
4754 ac_cv_prog_AS="$AS" # Let the user override the test.
4756 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4758 for ac_dir in $ac_dummy; do
4759 test -z "$ac_dir" && ac_dir=.
4760 if test -f $ac_dir/$ac_word; then
4766 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
4770 if test -n "$AS"; then
4771 echo "$ac_t""$AS" 1>&6
4773 echo "$ac_t""no" 1>&6
4781 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4782 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4783 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4784 echo "configure:4785: checking for $ac_word" >&5
4785 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
4786 echo $ac_n "(cached) $ac_c" 1>&6
4788 if test -n "$OBJDUMP"; then
4789 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4791 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4793 for ac_dir in $ac_dummy; do
4794 test -z "$ac_dir" && ac_dir=.
4795 if test -f $ac_dir/$ac_word; then
4796 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4803 OBJDUMP="$ac_cv_prog_OBJDUMP"
4804 if test -n "$OBJDUMP"; then
4805 echo "$ac_t""$OBJDUMP" 1>&6
4807 echo "$ac_t""no" 1>&6
4811 if test -z "$ac_cv_prog_OBJDUMP"; then
4812 if test -n "$ac_tool_prefix"; then
4813 # Extract the first word of "objdump", so it can be a program name with args.
4814 set dummy objdump; ac_word=$2
4815 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4816 echo "configure:4817: checking for $ac_word" >&5
4817 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
4818 echo $ac_n "(cached) $ac_c" 1>&6
4820 if test -n "$OBJDUMP"; then
4821 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4823 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4825 for ac_dir in $ac_dummy; do
4826 test -z "$ac_dir" && ac_dir=.
4827 if test -f $ac_dir/$ac_word; then
4828 ac_cv_prog_OBJDUMP="objdump"
4833 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
4836 OBJDUMP="$ac_cv_prog_OBJDUMP"
4837 if test -n "$OBJDUMP"; then
4838 echo "$ac_t""$OBJDUMP" 1>&6
4840 echo "$ac_t""no" 1>&6
4849 # recent cygwin and mingw systems supply a stub DllMain which the user
4850 # can override, but on older systems we have to supply one
4851 echo $ac_n "checking if libtool should supply DllMain function""... $ac_c" 1>&6
4852 echo "configure:4853: checking if libtool should supply DllMain function" >&5
4853 if eval "test \"\${lt_cv_need_dllmain+set}\" = set"; then
4854 echo $ac_n "(cached) $ac_c" 1>&6
4856 cat > conftest.$ac_ext <<EOF
4857 #line 4858 "configure"
4858 #include "confdefs.h"
4861 extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
4865 if { (eval echo configure:4866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4867 lt_cv_need_dllmain=no
4869 echo "configure: failed program was:" >&5
4870 cat conftest.$ac_ext >&5
4872 lt_cv_need_dllmain=yes
4877 echo "$ac_t""$lt_cv_need_dllmain" 1>&6
4880 *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
4881 # old mingw systems require "-dll" to link a DLL, while more recent ones
4883 SAVE_CFLAGS="$CFLAGS"
4884 CFLAGS="$CFLAGS -mdll"
4885 echo $ac_n "checking how to link DLLs""... $ac_c" 1>&6
4886 echo "configure:4887: checking how to link DLLs" >&5
4887 if eval "test \"\${lt_cv_cc_dll_switch+set}\" = set"; then
4888 echo $ac_n "(cached) $ac_c" 1>&6
4890 cat > conftest.$ac_ext <<EOF
4891 #line 4892 "configure"
4892 #include "confdefs.h"
4898 if { (eval echo configure:4899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4900 lt_cv_cc_dll_switch=-mdll
4902 echo "configure: failed program was:" >&5
4903 cat conftest.$ac_ext >&5
4905 lt_cv_cc_dll_switch=-dll
4910 echo "$ac_t""$lt_cv_cc_dll_switch" 1>&6
4911 CFLAGS="$SAVE_CFLAGS" ;;
4912 *-*-cygwin* | *-*-pw32*)
4913 # cygwin systems need to pass --dll to the linker, and not link
4914 # crt.o which will require a WinMain@16 definition.
4915 lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
4921 # Sed substitution that helps us do robust quoting. It backslashifies
4922 # metacharacters that are still active within double-quoted strings.
4923 Xsed='sed -e s/^X//'
4924 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4926 # Same as above, but do not quote variable references.
4927 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4929 # Sed substitution to delay expansion of an escaped shell variable in a
4930 # double_quote_subst'ed string.
4931 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4937 default_ofile=libtool
4938 can_build_shared=yes
4940 # All known linkers require a `.a' archive for static linking (except M$VC,
4941 # which needs '.lib').
4943 ltmain="$ac_aux_dir/ltmain.sh"
4944 ofile="$default_ofile"
4945 with_gnu_ld="$lt_cv_prog_gnu_ld"
4946 need_locks="$enable_libtool_lock"
4949 old_CFLAGS="$CFLAGS"
4951 # Set sane defaults for various variables
4952 test -z "$AR" && AR=ar
4953 test -z "$AR_FLAGS" && AR_FLAGS=cru
4954 test -z "$AS" && AS=as
4955 test -z "$CC" && CC=cc
4956 test -z "$DLLTOOL" && DLLTOOL=dlltool
4957 test -z "$LD" && LD=ld
4958 test -z "$LN_S" && LN_S="ln -s"
4959 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4960 test -z "$NM" && NM=nm
4961 test -z "$OBJDUMP" && OBJDUMP=objdump
4962 test -z "$RANLIB" && RANLIB=:
4963 test -z "$STRIP" && STRIP=:
4964 test -z "$ac_objext" && ac_objext=o
4966 if test x"$host" != x"$build"; then
4967 ac_tool_prefix=${host_alias}-
4972 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4975 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4980 # AIX sometimes has problems with the GCC collect2 program. For some
4981 # reason, if we set the COLLECT_NAMES environment variable, the problems
4982 # vanish in a puff of smoke.
4983 if test "X${COLLECT_NAMES+set}" != Xset; then
4985 export COLLECT_NAMES
4990 # Determine commands to create old-style static archives.
4991 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4992 old_postinstall_cmds='chmod 644 $oldlib'
4993 old_postuninstall_cmds=
4995 if test -n "$RANLIB"; then
4998 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5001 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5004 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5007 # Allow CC to be a program name with arguments.
5011 echo $ac_n "checking for objdir""... $ac_c" 1>&6
5012 echo "configure:5013: checking for objdir" >&5
5013 rm -f .libs 2>/dev/null
5014 mkdir .libs 2>/dev/null
5015 if test -d .libs; then
5018 # MS-DOS does not allow filenames that begin with a dot.
5021 rmdir .libs 2>/dev/null
5022 echo "$ac_t""$objdir" 1>&6
5025 # Check whether --with-pic or --without-pic was given.
5026 if test "${with_pic+set}" = set; then
5033 test -z "$pic_mode" && pic_mode=default
5035 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
5036 # in isolation, and that seeing it set (from the cache) indicates that
5037 # the associated values are set (in the cache) correctly too.
5038 echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6
5039 echo "configure:5040: checking for $compiler option to produce PIC" >&5
5040 if eval "test \"\${lt_cv_prog_cc_pic+set}\" = set"; then
5041 echo $ac_n "(cached) $ac_c" 1>&6
5044 lt_cv_prog_cc_shlib=
5046 lt_cv_prog_cc_static=
5047 lt_cv_prog_cc_no_builtin=
5048 lt_cv_prog_cc_can_build_shared=$can_build_shared
5050 if test "$GCC" = yes; then
5051 lt_cv_prog_cc_wl='-Wl,'
5052 lt_cv_prog_cc_static='-static'
5056 # Below there is a dirty hack to force normal static linking with -ldl
5057 # The problem is because libdl dynamically linked with both libc and
5058 # libC (AIX C++ library), which obviously doesn't included in libraries
5059 # list by gcc. This cause undefined symbols with -static flags.
5060 # This hack allows C programs to be linked with "-static -ldl", but
5061 # not sure about C++ programs.
5062 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5065 # FIXME: we need at least 68020 code to build shared libraries, but
5066 # adding the `-m68020' flag to GCC prevents building anything better,
5068 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5070 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5071 # PIC is the default for these OSes.
5073 darwin* | rhapsody*)
5074 # PIC is the default on this platform
5075 # Common symbols not allowed in MH_DYLIB files
5076 lt_cv_prog_cc_pic='-fno-common'
5078 cygwin* | mingw* | pw32* | os2*)
5079 # This hack is so that the source file can tell whether it is being
5080 # built for inclusion in a dll (and should export symbols for example).
5081 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5084 if test -d /usr/nec; then
5085 lt_cv_prog_cc_pic=-Kconform_pic
5089 lt_cv_prog_cc_pic='-fPIC'
5093 # PORTME Check for PIC flags for the system compiler.
5095 aix3* | aix4* | aix5*)
5096 lt_cv_prog_cc_wl='-Wl,'
5097 # All AIX code is PIC.
5098 if test "$host_cpu" = ia64; then
5099 # AIX 5 now supports IA64 processor
5100 lt_cv_prog_cc_static='-Bstatic'
5102 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5106 hpux9* | hpux10* | hpux11*)
5107 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5108 lt_cv_prog_cc_wl='-Wl,'
5109 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5110 lt_cv_prog_cc_pic='+Z'
5113 irix5* | irix6* | nonstopux*)
5114 lt_cv_prog_cc_wl='-Wl,'
5115 lt_cv_prog_cc_static='-non_shared'
5116 # PIC (with -KPIC) is the default.
5119 cygwin* | mingw* | pw32* | os2*)
5120 # This hack is so that the source file can tell whether it is being
5121 # built for inclusion in a dll (and should export symbols for example).
5122 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5126 lt_cv_prog_cc_pic='-KPIC'
5127 lt_cv_prog_cc_static='-Bstatic'
5131 # XPLINK code is PIC by default
5134 osf3* | osf4* | osf5*)
5135 # All OSF/1 code is PIC.
5136 lt_cv_prog_cc_wl='-Wl,'
5137 lt_cv_prog_cc_static='-non_shared'
5141 lt_cv_prog_cc_pic='-Kpic'
5142 lt_cv_prog_cc_static='-dn'
5143 lt_cv_prog_cc_shlib='-belf'
5147 lt_cv_prog_cc_pic='-KPIC'
5148 lt_cv_prog_cc_static='-Bstatic'
5149 lt_cv_prog_cc_wl='-Wl,'
5153 lt_cv_prog_cc_pic='-PIC'
5154 lt_cv_prog_cc_static='-Bstatic'
5155 lt_cv_prog_cc_wl='-Qoption ld '
5158 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5159 lt_cv_prog_cc_pic='-KPIC'
5160 lt_cv_prog_cc_static='-Bstatic'
5161 lt_cv_prog_cc_wl='-Wl,'
5165 lt_cv_prog_cc_pic='-pic'
5166 lt_cv_prog_cc_static='-Bstatic'
5170 if test -d /usr/nec ;then
5171 lt_cv_prog_cc_pic='-Kconform_pic'
5172 lt_cv_prog_cc_static='-Bstatic'
5177 lt_cv_prog_cc_can_build_shared=no
5184 if test -z "$lt_cv_prog_cc_pic"; then
5185 echo "$ac_t""none" 1>&6
5187 echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6
5189 # Check to make sure the pic_flag actually works.
5190 echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6
5191 echo "configure:5192: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5192 if eval "test \"\${lt_cv_prog_cc_pic_works+set}\" = set"; then
5193 echo $ac_n "(cached) $ac_c" 1>&6
5195 save_CFLAGS="$CFLAGS"
5196 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5197 cat > conftest.$ac_ext <<EOF
5198 #line 5199 "configure"
5199 #include "confdefs.h"
5205 if { (eval echo configure:5206: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5208 hpux9* | hpux10* | hpux11*)
5209 # On HP-UX, both CC and GCC only warn that PIC is supported... then
5210 # they create non-PIC objects. So, if there were any warnings, we
5211 # assume that PIC is not supported.
5212 if test -s conftest.err; then
5213 lt_cv_prog_cc_pic_works=no
5215 lt_cv_prog_cc_pic_works=yes
5219 lt_cv_prog_cc_pic_works=yes
5224 echo "configure: failed program was:" >&5
5225 cat conftest.$ac_ext >&5
5227 lt_cv_prog_cc_pic_works=no
5231 CFLAGS="$save_CFLAGS"
5236 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5238 lt_cv_prog_cc_can_build_shared=no
5240 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5243 echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6
5246 # Check for any special shared library compilation flags.
5247 if test -n "$lt_cv_prog_cc_shlib"; then
5248 echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2
5249 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5251 echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2
5252 lt_cv_prog_cc_can_build_shared=no
5256 echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6
5257 echo "configure:5258: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5258 if eval "test \"\${lt_cv_prog_cc_static_works+set}\" = set"; then
5259 echo $ac_n "(cached) $ac_c" 1>&6
5261 lt_cv_prog_cc_static_works=no
5262 save_LDFLAGS="$LDFLAGS"
5263 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5264 cat > conftest.$ac_ext <<EOF
5265 #line 5266 "configure"
5266 #include "confdefs.h"
5272 if { (eval echo configure:5273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5274 lt_cv_prog_cc_static_works=yes
5276 echo "configure: failed program was:" >&5
5277 cat conftest.$ac_ext >&5
5280 LDFLAGS="$save_LDFLAGS"
5285 # Belt *and* braces to stop my trousers falling down:
5286 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5287 echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6
5289 pic_flag="$lt_cv_prog_cc_pic"
5290 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5291 wl="$lt_cv_prog_cc_wl"
5292 link_static_flag="$lt_cv_prog_cc_static"
5293 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5294 can_build_shared="$lt_cv_prog_cc_can_build_shared"
5297 # Check to see if options -o and -c are simultaneously supported by compiler
5298 echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6
5299 echo "configure:5300: checking if $compiler supports -c -o file.$ac_objext" >&5
5300 if eval "test \"\${lt_cv_compiler_c_o+set}\" = set"; then
5301 echo $ac_n "(cached) $ac_c" 1>&6
5304 $rm -r conftest 2>/dev/null
5307 echo "int some_variable = 0;" > conftest.$ac_ext
5309 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5310 # that will create temporary files in the current directory regardless of
5311 # the output directory. Thus, making CWD read-only will cause this test
5312 # to fail, enabling locking or at least warning the user not to do parallel
5315 save_CFLAGS="$CFLAGS"
5316 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5318 if { (eval echo configure:5319: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5319 # The compiler can only warn and ignore the option if not recognized
5320 # So say no if there are warnings
5321 if test -s out/conftest.err; then
5322 lt_cv_compiler_c_o=no
5324 lt_cv_compiler_c_o=yes
5327 # Append any errors to the config.log.
5328 cat out/conftest.err 1>&5
5329 lt_cv_compiler_c_o=no
5331 CFLAGS="$save_CFLAGS"
5337 $rm -r conftest 2>/dev/null
5341 compiler_c_o=$lt_cv_compiler_c_o
5342 echo "$ac_t""$compiler_c_o" 1>&6
5344 if test x"$compiler_c_o" = x"yes"; then
5345 # Check to see if we can write to a .lo
5346 echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6
5347 echo "configure:5348: checking if $compiler supports -c -o file.lo" >&5
5348 if eval "test \"\${lt_cv_compiler_o_lo+set}\" = set"; then
5349 echo $ac_n "(cached) $ac_c" 1>&6
5352 lt_cv_compiler_o_lo=no
5353 save_CFLAGS="$CFLAGS"
5354 CFLAGS="$CFLAGS -c -o conftest.lo"
5355 save_objext="$ac_objext"
5357 cat > conftest.$ac_ext <<EOF
5358 #line 5359 "configure"
5359 #include "confdefs.h"
5362 int some_variable = 0;
5365 if { (eval echo configure:5366: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5367 # The compiler can only warn and ignore the option if not recognized
5368 # So say no if there are warnings
5369 if test -s conftest.err; then
5370 lt_cv_compiler_o_lo=no
5372 lt_cv_compiler_o_lo=yes
5376 echo "configure: failed program was:" >&5
5377 cat conftest.$ac_ext >&5
5380 ac_objext="$save_objext"
5381 CFLAGS="$save_CFLAGS"
5385 compiler_o_lo=$lt_cv_compiler_o_lo
5386 echo "$ac_t""$compiler_o_lo" 1>&6
5391 # Check to see if we can do hard links to lock some files if needed
5392 hard_links="nottested"
5393 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5394 # do not overwrite the value of need_locks provided by the user
5395 echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6
5396 echo "configure:5397: checking if we can lock with hard links" >&5
5399 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5401 ln conftest.a conftest.b 2>&5 || hard_links=no
5402 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5403 echo "$ac_t""$hard_links" 1>&6
5404 if test "$hard_links" = no; then
5405 echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2
5412 if test "$GCC" = yes; then
5413 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5414 echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6
5415 echo "configure:5416: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5416 echo "int some_variable = 0;" > conftest.$ac_ext
5417 save_CFLAGS="$CFLAGS"
5418 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5419 compiler_rtti_exceptions=no
5420 cat > conftest.$ac_ext <<EOF
5421 #line 5422 "configure"
5422 #include "confdefs.h"
5425 int some_variable = 0;
5428 if { (eval echo configure:5429: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5430 # The compiler can only warn and ignore the option if not recognized
5431 # So say no if there are warnings
5432 if test -s conftest.err; then
5433 compiler_rtti_exceptions=no
5435 compiler_rtti_exceptions=yes
5439 echo "configure: failed program was:" >&5
5440 cat conftest.$ac_ext >&5
5443 CFLAGS="$save_CFLAGS"
5444 echo "$ac_t""$compiler_rtti_exceptions" 1>&6
5446 if test "$compiler_rtti_exceptions" = "yes"; then
5447 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5449 no_builtin_flag=' -fno-builtin'
5453 # See if the linker supports building shared libraries.
5454 echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6
5455 echo "configure:5456: checking whether the linker ($LD) supports shared libraries" >&5
5457 allow_undefined_flag=
5459 need_lib_prefix=unknown
5460 need_version=unknown
5461 # when you set need_version to no, make sure it does not cause -set_version
5462 # flags to be left without arguments
5464 archive_expsym_cmds=
5465 old_archive_from_new_cmds=
5466 old_archive_from_expsyms_cmds=
5467 export_dynamic_flag_spec=
5468 whole_archive_flag_spec=
5469 thread_safe_flag_spec=
5470 hardcode_into_libs=no
5471 hardcode_libdir_flag_spec=
5472 hardcode_libdir_separator=
5475 hardcode_shlibpath_var=unsupported
5477 link_all_deplibs=unknown
5478 always_export_symbols=no
5479 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5480 # include_expsyms should be a list of space-separated symbols to be *always*
5481 # included in the symbol list
5483 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5484 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5485 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5486 # as well as any symbol that contains `d'.
5487 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5488 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5489 # platforms (ab)use it in PIC code, but their linkers get confused if
5490 # the symbol is explicitly referenced. Since portable code cannot
5491 # rely on this symbol name, it's probably fine to never include it in
5492 # preloaded symbol tables.
5493 extract_expsyms_cmds=
5496 cygwin* | mingw* | pw32*)
5497 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5498 # When not using gcc, we currently assume that we are using
5499 # Microsoft Visual C++.
5500 if test "$GCC" != yes; then
5510 if test "$with_gnu_ld" = yes; then
5511 # If archive_cmds runs LD, not CC, wlarc should be empty
5514 # See if GNU ld supports shared libraries.
5516 aix3* | aix4* | aix5*)
5517 # On AIX, the GNU linker is very broken
5518 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5522 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5523 *** to be unable to reliably create shared libraries on AIX.
5524 *** Therefore, libtool is disabling shared libraries support. If you
5525 *** really care for shared libraries, you may want to modify your PATH
5526 *** so that a non-GNU linker is found, and then restart.
5532 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)'
5533 hardcode_libdir_flag_spec='-L$libdir'
5534 hardcode_minus_L=yes
5536 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5537 # that the semantics of dynamic libraries on AmigaOS, at least up
5538 # to version 4, is to share data among multiple programs linked
5539 # with the same dynamic library. Since this doesn't match the
5540 # behavior of shared libraries on other platforms, we can use
5546 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5547 allow_undefined_flag=unsupported
5548 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5549 # support --undefined. This deserves some investigation. FIXME
5550 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5556 cygwin* | mingw* | pw32*)
5557 # hardcode_libdir_flag_spec is actually meaningless, as there is
5558 # no search path for DLLs.
5559 hardcode_libdir_flag_spec='-L$libdir'
5560 allow_undefined_flag=unsupported
5561 always_export_symbols=yes
5563 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5564 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5565 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5566 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5567 else $CC -o impgen impgen.c ; fi)~
5568 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5570 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5572 # cygwin and mingw dlls have different entry points and sets of symbols
5574 # FIXME: what about values for MSVC?
5575 dll_entry=__cygwin_dll_entry@12
5576 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5580 dll_entry=_DllMainCRTStartup@12
5581 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5585 # mingw and cygwin differ, and it's simplest to just exclude the union
5586 # of the two symbol sets.
5587 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5589 # recent cygwin and mingw systems supply a stub DllMain which the user
5590 # can override, but on older systems we have to supply one (in ltdll.c)
5591 if test "x$lt_cv_need_dllmain" = "xyes"; then
5592 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5593 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~
5594 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5600 # Extract the symbol export list from an `--export-all' def file,
5601 # then regenerate the def file from the symbol export list, so that
5602 # the compiled dll only exports the symbol export list.
5603 # Be careful not to strip the DATA tag left be newer dlltools.
5604 export_symbols_cmds="$ltdll_cmds"'
5605 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5606 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5608 # If the export-symbols file already is a .def file (1st line
5609 # is EXPORTS), use it as is.
5610 # If DATA tags from a recent dlltool are present, honour them!
5611 archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
5612 cp $export_symbols $output_objdir/$soname-def;
5614 echo EXPORTS > $output_objdir/$soname-def;
5616 cat $export_symbols | while read symbol; do
5619 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5620 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
5621 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5623 _lt_hint=`expr 1 + \$_lt_hint`;
5627 $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~
5628 $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~
5629 $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~
5630 $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~
5631 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5635 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5636 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5639 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5640 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5645 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5649 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5650 *** create shared libraries on Solaris systems. Therefore, libtool
5651 *** is disabling shared libraries support. We urge you to upgrade GNU
5652 *** binutils to release 2.9.1 or newer. Another option is to modify
5653 *** your PATH or compiler configuration so that the native linker is
5654 *** used, and then restart.
5657 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5658 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5659 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5666 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5669 hardcode_shlibpath_var=no
5673 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5674 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5675 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5682 if test "$ld_shlibs" = yes; then
5683 runpath_var=LD_RUN_PATH
5684 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5685 export_dynamic_flag_spec='${wl}--export-dynamic'
5687 cygwin* | mingw* | pw32*)
5688 # dlltool doesn't understand --whole-archive et. al.
5689 whole_archive_flag_spec=
5692 # ancient GNU ld didn't support --whole-archive et. al.
5693 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5694 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5696 whole_archive_flag_spec=
5702 # PORTME fill in a description of your system's linker (not GNU ld)
5705 allow_undefined_flag=unsupported
5706 always_export_symbols=yes
5707 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'
5708 # Note: this linker hardcodes the directories in LIBPATH if there
5709 # are no directories specified by -L.
5710 hardcode_minus_L=yes
5711 if test "$GCC" = yes && test -z "$link_static_flag"; then
5712 # Neither direct hardcoding nor static linking is supported with a
5714 hardcode_direct=unsupported
5719 if test "$host_cpu" = ia64; then
5720 # On IA64, the linker does run time linking by default, so we don't
5721 # have to do anything special.
5722 aix_use_runtimelinking=no
5723 exp_sym_flag='-Bexport'
5726 aix_use_runtimelinking=no
5728 # Test if we are trying to use run time linking or normal
5729 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5730 # need to do runtime linking.
5731 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5732 for ld_flag in $LDFLAGS; do
5735 aix_use_runtimelinking=yes
5742 exp_sym_flag='-bexport'
5743 no_entry_flag='-bnoentry'
5746 # When large executables or shared objects are built, AIX ld can
5747 # have problems creating the table of contents. If linking a library
5748 # or program results in "error TOC overflow" add -mminimal-toc to
5749 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5750 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5754 hardcode_libdir_separator=':'
5755 if test "$GCC" = yes; then
5756 case $host_os in aix4.[012]|aix4.[012].*)
5757 collect2name=`${CC} -print-prog-name=collect2`
5758 if test -f "$collect2name" && \
5759 strings "$collect2name" | grep resolve_lib_name >/dev/null
5761 # We have reworked collect2
5764 # We have old collect2
5765 hardcode_direct=unsupported
5766 # It fails to find uninstalled libraries when the uninstalled
5767 # path is not listed in the libpath. Setting hardcode_minus_L
5768 # to unsupported forces relinking
5769 hardcode_minus_L=yes
5770 hardcode_libdir_flag_spec='-L$libdir'
5771 hardcode_libdir_separator=
5775 shared_flag='-shared'
5778 if test "$host_cpu" = ia64; then
5779 shared_flag='${wl}-G'
5781 if test "$aix_use_runtimelinking" = yes; then
5782 shared_flag='${wl}-G'
5784 shared_flag='${wl}-bM:SRE'
5789 # It seems that -bexpall can do strange things, so it is better to
5790 # generate a list of symbols to export.
5791 always_export_symbols=yes
5792 if test "$aix_use_runtimelinking" = yes; then
5793 # Warning - without using the other runtime loading flags (-brtl),
5794 # -berok will link without error, but may produce a broken library.
5795 allow_undefined_flag='-berok'
5796 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5797 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"
5799 if test "$host_cpu" = ia64; then
5800 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5801 allow_undefined_flag="-z nodefs"
5802 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"
5804 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5805 # Warning - without using the other run time loading flags,
5806 # -berok will link without error, but may produce a broken library.
5807 allow_undefined_flag='${wl}-berok'
5808 # This is a bit strange, but is similar to how AIX traditionally builds
5809 # it's shared libraries.
5810 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'
5816 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)'
5817 hardcode_libdir_flag_spec='-L$libdir'
5818 hardcode_minus_L=yes
5819 # see comment about different semantics on the GNU ld section
5823 cygwin* | mingw* | pw32*)
5824 # When not using gcc, we currently assume that we are using
5825 # Microsoft Visual C++.
5826 # hardcode_libdir_flag_spec is actually meaningless, as there is
5827 # no search path for DLLs.
5828 hardcode_libdir_flag_spec=' '
5829 allow_undefined_flag=unsupported
5830 # Tell ltmain to make .lib files, not .a files.
5832 # FIXME: Setting linknames here is a bad hack.
5833 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5834 # The linker will automatically build a .lib file if we build a DLL.
5835 old_archive_from_new_cmds='true'
5836 # FIXME: Should let the user specify the lib program.
5837 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5838 fix_srcfile_path='`cygpath -w "$srcfile"`'
5841 darwin* | rhapsody*)
5843 rhapsody* | darwin1.[012])
5844 allow_undefined_flag='-undefined suppress'
5847 allow_undefined_flag='-flat_namespace -undefined suppress'
5850 # FIXME: Relying on posixy $() will cause problems for
5851 # cross-compilation, but unfortunately the echo tests do not
5852 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
5853 # `"' quotes if we put them in here... so don't!
5854 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)'
5855 # We need to add '_' to the symbols in $export_symbols first
5856 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5858 hardcode_shlibpath_var=no
5859 whole_archive_flag_spec='-all_load $convenience'
5866 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5867 # support. Future versions do this automatically, but an explicit c++rt0.o
5868 # does not break anything, and helps significantly (at the cost of a little
5871 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5872 hardcode_libdir_flag_spec='-R$libdir'
5874 hardcode_shlibpath_var=no
5877 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5879 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5881 hardcode_minus_L=yes
5882 hardcode_shlibpath_var=no
5885 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5887 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5888 hardcode_libdir_flag_spec='-R$libdir'
5890 hardcode_shlibpath_var=no
5893 hpux9* | hpux10* | hpux11*)
5895 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' ;;
5896 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5898 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5899 hardcode_libdir_separator=:
5901 hardcode_minus_L=yes # Not in the search PATH, but as the default
5902 # location of the library.
5903 export_dynamic_flag_spec='${wl}-E'
5906 irix5* | irix6* | nonstopux*)
5907 if test "$GCC" = yes; then
5908 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'
5909 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5911 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'
5912 hardcode_libdir_flag_spec='-rpath $libdir'
5914 hardcode_libdir_separator=:
5915 link_all_deplibs=yes
5919 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5920 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5922 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5924 hardcode_libdir_flag_spec='-R$libdir'
5926 hardcode_shlibpath_var=no
5930 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5932 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5933 hardcode_libdir_separator=:
5934 hardcode_shlibpath_var=no
5939 hardcode_shlibpath_var=no
5940 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5941 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5942 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5943 export_dynamic_flag_spec='${wl}-E'
5946 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5947 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5948 hardcode_libdir_flag_spec='-R$libdir'
5951 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5952 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5959 archive_cmds="\$CC -Wl,DLL \$libobjs \$deplibs \$compiler_flags -o \$lib &&
5960 cp \$linknames \$output_objdir && linknames=''"
5961 export_dynamic_flag_spec="-Wl,DLL"
5965 hardcode_libdir_flag_spec='-L$libdir'
5966 hardcode_minus_L=yes
5967 allow_undefined_flag=unsupported
5968 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'
5969 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5973 if test "$GCC" = yes; then
5974 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5975 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'
5977 allow_undefined_flag=' -expect_unresolved \*'
5978 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'
5980 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5981 hardcode_libdir_separator=:
5984 osf4* | osf5*) # as osf3* with the addition of -msym flag
5985 if test "$GCC" = yes; then
5986 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5987 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'
5988 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5990 allow_undefined_flag=' -expect_unresolved \*'
5991 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'
5992 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5993 $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'
5995 #Both c and cxx compiler support -rpath directly
5996 hardcode_libdir_flag_spec='-rpath $libdir'
5998 hardcode_libdir_separator=:
6002 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6003 hardcode_shlibpath_var=no
6004 runpath_var=LD_RUN_PATH
6005 hardcode_runpath_var=yes
6006 export_dynamic_flag_spec='${wl}-Bexport'
6010 # gcc --version < 3.0 without binutils cannot create self contained
6011 # shared libraries reliably, requiring libgcc.a to resolve some of
6012 # the object symbols generated in some cases. Libraries that use
6013 # assert need libgcc.a to resolve __eprintf, for example. Linking
6014 # a copy of libgcc.a into every shared library to guarantee resolving
6015 # such symbols causes other problems: According to Tim Van Holder
6016 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
6017 # (to the application) exception stack for one thing.
6018 no_undefined_flag=' -z defs'
6019 if test "$GCC" = yes; then
6020 case `$CC --version 2>/dev/null` in
6024 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
6025 *** create self contained shared libraries on Solaris systems, without
6026 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
6027 *** -no-undefined support, which will at least allow you to build shared
6028 *** libraries. However, you may find that when you link such libraries
6029 *** into an application without using GCC, you have to manually add
6030 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
6031 *** upgrade to a newer version of GCC. Another option is to rebuild your
6032 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
6039 # $CC -shared without GNU ld will not create a library from C++
6040 # object files and a static libstdc++, better avoid it by now
6041 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6042 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6043 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6044 hardcode_libdir_flag_spec='-R$libdir'
6045 hardcode_shlibpath_var=no
6047 solaris2.[0-5] | solaris2.[0-5].*) ;;
6048 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6049 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6051 link_all_deplibs=yes
6055 if test "x$host_vendor" = xsequent; then
6056 # Use $CC to link under sequent, because it throws in some extra .o
6057 # files that make .init and .fini sections work.
6058 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6060 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6062 hardcode_libdir_flag_spec='-L$libdir'
6064 hardcode_minus_L=yes
6065 hardcode_shlibpath_var=no
6069 case $host_vendor in
6071 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6072 hardcode_direct=yes # is this really true???
6075 ## LD is ld it makes a PLAMLIB
6076 ## CC just makes a GrossModule.
6077 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6078 reload_cmds='$CC -r -o $output$reload_objs'
6082 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6083 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6086 runpath_var='LD_RUN_PATH'
6087 hardcode_shlibpath_var=no
6091 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6092 hardcode_shlibpath_var=no
6093 export_dynamic_flag_spec='-Bexport'
6097 no_undefined_flag=' -z text'
6098 # $CC -shared without GNU ld will not create a library from C++
6099 # object files and a static libstdc++, better avoid it by now
6100 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6101 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6102 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6103 hardcode_libdir_flag_spec=
6104 hardcode_shlibpath_var=no
6105 runpath_var='LD_RUN_PATH'
6109 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6110 hardcode_libdir_flag_spec='-L$libdir'
6111 hardcode_shlibpath_var=no
6115 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6116 hardcode_libdir_flag_spec='-L$libdir'
6117 hardcode_shlibpath_var=no
6121 if test -d /usr/nec; then
6122 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6123 hardcode_shlibpath_var=no
6124 runpath_var=LD_RUN_PATH
6125 hardcode_runpath_var=yes
6131 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6134 hardcode_shlibpath_var=no
6135 hardcode_runpath_var=yes
6136 runpath_var=LD_RUN_PATH
6139 sysv5uw7* | unixware7*)
6140 no_undefined_flag='${wl}-z ${wl}text'
6141 if test "$GCC" = yes; then
6142 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6144 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6146 runpath_var='LD_RUN_PATH'
6147 hardcode_shlibpath_var=no
6155 echo "$ac_t""$ld_shlibs" 1>&6
6156 test "$ld_shlibs" = no && can_build_shared=no
6158 # Check hardcoding attributes.
6159 echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6
6160 echo "configure:6161: checking how to hardcode library paths into programs" >&5
6162 if test -n "$hardcode_libdir_flag_spec" || \
6163 test -n "$runpath_var"; then
6165 # We can hardcode non-existant directories.
6166 if test "$hardcode_direct" != no &&
6167 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6168 # have to relink, otherwise we might link with an installed library
6169 # when we should be linking with a yet-to-be-installed one
6170 ## test "$hardcode_shlibpath_var" != no &&
6171 test "$hardcode_minus_L" != no; then
6172 # Linking always hardcodes the temporary library directory.
6173 hardcode_action=relink
6175 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6176 hardcode_action=immediate
6179 # We cannot hardcode anything, or else we can only hardcode existing
6181 hardcode_action=unsupported
6183 echo "$ac_t""$hardcode_action" 1>&6
6187 echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6
6188 echo "configure:6189: checking whether stripping libraries is possible" >&5
6189 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6190 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6191 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6192 echo "$ac_t""yes" 1>&6
6194 echo "$ac_t""no" 1>&6
6197 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6198 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6200 # PORTME Fill in your ld.so characteristics
6201 echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6
6202 echo "configure:6203: checking dynamic linker characteristics" >&5
6204 libname_spec='lib$name'
6211 shlibpath_overrides_runpath=unknown
6213 dynamic_linker="$host_os ld.so"
6214 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6215 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6220 library_names_spec='${libname}${release}.so$versuffix $libname.a'
6221 shlibpath_var=LIBPATH
6223 # AIX has no versioning support, so we append a major version to the name.
6224 soname_spec='${libname}${release}.so$major'
6231 hardcode_into_libs=yes
6232 if test "$host_cpu" = ia64; then
6233 # AIX 5 supports IA64
6234 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6235 shlibpath_var=LD_LIBRARY_PATH
6237 # With GCC up to 2.95.x, collect2 would create an import file
6238 # for dependence libraries. The import file would start with
6239 # the line `#! .'. This would cause the generated library to
6240 # depend on `.', always an invalid library. This was fixed in
6241 # development snapshots of GCC prior to 3.0.
6243 aix4 | aix4.[01] | aix4.[01].*)
6244 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6246 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6253 # AIX (on Power*) has no versioning support, so currently we can
6254 # not hardcode correct soname into executable. Probably we can
6255 # add versioning support to collect2, so additional links can
6256 # be useful in future.
6257 if test "$aix_use_runtimelinking" = yes; then
6258 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6259 # instead of lib<name>.a to let people know that these are not
6260 # typical AIX shared libraries.
6261 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6263 # We preserve .a as extension for shared libraries through AIX4.2
6264 # and later when we are not doing run time linking.
6265 library_names_spec='${libname}${release}.a $libname.a'
6266 soname_spec='${libname}${release}.so$major'
6268 shlibpath_var=LIBPATH
6270 hardcode_into_libs=yes
6274 library_names_spec='$libname.ixlibrary $libname.a'
6275 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6276 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'
6280 library_names_spec='${libname}.so'
6281 dynamic_linker="$host_os ld.so"
6282 shlibpath_var=LIBRARY_PATH
6288 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6289 soname_spec='${libname}${release}.so$major'
6290 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6291 shlibpath_var=LD_LIBRARY_PATH
6292 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6293 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6294 export_dynamic_flag_spec=-rdynamic
6295 # the default ld.so.conf also contains /usr/contrib/lib and
6296 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6297 # libtool to hard-code these into programs
6300 cygwin* | mingw* | pw32*)
6301 version_type=windows
6304 case $GCC,$host_os in
6306 library_names_spec='$libname.dll.a'
6307 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6308 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6309 dldir=$destdir/`dirname \$dlpath`~
6310 test -d \$dldir || mkdir -p \$dldir~
6311 $install_prog .libs/$dlname \$dldir/$dlname'
6312 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6313 dlpath=$dir/\$dldll~
6317 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6318 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
6321 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6324 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6327 dynamic_linker='Win32 ld.exe'
6328 # FIXME: first we should search . and the directory the executable is in
6332 darwin* | rhapsody*)
6333 dynamic_linker="$host_os dyld"
6337 # FIXME: Relying on posixy $() will cause problems for
6338 # cross-compilation, but unfortunately the echo tests do not
6339 # yet detect zsh echo's removal of \ escapes.
6340 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)'
6341 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6342 shlibpath_overrides_runpath=yes
6343 shlibpath_var=DYLD_LIBRARY_PATH
6351 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6352 version_type=freebsd-$objformat
6353 case $version_type in
6355 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6360 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6364 shlibpath_var=LD_LIBRARY_PATH
6367 shlibpath_overrides_runpath=yes
6370 shlibpath_overrides_runpath=no
6371 hardcode_into_libs=yes
6380 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6381 soname_spec='${libname}${release}.so$major'
6382 shlibpath_var=LD_LIBRARY_PATH
6383 hardcode_into_libs=yes
6386 hpux9* | hpux10* | hpux11*)
6387 # Give a soname corresponding to the major version so that dld.sl refuses to
6388 # link against other versions.
6389 dynamic_linker="$host_os dld.sl"
6393 shlibpath_var=SHLIB_PATH
6394 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6395 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6396 soname_spec='${libname}${release}.sl$major'
6397 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6398 postinstall_cmds='chmod 555 $lib'
6401 irix5* | irix6* | nonstopux*)
6403 nonstopux*) version_type=nonstopux ;;
6404 *) version_type=irix ;;
6408 soname_spec='${libname}${release}.so$major'
6409 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6411 irix5* | nonstopux*)
6415 case $LD in # libtool.m4 will add one of these switches to LD
6416 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6417 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6418 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6419 *) libsuff= shlibsuff= libmagic=never-match;;
6423 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6424 shlibpath_overrides_runpath=no
6425 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6426 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6429 # No shared lib support for Linux oldld, aout, or coff.
6430 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6434 # This must be Linux ELF.
6439 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6440 soname_spec='${libname}${release}.so$major'
6441 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6442 shlibpath_var=LD_LIBRARY_PATH
6443 shlibpath_overrides_runpath=no
6444 # This implies no fast_install, which is unacceptable.
6445 # Some rework will be needed to allow for fast_install
6446 # before this can be enabled.
6447 hardcode_into_libs=yes
6449 # We used to test for /lib/ld.so.1 and disable shared libraries on
6450 # powerpc, because MkLinux only supported shared libraries with the
6451 # GNU dynamic linker. Since this was broken with cross compilers,
6452 # most powerpc-linux boxes support dynamic linking these days and
6453 # people can always --disable-shared, the test was removed, and we
6454 # assume the GNU/Linux dynamic linker is in use.
6455 dynamic_linker='GNU/Linux ld.so'
6462 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6463 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6464 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6465 dynamic_linker='NetBSD (a.out) ld.so'
6467 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6468 soname_spec='${libname}${release}.so$major'
6469 dynamic_linker='NetBSD ld.elf_so'
6471 shlibpath_var=LD_LIBRARY_PATH
6472 shlibpath_overrides_runpath=yes
6473 hardcode_into_libs=yes
6478 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6479 shlibpath_var=LD_LIBRARY_PATH
6480 shlibpath_overrides_runpath=yes
6487 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6489 openbsd2.[89] | openbsd2.[89].*)
6490 shlibpath_overrides_runpath=no
6493 shlibpath_overrides_runpath=yes
6497 shlibpath_overrides_runpath=yes
6499 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6500 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6501 shlibpath_var=LD_LIBRARY_PATH
6507 shlibpath_overrides_runpath=yes
6508 shlibpath_var=LIBPATH
6509 postinstall_cmds="rm \$destdir/\$linkname; cp \$linkname \$destdir; chmod a+x \$lib"
6510 # the library's exports are in libname.x; this is the file that must
6511 # actually be linked with to use a DLL.
6512 library_names_spec="\${libname}\${release}.so\$versuffix \${libname}.x"
6516 libname_spec='$name'
6518 library_names_spec='$libname.dll $libname.a'
6519 dynamic_linker='OS/2 ld.exe'
6520 shlibpath_var=LIBPATH
6523 osf3* | osf4* | osf5*)
6526 soname_spec='${libname}${release}.so$major'
6527 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6528 shlibpath_var=LD_LIBRARY_PATH
6529 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6530 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6531 hardcode_into_libs=yes
6536 soname_spec='${libname}${release}.so$major'
6537 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6538 shlibpath_var=LD_LIBRARY_PATH
6545 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6546 soname_spec='${libname}${release}.so$major'
6547 shlibpath_var=LD_LIBRARY_PATH
6548 shlibpath_overrides_runpath=yes
6549 hardcode_into_libs=yes
6550 # ldd complains unless libraries are executable
6551 postinstall_cmds='chmod +x $lib'
6556 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6557 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6558 shlibpath_var=LD_LIBRARY_PATH
6559 shlibpath_overrides_runpath=yes
6560 if test "$with_gnu_ld" = yes; then
6566 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6568 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6569 soname_spec='${libname}${release}.so$major'
6570 shlibpath_var=LD_LIBRARY_PATH
6571 case $host_vendor in
6573 shlibpath_overrides_runpath=no
6575 export_dynamic_flag_spec='${wl}-Blargedynsym'
6576 runpath_var=LD_RUN_PATH
6584 shlibpath_overrides_runpath=no
6585 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6592 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6593 soname_spec='${libname}${release}.so$major'
6594 shlibpath_var=LD_LIBRARY_PATH
6601 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6602 soname_spec='${libname}${release}.so$major'
6603 shlibpath_var=LD_LIBRARY_PATH
6607 if test -d /usr/nec ;then
6609 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6610 soname_spec='$libname.so.$major'
6611 shlibpath_var=LD_LIBRARY_PATH
6619 echo "$ac_t""$dynamic_linker" 1>&6
6620 test "$dynamic_linker" = no && can_build_shared=no
6622 # Report the final consequences.
6623 echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6
6624 echo "configure:6625: checking if libtool supports shared libraries" >&5
6625 echo "$ac_t""$can_build_shared" 1>&6
6627 echo $ac_n "checking whether to build shared libraries""... $ac_c" 1>&6
6628 echo "configure:6629: checking whether to build shared libraries" >&5
6629 test "$can_build_shared" = "no" && enable_shared=no
6631 # On AIX, shared libraries and static libraries use the same namespace, and
6632 # are all built from PIC.
6635 test "$enable_shared" = yes && enable_static=no
6636 if test -n "$RANLIB"; then
6637 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6638 postinstall_cmds='$RANLIB $lib'
6643 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6644 test "$enable_shared" = yes && enable_static=no
6648 echo "$ac_t""$enable_shared" 1>&6
6650 echo $ac_n "checking whether to build static libraries""... $ac_c" 1>&6
6651 echo "configure:6652: checking whether to build static libraries" >&5
6652 # Make sure either enable_shared or enable_static is yes.
6653 test "$enable_shared" = yes || enable_static=yes
6654 echo "$ac_t""$enable_static" 1>&6
6656 if test "$hardcode_action" = relink; then
6657 # Fast installation is not supported
6658 enable_fast_install=no
6659 elif test "$shlibpath_overrides_runpath" = yes ||
6660 test "$enable_shared" = no; then
6661 # Fast installation is not necessary
6662 enable_fast_install=needless
6665 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6666 if test "$GCC" = yes; then
6667 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6670 if test "x$enable_dlopen" != xyes; then
6671 enable_dlopen=unknown
6672 enable_dlopen_self=unknown
6673 enable_dlopen_self_static=unknown
6680 lt_cv_dlopen="load_add_on"
6682 lt_cv_dlopen_self=yes
6685 cygwin* | mingw* | pw32*)
6686 lt_cv_dlopen="LoadLibrary"
6691 echo $ac_n "checking for dllload""... $ac_c" 1>&6
6692 echo "configure:6693: checking for dllload" >&5
6693 if eval "test \"\${ac_cv_func_dllload+set}\" = set"; then
6694 echo $ac_n "(cached) $ac_c" 1>&6
6696 cat > conftest.$ac_ext <<EOF
6697 #line 6698 "configure"
6698 #include "confdefs.h"
6699 /* System header to define __stub macros and hopefully few prototypes,
6700 which can conflict with char dllload(); below. */
6702 /* Override any gcc2 internal prototype to avoid an error. */
6703 /* We use char because int might match the return type of a gcc2
6704 builtin and then its argument prototype would still apply. */
6710 /* The GNU C library defines this for functions which it implements
6711 to always fail with ENOSYS. Some functions are actually named
6712 something starting with __ and the normal name is an alias. */
6713 #if defined (__stub_dllload) || defined (__stub___dllload)
6721 if { (eval echo configure:6722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6723 eval "ac_cv_func_dllload=yes"
6725 echo "configure: failed program was:" >&5
6726 cat conftest.$ac_ext >&5
6728 eval "ac_cv_func_dllload=no"
6733 if eval "test \"`echo '$ac_cv_func_'dllload`\" = yes"; then
6734 echo "$ac_t""yes" 1>&6
6735 lt_cv_dlopen="dllload"
6737 echo "$ac_t""no" 1>&6
6738 echo $ac_n "checking for shl_load""... $ac_c" 1>&6
6739 echo "configure:6740: checking for shl_load" >&5
6740 if eval "test \"\${ac_cv_func_shl_load+set}\" = set"; then
6741 echo $ac_n "(cached) $ac_c" 1>&6
6743 cat > conftest.$ac_ext <<EOF
6744 #line 6745 "configure"
6745 #include "confdefs.h"
6746 /* System header to define __stub macros and hopefully few prototypes,
6747 which can conflict with char shl_load(); below. */
6749 /* Override any gcc2 internal prototype to avoid an error. */
6750 /* We use char because int might match the return type of a gcc2
6751 builtin and then its argument prototype would still apply. */
6757 /* The GNU C library defines this for functions which it implements
6758 to always fail with ENOSYS. Some functions are actually named
6759 something starting with __ and the normal name is an alias. */
6760 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6768 if { (eval echo configure:6769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6770 eval "ac_cv_func_shl_load=yes"
6772 echo "configure: failed program was:" >&5
6773 cat conftest.$ac_ext >&5
6775 eval "ac_cv_func_shl_load=no"
6780 if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
6781 echo "$ac_t""yes" 1>&6
6782 lt_cv_dlopen="shl_load"
6784 echo "$ac_t""no" 1>&6
6785 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
6786 echo "configure:6787: checking for shl_load in -ldld" >&5
6787 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-:%__p__%'`
6788 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6789 echo $ac_n "(cached) $ac_c" 1>&6
6791 ac_save_LIBS="$LIBS"
6793 cat > conftest.$ac_ext <<EOF
6794 #line 6795 "configure"
6795 #include "confdefs.h"
6796 /* Override any gcc2 internal prototype to avoid an error. */
6797 /* We use char because int might match the return type of a gcc2
6798 builtin and then its argument prototype would still apply. */
6805 if { (eval echo configure:6806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6807 eval "ac_cv_lib_$ac_lib_var=yes"
6809 echo "configure: failed program was:" >&5
6810 cat conftest.$ac_ext >&5
6812 eval "ac_cv_lib_$ac_lib_var=no"
6815 LIBS="$ac_save_LIBS"
6818 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6819 echo "$ac_t""yes" 1>&6
6820 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6822 echo "$ac_t""no" 1>&6
6823 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
6824 echo "configure:6825: checking for dlopen" >&5
6825 if eval "test \"\${ac_cv_func_dlopen+set}\" = set"; then
6826 echo $ac_n "(cached) $ac_c" 1>&6
6828 cat > conftest.$ac_ext <<EOF
6829 #line 6830 "configure"
6830 #include "confdefs.h"
6831 /* System header to define __stub macros and hopefully few prototypes,
6832 which can conflict with char dlopen(); below. */
6834 /* Override any gcc2 internal prototype to avoid an error. */
6835 /* We use char because int might match the return type of a gcc2
6836 builtin and then its argument prototype would still apply. */
6842 /* The GNU C library defines this for functions which it implements
6843 to always fail with ENOSYS. Some functions are actually named
6844 something starting with __ and the normal name is an alias. */
6845 #if defined (__stub_dlopen) || defined (__stub___dlopen)
6853 if { (eval echo configure:6854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6855 eval "ac_cv_func_dlopen=yes"
6857 echo "configure: failed program was:" >&5
6858 cat conftest.$ac_ext >&5
6860 eval "ac_cv_func_dlopen=no"
6865 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
6866 echo "$ac_t""yes" 1>&6
6867 lt_cv_dlopen="dlopen"
6869 echo "$ac_t""no" 1>&6
6870 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
6871 echo "configure:6872: checking for dlopen in -ldl" >&5
6872 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-:%__p__%'`
6873 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6874 echo $ac_n "(cached) $ac_c" 1>&6
6876 ac_save_LIBS="$LIBS"
6878 cat > conftest.$ac_ext <<EOF
6879 #line 6880 "configure"
6880 #include "confdefs.h"
6881 /* Override any gcc2 internal prototype to avoid an error. */
6882 /* We use char because int might match the return type of a gcc2
6883 builtin and then its argument prototype would still apply. */
6890 if { (eval echo configure:6891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6892 eval "ac_cv_lib_$ac_lib_var=yes"
6894 echo "configure: failed program was:" >&5
6895 cat conftest.$ac_ext >&5
6897 eval "ac_cv_lib_$ac_lib_var=no"
6900 LIBS="$ac_save_LIBS"
6903 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6904 echo "$ac_t""yes" 1>&6
6905 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6907 echo "$ac_t""no" 1>&6
6908 echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
6909 echo "configure:6910: checking for dlopen in -lsvld" >&5
6910 ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-:%__p__%'`
6911 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6912 echo $ac_n "(cached) $ac_c" 1>&6
6914 ac_save_LIBS="$LIBS"
6916 cat > conftest.$ac_ext <<EOF
6917 #line 6918 "configure"
6918 #include "confdefs.h"
6919 /* Override any gcc2 internal prototype to avoid an error. */
6920 /* We use char because int might match the return type of a gcc2
6921 builtin and then its argument prototype would still apply. */
6928 if { (eval echo configure:6929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6930 eval "ac_cv_lib_$ac_lib_var=yes"
6932 echo "configure: failed program was:" >&5
6933 cat conftest.$ac_ext >&5
6935 eval "ac_cv_lib_$ac_lib_var=no"
6938 LIBS="$ac_save_LIBS"
6941 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6942 echo "$ac_t""yes" 1>&6
6943 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6945 echo "$ac_t""no" 1>&6
6946 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
6947 echo "configure:6948: checking for dld_link in -ldld" >&5
6948 ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-:%__p__%'`
6949 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6950 echo $ac_n "(cached) $ac_c" 1>&6
6952 ac_save_LIBS="$LIBS"
6954 cat > conftest.$ac_ext <<EOF
6955 #line 6956 "configure"
6956 #include "confdefs.h"
6957 /* Override any gcc2 internal prototype to avoid an error. */
6958 /* We use char because int might match the return type of a gcc2
6959 builtin and then its argument prototype would still apply. */
6966 if { (eval echo configure:6967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6968 eval "ac_cv_lib_$ac_lib_var=yes"
6970 echo "configure: failed program was:" >&5
6971 cat conftest.$ac_ext >&5
6973 eval "ac_cv_lib_$ac_lib_var=no"
6976 LIBS="$ac_save_LIBS"
6979 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6980 echo "$ac_t""yes" 1>&6
6981 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6983 echo "$ac_t""no" 1>&6
7007 if test "x$lt_cv_dlopen" != xno; then
7013 case $lt_cv_dlopen in
7015 save_CPPFLAGS="$CPPFLAGS"
7016 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7018 save_LDFLAGS="$LDFLAGS"
7019 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7022 LIBS="$lt_cv_dlopen_libs $LIBS"
7024 echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
7025 echo "configure:7026: checking whether a program can dlopen itself" >&5
7026 if eval "test \"\${lt_cv_dlopen_self+set}\" = set"; then
7027 echo $ac_n "(cached) $ac_c" 1>&6
7029 if test "$cross_compiling" = yes; then :
7030 lt_cv_dlopen_self=cross
7032 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7033 lt_status=$lt_dlunknown
7034 cat > conftest.$ac_ext <<EOF
7035 #line 7036 "configure"
7036 #include "confdefs.h"
7045 # define LT_DLGLOBAL RTLD_GLOBAL
7048 # define LT_DLGLOBAL DL_GLOBAL
7050 # define LT_DLGLOBAL 0
7054 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7055 find out it does not work in some platform. */
7056 #ifndef LT_DLLAZY_OR_NOW
7058 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7061 # define LT_DLLAZY_OR_NOW DL_LAZY
7064 # define LT_DLLAZY_OR_NOW RTLD_NOW
7067 # define LT_DLLAZY_OR_NOW DL_NOW
7069 # define LT_DLLAZY_OR_NOW 0
7077 extern "C" void exit (int);
7080 void fnord() { int i=42;}
7083 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7084 int status = $lt_dlunknown;
7088 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7089 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7090 /* dlclose (self); */
7096 if { (eval echo configure:7097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
7097 (./conftest; exit; ) 2>/dev/null
7100 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7101 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7102 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7105 # compilation failed
7106 lt_cv_dlopen_self=no
7114 echo "$ac_t""$lt_cv_dlopen_self" 1>&6
7116 if test "x$lt_cv_dlopen_self" = xyes; then
7117 LDFLAGS="$LDFLAGS $link_static_flag"
7118 echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
7119 echo "configure:7120: checking whether a statically linked program can dlopen itself" >&5
7120 if eval "test \"\${lt_cv_dlopen_self_static+set}\" = set"; then
7121 echo $ac_n "(cached) $ac_c" 1>&6
7123 if test "$cross_compiling" = yes; then :
7124 lt_cv_dlopen_self_static=cross
7126 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7127 lt_status=$lt_dlunknown
7128 cat > conftest.$ac_ext <<EOF
7129 #line 7130 "configure"
7130 #include "confdefs.h"
7139 # define LT_DLGLOBAL RTLD_GLOBAL
7142 # define LT_DLGLOBAL DL_GLOBAL
7144 # define LT_DLGLOBAL 0
7148 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7149 find out it does not work in some platform. */
7150 #ifndef LT_DLLAZY_OR_NOW
7152 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7155 # define LT_DLLAZY_OR_NOW DL_LAZY
7158 # define LT_DLLAZY_OR_NOW RTLD_NOW
7161 # define LT_DLLAZY_OR_NOW DL_NOW
7163 # define LT_DLLAZY_OR_NOW 0
7171 extern "C" void exit (int);
7174 void fnord() { int i=42;}
7177 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7178 int status = $lt_dlunknown;
7182 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7183 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7184 /* dlclose (self); */
7190 if { (eval echo configure:7191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
7191 (./conftest; exit; ) 2>/dev/null
7194 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7195 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7196 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7199 # compilation failed
7200 lt_cv_dlopen_self_static=no
7208 echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6
7211 CPPFLAGS="$save_CPPFLAGS"
7212 LDFLAGS="$save_LDFLAGS"
7217 case $lt_cv_dlopen_self in
7218 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7219 *) enable_dlopen_self=unknown ;;
7222 case $lt_cv_dlopen_self_static in
7223 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7224 *) enable_dlopen_self_static=unknown ;;
7229 if test "$enable_shared" = yes && test "$GCC" = yes; then
7230 case $archive_cmds in
7232 # FIXME: we may have to deal with multi-command sequences.
7235 # Test whether the compiler implicitly links with -lc since on some
7236 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7237 # to ld, don't add -lc before -lgcc.
7238 echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6
7239 echo "configure:7240: checking whether -lc should be explicitly linked in" >&5
7240 if eval "test \"\${lt_cv_archive_cmds_need_lc+set}\" = set"; then
7241 echo $ac_n "(cached) $ac_c" 1>&6
7244 echo 'static int dummy;' > conftest.$ac_ext
7246 if { (eval echo configure:7247: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7249 libobjs=conftest.$ac_objext
7251 wl=$lt_cv_prog_cc_wl
7257 save_allow_undefined_flag=$allow_undefined_flag
7258 allow_undefined_flag=
7259 if { (eval echo configure:7260: \"$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; }
7261 lt_cv_archive_cmds_need_lc=no
7263 lt_cv_archive_cmds_need_lc=yes
7265 allow_undefined_flag=$save_allow_undefined_flag
7267 cat conftest.err 1>&5
7271 echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6
7275 need_lc=${lt_cv_archive_cmds_need_lc-yes}
7277 # The second clause should only fire when bootstrapping the
7278 # libtool distribution, otherwise you forgot to ship ltmain.sh
7279 # with your package, and you will get complaints that there are
7280 # no rules to generate ltmain.sh.
7281 if test -f "$ltmain"; then
7284 # If there is no Makefile yet, we rely on a make rule to execute
7285 # `config.status --recheck' to rerun these tests and create the
7286 # libtool script then.
7287 test -f Makefile && make "$ltmain"
7290 if test -f "$ltmain"; then
7291 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7294 echo creating $ofile
7296 # Now quote all the things that may contain metacharacters while being
7297 # careful not to overquote the AC_SUBSTed values. We take copies of the
7298 # variables and quote the copies for generation of the libtool script.
7299 for var in echo old_CC old_CFLAGS SED \
7300 AR AR_FLAGS CC LD LN_S NM SHELL \
7301 reload_flag reload_cmds wl \
7302 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7303 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7304 library_names_spec soname_spec \
7305 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7306 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7307 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7308 old_striplib striplib file_magic_cmd export_symbols_cmds \
7309 deplibs_check_method allow_undefined_flag no_undefined_flag \
7310 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7311 global_symbol_to_c_name_address \
7312 hardcode_libdir_flag_spec hardcode_libdir_separator \
7313 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7314 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7317 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7318 old_postinstall_cmds | old_postuninstall_cmds | \
7319 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7320 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7321 postinstall_cmds | postuninstall_cmds | \
7322 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7323 # Double-quote double-evaled strings.
7324 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7327 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7332 cat <<__EOF__ > "${ofile}T"
7335 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7336 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7337 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7339 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7340 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7342 # This program is free software; you can redistribute it and/or modify
7343 # it under the terms of the GNU General Public License as published by
7344 # the Free Software Foundation; either version 2 of the License, or
7345 # (at your option) any later version.
7347 # This program is distributed in the hope that it will be useful, but
7348 # WITHOUT ANY WARRANTY; without even the implied warranty of
7349 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7350 # General Public License for more details.
7352 # You should have received a copy of the GNU General Public License
7353 # along with this program; if not, write to the Free Software
7354 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7356 # As a special exception to the GNU General Public License, if you
7357 # distribute this file as part of a program that contains a
7358 # configuration script generated by Autoconf, you may include it under
7359 # the same distribution terms that you use for the rest of that program.
7361 # A sed that does not truncate output.
7364 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7365 Xsed="${SED} -e s/^X//"
7367 # The HP-UX ksh and POSIX shell print the target directory to stdout
7369 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7371 # ### BEGIN LIBTOOL CONFIG
7373 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7375 # Shell to use when invoking shell scripts.
7378 # Whether or not to build shared libraries.
7379 build_libtool_libs=$enable_shared
7381 # Whether or not to build static libraries.
7382 build_old_libs=$enable_static
7384 # Whether or not to add -lc for building shared libraries.
7385 build_libtool_need_lc=$need_lc
7387 # Whether or not to optimize for fast installation.
7388 fast_install=$enable_fast_install
7391 host_alias=$host_alias
7394 # An echo program that does not interpret backslashes.
7399 AR_FLAGS=$lt_AR_FLAGS
7401 # The default C compiler.
7404 # Is the compiler the GNU C compiler?
7407 # The linker used to build libraries.
7410 # Whether we need hard or soft links.
7413 # A BSD-compatible nm program.
7416 # A symbol stripping program
7419 # Used to examine libraries when file_magic_cmd begins "file"
7420 MAGIC_CMD=$MAGIC_CMD
7422 # Used on cygwin: DLL creation program.
7425 # Used on cygwin: object dumper.
7428 # Used on cygwin: assembler.
7431 # The name of the directory that contains temporary libtool files.
7434 # How to create reloadable object files.
7435 reload_flag=$lt_reload_flag
7436 reload_cmds=$lt_reload_cmds
7438 # How to pass a linker flag through the compiler.
7441 # Object file suffix (normally "o").
7444 # Old archive suffix (normally "a").
7447 # Executable file suffix (normally "").
7450 # Additional compiler flags for building library objects.
7451 pic_flag=$lt_pic_flag
7454 # Does compiler simultaneously support -c and -o options?
7455 compiler_c_o=$lt_compiler_c_o
7457 # Can we write directly to a .lo ?
7458 compiler_o_lo=$lt_compiler_o_lo
7460 # Must we lock files when doing compilation ?
7461 need_locks=$lt_need_locks
7463 # Do we need the lib prefix for modules?
7464 need_lib_prefix=$need_lib_prefix
7466 # Do we need a version for libraries?
7467 need_version=$need_version
7469 # Whether dlopen is supported.
7470 dlopen_support=$enable_dlopen
7472 # Whether dlopen of programs is supported.
7473 dlopen_self=$enable_dlopen_self
7475 # Whether dlopen of statically linked programs is supported.
7476 dlopen_self_static=$enable_dlopen_self_static
7478 # Compiler flag to prevent dynamic linking.
7479 link_static_flag=$lt_link_static_flag
7481 # Compiler flag to turn off builtin functions.
7482 no_builtin_flag=$lt_no_builtin_flag
7484 # Compiler flag to allow reflexive dlopens.
7485 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7487 # Compiler flag to generate shared objects directly from archives.
7488 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7490 # Compiler flag to generate thread-safe objects.
7491 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7493 # Library versioning type.
7494 version_type=$version_type
7496 # Format of library name prefix.
7497 libname_spec=$lt_libname_spec
7499 # List of archive names. First name is the real one, the rest are links.
7500 # The last name is the one that the linker finds with -lNAME.
7501 library_names_spec=$lt_library_names_spec
7503 # The coded name of the library, if different from the real name.
7504 soname_spec=$lt_soname_spec
7506 # Commands used to build and install an old-style archive.
7508 old_archive_cmds=$lt_old_archive_cmds
7509 old_postinstall_cmds=$lt_old_postinstall_cmds
7510 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7512 # Create an old-style archive from a shared archive.
7513 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7515 # Create a temporary old-style archive to link instead of a shared archive.
7516 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7518 # Commands used to build and install a shared archive.
7519 archive_cmds=$lt_archive_cmds
7520 archive_expsym_cmds=$lt_archive_expsym_cmds
7521 postinstall_cmds=$lt_postinstall_cmds
7522 postuninstall_cmds=$lt_postuninstall_cmds
7524 # Commands to strip libraries.
7525 old_striplib=$lt_old_striplib
7526 striplib=$lt_striplib
7528 # Method to check whether dependent libraries are shared objects.
7529 deplibs_check_method=$lt_deplibs_check_method
7531 # Command to use when deplibs_check_method == file_magic.
7532 file_magic_cmd=$lt_file_magic_cmd
7534 # Flag that allows shared libraries with undefined symbols to be built.
7535 allow_undefined_flag=$lt_allow_undefined_flag
7537 # Flag that forces no undefined symbols.
7538 no_undefined_flag=$lt_no_undefined_flag
7540 # Commands used to finish a libtool library installation in a directory.
7541 finish_cmds=$lt_finish_cmds
7543 # Same as above, but a single script fragment to be evaled but not shown.
7544 finish_eval=$lt_finish_eval
7546 # Take the output of nm and produce a listing of raw symbols and C names.
7547 global_symbol_pipe=$lt_global_symbol_pipe
7549 # Transform the output of nm in a proper C declaration
7550 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7552 # Transform the output of nm in a C name address pair
7553 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7555 # This is the shared library runtime path variable.
7556 runpath_var=$runpath_var
7558 # This is the shared library path variable.
7559 shlibpath_var=$shlibpath_var
7561 # Is shlibpath searched before the hard-coded library search path?
7562 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7564 # How to hardcode a shared library path into an executable.
7565 hardcode_action=$hardcode_action
7567 # Whether we should hardcode library paths into libraries.
7568 hardcode_into_libs=$hardcode_into_libs
7570 # Flag to hardcode \$libdir into a binary during linking.
7571 # This must work even if \$libdir does not exist.
7572 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7574 # Whether we need a single -rpath flag with a separated argument.
7575 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7577 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7579 hardcode_direct=$hardcode_direct
7581 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7583 hardcode_minus_L=$hardcode_minus_L
7585 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7586 # the resulting binary.
7587 hardcode_shlibpath_var=$hardcode_shlibpath_var
7589 # Variables whose values should be saved in libtool wrapper scripts and
7590 # restored at relink time.
7591 variables_saved_for_relink="$variables_saved_for_relink"
7593 # Whether libtool must link a program against all its dependency libraries.
7594 link_all_deplibs=$link_all_deplibs
7596 # Compile-time system search path for libraries
7597 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7599 # Run-time system search path for libraries
7600 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7602 # Fix the shell variable \$srcfile for the compiler.
7603 fix_srcfile_path="$fix_srcfile_path"
7605 # Set to yes if exported symbols are required.
7606 always_export_symbols=$always_export_symbols
7608 # The commands to list exported symbols.
7609 export_symbols_cmds=$lt_export_symbols_cmds
7611 # The commands to extract the exported symbol list from a shared archive.
7612 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7614 # Symbols that should not be listed in the preloaded symbols.
7615 exclude_expsyms=$lt_exclude_expsyms
7617 # Symbols that must always be exported.
7618 include_expsyms=$lt_include_expsyms
7620 # ### END LIBTOOL CONFIG
7626 cat <<\EOF >> "${ofile}T"
7628 # AIX sometimes has problems with the GCC collect2 program. For some
7629 # reason, if we set the COLLECT_NAMES environment variable, the problems
7630 # vanish in a puff of smoke.
7631 if test "X${COLLECT_NAMES+set}" != Xset; then
7633 export COLLECT_NAMES
7640 cygwin* | mingw* | pw32* | os2*)
7641 cat <<'EOF' >> "${ofile}T"
7642 # This is a source program that is used to create dlls on Windows
7643 # Don't remove nor modify the starting and closing comments
7644 # /* ltdll.c starts here */
7645 # #define WIN32_LEAN_AND_MEAN
7646 # #include <windows.h>
7647 # #undef WIN32_LEAN_AND_MEAN
7648 # #include <stdio.h>
7650 # #ifndef __CYGWIN__
7651 # # ifdef __CYGWIN32__
7652 # # define __CYGWIN__ __CYGWIN32__
7656 # #ifdef __cplusplus
7659 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7660 # #ifdef __cplusplus
7665 # #include <cygwin/cygwin_dll.h>
7666 # DECLARE_CYGWIN_DLL( DllMain );
7668 # HINSTANCE __hDllInstance_base;
7671 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7673 # __hDllInstance_base = hInst;
7676 # /* ltdll.c ends here */
7677 # This is a source program that is used to create import libraries
7678 # on Windows for dlls which lack them. Don't remove nor modify the
7679 # starting and closing comments
7680 # /* impgen.c starts here */
7681 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7683 # This file is part of GNU libtool.
7685 # This program is free software; you can redistribute it and/or modify
7686 # it under the terms of the GNU General Public License as published by
7687 # the Free Software Foundation; either version 2 of the License, or
7688 # (at your option) any later version.
7690 # This program is distributed in the hope that it will be useful,
7691 # but WITHOUT ANY WARRANTY; without even the implied warranty of
7692 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7693 # GNU General Public License for more details.
7695 # You should have received a copy of the GNU General Public License
7696 # along with this program; if not, write to the Free Software
7697 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7700 # #include <stdio.h> /* for printf() */
7701 # #include <unistd.h> /* for open(), lseek(), read() */
7702 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7703 # #include <string.h> /* for strdup() */
7705 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
7707 # #define O_BINARY 0
7710 # static unsigned int
7711 # pe_get16 (fd, offset)
7715 # unsigned char b[2];
7716 # lseek (fd, offset, SEEK_SET);
7718 # return b[0] + (b[1]<<8);
7721 # static unsigned int
7722 # pe_get32 (fd, offset)
7726 # unsigned char b[4];
7727 # lseek (fd, offset, SEEK_SET);
7729 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7732 # static unsigned int
7736 # unsigned char *b = ptr;
7737 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7746 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7747 # unsigned long export_rva, export_size, nsections, secptr, expptr;
7748 # unsigned long name_rvas, nexp;
7749 # unsigned char *expdata, *erva;
7750 # char *filename, *dll_name;
7752 # filename = argv[1];
7754 # dll = open(filename, O_RDONLY|O_BINARY);
7758 # dll_name = filename;
7760 # for (i=0; filename[i]; i++)
7761 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7762 # dll_name = filename + i +1;
7764 # pe_header_offset = pe_get32 (dll, 0x3c);
7765 # opthdr_ofs = pe_header_offset + 4 + 20;
7766 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
7768 # if (num_entries < 1) /* no exports */
7771 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
7772 # export_size = pe_get32 (dll, opthdr_ofs + 100);
7773 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7774 # secptr = (pe_header_offset + 4 + 20 +
7775 # pe_get16 (dll, pe_header_offset + 4 + 16));
7778 # for (i = 0; i < nsections; i++)
7781 # unsigned long secptr1 = secptr + 40 * i;
7782 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7783 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7784 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7785 # lseek(dll, secptr1, SEEK_SET);
7786 # read(dll, sname, 8);
7787 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
7789 # expptr = fptr + (export_rva - vaddr);
7790 # if (export_rva + export_size > vaddr + vsize)
7791 # export_size = vsize - (export_rva - vaddr);
7796 # expdata = (unsigned char*)malloc(export_size);
7797 # lseek (dll, expptr, SEEK_SET);
7798 # read (dll, expdata, export_size);
7799 # erva = expdata - export_rva;
7801 # nexp = pe_as32 (expdata+24);
7802 # name_rvas = pe_as32 (expdata+32);
7804 # printf ("EXPORTS\n");
7805 # for (i = 0; i<nexp; i++)
7807 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7808 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7813 # /* impgen.c ends here */
7819 # We use sed instead of cat because bash on DJGPP gets confused if
7820 # if finds mixed CR/LF and LF-only lines. Since sed operates in
7821 # text mode, it properly converts lines to CR/LF. This bash problem
7822 # is reportedly fixed, but why not run on old versions too?
7823 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7825 mv -f "${ofile}T" "$ofile" || \
7826 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7834 # This can be used to rebuild libtool when needed
7835 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7837 # Always use our own libtool.
7838 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7840 # Prevent multiple expansion
7844 # test for ln hardlink support
7845 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
7846 echo "configure:7847: checking whether ln works" >&5
7847 if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then
7848 echo $ac_n "(cached) $ac_c" 1>&6
7850 rm -f conftest.src conftest.dst
7851 echo "conftest" > conftest.src
7852 if ln conftest.src conftest.dst 2>/dev/null
7854 ol_cv_prog_LN_H="ln"
7856 ol_cv_prog_LN_H="cp"
7858 rm -f conftest.src conftest.dst
7861 LN_H="$ol_cv_prog_LN_H"
7862 if test "$ol_cv_prog_LN_H" = "ln"; then
7863 echo "$ac_t""yes" 1>&6
7865 echo "$ac_t""no" 1>&6
7868 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
7869 echo "configure:7870: checking whether ln -s works" >&5
7870 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
7871 echo $ac_n "(cached) $ac_c" 1>&6
7874 if ln -s X conftestdata 2>/dev/null
7877 ac_cv_prog_LN_S="ln -s"
7882 LN_S="$ac_cv_prog_LN_S"
7883 if test "$ac_cv_prog_LN_S" = "ln -s"; then
7884 echo "$ac_t""yes" 1>&6
7886 echo "$ac_t""no" 1>&6
7891 if test $ol_enable_perl != no ; then
7892 # Extract the first word of "perl", so it can be a program name with args.
7893 set dummy perl; ac_word=$2
7894 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7895 echo "configure:7896: checking for $ac_word" >&5
7896 if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then
7897 echo $ac_n "(cached) $ac_c" 1>&6
7901 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
7904 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
7907 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7909 for ac_dir in $ac_dummy; do
7910 test -z "$ac_dir" && ac_dir=.
7911 if test -f $ac_dir/$ac_word; then
7912 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
7917 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
7921 PERLBIN="$ac_cv_path_PERLBIN"
7922 if test -n "$PERLBIN"; then
7923 echo "$ac_t""$PERLBIN" 1>&6
7925 echo "$ac_t""no" 1>&6
7929 if test "no$PERLBIN" = "no" ; then
7930 if test $ol_enable_perl = yes ; then
7931 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
7935 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
7936 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
7938 if test x"$ol_with_perl_module" = "xstatic" ; then
7939 SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
7941 MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
7947 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
7948 echo "configure:7949: checking how to run the C preprocessor" >&5
7949 # On Suns, sometimes $CPP names a directory.
7950 if test -n "$CPP" && test -d "$CPP"; then
7953 if test -z "$CPP"; then
7954 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
7955 echo $ac_n "(cached) $ac_c" 1>&6
7957 # This must be in double quotes, not single quotes, because CPP may get
7958 # substituted into the Makefile and "${CC-cc}" will confuse make.
7960 # On the NeXT, cc -E runs the code through the compiler's parser,
7961 # not just through cpp.
7962 cat > conftest.$ac_ext <<EOF
7963 #line 7964 "configure"
7964 #include "confdefs.h"
7968 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7969 { (eval echo configure:7970: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7970 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7971 if test -z "$ac_err"; then
7975 echo "configure: failed program was:" >&5
7976 cat conftest.$ac_ext >&5
7978 CPP="${CC-cc} -E -traditional-cpp"
7979 cat > conftest.$ac_ext <<EOF
7980 #line 7981 "configure"
7981 #include "confdefs.h"
7985 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7986 { (eval echo configure:7987: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7987 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7988 if test -z "$ac_err"; then
7992 echo "configure: failed program was:" >&5
7993 cat conftest.$ac_ext >&5
7995 CPP="${CC-cc} -nologo -E"
7996 cat > conftest.$ac_ext <<EOF
7997 #line 7998 "configure"
7998 #include "confdefs.h"
8002 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8003 { (eval echo configure:8004: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8004 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8005 if test -z "$ac_err"; then
8009 echo "configure: failed program was:" >&5
8010 cat conftest.$ac_ext >&5
8019 ac_cv_prog_CPP="$CPP"
8021 CPP="$ac_cv_prog_CPP"
8023 ac_cv_prog_CPP="$CPP"
8025 echo "$ac_t""$CPP" 1>&6
8028 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
8029 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
8031 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
8032 echo "configure: warning: programs compiled here do run here..." 1>&2
8033 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
8035 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
8036 echo "configure: warning: programs compiled here do not run here..." 1>&2
8037 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
8041 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
8042 echo "configure:8043: checking for Cygwin environment" >&5
8043 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
8044 echo $ac_n "(cached) $ac_c" 1>&6
8046 cat > conftest.$ac_ext <<EOF
8047 #line 8048 "configure"
8048 #include "confdefs.h"
8053 #define __CYGWIN__ __CYGWIN32__
8058 if { (eval echo configure:8059: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8062 echo "configure: failed program was:" >&5
8063 cat conftest.$ac_ext >&5
8070 echo "$ac_t""$ac_cv_cygwin" 1>&6
8072 test "$ac_cv_cygwin" = yes && CYGWIN=yes
8073 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
8074 echo "configure:8075: checking for mingw32 environment" >&5
8075 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
8076 echo $ac_n "(cached) $ac_c" 1>&6
8078 cat > conftest.$ac_ext <<EOF
8079 #line 8080 "configure"
8080 #include "confdefs.h"
8086 if { (eval echo configure:8087: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8090 echo "configure: failed program was:" >&5
8091 cat conftest.$ac_ext >&5
8098 echo "$ac_t""$ac_cv_mingw32" 1>&6
8100 test "$ac_cv_mingw32" = yes && MINGW32=yes
8104 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
8105 echo "configure:8106: checking for executable suffix" >&5
8106 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
8107 echo $ac_n "(cached) $ac_c" 1>&6
8109 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
8113 echo 'int main () { return 0; }' > conftest.$ac_ext
8115 if { (eval echo configure:8116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
8116 for file in conftest.*; do
8118 *.c | *.C | *.o | *.obj | *.xcoff) ;;
8119 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
8123 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
8126 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
8131 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
8132 echo "$ac_t""${ac_cv_exeext}" 1>&6
8135 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
8136 echo "configure:8137: checking for object suffix" >&5
8137 if eval "test \"\${ac_cv_objext+set}\" = set"; then
8138 echo $ac_n "(cached) $ac_c" 1>&6
8141 echo 'int i = 1;' > conftest.$ac_ext
8142 if { (eval echo configure:8143: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8143 for ac_file in conftest.*; do
8146 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
8150 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
8155 echo "$ac_t""$ac_cv_objext" 1>&6
8156 OBJEXT=$ac_cv_objext
8157 ac_objext=$ac_cv_objext
8160 cat >> confdefs.h <<EOF
8161 #define EXEEXT "${EXEEXT}"
8165 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
8166 echo "configure:8167: checking for be_app in -lbe" >&5
8167 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
8168 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8169 echo $ac_n "(cached) $ac_c" 1>&6
8171 ac_save_LIBS="$LIBS"
8172 LIBS="-lbe -lroot -lnet $LIBS"
8173 cat > conftest.$ac_ext <<EOF
8174 #line 8175 "configure"
8175 #include "confdefs.h"
8176 /* Override any gcc2 internal prototype to avoid an error. */
8177 /* We use char because int might match the return type of a gcc2
8178 builtin and then its argument prototype would still apply. */
8185 if { (eval echo configure:8186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8187 eval "ac_cv_lib_$ac_lib_var=yes"
8189 echo "configure: failed program was:" >&5
8190 cat conftest.$ac_ext >&5
8192 eval "ac_cv_lib_$ac_lib_var=no"
8195 LIBS="$ac_save_LIBS"
8198 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8199 echo "$ac_t""yes" 1>&6
8200 LIBS="$LIBS -lbe -lroot -lnet"
8202 echo "$ac_t""no" 1>&6
8210 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
8211 echo "configure:8212: checking for ${CC-cc} option to accept ANSI C" >&5
8212 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
8213 echo $ac_n "(cached) $ac_c" 1>&6
8215 am_cv_prog_cc_stdc=no
8217 # Don't try gcc -ansi; that turns off useful extensions and
8218 # breaks some systems' header files.
8219 # AIX -qlanglvl=ansi
8220 # Ultrix and OSF/1 -std1
8221 # HP-UX 10.20 and later -Ae
8222 # HP-UX older versions -Aa -D_HPUX_SOURCE
8223 # SVR4 -Xc -D__EXTENSIONS__
8224 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
8226 CC="$ac_save_CC $ac_arg"
8227 cat > conftest.$ac_ext <<EOF
8228 #line 8229 "configure"
8229 #include "confdefs.h"
8232 #include <sys/types.h>
8233 #include <sys/stat.h>
8234 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
8235 struct buf { int x; };
8236 FILE * (*rcsopen) (struct buf *, struct stat *, int);
8237 static char *e (p, i)
8243 static char *f (char * (*g) (char **, int), char **p, ...)
8248 s = g (p, va_arg (v,int));
8252 int test (int i, double x);
8253 struct s1 {int (*f) (int a);};
8254 struct s2 {int (*f) (double a);};
8255 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
8261 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
8265 if { (eval echo configure:8266: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8267 am_cv_prog_cc_stdc="$ac_arg"; break
8269 echo "configure: failed program was:" >&5
8270 cat conftest.$ac_ext >&5
8278 if test -z "$am_cv_prog_cc_stdc"; then
8279 echo "$ac_t""none needed" 1>&6
8281 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
8283 case "x$am_cv_prog_cc_stdc" in
8285 *) CC="$CC $am_cv_prog_cc_stdc" ;;
8288 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
8289 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
8292 # test for make depend flag
8295 if test -z "${MKDEP}"; then
8297 if test -z "${MKDEP_FLAGS}"; then
8298 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
8299 echo "configure:8300: checking for ${OL_MKDEP} depend flag" >&5
8300 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
8301 echo $ac_n "(cached) $ac_c" 1>&6
8305 for flag in "-M" "-xM"; do
8306 cat > conftest.c <<EOF
8309 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:8310: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
8310 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
8312 if test ! -f conftest."${ac_object}" ; then
8314 OL_MKDEP_FLAGS="$flag"
8323 echo "$ac_t""$ol_cv_mkdep" 1>&6
8326 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
8331 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
8336 if test "${ol_cv_mkdep}" = no ; then
8337 # this will soon become an error
8338 echo "configure: warning: do not know how to generate dependencies" 1>&2
8341 echo $ac_n "checking for afopen in -ls""... $ac_c" 1>&6
8342 echo "configure:8343: checking for afopen in -ls" >&5
8343 ac_lib_var=`echo s'_'afopen | sed 'y%./+-:%__p__%'`
8344 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8345 echo $ac_n "(cached) $ac_c" 1>&6
8347 ac_save_LIBS="$LIBS"
8349 cat > conftest.$ac_ext <<EOF
8350 #line 8351 "configure"
8351 #include "confdefs.h"
8352 /* Override any gcc2 internal prototype to avoid an error. */
8353 /* We use char because int might match the return type of a gcc2
8354 builtin and then its argument prototype would still apply. */
8361 if { (eval echo configure:8362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8363 eval "ac_cv_lib_$ac_lib_var=yes"
8365 echo "configure: failed program was:" >&5
8366 cat conftest.$ac_ext >&5
8368 eval "ac_cv_lib_$ac_lib_var=no"
8371 LIBS="$ac_save_LIBS"
8374 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8375 echo "$ac_t""yes" 1>&6
8378 cat >> confdefs.h <<\EOF
8379 #define HAVE_AIX_SECURITY 1
8384 echo "$ac_t""no" 1>&6
8390 ac_cv_func_getopt=no
8391 cat >> confdefs.h <<\EOF
8392 #define BOTH_STRINGS_H 1
8399 if test $ol_enable_modules != no ; then
8400 for ac_hdr in ltdl.h
8402 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8403 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8404 echo "configure:8405: checking for $ac_hdr" >&5
8405 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8406 echo $ac_n "(cached) $ac_c" 1>&6
8408 cat > conftest.$ac_ext <<EOF
8409 #line 8410 "configure"
8410 #include "confdefs.h"
8413 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8414 { (eval echo configure:8415: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8415 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8416 if test -z "$ac_err"; then
8418 eval "ac_cv_header_$ac_safe=yes"
8421 echo "configure: failed program was:" >&5
8422 cat conftest.$ac_ext >&5
8424 eval "ac_cv_header_$ac_safe=no"
8428 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8429 echo "$ac_t""yes" 1>&6
8430 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8431 cat >> confdefs.h <<EOF
8432 #define $ac_tr_hdr 1
8436 echo "$ac_t""no" 1>&6
8441 if test $ac_cv_header_ltdl_h = no ; then
8442 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
8445 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
8446 echo "configure:8447: checking for lt_dlinit in -lltdl" >&5
8447 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
8448 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8449 echo $ac_n "(cached) $ac_c" 1>&6
8451 ac_save_LIBS="$LIBS"
8453 cat > conftest.$ac_ext <<EOF
8454 #line 8455 "configure"
8455 #include "confdefs.h"
8456 /* Override any gcc2 internal prototype to avoid an error. */
8457 /* We use char because int might match the return type of a gcc2
8458 builtin and then its argument prototype would still apply. */
8465 if { (eval echo configure:8466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8467 eval "ac_cv_lib_$ac_lib_var=yes"
8469 echo "configure: failed program was:" >&5
8470 cat conftest.$ac_ext >&5
8472 eval "ac_cv_lib_$ac_lib_var=no"
8475 LIBS="$ac_save_LIBS"
8478 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8479 echo "$ac_t""yes" 1>&6
8482 cat >> confdefs.h <<\EOF
8483 #define HAVE_LIBLTDL 1
8488 echo "$ac_t""no" 1>&6
8492 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
8493 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
8497 ol_with_bdb_module=static
8498 ol_with_dnssrv_module=static
8499 ol_with_hdb_module=static
8500 ol_with_ldap_module=static
8501 ol_with_ldbm_module=static
8502 ol_with_meta_module=static
8503 ol_with_monitor_module=static
8504 ol_with_null_module=static
8505 ol_with_passwd_module=static
8506 ol_with_perl_module=static
8507 ol_with_shell_module=static
8508 ol_with_sql_module=static
8509 if test $ol_with_dyngroup = mod ; then
8510 echo "configure: warning: building static dyngroup overlay" 1>&2
8511 ol_with_dyngroup=yes
8513 if test $ol_with_proxycache = mod ; then
8514 echo "configure: warning: building static proxycache overlay" 1>&2
8515 ol_with_proxycache=yes
8520 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
8521 echo "configure:8522: checking for EBCDIC" >&5
8522 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
8523 echo $ac_n "(cached) $ac_c" 1>&6
8526 cat > conftest.$ac_ext <<EOF
8527 #line 8528 "configure"
8528 #include "confdefs.h"
8531 #include <__ASCII__/generate_error.h>
8535 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8536 { (eval echo configure:8537: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8537 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8538 if test -z "$ac_err"; then
8540 ol_cv_cpp_ebcdic=yes
8543 echo "configure: failed program was:" >&5
8544 cat conftest.$ac_ext >&5
8551 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
8552 if test $ol_cv_cpp_ebcdic = yes ; then
8553 cat >> confdefs.h <<\EOF
8554 #define HAVE_EBCDIC 1
8559 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
8560 echo "configure:8561: checking for ANSI C header files" >&5
8561 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
8562 echo $ac_n "(cached) $ac_c" 1>&6
8564 cat > conftest.$ac_ext <<EOF
8565 #line 8566 "configure"
8566 #include "confdefs.h"
8572 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8573 { (eval echo configure:8574: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8574 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8575 if test -z "$ac_err"; then
8577 ol_cv_header_stdc=yes
8580 echo "configure: failed program was:" >&5
8581 cat conftest.$ac_ext >&5
8583 ol_cv_header_stdc=no
8587 if test $ol_cv_header_stdc = yes; then
8588 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8589 cat > conftest.$ac_ext <<EOF
8590 #line 8591 "configure"
8591 #include "confdefs.h"
8594 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8595 egrep "memchr" >/dev/null 2>&1; then
8599 ol_cv_header_stdc=no
8605 if test $ol_cv_header_stdc = yes; then
8606 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8607 cat > conftest.$ac_ext <<EOF
8608 #line 8609 "configure"
8609 #include "confdefs.h"
8612 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8613 egrep "free" >/dev/null 2>&1; then
8617 ol_cv_header_stdc=no
8623 if test $ol_cv_header_stdc = yes; then
8624 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8625 if test "$cross_compiling" = yes; then
8628 cat > conftest.$ac_ext <<EOF
8629 #line 8630 "configure"
8630 #include "confdefs.h"
8633 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8634 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8636 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
8637 || ('j' <= (c) && (c) <= 'r') \
8638 || ('s' <= (c) && (c) <= 'z'))
8639 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8641 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8642 int main () { int i; for (i = 0; i < 256; i++)
8643 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
8647 if { (eval echo configure:8648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8651 echo "configure: failed program was:" >&5
8652 cat conftest.$ac_ext >&5
8654 ol_cv_header_stdc=no
8662 echo "$ac_t""$ol_cv_header_stdc" 1>&6
8663 if test $ol_cv_header_stdc = yes; then
8664 cat >> confdefs.h <<\EOF
8665 #define STDC_HEADERS 1
8669 ac_cv_header_stdc=disable
8672 if test $ol_cv_header_stdc != yes; then
8673 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
8677 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
8679 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8680 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
8681 echo "configure:8682: checking for $ac_hdr that defines DIR" >&5
8682 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
8683 echo $ac_n "(cached) $ac_c" 1>&6
8685 cat > conftest.$ac_ext <<EOF
8686 #line 8687 "configure"
8687 #include "confdefs.h"
8688 #include <sys/types.h>
8694 if { (eval echo configure:8695: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8696 eval "ac_cv_header_dirent_$ac_safe=yes"
8698 echo "configure: failed program was:" >&5
8699 cat conftest.$ac_ext >&5
8701 eval "ac_cv_header_dirent_$ac_safe=no"
8705 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
8706 echo "$ac_t""yes" 1>&6
8707 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8708 cat >> confdefs.h <<EOF
8709 #define $ac_tr_hdr 1
8711 ac_header_dirent=$ac_hdr; break
8713 echo "$ac_t""no" 1>&6
8716 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8717 if test $ac_header_dirent = dirent.h; then
8718 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
8719 echo "configure:8720: checking for opendir in -ldir" >&5
8720 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
8721 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8722 echo $ac_n "(cached) $ac_c" 1>&6
8724 ac_save_LIBS="$LIBS"
8726 cat > conftest.$ac_ext <<EOF
8727 #line 8728 "configure"
8728 #include "confdefs.h"
8729 /* Override any gcc2 internal prototype to avoid an error. */
8730 /* We use char because int might match the return type of a gcc2
8731 builtin and then its argument prototype would still apply. */
8738 if { (eval echo configure:8739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8740 eval "ac_cv_lib_$ac_lib_var=yes"
8742 echo "configure: failed program was:" >&5
8743 cat conftest.$ac_ext >&5
8745 eval "ac_cv_lib_$ac_lib_var=no"
8748 LIBS="$ac_save_LIBS"
8751 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8752 echo "$ac_t""yes" 1>&6
8755 echo "$ac_t""no" 1>&6
8759 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
8760 echo "configure:8761: checking for opendir in -lx" >&5
8761 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
8762 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8763 echo $ac_n "(cached) $ac_c" 1>&6
8765 ac_save_LIBS="$LIBS"
8767 cat > conftest.$ac_ext <<EOF
8768 #line 8769 "configure"
8769 #include "confdefs.h"
8770 /* Override any gcc2 internal prototype to avoid an error. */
8771 /* We use char because int might match the return type of a gcc2
8772 builtin and then its argument prototype would still apply. */
8779 if { (eval echo configure:8780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8781 eval "ac_cv_lib_$ac_lib_var=yes"
8783 echo "configure: failed program was:" >&5
8784 cat conftest.$ac_ext >&5
8786 eval "ac_cv_lib_$ac_lib_var=no"
8789 LIBS="$ac_save_LIBS"
8792 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8793 echo "$ac_t""yes" 1>&6
8796 echo "$ac_t""no" 1>&6
8801 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
8802 echo "configure:8803: checking for sys/wait.h that is POSIX.1 compatible" >&5
8803 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
8804 echo $ac_n "(cached) $ac_c" 1>&6
8806 cat > conftest.$ac_ext <<EOF
8807 #line 8808 "configure"
8808 #include "confdefs.h"
8809 #include <sys/types.h>
8810 #include <sys/wait.h>
8812 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8815 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8820 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8823 if { (eval echo configure:8824: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8825 ac_cv_header_sys_wait_h=yes
8827 echo "configure: failed program was:" >&5
8828 cat conftest.$ac_ext >&5
8830 ac_cv_header_sys_wait_h=no
8835 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
8836 if test $ac_cv_header_sys_wait_h = yes; then
8837 cat >> confdefs.h <<\EOF
8838 #define HAVE_SYS_WAIT_H 1
8843 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
8844 echo "configure:8845: checking POSIX termios" >&5
8845 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
8846 echo $ac_n "(cached) $ac_c" 1>&6
8848 cat > conftest.$ac_ext <<EOF
8849 #line 8850 "configure"
8850 #include "confdefs.h"
8851 #include <sys/types.h>
8853 #include <termios.h>
8855 /* SunOS 4.0.3 has termios.h but not the library calls. */
8859 if { (eval echo configure:8860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8861 am_cv_sys_posix_termios=yes
8863 echo "configure: failed program was:" >&5
8864 cat conftest.$ac_ext >&5
8866 am_cv_sys_posix_termios=no
8871 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
8874 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
8875 echo "configure:8876: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
8876 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
8877 echo $ac_n "(cached) $ac_c" 1>&6
8879 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
8881 gwinsz_in_termios_h=no
8882 if test $am_cv_sys_posix_termios = yes; then
8883 cat > conftest.$ac_ext <<EOF
8884 #line 8885 "configure"
8885 #include "confdefs.h"
8886 #include <sys/types.h>
8887 # include <termios.h>
8893 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8894 egrep "yes" >/dev/null 2>&1; then
8896 gwinsz_in_termios_h=yes
8902 if test $gwinsz_in_termios_h = no; then
8903 cat > conftest.$ac_ext <<EOF
8904 #line 8905 "configure"
8905 #include "confdefs.h"
8906 #include <sys/types.h>
8907 # include <sys/ioctl.h>
8913 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8914 egrep "yes" >/dev/null 2>&1; then
8916 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
8924 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
8925 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
8926 cat >> confdefs.h <<\EOF
8927 #define GWINSZ_IN_SYS_IOCTL 1
8932 if test $am_cv_sys_posix_termios = yes ; then
8933 cat >> confdefs.h <<\EOF
8934 #define HAVE_POSIX_TERMIOS 1
8990 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8991 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8992 echo "configure:8993: checking for $ac_hdr" >&5
8993 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8994 echo $ac_n "(cached) $ac_c" 1>&6
8996 cat > conftest.$ac_ext <<EOF
8997 #line 8998 "configure"
8998 #include "confdefs.h"
9001 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9002 { (eval echo configure:9003: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9003 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9004 if test -z "$ac_err"; then
9006 eval "ac_cv_header_$ac_safe=yes"
9009 echo "configure: failed program was:" >&5
9010 cat conftest.$ac_ext >&5
9012 eval "ac_cv_header_$ac_safe=no"
9016 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9017 echo "$ac_t""yes" 1>&6
9018 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9019 cat >> confdefs.h <<EOF
9020 #define $ac_tr_hdr 1
9024 echo "$ac_t""no" 1>&6
9031 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
9032 echo "configure:9033: checking for sigset in -lV3" >&5
9033 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
9034 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9035 echo $ac_n "(cached) $ac_c" 1>&6
9037 ac_save_LIBS="$LIBS"
9039 cat > conftest.$ac_ext <<EOF
9040 #line 9041 "configure"
9041 #include "confdefs.h"
9042 /* Override any gcc2 internal prototype to avoid an error. */
9043 /* We use char because int might match the return type of a gcc2
9044 builtin and then its argument prototype would still apply. */
9051 if { (eval echo configure:9052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9053 eval "ac_cv_lib_$ac_lib_var=yes"
9055 echo "configure: failed program was:" >&5
9056 cat conftest.$ac_ext >&5
9058 eval "ac_cv_lib_$ac_lib_var=no"
9061 LIBS="$ac_save_LIBS"
9064 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9065 echo "$ac_t""yes" 1>&6
9066 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9067 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9068 cat >> confdefs.h <<EOF
9069 #define $ac_tr_lib 1
9075 echo "$ac_t""no" 1>&6
9079 if test "$ac_cv_header_winsock_h" = yes; then
9080 echo $ac_n "checking for winsock""... $ac_c" 1>&6
9081 echo "configure:9082: checking for winsock" >&5
9082 if eval "test \"\${ol_cv_winsock+set}\" = set"; then
9083 echo $ac_n "(cached) $ac_c" 1>&6
9086 for curlib in ws2_32 wsock32; do
9087 LIBS="$LIBS -l$curlib"
9088 cat > conftest.$ac_ext <<EOF
9089 #line 9090 "configure"
9090 #include "confdefs.h"
9091 #include <winsock.h>
9096 select(0,NULL,NULL,NULL,NULL);
9098 gethostname(NULL,0);
9102 if { (eval echo configure:9103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9106 echo "configure: failed program was:" >&5
9107 cat conftest.$ac_ext >&5
9113 if test $ol_cv_winsock = yes; then
9114 cat >> confdefs.h <<\EOF
9115 #define HAVE_WINSOCK 1
9118 ac_cv_func_socket=yes
9119 ac_cv_func_select=yes
9120 ac_cv_func_closesocket=yes
9121 ac_cv_func_gethostname=yes
9122 if test $curlib = ws2_32; then
9123 ol_cv_winsock=winsock2
9124 cat >> confdefs.h <<\EOF
9125 #define HAVE_WINSOCK2 1
9135 echo "$ac_t""$ol_cv_winsock" 1>&6
9139 echo $ac_n "checking for socket""... $ac_c" 1>&6
9140 echo "configure:9141: checking for socket" >&5
9141 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
9142 echo $ac_n "(cached) $ac_c" 1>&6
9144 cat > conftest.$ac_ext <<EOF
9145 #line 9146 "configure"
9146 #include "confdefs.h"
9147 /* System header to define __stub macros and hopefully few prototypes,
9148 which can conflict with char socket(); below. */
9150 /* Override any gcc2 internal prototype to avoid an error. */
9151 /* We use char because int might match the return type of a gcc2
9152 builtin and then its argument prototype would still apply. */
9158 /* The GNU C library defines this for functions which it implements
9159 to always fail with ENOSYS. Some functions are actually named
9160 something starting with __ and the normal name is an alias. */
9161 #if defined (__stub_socket) || defined (__stub___socket)
9169 if { (eval echo configure:9170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9171 eval "ac_cv_func_socket=yes"
9173 echo "configure: failed program was:" >&5
9174 cat conftest.$ac_ext >&5
9176 eval "ac_cv_func_socket=no"
9181 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
9182 echo "$ac_t""yes" 1>&6
9185 echo "$ac_t""no" 1>&6
9187 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
9188 echo "configure:9189: checking for main in -lsocket" >&5
9189 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
9190 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9191 echo $ac_n "(cached) $ac_c" 1>&6
9193 ac_save_LIBS="$LIBS"
9194 LIBS="-lsocket $LIBS"
9195 cat > conftest.$ac_ext <<EOF
9196 #line 9197 "configure"
9197 #include "confdefs.h"
9203 if { (eval echo configure:9204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9205 eval "ac_cv_lib_$ac_lib_var=yes"
9207 echo "configure: failed program was:" >&5
9208 cat conftest.$ac_ext >&5
9210 eval "ac_cv_lib_$ac_lib_var=no"
9213 LIBS="$ac_save_LIBS"
9216 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9217 echo "$ac_t""yes" 1>&6
9218 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9219 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9220 cat >> confdefs.h <<EOF
9221 #define $ac_tr_lib 1
9224 LIBS="-lsocket $LIBS"
9227 echo "$ac_t""no" 1>&6
9230 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
9231 echo "configure:9232: checking for main in -lnet" >&5
9232 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
9233 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9234 echo $ac_n "(cached) $ac_c" 1>&6
9236 ac_save_LIBS="$LIBS"
9238 cat > conftest.$ac_ext <<EOF
9239 #line 9240 "configure"
9240 #include "confdefs.h"
9246 if { (eval echo configure:9247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9248 eval "ac_cv_lib_$ac_lib_var=yes"
9250 echo "configure: failed program was:" >&5
9251 cat conftest.$ac_ext >&5
9253 eval "ac_cv_lib_$ac_lib_var=no"
9256 LIBS="$ac_save_LIBS"
9259 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9260 echo "$ac_t""yes" 1>&6
9261 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9262 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9263 cat >> confdefs.h <<EOF
9264 #define $ac_tr_lib 1
9270 echo "$ac_t""no" 1>&6
9273 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
9274 echo "configure:9275: checking for main in -lnsl_s" >&5
9275 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
9276 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9277 echo $ac_n "(cached) $ac_c" 1>&6
9279 ac_save_LIBS="$LIBS"
9280 LIBS="-lnsl_s $LIBS"
9281 cat > conftest.$ac_ext <<EOF
9282 #line 9283 "configure"
9283 #include "confdefs.h"
9289 if { (eval echo configure:9290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9291 eval "ac_cv_lib_$ac_lib_var=yes"
9293 echo "configure: failed program was:" >&5
9294 cat conftest.$ac_ext >&5
9296 eval "ac_cv_lib_$ac_lib_var=no"
9299 LIBS="$ac_save_LIBS"
9302 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9303 echo "$ac_t""yes" 1>&6
9304 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9305 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9306 cat >> confdefs.h <<EOF
9307 #define $ac_tr_lib 1
9310 LIBS="-lnsl_s $LIBS"
9313 echo "$ac_t""no" 1>&6
9316 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
9317 echo "configure:9318: checking for main in -lnsl" >&5
9318 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
9319 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9320 echo $ac_n "(cached) $ac_c" 1>&6
9322 ac_save_LIBS="$LIBS"
9324 cat > conftest.$ac_ext <<EOF
9325 #line 9326 "configure"
9326 #include "confdefs.h"
9332 if { (eval echo configure:9333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9334 eval "ac_cv_lib_$ac_lib_var=yes"
9336 echo "configure: failed program was:" >&5
9337 cat conftest.$ac_ext >&5
9339 eval "ac_cv_lib_$ac_lib_var=no"
9342 LIBS="$ac_save_LIBS"
9345 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9346 echo "$ac_t""yes" 1>&6
9347 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9348 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9349 cat >> confdefs.h <<EOF
9350 #define $ac_tr_lib 1
9356 echo "$ac_t""no" 1>&6
9359 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
9360 echo "configure:9361: checking for socket in -linet" >&5
9361 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
9362 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9363 echo $ac_n "(cached) $ac_c" 1>&6
9365 ac_save_LIBS="$LIBS"
9367 cat > conftest.$ac_ext <<EOF
9368 #line 9369 "configure"
9369 #include "confdefs.h"
9370 /* Override any gcc2 internal prototype to avoid an error. */
9371 /* We use char because int might match the return type of a gcc2
9372 builtin and then its argument prototype would still apply. */
9379 if { (eval echo configure:9380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9381 eval "ac_cv_lib_$ac_lib_var=yes"
9383 echo "configure: failed program was:" >&5
9384 cat conftest.$ac_ext >&5
9386 eval "ac_cv_lib_$ac_lib_var=no"
9389 LIBS="$ac_save_LIBS"
9392 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9393 echo "$ac_t""yes" 1>&6
9394 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9395 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9396 cat >> confdefs.h <<EOF
9397 #define $ac_tr_lib 1
9403 echo "$ac_t""no" 1>&6
9406 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
9407 echo "configure:9408: checking for main in -lgen" >&5
9408 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
9409 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9410 echo $ac_n "(cached) $ac_c" 1>&6
9412 ac_save_LIBS="$LIBS"
9414 cat > conftest.$ac_ext <<EOF
9415 #line 9416 "configure"
9416 #include "confdefs.h"
9422 if { (eval echo configure:9423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9424 eval "ac_cv_lib_$ac_lib_var=yes"
9426 echo "configure: failed program was:" >&5
9427 cat conftest.$ac_ext >&5
9429 eval "ac_cv_lib_$ac_lib_var=no"
9432 LIBS="$ac_save_LIBS"
9435 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9436 echo "$ac_t""yes" 1>&6
9437 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9438 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9439 cat >> confdefs.h <<EOF
9440 #define $ac_tr_lib 1
9446 echo "$ac_t""no" 1>&6
9453 echo $ac_n "checking for select""... $ac_c" 1>&6
9454 echo "configure:9455: checking for select" >&5
9455 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
9456 echo $ac_n "(cached) $ac_c" 1>&6
9458 cat > conftest.$ac_ext <<EOF
9459 #line 9460 "configure"
9460 #include "confdefs.h"
9461 /* System header to define __stub macros and hopefully few prototypes,
9462 which can conflict with char select(); below. */
9464 /* Override any gcc2 internal prototype to avoid an error. */
9465 /* We use char because int might match the return type of a gcc2
9466 builtin and then its argument prototype would still apply. */
9472 /* The GNU C library defines this for functions which it implements
9473 to always fail with ENOSYS. Some functions are actually named
9474 something starting with __ and the normal name is an alias. */
9475 #if defined (__stub_select) || defined (__stub___select)
9483 if { (eval echo configure:9484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9485 eval "ac_cv_func_select=yes"
9487 echo "configure: failed program was:" >&5
9488 cat conftest.$ac_ext >&5
9490 eval "ac_cv_func_select=no"
9495 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
9496 echo "$ac_t""yes" 1>&6
9499 echo "$ac_t""no" 1>&6
9500 { echo "configure: error: select() required." 1>&2; exit 1; }
9504 if test "${ac_cv_header_winsock_h}" != yes; then
9505 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
9506 echo "configure:9507: checking types of arguments for select()" >&5
9507 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
9508 echo $ac_n "(cached) $ac_c" 1>&6
9510 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
9511 echo $ac_n "(cached) $ac_c" 1>&6
9513 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
9514 echo $ac_n "(cached) $ac_c" 1>&6
9516 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
9517 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
9518 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
9519 cat > conftest.$ac_ext <<EOF
9520 #line 9521 "configure"
9521 #include "confdefs.h"
9522 #ifdef HAVE_SYS_TYPES_H
9523 #include <sys/types.h>
9525 #ifdef HAVE_SYS_TIME_H
9526 #include <sys/time.h>
9528 #ifdef HAVE_SYS_SELECT_H
9529 #include <sys/select.h>
9531 #ifdef HAVE_SYS_SOCKET_H
9532 #include <sys/socket.h>
9534 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);
9539 if { (eval echo configure:9540: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9541 ac_not_found=no ; break 3
9543 echo "configure: failed program was:" >&5
9544 cat conftest.$ac_ext >&5
9558 if test "$ac_not_found" = yes; then
9559 ac_cv_func_select_arg1=int
9560 ac_cv_func_select_arg234='int *'
9561 ac_cv_func_select_arg5='struct timeval *'
9563 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
9564 cat >> confdefs.h <<EOF
9565 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
9568 cat >> confdefs.h <<EOF
9569 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
9572 cat >> confdefs.h <<EOF
9573 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
9580 for ac_hdr in regex.h
9582 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9583 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9584 echo "configure:9585: checking for $ac_hdr" >&5
9585 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9586 echo $ac_n "(cached) $ac_c" 1>&6
9588 cat > conftest.$ac_ext <<EOF
9589 #line 9590 "configure"
9590 #include "confdefs.h"
9593 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9594 { (eval echo configure:9595: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9595 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9596 if test -z "$ac_err"; then
9598 eval "ac_cv_header_$ac_safe=yes"
9601 echo "configure: failed program was:" >&5
9602 cat conftest.$ac_ext >&5
9604 eval "ac_cv_header_$ac_safe=no"
9608 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9609 echo "$ac_t""yes" 1>&6
9610 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9611 cat >> confdefs.h <<EOF
9612 #define $ac_tr_hdr 1
9616 echo "$ac_t""no" 1>&6
9620 if test "$ac_cv_header_regex_h" != yes ; then
9621 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
9624 echo $ac_n "checking for library containing regfree""... $ac_c" 1>&6
9625 echo "configure:9626: checking for library containing regfree" >&5
9626 if eval "test \"\${ac_cv_search_regfree+set}\" = set"; then
9627 echo $ac_n "(cached) $ac_c" 1>&6
9629 ac_func_search_save_LIBS="$LIBS"
9630 ac_cv_search_regfree="no"
9631 cat > conftest.$ac_ext <<EOF
9632 #line 9633 "configure"
9633 #include "confdefs.h"
9634 /* Override any gcc2 internal prototype to avoid an error. */
9635 /* We use char because int might match the return type of a gcc2
9636 builtin and then its argument prototype would still apply. */
9643 if { (eval echo configure:9644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9645 ac_cv_search_regfree="none required"
9647 echo "configure: failed program was:" >&5
9648 cat conftest.$ac_ext >&5
9651 test "$ac_cv_search_regfree" = "no" && for ac_lib in regex gnuregex; do
9652 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9653 cat > conftest.$ac_ext <<EOF
9654 #line 9655 "configure"
9655 #include "confdefs.h"
9656 /* Override any gcc2 internal prototype to avoid an error. */
9657 /* We use char because int might match the return type of a gcc2
9658 builtin and then its argument prototype would still apply. */
9665 if { (eval echo configure:9666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9667 ac_cv_search_regfree="-l$ac_lib"
9670 echo "configure: failed program was:" >&5
9671 cat conftest.$ac_ext >&5
9675 LIBS="$ac_func_search_save_LIBS"
9678 echo "$ac_t""$ac_cv_search_regfree" 1>&6
9679 if test "$ac_cv_search_regfree" != "no"; then
9680 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
9683 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
9687 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
9688 echo "configure:9689: checking for compatible POSIX regex" >&5
9689 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
9690 echo $ac_n "(cached) $ac_c" 1>&6
9693 if test "$cross_compiling" = yes; then
9694 ol_cv_c_posix_regex=cross
9696 cat > conftest.$ac_ext <<EOF
9697 #line 9698 "configure"
9698 #include "confdefs.h"
9700 #include <sys/types.h>
9702 static char *pattern, *string;
9710 if(regcomp(&re, pattern, 0)) {
9714 string = "ALL MATCH";
9716 rc = regexec(&re, string, 0, (void*)0, 0);
9723 if { (eval echo configure:9724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9725 ol_cv_c_posix_regex=yes
9727 echo "configure: failed program was:" >&5
9728 cat conftest.$ac_ext >&5
9730 ol_cv_c_posix_regex=no
9737 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
9739 if test "$ol_cv_c_posix_regex" = no ; then
9740 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
9745 for ac_hdr in sys/uuid.h
9747 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9748 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9749 echo "configure:9750: checking for $ac_hdr" >&5
9750 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9751 echo $ac_n "(cached) $ac_c" 1>&6
9753 cat > conftest.$ac_ext <<EOF
9754 #line 9755 "configure"
9755 #include "confdefs.h"
9758 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9759 { (eval echo configure:9760: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9760 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9761 if test -z "$ac_err"; then
9763 eval "ac_cv_header_$ac_safe=yes"
9766 echo "configure: failed program was:" >&5
9767 cat conftest.$ac_ext >&5
9769 eval "ac_cv_header_$ac_safe=no"
9773 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9774 echo "$ac_t""yes" 1>&6
9775 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9776 cat >> confdefs.h <<EOF
9777 #define $ac_tr_hdr 1
9781 echo "$ac_t""no" 1>&6
9785 if test $ac_cv_header_sys_uuid_h = yes ; then
9788 echo $ac_n "checking for library containing uuid_to_str""... $ac_c" 1>&6
9789 echo "configure:9790: checking for library containing uuid_to_str" >&5
9790 if eval "test \"\${ac_cv_search_uuid_to_str+set}\" = set"; then
9791 echo $ac_n "(cached) $ac_c" 1>&6
9793 ac_func_search_save_LIBS="$LIBS"
9794 ac_cv_search_uuid_to_str="no"
9795 cat > conftest.$ac_ext <<EOF
9796 #line 9797 "configure"
9797 #include "confdefs.h"
9798 /* Override any gcc2 internal prototype to avoid an error. */
9799 /* We use char because int might match the return type of a gcc2
9800 builtin and then its argument prototype would still apply. */
9807 if { (eval echo configure:9808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9809 ac_cv_search_uuid_to_str="none required"
9811 echo "configure: failed program was:" >&5
9812 cat conftest.$ac_ext >&5
9815 test "$ac_cv_search_uuid_to_str" = "no" && for ac_lib in uuid; do
9816 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9817 cat > conftest.$ac_ext <<EOF
9818 #line 9819 "configure"
9819 #include "confdefs.h"
9820 /* Override any gcc2 internal prototype to avoid an error. */
9821 /* We use char because int might match the return type of a gcc2
9822 builtin and then its argument prototype would still apply. */
9829 if { (eval echo configure:9830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9831 ac_cv_search_uuid_to_str="-l$ac_lib"
9834 echo "configure: failed program was:" >&5
9835 cat conftest.$ac_ext >&5
9839 LIBS="$ac_func_search_save_LIBS"
9842 echo "$ac_t""$ac_cv_search_uuid_to_str" 1>&6
9843 if test "$ac_cv_search_uuid_to_str" != "no"; then
9844 test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
9851 if test have_uuid = yes ; then
9852 cat >> confdefs.h <<\EOF
9853 #define HAVE_UUID_TO_STR 1
9857 test "$ac_cv_search_uuid_to_str" = "none required" || \
9858 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
9862 if test $have_uuid = no ; then
9863 echo $ac_n "checking to see if -lrpcrt4 is needed for win32 UUID support""... $ac_c" 1>&6
9864 echo "configure:9865: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
9866 LIBS="$LIBS -lrpcrt4"
9867 cat > conftest.$ac_ext <<EOF
9868 #line 9869 "configure"
9869 #include "confdefs.h"
9871 int __stdcall UuidCreate(void *);
9872 int __stdcall UuidToStringA(void *,void **);
9881 if { (eval echo configure:9882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9885 echo "configure: failed program was:" >&5
9886 cat conftest.$ac_ext >&5
9891 if test $need_rpcrt = yes; then
9892 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
9895 echo "$ac_t""$need_rpcrt" 1>&6
9899 echo $ac_n "checking for res_query""... $ac_c" 1>&6
9900 echo "configure:9901: checking for res_query" >&5
9901 if eval "test \"\${ac_cv_func_res_query+set}\" = set"; then
9902 echo $ac_n "(cached) $ac_c" 1>&6
9904 cat > conftest.$ac_ext <<EOF
9905 #line 9906 "configure"
9906 #include "confdefs.h"
9907 /* System header to define __stub macros and hopefully few prototypes,
9908 which can conflict with char res_query(); below. */
9910 /* Override any gcc2 internal prototype to avoid an error. */
9911 /* We use char because int might match the return type of a gcc2
9912 builtin and then its argument prototype would still apply. */
9918 /* The GNU C library defines this for functions which it implements
9919 to always fail with ENOSYS. Some functions are actually named
9920 something starting with __ and the normal name is an alias. */
9921 #if defined (__stub_res_query) || defined (__stub___res_query)
9929 if { (eval echo configure:9930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9931 eval "ac_cv_func_res_query=yes"
9933 echo "configure: failed program was:" >&5
9934 cat conftest.$ac_ext >&5
9936 eval "ac_cv_func_res_query=no"
9941 if eval "test \"`echo '$ac_cv_func_'res_query`\" = yes"; then
9942 echo "$ac_t""yes" 1>&6
9945 echo "$ac_t""no" 1>&6
9948 if test $ac_cv_func_res_query = no ; then
9949 echo $ac_n "checking for __res_query""... $ac_c" 1>&6
9950 echo "configure:9951: checking for __res_query" >&5
9951 if eval "test \"\${ac_cv_func___res_query+set}\" = set"; then
9952 echo $ac_n "(cached) $ac_c" 1>&6
9954 cat > conftest.$ac_ext <<EOF
9955 #line 9956 "configure"
9956 #include "confdefs.h"
9957 /* System header to define __stub macros and hopefully few prototypes,
9958 which can conflict with char __res_query(); below. */
9960 /* Override any gcc2 internal prototype to avoid an error. */
9961 /* We use char because int might match the return type of a gcc2
9962 builtin and then its argument prototype would still apply. */
9968 /* The GNU C library defines this for functions which it implements
9969 to always fail with ENOSYS. Some functions are actually named
9970 something starting with __ and the normal name is an alias. */
9971 #if defined (__stub___res_query) || defined (__stub_____res_query)
9979 if { (eval echo configure:9980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9981 eval "ac_cv_func___res_query=yes"
9983 echo "configure: failed program was:" >&5
9984 cat conftest.$ac_ext >&5
9986 eval "ac_cv_func___res_query=no"
9991 if eval "test \"`echo '$ac_cv_func_'__res_query`\" = yes"; then
9992 echo "$ac_t""yes" 1>&6
9995 echo "$ac_t""no" 1>&6
9998 ac_cv_func_res_query=$ac_cv_func___res_query
10001 if test $ac_cv_func_res_query = no ; then
10002 echo $ac_n "checking for res_query in -lbind""... $ac_c" 1>&6
10003 echo "configure:10004: checking for res_query in -lbind" >&5
10004 ac_lib_var=`echo bind'_'res_query | sed 'y%./+-:%__p__%'`
10005 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10006 echo $ac_n "(cached) $ac_c" 1>&6
10008 ac_save_LIBS="$LIBS"
10009 LIBS="-lbind $LIBS"
10010 cat > conftest.$ac_ext <<EOF
10011 #line 10012 "configure"
10012 #include "confdefs.h"
10013 /* Override any gcc2 internal prototype to avoid an error. */
10014 /* We use char because int might match the return type of a gcc2
10015 builtin and then its argument prototype would still apply. */
10022 if { (eval echo configure:10023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10024 eval "ac_cv_lib_$ac_lib_var=yes"
10026 echo "configure: failed program was:" >&5
10027 cat conftest.$ac_ext >&5
10029 eval "ac_cv_lib_$ac_lib_var=no"
10032 LIBS="$ac_save_LIBS"
10035 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10036 echo "$ac_t""yes" 1>&6
10037 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10038 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10039 cat >> confdefs.h <<EOF
10040 #define $ac_tr_lib 1
10043 LIBS="-lbind $LIBS"
10046 echo "$ac_t""no" 1>&6
10049 ac_cv_func_res_query=$ac_cv_lib_bind_res_query
10052 if test $ac_cv_func_res_query = no ; then
10053 echo $ac_n "checking for __res_query in -lbind""... $ac_c" 1>&6
10054 echo "configure:10055: checking for __res_query in -lbind" >&5
10055 ac_lib_var=`echo bind'_'__res_query | sed 'y%./+-:%__p__%'`
10056 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10057 echo $ac_n "(cached) $ac_c" 1>&6
10059 ac_save_LIBS="$LIBS"
10060 LIBS="-lbind $LIBS"
10061 cat > conftest.$ac_ext <<EOF
10062 #line 10063 "configure"
10063 #include "confdefs.h"
10064 /* Override any gcc2 internal prototype to avoid an error. */
10065 /* We use char because int might match the return type of a gcc2
10066 builtin and then its argument prototype would still apply. */
10067 char __res_query();
10073 if { (eval echo configure:10074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10075 eval "ac_cv_lib_$ac_lib_var=yes"
10077 echo "configure: failed program was:" >&5
10078 cat conftest.$ac_ext >&5
10080 eval "ac_cv_lib_$ac_lib_var=no"
10083 LIBS="$ac_save_LIBS"
10086 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10087 echo "$ac_t""yes" 1>&6
10088 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10089 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10090 cat >> confdefs.h <<EOF
10091 #define $ac_tr_lib 1
10094 LIBS="-lbind $LIBS"
10097 echo "$ac_t""no" 1>&6
10100 ac_cv_func_res_query=$ac_cv_lib_bind___res_query
10103 if test $ac_cv_func_res_query = no ; then
10104 echo $ac_n "checking for res_query in -lresolv""... $ac_c" 1>&6
10105 echo "configure:10106: checking for res_query in -lresolv" >&5
10106 ac_lib_var=`echo resolv'_'res_query | sed 'y%./+-:%__p__%'`
10107 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10108 echo $ac_n "(cached) $ac_c" 1>&6
10110 ac_save_LIBS="$LIBS"
10111 LIBS="-lresolv $LIBS"
10112 cat > conftest.$ac_ext <<EOF
10113 #line 10114 "configure"
10114 #include "confdefs.h"
10115 /* Override any gcc2 internal prototype to avoid an error. */
10116 /* We use char because int might match the return type of a gcc2
10117 builtin and then its argument prototype would still apply. */
10124 if { (eval echo configure:10125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10126 eval "ac_cv_lib_$ac_lib_var=yes"
10128 echo "configure: failed program was:" >&5
10129 cat conftest.$ac_ext >&5
10131 eval "ac_cv_lib_$ac_lib_var=no"
10134 LIBS="$ac_save_LIBS"
10137 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10138 echo "$ac_t""yes" 1>&6
10139 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10140 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10141 cat >> confdefs.h <<EOF
10142 #define $ac_tr_lib 1
10145 LIBS="-lresolv $LIBS"
10148 echo "$ac_t""no" 1>&6
10151 ac_cv_func_res_query=$ac_cv_lib_resolv_res_query
10154 if test $ac_cv_func_res_query = no ; then
10155 echo $ac_n "checking for __res_query in -lresolv""... $ac_c" 1>&6
10156 echo "configure:10157: checking for __res_query in -lresolv" >&5
10157 ac_lib_var=`echo resolv'_'__res_query | sed 'y%./+-:%__p__%'`
10158 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10159 echo $ac_n "(cached) $ac_c" 1>&6
10161 ac_save_LIBS="$LIBS"
10162 LIBS="-lresolv $LIBS"
10163 cat > conftest.$ac_ext <<EOF
10164 #line 10165 "configure"
10165 #include "confdefs.h"
10166 /* Override any gcc2 internal prototype to avoid an error. */
10167 /* We use char because int might match the return type of a gcc2
10168 builtin and then its argument prototype would still apply. */
10169 char __res_query();
10175 if { (eval echo configure:10176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10177 eval "ac_cv_lib_$ac_lib_var=yes"
10179 echo "configure: failed program was:" >&5
10180 cat conftest.$ac_ext >&5
10182 eval "ac_cv_lib_$ac_lib_var=no"
10185 LIBS="$ac_save_LIBS"
10188 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10189 echo "$ac_t""yes" 1>&6
10190 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10191 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10192 cat >> confdefs.h <<EOF
10193 #define $ac_tr_lib 1
10196 LIBS="-lresolv $LIBS"
10199 echo "$ac_t""no" 1>&6
10202 ac_cv_func_res_query=$ac_cv_lib_resolv___res_query
10205 if test "$ac_cv_func_res_query" = yes ; then
10206 cat >> confdefs.h <<\EOF
10207 #define HAVE_RES_QUERY 1
10211 if test $ol_enable_dnssrv != no ; then
10216 if test "$ol_enable_dnssrv" = yes -a "$ol_link_dnssrv" = no ; then
10217 { echo "configure: error: DNSSRV requires res_query()" 1>&2; exit 1; }
10220 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
10222 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10223 echo "configure:10224: checking for $ac_func" >&5
10224 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10225 echo $ac_n "(cached) $ac_c" 1>&6
10227 cat > conftest.$ac_ext <<EOF
10228 #line 10229 "configure"
10229 #include "confdefs.h"
10230 /* System header to define __stub macros and hopefully few prototypes,
10231 which can conflict with char $ac_func(); below. */
10232 #include <assert.h>
10233 /* Override any gcc2 internal prototype to avoid an error. */
10234 /* We use char because int might match the return type of a gcc2
10235 builtin and then its argument prototype would still apply. */
10241 /* The GNU C library defines this for functions which it implements
10242 to always fail with ENOSYS. Some functions are actually named
10243 something starting with __ and the normal name is an alias. */
10244 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10252 if { (eval echo configure:10253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10254 eval "ac_cv_func_$ac_func=yes"
10256 echo "configure: failed program was:" >&5
10257 cat conftest.$ac_ext >&5
10259 eval "ac_cv_func_$ac_func=no"
10264 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10265 echo "$ac_t""yes" 1>&6
10266 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10267 cat >> confdefs.h <<EOF
10268 #define $ac_tr_func 1
10272 echo "$ac_t""no" 1>&6
10278 if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then
10279 if test $ol_enable_ipv6 = yes ; then
10280 { echo "configure: error: IPv6 support requires getaddrinfo() and inet_ntop()" 1>&2; exit 1; }
10282 elif test $ol_enable_ipv6 != no ; then
10283 echo $ac_n "checking INET6_ADDRSTRLEN""... $ac_c" 1>&6
10284 echo "configure:10285: checking INET6_ADDRSTRLEN" >&5
10285 if eval "test \"\${ol_cv_inet6_addrstrlen+set}\" = set"; then
10286 echo $ac_n "(cached) $ac_c" 1>&6
10289 cat > conftest.$ac_ext <<EOF
10290 #line 10291 "configure"
10291 #include "confdefs.h"
10293 # include <netinet/in.h>
10294 # ifdef INET6_ADDRSTRLEN
10295 __has_inet6_addrstrlen__;
10299 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10300 egrep "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
10302 ol_cv_inet6_addrstrlen=yes
10305 ol_cv_inet6_addrstrlen=no
10311 echo "$ac_t""$ol_cv_inet6_addrstrlen" 1>&6
10314 echo $ac_n "checking struct sockaddr_storage""... $ac_c" 1>&6
10315 echo "configure:10316: checking struct sockaddr_storage" >&5
10316 if eval "test \"\${ol_cv_struct_sockaddr_storage+set}\" = set"; then
10317 echo $ac_n "(cached) $ac_c" 1>&6
10320 cat > conftest.$ac_ext <<EOF
10321 #line 10322 "configure"
10322 #include "confdefs.h"
10324 #include <sys/types.h>
10325 #include <sys/socket.h>
10329 struct sockaddr_storage ss;
10333 if { (eval echo configure:10334: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10335 ol_cv_struct_sockaddr_storage=yes
10337 echo "configure: failed program was:" >&5
10338 cat conftest.$ac_ext >&5
10340 ol_cv_struct_sockaddr_storage=no
10345 echo "$ac_t""$ol_cv_struct_sockaddr_storage" 1>&6
10347 if test $ol_cv_inet6_addrstrlen = yes \
10348 -a $ol_cv_struct_sockaddr_storage = yes ; then
10350 elif test $ol_enable_ipv6 = yes \
10351 -a $ol_cv_inet6_addrstrlen = no ; then
10352 { echo "configure: error: IPv6 support requires INET6_ADDRSTRLEN" 1>&2; exit 1; }
10353 elif test $ol_enable_ipv6 = yes \
10354 -a $ol_cv_struct_sockaddr_storage = no ; then
10355 { echo "configure: error: IPv6 support requires struct sockaddr_storage" 1>&2; exit 1; }
10359 if test $ol_enable_local != no ; then
10360 for ac_hdr in sys/un.h
10362 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10363 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10364 echo "configure:10365: checking for $ac_hdr" >&5
10365 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10366 echo $ac_n "(cached) $ac_c" 1>&6
10368 cat > conftest.$ac_ext <<EOF
10369 #line 10370 "configure"
10370 #include "confdefs.h"
10373 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10374 { (eval echo configure:10375: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10375 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10376 if test -z "$ac_err"; then
10378 eval "ac_cv_header_$ac_safe=yes"
10381 echo "configure: failed program was:" >&5
10382 cat conftest.$ac_ext >&5
10384 eval "ac_cv_header_$ac_safe=no"
10388 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10389 echo "$ac_t""yes" 1>&6
10390 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10391 cat >> confdefs.h <<EOF
10392 #define $ac_tr_hdr 1
10396 echo "$ac_t""no" 1>&6
10401 if test $ol_enable_local = auto ; then
10402 ol_enable_local=$ac_cv_header_sys_un_h
10403 elif test $ac_cv_header_sys_un_h = no ; then
10404 { echo "configure: error: AF_LOCAL domain support requires sys/un.h" 1>&2; exit 1; }
10412 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
10413 -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
10414 -o $ol_with_kerberos = k425 ; then
10416 for ac_hdr in krb5.h
10418 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10419 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10420 echo "configure:10421: checking for $ac_hdr" >&5
10421 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10422 echo $ac_n "(cached) $ac_c" 1>&6
10424 cat > conftest.$ac_ext <<EOF
10425 #line 10426 "configure"
10426 #include "confdefs.h"
10429 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10430 { (eval echo configure:10431: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10431 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10432 if test -z "$ac_err"; then
10434 eval "ac_cv_header_$ac_safe=yes"
10437 echo "configure: failed program was:" >&5
10438 cat conftest.$ac_ext >&5
10440 eval "ac_cv_header_$ac_safe=no"
10444 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10445 echo "$ac_t""yes" 1>&6
10446 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10447 cat >> confdefs.h <<EOF
10448 #define $ac_tr_hdr 1
10452 echo "$ac_t""no" 1>&6
10457 if test $ac_cv_header_krb5_h = yes ; then
10458 for ac_hdr in heim_err.h
10460 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10461 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10462 echo "configure:10463: checking for $ac_hdr" >&5
10463 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10464 echo $ac_n "(cached) $ac_c" 1>&6
10466 cat > conftest.$ac_ext <<EOF
10467 #line 10468 "configure"
10468 #include "confdefs.h"
10471 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10472 { (eval echo configure:10473: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10473 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10474 if test -z "$ac_err"; then
10476 eval "ac_cv_header_$ac_safe=yes"
10479 echo "configure: failed program was:" >&5
10480 cat conftest.$ac_ext >&5
10482 eval "ac_cv_header_$ac_safe=no"
10486 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10487 echo "$ac_t""yes" 1>&6
10488 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10489 cat >> confdefs.h <<EOF
10490 #define $ac_tr_hdr 1
10494 echo "$ac_t""no" 1>&6
10498 if test $ac_cv_header_heim_err_h = yes ; then
10504 if test $krb5_impl = mit; then
10505 echo $ac_n "checking for main in -lk5crypto""... $ac_c" 1>&6
10506 echo "configure:10507: checking for main in -lk5crypto" >&5
10507 ac_lib_var=`echo k5crypto'_'main | sed 'y%./+-:%__p__%'`
10508 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10509 echo $ac_n "(cached) $ac_c" 1>&6
10511 ac_save_LIBS="$LIBS"
10512 LIBS="-lk5crypto $LIBS"
10513 cat > conftest.$ac_ext <<EOF
10514 #line 10515 "configure"
10515 #include "confdefs.h"
10521 if { (eval echo configure:10522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10523 eval "ac_cv_lib_$ac_lib_var=yes"
10525 echo "configure: failed program was:" >&5
10526 cat conftest.$ac_ext >&5
10528 eval "ac_cv_lib_$ac_lib_var=no"
10531 LIBS="$ac_save_LIBS"
10534 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10535 echo "$ac_t""yes" 1>&6
10536 krb5crypto=k5crypto
10538 echo "$ac_t""no" 1>&6
10543 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
10544 echo "configure:10545: checking for main in -lkrb5" >&5
10545 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
10546 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10547 echo $ac_n "(cached) $ac_c" 1>&6
10549 ac_save_LIBS="$LIBS"
10550 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
10551 cat > conftest.$ac_ext <<EOF
10552 #line 10553 "configure"
10553 #include "confdefs.h"
10559 if { (eval echo configure:10560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10561 eval "ac_cv_lib_$ac_lib_var=yes"
10563 echo "configure: failed program was:" >&5
10564 cat conftest.$ac_ext >&5
10566 eval "ac_cv_lib_$ac_lib_var=no"
10569 LIBS="$ac_save_LIBS"
10572 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10573 echo "$ac_t""yes" 1>&6
10575 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
10577 echo "$ac_t""no" 1>&6
10582 elif test $krb5_impl = heimdal; then
10583 echo $ac_n "checking for main in -ldes""... $ac_c" 1>&6
10584 echo "configure:10585: checking for main in -ldes" >&5
10585 ac_lib_var=`echo des'_'main | sed 'y%./+-:%__p__%'`
10586 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10587 echo $ac_n "(cached) $ac_c" 1>&6
10589 ac_save_LIBS="$LIBS"
10591 cat > conftest.$ac_ext <<EOF
10592 #line 10593 "configure"
10593 #include "confdefs.h"
10599 if { (eval echo configure:10600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10601 eval "ac_cv_lib_$ac_lib_var=yes"
10603 echo "configure: failed program was:" >&5
10604 cat conftest.$ac_ext >&5
10606 eval "ac_cv_lib_$ac_lib_var=no"
10609 LIBS="$ac_save_LIBS"
10612 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10613 echo "$ac_t""yes" 1>&6
10616 echo "$ac_t""no" 1>&6
10621 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
10622 echo "configure:10623: checking for main in -lkrb5" >&5
10623 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
10624 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10625 echo $ac_n "(cached) $ac_c" 1>&6
10627 ac_save_LIBS="$LIBS"
10628 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
10629 cat > conftest.$ac_ext <<EOF
10630 #line 10631 "configure"
10631 #include "confdefs.h"
10637 if { (eval echo configure:10638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10639 eval "ac_cv_lib_$ac_lib_var=yes"
10641 echo "configure: failed program was:" >&5
10642 cat conftest.$ac_ext >&5
10644 eval "ac_cv_lib_$ac_lib_var=no"
10647 LIBS="$ac_save_LIBS"
10650 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10651 echo "$ac_t""yes" 1>&6
10653 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
10655 echo "$ac_t""no" 1>&6
10660 cat >> confdefs.h <<\EOF
10661 #define HAVE_HEIMDAL_KERBEROS 1
10667 echo "configure: warning: Unrecognized Kerberos5 Implementation" 1>&2
10670 if test $have_krb5 = yes ; then
10673 cat >> confdefs.h <<\EOF
10674 #define HAVE_KRB5 1
10678 if test $ol_with_kerberos = k5only ; then
10679 ol_with_kerberos=found
10682 elif test $ol_with_kerberos != auto ; then
10683 { echo "configure: error: Required Kerberos 5 support not available" 1>&2; exit 1; }
10689 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
10690 $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
10692 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
10694 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10695 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10696 echo "configure:10697: checking for $ac_hdr" >&5
10697 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10698 echo $ac_n "(cached) $ac_c" 1>&6
10700 cat > conftest.$ac_ext <<EOF
10701 #line 10702 "configure"
10702 #include "confdefs.h"
10705 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10706 { (eval echo configure:10707: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10707 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10708 if test -z "$ac_err"; then
10710 eval "ac_cv_header_$ac_safe=yes"
10713 echo "configure: failed program was:" >&5
10714 cat conftest.$ac_ext >&5
10716 eval "ac_cv_header_$ac_safe=no"
10720 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10721 echo "$ac_t""yes" 1>&6
10722 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10723 cat >> confdefs.h <<EOF
10724 #define $ac_tr_hdr 1
10728 echo "$ac_t""no" 1>&6
10733 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
10734 if test $krb5_impl = mit; then
10735 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
10736 echo "configure:10737: checking for main in -lkrb4" >&5
10737 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
10738 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10739 echo $ac_n "(cached) $ac_c" 1>&6
10741 ac_save_LIBS="$LIBS"
10742 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
10743 cat > conftest.$ac_ext <<EOF
10744 #line 10745 "configure"
10745 #include "confdefs.h"
10751 if { (eval echo configure:10752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10753 eval "ac_cv_lib_$ac_lib_var=yes"
10755 echo "configure: failed program was:" >&5
10756 cat conftest.$ac_ext >&5
10758 eval "ac_cv_lib_$ac_lib_var=no"
10761 LIBS="$ac_save_LIBS"
10764 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10765 echo "$ac_t""yes" 1>&6
10767 KRB4_LIBS="-lkrb4 -ldes425"
10769 echo "$ac_t""no" 1>&6
10774 elif test $krb5_impl = heimdal; then
10775 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
10776 echo "configure:10777: checking for main in -lkrb4" >&5
10777 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
10778 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10779 echo $ac_n "(cached) $ac_c" 1>&6
10781 ac_save_LIBS="$LIBS"
10782 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
10783 cat > conftest.$ac_ext <<EOF
10784 #line 10785 "configure"
10785 #include "confdefs.h"
10791 if { (eval echo configure:10792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10793 eval "ac_cv_lib_$ac_lib_var=yes"
10795 echo "configure: failed program was:" >&5
10796 cat conftest.$ac_ext >&5
10798 eval "ac_cv_lib_$ac_lib_var=no"
10801 LIBS="$ac_save_LIBS"
10804 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10805 echo "$ac_t""yes" 1>&6
10809 echo "$ac_t""no" 1>&6
10816 echo "configure: warning: Unrecongized Kerberos V Implementation" 1>&2
10819 if test $have_k425 = yes ; then
10820 ol_with_kerberos=found
10823 cat >> confdefs.h <<\EOF
10824 #define HAVE_KRB425 1
10827 cat >> confdefs.h <<\EOF
10828 #define HAVE_KRB4 1
10832 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
10833 echo "configure:10834: checking for des_debug in Kerberos libraries" >&5
10834 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
10835 echo $ac_n "(cached) $ac_c" 1>&6
10839 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
10840 cat > conftest.$ac_ext <<EOF
10841 #line 10842 "configure"
10842 #include "confdefs.h"
10844 #include <kerberosIV/krb.h>
10845 #include <kerberosIV/des.h>
10846 extern int des_debug;
10854 if { (eval echo configure:10855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10856 ol_cv_var_des_debug=yes
10858 echo "configure: failed program was:" >&5
10859 cat conftest.$ac_ext >&5
10861 ol_cv_var_des_debug=no
10868 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
10870 if test $ol_cv_var_des_debug = yes ; then
10871 cat >> confdefs.h <<\EOF
10872 #define HAVE_DES_DEBUG 1
10882 if test $ol_link_krb5 = yes ; then
10883 ol_with_kerberos=found
10886 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
10887 -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
10889 for ac_hdr in krb.h des.h krb-archaeology.h
10891 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10892 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10893 echo "configure:10894: checking for $ac_hdr" >&5
10894 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10895 echo $ac_n "(cached) $ac_c" 1>&6
10897 cat > conftest.$ac_ext <<EOF
10898 #line 10899 "configure"
10899 #include "confdefs.h"
10902 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10903 { (eval echo configure:10904: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10904 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10905 if test -z "$ac_err"; then
10907 eval "ac_cv_header_$ac_safe=yes"
10910 echo "configure: failed program was:" >&5
10911 cat conftest.$ac_ext >&5
10913 eval "ac_cv_header_$ac_safe=no"
10917 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10918 echo "$ac_t""yes" 1>&6
10919 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10920 cat >> confdefs.h <<EOF
10921 #define $ac_tr_hdr 1
10925 echo "$ac_t""no" 1>&6
10930 if test $ac_cv_header_krb_h = yes ; then
10931 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
10932 echo "configure:10933: checking for main in -lkrb" >&5
10933 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
10934 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10935 echo $ac_n "(cached) $ac_c" 1>&6
10937 ac_save_LIBS="$LIBS"
10938 LIBS="-lkrb -ldes $LIBS"
10939 cat > conftest.$ac_ext <<EOF
10940 #line 10941 "configure"
10941 #include "confdefs.h"
10947 if { (eval echo configure:10948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10949 eval "ac_cv_lib_$ac_lib_var=yes"
10951 echo "configure: failed program was:" >&5
10952 cat conftest.$ac_ext >&5
10954 eval "ac_cv_lib_$ac_lib_var=no"
10957 LIBS="$ac_save_LIBS"
10960 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10961 echo "$ac_t""yes" 1>&6
10964 echo "$ac_t""no" 1>&6
10969 if test $have_k4 = yes ; then
10970 ol_with_kerberos=found
10973 cat >> confdefs.h <<\EOF
10974 #define HAVE_KRB4 1
10978 KRB4_LIBS="-lkrb -ldes"
10980 if test $ac_cv_header_krb_archaeology_h = yes ; then
10981 cat >> confdefs.h <<\EOF
10982 #define HAVE_KTH_KERBEROS 1
10990 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
10993 elif test $ol_enable_kbind = yes ; then
10994 { echo "configure: error: Kerberos IV detection failed" 1>&2; exit 1; }
10997 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
10998 cat >> confdefs.h <<\EOF
10999 #define HAVE_KERBEROS 1
11003 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
11004 { echo "configure: error: Kerberos detection failed" 1>&2; exit 1; }
11008 if test $ol_with_tls != no ; then
11009 for ac_hdr in openssl/ssl.h ssl.h
11011 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11012 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11013 echo "configure:11014: checking for $ac_hdr" >&5
11014 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11015 echo $ac_n "(cached) $ac_c" 1>&6
11017 cat > conftest.$ac_ext <<EOF
11018 #line 11019 "configure"
11019 #include "confdefs.h"
11022 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11023 { (eval echo configure:11024: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11024 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11025 if test -z "$ac_err"; then
11027 eval "ac_cv_header_$ac_safe=yes"
11030 echo "configure: failed program was:" >&5
11031 cat conftest.$ac_ext >&5
11033 eval "ac_cv_header_$ac_safe=no"
11037 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11038 echo "$ac_t""yes" 1>&6
11039 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11040 cat >> confdefs.h <<EOF
11041 #define $ac_tr_hdr 1
11045 echo "$ac_t""no" 1>&6
11050 if test $ac_cv_header_openssl_ssl_h = yes \
11051 -o $ac_cv_header_ssl_h = yes ; then
11052 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
11053 echo "configure:11054: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
11054 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
11055 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11056 echo $ac_n "(cached) $ac_c" 1>&6
11058 ac_save_LIBS="$LIBS"
11059 LIBS="-lssl -lcrypto $LIBS"
11060 cat > conftest.$ac_ext <<EOF
11061 #line 11062 "configure"
11062 #include "confdefs.h"
11063 /* Override any gcc2 internal prototype to avoid an error. */
11064 /* We use char because int might match the return type of a gcc2
11065 builtin and then its argument prototype would still apply. */
11066 char SSLeay_add_ssl_algorithms();
11069 SSLeay_add_ssl_algorithms()
11072 if { (eval echo configure:11073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11074 eval "ac_cv_lib_$ac_lib_var=yes"
11076 echo "configure: failed program was:" >&5
11077 cat conftest.$ac_ext >&5
11079 eval "ac_cv_lib_$ac_lib_var=no"
11082 LIBS="$ac_save_LIBS"
11085 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11086 echo "$ac_t""yes" 1>&6
11090 echo "$ac_t""no" 1>&6
11095 if test $have_ssleay = no ; then
11096 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
11097 echo "configure:11098: checking for SSL_library_init in -lssl" >&5
11098 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
11099 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11100 echo $ac_n "(cached) $ac_c" 1>&6
11102 ac_save_LIBS="$LIBS"
11103 LIBS="-lssl -lcrypto $LIBS"
11104 cat > conftest.$ac_ext <<EOF
11105 #line 11106 "configure"
11106 #include "confdefs.h"
11107 /* Override any gcc2 internal prototype to avoid an error. */
11108 /* We use char because int might match the return type of a gcc2
11109 builtin and then its argument prototype would still apply. */
11110 char SSL_library_init();
11116 if { (eval echo configure:11117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11118 eval "ac_cv_lib_$ac_lib_var=yes"
11120 echo "configure: failed program was:" >&5
11121 cat conftest.$ac_ext >&5
11123 eval "ac_cv_lib_$ac_lib_var=no"
11126 LIBS="$ac_save_LIBS"
11129 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11130 echo "$ac_t""yes" 1>&6
11134 echo "$ac_t""no" 1>&6
11140 if test $have_ssleay = no ; then
11141 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
11142 echo "configure:11143: checking for ssl3_accept in -lssl" >&5
11143 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
11144 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11145 echo $ac_n "(cached) $ac_c" 1>&6
11147 ac_save_LIBS="$LIBS"
11148 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
11149 cat > conftest.$ac_ext <<EOF
11150 #line 11151 "configure"
11151 #include "confdefs.h"
11152 /* Override any gcc2 internal prototype to avoid an error. */
11153 /* We use char because int might match the return type of a gcc2
11154 builtin and then its argument prototype would still apply. */
11155 char ssl3_accept();
11161 if { (eval echo configure:11162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11163 eval "ac_cv_lib_$ac_lib_var=yes"
11165 echo "configure: failed program was:" >&5
11166 cat conftest.$ac_ext >&5
11168 eval "ac_cv_lib_$ac_lib_var=no"
11171 LIBS="$ac_save_LIBS"
11174 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11175 echo "$ac_t""yes" 1>&6
11179 echo "$ac_t""no" 1>&6
11185 if test $have_ssleay = yes ; then
11189 cat >> confdefs.h <<\EOF
11190 #define HAVE_SSLEAY 1
11194 if test $need_rsaref = yes; then
11195 cat >> confdefs.h <<\EOF
11196 #define HAVE_RSAREF 1
11200 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
11202 TLS_LIBS="-lssl -lcrypto"
11208 echo "configure: warning: TLS data protection not supported!" 1>&2
11212 if test $ol_link_tls = yes ; then
11213 cat >> confdefs.h <<\EOF
11219 elif test $ol_with_tls = auto ; then
11220 echo "configure: warning: Could not locate TLS/SSL package" 1>&2
11221 echo "configure: warning: TLS data protection not supported!" 1>&2
11223 elif test $ol_with_tls != no ; then
11224 { echo "configure: error: Could not locate TLS/SSL package" 1>&2; exit 1; }
11227 if test $ol_enable_lmpasswd != no; then
11228 if test $ol_link_tls != yes ; then
11229 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
11232 cat >> confdefs.h <<\EOF
11233 #define SLAPD_LMHASH 1
11240 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11241 -o $ol_with_threads = nt ; then
11244 echo $ac_n "checking for _beginthread""... $ac_c" 1>&6
11245 echo "configure:11246: checking for _beginthread" >&5
11246 if eval "test \"\${ac_cv_func__beginthread+set}\" = set"; then
11247 echo $ac_n "(cached) $ac_c" 1>&6
11249 cat > conftest.$ac_ext <<EOF
11250 #line 11251 "configure"
11251 #include "confdefs.h"
11252 /* System header to define __stub macros and hopefully few prototypes,
11253 which can conflict with char _beginthread(); below. */
11254 #include <assert.h>
11255 /* Override any gcc2 internal prototype to avoid an error. */
11256 /* We use char because int might match the return type of a gcc2
11257 builtin and then its argument prototype would still apply. */
11258 char _beginthread();
11263 /* The GNU C library defines this for functions which it implements
11264 to always fail with ENOSYS. Some functions are actually named
11265 something starting with __ and the normal name is an alias. */
11266 #if defined (__stub__beginthread) || defined (__stub____beginthread)
11274 if { (eval echo configure:11275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11276 eval "ac_cv_func__beginthread=yes"
11278 echo "configure: failed program was:" >&5
11279 cat conftest.$ac_ext >&5
11281 eval "ac_cv_func__beginthread=no"
11286 if eval "test \"`echo '$ac_cv_func_'_beginthread`\" = yes"; then
11287 echo "$ac_t""yes" 1>&6
11290 echo "$ac_t""no" 1>&6
11294 if test $ac_cv_func__beginthread = yes ; then
11295 cat >> confdefs.h <<\EOF
11296 #define HAVE_NT_THREADS 1
11299 ol_cv_nt_threads=yes
11303 if test "$ol_cv_nt_threads" = yes ; then
11305 ol_with_threads=found
11306 ol_with_yielding_select=yes
11308 cat >> confdefs.h <<\EOF
11309 #define HAVE_NT_SERVICE_MANAGER 1
11312 cat >> confdefs.h <<\EOF
11313 #define HAVE_NT_EVENT_LOG 1
11318 if test $ol_with_threads = nt ; then
11319 { echo "configure: error: could not locate NT Threads" 1>&2; exit 1; }
11323 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11324 -o $ol_with_threads = posix ; then
11326 for ac_hdr in pthread.h
11328 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11329 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11330 echo "configure:11331: checking for $ac_hdr" >&5
11331 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11332 echo $ac_n "(cached) $ac_c" 1>&6
11334 cat > conftest.$ac_ext <<EOF
11335 #line 11336 "configure"
11336 #include "confdefs.h"
11339 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11340 { (eval echo configure:11341: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11341 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11342 if test -z "$ac_err"; then
11344 eval "ac_cv_header_$ac_safe=yes"
11347 echo "configure: failed program was:" >&5
11348 cat conftest.$ac_ext >&5
11350 eval "ac_cv_header_$ac_safe=no"
11354 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11355 echo "$ac_t""yes" 1>&6
11356 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11357 cat >> confdefs.h <<EOF
11358 #define $ac_tr_hdr 1
11362 echo "$ac_t""no" 1>&6
11367 if test $ac_cv_header_pthread_h = yes ; then
11368 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
11369 echo "configure:11370: checking POSIX thread version" >&5
11370 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
11371 echo $ac_n "(cached) $ac_c" 1>&6
11374 cat > conftest.$ac_ext <<EOF
11375 #line 11376 "configure"
11376 #include "confdefs.h"
11378 # include <pthread.h>
11382 int i = PTHREAD_CREATE_JOINABLE;
11386 if { (eval echo configure:11387: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11389 cat > conftest.$ac_ext <<EOF
11390 #line 11391 "configure"
11391 #include "confdefs.h"
11392 #include <pthread.h>
11394 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11395 egrep "pthread_detach" >/dev/null 2>&1; then
11397 ol_cv_pthread_version=10
11400 ol_cv_pthread_version=8
11405 echo "configure: failed program was:" >&5
11406 cat conftest.$ac_ext >&5
11409 cat > conftest.$ac_ext <<EOF
11410 #line 11411 "configure"
11411 #include "confdefs.h"
11413 # include <pthread.h>
11414 # ifdef PTHREAD_CREATE_UNDETACHED
11419 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11420 egrep "draft7" >/dev/null 2>&1; then
11422 ol_cv_pthread_version=7
11426 cat > conftest.$ac_ext <<EOF
11427 #line 11428 "configure"
11428 #include "confdefs.h"
11429 #include <pthread.h>
11431 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11432 egrep "pthread_attr_init" >/dev/null 2>&1; then
11434 ol_cv_pthread_version=6
11438 cat > conftest.$ac_ext <<EOF
11439 #line 11440 "configure"
11440 #include "confdefs.h"
11442 # include <pthread.h>
11443 #ifdef PTHREAD_MUTEX_INITIALIZER
11448 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11449 egrep "draft5" >/dev/null 2>&1; then
11451 ol_cv_pthread_version=5
11454 ol_cv_pthread_version=4
11469 echo "$ac_t""$ol_cv_pthread_version" 1>&6
11472 if test $ol_cv_pthread_version != 0 ; then
11473 cat >> confdefs.h <<EOF
11474 #define HAVE_PTHREADS $ol_cv_pthread_version
11478 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
11481 # consider threads found
11482 ol_with_threads=found
11485 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
11486 echo "configure:11487: checking for LinuxThreads pthread.h" >&5
11487 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
11488 echo $ac_n "(cached) $ac_c" 1>&6
11490 cat > conftest.$ac_ext <<EOF
11491 #line 11492 "configure"
11492 #include "confdefs.h"
11493 #include <pthread.h>
11495 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11496 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
11498 ol_cv_header_linux_threads=yes
11501 ol_cv_header_linux_threads=no
11508 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
11509 if test $ol_cv_header_linux_threads = yes; then
11510 cat >> confdefs.h <<\EOF
11511 #define HAVE_LINUX_THREADS 1
11517 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
11518 echo "configure:11519: checking for GNU Pth pthread.h" >&5
11519 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
11520 echo $ac_n "(cached) $ac_c" 1>&6
11522 cat > conftest.$ac_ext <<EOF
11523 #line 11524 "configure"
11524 #include "confdefs.h"
11525 #include <pthread.h>
11526 #ifdef _POSIX_THREAD_IS_GNU_PTH
11531 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11532 egrep "__gnu_pth__" >/dev/null 2>&1; then
11534 ol_cv_header_gnu_pth_pthread_h=yes
11537 ol_cv_header_gnu_pth_pthread_h=no
11544 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
11547 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
11548 for ac_hdr in sched.h
11550 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11551 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11552 echo "configure:11553: checking for $ac_hdr" >&5
11553 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11554 echo $ac_n "(cached) $ac_c" 1>&6
11556 cat > conftest.$ac_ext <<EOF
11557 #line 11558 "configure"
11558 #include "confdefs.h"
11561 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11562 { (eval echo configure:11563: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11563 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11564 if test -z "$ac_err"; then
11566 eval "ac_cv_header_$ac_safe=yes"
11569 echo "configure: failed program was:" >&5
11570 cat conftest.$ac_ext >&5
11572 eval "ac_cv_header_$ac_safe=no"
11576 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11577 echo "$ac_t""yes" 1>&6
11578 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11579 cat >> confdefs.h <<EOF
11580 #define $ac_tr_hdr 1
11584 echo "$ac_t""no" 1>&6
11591 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
11592 echo "configure:11593: checking for pthread_create in default libraries" >&5
11593 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
11594 echo $ac_n "(cached) $ac_c" 1>&6
11597 if test "$cross_compiling" = yes; then
11598 cat > conftest.$ac_ext <<EOF
11599 #line 11600 "configure"
11600 #include "confdefs.h"
11601 /* pthread test headers */
11602 #include <pthread.h>
11603 #if HAVE_PTHREADS < 7
11607 #define NULL (void*)0
11610 static void *task(p)
11613 return (void *) (p == NULL);
11618 /* pthread test function */
11619 #ifndef PTHREAD_CREATE_DETACHED
11620 #define PTHREAD_CREATE_DETACHED 1
11624 int detach = PTHREAD_CREATE_DETACHED;
11626 #if HAVE_PTHREADS > 4
11627 /* Final pthreads */
11628 pthread_attr_t attr;
11630 status = pthread_attr_init(&attr);
11631 if( status ) return status;
11633 #if HAVE_PTHREADS < 7
11634 status = pthread_attr_setdetachstate(&attr, &detach);
11635 if( status < 0 ) status = errno;
11637 status = pthread_attr_setdetachstate(&attr, detach);
11639 if( status ) return status;
11640 status = pthread_create( &t, &attr, task, NULL );
11641 #if HAVE_PTHREADS < 7
11642 if( status < 0 ) status = errno;
11644 if( status ) return status;
11646 /* Draft 4 pthreads */
11647 status = pthread_create( &t, pthread_attr_default, task, NULL );
11648 if( status ) return errno;
11650 /* give thread a chance to complete */
11651 /* it should remain joinable and hence detachable */
11654 status = pthread_detach( &t );
11655 if( status ) return errno;
11658 #ifdef HAVE_LINUX_THREADS
11659 pthread_kill_other_threads_np();
11666 if { (eval echo configure:11667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11668 ol_cv_pthread_create=yes
11670 echo "configure: failed program was:" >&5
11671 cat conftest.$ac_ext >&5
11673 ol_cv_pthread_create=no
11677 cat > conftest.$ac_ext <<EOF
11678 #line 11679 "configure"
11679 #include "confdefs.h"
11680 /* pthread test headers */
11681 #include <pthread.h>
11682 #if HAVE_PTHREADS < 7
11686 #define NULL (void*)0
11689 static void *task(p)
11692 return (void *) (p == NULL);
11696 int main(argc, argv)
11701 /* pthread test function */
11702 #ifndef PTHREAD_CREATE_DETACHED
11703 #define PTHREAD_CREATE_DETACHED 1
11707 int detach = PTHREAD_CREATE_DETACHED;
11709 #if HAVE_PTHREADS > 4
11710 /* Final pthreads */
11711 pthread_attr_t attr;
11713 status = pthread_attr_init(&attr);
11714 if( status ) return status;
11716 #if HAVE_PTHREADS < 7
11717 status = pthread_attr_setdetachstate(&attr, &detach);
11718 if( status < 0 ) status = errno;
11720 status = pthread_attr_setdetachstate(&attr, detach);
11722 if( status ) return status;
11723 status = pthread_create( &t, &attr, task, NULL );
11724 #if HAVE_PTHREADS < 7
11725 if( status < 0 ) status = errno;
11727 if( status ) return status;
11729 /* Draft 4 pthreads */
11730 status = pthread_create( &t, pthread_attr_default, task, NULL );
11731 if( status ) return errno;
11733 /* give thread a chance to complete */
11734 /* it should remain joinable and hence detachable */
11737 status = pthread_detach( &t );
11738 if( status ) return errno;
11741 #ifdef HAVE_LINUX_THREADS
11742 pthread_kill_other_threads_np();
11750 if { (eval echo configure:11751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11752 ol_cv_pthread_create=yes
11754 echo "configure: failed program was:" >&5
11755 cat conftest.$ac_ext >&5
11757 ol_cv_pthread_create=no
11764 echo "$ac_t""$ol_cv_pthread_create" 1>&6
11766 if test $ol_cv_pthread_create != no ; then
11767 ol_link_threads=posix
11768 ol_link_pthreads=""
11771 # Pthread try link: -kthread (ol_cv_pthread_kthread)
11772 if test "$ol_link_threads" = no ; then
11774 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
11775 echo "configure:11776: checking for pthread link with -kthread" >&5
11776 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
11777 echo $ac_n "(cached) $ac_c" 1>&6
11782 LIBS="-kthread $LIBS"
11784 if test "$cross_compiling" = yes; then
11785 cat > conftest.$ac_ext <<EOF
11786 #line 11787 "configure"
11787 #include "confdefs.h"
11788 /* pthread test headers */
11789 #include <pthread.h>
11790 #if HAVE_PTHREADS < 7
11794 #define NULL (void*)0
11797 static void *task(p)
11800 return (void *) (p == NULL);
11805 /* pthread test function */
11806 #ifndef PTHREAD_CREATE_DETACHED
11807 #define PTHREAD_CREATE_DETACHED 1
11811 int detach = PTHREAD_CREATE_DETACHED;
11813 #if HAVE_PTHREADS > 4
11814 /* Final pthreads */
11815 pthread_attr_t attr;
11817 status = pthread_attr_init(&attr);
11818 if( status ) return status;
11820 #if HAVE_PTHREADS < 7
11821 status = pthread_attr_setdetachstate(&attr, &detach);
11822 if( status < 0 ) status = errno;
11824 status = pthread_attr_setdetachstate(&attr, detach);
11826 if( status ) return status;
11827 status = pthread_create( &t, &attr, task, NULL );
11828 #if HAVE_PTHREADS < 7
11829 if( status < 0 ) status = errno;
11831 if( status ) return status;
11833 /* Draft 4 pthreads */
11834 status = pthread_create( &t, pthread_attr_default, task, NULL );
11835 if( status ) return errno;
11837 /* give thread a chance to complete */
11838 /* it should remain joinable and hence detachable */
11841 status = pthread_detach( &t );
11842 if( status ) return errno;
11845 #ifdef HAVE_LINUX_THREADS
11846 pthread_kill_other_threads_np();
11853 if { (eval echo configure:11854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11855 ol_cv_pthread_kthread=yes
11857 echo "configure: failed program was:" >&5
11858 cat conftest.$ac_ext >&5
11860 ol_cv_pthread_kthread=no
11864 cat > conftest.$ac_ext <<EOF
11865 #line 11866 "configure"
11866 #include "confdefs.h"
11867 /* pthread test headers */
11868 #include <pthread.h>
11869 #if HAVE_PTHREADS < 7
11873 #define NULL (void*)0
11876 static void *task(p)
11879 return (void *) (p == NULL);
11883 int main(argc, argv)
11888 /* pthread test function */
11889 #ifndef PTHREAD_CREATE_DETACHED
11890 #define PTHREAD_CREATE_DETACHED 1
11894 int detach = PTHREAD_CREATE_DETACHED;
11896 #if HAVE_PTHREADS > 4
11897 /* Final pthreads */
11898 pthread_attr_t attr;
11900 status = pthread_attr_init(&attr);
11901 if( status ) return status;
11903 #if HAVE_PTHREADS < 7
11904 status = pthread_attr_setdetachstate(&attr, &detach);
11905 if( status < 0 ) status = errno;
11907 status = pthread_attr_setdetachstate(&attr, detach);
11909 if( status ) return status;
11910 status = pthread_create( &t, &attr, task, NULL );
11911 #if HAVE_PTHREADS < 7
11912 if( status < 0 ) status = errno;
11914 if( status ) return status;
11916 /* Draft 4 pthreads */
11917 status = pthread_create( &t, pthread_attr_default, task, NULL );
11918 if( status ) return errno;
11920 /* give thread a chance to complete */
11921 /* it should remain joinable and hence detachable */
11924 status = pthread_detach( &t );
11925 if( status ) return errno;
11928 #ifdef HAVE_LINUX_THREADS
11929 pthread_kill_other_threads_np();
11937 if { (eval echo configure:11938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11939 ol_cv_pthread_kthread=yes
11941 echo "configure: failed program was:" >&5
11942 cat conftest.$ac_ext >&5
11944 ol_cv_pthread_kthread=no
11955 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
11957 if test $ol_cv_pthread_kthread = yes ; then
11958 ol_link_pthreads="-kthread"
11959 ol_link_threads=posix
11963 # Pthread try link: -pthread (ol_cv_pthread_pthread)
11964 if test "$ol_link_threads" = no ; then
11966 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
11967 echo "configure:11968: checking for pthread link with -pthread" >&5
11968 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
11969 echo $ac_n "(cached) $ac_c" 1>&6
11974 LIBS="-pthread $LIBS"
11976 if test "$cross_compiling" = yes; then
11977 cat > conftest.$ac_ext <<EOF
11978 #line 11979 "configure"
11979 #include "confdefs.h"
11980 /* pthread test headers */
11981 #include <pthread.h>
11982 #if HAVE_PTHREADS < 7
11986 #define NULL (void*)0
11989 static void *task(p)
11992 return (void *) (p == NULL);
11997 /* pthread test function */
11998 #ifndef PTHREAD_CREATE_DETACHED
11999 #define PTHREAD_CREATE_DETACHED 1
12003 int detach = PTHREAD_CREATE_DETACHED;
12005 #if HAVE_PTHREADS > 4
12006 /* Final pthreads */
12007 pthread_attr_t attr;
12009 status = pthread_attr_init(&attr);
12010 if( status ) return status;
12012 #if HAVE_PTHREADS < 7
12013 status = pthread_attr_setdetachstate(&attr, &detach);
12014 if( status < 0 ) status = errno;
12016 status = pthread_attr_setdetachstate(&attr, detach);
12018 if( status ) return status;
12019 status = pthread_create( &t, &attr, task, NULL );
12020 #if HAVE_PTHREADS < 7
12021 if( status < 0 ) status = errno;
12023 if( status ) return status;
12025 /* Draft 4 pthreads */
12026 status = pthread_create( &t, pthread_attr_default, task, NULL );
12027 if( status ) return errno;
12029 /* give thread a chance to complete */
12030 /* it should remain joinable and hence detachable */
12033 status = pthread_detach( &t );
12034 if( status ) return errno;
12037 #ifdef HAVE_LINUX_THREADS
12038 pthread_kill_other_threads_np();
12045 if { (eval echo configure:12046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12047 ol_cv_pthread_pthread=yes
12049 echo "configure: failed program was:" >&5
12050 cat conftest.$ac_ext >&5
12052 ol_cv_pthread_pthread=no
12056 cat > conftest.$ac_ext <<EOF
12057 #line 12058 "configure"
12058 #include "confdefs.h"
12059 /* pthread test headers */
12060 #include <pthread.h>
12061 #if HAVE_PTHREADS < 7
12065 #define NULL (void*)0
12068 static void *task(p)
12071 return (void *) (p == NULL);
12075 int main(argc, argv)
12080 /* pthread test function */
12081 #ifndef PTHREAD_CREATE_DETACHED
12082 #define PTHREAD_CREATE_DETACHED 1
12086 int detach = PTHREAD_CREATE_DETACHED;
12088 #if HAVE_PTHREADS > 4
12089 /* Final pthreads */
12090 pthread_attr_t attr;
12092 status = pthread_attr_init(&attr);
12093 if( status ) return status;
12095 #if HAVE_PTHREADS < 7
12096 status = pthread_attr_setdetachstate(&attr, &detach);
12097 if( status < 0 ) status = errno;
12099 status = pthread_attr_setdetachstate(&attr, detach);
12101 if( status ) return status;
12102 status = pthread_create( &t, &attr, task, NULL );
12103 #if HAVE_PTHREADS < 7
12104 if( status < 0 ) status = errno;
12106 if( status ) return status;
12108 /* Draft 4 pthreads */
12109 status = pthread_create( &t, pthread_attr_default, task, NULL );
12110 if( status ) return errno;
12112 /* give thread a chance to complete */
12113 /* it should remain joinable and hence detachable */
12116 status = pthread_detach( &t );
12117 if( status ) return errno;
12120 #ifdef HAVE_LINUX_THREADS
12121 pthread_kill_other_threads_np();
12129 if { (eval echo configure:12130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12131 ol_cv_pthread_pthread=yes
12133 echo "configure: failed program was:" >&5
12134 cat conftest.$ac_ext >&5
12136 ol_cv_pthread_pthread=no
12147 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
12149 if test $ol_cv_pthread_pthread = yes ; then
12150 ol_link_pthreads="-pthread"
12151 ol_link_threads=posix
12155 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
12156 if test "$ol_link_threads" = no ; then
12158 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
12159 echo "configure:12160: checking for pthread link with -pthreads" >&5
12160 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
12161 echo $ac_n "(cached) $ac_c" 1>&6
12166 LIBS="-pthreads $LIBS"
12168 if test "$cross_compiling" = yes; then
12169 cat > conftest.$ac_ext <<EOF
12170 #line 12171 "configure"
12171 #include "confdefs.h"
12172 /* pthread test headers */
12173 #include <pthread.h>
12174 #if HAVE_PTHREADS < 7
12178 #define NULL (void*)0
12181 static void *task(p)
12184 return (void *) (p == NULL);
12189 /* pthread test function */
12190 #ifndef PTHREAD_CREATE_DETACHED
12191 #define PTHREAD_CREATE_DETACHED 1
12195 int detach = PTHREAD_CREATE_DETACHED;
12197 #if HAVE_PTHREADS > 4
12198 /* Final pthreads */
12199 pthread_attr_t attr;
12201 status = pthread_attr_init(&attr);
12202 if( status ) return status;
12204 #if HAVE_PTHREADS < 7
12205 status = pthread_attr_setdetachstate(&attr, &detach);
12206 if( status < 0 ) status = errno;
12208 status = pthread_attr_setdetachstate(&attr, detach);
12210 if( status ) return status;
12211 status = pthread_create( &t, &attr, task, NULL );
12212 #if HAVE_PTHREADS < 7
12213 if( status < 0 ) status = errno;
12215 if( status ) return status;
12217 /* Draft 4 pthreads */
12218 status = pthread_create( &t, pthread_attr_default, task, NULL );
12219 if( status ) return errno;
12221 /* give thread a chance to complete */
12222 /* it should remain joinable and hence detachable */
12225 status = pthread_detach( &t );
12226 if( status ) return errno;
12229 #ifdef HAVE_LINUX_THREADS
12230 pthread_kill_other_threads_np();
12237 if { (eval echo configure:12238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12239 ol_cv_pthread_pthreads=yes
12241 echo "configure: failed program was:" >&5
12242 cat conftest.$ac_ext >&5
12244 ol_cv_pthread_pthreads=no
12248 cat > conftest.$ac_ext <<EOF
12249 #line 12250 "configure"
12250 #include "confdefs.h"
12251 /* pthread test headers */
12252 #include <pthread.h>
12253 #if HAVE_PTHREADS < 7
12257 #define NULL (void*)0
12260 static void *task(p)
12263 return (void *) (p == NULL);
12267 int main(argc, argv)
12272 /* pthread test function */
12273 #ifndef PTHREAD_CREATE_DETACHED
12274 #define PTHREAD_CREATE_DETACHED 1
12278 int detach = PTHREAD_CREATE_DETACHED;
12280 #if HAVE_PTHREADS > 4
12281 /* Final pthreads */
12282 pthread_attr_t attr;
12284 status = pthread_attr_init(&attr);
12285 if( status ) return status;
12287 #if HAVE_PTHREADS < 7
12288 status = pthread_attr_setdetachstate(&attr, &detach);
12289 if( status < 0 ) status = errno;
12291 status = pthread_attr_setdetachstate(&attr, detach);
12293 if( status ) return status;
12294 status = pthread_create( &t, &attr, task, NULL );
12295 #if HAVE_PTHREADS < 7
12296 if( status < 0 ) status = errno;
12298 if( status ) return status;
12300 /* Draft 4 pthreads */
12301 status = pthread_create( &t, pthread_attr_default, task, NULL );
12302 if( status ) return errno;
12304 /* give thread a chance to complete */
12305 /* it should remain joinable and hence detachable */
12308 status = pthread_detach( &t );
12309 if( status ) return errno;
12312 #ifdef HAVE_LINUX_THREADS
12313 pthread_kill_other_threads_np();
12321 if { (eval echo configure:12322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12323 ol_cv_pthread_pthreads=yes
12325 echo "configure: failed program was:" >&5
12326 cat conftest.$ac_ext >&5
12328 ol_cv_pthread_pthreads=no
12339 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
12341 if test $ol_cv_pthread_pthreads = yes ; then
12342 ol_link_pthreads="-pthreads"
12343 ol_link_threads=posix
12347 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
12348 if test "$ol_link_threads" = no ; then
12350 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
12351 echo "configure:12352: checking for pthread link with -mthreads" >&5
12352 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
12353 echo $ac_n "(cached) $ac_c" 1>&6
12358 LIBS="-mthreads $LIBS"
12360 if test "$cross_compiling" = yes; then
12361 cat > conftest.$ac_ext <<EOF
12362 #line 12363 "configure"
12363 #include "confdefs.h"
12364 /* pthread test headers */
12365 #include <pthread.h>
12366 #if HAVE_PTHREADS < 7
12370 #define NULL (void*)0
12373 static void *task(p)
12376 return (void *) (p == NULL);
12381 /* pthread test function */
12382 #ifndef PTHREAD_CREATE_DETACHED
12383 #define PTHREAD_CREATE_DETACHED 1
12387 int detach = PTHREAD_CREATE_DETACHED;
12389 #if HAVE_PTHREADS > 4
12390 /* Final pthreads */
12391 pthread_attr_t attr;
12393 status = pthread_attr_init(&attr);
12394 if( status ) return status;
12396 #if HAVE_PTHREADS < 7
12397 status = pthread_attr_setdetachstate(&attr, &detach);
12398 if( status < 0 ) status = errno;
12400 status = pthread_attr_setdetachstate(&attr, detach);
12402 if( status ) return status;
12403 status = pthread_create( &t, &attr, task, NULL );
12404 #if HAVE_PTHREADS < 7
12405 if( status < 0 ) status = errno;
12407 if( status ) return status;
12409 /* Draft 4 pthreads */
12410 status = pthread_create( &t, pthread_attr_default, task, NULL );
12411 if( status ) return errno;
12413 /* give thread a chance to complete */
12414 /* it should remain joinable and hence detachable */
12417 status = pthread_detach( &t );
12418 if( status ) return errno;
12421 #ifdef HAVE_LINUX_THREADS
12422 pthread_kill_other_threads_np();
12429 if { (eval echo configure:12430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12431 ol_cv_pthread_mthreads=yes
12433 echo "configure: failed program was:" >&5
12434 cat conftest.$ac_ext >&5
12436 ol_cv_pthread_mthreads=no
12440 cat > conftest.$ac_ext <<EOF
12441 #line 12442 "configure"
12442 #include "confdefs.h"
12443 /* pthread test headers */
12444 #include <pthread.h>
12445 #if HAVE_PTHREADS < 7
12449 #define NULL (void*)0
12452 static void *task(p)
12455 return (void *) (p == NULL);
12459 int main(argc, argv)
12464 /* pthread test function */
12465 #ifndef PTHREAD_CREATE_DETACHED
12466 #define PTHREAD_CREATE_DETACHED 1
12470 int detach = PTHREAD_CREATE_DETACHED;
12472 #if HAVE_PTHREADS > 4
12473 /* Final pthreads */
12474 pthread_attr_t attr;
12476 status = pthread_attr_init(&attr);
12477 if( status ) return status;
12479 #if HAVE_PTHREADS < 7
12480 status = pthread_attr_setdetachstate(&attr, &detach);
12481 if( status < 0 ) status = errno;
12483 status = pthread_attr_setdetachstate(&attr, detach);
12485 if( status ) return status;
12486 status = pthread_create( &t, &attr, task, NULL );
12487 #if HAVE_PTHREADS < 7
12488 if( status < 0 ) status = errno;
12490 if( status ) return status;
12492 /* Draft 4 pthreads */
12493 status = pthread_create( &t, pthread_attr_default, task, NULL );
12494 if( status ) return errno;
12496 /* give thread a chance to complete */
12497 /* it should remain joinable and hence detachable */
12500 status = pthread_detach( &t );
12501 if( status ) return errno;
12504 #ifdef HAVE_LINUX_THREADS
12505 pthread_kill_other_threads_np();
12513 if { (eval echo configure:12514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12515 ol_cv_pthread_mthreads=yes
12517 echo "configure: failed program was:" >&5
12518 cat conftest.$ac_ext >&5
12520 ol_cv_pthread_mthreads=no
12531 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
12533 if test $ol_cv_pthread_mthreads = yes ; then
12534 ol_link_pthreads="-mthreads"
12535 ol_link_threads=posix
12539 # Pthread try link: -thread (ol_cv_pthread_thread)
12540 if test "$ol_link_threads" = no ; then
12542 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
12543 echo "configure:12544: checking for pthread link with -thread" >&5
12544 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
12545 echo $ac_n "(cached) $ac_c" 1>&6
12550 LIBS="-thread $LIBS"
12552 if test "$cross_compiling" = yes; then
12553 cat > conftest.$ac_ext <<EOF
12554 #line 12555 "configure"
12555 #include "confdefs.h"
12556 /* pthread test headers */
12557 #include <pthread.h>
12558 #if HAVE_PTHREADS < 7
12562 #define NULL (void*)0
12565 static void *task(p)
12568 return (void *) (p == NULL);
12573 /* pthread test function */
12574 #ifndef PTHREAD_CREATE_DETACHED
12575 #define PTHREAD_CREATE_DETACHED 1
12579 int detach = PTHREAD_CREATE_DETACHED;
12581 #if HAVE_PTHREADS > 4
12582 /* Final pthreads */
12583 pthread_attr_t attr;
12585 status = pthread_attr_init(&attr);
12586 if( status ) return status;
12588 #if HAVE_PTHREADS < 7
12589 status = pthread_attr_setdetachstate(&attr, &detach);
12590 if( status < 0 ) status = errno;
12592 status = pthread_attr_setdetachstate(&attr, detach);
12594 if( status ) return status;
12595 status = pthread_create( &t, &attr, task, NULL );
12596 #if HAVE_PTHREADS < 7
12597 if( status < 0 ) status = errno;
12599 if( status ) return status;
12601 /* Draft 4 pthreads */
12602 status = pthread_create( &t, pthread_attr_default, task, NULL );
12603 if( status ) return errno;
12605 /* give thread a chance to complete */
12606 /* it should remain joinable and hence detachable */
12609 status = pthread_detach( &t );
12610 if( status ) return errno;
12613 #ifdef HAVE_LINUX_THREADS
12614 pthread_kill_other_threads_np();
12621 if { (eval echo configure:12622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12623 ol_cv_pthread_thread=yes
12625 echo "configure: failed program was:" >&5
12626 cat conftest.$ac_ext >&5
12628 ol_cv_pthread_thread=no
12632 cat > conftest.$ac_ext <<EOF
12633 #line 12634 "configure"
12634 #include "confdefs.h"
12635 /* pthread test headers */
12636 #include <pthread.h>
12637 #if HAVE_PTHREADS < 7
12641 #define NULL (void*)0
12644 static void *task(p)
12647 return (void *) (p == NULL);
12651 int main(argc, argv)
12656 /* pthread test function */
12657 #ifndef PTHREAD_CREATE_DETACHED
12658 #define PTHREAD_CREATE_DETACHED 1
12662 int detach = PTHREAD_CREATE_DETACHED;
12664 #if HAVE_PTHREADS > 4
12665 /* Final pthreads */
12666 pthread_attr_t attr;
12668 status = pthread_attr_init(&attr);
12669 if( status ) return status;
12671 #if HAVE_PTHREADS < 7
12672 status = pthread_attr_setdetachstate(&attr, &detach);
12673 if( status < 0 ) status = errno;
12675 status = pthread_attr_setdetachstate(&attr, detach);
12677 if( status ) return status;
12678 status = pthread_create( &t, &attr, task, NULL );
12679 #if HAVE_PTHREADS < 7
12680 if( status < 0 ) status = errno;
12682 if( status ) return status;
12684 /* Draft 4 pthreads */
12685 status = pthread_create( &t, pthread_attr_default, task, NULL );
12686 if( status ) return errno;
12688 /* give thread a chance to complete */
12689 /* it should remain joinable and hence detachable */
12692 status = pthread_detach( &t );
12693 if( status ) return errno;
12696 #ifdef HAVE_LINUX_THREADS
12697 pthread_kill_other_threads_np();
12705 if { (eval echo configure:12706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12707 ol_cv_pthread_thread=yes
12709 echo "configure: failed program was:" >&5
12710 cat conftest.$ac_ext >&5
12712 ol_cv_pthread_thread=no
12723 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
12725 if test $ol_cv_pthread_thread = yes ; then
12726 ol_link_pthreads="-thread"
12727 ol_link_threads=posix
12732 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
12733 if test "$ol_link_threads" = no ; then
12734 # try -lpthread -lmach -lexc -lc_r
12735 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
12736 echo "configure:12737: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
12737 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
12738 echo $ac_n "(cached) $ac_c" 1>&6
12743 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
12745 if test "$cross_compiling" = yes; then
12746 cat > conftest.$ac_ext <<EOF
12747 #line 12748 "configure"
12748 #include "confdefs.h"
12749 /* pthread test headers */
12750 #include <pthread.h>
12751 #if HAVE_PTHREADS < 7
12755 #define NULL (void*)0
12758 static void *task(p)
12761 return (void *) (p == NULL);
12766 /* pthread test function */
12767 #ifndef PTHREAD_CREATE_DETACHED
12768 #define PTHREAD_CREATE_DETACHED 1
12772 int detach = PTHREAD_CREATE_DETACHED;
12774 #if HAVE_PTHREADS > 4
12775 /* Final pthreads */
12776 pthread_attr_t attr;
12778 status = pthread_attr_init(&attr);
12779 if( status ) return status;
12781 #if HAVE_PTHREADS < 7
12782 status = pthread_attr_setdetachstate(&attr, &detach);
12783 if( status < 0 ) status = errno;
12785 status = pthread_attr_setdetachstate(&attr, detach);
12787 if( status ) return status;
12788 status = pthread_create( &t, &attr, task, NULL );
12789 #if HAVE_PTHREADS < 7
12790 if( status < 0 ) status = errno;
12792 if( status ) return status;
12794 /* Draft 4 pthreads */
12795 status = pthread_create( &t, pthread_attr_default, task, NULL );
12796 if( status ) return errno;
12798 /* give thread a chance to complete */
12799 /* it should remain joinable and hence detachable */
12802 status = pthread_detach( &t );
12803 if( status ) return errno;
12806 #ifdef HAVE_LINUX_THREADS
12807 pthread_kill_other_threads_np();
12814 if { (eval echo configure:12815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12816 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
12818 echo "configure: failed program was:" >&5
12819 cat conftest.$ac_ext >&5
12821 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
12825 cat > conftest.$ac_ext <<EOF
12826 #line 12827 "configure"
12827 #include "confdefs.h"
12828 /* pthread test headers */
12829 #include <pthread.h>
12830 #if HAVE_PTHREADS < 7
12834 #define NULL (void*)0
12837 static void *task(p)
12840 return (void *) (p == NULL);
12844 int main(argc, argv)
12849 /* pthread test function */
12850 #ifndef PTHREAD_CREATE_DETACHED
12851 #define PTHREAD_CREATE_DETACHED 1
12855 int detach = PTHREAD_CREATE_DETACHED;
12857 #if HAVE_PTHREADS > 4
12858 /* Final pthreads */
12859 pthread_attr_t attr;
12861 status = pthread_attr_init(&attr);
12862 if( status ) return status;
12864 #if HAVE_PTHREADS < 7
12865 status = pthread_attr_setdetachstate(&attr, &detach);
12866 if( status < 0 ) status = errno;
12868 status = pthread_attr_setdetachstate(&attr, detach);
12870 if( status ) return status;
12871 status = pthread_create( &t, &attr, task, NULL );
12872 #if HAVE_PTHREADS < 7
12873 if( status < 0 ) status = errno;
12875 if( status ) return status;
12877 /* Draft 4 pthreads */
12878 status = pthread_create( &t, pthread_attr_default, task, NULL );
12879 if( status ) return errno;
12881 /* give thread a chance to complete */
12882 /* it should remain joinable and hence detachable */
12885 status = pthread_detach( &t );
12886 if( status ) return errno;
12889 #ifdef HAVE_LINUX_THREADS
12890 pthread_kill_other_threads_np();
12898 if { (eval echo configure:12899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12900 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
12902 echo "configure: failed program was:" >&5
12903 cat conftest.$ac_ext >&5
12905 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
12916 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
12918 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
12919 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
12920 ol_link_threads=posix
12924 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
12925 if test "$ol_link_threads" = no ; then
12926 # try -lpthread -lmach -lexc
12927 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
12928 echo "configure:12929: checking for pthread link with -lpthread -lmach -lexc" >&5
12929 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
12930 echo $ac_n "(cached) $ac_c" 1>&6
12935 LIBS="-lpthread -lmach -lexc $LIBS"
12937 if test "$cross_compiling" = yes; then
12938 cat > conftest.$ac_ext <<EOF
12939 #line 12940 "configure"
12940 #include "confdefs.h"
12941 /* pthread test headers */
12942 #include <pthread.h>
12943 #if HAVE_PTHREADS < 7
12947 #define NULL (void*)0
12950 static void *task(p)
12953 return (void *) (p == NULL);
12958 /* pthread test function */
12959 #ifndef PTHREAD_CREATE_DETACHED
12960 #define PTHREAD_CREATE_DETACHED 1
12964 int detach = PTHREAD_CREATE_DETACHED;
12966 #if HAVE_PTHREADS > 4
12967 /* Final pthreads */
12968 pthread_attr_t attr;
12970 status = pthread_attr_init(&attr);
12971 if( status ) return status;
12973 #if HAVE_PTHREADS < 7
12974 status = pthread_attr_setdetachstate(&attr, &detach);
12975 if( status < 0 ) status = errno;
12977 status = pthread_attr_setdetachstate(&attr, detach);
12979 if( status ) return status;
12980 status = pthread_create( &t, &attr, task, NULL );
12981 #if HAVE_PTHREADS < 7
12982 if( status < 0 ) status = errno;
12984 if( status ) return status;
12986 /* Draft 4 pthreads */
12987 status = pthread_create( &t, pthread_attr_default, task, NULL );
12988 if( status ) return errno;
12990 /* give thread a chance to complete */
12991 /* it should remain joinable and hence detachable */
12994 status = pthread_detach( &t );
12995 if( status ) return errno;
12998 #ifdef HAVE_LINUX_THREADS
12999 pthread_kill_other_threads_np();
13006 if { (eval echo configure:13007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13008 ol_cv_pthread_lpthread_lmach_lexc=yes
13010 echo "configure: failed program was:" >&5
13011 cat conftest.$ac_ext >&5
13013 ol_cv_pthread_lpthread_lmach_lexc=no
13017 cat > conftest.$ac_ext <<EOF
13018 #line 13019 "configure"
13019 #include "confdefs.h"
13020 /* pthread test headers */
13021 #include <pthread.h>
13022 #if HAVE_PTHREADS < 7
13026 #define NULL (void*)0
13029 static void *task(p)
13032 return (void *) (p == NULL);
13036 int main(argc, argv)
13041 /* pthread test function */
13042 #ifndef PTHREAD_CREATE_DETACHED
13043 #define PTHREAD_CREATE_DETACHED 1
13047 int detach = PTHREAD_CREATE_DETACHED;
13049 #if HAVE_PTHREADS > 4
13050 /* Final pthreads */
13051 pthread_attr_t attr;
13053 status = pthread_attr_init(&attr);
13054 if( status ) return status;
13056 #if HAVE_PTHREADS < 7
13057 status = pthread_attr_setdetachstate(&attr, &detach);
13058 if( status < 0 ) status = errno;
13060 status = pthread_attr_setdetachstate(&attr, detach);
13062 if( status ) return status;
13063 status = pthread_create( &t, &attr, task, NULL );
13064 #if HAVE_PTHREADS < 7
13065 if( status < 0 ) status = errno;
13067 if( status ) return status;
13069 /* Draft 4 pthreads */
13070 status = pthread_create( &t, pthread_attr_default, task, NULL );
13071 if( status ) return errno;
13073 /* give thread a chance to complete */
13074 /* it should remain joinable and hence detachable */
13077 status = pthread_detach( &t );
13078 if( status ) return errno;
13081 #ifdef HAVE_LINUX_THREADS
13082 pthread_kill_other_threads_np();
13090 if { (eval echo configure:13091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13092 ol_cv_pthread_lpthread_lmach_lexc=yes
13094 echo "configure: failed program was:" >&5
13095 cat conftest.$ac_ext >&5
13097 ol_cv_pthread_lpthread_lmach_lexc=no
13108 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
13110 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
13111 ol_link_pthreads="-lpthread -lmach -lexc"
13112 ol_link_threads=posix
13117 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
13118 if test "$ol_link_threads" = no ; then
13119 # try -lpthread -Wl,-woff,85
13120 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
13121 echo "configure:13122: checking for pthread link with -lpthread -Wl,-woff,85" >&5
13122 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
13123 echo $ac_n "(cached) $ac_c" 1>&6
13128 LIBS="-lpthread -Wl,-woff,85 $LIBS"
13130 if test "$cross_compiling" = yes; then
13131 cat > conftest.$ac_ext <<EOF
13132 #line 13133 "configure"
13133 #include "confdefs.h"
13134 /* pthread test headers */
13135 #include <pthread.h>
13136 #if HAVE_PTHREADS < 7
13140 #define NULL (void*)0
13143 static void *task(p)
13146 return (void *) (p == NULL);
13151 /* pthread test function */
13152 #ifndef PTHREAD_CREATE_DETACHED
13153 #define PTHREAD_CREATE_DETACHED 1
13157 int detach = PTHREAD_CREATE_DETACHED;
13159 #if HAVE_PTHREADS > 4
13160 /* Final pthreads */
13161 pthread_attr_t attr;
13163 status = pthread_attr_init(&attr);
13164 if( status ) return status;
13166 #if HAVE_PTHREADS < 7
13167 status = pthread_attr_setdetachstate(&attr, &detach);
13168 if( status < 0 ) status = errno;
13170 status = pthread_attr_setdetachstate(&attr, detach);
13172 if( status ) return status;
13173 status = pthread_create( &t, &attr, task, NULL );
13174 #if HAVE_PTHREADS < 7
13175 if( status < 0 ) status = errno;
13177 if( status ) return status;
13179 /* Draft 4 pthreads */
13180 status = pthread_create( &t, pthread_attr_default, task, NULL );
13181 if( status ) return errno;
13183 /* give thread a chance to complete */
13184 /* it should remain joinable and hence detachable */
13187 status = pthread_detach( &t );
13188 if( status ) return errno;
13191 #ifdef HAVE_LINUX_THREADS
13192 pthread_kill_other_threads_np();
13199 if { (eval echo configure:13200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13201 ol_cv_pthread_lib_lpthread_woff=yes
13203 echo "configure: failed program was:" >&5
13204 cat conftest.$ac_ext >&5
13206 ol_cv_pthread_lib_lpthread_woff=no
13210 cat > conftest.$ac_ext <<EOF
13211 #line 13212 "configure"
13212 #include "confdefs.h"
13213 /* pthread test headers */
13214 #include <pthread.h>
13215 #if HAVE_PTHREADS < 7
13219 #define NULL (void*)0
13222 static void *task(p)
13225 return (void *) (p == NULL);
13229 int main(argc, argv)
13234 /* pthread test function */
13235 #ifndef PTHREAD_CREATE_DETACHED
13236 #define PTHREAD_CREATE_DETACHED 1
13240 int detach = PTHREAD_CREATE_DETACHED;
13242 #if HAVE_PTHREADS > 4
13243 /* Final pthreads */
13244 pthread_attr_t attr;
13246 status = pthread_attr_init(&attr);
13247 if( status ) return status;
13249 #if HAVE_PTHREADS < 7
13250 status = pthread_attr_setdetachstate(&attr, &detach);
13251 if( status < 0 ) status = errno;
13253 status = pthread_attr_setdetachstate(&attr, detach);
13255 if( status ) return status;
13256 status = pthread_create( &t, &attr, task, NULL );
13257 #if HAVE_PTHREADS < 7
13258 if( status < 0 ) status = errno;
13260 if( status ) return status;
13262 /* Draft 4 pthreads */
13263 status = pthread_create( &t, pthread_attr_default, task, NULL );
13264 if( status ) return errno;
13266 /* give thread a chance to complete */
13267 /* it should remain joinable and hence detachable */
13270 status = pthread_detach( &t );
13271 if( status ) return errno;
13274 #ifdef HAVE_LINUX_THREADS
13275 pthread_kill_other_threads_np();
13283 if { (eval echo configure:13284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13285 ol_cv_pthread_lib_lpthread_woff=yes
13287 echo "configure: failed program was:" >&5
13288 cat conftest.$ac_ext >&5
13290 ol_cv_pthread_lib_lpthread_woff=no
13301 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
13303 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
13304 ol_link_pthreads="-lpthread -Wl,-woff,85"
13305 ol_link_threads=posix
13310 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
13311 if test "$ol_link_threads" = no ; then
13313 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
13314 echo "configure:13315: checking for pthread link with -lpthread" >&5
13315 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
13316 echo $ac_n "(cached) $ac_c" 1>&6
13321 LIBS="-lpthread $LIBS"
13323 if test "$cross_compiling" = yes; then
13324 cat > conftest.$ac_ext <<EOF
13325 #line 13326 "configure"
13326 #include "confdefs.h"
13327 /* pthread test headers */
13328 #include <pthread.h>
13329 #if HAVE_PTHREADS < 7
13333 #define NULL (void*)0
13336 static void *task(p)
13339 return (void *) (p == NULL);
13344 /* pthread test function */
13345 #ifndef PTHREAD_CREATE_DETACHED
13346 #define PTHREAD_CREATE_DETACHED 1
13350 int detach = PTHREAD_CREATE_DETACHED;
13352 #if HAVE_PTHREADS > 4
13353 /* Final pthreads */
13354 pthread_attr_t attr;
13356 status = pthread_attr_init(&attr);
13357 if( status ) return status;
13359 #if HAVE_PTHREADS < 7
13360 status = pthread_attr_setdetachstate(&attr, &detach);
13361 if( status < 0 ) status = errno;
13363 status = pthread_attr_setdetachstate(&attr, detach);
13365 if( status ) return status;
13366 status = pthread_create( &t, &attr, task, NULL );
13367 #if HAVE_PTHREADS < 7
13368 if( status < 0 ) status = errno;
13370 if( status ) return status;
13372 /* Draft 4 pthreads */
13373 status = pthread_create( &t, pthread_attr_default, task, NULL );
13374 if( status ) return errno;
13376 /* give thread a chance to complete */
13377 /* it should remain joinable and hence detachable */
13380 status = pthread_detach( &t );
13381 if( status ) return errno;
13384 #ifdef HAVE_LINUX_THREADS
13385 pthread_kill_other_threads_np();
13392 if { (eval echo configure:13393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13394 ol_cv_pthread_lpthread=yes
13396 echo "configure: failed program was:" >&5
13397 cat conftest.$ac_ext >&5
13399 ol_cv_pthread_lpthread=no
13403 cat > conftest.$ac_ext <<EOF
13404 #line 13405 "configure"
13405 #include "confdefs.h"
13406 /* pthread test headers */
13407 #include <pthread.h>
13408 #if HAVE_PTHREADS < 7
13412 #define NULL (void*)0
13415 static void *task(p)
13418 return (void *) (p == NULL);
13422 int main(argc, argv)
13427 /* pthread test function */
13428 #ifndef PTHREAD_CREATE_DETACHED
13429 #define PTHREAD_CREATE_DETACHED 1
13433 int detach = PTHREAD_CREATE_DETACHED;
13435 #if HAVE_PTHREADS > 4
13436 /* Final pthreads */
13437 pthread_attr_t attr;
13439 status = pthread_attr_init(&attr);
13440 if( status ) return status;
13442 #if HAVE_PTHREADS < 7
13443 status = pthread_attr_setdetachstate(&attr, &detach);
13444 if( status < 0 ) status = errno;
13446 status = pthread_attr_setdetachstate(&attr, detach);
13448 if( status ) return status;
13449 status = pthread_create( &t, &attr, task, NULL );
13450 #if HAVE_PTHREADS < 7
13451 if( status < 0 ) status = errno;
13453 if( status ) return status;
13455 /* Draft 4 pthreads */
13456 status = pthread_create( &t, pthread_attr_default, task, NULL );
13457 if( status ) return errno;
13459 /* give thread a chance to complete */
13460 /* it should remain joinable and hence detachable */
13463 status = pthread_detach( &t );
13464 if( status ) return errno;
13467 #ifdef HAVE_LINUX_THREADS
13468 pthread_kill_other_threads_np();
13476 if { (eval echo configure:13477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13478 ol_cv_pthread_lpthread=yes
13480 echo "configure: failed program was:" >&5
13481 cat conftest.$ac_ext >&5
13483 ol_cv_pthread_lpthread=no
13494 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
13496 if test $ol_cv_pthread_lpthread = yes ; then
13497 ol_link_pthreads="-lpthread"
13498 ol_link_threads=posix
13502 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
13503 if test "$ol_link_threads" = no ; then
13505 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
13506 echo "configure:13507: checking for pthread link with -lc_r" >&5
13507 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
13508 echo $ac_n "(cached) $ac_c" 1>&6
13515 if test "$cross_compiling" = yes; then
13516 cat > conftest.$ac_ext <<EOF
13517 #line 13518 "configure"
13518 #include "confdefs.h"
13519 /* pthread test headers */
13520 #include <pthread.h>
13521 #if HAVE_PTHREADS < 7
13525 #define NULL (void*)0
13528 static void *task(p)
13531 return (void *) (p == NULL);
13536 /* pthread test function */
13537 #ifndef PTHREAD_CREATE_DETACHED
13538 #define PTHREAD_CREATE_DETACHED 1
13542 int detach = PTHREAD_CREATE_DETACHED;
13544 #if HAVE_PTHREADS > 4
13545 /* Final pthreads */
13546 pthread_attr_t attr;
13548 status = pthread_attr_init(&attr);
13549 if( status ) return status;
13551 #if HAVE_PTHREADS < 7
13552 status = pthread_attr_setdetachstate(&attr, &detach);
13553 if( status < 0 ) status = errno;
13555 status = pthread_attr_setdetachstate(&attr, detach);
13557 if( status ) return status;
13558 status = pthread_create( &t, &attr, task, NULL );
13559 #if HAVE_PTHREADS < 7
13560 if( status < 0 ) status = errno;
13562 if( status ) return status;
13564 /* Draft 4 pthreads */
13565 status = pthread_create( &t, pthread_attr_default, task, NULL );
13566 if( status ) return errno;
13568 /* give thread a chance to complete */
13569 /* it should remain joinable and hence detachable */
13572 status = pthread_detach( &t );
13573 if( status ) return errno;
13576 #ifdef HAVE_LINUX_THREADS
13577 pthread_kill_other_threads_np();
13584 if { (eval echo configure:13585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13586 ol_cv_pthread_lc_r=yes
13588 echo "configure: failed program was:" >&5
13589 cat conftest.$ac_ext >&5
13591 ol_cv_pthread_lc_r=no
13595 cat > conftest.$ac_ext <<EOF
13596 #line 13597 "configure"
13597 #include "confdefs.h"
13598 /* pthread test headers */
13599 #include <pthread.h>
13600 #if HAVE_PTHREADS < 7
13604 #define NULL (void*)0
13607 static void *task(p)
13610 return (void *) (p == NULL);
13614 int main(argc, argv)
13619 /* pthread test function */
13620 #ifndef PTHREAD_CREATE_DETACHED
13621 #define PTHREAD_CREATE_DETACHED 1
13625 int detach = PTHREAD_CREATE_DETACHED;
13627 #if HAVE_PTHREADS > 4
13628 /* Final pthreads */
13629 pthread_attr_t attr;
13631 status = pthread_attr_init(&attr);
13632 if( status ) return status;
13634 #if HAVE_PTHREADS < 7
13635 status = pthread_attr_setdetachstate(&attr, &detach);
13636 if( status < 0 ) status = errno;
13638 status = pthread_attr_setdetachstate(&attr, detach);
13640 if( status ) return status;
13641 status = pthread_create( &t, &attr, task, NULL );
13642 #if HAVE_PTHREADS < 7
13643 if( status < 0 ) status = errno;
13645 if( status ) return status;
13647 /* Draft 4 pthreads */
13648 status = pthread_create( &t, pthread_attr_default, task, NULL );
13649 if( status ) return errno;
13651 /* give thread a chance to complete */
13652 /* it should remain joinable and hence detachable */
13655 status = pthread_detach( &t );
13656 if( status ) return errno;
13659 #ifdef HAVE_LINUX_THREADS
13660 pthread_kill_other_threads_np();
13668 if { (eval echo configure:13669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13670 ol_cv_pthread_lc_r=yes
13672 echo "configure: failed program was:" >&5
13673 cat conftest.$ac_ext >&5
13675 ol_cv_pthread_lc_r=no
13686 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
13688 if test $ol_cv_pthread_lc_r = yes ; then
13689 ol_link_pthreads="-lc_r"
13690 ol_link_threads=posix
13695 # Pthread try link: -threads (ol_cv_pthread_threads)
13696 if test "$ol_link_threads" = no ; then
13698 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
13699 echo "configure:13700: checking for pthread link with -threads" >&5
13700 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
13701 echo $ac_n "(cached) $ac_c" 1>&6
13706 LIBS="-threads $LIBS"
13708 if test "$cross_compiling" = yes; then
13709 cat > conftest.$ac_ext <<EOF
13710 #line 13711 "configure"
13711 #include "confdefs.h"
13712 /* pthread test headers */
13713 #include <pthread.h>
13714 #if HAVE_PTHREADS < 7
13718 #define NULL (void*)0
13721 static void *task(p)
13724 return (void *) (p == NULL);
13729 /* pthread test function */
13730 #ifndef PTHREAD_CREATE_DETACHED
13731 #define PTHREAD_CREATE_DETACHED 1
13735 int detach = PTHREAD_CREATE_DETACHED;
13737 #if HAVE_PTHREADS > 4
13738 /* Final pthreads */
13739 pthread_attr_t attr;
13741 status = pthread_attr_init(&attr);
13742 if( status ) return status;
13744 #if HAVE_PTHREADS < 7
13745 status = pthread_attr_setdetachstate(&attr, &detach);
13746 if( status < 0 ) status = errno;
13748 status = pthread_attr_setdetachstate(&attr, detach);
13750 if( status ) return status;
13751 status = pthread_create( &t, &attr, task, NULL );
13752 #if HAVE_PTHREADS < 7
13753 if( status < 0 ) status = errno;
13755 if( status ) return status;
13757 /* Draft 4 pthreads */
13758 status = pthread_create( &t, pthread_attr_default, task, NULL );
13759 if( status ) return errno;
13761 /* give thread a chance to complete */
13762 /* it should remain joinable and hence detachable */
13765 status = pthread_detach( &t );
13766 if( status ) return errno;
13769 #ifdef HAVE_LINUX_THREADS
13770 pthread_kill_other_threads_np();
13777 if { (eval echo configure:13778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13779 ol_cv_pthread_threads=yes
13781 echo "configure: failed program was:" >&5
13782 cat conftest.$ac_ext >&5
13784 ol_cv_pthread_threads=no
13788 cat > conftest.$ac_ext <<EOF
13789 #line 13790 "configure"
13790 #include "confdefs.h"
13791 /* pthread test headers */
13792 #include <pthread.h>
13793 #if HAVE_PTHREADS < 7
13797 #define NULL (void*)0
13800 static void *task(p)
13803 return (void *) (p == NULL);
13807 int main(argc, argv)
13812 /* pthread test function */
13813 #ifndef PTHREAD_CREATE_DETACHED
13814 #define PTHREAD_CREATE_DETACHED 1
13818 int detach = PTHREAD_CREATE_DETACHED;
13820 #if HAVE_PTHREADS > 4
13821 /* Final pthreads */
13822 pthread_attr_t attr;
13824 status = pthread_attr_init(&attr);
13825 if( status ) return status;
13827 #if HAVE_PTHREADS < 7
13828 status = pthread_attr_setdetachstate(&attr, &detach);
13829 if( status < 0 ) status = errno;
13831 status = pthread_attr_setdetachstate(&attr, detach);
13833 if( status ) return status;
13834 status = pthread_create( &t, &attr, task, NULL );
13835 #if HAVE_PTHREADS < 7
13836 if( status < 0 ) status = errno;
13838 if( status ) return status;
13840 /* Draft 4 pthreads */
13841 status = pthread_create( &t, pthread_attr_default, task, NULL );
13842 if( status ) return errno;
13844 /* give thread a chance to complete */
13845 /* it should remain joinable and hence detachable */
13848 status = pthread_detach( &t );
13849 if( status ) return errno;
13852 #ifdef HAVE_LINUX_THREADS
13853 pthread_kill_other_threads_np();
13861 if { (eval echo configure:13862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13863 ol_cv_pthread_threads=yes
13865 echo "configure: failed program was:" >&5
13866 cat conftest.$ac_ext >&5
13868 ol_cv_pthread_threads=no
13879 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
13881 if test $ol_cv_pthread_threads = yes ; then
13882 ol_link_pthreads="-threads"
13883 ol_link_threads=posix
13888 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
13889 if test "$ol_link_threads" = no ; then
13890 # try -lpthreads -lmach -lexc -lc_r
13891 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
13892 echo "configure:13893: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
13893 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
13894 echo $ac_n "(cached) $ac_c" 1>&6
13899 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
13901 if test "$cross_compiling" = yes; then
13902 cat > conftest.$ac_ext <<EOF
13903 #line 13904 "configure"
13904 #include "confdefs.h"
13905 /* pthread test headers */
13906 #include <pthread.h>
13907 #if HAVE_PTHREADS < 7
13911 #define NULL (void*)0
13914 static void *task(p)
13917 return (void *) (p == NULL);
13922 /* pthread test function */
13923 #ifndef PTHREAD_CREATE_DETACHED
13924 #define PTHREAD_CREATE_DETACHED 1
13928 int detach = PTHREAD_CREATE_DETACHED;
13930 #if HAVE_PTHREADS > 4
13931 /* Final pthreads */
13932 pthread_attr_t attr;
13934 status = pthread_attr_init(&attr);
13935 if( status ) return status;
13937 #if HAVE_PTHREADS < 7
13938 status = pthread_attr_setdetachstate(&attr, &detach);
13939 if( status < 0 ) status = errno;
13941 status = pthread_attr_setdetachstate(&attr, detach);
13943 if( status ) return status;
13944 status = pthread_create( &t, &attr, task, NULL );
13945 #if HAVE_PTHREADS < 7
13946 if( status < 0 ) status = errno;
13948 if( status ) return status;
13950 /* Draft 4 pthreads */
13951 status = pthread_create( &t, pthread_attr_default, task, NULL );
13952 if( status ) return errno;
13954 /* give thread a chance to complete */
13955 /* it should remain joinable and hence detachable */
13958 status = pthread_detach( &t );
13959 if( status ) return errno;
13962 #ifdef HAVE_LINUX_THREADS
13963 pthread_kill_other_threads_np();
13970 if { (eval echo configure:13971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13972 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
13974 echo "configure: failed program was:" >&5
13975 cat conftest.$ac_ext >&5
13977 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
13981 cat > conftest.$ac_ext <<EOF
13982 #line 13983 "configure"
13983 #include "confdefs.h"
13984 /* pthread test headers */
13985 #include <pthread.h>
13986 #if HAVE_PTHREADS < 7
13990 #define NULL (void*)0
13993 static void *task(p)
13996 return (void *) (p == NULL);
14000 int main(argc, argv)
14005 /* pthread test function */
14006 #ifndef PTHREAD_CREATE_DETACHED
14007 #define PTHREAD_CREATE_DETACHED 1
14011 int detach = PTHREAD_CREATE_DETACHED;
14013 #if HAVE_PTHREADS > 4
14014 /* Final pthreads */
14015 pthread_attr_t attr;
14017 status = pthread_attr_init(&attr);
14018 if( status ) return status;
14020 #if HAVE_PTHREADS < 7
14021 status = pthread_attr_setdetachstate(&attr, &detach);
14022 if( status < 0 ) status = errno;
14024 status = pthread_attr_setdetachstate(&attr, detach);
14026 if( status ) return status;
14027 status = pthread_create( &t, &attr, task, NULL );
14028 #if HAVE_PTHREADS < 7
14029 if( status < 0 ) status = errno;
14031 if( status ) return status;
14033 /* Draft 4 pthreads */
14034 status = pthread_create( &t, pthread_attr_default, task, NULL );
14035 if( status ) return errno;
14037 /* give thread a chance to complete */
14038 /* it should remain joinable and hence detachable */
14041 status = pthread_detach( &t );
14042 if( status ) return errno;
14045 #ifdef HAVE_LINUX_THREADS
14046 pthread_kill_other_threads_np();
14054 if { (eval echo configure:14055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14056 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
14058 echo "configure: failed program was:" >&5
14059 cat conftest.$ac_ext >&5
14061 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
14072 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
14074 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
14075 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
14076 ol_link_threads=posix
14080 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
14081 if test "$ol_link_threads" = no ; then
14082 # try -lpthreads -lmach -lexc
14083 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
14084 echo "configure:14085: checking for pthread link with -lpthreads -lmach -lexc" >&5
14085 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
14086 echo $ac_n "(cached) $ac_c" 1>&6
14091 LIBS="-lpthreads -lmach -lexc $LIBS"
14093 if test "$cross_compiling" = yes; then
14094 cat > conftest.$ac_ext <<EOF
14095 #line 14096 "configure"
14096 #include "confdefs.h"
14097 /* pthread test headers */
14098 #include <pthread.h>
14099 #if HAVE_PTHREADS < 7
14103 #define NULL (void*)0
14106 static void *task(p)
14109 return (void *) (p == NULL);
14114 /* pthread test function */
14115 #ifndef PTHREAD_CREATE_DETACHED
14116 #define PTHREAD_CREATE_DETACHED 1
14120 int detach = PTHREAD_CREATE_DETACHED;
14122 #if HAVE_PTHREADS > 4
14123 /* Final pthreads */
14124 pthread_attr_t attr;
14126 status = pthread_attr_init(&attr);
14127 if( status ) return status;
14129 #if HAVE_PTHREADS < 7
14130 status = pthread_attr_setdetachstate(&attr, &detach);
14131 if( status < 0 ) status = errno;
14133 status = pthread_attr_setdetachstate(&attr, detach);
14135 if( status ) return status;
14136 status = pthread_create( &t, &attr, task, NULL );
14137 #if HAVE_PTHREADS < 7
14138 if( status < 0 ) status = errno;
14140 if( status ) return status;
14142 /* Draft 4 pthreads */
14143 status = pthread_create( &t, pthread_attr_default, task, NULL );
14144 if( status ) return errno;
14146 /* give thread a chance to complete */
14147 /* it should remain joinable and hence detachable */
14150 status = pthread_detach( &t );
14151 if( status ) return errno;
14154 #ifdef HAVE_LINUX_THREADS
14155 pthread_kill_other_threads_np();
14162 if { (eval echo configure:14163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14164 ol_cv_pthread_lpthreads_lmach_lexc=yes
14166 echo "configure: failed program was:" >&5
14167 cat conftest.$ac_ext >&5
14169 ol_cv_pthread_lpthreads_lmach_lexc=no
14173 cat > conftest.$ac_ext <<EOF
14174 #line 14175 "configure"
14175 #include "confdefs.h"
14176 /* pthread test headers */
14177 #include <pthread.h>
14178 #if HAVE_PTHREADS < 7
14182 #define NULL (void*)0
14185 static void *task(p)
14188 return (void *) (p == NULL);
14192 int main(argc, argv)
14197 /* pthread test function */
14198 #ifndef PTHREAD_CREATE_DETACHED
14199 #define PTHREAD_CREATE_DETACHED 1
14203 int detach = PTHREAD_CREATE_DETACHED;
14205 #if HAVE_PTHREADS > 4
14206 /* Final pthreads */
14207 pthread_attr_t attr;
14209 status = pthread_attr_init(&attr);
14210 if( status ) return status;
14212 #if HAVE_PTHREADS < 7
14213 status = pthread_attr_setdetachstate(&attr, &detach);
14214 if( status < 0 ) status = errno;
14216 status = pthread_attr_setdetachstate(&attr, detach);
14218 if( status ) return status;
14219 status = pthread_create( &t, &attr, task, NULL );
14220 #if HAVE_PTHREADS < 7
14221 if( status < 0 ) status = errno;
14223 if( status ) return status;
14225 /* Draft 4 pthreads */
14226 status = pthread_create( &t, pthread_attr_default, task, NULL );
14227 if( status ) return errno;
14229 /* give thread a chance to complete */
14230 /* it should remain joinable and hence detachable */
14233 status = pthread_detach( &t );
14234 if( status ) return errno;
14237 #ifdef HAVE_LINUX_THREADS
14238 pthread_kill_other_threads_np();
14246 if { (eval echo configure:14247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14248 ol_cv_pthread_lpthreads_lmach_lexc=yes
14250 echo "configure: failed program was:" >&5
14251 cat conftest.$ac_ext >&5
14253 ol_cv_pthread_lpthreads_lmach_lexc=no
14264 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
14266 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
14267 ol_link_pthreads="-lpthreads -lmach -lexc"
14268 ol_link_threads=posix
14272 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
14273 if test "$ol_link_threads" = no ; then
14274 # try -lpthreads -lexc
14275 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
14276 echo "configure:14277: checking for pthread link with -lpthreads -lexc" >&5
14277 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
14278 echo $ac_n "(cached) $ac_c" 1>&6
14283 LIBS="-lpthreads -lexc $LIBS"
14285 if test "$cross_compiling" = yes; then
14286 cat > conftest.$ac_ext <<EOF
14287 #line 14288 "configure"
14288 #include "confdefs.h"
14289 /* pthread test headers */
14290 #include <pthread.h>
14291 #if HAVE_PTHREADS < 7
14295 #define NULL (void*)0
14298 static void *task(p)
14301 return (void *) (p == NULL);
14306 /* pthread test function */
14307 #ifndef PTHREAD_CREATE_DETACHED
14308 #define PTHREAD_CREATE_DETACHED 1
14312 int detach = PTHREAD_CREATE_DETACHED;
14314 #if HAVE_PTHREADS > 4
14315 /* Final pthreads */
14316 pthread_attr_t attr;
14318 status = pthread_attr_init(&attr);
14319 if( status ) return status;
14321 #if HAVE_PTHREADS < 7
14322 status = pthread_attr_setdetachstate(&attr, &detach);
14323 if( status < 0 ) status = errno;
14325 status = pthread_attr_setdetachstate(&attr, detach);
14327 if( status ) return status;
14328 status = pthread_create( &t, &attr, task, NULL );
14329 #if HAVE_PTHREADS < 7
14330 if( status < 0 ) status = errno;
14332 if( status ) return status;
14334 /* Draft 4 pthreads */
14335 status = pthread_create( &t, pthread_attr_default, task, NULL );
14336 if( status ) return errno;
14338 /* give thread a chance to complete */
14339 /* it should remain joinable and hence detachable */
14342 status = pthread_detach( &t );
14343 if( status ) return errno;
14346 #ifdef HAVE_LINUX_THREADS
14347 pthread_kill_other_threads_np();
14354 if { (eval echo configure:14355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14356 ol_cv_pthread_lpthreads_lexc=yes
14358 echo "configure: failed program was:" >&5
14359 cat conftest.$ac_ext >&5
14361 ol_cv_pthread_lpthreads_lexc=no
14365 cat > conftest.$ac_ext <<EOF
14366 #line 14367 "configure"
14367 #include "confdefs.h"
14368 /* pthread test headers */
14369 #include <pthread.h>
14370 #if HAVE_PTHREADS < 7
14374 #define NULL (void*)0
14377 static void *task(p)
14380 return (void *) (p == NULL);
14384 int main(argc, argv)
14389 /* pthread test function */
14390 #ifndef PTHREAD_CREATE_DETACHED
14391 #define PTHREAD_CREATE_DETACHED 1
14395 int detach = PTHREAD_CREATE_DETACHED;
14397 #if HAVE_PTHREADS > 4
14398 /* Final pthreads */
14399 pthread_attr_t attr;
14401 status = pthread_attr_init(&attr);
14402 if( status ) return status;
14404 #if HAVE_PTHREADS < 7
14405 status = pthread_attr_setdetachstate(&attr, &detach);
14406 if( status < 0 ) status = errno;
14408 status = pthread_attr_setdetachstate(&attr, detach);
14410 if( status ) return status;
14411 status = pthread_create( &t, &attr, task, NULL );
14412 #if HAVE_PTHREADS < 7
14413 if( status < 0 ) status = errno;
14415 if( status ) return status;
14417 /* Draft 4 pthreads */
14418 status = pthread_create( &t, pthread_attr_default, task, NULL );
14419 if( status ) return errno;
14421 /* give thread a chance to complete */
14422 /* it should remain joinable and hence detachable */
14425 status = pthread_detach( &t );
14426 if( status ) return errno;
14429 #ifdef HAVE_LINUX_THREADS
14430 pthread_kill_other_threads_np();
14438 if { (eval echo configure:14439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14440 ol_cv_pthread_lpthreads_lexc=yes
14442 echo "configure: failed program was:" >&5
14443 cat conftest.$ac_ext >&5
14445 ol_cv_pthread_lpthreads_lexc=no
14456 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
14458 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
14459 ol_link_pthreads="-lpthreads -lexc"
14460 ol_link_threads=posix
14465 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
14466 if test "$ol_link_threads" = no ; then
14468 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
14469 echo "configure:14470: checking for pthread link with -lpthreads" >&5
14470 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
14471 echo $ac_n "(cached) $ac_c" 1>&6
14476 LIBS="-lpthreads $LIBS"
14478 if test "$cross_compiling" = yes; then
14479 cat > conftest.$ac_ext <<EOF
14480 #line 14481 "configure"
14481 #include "confdefs.h"
14482 /* pthread test headers */
14483 #include <pthread.h>
14484 #if HAVE_PTHREADS < 7
14488 #define NULL (void*)0
14491 static void *task(p)
14494 return (void *) (p == NULL);
14499 /* pthread test function */
14500 #ifndef PTHREAD_CREATE_DETACHED
14501 #define PTHREAD_CREATE_DETACHED 1
14505 int detach = PTHREAD_CREATE_DETACHED;
14507 #if HAVE_PTHREADS > 4
14508 /* Final pthreads */
14509 pthread_attr_t attr;
14511 status = pthread_attr_init(&attr);
14512 if( status ) return status;
14514 #if HAVE_PTHREADS < 7
14515 status = pthread_attr_setdetachstate(&attr, &detach);
14516 if( status < 0 ) status = errno;
14518 status = pthread_attr_setdetachstate(&attr, detach);
14520 if( status ) return status;
14521 status = pthread_create( &t, &attr, task, NULL );
14522 #if HAVE_PTHREADS < 7
14523 if( status < 0 ) status = errno;
14525 if( status ) return status;
14527 /* Draft 4 pthreads */
14528 status = pthread_create( &t, pthread_attr_default, task, NULL );
14529 if( status ) return errno;
14531 /* give thread a chance to complete */
14532 /* it should remain joinable and hence detachable */
14535 status = pthread_detach( &t );
14536 if( status ) return errno;
14539 #ifdef HAVE_LINUX_THREADS
14540 pthread_kill_other_threads_np();
14547 if { (eval echo configure:14548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14549 ol_cv_pthread_lib_lpthreads=yes
14551 echo "configure: failed program was:" >&5
14552 cat conftest.$ac_ext >&5
14554 ol_cv_pthread_lib_lpthreads=no
14558 cat > conftest.$ac_ext <<EOF
14559 #line 14560 "configure"
14560 #include "confdefs.h"
14561 /* pthread test headers */
14562 #include <pthread.h>
14563 #if HAVE_PTHREADS < 7
14567 #define NULL (void*)0
14570 static void *task(p)
14573 return (void *) (p == NULL);
14577 int main(argc, argv)
14582 /* pthread test function */
14583 #ifndef PTHREAD_CREATE_DETACHED
14584 #define PTHREAD_CREATE_DETACHED 1
14588 int detach = PTHREAD_CREATE_DETACHED;
14590 #if HAVE_PTHREADS > 4
14591 /* Final pthreads */
14592 pthread_attr_t attr;
14594 status = pthread_attr_init(&attr);
14595 if( status ) return status;
14597 #if HAVE_PTHREADS < 7
14598 status = pthread_attr_setdetachstate(&attr, &detach);
14599 if( status < 0 ) status = errno;
14601 status = pthread_attr_setdetachstate(&attr, detach);
14603 if( status ) return status;
14604 status = pthread_create( &t, &attr, task, NULL );
14605 #if HAVE_PTHREADS < 7
14606 if( status < 0 ) status = errno;
14608 if( status ) return status;
14610 /* Draft 4 pthreads */
14611 status = pthread_create( &t, pthread_attr_default, task, NULL );
14612 if( status ) return errno;
14614 /* give thread a chance to complete */
14615 /* it should remain joinable and hence detachable */
14618 status = pthread_detach( &t );
14619 if( status ) return errno;
14622 #ifdef HAVE_LINUX_THREADS
14623 pthread_kill_other_threads_np();
14631 if { (eval echo configure:14632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14633 ol_cv_pthread_lib_lpthreads=yes
14635 echo "configure: failed program was:" >&5
14636 cat conftest.$ac_ext >&5
14638 ol_cv_pthread_lib_lpthreads=no
14649 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
14651 if test $ol_cv_pthread_lib_lpthreads = yes ; then
14652 ol_link_pthreads="-lpthreads"
14653 ol_link_threads=posix
14658 if test $ol_link_threads != no ; then
14659 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
14661 save_CPPFLAGS="$CPPFLAGS"
14663 LIBS="$LTHREAD_LIBS $LIBS"
14665 for ac_func in sched_yield pthread_yield thr_yield
14667 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14668 echo "configure:14669: checking for $ac_func" >&5
14669 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14670 echo $ac_n "(cached) $ac_c" 1>&6
14672 cat > conftest.$ac_ext <<EOF
14673 #line 14674 "configure"
14674 #include "confdefs.h"
14675 /* System header to define __stub macros and hopefully few prototypes,
14676 which can conflict with char $ac_func(); below. */
14677 #include <assert.h>
14678 /* Override any gcc2 internal prototype to avoid an error. */
14679 /* We use char because int might match the return type of a gcc2
14680 builtin and then its argument prototype would still apply. */
14686 /* The GNU C library defines this for functions which it implements
14687 to always fail with ENOSYS. Some functions are actually named
14688 something starting with __ and the normal name is an alias. */
14689 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14697 if { (eval echo configure:14698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14699 eval "ac_cv_func_$ac_func=yes"
14701 echo "configure: failed program was:" >&5
14702 cat conftest.$ac_ext >&5
14704 eval "ac_cv_func_$ac_func=no"
14709 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14710 echo "$ac_t""yes" 1>&6
14711 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14712 cat >> confdefs.h <<EOF
14713 #define $ac_tr_func 1
14717 echo "$ac_t""no" 1>&6
14722 if test $ac_cv_func_sched_yield = no -a \
14723 $ac_cv_func_pthread_yield = no -a \
14724 $ac_cv_func_thr_yield = no ; then
14725 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
14726 echo "configure:14727: checking for sched_yield in -lrt" >&5
14727 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
14728 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14729 echo $ac_n "(cached) $ac_c" 1>&6
14731 ac_save_LIBS="$LIBS"
14733 cat > conftest.$ac_ext <<EOF
14734 #line 14735 "configure"
14735 #include "confdefs.h"
14736 /* Override any gcc2 internal prototype to avoid an error. */
14737 /* We use char because int might match the return type of a gcc2
14738 builtin and then its argument prototype would still apply. */
14739 char sched_yield();
14745 if { (eval echo configure:14746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14747 eval "ac_cv_lib_$ac_lib_var=yes"
14749 echo "configure: failed program was:" >&5
14750 cat conftest.$ac_ext >&5
14752 eval "ac_cv_lib_$ac_lib_var=no"
14755 LIBS="$ac_save_LIBS"
14758 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14759 echo "$ac_t""yes" 1>&6
14760 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
14761 cat >> confdefs.h <<\EOF
14762 #define HAVE_SCHED_YIELD 1
14765 ac_cv_func_sched_yield=yes
14767 echo "$ac_t""no" 1>&6
14768 ac_cv_func_sched_yield=no
14772 if test $ac_cv_func_sched_yield = no -a \
14773 $ac_cv_func_pthread_yield = no -a \
14774 "$ac_cv_func_thr_yield" = no ; then
14775 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
14778 for ac_func in pthread_kill pthread_rwlock_destroy
14780 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14781 echo "configure:14782: checking for $ac_func" >&5
14782 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14783 echo $ac_n "(cached) $ac_c" 1>&6
14785 cat > conftest.$ac_ext <<EOF
14786 #line 14787 "configure"
14787 #include "confdefs.h"
14788 /* System header to define __stub macros and hopefully few prototypes,
14789 which can conflict with char $ac_func(); below. */
14790 #include <assert.h>
14791 /* Override any gcc2 internal prototype to avoid an error. */
14792 /* We use char because int might match the return type of a gcc2
14793 builtin and then its argument prototype would still apply. */
14799 /* The GNU C library defines this for functions which it implements
14800 to always fail with ENOSYS. Some functions are actually named
14801 something starting with __ and the normal name is an alias. */
14802 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14810 if { (eval echo configure:14811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14812 eval "ac_cv_func_$ac_func=yes"
14814 echo "configure: failed program was:" >&5
14815 cat conftest.$ac_ext >&5
14817 eval "ac_cv_func_$ac_func=no"
14822 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14823 echo "$ac_t""yes" 1>&6
14824 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14825 cat >> confdefs.h <<EOF
14826 #define $ac_tr_func 1
14830 echo "$ac_t""no" 1>&6
14835 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
14836 echo "configure:14837: checking for pthread_detach with <pthread.h>" >&5
14837 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
14838 echo $ac_n "(cached) $ac_c" 1>&6
14841 cat > conftest.$ac_ext <<EOF
14842 #line 14843 "configure"
14843 #include "confdefs.h"
14845 #include <pthread.h>
14847 #define NULL (void*)0
14851 pthread_detach(NULL);
14854 if { (eval echo configure:14855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14856 ol_cv_func_pthread_detach=yes
14858 echo "configure: failed program was:" >&5
14859 cat conftest.$ac_ext >&5
14861 ol_cv_func_pthread_detach=no
14867 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
14869 if test $ol_cv_func_pthread_detach = no ; then
14870 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
14873 cat >> confdefs.h <<\EOF
14874 #define HAVE_PTHREAD_DETACH 1
14879 pthread_setconcurrency \
14880 pthread_getconcurrency \
14881 thr_setconcurrency \
14882 thr_getconcurrency \
14885 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14886 echo "configure:14887: checking for $ac_func" >&5
14887 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14888 echo $ac_n "(cached) $ac_c" 1>&6
14890 cat > conftest.$ac_ext <<EOF
14891 #line 14892 "configure"
14892 #include "confdefs.h"
14893 /* System header to define __stub macros and hopefully few prototypes,
14894 which can conflict with char $ac_func(); below. */
14895 #include <assert.h>
14896 /* Override any gcc2 internal prototype to avoid an error. */
14897 /* We use char because int might match the return type of a gcc2
14898 builtin and then its argument prototype would still apply. */
14904 /* The GNU C library defines this for functions which it implements
14905 to always fail with ENOSYS. Some functions are actually named
14906 something starting with __ and the normal name is an alias. */
14907 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14915 if { (eval echo configure:14916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14917 eval "ac_cv_func_$ac_func=yes"
14919 echo "configure: failed program was:" >&5
14920 cat conftest.$ac_ext >&5
14922 eval "ac_cv_func_$ac_func=no"
14927 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14928 echo "$ac_t""yes" 1>&6
14929 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14930 cat >> confdefs.h <<EOF
14931 #define $ac_tr_func 1
14935 echo "$ac_t""no" 1>&6
14941 for ac_func in pthread_kill_other_threads_np
14943 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14944 echo "configure:14945: checking for $ac_func" >&5
14945 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14946 echo $ac_n "(cached) $ac_c" 1>&6
14948 cat > conftest.$ac_ext <<EOF
14949 #line 14950 "configure"
14950 #include "confdefs.h"
14951 /* System header to define __stub macros and hopefully few prototypes,
14952 which can conflict with char $ac_func(); below. */
14953 #include <assert.h>
14954 /* Override any gcc2 internal prototype to avoid an error. */
14955 /* We use char because int might match the return type of a gcc2
14956 builtin and then its argument prototype would still apply. */
14962 /* The GNU C library defines this for functions which it implements
14963 to always fail with ENOSYS. Some functions are actually named
14964 something starting with __ and the normal name is an alias. */
14965 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14973 if { (eval echo configure:14974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14975 eval "ac_cv_func_$ac_func=yes"
14977 echo "configure: failed program was:" >&5
14978 cat conftest.$ac_ext >&5
14980 eval "ac_cv_func_$ac_func=no"
14985 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14986 echo "$ac_t""yes" 1>&6
14987 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14988 cat >> confdefs.h <<EOF
14989 #define $ac_tr_func 1
14993 echo "$ac_t""no" 1>&6
14997 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
14998 echo "configure:14999: checking for LinuxThreads implementation" >&5
14999 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
15000 echo $ac_n "(cached) $ac_c" 1>&6
15002 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
15005 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
15010 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
15011 echo "configure:15012: checking for LinuxThreads consistency" >&5
15012 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
15013 echo $ac_n "(cached) $ac_c" 1>&6
15016 if test $ol_cv_header_linux_threads = yes -a \
15017 $ol_cv_sys_linux_threads = yes; then
15018 ol_cv_linux_threads=yes
15019 elif test $ol_cv_header_linux_threads = no -a \
15020 $ol_cv_sys_linux_threads = no; then
15021 ol_cv_linux_threads=no
15023 ol_cv_linux_threads=error
15028 echo "$ac_t""$ol_cv_linux_threads" 1>&6
15031 if test $ol_cv_linux_threads = error; then
15032 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
15035 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
15036 echo "configure:15037: checking if pthread_create() works" >&5
15037 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
15038 echo $ac_n "(cached) $ac_c" 1>&6
15041 if test "$cross_compiling" = yes; then
15042 ol_cv_pthread_create_works=yes
15044 cat > conftest.$ac_ext <<EOF
15045 #line 15046 "configure"
15046 #include "confdefs.h"
15047 /* pthread test headers */
15048 #include <pthread.h>
15049 #if HAVE_PTHREADS < 7
15053 #define NULL (void*)0
15056 static void *task(p)
15059 return (void *) (p == NULL);
15063 int main(argc, argv)
15068 /* pthread test function */
15069 #ifndef PTHREAD_CREATE_DETACHED
15070 #define PTHREAD_CREATE_DETACHED 1
15074 int detach = PTHREAD_CREATE_DETACHED;
15076 #if HAVE_PTHREADS > 4
15077 /* Final pthreads */
15078 pthread_attr_t attr;
15080 status = pthread_attr_init(&attr);
15081 if( status ) return status;
15083 #if HAVE_PTHREADS < 7
15084 status = pthread_attr_setdetachstate(&attr, &detach);
15085 if( status < 0 ) status = errno;
15087 status = pthread_attr_setdetachstate(&attr, detach);
15089 if( status ) return status;
15090 status = pthread_create( &t, &attr, task, NULL );
15091 #if HAVE_PTHREADS < 7
15092 if( status < 0 ) status = errno;
15094 if( status ) return status;
15096 /* Draft 4 pthreads */
15097 status = pthread_create( &t, pthread_attr_default, task, NULL );
15098 if( status ) return errno;
15100 /* give thread a chance to complete */
15101 /* it should remain joinable and hence detachable */
15104 status = pthread_detach( &t );
15105 if( status ) return errno;
15108 #ifdef HAVE_LINUX_THREADS
15109 pthread_kill_other_threads_np();
15117 if { (eval echo configure:15118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15119 ol_cv_pthread_create_works=yes
15121 echo "configure: failed program was:" >&5
15122 cat conftest.$ac_ext >&5
15124 ol_cv_pthread_create_works=no
15131 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
15133 if test $ol_cv_pthread_create_works = no ; then
15134 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
15137 if test $ol_with_yielding_select = auto ; then
15138 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
15139 echo "configure:15140: checking if select yields when using pthreads" >&5
15140 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
15141 echo $ac_n "(cached) $ac_c" 1>&6
15144 if test "$cross_compiling" = yes; then
15145 ol_cv_pthread_select_yields=cross
15147 cat > conftest.$ac_ext <<EOF
15148 #line 15149 "configure"
15149 #include "confdefs.h"
15151 #include <sys/types.h>
15152 #include <sys/time.h>
15153 #include <unistd.h>
15154 #include <pthread.h>
15156 #define NULL (void*) 0
15159 static int fildes[2];
15161 static void *task(p)
15173 FD_SET(fildes[0], &rfds);
15175 /* we're not interested in any fds */
15176 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
15183 exit(0); /* if we exit here, the select blocked the whole process */
15186 int main(argc, argv)
15192 /* create a pipe to select */
15193 if(pipe(&fildes[0])) {
15198 #ifdef HAVE_PTHREAD_SETCONCURRENCY
15199 (void) pthread_setconcurrency(2);
15201 #ifdef HAVE_THR_SETCONCURRENCY
15202 /* Set Solaris LWP concurrency to 2 */
15203 thr_setconcurrency(2);
15207 #if HAVE_PTHREADS < 6
15208 pthread_create(&t, pthread_attr_default, task, NULL);
15210 pthread_create(&t, NULL, task, NULL);
15213 /* make sure task runs first */
15216 #elif defined( HAVE_SCHED_YIELD )
15218 #elif defined( HAVE_PTHREAD_YIELD )
15225 if { (eval echo configure:15226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15227 ol_cv_pthread_select_yields=no
15229 echo "configure: failed program was:" >&5
15230 cat conftest.$ac_ext >&5
15232 ol_cv_pthread_select_yields=yes
15239 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
15241 if test $ol_cv_pthread_select_yields = cross ; then
15242 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
15245 if test $ol_cv_pthread_select_yields = yes ; then
15246 ol_with_yielding_select=yes
15250 CPPFLAGS="$save_CPPFLAGS"
15253 { echo "configure: error: could not locate usable POSIX Threads" 1>&2; exit 1; }
15257 if test $ol_with_threads = posix ; then
15258 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
15262 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15263 -o $ol_with_threads = mach ; then
15265 for ac_hdr in mach/cthreads.h cthreads.h
15267 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15268 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15269 echo "configure:15270: checking for $ac_hdr" >&5
15270 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15271 echo $ac_n "(cached) $ac_c" 1>&6
15273 cat > conftest.$ac_ext <<EOF
15274 #line 15275 "configure"
15275 #include "confdefs.h"
15278 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15279 { (eval echo configure:15280: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15280 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15281 if test -z "$ac_err"; then
15283 eval "ac_cv_header_$ac_safe=yes"
15286 echo "configure: failed program was:" >&5
15287 cat conftest.$ac_ext >&5
15289 eval "ac_cv_header_$ac_safe=no"
15293 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15294 echo "$ac_t""yes" 1>&6
15295 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15296 cat >> confdefs.h <<EOF
15297 #define $ac_tr_hdr 1
15301 echo "$ac_t""no" 1>&6
15305 if test $ac_cv_header_mach_cthreads_h = yes ; then
15306 ol_with_threads=found
15308 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
15309 echo "configure:15310: checking for cthread_fork" >&5
15310 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
15311 echo $ac_n "(cached) $ac_c" 1>&6
15313 cat > conftest.$ac_ext <<EOF
15314 #line 15315 "configure"
15315 #include "confdefs.h"
15316 /* System header to define __stub macros and hopefully few prototypes,
15317 which can conflict with char cthread_fork(); below. */
15318 #include <assert.h>
15319 /* Override any gcc2 internal prototype to avoid an error. */
15320 /* We use char because int might match the return type of a gcc2
15321 builtin and then its argument prototype would still apply. */
15322 char cthread_fork();
15327 /* The GNU C library defines this for functions which it implements
15328 to always fail with ENOSYS. Some functions are actually named
15329 something starting with __ and the normal name is an alias. */
15330 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
15338 if { (eval echo configure:15339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15340 eval "ac_cv_func_cthread_fork=yes"
15342 echo "configure: failed program was:" >&5
15343 cat conftest.$ac_ext >&5
15345 eval "ac_cv_func_cthread_fork=no"
15350 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
15351 echo "$ac_t""yes" 1>&6
15352 ol_link_threads=yes
15354 echo "$ac_t""no" 1>&6
15358 if test $ol_link_threads = no ; then
15359 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
15360 echo "configure:15361: checking for cthread_fork with -all_load" >&5
15361 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
15362 echo $ac_n "(cached) $ac_c" 1>&6
15366 LIBS="-all_load $LIBS"
15367 cat > conftest.$ac_ext <<EOF
15368 #line 15369 "configure"
15369 #include "confdefs.h"
15370 #include <mach/cthreads.h>
15373 cthread_fork((void *)0, (void *)0);
15377 if { (eval echo configure:15378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15379 ol_cv_cthread_all_load=yes
15381 echo "configure: failed program was:" >&5
15382 cat conftest.$ac_ext >&5
15384 ol_cv_cthread_all_load=no
15391 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
15393 if test $ol_cv_cthread_all_load = yes ; then
15394 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
15395 ol_link_threads=mach
15396 ol_with_threads=found
15400 elif test $ac_cv_header_cthreads_h = yes ; then
15402 ol_with_threads=found
15405 LIBS="$LIBS -lthreads"
15406 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
15407 echo "configure:15408: checking for cthread_fork" >&5
15408 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
15409 echo $ac_n "(cached) $ac_c" 1>&6
15411 cat > conftest.$ac_ext <<EOF
15412 #line 15413 "configure"
15413 #include "confdefs.h"
15414 /* System header to define __stub macros and hopefully few prototypes,
15415 which can conflict with char cthread_fork(); below. */
15416 #include <assert.h>
15417 /* Override any gcc2 internal prototype to avoid an error. */
15418 /* We use char because int might match the return type of a gcc2
15419 builtin and then its argument prototype would still apply. */
15420 char cthread_fork();
15425 /* The GNU C library defines this for functions which it implements
15426 to always fail with ENOSYS. Some functions are actually named
15427 something starting with __ and the normal name is an alias. */
15428 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
15436 if { (eval echo configure:15437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15438 eval "ac_cv_func_cthread_fork=yes"
15440 echo "configure: failed program was:" >&5
15441 cat conftest.$ac_ext >&5
15443 eval "ac_cv_func_cthread_fork=no"
15448 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
15449 echo "$ac_t""yes" 1>&6
15450 ol_link_threads=yes
15452 echo "$ac_t""no" 1>&6
15457 if test $ol_link_threads = yes ; then
15458 LTHREAD_LIBS="-lthreads"
15459 ol_link_threads=mach
15460 ol_with_threads=found
15462 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
15465 elif test $ol_with_threads = mach ; then
15466 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
15469 if test $ol_link_threads = mach ; then
15470 cat >> confdefs.h <<\EOF
15471 #define HAVE_MACH_CTHREADS 1
15474 elif test $ol_with_threads = found ; then
15475 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
15479 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15480 -o $ol_with_threads = pth ; then
15482 for ac_hdr in pth.h
15484 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15485 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15486 echo "configure:15487: checking for $ac_hdr" >&5
15487 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15488 echo $ac_n "(cached) $ac_c" 1>&6
15490 cat > conftest.$ac_ext <<EOF
15491 #line 15492 "configure"
15492 #include "confdefs.h"
15495 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15496 { (eval echo configure:15497: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15497 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15498 if test -z "$ac_err"; then
15500 eval "ac_cv_header_$ac_safe=yes"
15503 echo "configure: failed program was:" >&5
15504 cat conftest.$ac_ext >&5
15506 eval "ac_cv_header_$ac_safe=no"
15510 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15511 echo "$ac_t""yes" 1>&6
15512 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15513 cat >> confdefs.h <<EOF
15514 #define $ac_tr_hdr 1
15518 echo "$ac_t""no" 1>&6
15523 if test $ac_cv_header_pth_h = yes ; then
15524 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
15525 echo "configure:15526: checking for pth_version in -lpth" >&5
15526 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
15527 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15528 echo $ac_n "(cached) $ac_c" 1>&6
15530 ac_save_LIBS="$LIBS"
15532 cat > conftest.$ac_ext <<EOF
15533 #line 15534 "configure"
15534 #include "confdefs.h"
15535 /* Override any gcc2 internal prototype to avoid an error. */
15536 /* We use char because int might match the return type of a gcc2
15537 builtin and then its argument prototype would still apply. */
15538 char pth_version();
15544 if { (eval echo configure:15545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15546 eval "ac_cv_lib_$ac_lib_var=yes"
15548 echo "configure: failed program was:" >&5
15549 cat conftest.$ac_ext >&5
15551 eval "ac_cv_lib_$ac_lib_var=no"
15554 LIBS="$ac_save_LIBS"
15557 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15558 echo "$ac_t""yes" 1>&6
15561 echo "$ac_t""no" 1>&6
15566 if test $have_pth = yes ; then
15567 cat >> confdefs.h <<\EOF
15568 #define HAVE_GNU_PTH 1
15571 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
15572 ol_link_threads=pth
15573 ol_with_threads=found
15575 if test $ol_with_yielding_select = auto ; then
15576 ol_with_yielding_select=yes
15582 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15583 -o $ol_with_threads = lwp ; then
15585 for ac_hdr in thread.h synch.h
15587 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15588 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15589 echo "configure:15590: checking for $ac_hdr" >&5
15590 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15591 echo $ac_n "(cached) $ac_c" 1>&6
15593 cat > conftest.$ac_ext <<EOF
15594 #line 15595 "configure"
15595 #include "confdefs.h"
15598 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15599 { (eval echo configure:15600: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15600 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15601 if test -z "$ac_err"; then
15603 eval "ac_cv_header_$ac_safe=yes"
15606 echo "configure: failed program was:" >&5
15607 cat conftest.$ac_ext >&5
15609 eval "ac_cv_header_$ac_safe=no"
15613 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15614 echo "$ac_t""yes" 1>&6
15615 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15616 cat >> confdefs.h <<EOF
15617 #define $ac_tr_hdr 1
15621 echo "$ac_t""no" 1>&6
15625 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
15626 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
15627 echo "configure:15628: checking for thr_create in -lthread" >&5
15628 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
15629 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15630 echo $ac_n "(cached) $ac_c" 1>&6
15632 ac_save_LIBS="$LIBS"
15633 LIBS="-lthread $LIBS"
15634 cat > conftest.$ac_ext <<EOF
15635 #line 15636 "configure"
15636 #include "confdefs.h"
15637 /* Override any gcc2 internal prototype to avoid an error. */
15638 /* We use char because int might match the return type of a gcc2
15639 builtin and then its argument prototype would still apply. */
15646 if { (eval echo configure:15647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15648 eval "ac_cv_lib_$ac_lib_var=yes"
15650 echo "configure: failed program was:" >&5
15651 cat conftest.$ac_ext >&5
15653 eval "ac_cv_lib_$ac_lib_var=no"
15656 LIBS="$ac_save_LIBS"
15659 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15660 echo "$ac_t""yes" 1>&6
15663 echo "$ac_t""no" 1>&6
15668 if test $have_thr = yes ; then
15669 cat >> confdefs.h <<\EOF
15673 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
15674 ol_link_threads=thr
15676 if test $ol_with_yielding_select = auto ; then
15677 ol_with_yielding_select=yes
15681 thr_setconcurrency \
15682 thr_getconcurrency \
15685 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15686 echo "configure:15687: checking for $ac_func" >&5
15687 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15688 echo $ac_n "(cached) $ac_c" 1>&6
15690 cat > conftest.$ac_ext <<EOF
15691 #line 15692 "configure"
15692 #include "confdefs.h"
15693 /* System header to define __stub macros and hopefully few prototypes,
15694 which can conflict with char $ac_func(); below. */
15695 #include <assert.h>
15696 /* Override any gcc2 internal prototype to avoid an error. */
15697 /* We use char because int might match the return type of a gcc2
15698 builtin and then its argument prototype would still apply. */
15704 /* The GNU C library defines this for functions which it implements
15705 to always fail with ENOSYS. Some functions are actually named
15706 something starting with __ and the normal name is an alias. */
15707 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15715 if { (eval echo configure:15716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15717 eval "ac_cv_func_$ac_func=yes"
15719 echo "configure: failed program was:" >&5
15720 cat conftest.$ac_ext >&5
15722 eval "ac_cv_func_$ac_func=no"
15727 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15728 echo "$ac_t""yes" 1>&6
15729 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15730 cat >> confdefs.h <<EOF
15731 #define $ac_tr_func 1
15735 echo "$ac_t""no" 1>&6
15742 for ac_hdr in lwp/lwp.h
15744 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15745 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15746 echo "configure:15747: checking for $ac_hdr" >&5
15747 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15748 echo $ac_n "(cached) $ac_c" 1>&6
15750 cat > conftest.$ac_ext <<EOF
15751 #line 15752 "configure"
15752 #include "confdefs.h"
15755 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15756 { (eval echo configure:15757: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15757 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15758 if test -z "$ac_err"; then
15760 eval "ac_cv_header_$ac_safe=yes"
15763 echo "configure: failed program was:" >&5
15764 cat conftest.$ac_ext >&5
15766 eval "ac_cv_header_$ac_safe=no"
15770 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15771 echo "$ac_t""yes" 1>&6
15772 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15773 cat >> confdefs.h <<EOF
15774 #define $ac_tr_hdr 1
15778 echo "$ac_t""no" 1>&6
15782 if test $ac_cv_header_lwp_lwp_h = yes ; then
15783 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
15784 echo "configure:15785: checking for lwp_create in -llwp" >&5
15785 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
15786 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15787 echo $ac_n "(cached) $ac_c" 1>&6
15789 ac_save_LIBS="$LIBS"
15791 cat > conftest.$ac_ext <<EOF
15792 #line 15793 "configure"
15793 #include "confdefs.h"
15794 /* Override any gcc2 internal prototype to avoid an error. */
15795 /* We use char because int might match the return type of a gcc2
15796 builtin and then its argument prototype would still apply. */
15803 if { (eval echo configure:15804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15805 eval "ac_cv_lib_$ac_lib_var=yes"
15807 echo "configure: failed program was:" >&5
15808 cat conftest.$ac_ext >&5
15810 eval "ac_cv_lib_$ac_lib_var=no"
15813 LIBS="$ac_save_LIBS"
15816 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15817 echo "$ac_t""yes" 1>&6
15820 echo "$ac_t""no" 1>&6
15825 if test $have_lwp = yes ; then
15826 cat >> confdefs.h <<\EOF
15830 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
15831 ol_link_threads=lwp
15833 if test $ol_with_yielding_select = auto ; then
15834 ol_with_yielding_select=no
15840 if test $ol_with_yielding_select = yes ; then
15841 cat >> confdefs.h <<\EOF
15842 #define HAVE_YIELDING_SELECT 1
15847 if test $ol_with_threads = manual ; then
15848 ol_link_threads=yes
15850 echo "configure: warning: thread defines and link options must be set manually" 1>&2
15852 for ac_hdr in pthread.h sched.h
15854 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15855 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15856 echo "configure:15857: checking for $ac_hdr" >&5
15857 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15858 echo $ac_n "(cached) $ac_c" 1>&6
15860 cat > conftest.$ac_ext <<EOF
15861 #line 15862 "configure"
15862 #include "confdefs.h"
15865 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15866 { (eval echo configure:15867: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15867 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15868 if test -z "$ac_err"; then
15870 eval "ac_cv_header_$ac_safe=yes"
15873 echo "configure: failed program was:" >&5
15874 cat conftest.$ac_ext >&5
15876 eval "ac_cv_header_$ac_safe=no"
15880 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15881 echo "$ac_t""yes" 1>&6
15882 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15883 cat >> confdefs.h <<EOF
15884 #define $ac_tr_hdr 1
15888 echo "$ac_t""no" 1>&6
15892 for ac_func in sched_yield pthread_yield
15894 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15895 echo "configure:15896: checking for $ac_func" >&5
15896 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15897 echo $ac_n "(cached) $ac_c" 1>&6
15899 cat > conftest.$ac_ext <<EOF
15900 #line 15901 "configure"
15901 #include "confdefs.h"
15902 /* System header to define __stub macros and hopefully few prototypes,
15903 which can conflict with char $ac_func(); below. */
15904 #include <assert.h>
15905 /* Override any gcc2 internal prototype to avoid an error. */
15906 /* We use char because int might match the return type of a gcc2
15907 builtin and then its argument prototype would still apply. */
15913 /* The GNU C library defines this for functions which it implements
15914 to always fail with ENOSYS. Some functions are actually named
15915 something starting with __ and the normal name is an alias. */
15916 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15924 if { (eval echo configure:15925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15926 eval "ac_cv_func_$ac_func=yes"
15928 echo "configure: failed program was:" >&5
15929 cat conftest.$ac_ext >&5
15931 eval "ac_cv_func_$ac_func=no"
15936 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15937 echo "$ac_t""yes" 1>&6
15938 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15939 cat >> confdefs.h <<EOF
15940 #define $ac_tr_func 1
15944 echo "$ac_t""no" 1>&6
15949 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
15950 echo "configure:15951: checking for LinuxThreads pthread.h" >&5
15951 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
15952 echo $ac_n "(cached) $ac_c" 1>&6
15954 cat > conftest.$ac_ext <<EOF
15955 #line 15956 "configure"
15956 #include "confdefs.h"
15957 #include <pthread.h>
15959 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15960 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
15962 ol_cv_header_linux_threads=yes
15965 ol_cv_header_linux_threads=no
15972 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
15973 if test $ol_cv_header_linux_threads = yes; then
15974 cat >> confdefs.h <<\EOF
15975 #define HAVE_LINUX_THREADS 1
15981 for ac_hdr in mach/cthreads.h
15983 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15984 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15985 echo "configure:15986: checking for $ac_hdr" >&5
15986 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15987 echo $ac_n "(cached) $ac_c" 1>&6
15989 cat > conftest.$ac_ext <<EOF
15990 #line 15991 "configure"
15991 #include "confdefs.h"
15994 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15995 { (eval echo configure:15996: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15996 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15997 if test -z "$ac_err"; then
15999 eval "ac_cv_header_$ac_safe=yes"
16002 echo "configure: failed program was:" >&5
16003 cat conftest.$ac_ext >&5
16005 eval "ac_cv_header_$ac_safe=no"
16009 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16010 echo "$ac_t""yes" 1>&6
16011 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16012 cat >> confdefs.h <<EOF
16013 #define $ac_tr_hdr 1
16017 echo "$ac_t""no" 1>&6
16021 for ac_hdr in lwp/lwp.h
16023 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16024 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16025 echo "configure:16026: checking for $ac_hdr" >&5
16026 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16027 echo $ac_n "(cached) $ac_c" 1>&6
16029 cat > conftest.$ac_ext <<EOF
16030 #line 16031 "configure"
16031 #include "confdefs.h"
16034 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16035 { (eval echo configure:16036: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16036 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16037 if test -z "$ac_err"; then
16039 eval "ac_cv_header_$ac_safe=yes"
16042 echo "configure: failed program was:" >&5
16043 cat conftest.$ac_ext >&5
16045 eval "ac_cv_header_$ac_safe=no"
16049 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16050 echo "$ac_t""yes" 1>&6
16051 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16052 cat >> confdefs.h <<EOF
16053 #define $ac_tr_hdr 1
16057 echo "$ac_t""no" 1>&6
16061 for ac_hdr in thread.h synch.h
16063 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16064 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16065 echo "configure:16066: checking for $ac_hdr" >&5
16066 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16067 echo $ac_n "(cached) $ac_c" 1>&6
16069 cat > conftest.$ac_ext <<EOF
16070 #line 16071 "configure"
16071 #include "confdefs.h"
16074 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16075 { (eval echo configure:16076: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16076 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16077 if test -z "$ac_err"; then
16079 eval "ac_cv_header_$ac_safe=yes"
16082 echo "configure: failed program was:" >&5
16083 cat conftest.$ac_ext >&5
16085 eval "ac_cv_header_$ac_safe=no"
16089 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16090 echo "$ac_t""yes" 1>&6
16091 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16092 cat >> confdefs.h <<EOF
16093 #define $ac_tr_hdr 1
16097 echo "$ac_t""no" 1>&6
16103 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
16104 cat >> confdefs.h <<\EOF
16105 #define REENTRANT 1
16108 cat >> confdefs.h <<\EOF
16109 #define _REENTRANT 1
16112 cat >> confdefs.h <<\EOF
16113 #define THREAD_SAFE 1
16116 cat >> confdefs.h <<\EOF
16117 #define _THREAD_SAFE 1
16120 cat >> confdefs.h <<\EOF
16121 #define THREADSAFE 1
16124 cat >> confdefs.h <<\EOF
16125 #define _THREADSAFE 1
16128 cat >> confdefs.h <<\EOF
16129 #define _SGI_MP_SOURCE 1
16133 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
16134 echo "configure:16135: checking for thread specific errno" >&5
16135 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
16136 echo $ac_n "(cached) $ac_c" 1>&6
16139 cat > conftest.$ac_ext <<EOF
16140 #line 16141 "configure"
16141 #include "confdefs.h"
16147 if { (eval echo configure:16148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16149 ol_cv_errno_thread_specific=yes
16151 echo "configure: failed program was:" >&5
16152 cat conftest.$ac_ext >&5
16154 ol_cv_errno_thread_specific=no
16160 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
16162 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
16163 echo "configure:16164: checking for thread specific h_errno" >&5
16164 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
16165 echo $ac_n "(cached) $ac_c" 1>&6
16168 cat > conftest.$ac_ext <<EOF
16169 #line 16170 "configure"
16170 #include "confdefs.h"
16176 if { (eval echo configure:16177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16178 ol_cv_h_errno_thread_specific=yes
16180 echo "configure: failed program was:" >&5
16181 cat conftest.$ac_ext >&5
16183 ol_cv_h_errno_thread_specific=no
16189 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
16191 if test $ol_cv_errno_thread_specific != yes \
16192 -o $ol_cv_h_errno_thread_specific != yes ; then
16193 LIBS="$LTHREAD_LIBS $LIBS"
16199 if test $ol_link_threads = no ; then
16200 if test $ol_with_threads = yes ; then
16201 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
16204 if test $ol_with_threads = auto ; then
16205 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
16209 cat >> confdefs.h <<\EOF
16210 #define NO_THREADS 1
16216 if test $ol_link_threads != no ; then
16217 cat >> confdefs.h <<\EOF
16218 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
16225 gethostbyname_r gethostbyaddr_r \
16228 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16229 echo "configure:16230: checking for $ac_func" >&5
16230 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
16231 echo $ac_n "(cached) $ac_c" 1>&6
16233 cat > conftest.$ac_ext <<EOF
16234 #line 16235 "configure"
16235 #include "confdefs.h"
16236 /* System header to define __stub macros and hopefully few prototypes,
16237 which can conflict with char $ac_func(); below. */
16238 #include <assert.h>
16239 /* Override any gcc2 internal prototype to avoid an error. */
16240 /* We use char because int might match the return type of a gcc2
16241 builtin and then its argument prototype would still apply. */
16247 /* The GNU C library defines this for functions which it implements
16248 to always fail with ENOSYS. Some functions are actually named
16249 something starting with __ and the normal name is an alias. */
16250 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16258 if { (eval echo configure:16259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16260 eval "ac_cv_func_$ac_func=yes"
16262 echo "configure: failed program was:" >&5
16263 cat conftest.$ac_ext >&5
16265 eval "ac_cv_func_$ac_func=no"
16270 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16271 echo "$ac_t""yes" 1>&6
16272 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16273 cat >> confdefs.h <<EOF
16274 #define $ac_tr_func 1
16278 echo "$ac_t""no" 1>&6
16283 if test "$ac_cv_func_ctime_r" = no ; then
16284 ol_cv_func_ctime_r_nargs=0
16286 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
16287 echo "configure:16288: checking number of arguments of ctime_r" >&5
16288 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
16289 echo $ac_n "(cached) $ac_c" 1>&6
16291 cat > conftest.$ac_ext <<EOF
16292 #line 16293 "configure"
16293 #include "confdefs.h"
16296 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
16299 if { (eval echo configure:16300: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16301 ol_cv_func_ctime_r_nargs3=yes
16303 echo "configure: failed program was:" >&5
16304 cat conftest.$ac_ext >&5
16306 ol_cv_func_ctime_r_nargs3=no
16310 cat > conftest.$ac_ext <<EOF
16311 #line 16312 "configure"
16312 #include "confdefs.h"
16315 time_t ti; char *buffer; ctime_r(&ti,buffer);
16318 if { (eval echo configure:16319: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16320 ol_cv_func_ctime_r_nargs2=yes
16322 echo "configure: failed program was:" >&5
16323 cat conftest.$ac_ext >&5
16325 ol_cv_func_ctime_r_nargs2=no
16329 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
16330 $ol_cv_func_ctime_r_nargs2 = no ; then
16332 ol_cv_func_ctime_r_nargs=3
16334 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
16335 $ol_cv_func_ctime_r_nargs2 = yes ; then
16337 ol_cv_func_ctime_r_nargs=2
16340 ol_cv_func_ctime_r_nargs=0
16345 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
16347 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
16348 cat >> confdefs.h <<EOF
16349 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
16356 if test "$ac_cv_func_gethostbyname_r" = yes ; then
16357 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
16358 echo "configure:16359: checking number of arguments of gethostbyname_r" >&5
16359 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
16360 echo $ac_n "(cached) $ac_c" 1>&6
16362 cat > conftest.$ac_ext <<EOF
16363 #line 16364 "configure"
16364 #include "confdefs.h"
16365 #include <sys/types.h>
16366 #include <sys/socket.h>
16367 #include <netinet/in.h>
16369 #define BUFSIZE (sizeof(struct hostent)+10)
16371 struct hostent hent; char buffer[BUFSIZE];
16372 int bufsize=BUFSIZE;int h_errno;
16373 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
16374 buffer, bufsize, &h_errno);
16377 if { (eval echo configure:16378: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16379 ol_cv_func_gethostbyname_r_nargs5=yes
16381 echo "configure: failed program was:" >&5
16382 cat conftest.$ac_ext >&5
16384 ol_cv_func_gethostbyname_r_nargs5=no
16388 cat > conftest.$ac_ext <<EOF
16389 #line 16390 "configure"
16390 #include "confdefs.h"
16391 #include <sys/types.h>
16392 #include <sys/socket.h>
16393 #include <netinet/in.h>
16395 #define BUFSIZE (sizeof(struct hostent)+10)
16397 struct hostent hent;struct hostent *rhent;
16398 char buffer[BUFSIZE];
16399 int bufsize=BUFSIZE;int h_errno;
16400 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
16404 if { (eval echo configure:16405: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16406 ol_cv_func_gethostbyname_r_nargs6=yes
16408 echo "configure: failed program was:" >&5
16409 cat conftest.$ac_ext >&5
16411 ol_cv_func_gethostbyname_r_nargs6=no
16415 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
16416 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
16418 ol_cv_func_gethostbyname_r_nargs=5
16420 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
16421 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
16423 ol_cv_func_gethostbyname_r_nargs=6
16426 ol_cv_func_gethostbyname_r_nargs=0
16431 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
16432 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
16433 cat >> confdefs.h <<EOF
16434 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
16440 ol_cv_func_gethostbyname_r_nargs=0
16443 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
16444 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
16445 echo "configure:16446: checking number of arguments of gethostbyaddr_r" >&5
16446 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
16447 echo $ac_n "(cached) $ac_c" 1>&6
16449 cat > conftest.$ac_ext <<EOF
16450 #line 16451 "configure"
16451 #include "confdefs.h"
16452 #include <sys/types.h>
16453 #include <sys/socket.h>
16454 #include <netinet/in.h>
16456 #define BUFSIZE (sizeof(struct hostent)+10)
16458 struct hostent hent; char buffer[BUFSIZE];
16459 struct in_addr add;
16460 size_t alen=sizeof(struct in_addr);
16461 int bufsize=BUFSIZE;int h_errno;
16462 (void)gethostbyaddr_r( (void *)&(add.s_addr),
16463 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
16466 if { (eval echo configure:16467: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16468 ol_cv_func_gethostbyaddr_r_nargs7=yes
16470 echo "configure: failed program was:" >&5
16471 cat conftest.$ac_ext >&5
16473 ol_cv_func_gethostbyaddr_r_nargs7=no
16477 cat > conftest.$ac_ext <<EOF
16478 #line 16479 "configure"
16479 #include "confdefs.h"
16480 #include <sys/types.h>
16481 #include <sys/socket.h>
16482 #include <netinet/in.h>
16484 #define BUFSIZE (sizeof(struct hostent)+10)
16486 struct hostent hent;
16487 struct hostent *rhent; char buffer[BUFSIZE];
16488 struct in_addr add;
16489 size_t alen=sizeof(struct in_addr);
16490 int bufsize=BUFSIZE;int h_errno;
16491 (void)gethostbyaddr_r( (void *)&(add.s_addr),
16492 alen, AF_INET, &hent, buffer, bufsize,
16496 if { (eval echo configure:16497: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16498 ol_cv_func_gethostbyaddr_r_nargs8=yes
16500 echo "configure: failed program was:" >&5
16501 cat conftest.$ac_ext >&5
16503 ol_cv_func_gethostbyaddr_r_nargs8=no
16507 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
16508 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
16510 ol_cv_func_gethostbyaddr_r_nargs=7
16512 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
16513 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
16515 ol_cv_func_gethostbyaddr_r_nargs=8
16518 ol_cv_func_gethostbyaddr_r_nargs=0
16523 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
16524 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
16525 cat >> confdefs.h <<EOF
16526 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
16532 ol_cv_func_gethostbyaddr_r_nargs=0
16537 if test $ol_with_ldbm_api = auto \
16538 -o $ol_with_ldbm_api = berkeley \
16539 -o $ol_with_ldbm_api = bcompat ; then
16541 if test $ol_with_ldbm_api = bcompat; then \
16542 for ac_hdr in db_185.h db.h
16544 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16545 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16546 echo "configure:16547: checking for $ac_hdr" >&5
16547 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16548 echo $ac_n "(cached) $ac_c" 1>&6
16550 cat > conftest.$ac_ext <<EOF
16551 #line 16552 "configure"
16552 #include "confdefs.h"
16555 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16556 { (eval echo configure:16557: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16557 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16558 if test -z "$ac_err"; then
16560 eval "ac_cv_header_$ac_safe=yes"
16563 echo "configure: failed program was:" >&5
16564 cat conftest.$ac_ext >&5
16566 eval "ac_cv_header_$ac_safe=no"
16570 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16571 echo "$ac_t""yes" 1>&6
16572 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16573 cat >> confdefs.h <<EOF
16574 #define $ac_tr_hdr 1
16578 echo "$ac_t""no" 1>&6
16582 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
16583 echo $ac_n "checking if Berkeley DB header compatibility""... $ac_c" 1>&6
16584 echo "configure:16585: checking if Berkeley DB header compatibility" >&5
16585 if eval "test \"\${ol_cv_header_db1+set}\" = set"; then
16586 echo $ac_n "(cached) $ac_c" 1>&6
16589 cat > conftest.$ac_ext <<EOF
16590 #line 16591 "configure"
16591 #include "confdefs.h"
16594 # include <db_185.h>
16599 /* this check could be improved */
16600 #ifndef DB_VERSION_MAJOR
16601 # define DB_VERSION_MAJOR 1
16604 #if DB_VERSION_MAJOR == 1
16609 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16610 egrep "__db_version_1" >/dev/null 2>&1; then
16612 ol_cv_header_db1=yes
16615 ol_cv_header_db1=no
16621 echo "$ac_t""$ol_cv_header_db1" 1>&6
16623 if test $ol_cv_header_db1 = yes ; then
16625 if test $ol_cv_lib_db = no ; then
16626 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
16627 echo "configure:16628: checking for Berkeley DB link (default)" >&5
16628 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
16629 echo $ac_n "(cached) $ac_c" 1>&6
16634 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16636 cat > conftest.$ac_ext <<EOF
16637 #line 16638 "configure"
16638 #include "confdefs.h"
16640 #ifdef HAVE_DB_185_H
16641 # include <db_185.h>
16646 #ifndef DB_VERSION_MAJOR
16647 # define DB_VERSION_MAJOR 1
16651 #define NULL ((void*)0)
16656 #if DB_VERSION_MAJOR > 1
16659 int major, minor, patch;
16661 version = db_version( &major, &minor, &patch );
16663 if( major != DB_VERSION_MAJOR ||
16664 minor < DB_VERSION_MINOR )
16666 printf("Berkeley DB version mismatch\n"
16667 "\texpected: %s\n\tgot: %s\n",
16668 DB_VERSION_STRING, version);
16674 #if DB_VERSION_MAJOR > 2
16675 db_env_create( NULL, 0 );
16676 #elif DB_VERSION_MAJOR > 1
16677 db_appexit( NULL );
16679 (void) dbopen( NULL, 0, 0, 0, NULL);
16684 if { (eval echo configure:16685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16688 echo "configure: failed program was:" >&5
16689 cat conftest.$ac_ext >&5
16699 echo "$ac_t""$ol_cv_db_none" 1>&6
16701 if test $ol_cv_db_none = yes ; then
16706 if test $ol_cv_lib_db = no ; then
16707 echo $ac_n "checking for Berkeley DB link (-ldb42)""... $ac_c" 1>&6
16708 echo "configure:16709: checking for Berkeley DB link (-ldb42)" >&5
16709 if eval "test \"\${ol_cv_db_db42+set}\" = set"; then
16710 echo $ac_n "(cached) $ac_c" 1>&6
16715 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16717 cat > conftest.$ac_ext <<EOF
16718 #line 16719 "configure"
16719 #include "confdefs.h"
16721 #ifdef HAVE_DB_185_H
16722 # include <db_185.h>
16727 #ifndef DB_VERSION_MAJOR
16728 # define DB_VERSION_MAJOR 1
16732 #define NULL ((void*)0)
16737 #if DB_VERSION_MAJOR > 1
16740 int major, minor, patch;
16742 version = db_version( &major, &minor, &patch );
16744 if( major != DB_VERSION_MAJOR ||
16745 minor < DB_VERSION_MINOR )
16747 printf("Berkeley DB version mismatch\n"
16748 "\texpected: %s\n\tgot: %s\n",
16749 DB_VERSION_STRING, version);
16755 #if DB_VERSION_MAJOR > 2
16756 db_env_create( NULL, 0 );
16757 #elif DB_VERSION_MAJOR > 1
16758 db_appexit( NULL );
16760 (void) dbopen( NULL, 0, 0, 0, NULL);
16765 if { (eval echo configure:16766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16769 echo "configure: failed program was:" >&5
16770 cat conftest.$ac_ext >&5
16780 echo "$ac_t""$ol_cv_db_db42" 1>&6
16782 if test $ol_cv_db_db42 = yes ; then
16783 ol_cv_lib_db=-ldb42
16787 if test $ol_cv_lib_db = no ; then
16788 echo $ac_n "checking for Berkeley DB link (-ldb-42)""... $ac_c" 1>&6
16789 echo "configure:16790: checking for Berkeley DB link (-ldb-42)" >&5
16790 if eval "test \"\${ol_cv_db_db_42+set}\" = set"; then
16791 echo $ac_n "(cached) $ac_c" 1>&6
16796 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16798 cat > conftest.$ac_ext <<EOF
16799 #line 16800 "configure"
16800 #include "confdefs.h"
16802 #ifdef HAVE_DB_185_H
16803 # include <db_185.h>
16808 #ifndef DB_VERSION_MAJOR
16809 # define DB_VERSION_MAJOR 1
16813 #define NULL ((void*)0)
16818 #if DB_VERSION_MAJOR > 1
16821 int major, minor, patch;
16823 version = db_version( &major, &minor, &patch );
16825 if( major != DB_VERSION_MAJOR ||
16826 minor < DB_VERSION_MINOR )
16828 printf("Berkeley DB version mismatch\n"
16829 "\texpected: %s\n\tgot: %s\n",
16830 DB_VERSION_STRING, version);
16836 #if DB_VERSION_MAJOR > 2
16837 db_env_create( NULL, 0 );
16838 #elif DB_VERSION_MAJOR > 1
16839 db_appexit( NULL );
16841 (void) dbopen( NULL, 0, 0, 0, NULL);
16846 if { (eval echo configure:16847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16850 echo "configure: failed program was:" >&5
16851 cat conftest.$ac_ext >&5
16861 echo "$ac_t""$ol_cv_db_db_42" 1>&6
16863 if test $ol_cv_db_db_42 = yes ; then
16864 ol_cv_lib_db=-ldb-42
16868 if test $ol_cv_lib_db = no ; then
16869 echo $ac_n "checking for Berkeley DB link (-ldb-4.2)""... $ac_c" 1>&6
16870 echo "configure:16871: checking for Berkeley DB link (-ldb-4.2)" >&5
16871 if eval "test \"\${ol_cv_db_db_4_dot_2+set}\" = set"; then
16872 echo $ac_n "(cached) $ac_c" 1>&6
16877 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16879 cat > conftest.$ac_ext <<EOF
16880 #line 16881 "configure"
16881 #include "confdefs.h"
16883 #ifdef HAVE_DB_185_H
16884 # include <db_185.h>
16889 #ifndef DB_VERSION_MAJOR
16890 # define DB_VERSION_MAJOR 1
16894 #define NULL ((void*)0)
16899 #if DB_VERSION_MAJOR > 1
16902 int major, minor, patch;
16904 version = db_version( &major, &minor, &patch );
16906 if( major != DB_VERSION_MAJOR ||
16907 minor < DB_VERSION_MINOR )
16909 printf("Berkeley DB version mismatch\n"
16910 "\texpected: %s\n\tgot: %s\n",
16911 DB_VERSION_STRING, version);
16917 #if DB_VERSION_MAJOR > 2
16918 db_env_create( NULL, 0 );
16919 #elif DB_VERSION_MAJOR > 1
16920 db_appexit( NULL );
16922 (void) dbopen( NULL, 0, 0, 0, NULL);
16927 if { (eval echo configure:16928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16929 ol_cv_db_db_4_dot_2=yes
16931 echo "configure: failed program was:" >&5
16932 cat conftest.$ac_ext >&5
16934 ol_cv_db_db_4_dot_2=no
16942 echo "$ac_t""$ol_cv_db_db_4_dot_2" 1>&6
16944 if test $ol_cv_db_db_4_dot_2 = yes ; then
16945 ol_cv_lib_db=-ldb-4.2
16949 if test $ol_cv_lib_db = no ; then
16950 echo $ac_n "checking for Berkeley DB link (-ldb-4-2)""... $ac_c" 1>&6
16951 echo "configure:16952: checking for Berkeley DB link (-ldb-4-2)" >&5
16952 if eval "test \"\${ol_cv_db_db_4_2+set}\" = set"; then
16953 echo $ac_n "(cached) $ac_c" 1>&6
16958 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16960 cat > conftest.$ac_ext <<EOF
16961 #line 16962 "configure"
16962 #include "confdefs.h"
16964 #ifdef HAVE_DB_185_H
16965 # include <db_185.h>
16970 #ifndef DB_VERSION_MAJOR
16971 # define DB_VERSION_MAJOR 1
16975 #define NULL ((void*)0)
16980 #if DB_VERSION_MAJOR > 1
16983 int major, minor, patch;
16985 version = db_version( &major, &minor, &patch );
16987 if( major != DB_VERSION_MAJOR ||
16988 minor < DB_VERSION_MINOR )
16990 printf("Berkeley DB version mismatch\n"
16991 "\texpected: %s\n\tgot: %s\n",
16992 DB_VERSION_STRING, version);
16998 #if DB_VERSION_MAJOR > 2
16999 db_env_create( NULL, 0 );
17000 #elif DB_VERSION_MAJOR > 1
17001 db_appexit( NULL );
17003 (void) dbopen( NULL, 0, 0, 0, NULL);
17008 if { (eval echo configure:17009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17010 ol_cv_db_db_4_2=yes
17012 echo "configure: failed program was:" >&5
17013 cat conftest.$ac_ext >&5
17023 echo "$ac_t""$ol_cv_db_db_4_2" 1>&6
17025 if test $ol_cv_db_db_4_2 = yes ; then
17026 ol_cv_lib_db=-ldb-4-2
17030 if test $ol_cv_lib_db = no ; then
17031 echo $ac_n "checking for Berkeley DB link (-ldb-4)""... $ac_c" 1>&6
17032 echo "configure:17033: checking for Berkeley DB link (-ldb-4)" >&5
17033 if eval "test \"\${ol_cv_db_db_4+set}\" = set"; then
17034 echo $ac_n "(cached) $ac_c" 1>&6
17039 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17041 cat > conftest.$ac_ext <<EOF
17042 #line 17043 "configure"
17043 #include "confdefs.h"
17045 #ifdef HAVE_DB_185_H
17046 # include <db_185.h>
17051 #ifndef DB_VERSION_MAJOR
17052 # define DB_VERSION_MAJOR 1
17056 #define NULL ((void*)0)
17061 #if DB_VERSION_MAJOR > 1
17064 int major, minor, patch;
17066 version = db_version( &major, &minor, &patch );
17068 if( major != DB_VERSION_MAJOR ||
17069 minor < DB_VERSION_MINOR )
17071 printf("Berkeley DB version mismatch\n"
17072 "\texpected: %s\n\tgot: %s\n",
17073 DB_VERSION_STRING, version);
17079 #if DB_VERSION_MAJOR > 2
17080 db_env_create( NULL, 0 );
17081 #elif DB_VERSION_MAJOR > 1
17082 db_appexit( NULL );
17084 (void) dbopen( NULL, 0, 0, 0, NULL);
17089 if { (eval echo configure:17090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17093 echo "configure: failed program was:" >&5
17094 cat conftest.$ac_ext >&5
17104 echo "$ac_t""$ol_cv_db_db_4" 1>&6
17106 if test $ol_cv_db_db_4 = yes ; then
17107 ol_cv_lib_db=-ldb-4
17111 if test $ol_cv_lib_db = no ; then
17112 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
17113 echo "configure:17114: checking for Berkeley DB link (-ldb4)" >&5
17114 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
17115 echo $ac_n "(cached) $ac_c" 1>&6
17120 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17122 cat > conftest.$ac_ext <<EOF
17123 #line 17124 "configure"
17124 #include "confdefs.h"
17126 #ifdef HAVE_DB_185_H
17127 # include <db_185.h>
17132 #ifndef DB_VERSION_MAJOR
17133 # define DB_VERSION_MAJOR 1
17137 #define NULL ((void*)0)
17142 #if DB_VERSION_MAJOR > 1
17145 int major, minor, patch;
17147 version = db_version( &major, &minor, &patch );
17149 if( major != DB_VERSION_MAJOR ||
17150 minor < DB_VERSION_MINOR )
17152 printf("Berkeley DB version mismatch\n"
17153 "\texpected: %s\n\tgot: %s\n",
17154 DB_VERSION_STRING, version);
17160 #if DB_VERSION_MAJOR > 2
17161 db_env_create( NULL, 0 );
17162 #elif DB_VERSION_MAJOR > 1
17163 db_appexit( NULL );
17165 (void) dbopen( NULL, 0, 0, 0, NULL);
17170 if { (eval echo configure:17171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17174 echo "configure: failed program was:" >&5
17175 cat conftest.$ac_ext >&5
17185 echo "$ac_t""$ol_cv_db_db4" 1>&6
17187 if test $ol_cv_db_db4 = yes ; then
17192 if test $ol_cv_lib_db = no ; then
17193 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
17194 echo "configure:17195: checking for Berkeley DB link (-ldb)" >&5
17195 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
17196 echo $ac_n "(cached) $ac_c" 1>&6
17201 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17203 cat > conftest.$ac_ext <<EOF
17204 #line 17205 "configure"
17205 #include "confdefs.h"
17207 #ifdef HAVE_DB_185_H
17208 # include <db_185.h>
17213 #ifndef DB_VERSION_MAJOR
17214 # define DB_VERSION_MAJOR 1
17218 #define NULL ((void*)0)
17223 #if DB_VERSION_MAJOR > 1
17226 int major, minor, patch;
17228 version = db_version( &major, &minor, &patch );
17230 if( major != DB_VERSION_MAJOR ||
17231 minor < DB_VERSION_MINOR )
17233 printf("Berkeley DB version mismatch\n"
17234 "\texpected: %s\n\tgot: %s\n",
17235 DB_VERSION_STRING, version);
17241 #if DB_VERSION_MAJOR > 2
17242 db_env_create( NULL, 0 );
17243 #elif DB_VERSION_MAJOR > 1
17244 db_appexit( NULL );
17246 (void) dbopen( NULL, 0, 0, 0, NULL);
17251 if { (eval echo configure:17252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17255 echo "configure: failed program was:" >&5
17256 cat conftest.$ac_ext >&5
17266 echo "$ac_t""$ol_cv_db_db" 1>&6
17268 if test $ol_cv_db_db = yes ; then
17273 if test $ol_cv_lib_db = no ; then
17274 echo $ac_n "checking for Berkeley DB link (-ldb41)""... $ac_c" 1>&6
17275 echo "configure:17276: checking for Berkeley DB link (-ldb41)" >&5
17276 if eval "test \"\${ol_cv_db_db41+set}\" = set"; then
17277 echo $ac_n "(cached) $ac_c" 1>&6
17282 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17284 cat > conftest.$ac_ext <<EOF
17285 #line 17286 "configure"
17286 #include "confdefs.h"
17288 #ifdef HAVE_DB_185_H
17289 # include <db_185.h>
17294 #ifndef DB_VERSION_MAJOR
17295 # define DB_VERSION_MAJOR 1
17299 #define NULL ((void*)0)
17304 #if DB_VERSION_MAJOR > 1
17307 int major, minor, patch;
17309 version = db_version( &major, &minor, &patch );
17311 if( major != DB_VERSION_MAJOR ||
17312 minor < DB_VERSION_MINOR )
17314 printf("Berkeley DB version mismatch\n"
17315 "\texpected: %s\n\tgot: %s\n",
17316 DB_VERSION_STRING, version);
17322 #if DB_VERSION_MAJOR > 2
17323 db_env_create( NULL, 0 );
17324 #elif DB_VERSION_MAJOR > 1
17325 db_appexit( NULL );
17327 (void) dbopen( NULL, 0, 0, 0, NULL);
17332 if { (eval echo configure:17333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17336 echo "configure: failed program was:" >&5
17337 cat conftest.$ac_ext >&5
17347 echo "$ac_t""$ol_cv_db_db41" 1>&6
17349 if test $ol_cv_db_db41 = yes ; then
17350 ol_cv_lib_db=-ldb41
17354 if test $ol_cv_lib_db = no ; then
17355 echo $ac_n "checking for Berkeley DB link (-ldb-41)""... $ac_c" 1>&6
17356 echo "configure:17357: checking for Berkeley DB link (-ldb-41)" >&5
17357 if eval "test \"\${ol_cv_db_db_41+set}\" = set"; then
17358 echo $ac_n "(cached) $ac_c" 1>&6
17363 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17365 cat > conftest.$ac_ext <<EOF
17366 #line 17367 "configure"
17367 #include "confdefs.h"
17369 #ifdef HAVE_DB_185_H
17370 # include <db_185.h>
17375 #ifndef DB_VERSION_MAJOR
17376 # define DB_VERSION_MAJOR 1
17380 #define NULL ((void*)0)
17385 #if DB_VERSION_MAJOR > 1
17388 int major, minor, patch;
17390 version = db_version( &major, &minor, &patch );
17392 if( major != DB_VERSION_MAJOR ||
17393 minor < DB_VERSION_MINOR )
17395 printf("Berkeley DB version mismatch\n"
17396 "\texpected: %s\n\tgot: %s\n",
17397 DB_VERSION_STRING, version);
17403 #if DB_VERSION_MAJOR > 2
17404 db_env_create( NULL, 0 );
17405 #elif DB_VERSION_MAJOR > 1
17406 db_appexit( NULL );
17408 (void) dbopen( NULL, 0, 0, 0, NULL);
17413 if { (eval echo configure:17414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17417 echo "configure: failed program was:" >&5
17418 cat conftest.$ac_ext >&5
17428 echo "$ac_t""$ol_cv_db_db_41" 1>&6
17430 if test $ol_cv_db_db_41 = yes ; then
17431 ol_cv_lib_db=-ldb-41
17435 if test $ol_cv_lib_db = no ; then
17436 echo $ac_n "checking for Berkeley DB link (-ldb-4.1)""... $ac_c" 1>&6
17437 echo "configure:17438: checking for Berkeley DB link (-ldb-4.1)" >&5
17438 if eval "test \"\${ol_cv_db_db_4_dot_1+set}\" = set"; then
17439 echo $ac_n "(cached) $ac_c" 1>&6
17444 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17446 cat > conftest.$ac_ext <<EOF
17447 #line 17448 "configure"
17448 #include "confdefs.h"
17450 #ifdef HAVE_DB_185_H
17451 # include <db_185.h>
17456 #ifndef DB_VERSION_MAJOR
17457 # define DB_VERSION_MAJOR 1
17461 #define NULL ((void*)0)
17466 #if DB_VERSION_MAJOR > 1
17469 int major, minor, patch;
17471 version = db_version( &major, &minor, &patch );
17473 if( major != DB_VERSION_MAJOR ||
17474 minor < DB_VERSION_MINOR )
17476 printf("Berkeley DB version mismatch\n"
17477 "\texpected: %s\n\tgot: %s\n",
17478 DB_VERSION_STRING, version);
17484 #if DB_VERSION_MAJOR > 2
17485 db_env_create( NULL, 0 );
17486 #elif DB_VERSION_MAJOR > 1
17487 db_appexit( NULL );
17489 (void) dbopen( NULL, 0, 0, 0, NULL);
17494 if { (eval echo configure:17495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17496 ol_cv_db_db_4_dot_1=yes
17498 echo "configure: failed program was:" >&5
17499 cat conftest.$ac_ext >&5
17501 ol_cv_db_db_4_dot_1=no
17509 echo "$ac_t""$ol_cv_db_db_4_dot_1" 1>&6
17511 if test $ol_cv_db_db_4_dot_1 = yes ; then
17512 ol_cv_lib_db=-ldb-4.1
17516 if test $ol_cv_lib_db = no ; then
17517 echo $ac_n "checking for Berkeley DB link (-ldb-4-1)""... $ac_c" 1>&6
17518 echo "configure:17519: checking for Berkeley DB link (-ldb-4-1)" >&5
17519 if eval "test \"\${ol_cv_db_db_4_1+set}\" = set"; then
17520 echo $ac_n "(cached) $ac_c" 1>&6
17525 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17527 cat > conftest.$ac_ext <<EOF
17528 #line 17529 "configure"
17529 #include "confdefs.h"
17531 #ifdef HAVE_DB_185_H
17532 # include <db_185.h>
17537 #ifndef DB_VERSION_MAJOR
17538 # define DB_VERSION_MAJOR 1
17542 #define NULL ((void*)0)
17547 #if DB_VERSION_MAJOR > 1
17550 int major, minor, patch;
17552 version = db_version( &major, &minor, &patch );
17554 if( major != DB_VERSION_MAJOR ||
17555 minor < DB_VERSION_MINOR )
17557 printf("Berkeley DB version mismatch\n"
17558 "\texpected: %s\n\tgot: %s\n",
17559 DB_VERSION_STRING, version);
17565 #if DB_VERSION_MAJOR > 2
17566 db_env_create( NULL, 0 );
17567 #elif DB_VERSION_MAJOR > 1
17568 db_appexit( NULL );
17570 (void) dbopen( NULL, 0, 0, 0, NULL);
17575 if { (eval echo configure:17576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17577 ol_cv_db_db_4_1=yes
17579 echo "configure: failed program was:" >&5
17580 cat conftest.$ac_ext >&5
17590 echo "$ac_t""$ol_cv_db_db_4_1" 1>&6
17592 if test $ol_cv_db_db_4_1 = yes ; then
17593 ol_cv_lib_db=-ldb-4-1
17597 if test $ol_cv_lib_db = no ; then
17598 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
17599 echo "configure:17600: checking for Berkeley DB link (-ldb3)" >&5
17600 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
17601 echo $ac_n "(cached) $ac_c" 1>&6
17606 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17608 cat > conftest.$ac_ext <<EOF
17609 #line 17610 "configure"
17610 #include "confdefs.h"
17612 #ifdef HAVE_DB_185_H
17613 # include <db_185.h>
17618 #ifndef DB_VERSION_MAJOR
17619 # define DB_VERSION_MAJOR 1
17623 #define NULL ((void*)0)
17628 #if DB_VERSION_MAJOR > 1
17631 int major, minor, patch;
17633 version = db_version( &major, &minor, &patch );
17635 if( major != DB_VERSION_MAJOR ||
17636 minor < DB_VERSION_MINOR )
17638 printf("Berkeley DB version mismatch\n"
17639 "\texpected: %s\n\tgot: %s\n",
17640 DB_VERSION_STRING, version);
17646 #if DB_VERSION_MAJOR > 2
17647 db_env_create( NULL, 0 );
17648 #elif DB_VERSION_MAJOR > 1
17649 db_appexit( NULL );
17651 (void) dbopen( NULL, 0, 0, 0, NULL);
17656 if { (eval echo configure:17657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17660 echo "configure: failed program was:" >&5
17661 cat conftest.$ac_ext >&5
17671 echo "$ac_t""$ol_cv_db_db3" 1>&6
17673 if test $ol_cv_db_db3 = yes ; then
17678 if test $ol_cv_lib_db = no ; then
17679 echo $ac_n "checking for Berkeley DB link (-ldb-3)""... $ac_c" 1>&6
17680 echo "configure:17681: checking for Berkeley DB link (-ldb-3)" >&5
17681 if eval "test \"\${ol_cv_db_db_3+set}\" = set"; then
17682 echo $ac_n "(cached) $ac_c" 1>&6
17687 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17689 cat > conftest.$ac_ext <<EOF
17690 #line 17691 "configure"
17691 #include "confdefs.h"
17693 #ifdef HAVE_DB_185_H
17694 # include <db_185.h>
17699 #ifndef DB_VERSION_MAJOR
17700 # define DB_VERSION_MAJOR 1
17704 #define NULL ((void*)0)
17709 #if DB_VERSION_MAJOR > 1
17712 int major, minor, patch;
17714 version = db_version( &major, &minor, &patch );
17716 if( major != DB_VERSION_MAJOR ||
17717 minor < DB_VERSION_MINOR )
17719 printf("Berkeley DB version mismatch\n"
17720 "\texpected: %s\n\tgot: %s\n",
17721 DB_VERSION_STRING, version);
17727 #if DB_VERSION_MAJOR > 2
17728 db_env_create( NULL, 0 );
17729 #elif DB_VERSION_MAJOR > 1
17730 db_appexit( NULL );
17732 (void) dbopen( NULL, 0, 0, 0, NULL);
17737 if { (eval echo configure:17738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17741 echo "configure: failed program was:" >&5
17742 cat conftest.$ac_ext >&5
17752 echo "$ac_t""$ol_cv_db_db_3" 1>&6
17754 if test $ol_cv_db_db_3 = yes ; then
17755 ol_cv_lib_db=-ldb-3
17759 if test $ol_cv_lib_db = no ; then
17760 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
17761 echo "configure:17762: checking for Berkeley DB link (-ldb2)" >&5
17762 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
17763 echo $ac_n "(cached) $ac_c" 1>&6
17768 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17770 cat > conftest.$ac_ext <<EOF
17771 #line 17772 "configure"
17772 #include "confdefs.h"
17774 #ifdef HAVE_DB_185_H
17775 # include <db_185.h>
17780 #ifndef DB_VERSION_MAJOR
17781 # define DB_VERSION_MAJOR 1
17785 #define NULL ((void*)0)
17790 #if DB_VERSION_MAJOR > 1
17793 int major, minor, patch;
17795 version = db_version( &major, &minor, &patch );
17797 if( major != DB_VERSION_MAJOR ||
17798 minor < DB_VERSION_MINOR )
17800 printf("Berkeley DB version mismatch\n"
17801 "\texpected: %s\n\tgot: %s\n",
17802 DB_VERSION_STRING, version);
17808 #if DB_VERSION_MAJOR > 2
17809 db_env_create( NULL, 0 );
17810 #elif DB_VERSION_MAJOR > 1
17811 db_appexit( NULL );
17813 (void) dbopen( NULL, 0, 0, 0, NULL);
17818 if { (eval echo configure:17819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17822 echo "configure: failed program was:" >&5
17823 cat conftest.$ac_ext >&5
17833 echo "$ac_t""$ol_cv_db_db2" 1>&6
17835 if test $ol_cv_db_db2 = yes ; then
17840 if test $ol_cv_lib_db = no ; then
17841 echo $ac_n "checking for Berkeley DB link (-ldb-2)""... $ac_c" 1>&6
17842 echo "configure:17843: checking for Berkeley DB link (-ldb-2)" >&5
17843 if eval "test \"\${ol_cv_db_db_2+set}\" = set"; then
17844 echo $ac_n "(cached) $ac_c" 1>&6
17849 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17851 cat > conftest.$ac_ext <<EOF
17852 #line 17853 "configure"
17853 #include "confdefs.h"
17855 #ifdef HAVE_DB_185_H
17856 # include <db_185.h>
17861 #ifndef DB_VERSION_MAJOR
17862 # define DB_VERSION_MAJOR 1
17866 #define NULL ((void*)0)
17871 #if DB_VERSION_MAJOR > 1
17874 int major, minor, patch;
17876 version = db_version( &major, &minor, &patch );
17878 if( major != DB_VERSION_MAJOR ||
17879 minor < DB_VERSION_MINOR )
17881 printf("Berkeley DB version mismatch\n"
17882 "\texpected: %s\n\tgot: %s\n",
17883 DB_VERSION_STRING, version);
17889 #if DB_VERSION_MAJOR > 2
17890 db_env_create( NULL, 0 );
17891 #elif DB_VERSION_MAJOR > 1
17892 db_appexit( NULL );
17894 (void) dbopen( NULL, 0, 0, 0, NULL);
17899 if { (eval echo configure:17900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17903 echo "configure: failed program was:" >&5
17904 cat conftest.$ac_ext >&5
17914 echo "$ac_t""$ol_cv_db_db_2" 1>&6
17916 if test $ol_cv_db_db_2 = yes ; then
17917 ol_cv_lib_db=-ldb-2
17921 if test $ol_cv_lib_db = no ; then
17922 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
17923 echo "configure:17924: checking for Berkeley DB link (-ldb1)" >&5
17924 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
17925 echo $ac_n "(cached) $ac_c" 1>&6
17930 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17932 cat > conftest.$ac_ext <<EOF
17933 #line 17934 "configure"
17934 #include "confdefs.h"
17936 #ifdef HAVE_DB_185_H
17937 # include <db_185.h>
17942 #ifndef DB_VERSION_MAJOR
17943 # define DB_VERSION_MAJOR 1
17947 #define NULL ((void*)0)
17952 #if DB_VERSION_MAJOR > 1
17955 int major, minor, patch;
17957 version = db_version( &major, &minor, &patch );
17959 if( major != DB_VERSION_MAJOR ||
17960 minor < DB_VERSION_MINOR )
17962 printf("Berkeley DB version mismatch\n"
17963 "\texpected: %s\n\tgot: %s\n",
17964 DB_VERSION_STRING, version);
17970 #if DB_VERSION_MAJOR > 2
17971 db_env_create( NULL, 0 );
17972 #elif DB_VERSION_MAJOR > 1
17973 db_appexit( NULL );
17975 (void) dbopen( NULL, 0, 0, 0, NULL);
17980 if { (eval echo configure:17981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17984 echo "configure: failed program was:" >&5
17985 cat conftest.$ac_ext >&5
17995 echo "$ac_t""$ol_cv_db_db1" 1>&6
17997 if test $ol_cv_db_db1 = yes ; then
18002 if test $ol_cv_lib_db = no ; then
18003 echo $ac_n "checking for Berkeley DB link (-ldb-1)""... $ac_c" 1>&6
18004 echo "configure:18005: checking for Berkeley DB link (-ldb-1)" >&5
18005 if eval "test \"\${ol_cv_db_db_1+set}\" = set"; then
18006 echo $ac_n "(cached) $ac_c" 1>&6
18011 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18013 cat > conftest.$ac_ext <<EOF
18014 #line 18015 "configure"
18015 #include "confdefs.h"
18017 #ifdef HAVE_DB_185_H
18018 # include <db_185.h>
18023 #ifndef DB_VERSION_MAJOR
18024 # define DB_VERSION_MAJOR 1
18028 #define NULL ((void*)0)
18033 #if DB_VERSION_MAJOR > 1
18036 int major, minor, patch;
18038 version = db_version( &major, &minor, &patch );
18040 if( major != DB_VERSION_MAJOR ||
18041 minor < DB_VERSION_MINOR )
18043 printf("Berkeley DB version mismatch\n"
18044 "\texpected: %s\n\tgot: %s\n",
18045 DB_VERSION_STRING, version);
18051 #if DB_VERSION_MAJOR > 2
18052 db_env_create( NULL, 0 );
18053 #elif DB_VERSION_MAJOR > 1
18054 db_appexit( NULL );
18056 (void) dbopen( NULL, 0, 0, 0, NULL);
18061 if { (eval echo configure:18062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18065 echo "configure: failed program was:" >&5
18066 cat conftest.$ac_ext >&5
18076 echo "$ac_t""$ol_cv_db_db_1" 1>&6
18078 if test $ol_cv_db_db_1 = yes ; then
18079 ol_cv_lib_db=-ldb-1
18084 if test "$ol_cv_lib_db" != no ; then
18085 ol_cv_berkeley_db=yes
18091 ol_cv_berkeley_db=no
18094 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18095 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18096 echo "configure:18097: checking for $ac_hdr" >&5
18097 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
18098 echo $ac_n "(cached) $ac_c" 1>&6
18100 cat > conftest.$ac_ext <<EOF
18101 #line 18102 "configure"
18102 #include "confdefs.h"
18105 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18106 { (eval echo configure:18107: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18107 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18108 if test -z "$ac_err"; then
18110 eval "ac_cv_header_$ac_safe=yes"
18113 echo "configure: failed program was:" >&5
18114 cat conftest.$ac_ext >&5
18116 eval "ac_cv_header_$ac_safe=no"
18120 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18121 echo "$ac_t""yes" 1>&6
18122 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18123 cat >> confdefs.h <<EOF
18124 #define $ac_tr_hdr 1
18128 echo "$ac_t""no" 1>&6
18132 if test $ac_cv_header_db_h = yes; then
18134 if test $ol_cv_lib_db = no ; then
18135 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
18136 echo "configure:18137: checking for Berkeley DB link (default)" >&5
18137 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
18138 echo $ac_n "(cached) $ac_c" 1>&6
18143 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18145 cat > conftest.$ac_ext <<EOF
18146 #line 18147 "configure"
18147 #include "confdefs.h"
18149 #ifdef HAVE_DB_185_H
18150 # include <db_185.h>
18155 #ifndef DB_VERSION_MAJOR
18156 # define DB_VERSION_MAJOR 1
18160 #define NULL ((void*)0)
18165 #if DB_VERSION_MAJOR > 1
18168 int major, minor, patch;
18170 version = db_version( &major, &minor, &patch );
18172 if( major != DB_VERSION_MAJOR ||
18173 minor < DB_VERSION_MINOR )
18175 printf("Berkeley DB version mismatch\n"
18176 "\texpected: %s\n\tgot: %s\n",
18177 DB_VERSION_STRING, version);
18183 #if DB_VERSION_MAJOR > 2
18184 db_env_create( NULL, 0 );
18185 #elif DB_VERSION_MAJOR > 1
18186 db_appexit( NULL );
18188 (void) dbopen( NULL, 0, 0, 0, NULL);
18193 if { (eval echo configure:18194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18197 echo "configure: failed program was:" >&5
18198 cat conftest.$ac_ext >&5
18208 echo "$ac_t""$ol_cv_db_none" 1>&6
18210 if test $ol_cv_db_none = yes ; then
18215 if test $ol_cv_lib_db = no ; then
18216 echo $ac_n "checking for Berkeley DB link (-ldb42)""... $ac_c" 1>&6
18217 echo "configure:18218: checking for Berkeley DB link (-ldb42)" >&5
18218 if eval "test \"\${ol_cv_db_db42+set}\" = set"; then
18219 echo $ac_n "(cached) $ac_c" 1>&6
18224 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18226 cat > conftest.$ac_ext <<EOF
18227 #line 18228 "configure"
18228 #include "confdefs.h"
18230 #ifdef HAVE_DB_185_H
18231 # include <db_185.h>
18236 #ifndef DB_VERSION_MAJOR
18237 # define DB_VERSION_MAJOR 1
18241 #define NULL ((void*)0)
18246 #if DB_VERSION_MAJOR > 1
18249 int major, minor, patch;
18251 version = db_version( &major, &minor, &patch );
18253 if( major != DB_VERSION_MAJOR ||
18254 minor < DB_VERSION_MINOR )
18256 printf("Berkeley DB version mismatch\n"
18257 "\texpected: %s\n\tgot: %s\n",
18258 DB_VERSION_STRING, version);
18264 #if DB_VERSION_MAJOR > 2
18265 db_env_create( NULL, 0 );
18266 #elif DB_VERSION_MAJOR > 1
18267 db_appexit( NULL );
18269 (void) dbopen( NULL, 0, 0, 0, NULL);
18274 if { (eval echo configure:18275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18278 echo "configure: failed program was:" >&5
18279 cat conftest.$ac_ext >&5
18289 echo "$ac_t""$ol_cv_db_db42" 1>&6
18291 if test $ol_cv_db_db42 = yes ; then
18292 ol_cv_lib_db=-ldb42
18296 if test $ol_cv_lib_db = no ; then
18297 echo $ac_n "checking for Berkeley DB link (-ldb-42)""... $ac_c" 1>&6
18298 echo "configure:18299: checking for Berkeley DB link (-ldb-42)" >&5
18299 if eval "test \"\${ol_cv_db_db_42+set}\" = set"; then
18300 echo $ac_n "(cached) $ac_c" 1>&6
18305 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18307 cat > conftest.$ac_ext <<EOF
18308 #line 18309 "configure"
18309 #include "confdefs.h"
18311 #ifdef HAVE_DB_185_H
18312 # include <db_185.h>
18317 #ifndef DB_VERSION_MAJOR
18318 # define DB_VERSION_MAJOR 1
18322 #define NULL ((void*)0)
18327 #if DB_VERSION_MAJOR > 1
18330 int major, minor, patch;
18332 version = db_version( &major, &minor, &patch );
18334 if( major != DB_VERSION_MAJOR ||
18335 minor < DB_VERSION_MINOR )
18337 printf("Berkeley DB version mismatch\n"
18338 "\texpected: %s\n\tgot: %s\n",
18339 DB_VERSION_STRING, version);
18345 #if DB_VERSION_MAJOR > 2
18346 db_env_create( NULL, 0 );
18347 #elif DB_VERSION_MAJOR > 1
18348 db_appexit( NULL );
18350 (void) dbopen( NULL, 0, 0, 0, NULL);
18355 if { (eval echo configure:18356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18359 echo "configure: failed program was:" >&5
18360 cat conftest.$ac_ext >&5
18370 echo "$ac_t""$ol_cv_db_db_42" 1>&6
18372 if test $ol_cv_db_db_42 = yes ; then
18373 ol_cv_lib_db=-ldb-42
18377 if test $ol_cv_lib_db = no ; then
18378 echo $ac_n "checking for Berkeley DB link (-ldb-4.2)""... $ac_c" 1>&6
18379 echo "configure:18380: checking for Berkeley DB link (-ldb-4.2)" >&5
18380 if eval "test \"\${ol_cv_db_db_4_dot_2+set}\" = set"; then
18381 echo $ac_n "(cached) $ac_c" 1>&6
18386 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18388 cat > conftest.$ac_ext <<EOF
18389 #line 18390 "configure"
18390 #include "confdefs.h"
18392 #ifdef HAVE_DB_185_H
18393 # include <db_185.h>
18398 #ifndef DB_VERSION_MAJOR
18399 # define DB_VERSION_MAJOR 1
18403 #define NULL ((void*)0)
18408 #if DB_VERSION_MAJOR > 1
18411 int major, minor, patch;
18413 version = db_version( &major, &minor, &patch );
18415 if( major != DB_VERSION_MAJOR ||
18416 minor < DB_VERSION_MINOR )
18418 printf("Berkeley DB version mismatch\n"
18419 "\texpected: %s\n\tgot: %s\n",
18420 DB_VERSION_STRING, version);
18426 #if DB_VERSION_MAJOR > 2
18427 db_env_create( NULL, 0 );
18428 #elif DB_VERSION_MAJOR > 1
18429 db_appexit( NULL );
18431 (void) dbopen( NULL, 0, 0, 0, NULL);
18436 if { (eval echo configure:18437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18438 ol_cv_db_db_4_dot_2=yes
18440 echo "configure: failed program was:" >&5
18441 cat conftest.$ac_ext >&5
18443 ol_cv_db_db_4_dot_2=no
18451 echo "$ac_t""$ol_cv_db_db_4_dot_2" 1>&6
18453 if test $ol_cv_db_db_4_dot_2 = yes ; then
18454 ol_cv_lib_db=-ldb-4.2
18458 if test $ol_cv_lib_db = no ; then
18459 echo $ac_n "checking for Berkeley DB link (-ldb-4-2)""... $ac_c" 1>&6
18460 echo "configure:18461: checking for Berkeley DB link (-ldb-4-2)" >&5
18461 if eval "test \"\${ol_cv_db_db_4_2+set}\" = set"; then
18462 echo $ac_n "(cached) $ac_c" 1>&6
18467 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18469 cat > conftest.$ac_ext <<EOF
18470 #line 18471 "configure"
18471 #include "confdefs.h"
18473 #ifdef HAVE_DB_185_H
18474 # include <db_185.h>
18479 #ifndef DB_VERSION_MAJOR
18480 # define DB_VERSION_MAJOR 1
18484 #define NULL ((void*)0)
18489 #if DB_VERSION_MAJOR > 1
18492 int major, minor, patch;
18494 version = db_version( &major, &minor, &patch );
18496 if( major != DB_VERSION_MAJOR ||
18497 minor < DB_VERSION_MINOR )
18499 printf("Berkeley DB version mismatch\n"
18500 "\texpected: %s\n\tgot: %s\n",
18501 DB_VERSION_STRING, version);
18507 #if DB_VERSION_MAJOR > 2
18508 db_env_create( NULL, 0 );
18509 #elif DB_VERSION_MAJOR > 1
18510 db_appexit( NULL );
18512 (void) dbopen( NULL, 0, 0, 0, NULL);
18517 if { (eval echo configure:18518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18519 ol_cv_db_db_4_2=yes
18521 echo "configure: failed program was:" >&5
18522 cat conftest.$ac_ext >&5
18532 echo "$ac_t""$ol_cv_db_db_4_2" 1>&6
18534 if test $ol_cv_db_db_4_2 = yes ; then
18535 ol_cv_lib_db=-ldb-4-2
18539 if test $ol_cv_lib_db = no ; then
18540 echo $ac_n "checking for Berkeley DB link (-ldb-4)""... $ac_c" 1>&6
18541 echo "configure:18542: checking for Berkeley DB link (-ldb-4)" >&5
18542 if eval "test \"\${ol_cv_db_db_4+set}\" = set"; then
18543 echo $ac_n "(cached) $ac_c" 1>&6
18548 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18550 cat > conftest.$ac_ext <<EOF
18551 #line 18552 "configure"
18552 #include "confdefs.h"
18554 #ifdef HAVE_DB_185_H
18555 # include <db_185.h>
18560 #ifndef DB_VERSION_MAJOR
18561 # define DB_VERSION_MAJOR 1
18565 #define NULL ((void*)0)
18570 #if DB_VERSION_MAJOR > 1
18573 int major, minor, patch;
18575 version = db_version( &major, &minor, &patch );
18577 if( major != DB_VERSION_MAJOR ||
18578 minor < DB_VERSION_MINOR )
18580 printf("Berkeley DB version mismatch\n"
18581 "\texpected: %s\n\tgot: %s\n",
18582 DB_VERSION_STRING, version);
18588 #if DB_VERSION_MAJOR > 2
18589 db_env_create( NULL, 0 );
18590 #elif DB_VERSION_MAJOR > 1
18591 db_appexit( NULL );
18593 (void) dbopen( NULL, 0, 0, 0, NULL);
18598 if { (eval echo configure:18599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18602 echo "configure: failed program was:" >&5
18603 cat conftest.$ac_ext >&5
18613 echo "$ac_t""$ol_cv_db_db_4" 1>&6
18615 if test $ol_cv_db_db_4 = yes ; then
18616 ol_cv_lib_db=-ldb-4
18620 if test $ol_cv_lib_db = no ; then
18621 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
18622 echo "configure:18623: checking for Berkeley DB link (-ldb4)" >&5
18623 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
18624 echo $ac_n "(cached) $ac_c" 1>&6
18629 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18631 cat > conftest.$ac_ext <<EOF
18632 #line 18633 "configure"
18633 #include "confdefs.h"
18635 #ifdef HAVE_DB_185_H
18636 # include <db_185.h>
18641 #ifndef DB_VERSION_MAJOR
18642 # define DB_VERSION_MAJOR 1
18646 #define NULL ((void*)0)
18651 #if DB_VERSION_MAJOR > 1
18654 int major, minor, patch;
18656 version = db_version( &major, &minor, &patch );
18658 if( major != DB_VERSION_MAJOR ||
18659 minor < DB_VERSION_MINOR )
18661 printf("Berkeley DB version mismatch\n"
18662 "\texpected: %s\n\tgot: %s\n",
18663 DB_VERSION_STRING, version);
18669 #if DB_VERSION_MAJOR > 2
18670 db_env_create( NULL, 0 );
18671 #elif DB_VERSION_MAJOR > 1
18672 db_appexit( NULL );
18674 (void) dbopen( NULL, 0, 0, 0, NULL);
18679 if { (eval echo configure:18680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18683 echo "configure: failed program was:" >&5
18684 cat conftest.$ac_ext >&5
18694 echo "$ac_t""$ol_cv_db_db4" 1>&6
18696 if test $ol_cv_db_db4 = yes ; then
18701 if test $ol_cv_lib_db = no ; then
18702 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
18703 echo "configure:18704: checking for Berkeley DB link (-ldb)" >&5
18704 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
18705 echo $ac_n "(cached) $ac_c" 1>&6
18710 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18712 cat > conftest.$ac_ext <<EOF
18713 #line 18714 "configure"
18714 #include "confdefs.h"
18716 #ifdef HAVE_DB_185_H
18717 # include <db_185.h>
18722 #ifndef DB_VERSION_MAJOR
18723 # define DB_VERSION_MAJOR 1
18727 #define NULL ((void*)0)
18732 #if DB_VERSION_MAJOR > 1
18735 int major, minor, patch;
18737 version = db_version( &major, &minor, &patch );
18739 if( major != DB_VERSION_MAJOR ||
18740 minor < DB_VERSION_MINOR )
18742 printf("Berkeley DB version mismatch\n"
18743 "\texpected: %s\n\tgot: %s\n",
18744 DB_VERSION_STRING, version);
18750 #if DB_VERSION_MAJOR > 2
18751 db_env_create( NULL, 0 );
18752 #elif DB_VERSION_MAJOR > 1
18753 db_appexit( NULL );
18755 (void) dbopen( NULL, 0, 0, 0, NULL);
18760 if { (eval echo configure:18761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18764 echo "configure: failed program was:" >&5
18765 cat conftest.$ac_ext >&5
18775 echo "$ac_t""$ol_cv_db_db" 1>&6
18777 if test $ol_cv_db_db = yes ; then
18782 if test $ol_cv_lib_db = no ; then
18783 echo $ac_n "checking for Berkeley DB link (-ldb41)""... $ac_c" 1>&6
18784 echo "configure:18785: checking for Berkeley DB link (-ldb41)" >&5
18785 if eval "test \"\${ol_cv_db_db41+set}\" = set"; then
18786 echo $ac_n "(cached) $ac_c" 1>&6
18791 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18793 cat > conftest.$ac_ext <<EOF
18794 #line 18795 "configure"
18795 #include "confdefs.h"
18797 #ifdef HAVE_DB_185_H
18798 # include <db_185.h>
18803 #ifndef DB_VERSION_MAJOR
18804 # define DB_VERSION_MAJOR 1
18808 #define NULL ((void*)0)
18813 #if DB_VERSION_MAJOR > 1
18816 int major, minor, patch;
18818 version = db_version( &major, &minor, &patch );
18820 if( major != DB_VERSION_MAJOR ||
18821 minor < DB_VERSION_MINOR )
18823 printf("Berkeley DB version mismatch\n"
18824 "\texpected: %s\n\tgot: %s\n",
18825 DB_VERSION_STRING, version);
18831 #if DB_VERSION_MAJOR > 2
18832 db_env_create( NULL, 0 );
18833 #elif DB_VERSION_MAJOR > 1
18834 db_appexit( NULL );
18836 (void) dbopen( NULL, 0, 0, 0, NULL);
18841 if { (eval echo configure:18842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18845 echo "configure: failed program was:" >&5
18846 cat conftest.$ac_ext >&5
18856 echo "$ac_t""$ol_cv_db_db41" 1>&6
18858 if test $ol_cv_db_db41 = yes ; then
18859 ol_cv_lib_db=-ldb41
18863 if test $ol_cv_lib_db = no ; then
18864 echo $ac_n "checking for Berkeley DB link (-ldb-41)""... $ac_c" 1>&6
18865 echo "configure:18866: checking for Berkeley DB link (-ldb-41)" >&5
18866 if eval "test \"\${ol_cv_db_db_41+set}\" = set"; then
18867 echo $ac_n "(cached) $ac_c" 1>&6
18872 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18874 cat > conftest.$ac_ext <<EOF
18875 #line 18876 "configure"
18876 #include "confdefs.h"
18878 #ifdef HAVE_DB_185_H
18879 # include <db_185.h>
18884 #ifndef DB_VERSION_MAJOR
18885 # define DB_VERSION_MAJOR 1
18889 #define NULL ((void*)0)
18894 #if DB_VERSION_MAJOR > 1
18897 int major, minor, patch;
18899 version = db_version( &major, &minor, &patch );
18901 if( major != DB_VERSION_MAJOR ||
18902 minor < DB_VERSION_MINOR )
18904 printf("Berkeley DB version mismatch\n"
18905 "\texpected: %s\n\tgot: %s\n",
18906 DB_VERSION_STRING, version);
18912 #if DB_VERSION_MAJOR > 2
18913 db_env_create( NULL, 0 );
18914 #elif DB_VERSION_MAJOR > 1
18915 db_appexit( NULL );
18917 (void) dbopen( NULL, 0, 0, 0, NULL);
18922 if { (eval echo configure:18923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18926 echo "configure: failed program was:" >&5
18927 cat conftest.$ac_ext >&5
18937 echo "$ac_t""$ol_cv_db_db_41" 1>&6
18939 if test $ol_cv_db_db_41 = yes ; then
18940 ol_cv_lib_db=-ldb-41
18944 if test $ol_cv_lib_db = no ; then
18945 echo $ac_n "checking for Berkeley DB link (-ldb-4.1)""... $ac_c" 1>&6
18946 echo "configure:18947: checking for Berkeley DB link (-ldb-4.1)" >&5
18947 if eval "test \"\${ol_cv_db_db_4_dot_1+set}\" = set"; then
18948 echo $ac_n "(cached) $ac_c" 1>&6
18953 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18955 cat > conftest.$ac_ext <<EOF
18956 #line 18957 "configure"
18957 #include "confdefs.h"
18959 #ifdef HAVE_DB_185_H
18960 # include <db_185.h>
18965 #ifndef DB_VERSION_MAJOR
18966 # define DB_VERSION_MAJOR 1
18970 #define NULL ((void*)0)
18975 #if DB_VERSION_MAJOR > 1
18978 int major, minor, patch;
18980 version = db_version( &major, &minor, &patch );
18982 if( major != DB_VERSION_MAJOR ||
18983 minor < DB_VERSION_MINOR )
18985 printf("Berkeley DB version mismatch\n"
18986 "\texpected: %s\n\tgot: %s\n",
18987 DB_VERSION_STRING, version);
18993 #if DB_VERSION_MAJOR > 2
18994 db_env_create( NULL, 0 );
18995 #elif DB_VERSION_MAJOR > 1
18996 db_appexit( NULL );
18998 (void) dbopen( NULL, 0, 0, 0, NULL);
19003 if { (eval echo configure:19004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19005 ol_cv_db_db_4_dot_1=yes
19007 echo "configure: failed program was:" >&5
19008 cat conftest.$ac_ext >&5
19010 ol_cv_db_db_4_dot_1=no
19018 echo "$ac_t""$ol_cv_db_db_4_dot_1" 1>&6
19020 if test $ol_cv_db_db_4_dot_1 = yes ; then
19021 ol_cv_lib_db=-ldb-4.1
19025 if test $ol_cv_lib_db = no ; then
19026 echo $ac_n "checking for Berkeley DB link (-ldb-4-1)""... $ac_c" 1>&6
19027 echo "configure:19028: checking for Berkeley DB link (-ldb-4-1)" >&5
19028 if eval "test \"\${ol_cv_db_db_4_1+set}\" = set"; then
19029 echo $ac_n "(cached) $ac_c" 1>&6
19034 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19036 cat > conftest.$ac_ext <<EOF
19037 #line 19038 "configure"
19038 #include "confdefs.h"
19040 #ifdef HAVE_DB_185_H
19041 # include <db_185.h>
19046 #ifndef DB_VERSION_MAJOR
19047 # define DB_VERSION_MAJOR 1
19051 #define NULL ((void*)0)
19056 #if DB_VERSION_MAJOR > 1
19059 int major, minor, patch;
19061 version = db_version( &major, &minor, &patch );
19063 if( major != DB_VERSION_MAJOR ||
19064 minor < DB_VERSION_MINOR )
19066 printf("Berkeley DB version mismatch\n"
19067 "\texpected: %s\n\tgot: %s\n",
19068 DB_VERSION_STRING, version);
19074 #if DB_VERSION_MAJOR > 2
19075 db_env_create( NULL, 0 );
19076 #elif DB_VERSION_MAJOR > 1
19077 db_appexit( NULL );
19079 (void) dbopen( NULL, 0, 0, 0, NULL);
19084 if { (eval echo configure:19085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19086 ol_cv_db_db_4_1=yes
19088 echo "configure: failed program was:" >&5
19089 cat conftest.$ac_ext >&5
19099 echo "$ac_t""$ol_cv_db_db_4_1" 1>&6
19101 if test $ol_cv_db_db_4_1 = yes ; then
19102 ol_cv_lib_db=-ldb-4-1
19106 if test $ol_cv_lib_db = no ; then
19107 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
19108 echo "configure:19109: checking for Berkeley DB link (-ldb3)" >&5
19109 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
19110 echo $ac_n "(cached) $ac_c" 1>&6
19115 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19117 cat > conftest.$ac_ext <<EOF
19118 #line 19119 "configure"
19119 #include "confdefs.h"
19121 #ifdef HAVE_DB_185_H
19122 # include <db_185.h>
19127 #ifndef DB_VERSION_MAJOR
19128 # define DB_VERSION_MAJOR 1
19132 #define NULL ((void*)0)
19137 #if DB_VERSION_MAJOR > 1
19140 int major, minor, patch;
19142 version = db_version( &major, &minor, &patch );
19144 if( major != DB_VERSION_MAJOR ||
19145 minor < DB_VERSION_MINOR )
19147 printf("Berkeley DB version mismatch\n"
19148 "\texpected: %s\n\tgot: %s\n",
19149 DB_VERSION_STRING, version);
19155 #if DB_VERSION_MAJOR > 2
19156 db_env_create( NULL, 0 );
19157 #elif DB_VERSION_MAJOR > 1
19158 db_appexit( NULL );
19160 (void) dbopen( NULL, 0, 0, 0, NULL);
19165 if { (eval echo configure:19166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19169 echo "configure: failed program was:" >&5
19170 cat conftest.$ac_ext >&5
19180 echo "$ac_t""$ol_cv_db_db3" 1>&6
19182 if test $ol_cv_db_db3 = yes ; then
19187 if test $ol_cv_lib_db = no ; then
19188 echo $ac_n "checking for Berkeley DB link (-ldb-3)""... $ac_c" 1>&6
19189 echo "configure:19190: checking for Berkeley DB link (-ldb-3)" >&5
19190 if eval "test \"\${ol_cv_db_db_3+set}\" = set"; then
19191 echo $ac_n "(cached) $ac_c" 1>&6
19196 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19198 cat > conftest.$ac_ext <<EOF
19199 #line 19200 "configure"
19200 #include "confdefs.h"
19202 #ifdef HAVE_DB_185_H
19203 # include <db_185.h>
19208 #ifndef DB_VERSION_MAJOR
19209 # define DB_VERSION_MAJOR 1
19213 #define NULL ((void*)0)
19218 #if DB_VERSION_MAJOR > 1
19221 int major, minor, patch;
19223 version = db_version( &major, &minor, &patch );
19225 if( major != DB_VERSION_MAJOR ||
19226 minor < DB_VERSION_MINOR )
19228 printf("Berkeley DB version mismatch\n"
19229 "\texpected: %s\n\tgot: %s\n",
19230 DB_VERSION_STRING, version);
19236 #if DB_VERSION_MAJOR > 2
19237 db_env_create( NULL, 0 );
19238 #elif DB_VERSION_MAJOR > 1
19239 db_appexit( NULL );
19241 (void) dbopen( NULL, 0, 0, 0, NULL);
19246 if { (eval echo configure:19247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19250 echo "configure: failed program was:" >&5
19251 cat conftest.$ac_ext >&5
19261 echo "$ac_t""$ol_cv_db_db_3" 1>&6
19263 if test $ol_cv_db_db_3 = yes ; then
19264 ol_cv_lib_db=-ldb-3
19268 if test $ol_cv_lib_db = no ; then
19269 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
19270 echo "configure:19271: checking for Berkeley DB link (-ldb2)" >&5
19271 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
19272 echo $ac_n "(cached) $ac_c" 1>&6
19277 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19279 cat > conftest.$ac_ext <<EOF
19280 #line 19281 "configure"
19281 #include "confdefs.h"
19283 #ifdef HAVE_DB_185_H
19284 # include <db_185.h>
19289 #ifndef DB_VERSION_MAJOR
19290 # define DB_VERSION_MAJOR 1
19294 #define NULL ((void*)0)
19299 #if DB_VERSION_MAJOR > 1
19302 int major, minor, patch;
19304 version = db_version( &major, &minor, &patch );
19306 if( major != DB_VERSION_MAJOR ||
19307 minor < DB_VERSION_MINOR )
19309 printf("Berkeley DB version mismatch\n"
19310 "\texpected: %s\n\tgot: %s\n",
19311 DB_VERSION_STRING, version);
19317 #if DB_VERSION_MAJOR > 2
19318 db_env_create( NULL, 0 );
19319 #elif DB_VERSION_MAJOR > 1
19320 db_appexit( NULL );
19322 (void) dbopen( NULL, 0, 0, 0, NULL);
19327 if { (eval echo configure:19328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19331 echo "configure: failed program was:" >&5
19332 cat conftest.$ac_ext >&5
19342 echo "$ac_t""$ol_cv_db_db2" 1>&6
19344 if test $ol_cv_db_db2 = yes ; then
19349 if test $ol_cv_lib_db = no ; then
19350 echo $ac_n "checking for Berkeley DB link (-ldb-2)""... $ac_c" 1>&6
19351 echo "configure:19352: checking for Berkeley DB link (-ldb-2)" >&5
19352 if eval "test \"\${ol_cv_db_db_2+set}\" = set"; then
19353 echo $ac_n "(cached) $ac_c" 1>&6
19358 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19360 cat > conftest.$ac_ext <<EOF
19361 #line 19362 "configure"
19362 #include "confdefs.h"
19364 #ifdef HAVE_DB_185_H
19365 # include <db_185.h>
19370 #ifndef DB_VERSION_MAJOR
19371 # define DB_VERSION_MAJOR 1
19375 #define NULL ((void*)0)
19380 #if DB_VERSION_MAJOR > 1
19383 int major, minor, patch;
19385 version = db_version( &major, &minor, &patch );
19387 if( major != DB_VERSION_MAJOR ||
19388 minor < DB_VERSION_MINOR )
19390 printf("Berkeley DB version mismatch\n"
19391 "\texpected: %s\n\tgot: %s\n",
19392 DB_VERSION_STRING, version);
19398 #if DB_VERSION_MAJOR > 2
19399 db_env_create( NULL, 0 );
19400 #elif DB_VERSION_MAJOR > 1
19401 db_appexit( NULL );
19403 (void) dbopen( NULL, 0, 0, 0, NULL);
19408 if { (eval echo configure:19409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19412 echo "configure: failed program was:" >&5
19413 cat conftest.$ac_ext >&5
19423 echo "$ac_t""$ol_cv_db_db_2" 1>&6
19425 if test $ol_cv_db_db_2 = yes ; then
19426 ol_cv_lib_db=-ldb-2
19430 if test $ol_cv_lib_db = no ; then
19431 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
19432 echo "configure:19433: checking for Berkeley DB link (-ldb1)" >&5
19433 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
19434 echo $ac_n "(cached) $ac_c" 1>&6
19439 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19441 cat > conftest.$ac_ext <<EOF
19442 #line 19443 "configure"
19443 #include "confdefs.h"
19445 #ifdef HAVE_DB_185_H
19446 # include <db_185.h>
19451 #ifndef DB_VERSION_MAJOR
19452 # define DB_VERSION_MAJOR 1
19456 #define NULL ((void*)0)
19461 #if DB_VERSION_MAJOR > 1
19464 int major, minor, patch;
19466 version = db_version( &major, &minor, &patch );
19468 if( major != DB_VERSION_MAJOR ||
19469 minor < DB_VERSION_MINOR )
19471 printf("Berkeley DB version mismatch\n"
19472 "\texpected: %s\n\tgot: %s\n",
19473 DB_VERSION_STRING, version);
19479 #if DB_VERSION_MAJOR > 2
19480 db_env_create( NULL, 0 );
19481 #elif DB_VERSION_MAJOR > 1
19482 db_appexit( NULL );
19484 (void) dbopen( NULL, 0, 0, 0, NULL);
19489 if { (eval echo configure:19490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19493 echo "configure: failed program was:" >&5
19494 cat conftest.$ac_ext >&5
19504 echo "$ac_t""$ol_cv_db_db1" 1>&6
19506 if test $ol_cv_db_db1 = yes ; then
19511 if test $ol_cv_lib_db = no ; then
19512 echo $ac_n "checking for Berkeley DB link (-ldb-1)""... $ac_c" 1>&6
19513 echo "configure:19514: checking for Berkeley DB link (-ldb-1)" >&5
19514 if eval "test \"\${ol_cv_db_db_1+set}\" = set"; then
19515 echo $ac_n "(cached) $ac_c" 1>&6
19520 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19522 cat > conftest.$ac_ext <<EOF
19523 #line 19524 "configure"
19524 #include "confdefs.h"
19526 #ifdef HAVE_DB_185_H
19527 # include <db_185.h>
19532 #ifndef DB_VERSION_MAJOR
19533 # define DB_VERSION_MAJOR 1
19537 #define NULL ((void*)0)
19542 #if DB_VERSION_MAJOR > 1
19545 int major, minor, patch;
19547 version = db_version( &major, &minor, &patch );
19549 if( major != DB_VERSION_MAJOR ||
19550 minor < DB_VERSION_MINOR )
19552 printf("Berkeley DB version mismatch\n"
19553 "\texpected: %s\n\tgot: %s\n",
19554 DB_VERSION_STRING, version);
19560 #if DB_VERSION_MAJOR > 2
19561 db_env_create( NULL, 0 );
19562 #elif DB_VERSION_MAJOR > 1
19563 db_appexit( NULL );
19565 (void) dbopen( NULL, 0, 0, 0, NULL);
19570 if { (eval echo configure:19571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19574 echo "configure: failed program was:" >&5
19575 cat conftest.$ac_ext >&5
19585 echo "$ac_t""$ol_cv_db_db_1" 1>&6
19587 if test $ol_cv_db_db_1 = yes ; then
19588 ol_cv_lib_db=-ldb-1
19593 if test "$ol_cv_lib_db" != no ; then
19594 ol_cv_berkeley_db=yes
19595 echo $ac_n "checking for Berkeley DB thread support""... $ac_c" 1>&6
19596 echo "configure:19597: checking for Berkeley DB thread support" >&5
19597 if eval "test \"\${ol_cv_berkeley_db_thread+set}\" = set"; then
19598 echo $ac_n "(cached) $ac_c" 1>&6
19602 LIBS="$LTHREAD_LIBS $LIBS"
19603 if test $ol_cv_lib_db != yes ; then
19604 LIBS="$ol_cv_lib_db $LIBS"
19607 if test "$cross_compiling" = yes; then
19608 ol_cv_berkeley_db_thread=cross
19610 cat > conftest.$ac_ext <<EOF
19611 #line 19612 "configure"
19612 #include "confdefs.h"
19614 #ifdef HAVE_DB_185_H
19620 #define NULL ((void *)0)
19625 u_int32_t flags = DB_CREATE |
19631 #if DB_VERSION_MAJOR > 2
19632 DB_ENV *env = NULL;
19634 rc = db_env_create( &env, 0 );
19636 flags |= DB_INIT_MPOOL;
19637 #ifdef DB_MPOOL_PRIVATE
19638 flags |= DB_MPOOL_PRIVATE;
19642 printf("BerkeleyDB: %s\n", db_strerror(rc) );
19646 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
19647 rc = env->open( env, NULL, flags, 0 );
19649 rc = env->open( env, NULL, NULL, flags, 0 );
19653 rc = env->close( env, 0 );
19657 printf("BerkeleyDB: %s\n", db_strerror(rc) );
19663 memset( &env, '\0', sizeof(env) );
19665 rc = db_appinit( NULL, NULL, &env, flags );
19668 db_appexit( &env );
19671 unlink("__db_mpool.share");
19672 unlink("__db_lock.share");
19678 if { (eval echo configure:19679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
19680 ol_cv_berkeley_db_thread=yes
19682 echo "configure: failed program was:" >&5
19683 cat conftest.$ac_ext >&5
19685 ol_cv_berkeley_db_thread=no
19695 echo "$ac_t""$ol_cv_berkeley_db_thread" 1>&6
19697 if test $ol_cv_berkeley_db_thread != no ; then
19698 cat >> confdefs.h <<\EOF
19699 #define HAVE_BERKELEY_DB_THREAD 1
19709 if test $ol_cv_berkeley_db != no ; then
19710 cat >> confdefs.h <<\EOF
19711 #define HAVE_BERKELEY_DB 1
19715 ol_link_ldbm=berkeley
19716 ol_with_ldbm_api=berkeley
19718 if test $ol_with_ldbm_type = hash ; then
19719 cat >> confdefs.h <<\EOF
19720 #define LDBM_USE_DBHASH 1
19724 cat >> confdefs.h <<\EOF
19725 #define LDBM_USE_DBBTREE 1
19730 if test $ol_cv_lib_db != yes ; then
19731 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
19736 if test $ol_enable_bdb = yes -a $ol_link_ldbm != berkeley ; then
19737 { echo "configure: error: BDB: BerkeleyDB not available" 1>&2; exit 1; }
19738 elif test $ol_enable_bdb != no -a $ol_link_ldbm = berkeley ; then
19739 echo $ac_n "checking Berkeley DB version for BDB backend""... $ac_c" 1>&6
19740 echo "configure:19741: checking Berkeley DB version for BDB backend" >&5
19741 if eval "test \"\${ol_cv_bdb_compat+set}\" = set"; then
19742 echo $ac_n "(cached) $ac_c" 1>&6
19745 cat > conftest.$ac_ext <<EOF
19746 #line 19747 "configure"
19747 #include "confdefs.h"
19751 /* this check could be improved */
19752 #ifndef DB_VERSION_MAJOR
19753 # define DB_VERSION_MAJOR 1
19755 #ifndef DB_VERSION_MINOR
19756 # define DB_VERSION_MINOR 0
19759 /* require 4.2 or later */
19760 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2)
19761 __db_version_compat
19765 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19766 egrep "__db_version_compat" >/dev/null 2>&1; then
19768 ol_cv_bdb_compat=yes
19771 ol_cv_bdb_compat=no
19777 echo "$ac_t""$ol_cv_bdb_compat" 1>&6
19780 if test $ol_cv_bdb_compat = yes ; then
19782 elif test $ol_enable_bdb = yes ; then
19783 { echo "configure: error: BDB: BerkeleyDB version incompatible" 1>&2; exit 1; }
19788 if test $ol_enable_hdb = yes -a $ol_link_ldbm != berkeley ; then
19789 { echo "configure: error: HDB: BerkeleyDB not available" 1>&2; exit 1; }
19792 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
19793 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
19794 ol_with_ldbm_api=none
19797 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
19798 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
19799 echo "configure:19800: checking for MDBM library" >&5
19800 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
19801 echo $ac_n "(cached) $ac_c" 1>&6
19804 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
19805 echo "configure:19806: checking for mdbm_set_chain" >&5
19806 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
19807 echo $ac_n "(cached) $ac_c" 1>&6
19809 cat > conftest.$ac_ext <<EOF
19810 #line 19811 "configure"
19811 #include "confdefs.h"
19812 /* System header to define __stub macros and hopefully few prototypes,
19813 which can conflict with char mdbm_set_chain(); below. */
19814 #include <assert.h>
19815 /* Override any gcc2 internal prototype to avoid an error. */
19816 /* We use char because int might match the return type of a gcc2
19817 builtin and then its argument prototype would still apply. */
19818 char mdbm_set_chain();
19823 /* The GNU C library defines this for functions which it implements
19824 to always fail with ENOSYS. Some functions are actually named
19825 something starting with __ and the normal name is an alias. */
19826 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
19829 f = mdbm_set_chain;
19834 if { (eval echo configure:19835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19836 eval "ac_cv_func_mdbm_set_chain=yes"
19838 echo "configure: failed program was:" >&5
19839 cat conftest.$ac_ext >&5
19841 eval "ac_cv_func_mdbm_set_chain=no"
19846 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
19847 echo "$ac_t""yes" 1>&6
19850 echo "$ac_t""no" 1>&6
19852 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
19853 echo "configure:19854: checking for mdbm_set_chain in -lmdbm" >&5
19854 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
19855 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19856 echo $ac_n "(cached) $ac_c" 1>&6
19858 ac_save_LIBS="$LIBS"
19859 LIBS="-lmdbm $LIBS"
19860 cat > conftest.$ac_ext <<EOF
19861 #line 19862 "configure"
19862 #include "confdefs.h"
19863 /* Override any gcc2 internal prototype to avoid an error. */
19864 /* We use char because int might match the return type of a gcc2
19865 builtin and then its argument prototype would still apply. */
19866 char mdbm_set_chain();
19872 if { (eval echo configure:19873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19874 eval "ac_cv_lib_$ac_lib_var=yes"
19876 echo "configure: failed program was:" >&5
19877 cat conftest.$ac_ext >&5
19879 eval "ac_cv_lib_$ac_lib_var=no"
19882 LIBS="$ac_save_LIBS"
19885 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19886 echo "$ac_t""yes" 1>&6
19887 ol_cv_lib_mdbm=-lmdbm
19889 echo "$ac_t""no" 1>&6
19900 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
19903 for ac_hdr in mdbm.h
19905 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19906 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19907 echo "configure:19908: checking for $ac_hdr" >&5
19908 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19909 echo $ac_n "(cached) $ac_c" 1>&6
19911 cat > conftest.$ac_ext <<EOF
19912 #line 19913 "configure"
19913 #include "confdefs.h"
19916 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19917 { (eval echo configure:19918: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19918 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19919 if test -z "$ac_err"; then
19921 eval "ac_cv_header_$ac_safe=yes"
19924 echo "configure: failed program was:" >&5
19925 cat conftest.$ac_ext >&5
19927 eval "ac_cv_header_$ac_safe=no"
19931 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19932 echo "$ac_t""yes" 1>&6
19933 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19934 cat >> confdefs.h <<EOF
19935 #define $ac_tr_hdr 1
19939 echo "$ac_t""no" 1>&6
19943 echo $ac_n "checking for db""... $ac_c" 1>&6
19944 echo "configure:19945: checking for db" >&5
19945 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
19946 echo $ac_n "(cached) $ac_c" 1>&6
19949 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
19957 echo "$ac_t""$ol_cv_mdbm" 1>&6
19958 if test $ol_cv_mdbm = yes ; then
19959 cat >> confdefs.h <<\EOF
19960 #define HAVE_MDBM 1
19966 if test $ol_cv_mdbm = yes ; then
19968 ol_with_ldbm_api=mdbm
19969 if test $ol_cv_lib_mdbm != yes ; then
19970 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
19975 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
19976 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
19977 echo "configure:19978: checking for GDBM library" >&5
19978 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
19979 echo $ac_n "(cached) $ac_c" 1>&6
19982 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
19983 echo "configure:19984: checking for gdbm_open" >&5
19984 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
19985 echo $ac_n "(cached) $ac_c" 1>&6
19987 cat > conftest.$ac_ext <<EOF
19988 #line 19989 "configure"
19989 #include "confdefs.h"
19990 /* System header to define __stub macros and hopefully few prototypes,
19991 which can conflict with char gdbm_open(); below. */
19992 #include <assert.h>
19993 /* Override any gcc2 internal prototype to avoid an error. */
19994 /* We use char because int might match the return type of a gcc2
19995 builtin and then its argument prototype would still apply. */
20001 /* The GNU C library defines this for functions which it implements
20002 to always fail with ENOSYS. Some functions are actually named
20003 something starting with __ and the normal name is an alias. */
20004 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
20012 if { (eval echo configure:20013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20014 eval "ac_cv_func_gdbm_open=yes"
20016 echo "configure: failed program was:" >&5
20017 cat conftest.$ac_ext >&5
20019 eval "ac_cv_func_gdbm_open=no"
20024 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
20025 echo "$ac_t""yes" 1>&6
20028 echo "$ac_t""no" 1>&6
20030 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
20031 echo "configure:20032: checking for gdbm_open in -lgdbm" >&5
20032 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
20033 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20034 echo $ac_n "(cached) $ac_c" 1>&6
20036 ac_save_LIBS="$LIBS"
20037 LIBS="-lgdbm $LIBS"
20038 cat > conftest.$ac_ext <<EOF
20039 #line 20040 "configure"
20040 #include "confdefs.h"
20041 /* Override any gcc2 internal prototype to avoid an error. */
20042 /* We use char because int might match the return type of a gcc2
20043 builtin and then its argument prototype would still apply. */
20050 if { (eval echo configure:20051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20052 eval "ac_cv_lib_$ac_lib_var=yes"
20054 echo "configure: failed program was:" >&5
20055 cat conftest.$ac_ext >&5
20057 eval "ac_cv_lib_$ac_lib_var=no"
20060 LIBS="$ac_save_LIBS"
20063 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20064 echo "$ac_t""yes" 1>&6
20065 ol_cv_lib_gdbm=-lgdbm
20067 echo "$ac_t""no" 1>&6
20078 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
20081 for ac_hdr in gdbm.h
20083 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20084 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20085 echo "configure:20086: checking for $ac_hdr" >&5
20086 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20087 echo $ac_n "(cached) $ac_c" 1>&6
20089 cat > conftest.$ac_ext <<EOF
20090 #line 20091 "configure"
20091 #include "confdefs.h"
20094 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20095 { (eval echo configure:20096: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20096 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20097 if test -z "$ac_err"; then
20099 eval "ac_cv_header_$ac_safe=yes"
20102 echo "configure: failed program was:" >&5
20103 cat conftest.$ac_ext >&5
20105 eval "ac_cv_header_$ac_safe=no"
20109 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20110 echo "$ac_t""yes" 1>&6
20111 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20112 cat >> confdefs.h <<EOF
20113 #define $ac_tr_hdr 1
20117 echo "$ac_t""no" 1>&6
20121 echo $ac_n "checking for db""... $ac_c" 1>&6
20122 echo "configure:20123: checking for db" >&5
20123 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
20124 echo $ac_n "(cached) $ac_c" 1>&6
20127 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
20135 echo "$ac_t""$ol_cv_gdbm" 1>&6
20136 if test $ol_cv_gdbm = yes ; then
20137 cat >> confdefs.h <<\EOF
20138 #define HAVE_GDBM 1
20144 if test $ol_cv_gdbm = yes ; then
20146 ol_with_ldbm_api=gdbm
20148 if test $ol_cv_lib_gdbm != yes ; then
20149 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
20154 if test $ol_with_ldbm_api = ndbm ; then
20155 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
20156 echo "configure:20157: checking for NDBM library" >&5
20157 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
20158 echo $ac_n "(cached) $ac_c" 1>&6
20161 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
20162 echo "configure:20163: checking for dbm_open" >&5
20163 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
20164 echo $ac_n "(cached) $ac_c" 1>&6
20166 cat > conftest.$ac_ext <<EOF
20167 #line 20168 "configure"
20168 #include "confdefs.h"
20169 /* System header to define __stub macros and hopefully few prototypes,
20170 which can conflict with char dbm_open(); below. */
20171 #include <assert.h>
20172 /* Override any gcc2 internal prototype to avoid an error. */
20173 /* We use char because int might match the return type of a gcc2
20174 builtin and then its argument prototype would still apply. */
20180 /* The GNU C library defines this for functions which it implements
20181 to always fail with ENOSYS. Some functions are actually named
20182 something starting with __ and the normal name is an alias. */
20183 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
20191 if { (eval echo configure:20192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20193 eval "ac_cv_func_dbm_open=yes"
20195 echo "configure: failed program was:" >&5
20196 cat conftest.$ac_ext >&5
20198 eval "ac_cv_func_dbm_open=no"
20203 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
20204 echo "$ac_t""yes" 1>&6
20207 echo "$ac_t""no" 1>&6
20209 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
20210 echo "configure:20211: checking for dbm_open in -lndbm" >&5
20211 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
20212 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20213 echo $ac_n "(cached) $ac_c" 1>&6
20215 ac_save_LIBS="$LIBS"
20216 LIBS="-lndbm $LIBS"
20217 cat > conftest.$ac_ext <<EOF
20218 #line 20219 "configure"
20219 #include "confdefs.h"
20220 /* Override any gcc2 internal prototype to avoid an error. */
20221 /* We use char because int might match the return type of a gcc2
20222 builtin and then its argument prototype would still apply. */
20229 if { (eval echo configure:20230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20231 eval "ac_cv_lib_$ac_lib_var=yes"
20233 echo "configure: failed program was:" >&5
20234 cat conftest.$ac_ext >&5
20236 eval "ac_cv_lib_$ac_lib_var=no"
20239 LIBS="$ac_save_LIBS"
20242 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20243 echo "$ac_t""yes" 1>&6
20244 ol_cv_lib_ndbm=-lndbm
20246 echo "$ac_t""no" 1>&6
20248 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
20249 echo "configure:20250: checking for dbm_open in -ldbm" >&5
20250 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
20251 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20252 echo $ac_n "(cached) $ac_c" 1>&6
20254 ac_save_LIBS="$LIBS"
20256 cat > conftest.$ac_ext <<EOF
20257 #line 20258 "configure"
20258 #include "confdefs.h"
20259 /* Override any gcc2 internal prototype to avoid an error. */
20260 /* We use char because int might match the return type of a gcc2
20261 builtin and then its argument prototype would still apply. */
20268 if { (eval echo configure:20269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20270 eval "ac_cv_lib_$ac_lib_var=yes"
20272 echo "configure: failed program was:" >&5
20273 cat conftest.$ac_ext >&5
20275 eval "ac_cv_lib_$ac_lib_var=no"
20278 LIBS="$ac_save_LIBS"
20281 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20282 echo "$ac_t""yes" 1>&6
20283 ol_cv_lib_ndbm=-ldbm
20285 echo "$ac_t""no" 1>&6
20298 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
20301 for ac_hdr in ndbm.h
20303 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20304 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20305 echo "configure:20306: checking for $ac_hdr" >&5
20306 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20307 echo $ac_n "(cached) $ac_c" 1>&6
20309 cat > conftest.$ac_ext <<EOF
20310 #line 20311 "configure"
20311 #include "confdefs.h"
20314 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20315 { (eval echo configure:20316: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20316 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20317 if test -z "$ac_err"; then
20319 eval "ac_cv_header_$ac_safe=yes"
20322 echo "configure: failed program was:" >&5
20323 cat conftest.$ac_ext >&5
20325 eval "ac_cv_header_$ac_safe=no"
20329 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20330 echo "$ac_t""yes" 1>&6
20331 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20332 cat >> confdefs.h <<EOF
20333 #define $ac_tr_hdr 1
20337 echo "$ac_t""no" 1>&6
20341 echo $ac_n "checking for db""... $ac_c" 1>&6
20342 echo "configure:20343: checking for db" >&5
20343 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
20344 echo $ac_n "(cached) $ac_c" 1>&6
20347 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
20355 echo "$ac_t""$ol_cv_ndbm" 1>&6
20356 if test $ol_cv_ndbm = yes ; then
20357 cat >> confdefs.h <<\EOF
20358 #define HAVE_NDBM 1
20364 if test $ol_cv_ndbm = yes ; then
20366 ol_with_ldbm_api=ndbm
20368 if test $ol_cv_lib_ndbm != yes ; then
20369 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
20374 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
20375 echo "configure: warning: could not find suitable LDBM backend" 1>&2
20376 if test $ol_enable_ldbm = yes ; then
20377 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
20380 echo "configure: warning: disabling LDBM" 1>&2
20385 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
20386 BUILD_LIBS_DYNAMIC=shared
20387 cat >> confdefs.h <<\EOF
20388 #define LDAP_LIBS_DYNAMIC 1
20393 BUILD_LIBS_DYNAMIC=static
20397 if test $ol_enable_wrappers != no ; then
20398 for ac_hdr in tcpd.h
20400 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20401 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20402 echo "configure:20403: checking for $ac_hdr" >&5
20403 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20404 echo $ac_n "(cached) $ac_c" 1>&6
20406 cat > conftest.$ac_ext <<EOF
20407 #line 20408 "configure"
20408 #include "confdefs.h"
20411 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20412 { (eval echo configure:20413: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20413 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20414 if test -z "$ac_err"; then
20416 eval "ac_cv_header_$ac_safe=yes"
20419 echo "configure: failed program was:" >&5
20420 cat conftest.$ac_ext >&5
20422 eval "ac_cv_header_$ac_safe=no"
20426 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20427 echo "$ac_t""yes" 1>&6
20428 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20429 cat >> confdefs.h <<EOF
20430 #define $ac_tr_hdr 1
20433 echo $ac_n "checking for TCP wrappers library""... $ac_c" 1>&6
20434 echo "configure:20435: checking for TCP wrappers library" >&5
20436 LIBS="$LIBS -lwrap"
20437 cat > conftest.$ac_ext <<EOF
20438 #line 20439 "configure"
20439 #include "confdefs.h"
20442 int allow_severity = 0;
20443 int deny_severity = 0;
20445 struct request_info *req;
20453 if { (eval echo configure:20454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20455 echo "$ac_t""-lwrap" 1>&6
20459 echo "configure: failed program was:" >&5
20460 cat conftest.$ac_ext >&5
20464 cat > conftest.$ac_ext <<EOF
20465 #line 20466 "configure"
20466 #include "confdefs.h"
20469 int allow_severity = 0;
20470 int deny_severity = 0;
20472 struct request_info *req;
20480 if { (eval echo configure:20481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20482 echo "$ac_t""-lwrap -lnsl" 1>&6
20484 LIBS="$save_LIBS -lnsl"
20486 echo "configure: failed program was:" >&5
20487 cat conftest.$ac_ext >&5
20490 echo "$ac_t""no" 1>&6
20498 echo "$ac_t""no" 1>&6
20504 if test $have_wrappers = yes ; then
20505 cat >> confdefs.h <<\EOF
20506 #define HAVE_TCPD 1
20510 elif test $ol_enable_wrappers = yes ; then
20511 { echo "configure: error: could not find TCP wrappers, select apppropriate options or disable" 1>&2; exit 1; }
20513 echo "configure: warning: could not find TCP wrappers, support disabled" 1>&2
20518 if test $ol_enable_syslog != no ; then
20519 echo $ac_n "checking for openlog""... $ac_c" 1>&6
20520 echo "configure:20521: checking for openlog" >&5
20521 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
20522 echo $ac_n "(cached) $ac_c" 1>&6
20524 cat > conftest.$ac_ext <<EOF
20525 #line 20526 "configure"
20526 #include "confdefs.h"
20527 /* System header to define __stub macros and hopefully few prototypes,
20528 which can conflict with char openlog(); below. */
20529 #include <assert.h>
20530 /* Override any gcc2 internal prototype to avoid an error. */
20531 /* We use char because int might match the return type of a gcc2
20532 builtin and then its argument prototype would still apply. */
20538 /* The GNU C library defines this for functions which it implements
20539 to always fail with ENOSYS. Some functions are actually named
20540 something starting with __ and the normal name is an alias. */
20541 #if defined (__stub_openlog) || defined (__stub___openlog)
20549 if { (eval echo configure:20550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20551 eval "ac_cv_func_openlog=yes"
20553 echo "configure: failed program was:" >&5
20554 cat conftest.$ac_ext >&5
20556 eval "ac_cv_func_openlog=no"
20561 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
20562 echo "$ac_t""yes" 1>&6
20565 echo "$ac_t""no" 1>&6
20568 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
20569 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
20571 ol_enable_syslog=$ac_cv_func_openlog
20576 if test $ol_enable_sql != no ; then
20577 for ac_hdr in sql.h sqlext.h
20579 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20580 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20581 echo "configure:20582: checking for $ac_hdr" >&5
20582 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20583 echo $ac_n "(cached) $ac_c" 1>&6
20585 cat > conftest.$ac_ext <<EOF
20586 #line 20587 "configure"
20587 #include "confdefs.h"
20590 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20591 { (eval echo configure:20592: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20592 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20593 if test -z "$ac_err"; then
20595 eval "ac_cv_header_$ac_safe=yes"
20598 echo "configure: failed program was:" >&5
20599 cat conftest.$ac_ext >&5
20601 eval "ac_cv_header_$ac_safe=no"
20605 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20606 echo "$ac_t""yes" 1>&6
20607 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20608 cat >> confdefs.h <<EOF
20609 #define $ac_tr_hdr 1
20613 echo "$ac_t""no" 1>&6
20614 { echo "configure: error: could not locate SQL headers" 1>&2; exit 1; }
20620 echo $ac_n "checking for SQLDriverConnect in -liodbc""... $ac_c" 1>&6
20621 echo "configure:20622: checking for SQLDriverConnect in -liodbc" >&5
20622 ac_lib_var=`echo iodbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
20623 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20624 echo $ac_n "(cached) $ac_c" 1>&6
20626 ac_save_LIBS="$LIBS"
20627 LIBS="-liodbc $LIBS"
20628 cat > conftest.$ac_ext <<EOF
20629 #line 20630 "configure"
20630 #include "confdefs.h"
20631 /* Override any gcc2 internal prototype to avoid an error. */
20632 /* We use char because int might match the return type of a gcc2
20633 builtin and then its argument prototype would still apply. */
20634 char SQLDriverConnect();
20640 if { (eval echo configure:20641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20642 eval "ac_cv_lib_$ac_lib_var=yes"
20644 echo "configure: failed program was:" >&5
20645 cat conftest.$ac_ext >&5
20647 eval "ac_cv_lib_$ac_lib_var=no"
20650 LIBS="$ac_save_LIBS"
20653 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20654 echo "$ac_t""yes" 1>&6
20657 echo "$ac_t""no" 1>&6
20661 if test $have_iodbc = yes ; then
20662 ol_link_sql="-liodbc"
20664 echo $ac_n "checking for SQLDriverConnect in -lodbc""... $ac_c" 1>&6
20665 echo "configure:20666: checking for SQLDriverConnect in -lodbc" >&5
20666 ac_lib_var=`echo odbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
20667 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20668 echo $ac_n "(cached) $ac_c" 1>&6
20670 ac_save_LIBS="$LIBS"
20671 LIBS="-lodbc $LIBS"
20672 cat > conftest.$ac_ext <<EOF
20673 #line 20674 "configure"
20674 #include "confdefs.h"
20675 /* Override any gcc2 internal prototype to avoid an error. */
20676 /* We use char because int might match the return type of a gcc2
20677 builtin and then its argument prototype would still apply. */
20678 char SQLDriverConnect();
20684 if { (eval echo configure:20685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20686 eval "ac_cv_lib_$ac_lib_var=yes"
20688 echo "configure: failed program was:" >&5
20689 cat conftest.$ac_ext >&5
20691 eval "ac_cv_lib_$ac_lib_var=no"
20694 LIBS="$ac_save_LIBS"
20697 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20698 echo "$ac_t""yes" 1>&6
20701 echo "$ac_t""no" 1>&6
20705 if test $have_odbc = yes ; then
20706 ol_link_sql="-lodbc"
20710 if test $ol_link_sql != no ; then
20711 SLAPD_SQL_LIBS="$ol_link_sql"
20713 elif test $ol_enable_sql != auto ; then
20714 { echo "configure: error: could not locate suitable ODBC library" 1>&2; exit 1; }
20720 if test $ol_with_cyrus_sasl != no ; then
20721 for ac_hdr in sasl/sasl.h sasl.h
20723 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20724 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20725 echo "configure:20726: checking for $ac_hdr" >&5
20726 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20727 echo $ac_n "(cached) $ac_c" 1>&6
20729 cat > conftest.$ac_ext <<EOF
20730 #line 20731 "configure"
20731 #include "confdefs.h"
20734 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20735 { (eval echo configure:20736: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20736 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20737 if test -z "$ac_err"; then
20739 eval "ac_cv_header_$ac_safe=yes"
20742 echo "configure: failed program was:" >&5
20743 cat conftest.$ac_ext >&5
20745 eval "ac_cv_header_$ac_safe=no"
20749 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20750 echo "$ac_t""yes" 1>&6
20751 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20752 cat >> confdefs.h <<EOF
20753 #define $ac_tr_hdr 1
20757 echo "$ac_t""no" 1>&6
20762 if test $ac_cv_header_sasl_sasl_h = yes -o $ac_cv_header_sasl_h = yes; then
20763 echo $ac_n "checking for sasl_client_init in -lsasl2""... $ac_c" 1>&6
20764 echo "configure:20765: checking for sasl_client_init in -lsasl2" >&5
20765 ac_lib_var=`echo sasl2'_'sasl_client_init | sed 'y%./+-:%__p__%'`
20766 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20767 echo $ac_n "(cached) $ac_c" 1>&6
20769 ac_save_LIBS="$LIBS"
20770 LIBS="-lsasl2 $LIBS"
20771 cat > conftest.$ac_ext <<EOF
20772 #line 20773 "configure"
20773 #include "confdefs.h"
20774 /* Override any gcc2 internal prototype to avoid an error. */
20775 /* We use char because int might match the return type of a gcc2
20776 builtin and then its argument prototype would still apply. */
20777 char sasl_client_init();
20783 if { (eval echo configure:20784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20785 eval "ac_cv_lib_$ac_lib_var=yes"
20787 echo "configure: failed program was:" >&5
20788 cat conftest.$ac_ext >&5
20790 eval "ac_cv_lib_$ac_lib_var=no"
20793 LIBS="$ac_save_LIBS"
20796 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20797 echo "$ac_t""yes" 1>&6
20798 ol_link_sasl="-lsasl2"
20800 echo "$ac_t""no" 1>&6
20801 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
20802 echo "configure:20803: checking for sasl_client_init in -lsasl" >&5
20803 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
20804 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20805 echo $ac_n "(cached) $ac_c" 1>&6
20807 ac_save_LIBS="$LIBS"
20808 LIBS="-lsasl $LIBS"
20809 cat > conftest.$ac_ext <<EOF
20810 #line 20811 "configure"
20811 #include "confdefs.h"
20812 /* Override any gcc2 internal prototype to avoid an error. */
20813 /* We use char because int might match the return type of a gcc2
20814 builtin and then its argument prototype would still apply. */
20815 char sasl_client_init();
20821 if { (eval echo configure:20822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20823 eval "ac_cv_lib_$ac_lib_var=yes"
20825 echo "configure: failed program was:" >&5
20826 cat conftest.$ac_ext >&5
20828 eval "ac_cv_lib_$ac_lib_var=no"
20831 LIBS="$ac_save_LIBS"
20834 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20835 echo "$ac_t""yes" 1>&6
20836 ol_link_sasl="-lsasl"
20838 echo "$ac_t""no" 1>&6
20845 if test $ol_link_sasl = no ; then
20846 if test $ol_with_cyrus_sasl != auto ; then
20847 { echo "configure: error: Could not locate Cyrus SASL" 1>&2; exit 1; }
20849 echo "configure: warning: Could not locate Cyrus SASL" 1>&2
20850 echo "configure: warning: SASL authentication not supported!" 1>&2
20851 if test $ol_link_tls = no ; then
20852 echo "configure: warning: Strong authentication not supported!" 1>&2
20856 echo $ac_n "checking Cyrus SASL library version""... $ac_c" 1>&6
20857 echo "configure:20858: checking Cyrus SASL library version" >&5
20858 if eval "test \"\${ol_cv_sasl_compat+set}\" = set"; then
20859 echo $ac_n "(cached) $ac_c" 1>&6
20862 cat > conftest.$ac_ext <<EOF
20863 #line 20864 "configure"
20864 #include "confdefs.h"
20866 #ifdef HAVE_SASL_SASL_H
20867 #include <sasl/sasl.h>
20872 /* Require 2.1.15+ */
20873 #if SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
20874 char *__sasl_compat = "2.2+ or better okay (we guess)";
20875 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
20876 && SASL_VERSION_STEP >=15
20877 char *__sasl_compat = "2.1.15+ or better okay";
20881 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20882 egrep "__sasl_compat" >/dev/null 2>&1; then
20884 ol_cv_sasl_compat=yes
20887 ol_cv_sasl_compat=no
20893 echo "$ac_t""$ol_cv_sasl_compat" 1>&6
20895 if test $ol_cv_sasl_compat = no ; then
20897 { echo "configure: error: Cyrus SASL library located but incompatible" 1>&2; exit 1; }
20900 cat >> confdefs.h <<\EOF
20901 #define HAVE_CYRUS_SASL 1
20904 SASL_LIBS="$ol_link_sasl"
20905 if test $ol_enable_spasswd != no ; then
20906 ol_link_spasswd=yes
20909 ac_save_LIBS="$LIBS"
20910 LIBS="$LIBS $ol_link_sasl"
20911 echo $ac_n "checking for sasl_version""... $ac_c" 1>&6
20912 echo "configure:20913: checking for sasl_version" >&5
20913 if eval "test \"\${ac_cv_func_sasl_version+set}\" = set"; then
20914 echo $ac_n "(cached) $ac_c" 1>&6
20916 cat > conftest.$ac_ext <<EOF
20917 #line 20918 "configure"
20918 #include "confdefs.h"
20919 /* System header to define __stub macros and hopefully few prototypes,
20920 which can conflict with char sasl_version(); below. */
20921 #include <assert.h>
20922 /* Override any gcc2 internal prototype to avoid an error. */
20923 /* We use char because int might match the return type of a gcc2
20924 builtin and then its argument prototype would still apply. */
20925 char sasl_version();
20930 /* The GNU C library defines this for functions which it implements
20931 to always fail with ENOSYS. Some functions are actually named
20932 something starting with __ and the normal name is an alias. */
20933 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
20941 if { (eval echo configure:20942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20943 eval "ac_cv_func_sasl_version=yes"
20945 echo "configure: failed program was:" >&5
20946 cat conftest.$ac_ext >&5
20948 eval "ac_cv_func_sasl_version=no"
20953 if eval "test \"`echo '$ac_cv_func_'sasl_version`\" = yes"; then
20954 echo "$ac_t""yes" 1>&6
20955 cat >> confdefs.h <<\EOF
20956 #define HAVE_SASL_VERSION 1
20960 echo "$ac_t""no" 1>&6
20963 LIBS="$ac_save_LIBS"
20967 echo "configure: warning: SASL authentication not supported!" 1>&2
20968 if test $ol_link_tls = no ; then
20969 echo "configure: warning: Strong authentication not supported!" 1>&2
20973 if test $cross_compiling != yes -a "$ac_cv_mingw32" != yes ; then
20975 if test -r /dev/urandom ; then
20976 dev="/dev/urandom";
20977 elif test -r /idev/urandom ; then
20978 dev="/idev/urandom";
20979 elif test -r /dev/srandom ; then
20980 dev="/dev/srandom";
20981 elif test -r /dev/random ; then
20983 elif test -r /idev/random ; then
20984 dev="/idev/random";
20987 if test $dev != no ; then
20988 cat >> confdefs.h <<EOF
20989 #define URANDOM_DEVICE "$dev"
20996 if test $ol_with_fetch != no ; then
20998 LIBS="-lfetch -lcom_err $LIBS"
20999 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
21000 echo "configure:21001: checking fetch(3) library" >&5
21001 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
21002 echo $ac_n "(cached) $ac_c" 1>&6
21005 cat > conftest.$ac_ext <<EOF
21006 #line 21007 "configure"
21007 #include "confdefs.h"
21009 #include <sys/param.h>
21013 struct url *u = fetchParseURL("file:///");
21016 if { (eval echo configure:21017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21018 ol_cv_lib_fetch=yes
21020 echo "configure: failed program was:" >&5
21021 cat conftest.$ac_ext >&5
21028 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
21030 if test $ol_cv_lib_fetch != no ; then
21031 ol_link_fetch="-lfetch -lcom_err"
21032 cat >> confdefs.h <<\EOF
21033 #define HAVE_FETCH 1
21039 if test $ol_cv_lib_fetch != no ; then
21040 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
21041 ol_link_fetch=freebsd
21043 elif test $ol_with_fetch != auto ; then
21044 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
21048 if test $ol_enable_crypt != no ; then
21050 LIBS="$TLS_LIBS $LIBS"
21052 echo $ac_n "checking for crypt""... $ac_c" 1>&6
21053 echo "configure:21054: checking for crypt" >&5
21054 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
21055 echo $ac_n "(cached) $ac_c" 1>&6
21057 cat > conftest.$ac_ext <<EOF
21058 #line 21059 "configure"
21059 #include "confdefs.h"
21060 /* System header to define __stub macros and hopefully few prototypes,
21061 which can conflict with char crypt(); below. */
21062 #include <assert.h>
21063 /* Override any gcc2 internal prototype to avoid an error. */
21064 /* We use char because int might match the return type of a gcc2
21065 builtin and then its argument prototype would still apply. */
21071 /* The GNU C library defines this for functions which it implements
21072 to always fail with ENOSYS. Some functions are actually named
21073 something starting with __ and the normal name is an alias. */
21074 #if defined (__stub_crypt) || defined (__stub___crypt)
21082 if { (eval echo configure:21083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21084 eval "ac_cv_func_crypt=yes"
21086 echo "configure: failed program was:" >&5
21087 cat conftest.$ac_ext >&5
21089 eval "ac_cv_func_crypt=no"
21094 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
21095 echo "$ac_t""yes" 1>&6
21098 echo "$ac_t""no" 1>&6
21101 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
21102 echo "configure:21103: checking for crypt in -lcrypt" >&5
21103 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
21104 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21105 echo $ac_n "(cached) $ac_c" 1>&6
21107 ac_save_LIBS="$LIBS"
21108 LIBS="-lcrypt $LIBS"
21109 cat > conftest.$ac_ext <<EOF
21110 #line 21111 "configure"
21111 #include "confdefs.h"
21112 /* Override any gcc2 internal prototype to avoid an error. */
21113 /* We use char because int might match the return type of a gcc2
21114 builtin and then its argument prototype would still apply. */
21121 if { (eval echo configure:21122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21123 eval "ac_cv_lib_$ac_lib_var=yes"
21125 echo "configure: failed program was:" >&5
21126 cat conftest.$ac_ext >&5
21128 eval "ac_cv_lib_$ac_lib_var=no"
21131 LIBS="$ac_save_LIBS"
21134 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21135 echo "$ac_t""yes" 1>&6
21136 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
21139 echo "$ac_t""no" 1>&6
21148 if test $have_crypt = yes ; then
21149 cat >> confdefs.h <<\EOF
21150 #define HAVE_CRYPT 1
21154 echo "configure: warning: could not find crypt" 1>&2
21155 if test $ol_enable_crypt = yes ; then
21156 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
21159 echo "configure: warning: disabling crypt support" 1>&2
21164 if test $ol_enable_proctitle != no ; then
21165 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
21166 echo "configure:21167: checking for setproctitle" >&5
21167 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
21168 echo $ac_n "(cached) $ac_c" 1>&6
21170 cat > conftest.$ac_ext <<EOF
21171 #line 21172 "configure"
21172 #include "confdefs.h"
21173 /* System header to define __stub macros and hopefully few prototypes,
21174 which can conflict with char setproctitle(); below. */
21175 #include <assert.h>
21176 /* Override any gcc2 internal prototype to avoid an error. */
21177 /* We use char because int might match the return type of a gcc2
21178 builtin and then its argument prototype would still apply. */
21179 char setproctitle();
21184 /* The GNU C library defines this for functions which it implements
21185 to always fail with ENOSYS. Some functions are actually named
21186 something starting with __ and the normal name is an alias. */
21187 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
21195 if { (eval echo configure:21196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21197 eval "ac_cv_func_setproctitle=yes"
21199 echo "configure: failed program was:" >&5
21200 cat conftest.$ac_ext >&5
21202 eval "ac_cv_func_setproctitle=no"
21207 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
21208 echo "$ac_t""yes" 1>&6
21209 have_setproctitle=yes
21211 echo "$ac_t""no" 1>&6
21213 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
21214 echo "configure:21215: checking for setproctitle in -lutil" >&5
21215 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
21216 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21217 echo $ac_n "(cached) $ac_c" 1>&6
21219 ac_save_LIBS="$LIBS"
21220 LIBS="-lutil $LIBS"
21221 cat > conftest.$ac_ext <<EOF
21222 #line 21223 "configure"
21223 #include "confdefs.h"
21224 /* Override any gcc2 internal prototype to avoid an error. */
21225 /* We use char because int might match the return type of a gcc2
21226 builtin and then its argument prototype would still apply. */
21227 char setproctitle();
21233 if { (eval echo configure:21234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21235 eval "ac_cv_lib_$ac_lib_var=yes"
21237 echo "configure: failed program was:" >&5
21238 cat conftest.$ac_ext >&5
21240 eval "ac_cv_lib_$ac_lib_var=no"
21243 LIBS="$ac_save_LIBS"
21246 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21247 echo "$ac_t""yes" 1>&6
21248 have_setproctitle=yes
21249 LUTIL_LIBS="$LUTIL_LIBS -lutil"
21251 echo "$ac_t""no" 1>&6
21252 have_setproctitle=no
21253 LIBOBJS="$LIBOBJS setproctitle.o"
21254 LIBSRCS="$LIBSRCS setproctitle.c"
21260 if test $have_setproctitle = yes ; then
21261 cat >> confdefs.h <<\EOF
21262 #define HAVE_SETPROCTITLE 1
21268 if test $ol_enable_slp != no ; then
21269 for ac_hdr in slp.h
21271 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21272 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21273 echo "configure:21274: checking for $ac_hdr" >&5
21274 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
21275 echo $ac_n "(cached) $ac_c" 1>&6
21277 cat > conftest.$ac_ext <<EOF
21278 #line 21279 "configure"
21279 #include "confdefs.h"
21282 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21283 { (eval echo configure:21284: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21284 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21285 if test -z "$ac_err"; then
21287 eval "ac_cv_header_$ac_safe=yes"
21290 echo "configure: failed program was:" >&5
21291 cat conftest.$ac_ext >&5
21293 eval "ac_cv_header_$ac_safe=no"
21297 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21298 echo "$ac_t""yes" 1>&6
21299 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21300 cat >> confdefs.h <<EOF
21301 #define $ac_tr_hdr 1
21305 echo "$ac_t""no" 1>&6
21310 if test $ac_cv_header_slp_h = yes ; then
21311 echo $ac_n "checking for SLPOpen in -lslp""... $ac_c" 1>&6
21312 echo "configure:21313: checking for SLPOpen in -lslp" >&5
21313 ac_lib_var=`echo slp'_'SLPOpen | sed 'y%./+-:%__p__%'`
21314 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21315 echo $ac_n "(cached) $ac_c" 1>&6
21317 ac_save_LIBS="$LIBS"
21319 cat > conftest.$ac_ext <<EOF
21320 #line 21321 "configure"
21321 #include "confdefs.h"
21322 /* Override any gcc2 internal prototype to avoid an error. */
21323 /* We use char because int might match the return type of a gcc2
21324 builtin and then its argument prototype would still apply. */
21331 if { (eval echo configure:21332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21333 eval "ac_cv_lib_$ac_lib_var=yes"
21335 echo "configure: failed program was:" >&5
21336 cat conftest.$ac_ext >&5
21338 eval "ac_cv_lib_$ac_lib_var=no"
21341 LIBS="$ac_save_LIBS"
21344 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21345 echo "$ac_t""yes" 1>&6
21348 echo "$ac_t""no" 1>&6
21352 if test $have_slp = yes ; then
21353 cat >> confdefs.h <<\EOF
21357 SLAPD_SLP_LIBS=-lslp
21360 elif test $ol_enable_slp = yes ; then
21361 { echo "configure: error: SLP not found" 1>&2; exit 1; }
21366 echo $ac_n "checking long long""... $ac_c" 1>&6
21367 echo "configure:21368: checking long long" >&5
21368 if eval "test \"\${ol_cv_type_long_long+set}\" = set"; then
21369 echo $ac_n "(cached) $ac_c" 1>&6
21372 cat > conftest.$ac_ext <<EOF
21373 #line 21374 "configure"
21374 #include "confdefs.h"
21380 if { (eval echo configure:21381: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21382 ol_cv_type_long_long=yes
21384 echo "configure: failed program was:" >&5
21385 cat conftest.$ac_ext >&5
21387 ol_cv_type_long_long=no
21392 echo "$ac_t""$ol_cv_type_long_long" 1>&6
21393 if test $ol_cv_type_long_long = yes; then
21394 cat >> confdefs.h <<\EOF
21395 #define HAVE_LONG_LONG 1
21400 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
21401 echo "configure:21402: checking for ANSI C header files" >&5
21402 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
21403 echo $ac_n "(cached) $ac_c" 1>&6
21405 cat > conftest.$ac_ext <<EOF
21406 #line 21407 "configure"
21407 #include "confdefs.h"
21408 #include <stdlib.h>
21409 #include <stdarg.h>
21410 #include <string.h>
21413 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21414 { (eval echo configure:21415: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21415 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21416 if test -z "$ac_err"; then
21418 ac_cv_header_stdc=yes
21421 echo "configure: failed program was:" >&5
21422 cat conftest.$ac_ext >&5
21424 ac_cv_header_stdc=no
21428 if test $ac_cv_header_stdc = yes; then
21429 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21430 cat > conftest.$ac_ext <<EOF
21431 #line 21432 "configure"
21432 #include "confdefs.h"
21433 #include <string.h>
21435 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21436 egrep "memchr" >/dev/null 2>&1; then
21440 ac_cv_header_stdc=no
21446 if test $ac_cv_header_stdc = yes; then
21447 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21448 cat > conftest.$ac_ext <<EOF
21449 #line 21450 "configure"
21450 #include "confdefs.h"
21451 #include <stdlib.h>
21453 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21454 egrep "free" >/dev/null 2>&1; then
21458 ac_cv_header_stdc=no
21464 if test $ac_cv_header_stdc = yes; then
21465 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21466 if test "$cross_compiling" = yes; then
21469 cat > conftest.$ac_ext <<EOF
21470 #line 21471 "configure"
21471 #include "confdefs.h"
21473 #if ((' ' & 0x0FF) == 0x020)
21474 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21475 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21477 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
21478 || ('j' <= (c) && (c) <= 'r') \
21479 || ('s' <= (c) && (c) <= 'z'))
21480 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21482 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21483 int main () { int i; for (i = 0; i < 256; i++)
21484 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
21488 if { (eval echo configure:21489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21492 echo "configure: failed program was:" >&5
21493 cat conftest.$ac_ext >&5
21495 ac_cv_header_stdc=no
21503 echo "$ac_t""$ac_cv_header_stdc" 1>&6
21504 if test $ac_cv_header_stdc = yes; then
21505 cat >> confdefs.h <<\EOF
21506 #define STDC_HEADERS 1
21511 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
21512 echo "configure:21513: checking for mode_t" >&5
21513 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
21514 echo $ac_n "(cached) $ac_c" 1>&6
21516 cat > conftest.$ac_ext <<EOF
21517 #line 21518 "configure"
21518 #include "confdefs.h"
21519 #include <sys/types.h>
21521 #include <stdlib.h>
21522 #include <stddef.h>
21526 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21527 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21529 eval "ac_cv_type_mode_t=yes"
21532 eval "ac_cv_type_mode_t=no"
21537 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
21538 echo "$ac_t""yes" 1>&6
21540 echo "$ac_t""no" 1>&6
21541 cat >> confdefs.h <<EOF
21547 echo $ac_n "checking for off_t""... $ac_c" 1>&6
21548 echo "configure:21549: checking for off_t" >&5
21549 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
21550 echo $ac_n "(cached) $ac_c" 1>&6
21552 cat > conftest.$ac_ext <<EOF
21553 #line 21554 "configure"
21554 #include "confdefs.h"
21555 #include <sys/types.h>
21557 #include <stdlib.h>
21558 #include <stddef.h>
21562 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21563 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21565 eval "ac_cv_type_off_t=yes"
21568 eval "ac_cv_type_off_t=no"
21573 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
21574 echo "$ac_t""yes" 1>&6
21576 echo "$ac_t""no" 1>&6
21577 cat >> confdefs.h <<EOF
21583 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
21584 echo "configure:21585: checking for pid_t" >&5
21585 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
21586 echo $ac_n "(cached) $ac_c" 1>&6
21588 cat > conftest.$ac_ext <<EOF
21589 #line 21590 "configure"
21590 #include "confdefs.h"
21591 #include <sys/types.h>
21593 #include <stdlib.h>
21594 #include <stddef.h>
21598 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21599 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21601 eval "ac_cv_type_pid_t=yes"
21604 eval "ac_cv_type_pid_t=no"
21609 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
21610 echo "$ac_t""yes" 1>&6
21612 echo "$ac_t""no" 1>&6
21613 cat >> confdefs.h <<EOF
21619 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
21620 echo "configure:21621: checking for ptrdiff_t" >&5
21621 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
21622 echo $ac_n "(cached) $ac_c" 1>&6
21624 cat > conftest.$ac_ext <<EOF
21625 #line 21626 "configure"
21626 #include "confdefs.h"
21627 #include <stddef.h>
21632 if { (eval echo configure:21633: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21634 am_cv_type_ptrdiff_t=yes
21636 echo "configure: failed program was:" >&5
21637 cat conftest.$ac_ext >&5
21639 am_cv_type_ptrdiff_t=no
21644 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
21645 if test $am_cv_type_ptrdiff_t = yes; then
21646 cat >> confdefs.h <<\EOF
21647 #define HAVE_PTRDIFF_T 1
21652 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
21653 echo "configure:21654: checking return type of signal handlers" >&5
21654 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
21655 echo $ac_n "(cached) $ac_c" 1>&6
21657 cat > conftest.$ac_ext <<EOF
21658 #line 21659 "configure"
21659 #include "confdefs.h"
21660 #include <sys/types.h>
21661 #include <signal.h>
21666 extern "C" void (*signal (int, void (*)(int)))(int);
21668 void (*signal ()) ();
21675 if { (eval echo configure:21676: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21677 ac_cv_type_signal=void
21679 echo "configure: failed program was:" >&5
21680 cat conftest.$ac_ext >&5
21682 ac_cv_type_signal=int
21687 echo "$ac_t""$ac_cv_type_signal" 1>&6
21688 cat >> confdefs.h <<EOF
21689 #define RETSIGTYPE $ac_cv_type_signal
21693 echo $ac_n "checking for size_t""... $ac_c" 1>&6
21694 echo "configure:21695: checking for size_t" >&5
21695 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
21696 echo $ac_n "(cached) $ac_c" 1>&6
21698 cat > conftest.$ac_ext <<EOF
21699 #line 21700 "configure"
21700 #include "confdefs.h"
21701 #include <sys/types.h>
21703 #include <stdlib.h>
21704 #include <stddef.h>
21708 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21709 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21711 eval "ac_cv_type_size_t=yes"
21714 eval "ac_cv_type_size_t=no"
21719 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
21720 echo "$ac_t""yes" 1>&6
21722 echo "$ac_t""no" 1>&6
21723 cat >> confdefs.h <<EOF
21724 #define size_t unsigned
21730 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
21731 echo "configure:21732: checking for ssize_t" >&5
21732 if eval "test \"\${ac_cv_type_ssize_t+set}\" = set"; then
21733 echo $ac_n "(cached) $ac_c" 1>&6
21735 cat > conftest.$ac_ext <<EOF
21736 #line 21737 "configure"
21737 #include "confdefs.h"
21738 #include <sys/types.h>
21740 #include <stdlib.h>
21741 #include <stddef.h>
21745 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21746 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21748 eval "ac_cv_type_ssize_t=yes"
21751 eval "ac_cv_type_ssize_t=no"
21756 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
21757 echo "$ac_t""yes" 1>&6
21759 echo "$ac_t""no" 1>&6
21760 cat >> confdefs.h <<EOF
21761 #define ssize_t signed int
21766 echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
21767 echo "configure:21768: checking for caddr_t" >&5
21768 if eval "test \"\${ac_cv_type_caddr_t+set}\" = set"; then
21769 echo $ac_n "(cached) $ac_c" 1>&6
21771 cat > conftest.$ac_ext <<EOF
21772 #line 21773 "configure"
21773 #include "confdefs.h"
21774 #include <sys/types.h>
21776 #include <stdlib.h>
21777 #include <stddef.h>
21781 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21782 egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21784 eval "ac_cv_type_caddr_t=yes"
21787 eval "ac_cv_type_caddr_t=no"
21792 if eval "test \"`echo '$ac_cv_type_'caddr_t`\" = yes"; then
21793 echo "$ac_t""yes" 1>&6
21795 echo "$ac_t""no" 1>&6
21796 cat >> confdefs.h <<EOF
21797 #define caddr_t char *
21803 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
21804 echo "configure:21805: checking for socklen_t" >&5
21805 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
21806 echo $ac_n "(cached) $ac_c" 1>&6
21808 cat > conftest.$ac_ext <<EOF
21809 #line 21810 "configure"
21810 #include "confdefs.h"
21812 #ifdef HAVE_SYS_TYPES_H
21813 #include <sys/types.h>
21815 #ifdef HAVE_SYS_SOCKET_H
21816 #include <sys/socket.h>
21823 if { (eval echo configure:21824: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21825 ol_cv_type_socklen_t=yes
21827 echo "configure: failed program was:" >&5
21828 cat conftest.$ac_ext >&5
21830 ol_cv_type_socklen_t=no
21835 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
21836 if test $ol_cv_type_socklen_t = no; then
21837 cat >> confdefs.h <<\EOF
21838 #define socklen_t int
21843 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
21844 echo "configure:21845: checking for member st_blksize in aggregate type struct stat" >&5
21845 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
21846 echo $ac_n "(cached) $ac_c" 1>&6
21848 cat > conftest.$ac_ext <<EOF
21849 #line 21850 "configure"
21850 #include "confdefs.h"
21851 #include <sys/types.h>
21852 #include <sys/stat.h>
21854 struct stat foo; foo.st_blksize;
21857 if { (eval echo configure:21858: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21859 ac_cv_c_struct_member_st_blksize=yes
21861 echo "configure: failed program was:" >&5
21862 cat conftest.$ac_ext >&5
21864 ac_cv_c_struct_member_st_blksize=no
21869 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
21870 st_blksize="$ac_cv_c_struct_member_st_blksize"
21871 if test $ac_cv_c_struct_member_st_blksize = yes; then
21872 cat >> confdefs.h <<\EOF
21873 #define HAVE_ST_BLKSIZE 1
21878 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
21879 echo "configure:21880: checking whether time.h and sys/time.h may both be included" >&5
21880 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
21881 echo $ac_n "(cached) $ac_c" 1>&6
21883 cat > conftest.$ac_ext <<EOF
21884 #line 21885 "configure"
21885 #include "confdefs.h"
21886 #include <sys/types.h>
21887 #include <sys/time.h>
21893 if { (eval echo configure:21894: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21895 ac_cv_header_time=yes
21897 echo "configure: failed program was:" >&5
21898 cat conftest.$ac_ext >&5
21900 ac_cv_header_time=no
21905 echo "$ac_t""$ac_cv_header_time" 1>&6
21906 if test $ac_cv_header_time = yes; then
21907 cat >> confdefs.h <<\EOF
21908 #define TIME_WITH_SYS_TIME 1
21913 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
21914 echo "configure:21915: checking whether struct tm is in sys/time.h or time.h" >&5
21915 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
21916 echo $ac_n "(cached) $ac_c" 1>&6
21918 cat > conftest.$ac_ext <<EOF
21919 #line 21920 "configure"
21920 #include "confdefs.h"
21921 #include <sys/types.h>
21924 struct tm *tp; tp->tm_sec;
21927 if { (eval echo configure:21928: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21929 ac_cv_struct_tm=time.h
21931 echo "configure: failed program was:" >&5
21932 cat conftest.$ac_ext >&5
21934 ac_cv_struct_tm=sys/time.h
21939 echo "$ac_t""$ac_cv_struct_tm" 1>&6
21940 if test $ac_cv_struct_tm = sys/time.h; then
21941 cat >> confdefs.h <<\EOF
21942 #define TM_IN_SYS_TIME 1
21947 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
21948 echo "configure:21949: checking for uid_t in sys/types.h" >&5
21949 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
21950 echo $ac_n "(cached) $ac_c" 1>&6
21952 cat > conftest.$ac_ext <<EOF
21953 #line 21954 "configure"
21954 #include "confdefs.h"
21955 #include <sys/types.h>
21957 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21958 egrep "uid_t" >/dev/null 2>&1; then
21960 ac_cv_type_uid_t=yes
21963 ac_cv_type_uid_t=no
21969 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
21970 if test $ac_cv_type_uid_t = no; then
21971 cat >> confdefs.h <<\EOF
21975 cat >> confdefs.h <<\EOF
21981 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
21982 echo "configure:21983: checking for sig_atomic_t" >&5
21983 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
21984 echo $ac_n "(cached) $ac_c" 1>&6
21986 cat > conftest.$ac_ext <<EOF
21987 #line 21988 "configure"
21988 #include "confdefs.h"
21989 #include <signal.h>
21991 sig_atomic_t atomic;
21994 if { (eval echo configure:21995: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21996 ol_cv_type_sig_atomic_t=yes
21998 echo "configure: failed program was:" >&5
21999 cat conftest.$ac_ext >&5
22001 ol_cv_type_sig_atomic_t=no
22006 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
22007 if test $ol_cv_type_sig_atomic_t = no; then
22008 cat >> confdefs.h <<\EOF
22009 #define sig_atomic_t int
22016 # test for pw_gecos in struct passwd
22017 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
22018 echo "configure:22019: checking struct passwd for pw_gecos" >&5
22019 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
22020 echo $ac_n "(cached) $ac_c" 1>&6
22023 cat > conftest.$ac_ext <<EOF
22024 #line 22025 "configure"
22025 #include "confdefs.h"
22030 pwd.pw_gecos = pwd.pw_name;
22034 if { (eval echo configure:22035: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22036 ol_cv_struct_passwd_pw_gecos=yes
22038 echo "configure: failed program was:" >&5
22039 cat conftest.$ac_ext >&5
22041 ol_cv_struct_passwd_pw_gecos=no
22046 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
22047 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
22048 cat >> confdefs.h <<\EOF
22049 #define HAVE_PW_GECOS 1
22054 # test for pw_passwd in struct passwd
22055 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
22056 echo "configure:22057: checking struct passwd for pw_passwd" >&5
22057 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
22058 echo $ac_n "(cached) $ac_c" 1>&6
22061 cat > conftest.$ac_ext <<EOF
22062 #line 22063 "configure"
22063 #include "confdefs.h"
22068 pwd.pw_passwd = pwd.pw_name;
22072 if { (eval echo configure:22073: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22074 ol_cv_struct_passwd_pw_passwd=yes
22076 echo "configure: failed program was:" >&5
22077 cat conftest.$ac_ext >&5
22079 ol_cv_struct_passwd_pw_passwd=no
22084 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
22085 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
22086 cat >> confdefs.h <<\EOF
22087 #define HAVE_PW_PASSWD 1
22093 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
22094 echo "configure:22095: checking if toupper() requires islower()" >&5
22095 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
22096 echo $ac_n "(cached) $ac_c" 1>&6
22099 if test "$cross_compiling" = yes; then
22100 ol_cv_c_upper_lower=safe
22102 cat > conftest.$ac_ext <<EOF
22103 #line 22104 "configure"
22104 #include "confdefs.h"
22109 if ('C' == toupper('C'))
22115 if { (eval echo configure:22116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
22117 ol_cv_c_upper_lower=no
22119 echo "configure: failed program was:" >&5
22120 cat conftest.$ac_ext >&5
22122 ol_cv_c_upper_lower=yes
22129 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
22130 if test $ol_cv_c_upper_lower != no ; then
22131 cat >> confdefs.h <<\EOF
22132 #define C_UPPER_LOWER 1
22137 echo $ac_n "checking for working const""... $ac_c" 1>&6
22138 echo "configure:22139: checking for working const" >&5
22139 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
22140 echo $ac_n "(cached) $ac_c" 1>&6
22142 cat > conftest.$ac_ext <<EOF
22143 #line 22144 "configure"
22144 #include "confdefs.h"
22148 /* Ultrix mips cc rejects this. */
22149 typedef int charset[2]; const charset x;
22150 /* SunOS 4.1.1 cc rejects this. */
22151 char const *const *ccp;
22153 /* NEC SVR4.0.2 mips cc rejects this. */
22154 struct point {int x, y;};
22155 static struct point const zero = {0,0};
22156 /* AIX XL C 1.02.0.0 rejects this.
22157 It does not let you subtract one const X* pointer from another in an arm
22158 of an if-expression whose if-part is not a constant expression */
22159 const char *g = "string";
22160 ccp = &g + (g ? g-g : 0);
22161 /* HPUX 7.0 cc rejects these. */
22164 ccp = (char const *const *) p;
22165 { /* SCO 3.2v4 cc rejects this. */
22167 char const *s = 0 ? (char *) 0 : (char const *) 0;
22171 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22172 int x[] = {25, 17};
22173 const int *foo = &x[0];
22176 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22177 typedef const int *iptr;
22181 { /* AIX XL C 1.02.0.0 rejects this saying
22182 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22183 struct s { int j; const int *ap[3]; };
22184 struct s *b; b->j = 5;
22186 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22187 const int foo = 10;
22192 if { (eval echo configure:22193: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22196 echo "configure: failed program was:" >&5
22197 cat conftest.$ac_ext >&5
22204 echo "$ac_t""$ac_cv_c_const" 1>&6
22205 if test $ac_cv_c_const = no; then
22206 cat >> confdefs.h <<\EOF
22212 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
22213 echo "configure:22214: checking if compiler understands volatile" >&5
22214 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
22215 echo $ac_n "(cached) $ac_c" 1>&6
22217 cat > conftest.$ac_ext <<EOF
22218 #line 22219 "configure"
22219 #include "confdefs.h"
22222 volatile int a; int * volatile b = x ? &y : &z;
22223 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
22227 if { (eval echo configure:22228: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22229 ol_cv_c_volatile=yes
22231 echo "configure: failed program was:" >&5
22232 cat conftest.$ac_ext >&5
22234 ol_cv_c_volatile=no
22239 echo "$ac_t""$ol_cv_c_volatile" 1>&6
22240 if test $ol_cv_c_volatile = yes; then
22243 cat >> confdefs.h <<\EOF
22250 if test $cross_compiling = yes ; then
22251 cat >> confdefs.h <<\EOF
22252 #define CROSS_COMPILING 1
22256 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
22257 echo "configure:22258: checking whether byte ordering is bigendian" >&5
22258 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
22259 echo $ac_n "(cached) $ac_c" 1>&6
22261 ac_cv_c_bigendian=unknown
22262 # See if sys/param.h defines the BYTE_ORDER macro.
22263 cat > conftest.$ac_ext <<EOF
22264 #line 22265 "configure"
22265 #include "confdefs.h"
22266 #include <sys/types.h>
22267 #include <sys/param.h>
22270 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
22271 bogus endian macros
22275 if { (eval echo configure:22276: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22277 # It does; now see whether it defined to BIG_ENDIAN or not.
22278 cat > conftest.$ac_ext <<EOF
22279 #line 22280 "configure"
22280 #include "confdefs.h"
22281 #include <sys/types.h>
22282 #include <sys/param.h>
22285 #if BYTE_ORDER != BIG_ENDIAN
22290 if { (eval echo configure:22291: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22292 ac_cv_c_bigendian=yes
22294 echo "configure: failed program was:" >&5
22295 cat conftest.$ac_ext >&5
22297 ac_cv_c_bigendian=no
22301 echo "configure: failed program was:" >&5
22302 cat conftest.$ac_ext >&5
22305 if test $ac_cv_c_bigendian = unknown; then
22306 if test "$cross_compiling" = yes; then
22307 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
22309 cat > conftest.$ac_ext <<EOF
22310 #line 22311 "configure"
22311 #include "confdefs.h"
22313 /* Are we little or big endian? From Harbison&Steele. */
22317 char c[sizeof (long)];
22320 exit (u.c[sizeof (long) - 1] == 1);
22323 if { (eval echo configure:22324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
22325 ac_cv_c_bigendian=no
22327 echo "configure: failed program was:" >&5
22328 cat conftest.$ac_ext >&5
22330 ac_cv_c_bigendian=yes
22338 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
22339 if test $ac_cv_c_bigendian = yes; then
22340 cat >> confdefs.h <<\EOF
22341 #define WORDS_BIGENDIAN 1
22348 echo $ac_n "checking size of short""... $ac_c" 1>&6
22349 echo "configure:22350: checking size of short" >&5
22350 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
22351 echo $ac_n "(cached) $ac_c" 1>&6
22353 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22354 cat > conftest.$ac_ext <<EOF
22355 #line 22356 "configure"
22356 #include "confdefs.h"
22357 #include "confdefs.h"
22358 #include <sys/types.h>
22362 switch (0) case 0: case (sizeof (short) == $ac_size):;
22365 if { (eval echo configure:22366: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22367 ac_cv_sizeof_short=$ac_size
22369 echo "configure: failed program was:" >&5
22370 cat conftest.$ac_ext >&5
22373 if test x$ac_cv_sizeof_short != x ; then break; fi
22378 if test x$ac_cv_sizeof_short = x ; then
22379 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
22381 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
22382 cat >> confdefs.h <<EOF
22383 #define SIZEOF_SHORT $ac_cv_sizeof_short
22387 echo $ac_n "checking size of int""... $ac_c" 1>&6
22388 echo "configure:22389: checking size of int" >&5
22389 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
22390 echo $ac_n "(cached) $ac_c" 1>&6
22392 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22393 cat > conftest.$ac_ext <<EOF
22394 #line 22395 "configure"
22395 #include "confdefs.h"
22396 #include "confdefs.h"
22397 #include <sys/types.h>
22401 switch (0) case 0: case (sizeof (int) == $ac_size):;
22404 if { (eval echo configure:22405: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22406 ac_cv_sizeof_int=$ac_size
22408 echo "configure: failed program was:" >&5
22409 cat conftest.$ac_ext >&5
22412 if test x$ac_cv_sizeof_int != x ; then break; fi
22417 if test x$ac_cv_sizeof_int = x ; then
22418 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
22420 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
22421 cat >> confdefs.h <<EOF
22422 #define SIZEOF_INT $ac_cv_sizeof_int
22426 echo $ac_n "checking size of long""... $ac_c" 1>&6
22427 echo "configure:22428: checking size of long" >&5
22428 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
22429 echo $ac_n "(cached) $ac_c" 1>&6
22431 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22432 cat > conftest.$ac_ext <<EOF
22433 #line 22434 "configure"
22434 #include "confdefs.h"
22435 #include "confdefs.h"
22436 #include <sys/types.h>
22440 switch (0) case 0: case (sizeof (long) == $ac_size):;
22443 if { (eval echo configure:22444: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22445 ac_cv_sizeof_long=$ac_size
22447 echo "configure: failed program was:" >&5
22448 cat conftest.$ac_ext >&5
22451 if test x$ac_cv_sizeof_long != x ; then break; fi
22456 if test x$ac_cv_sizeof_long = x ; then
22457 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
22459 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
22460 cat >> confdefs.h <<EOF
22461 #define SIZEOF_LONG $ac_cv_sizeof_long
22466 if test "$ac_cv_sizeof_int" -lt 4 ; then
22467 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
22469 cat >> confdefs.h <<\EOF
22470 #define LBER_INT_T long
22474 cat >> confdefs.h <<\EOF
22475 #define LBER_INT_T int
22480 cat >> confdefs.h <<\EOF
22481 #define LBER_LEN_T long
22484 cat >> confdefs.h <<\EOF
22485 #define LBER_SOCKET_T int
22488 cat >> confdefs.h <<\EOF
22489 #define LBER_TAG_T long
22493 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
22494 echo "configure:22495: checking for 8-bit clean memcmp" >&5
22495 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
22496 echo $ac_n "(cached) $ac_c" 1>&6
22498 if test "$cross_compiling" = yes; then
22499 ac_cv_func_memcmp_clean=no
22501 cat > conftest.$ac_ext <<EOF
22502 #line 22503 "configure"
22503 #include "confdefs.h"
22507 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
22508 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
22512 if { (eval echo configure:22513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
22514 ac_cv_func_memcmp_clean=yes
22516 echo "configure: failed program was:" >&5
22517 cat conftest.$ac_ext >&5
22519 ac_cv_func_memcmp_clean=no
22526 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
22527 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
22529 echo $ac_n "checking for strftime""... $ac_c" 1>&6
22530 echo "configure:22531: checking for strftime" >&5
22531 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
22532 echo $ac_n "(cached) $ac_c" 1>&6
22534 cat > conftest.$ac_ext <<EOF
22535 #line 22536 "configure"
22536 #include "confdefs.h"
22537 /* System header to define __stub macros and hopefully few prototypes,
22538 which can conflict with char strftime(); below. */
22539 #include <assert.h>
22540 /* Override any gcc2 internal prototype to avoid an error. */
22541 /* We use char because int might match the return type of a gcc2
22542 builtin and then its argument prototype would still apply. */
22548 /* The GNU C library defines this for functions which it implements
22549 to always fail with ENOSYS. Some functions are actually named
22550 something starting with __ and the normal name is an alias. */
22551 #if defined (__stub_strftime) || defined (__stub___strftime)
22559 if { (eval echo configure:22560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22561 eval "ac_cv_func_strftime=yes"
22563 echo "configure: failed program was:" >&5
22564 cat conftest.$ac_ext >&5
22566 eval "ac_cv_func_strftime=no"
22571 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
22572 echo "$ac_t""yes" 1>&6
22573 cat >> confdefs.h <<\EOF
22574 #define HAVE_STRFTIME 1
22578 echo "$ac_t""no" 1>&6
22579 # strftime is in -lintl on SCO UNIX.
22580 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
22581 echo "configure:22582: checking for strftime in -lintl" >&5
22582 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
22583 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
22584 echo $ac_n "(cached) $ac_c" 1>&6
22586 ac_save_LIBS="$LIBS"
22587 LIBS="-lintl $LIBS"
22588 cat > conftest.$ac_ext <<EOF
22589 #line 22590 "configure"
22590 #include "confdefs.h"
22591 /* Override any gcc2 internal prototype to avoid an error. */
22592 /* We use char because int might match the return type of a gcc2
22593 builtin and then its argument prototype would still apply. */
22600 if { (eval echo configure:22601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22602 eval "ac_cv_lib_$ac_lib_var=yes"
22604 echo "configure: failed program was:" >&5
22605 cat conftest.$ac_ext >&5
22607 eval "ac_cv_lib_$ac_lib_var=no"
22610 LIBS="$ac_save_LIBS"
22613 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
22614 echo "$ac_t""yes" 1>&6
22615 cat >> confdefs.h <<\EOF
22616 #define HAVE_STRFTIME 1
22619 LIBS="-lintl $LIBS"
22621 echo "$ac_t""no" 1>&6
22627 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
22628 echo "configure:22629: checking for inet_aton()" >&5
22629 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
22630 echo $ac_n "(cached) $ac_c" 1>&6
22632 cat > conftest.$ac_ext <<EOF
22633 #line 22634 "configure"
22634 #include "confdefs.h"
22636 #ifdef HAVE_SYS_TYPES_H
22637 # include <sys/types.h>
22639 #ifdef HAVE_SYS_SOCKET_H
22640 # include <sys/socket.h>
22641 # ifdef HAVE_SYS_SELECT_H
22642 # include <sys/select.h>
22644 # include <netinet/in.h>
22645 # ifdef HAVE_ARPA_INET_H
22646 # include <arpa/inet.h>
22652 int rc = inet_aton( "255.255.255.255", &in );
22655 if { (eval echo configure:22656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22657 ol_cv_func_inet_aton=yes
22659 echo "configure: failed program was:" >&5
22660 cat conftest.$ac_ext >&5
22662 ol_cv_func_inet_aton=no
22667 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
22668 if test $ol_cv_func_inet_aton != no; then
22669 cat >> confdefs.h <<\EOF
22670 #define HAVE_INET_ATON 1
22676 echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
22677 echo "configure:22678: checking for _spawnlp" >&5
22678 if eval "test \"\${ac_cv_func__spawnlp+set}\" = set"; then
22679 echo $ac_n "(cached) $ac_c" 1>&6
22681 cat > conftest.$ac_ext <<EOF
22682 #line 22683 "configure"
22683 #include "confdefs.h"
22684 /* System header to define __stub macros and hopefully few prototypes,
22685 which can conflict with char _spawnlp(); below. */
22686 #include <assert.h>
22687 /* Override any gcc2 internal prototype to avoid an error. */
22688 /* We use char because int might match the return type of a gcc2
22689 builtin and then its argument prototype would still apply. */
22695 /* The GNU C library defines this for functions which it implements
22696 to always fail with ENOSYS. Some functions are actually named
22697 something starting with __ and the normal name is an alias. */
22698 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
22706 if { (eval echo configure:22707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22708 eval "ac_cv_func__spawnlp=yes"
22710 echo "configure: failed program was:" >&5
22711 cat conftest.$ac_ext >&5
22713 eval "ac_cv_func__spawnlp=no"
22718 if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
22719 echo "$ac_t""yes" 1>&6
22720 cat >> confdefs.h <<\EOF
22721 #define HAVE_SPAWNLP 1
22725 echo "$ac_t""no" 1>&6
22729 echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
22730 echo "configure:22731: checking for _snprintf" >&5
22731 if eval "test \"\${ac_cv_func__snprintf+set}\" = set"; then
22732 echo $ac_n "(cached) $ac_c" 1>&6
22734 cat > conftest.$ac_ext <<EOF
22735 #line 22736 "configure"
22736 #include "confdefs.h"
22737 /* System header to define __stub macros and hopefully few prototypes,
22738 which can conflict with char _snprintf(); below. */
22739 #include <assert.h>
22740 /* Override any gcc2 internal prototype to avoid an error. */
22741 /* We use char because int might match the return type of a gcc2
22742 builtin and then its argument prototype would still apply. */
22748 /* The GNU C library defines this for functions which it implements
22749 to always fail with ENOSYS. Some functions are actually named
22750 something starting with __ and the normal name is an alias. */
22751 #if defined (__stub__snprintf) || defined (__stub____snprintf)
22759 if { (eval echo configure:22760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22761 eval "ac_cv_func__snprintf=yes"
22763 echo "configure: failed program was:" >&5
22764 cat conftest.$ac_ext >&5
22766 eval "ac_cv_func__snprintf=no"
22771 if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
22772 echo "$ac_t""yes" 1>&6
22773 ac_cv_func_snprintf=yes
22774 cat >> confdefs.h <<\EOF
22775 #define snprintf _snprintf
22780 echo "$ac_t""no" 1>&6
22784 echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
22785 echo "configure:22786: checking for _vsnprintf" >&5
22786 if eval "test \"\${ac_cv_func__vsnprintf+set}\" = set"; then
22787 echo $ac_n "(cached) $ac_c" 1>&6
22789 cat > conftest.$ac_ext <<EOF
22790 #line 22791 "configure"
22791 #include "confdefs.h"
22792 /* System header to define __stub macros and hopefully few prototypes,
22793 which can conflict with char _vsnprintf(); below. */
22794 #include <assert.h>
22795 /* Override any gcc2 internal prototype to avoid an error. */
22796 /* We use char because int might match the return type of a gcc2
22797 builtin and then its argument prototype would still apply. */
22803 /* The GNU C library defines this for functions which it implements
22804 to always fail with ENOSYS. Some functions are actually named
22805 something starting with __ and the normal name is an alias. */
22806 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
22814 if { (eval echo configure:22815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22816 eval "ac_cv_func__vsnprintf=yes"
22818 echo "configure: failed program was:" >&5
22819 cat conftest.$ac_ext >&5
22821 eval "ac_cv_func__vsnprintf=no"
22826 if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
22827 echo "$ac_t""yes" 1>&6
22828 ac_cv_func_vsnprintf=yes
22829 cat >> confdefs.h <<\EOF
22830 #define vsnprintf _vsnprintf
22835 echo "$ac_t""no" 1>&6
22839 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
22840 echo "configure:22841: checking for vprintf" >&5
22841 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
22842 echo $ac_n "(cached) $ac_c" 1>&6
22844 cat > conftest.$ac_ext <<EOF
22845 #line 22846 "configure"
22846 #include "confdefs.h"
22847 /* System header to define __stub macros and hopefully few prototypes,
22848 which can conflict with char vprintf(); below. */
22849 #include <assert.h>
22850 /* Override any gcc2 internal prototype to avoid an error. */
22851 /* We use char because int might match the return type of a gcc2
22852 builtin and then its argument prototype would still apply. */
22858 /* The GNU C library defines this for functions which it implements
22859 to always fail with ENOSYS. Some functions are actually named
22860 something starting with __ and the normal name is an alias. */
22861 #if defined (__stub_vprintf) || defined (__stub___vprintf)
22869 if { (eval echo configure:22870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22871 eval "ac_cv_func_vprintf=yes"
22873 echo "configure: failed program was:" >&5
22874 cat conftest.$ac_ext >&5
22876 eval "ac_cv_func_vprintf=no"
22881 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
22882 echo "$ac_t""yes" 1>&6
22883 cat >> confdefs.h <<\EOF
22884 #define HAVE_VPRINTF 1
22888 echo "$ac_t""no" 1>&6
22891 if test "$ac_cv_func_vprintf" != yes; then
22892 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
22893 echo "configure:22894: checking for _doprnt" >&5
22894 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
22895 echo $ac_n "(cached) $ac_c" 1>&6
22897 cat > conftest.$ac_ext <<EOF
22898 #line 22899 "configure"
22899 #include "confdefs.h"
22900 /* System header to define __stub macros and hopefully few prototypes,
22901 which can conflict with char _doprnt(); below. */
22902 #include <assert.h>
22903 /* Override any gcc2 internal prototype to avoid an error. */
22904 /* We use char because int might match the return type of a gcc2
22905 builtin and then its argument prototype would still apply. */
22911 /* The GNU C library defines this for functions which it implements
22912 to always fail with ENOSYS. Some functions are actually named
22913 something starting with __ and the normal name is an alias. */
22914 #if defined (__stub__doprnt) || defined (__stub____doprnt)
22922 if { (eval echo configure:22923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22924 eval "ac_cv_func__doprnt=yes"
22926 echo "configure: failed program was:" >&5
22927 cat conftest.$ac_ext >&5
22929 eval "ac_cv_func__doprnt=no"
22934 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
22935 echo "$ac_t""yes" 1>&6
22936 cat >> confdefs.h <<\EOF
22937 #define HAVE_DOPRNT 1
22941 echo "$ac_t""no" 1>&6
22947 if test $ac_cv_func_vprintf = yes ; then
22948 for ac_func in snprintf vsnprintf
22950 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22951 echo "configure:22952: checking for $ac_func" >&5
22952 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
22953 echo $ac_n "(cached) $ac_c" 1>&6
22955 cat > conftest.$ac_ext <<EOF
22956 #line 22957 "configure"
22957 #include "confdefs.h"
22958 /* System header to define __stub macros and hopefully few prototypes,
22959 which can conflict with char $ac_func(); below. */
22960 #include <assert.h>
22961 /* Override any gcc2 internal prototype to avoid an error. */
22962 /* We use char because int might match the return type of a gcc2
22963 builtin and then its argument prototype would still apply. */
22969 /* The GNU C library defines this for functions which it implements
22970 to always fail with ENOSYS. Some functions are actually named
22971 something starting with __ and the normal name is an alias. */
22972 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22980 if { (eval echo configure:22981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22982 eval "ac_cv_func_$ac_func=yes"
22984 echo "configure: failed program was:" >&5
22985 cat conftest.$ac_ext >&5
22987 eval "ac_cv_func_$ac_func=no"
22992 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22993 echo "$ac_t""yes" 1>&6
22994 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22995 cat >> confdefs.h <<EOF
22996 #define $ac_tr_func 1
23000 echo "$ac_t""no" 1>&6
23065 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
23066 echo "configure:23067: checking for $ac_func" >&5
23067 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
23068 echo $ac_n "(cached) $ac_c" 1>&6
23070 cat > conftest.$ac_ext <<EOF
23071 #line 23072 "configure"
23072 #include "confdefs.h"
23073 /* System header to define __stub macros and hopefully few prototypes,
23074 which can conflict with char $ac_func(); below. */
23075 #include <assert.h>
23076 /* Override any gcc2 internal prototype to avoid an error. */
23077 /* We use char because int might match the return type of a gcc2
23078 builtin and then its argument prototype would still apply. */
23084 /* The GNU C library defines this for functions which it implements
23085 to always fail with ENOSYS. Some functions are actually named
23086 something starting with __ and the normal name is an alias. */
23087 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23095 if { (eval echo configure:23096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23097 eval "ac_cv_func_$ac_func=yes"
23099 echo "configure: failed program was:" >&5
23100 cat conftest.$ac_ext >&5
23102 eval "ac_cv_func_$ac_func=no"
23107 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
23108 echo "$ac_t""yes" 1>&6
23109 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23110 cat >> confdefs.h <<EOF
23111 #define $ac_tr_func 1
23115 echo "$ac_t""no" 1>&6
23120 for ac_func in getopt getpeereid
23122 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
23123 echo "configure:23124: checking for $ac_func" >&5
23124 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
23125 echo $ac_n "(cached) $ac_c" 1>&6
23127 cat > conftest.$ac_ext <<EOF
23128 #line 23129 "configure"
23129 #include "confdefs.h"
23130 /* System header to define __stub macros and hopefully few prototypes,
23131 which can conflict with char $ac_func(); below. */
23132 #include <assert.h>
23133 /* Override any gcc2 internal prototype to avoid an error. */
23134 /* We use char because int might match the return type of a gcc2
23135 builtin and then its argument prototype would still apply. */
23141 /* The GNU C library defines this for functions which it implements
23142 to always fail with ENOSYS. Some functions are actually named
23143 something starting with __ and the normal name is an alias. */
23144 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23152 if { (eval echo configure:23153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23154 eval "ac_cv_func_$ac_func=yes"
23156 echo "configure: failed program was:" >&5
23157 cat conftest.$ac_ext >&5
23159 eval "ac_cv_func_$ac_func=no"
23164 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
23165 echo "$ac_t""yes" 1>&6
23166 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23167 cat >> confdefs.h <<EOF
23168 #define $ac_tr_func 1
23172 echo "$ac_t""no" 1>&6
23173 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
23179 if test "$ac_cv_func_getopt" != yes; then
23180 LIBSRCS="$LIBSRCS getopt.c"
23182 if test "$ac_cv_func_getpeereid" != yes; then
23183 echo $ac_n "checking for msg_accrights in msghdr""... $ac_c" 1>&6
23184 echo "configure:23185: checking for msg_accrights in msghdr" >&5
23185 if eval "test \"\${ol_cv_msghdr_msg_accrights+set}\" = set"; then
23186 echo $ac_n "(cached) $ac_c" 1>&6
23188 cat > conftest.$ac_ext <<EOF
23189 #line 23190 "configure"
23190 #include "confdefs.h"
23191 #include <sys/socket.h>
23193 struct msghdr m; m.msg_accrightslen=0
23196 if { (eval echo configure:23197: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23198 ol_cv_msghdr_msg_accrights=yes
23200 echo "configure: failed program was:" >&5
23201 cat conftest.$ac_ext >&5
23203 ol_cv_msghdr_msg_accrights=no
23209 echo "$ac_t""$ol_cv_msghdr_msg_accrights" 1>&6
23210 if test $ol_cv_msghdr_msg_accrights = "yes" ; then
23211 cat >> confdefs.h <<\EOF
23212 #define HAVE_MSGHDR_MSG_ACCRIGHTS 1
23217 LIBSRCS="$LIBSRCS getpeereid.c"
23219 if test "$ac_cv_func_snprintf" != yes -o "$ac_cv_func_vsnprintf" != yes; then
23220 if test "$ac_cv_func_snprintf" != yes; then
23221 cat >> confdefs.h <<\EOF
23222 #define snprintf ber_pvt_snprintf
23226 if test "$ac_cv_func_vsnprintf" != yes; then
23227 cat >> confdefs.h <<\EOF
23228 #define vsnprintf ber_pvt_vsnprintf
23234 # Check Configuration
23235 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
23236 echo "configure:23237: checking declaration of sys_errlist" >&5
23237 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
23238 echo $ac_n "(cached) $ac_c" 1>&6
23241 cat > conftest.$ac_ext <<EOF
23242 #line 23243 "configure"
23243 #include "confdefs.h"
23246 #include <sys/types.h>
23249 #include <stdlib.h>
23252 char *c = (char *) *sys_errlist
23255 if { (eval echo configure:23256: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23257 ol_cv_dcl_sys_errlist=yes
23258 ol_cv_have_sys_errlist=yes
23260 echo "configure: failed program was:" >&5
23261 cat conftest.$ac_ext >&5
23263 ol_cv_dcl_sys_errlist=no
23268 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
23270 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
23271 if test $ol_cv_dcl_sys_errlist = no ; then
23272 cat >> confdefs.h <<\EOF
23273 #define DECL_SYS_ERRLIST 1
23277 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
23278 echo "configure:23279: checking existence of sys_errlist" >&5
23279 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
23280 echo $ac_n "(cached) $ac_c" 1>&6
23283 cat > conftest.$ac_ext <<EOF
23284 #line 23285 "configure"
23285 #include "confdefs.h"
23288 char *c = (char *) *sys_errlist
23291 if { (eval echo configure:23292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23293 ol_cv_have_sys_errlist=yes
23295 echo "configure: failed program was:" >&5
23296 cat conftest.$ac_ext >&5
23298 ol_cv_have_sys_errlist=no
23303 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
23305 if test $ol_cv_have_sys_errlist = yes ; then
23306 cat >> confdefs.h <<\EOF
23307 #define HAVE_SYS_ERRLIST 1
23314 if test "$ol_enable_slapi" != no ; then
23315 for ac_hdr in ltdl.h
23317 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
23318 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
23319 echo "configure:23320: checking for $ac_hdr" >&5
23320 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
23321 echo $ac_n "(cached) $ac_c" 1>&6
23323 cat > conftest.$ac_ext <<EOF
23324 #line 23325 "configure"
23325 #include "confdefs.h"
23328 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
23329 { (eval echo configure:23330: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
23330 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
23331 if test -z "$ac_err"; then
23333 eval "ac_cv_header_$ac_safe=yes"
23336 echo "configure: failed program was:" >&5
23337 cat conftest.$ac_ext >&5
23339 eval "ac_cv_header_$ac_safe=no"
23343 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
23344 echo "$ac_t""yes" 1>&6
23345 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
23346 cat >> confdefs.h <<EOF
23347 #define $ac_tr_hdr 1
23351 echo "$ac_t""no" 1>&6
23356 if test $ac_cv_header_ltdl_h != yes ; then
23357 { echo "configure: error: could not locate <ltdl.h>" 1>&2; exit 1; }
23359 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
23360 echo "configure:23361: checking for lt_dlinit in -lltdl" >&5
23361 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
23362 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
23363 echo $ac_n "(cached) $ac_c" 1>&6
23365 ac_save_LIBS="$LIBS"
23366 LIBS="-lltdl $LIBS"
23367 cat > conftest.$ac_ext <<EOF
23368 #line 23369 "configure"
23369 #include "confdefs.h"
23370 /* Override any gcc2 internal prototype to avoid an error. */
23371 /* We use char because int might match the return type of a gcc2
23372 builtin and then its argument prototype would still apply. */
23379 if { (eval echo configure:23380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23381 eval "ac_cv_lib_$ac_lib_var=yes"
23383 echo "configure: failed program was:" >&5
23384 cat conftest.$ac_ext >&5
23386 eval "ac_cv_lib_$ac_lib_var=no"
23389 LIBS="$ac_save_LIBS"
23392 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
23393 echo "$ac_t""yes" 1>&6
23396 LIBSLAPI=libslapi.a
23397 LIBSLAPITOOLS=../libslapi.a
23398 cat >> confdefs.h <<\EOF
23399 #define HAVE_LIBLTDL 1
23404 echo "$ac_t""no" 1>&6
23405 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
23409 cat >> confdefs.h <<\EOF
23410 #define LDAP_SLAPI 1
23415 if test "$ol_enable_debug" != no ; then
23416 cat >> confdefs.h <<\EOF
23417 #define LDAP_DEBUG 1
23421 if test "$ol_enable_syslog" = yes ; then
23422 cat >> confdefs.h <<\EOF
23423 #define LDAP_SYSLOG 1
23427 if test "$ol_link_kbind" != no ; then
23428 cat >> confdefs.h <<\EOF
23429 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
23433 if test "$ol_enable_proctitle" != no ; then
23434 cat >> confdefs.h <<\EOF
23435 #define LDAP_PROCTITLE 1
23439 if test "$ol_enable_referrals" != no ; then
23440 cat >> confdefs.h <<\EOF
23441 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
23445 if test "$ol_enable_local" != no; then
23446 cat >> confdefs.h <<\EOF
23447 #define LDAP_PF_LOCAL 1
23451 if test "$ol_link_ipv6" != no; then
23452 cat >> confdefs.h <<\EOF
23453 #define LDAP_PF_INET6 1
23457 if test "$ol_enable_cleartext" != no ; then
23458 cat >> confdefs.h <<\EOF
23459 #define SLAPD_CLEARTEXT 1
23463 if test "$ol_enable_crypt" != no ; then
23464 cat >> confdefs.h <<\EOF
23465 #define SLAPD_CRYPT 1
23469 if test "$ol_link_spasswd" != no ; then
23470 cat >> confdefs.h <<\EOF
23471 #define SLAPD_SPASSWD 1
23475 if test "$ol_enable_multimaster" != no ; then
23476 cat >> confdefs.h <<\EOF
23477 #define SLAPD_MULTIMASTER 1
23481 if test "$ol_enable_rlookups" != no ; then
23482 cat >> confdefs.h <<\EOF
23483 #define SLAPD_RLOOKUPS 1
23487 if test "$ol_enable_aci" != no ; then
23488 cat >> confdefs.h <<\EOF
23489 #define SLAPD_ACI_ENABLED 1
23494 if test "$ol_link_modules" != no ; then
23495 cat >> confdefs.h <<\EOF
23496 #define SLAPD_MODULES 1
23500 SLAPD_MODULES_LDFLAGS="-dlopen self"
23503 cat >> confdefs.h <<\EOF
23504 #define SLAPD_MOD_STATIC 1
23507 cat >> confdefs.h <<\EOF
23508 #define SLAPD_MOD_DYNAMIC 2
23512 if test "$ol_enable_bdb" != no ; then
23513 cat >> confdefs.h <<\EOF
23514 #define SLAPD_BDB 1
23519 if test "$ol_with_bdb_module" != static ; then
23520 cat >> confdefs.h <<\EOF
23521 #define SLAPD_BDB_DYNAMIC 1
23525 BUILD_BDB_DYNAMIC=shared
23526 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
23528 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
23532 if test "$ol_link_dnssrv" != no ; then
23533 cat >> confdefs.h <<\EOF
23534 #define SLAPD_DNSSRV 1
23539 if test "$ol_with_dnssrv_module" != static ; then
23540 cat >> confdefs.h <<\EOF
23541 #define SLAPD_DNSSRV_DYNAMIC 1
23545 BUILD_DNSSRV_DYNAMIC=shared
23546 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
23548 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
23552 if test "$ol_enable_hdb" != no ; then
23553 cat >> confdefs.h <<\EOF
23554 #define SLAPD_HDB 1
23559 if test "$ol_with_hdb_module" != static ; then
23560 cat >> confdefs.h <<\EOF
23561 #define SLAPD_HDB_DYNAMIC 1
23565 BUILD_HDB_DYNAMIC=shared
23566 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
23568 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
23572 if test "$ol_enable_ldap" != no ; then
23573 cat >> confdefs.h <<\EOF
23574 #define SLAPD_LDAP 1
23579 if test "$ol_with_ldap_module" != static ; then
23580 cat >> confdefs.h <<\EOF
23581 #define SLAPD_LDAP_DYNAMIC 1
23585 BUILD_LDAP_DYNAMIC=shared
23586 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
23588 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
23592 if test "$ol_link_ldbm" != no -a $ol_enable_ldbm != no; then
23593 cat >> confdefs.h <<\EOF
23594 #define SLAPD_LDBM 1
23599 if test "$ol_with_ldbm_module" != static ; then
23600 cat >> confdefs.h <<\EOF
23601 #define SLAPD_LDBM_DYNAMIC 1
23605 BUILD_LDBM_DYNAMIC=shared
23606 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
23608 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
23612 if test "$ol_enable_meta" != no ; then
23613 if test "$ol_enable_ldap" = no ; then
23614 { echo "configure: error: need --enable-ldap to use --enable-meta" 1>&2; exit 1; }
23616 if test "$ol_enable_rewrite" = no ; then
23617 { echo "configure: error: need --enable-rewrite to use --enable-meta" 1>&2; exit 1; }
23619 cat >> confdefs.h <<\EOF
23620 #define SLAPD_META 1
23626 if test "$ol_with_meta_module" != static ; then
23627 cat >> confdefs.h <<\EOF
23628 #define SLAPD_META_DYNAMIC 1
23632 BUILD_META_DYNAMIC=shared
23633 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
23635 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
23639 if test "$ol_enable_monitor" != no ; then
23640 cat >> confdefs.h <<\EOF
23641 #define SLAPD_MONITOR 1
23646 if test "$ol_with_monitor_module" != static ; then
23647 cat >> confdefs.h <<\EOF
23648 #define SLAPD_MONITOR_DYNAMIC 1
23652 BUILD_MONITOR_DYNAMIC=shared
23653 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
23655 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
23659 if test "$ol_enable_null" != no ; then
23660 cat >> confdefs.h <<\EOF
23661 #define SLAPD_NULL 1
23666 if test "$ol_with_null_module" != static ; then
23667 cat >> confdefs.h <<\EOF
23668 #define SLAPD_NULL_DYNAMIC 1
23672 BUILD_NULL_DYNAMIC=shared
23673 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
23675 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
23679 if test "$ol_enable_passwd" != no ; then
23680 cat >> confdefs.h <<\EOF
23681 #define SLAPD_PASSWD 1
23686 if test "$ol_with_passwd_module" != static ; then
23687 cat >> confdefs.h <<\EOF
23688 #define SLAPD_PASSWD_DYNAMIC 1
23692 BUILD_PASSWD_DYNAMIC=shared
23693 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
23695 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
23699 if test "$ol_link_perl" != no ; then
23700 cat >> confdefs.h <<\EOF
23701 #define SLAPD_PERL 1
23706 if test "$ol_with_perl_module" != static ; then
23707 cat >> confdefs.h <<\EOF
23708 #define SLAPD_PERL_DYNAMIC 1
23712 BUILD_PERL_DYNAMIC=shared
23713 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
23715 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
23719 if test "$ol_enable_shell" != no ; then
23720 if test "$ol_link_thread" != no ; then
23721 echo "configure: warning: Use of --without-threads is recommended with back-shell" 1>&2
23723 cat >> confdefs.h <<\EOF
23724 #define SLAPD_SHELL 1
23729 if test "$ol_with_shell_module" != static ; then
23730 cat >> confdefs.h <<\EOF
23731 #define SLAPD_SHELL_DYNAMIC 1
23735 BUILD_SHELL_DYNAMIC=shared
23736 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
23738 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
23742 if test "$ol_link_sql" != no ; then
23743 cat >> confdefs.h <<\EOF
23744 #define SLAPD_SQL 1
23749 if test "$ol_with_sql_module" != static; then
23750 cat >> confdefs.h <<\EOF
23751 #define SLAPD_SQL_DYNAMIC 1
23755 BUILD_SQL_DYNAMIC=shared
23756 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
23758 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
23762 if test "$ol_with_dyngroup" != no ; then
23763 BUILD_DYNGROUP=$ol_with_dyngroup
23764 if test "$ol_with_dyngroup" = mod ; then
23765 MFLAG=SLAPD_MOD_DYNAMIC
23766 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
23768 MFLAG=SLAPD_MOD_STATIC
23770 cat >> confdefs.h <<EOF
23771 #define SLAPD_OVER_DYNGROUP $MFLAG
23776 if test "$ol_with_proxycache" != no ; then
23777 BUILD_PROXYCACHE=$ol_with_proxycache
23778 if test "$ol_with_proxycache" = mod ; then
23779 MFLAG=SLAPD_MOD_DYNAMIC
23780 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
23782 MFLAG=SLAPD_MOD_STATIC
23784 cat >> confdefs.h <<EOF
23785 #define SLAPD_OVER_PROXYCACHE $MFLAG
23790 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
23791 $BUILD_SLAPD = yes ; then
23795 if test "$ol_enable_rewrite" != no ; then
23796 cat >> confdefs.h <<\EOF
23797 #define ENABLE_REWRITE 1
23803 if test "$ol_enable_slapi" != no ; then
23804 cat >> confdefs.h <<\EOF
23805 #define ENABLE_SLAPI 1
23809 SLAPD_SLAPI_DEPEND=libslapi.a
23814 if test "$ac_cv_mingw32" = yes ; then
23816 SLAPD_MODULES_LDFLAGS=
23821 if test -z "$SLAPD_STATIC_BACKENDS"; then
23822 SLAPD_NO_STATIC='#'
23899 # Check whether --with-xxinstall or --without-xxinstall was given.
23900 if test "${with_xxinstall+set}" = set; then
23901 withval="$with_xxinstall"
23909 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
23911 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23912 # Let make expand exec_prefix.
23913 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23915 # Any assignment to VPATH causes Sun make to only execute
23916 # the first set of double-colon rules, so remove it if not needed.
23917 # If there is a colon in the path, we need to keep it.
23918 if test "x$srcdir" = x.; then
23919 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
23922 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
23924 DEFS=-DHAVE_CONFIG_H
23926 # Without the "./", some shells look in PATH for config.status.
23927 : ${CONFIG_STATUS=./config.status}
23929 echo creating $CONFIG_STATUS
23930 rm -f $CONFIG_STATUS
23931 cat > $CONFIG_STATUS <<EOF
23933 # Generated automatically by configure.
23934 # Run this file to recreate the current configuration.
23935 # This directory was configured as follows,
23936 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23938 # $0 $ac_configure_args
23940 # Compiler output produced by configure, useful for debugging
23941 # configure, is in ./config.log if it exists.
23943 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
23946 case "\$ac_option" in
23947 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23948 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
23949 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
23950 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
23951 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
23953 -help | --help | --hel | --he | --h)
23954 echo "\$ac_cs_usage"; exit 0 ;;
23955 *) echo "\$ac_cs_usage"; exit 1 ;;
23959 ac_given_srcdir=$srcdir
23960 ac_given_INSTALL="$INSTALL"
23962 trap 'rm -fr `echo "\
23963 Makefile:build/top.mk:Makefile.in:build/dir.mk \
23964 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
23965 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
23966 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
23967 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
23968 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
23969 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
23970 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
23971 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
23972 include/Makefile:build/top.mk:include/Makefile.in \
23973 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
23974 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
23975 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
23976 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
23977 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
23978 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
23979 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
23980 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
23981 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
23982 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
23983 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
23984 servers/slapd/back-hdb/Makefile:build/top.mk:servers/slapd/back-hdb/Makefile.in:build/mod.mk \
23985 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
23986 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
23987 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
23988 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
23989 servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk \
23990 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
23991 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
23992 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
23993 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
23994 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
23995 servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk \
23996 servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk \
23997 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
23998 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
24000 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
24001 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
24003 cat >> $CONFIG_STATUS <<EOF
24005 # Protect against being on the right side of a sed subst in config.status.
24006 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
24007 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
24011 s%@CFLAGS@%$CFLAGS%g
24012 s%@CPPFLAGS@%$CPPFLAGS%g
24013 s%@CXXFLAGS@%$CXXFLAGS%g
24014 s%@FFLAGS@%$FFLAGS%g
24016 s%@LDFLAGS@%$LDFLAGS%g
24018 s%@exec_prefix@%$exec_prefix%g
24019 s%@prefix@%$prefix%g
24020 s%@program_transform_name@%$program_transform_name%g
24021 s%@bindir@%$bindir%g
24022 s%@sbindir@%$sbindir%g
24023 s%@libexecdir@%$libexecdir%g
24024 s%@datadir@%$datadir%g
24025 s%@sysconfdir@%$sysconfdir%g
24026 s%@sharedstatedir@%$sharedstatedir%g
24027 s%@localstatedir@%$localstatedir%g
24028 s%@libdir@%$libdir%g
24029 s%@includedir@%$includedir%g
24030 s%@oldincludedir@%$oldincludedir%g
24031 s%@infodir@%$infodir%g
24032 s%@mandir@%$mandir%g
24034 s%@host_alias@%$host_alias%g
24035 s%@host_cpu@%$host_cpu%g
24036 s%@host_vendor@%$host_vendor%g
24037 s%@host_os@%$host_os%g
24038 s%@target@%$target%g
24039 s%@target_alias@%$target_alias%g
24040 s%@target_cpu@%$target_cpu%g
24041 s%@target_vendor@%$target_vendor%g
24042 s%@target_os@%$target_os%g
24044 s%@build_alias@%$build_alias%g
24045 s%@build_cpu@%$build_cpu%g
24046 s%@build_vendor@%$build_vendor%g
24047 s%@build_os@%$build_os%g
24048 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
24049 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
24050 s%@INSTALL_DATA@%$INSTALL_DATA%g
24051 s%@PACKAGE@%$PACKAGE%g
24052 s%@VERSION@%$VERSION%g
24053 s%@ACLOCAL@%$ACLOCAL%g
24054 s%@AUTOCONF@%$AUTOCONF%g
24055 s%@AUTOMAKE@%$AUTOMAKE%g
24056 s%@AUTOHEADER@%$AUTOHEADER%g
24057 s%@MAKEINFO@%$MAKEINFO%g
24058 s%@install_sh@%$install_sh%g
24061 s%@AMTARFLAGS@%$AMTARFLAGS%g
24062 s%@SET_MAKE@%$SET_MAKE%g
24063 s%@OPENLDAP_LIBVERSION@%$OPENLDAP_LIBVERSION%g
24064 s%@OPENLDAP_RELEASE_DATE@%$OPENLDAP_RELEASE_DATE%g
24065 s%@top_builddir@%$top_builddir%g
24066 s%@ldap_subdir@%$ldap_subdir%g
24070 s%@OBJEXT@%$OBJEXT%g
24071 s%@EXEEXT@%$EXEEXT%g
24073 s%@RANLIB@%$RANLIB%g
24075 s%@DLLTOOL@%$DLLTOOL%g
24077 s%@OBJDUMP@%$OBJDUMP%g
24079 s%@LIBTOOL@%$LIBTOOL%g
24081 s%@PERLBIN@%$PERLBIN%g
24082 s%@OL_MKDEP@%$OL_MKDEP%g
24083 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
24084 s%@LTSTATIC@%$LTSTATIC%g
24085 s%@LIBOBJS@%$LIBOBJS%g
24086 s%@LIBSRCS@%$LIBSRCS%g
24088 s%@WITH_TLS@%$WITH_TLS%g
24089 s%@BUILD_LIBS_DYNAMIC@%$BUILD_LIBS_DYNAMIC%g
24090 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
24091 s%@BUILD_SLAPI@%$BUILD_SLAPI%g
24092 s%@SLAPD_SLAPI_DEPEND@%$SLAPD_SLAPI_DEPEND%g
24093 s%@BUILD_BDB@%$BUILD_BDB%g
24094 s%@BUILD_DNSSRV@%$BUILD_DNSSRV%g
24095 s%@BUILD_HDB@%$BUILD_HDB%g
24096 s%@BUILD_LDAP@%$BUILD_LDAP%g
24097 s%@BUILD_LDBM@%$BUILD_LDBM%g
24098 s%@BUILD_META@%$BUILD_META%g
24099 s%@BUILD_MONITOR@%$BUILD_MONITOR%g
24100 s%@BUILD_NULL@%$BUILD_NULL%g
24101 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
24102 s%@BUILD_PERL@%$BUILD_PERL%g
24103 s%@BUILD_SHELL@%$BUILD_SHELL%g
24104 s%@BUILD_SQL@%$BUILD_SQL%g
24105 s%@BUILD_BDB_DYNAMIC@%$BUILD_BDB_DYNAMIC%g
24106 s%@BUILD_DNSSRV_DYNAMIC@%$BUILD_DNSSRV_DYNAMIC%g
24107 s%@BUILD_HDB_DYNAMIC@%$BUILD_HDB_DYNAMIC%g
24108 s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
24109 s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
24110 s%@BUILD_META_DYNAMIC@%$BUILD_META_DYNAMIC%g
24111 s%@BUILD_MONITOR_DYNAMIC@%$BUILD_MONITOR_DYNAMIC%g
24112 s%@BUILD_NULL_DYNAMIC@%$BUILD_NULL_DYNAMIC%g
24113 s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
24114 s%@BUILD_PERL_DYNAMIC@%$BUILD_PERL_DYNAMIC%g
24115 s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
24116 s%@BUILD_SQL_DYNAMIC@%$BUILD_SQL_DYNAMIC%g
24117 s%@BUILD_DYNGROUP@%$BUILD_DYNGROUP%g
24118 s%@BUILD_PROXYCACHE@%$BUILD_PROXYCACHE%g
24119 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
24120 s%@LDAP_LIBS@%$LDAP_LIBS%g
24121 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
24122 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
24123 s%@LDBM_LIBS@%$LDBM_LIBS%g
24124 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
24125 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
24126 s%@WRAP_LIBS@%$WRAP_LIBS%g
24127 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
24128 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
24129 s%@SLAPD_NO_STATIC@%$SLAPD_NO_STATIC%g
24130 s%@SLAPD_STATIC_BACKENDS@%$SLAPD_STATIC_BACKENDS%g
24131 s%@SLAPD_DYNAMIC_BACKENDS@%$SLAPD_DYNAMIC_BACKENDS%g
24132 s%@SLAPD_DYNAMIC_OVERLAYS@%$SLAPD_DYNAMIC_OVERLAYS%g
24133 s%@PERL_CPPFLAGS@%$PERL_CPPFLAGS%g
24134 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
24135 s%@MOD_PERL_LDFLAGS@%$MOD_PERL_LDFLAGS%g
24136 s%@KRB4_LIBS@%$KRB4_LIBS%g
24137 s%@KRB5_LIBS@%$KRB5_LIBS%g
24138 s%@SASL_LIBS@%$SASL_LIBS%g
24139 s%@TLS_LIBS@%$TLS_LIBS%g
24140 s%@MODULES_LIBS@%$MODULES_LIBS%g
24141 s%@SLAPI_LIBS@%$SLAPI_LIBS%g
24142 s%@LIBSLAPI@%$LIBSLAPI%g
24143 s%@LIBSLAPITOOLS@%$LIBSLAPITOOLS%g
24144 s%@AUTH_LIBS@%$AUTH_LIBS%g
24145 s%@SLAPD_SLP_LIBS@%$SLAPD_SLP_LIBS%g
24146 s%@SLAPD_SQL_LDFLAGS@%$SLAPD_SQL_LDFLAGS%g
24147 s%@SLAPD_SQL_LIBS@%$SLAPD_SQL_LIBS%g
24148 s%@SLAPD_SQL_INCLUDES@%$SLAPD_SQL_INCLUDES%g
24153 cat >> $CONFIG_STATUS <<\EOF
24155 # Split the substitutions into bite-sized pieces for seds with
24156 # small command number limits, like on Digital OSF/1 and HP-UX.
24157 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
24158 ac_file=1 # Number of current file.
24159 ac_beg=1 # First line for current file.
24160 ac_end=$ac_max_sed_cmds # Line after last line for current file.
24163 while $ac_more_lines; do
24164 if test $ac_beg -gt 1; then
24165 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
24167 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
24169 if test ! -s conftest.s$ac_file; then
24170 ac_more_lines=false
24171 rm -f conftest.s$ac_file
24173 if test -z "$ac_sed_cmds"; then
24174 ac_sed_cmds="sed -f conftest.s$ac_file"
24176 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
24178 ac_file=`expr $ac_file + 1`
24180 ac_end=`expr $ac_end + $ac_max_sed_cmds`
24183 if test -z "$ac_sed_cmds"; then
24188 cat >> $CONFIG_STATUS <<EOF
24190 CONFIG_FILES=\${CONFIG_FILES-"\
24191 Makefile:build/top.mk:Makefile.in:build/dir.mk \
24192 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
24193 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
24194 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
24195 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
24196 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
24197 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
24198 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
24199 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
24200 include/Makefile:build/top.mk:include/Makefile.in \
24201 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
24202 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
24203 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
24204 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
24205 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
24206 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
24207 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
24208 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
24209 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
24210 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
24211 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
24212 servers/slapd/back-hdb/Makefile:build/top.mk:servers/slapd/back-hdb/Makefile.in:build/mod.mk \
24213 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
24214 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
24215 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
24216 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
24217 servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk \
24218 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
24219 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
24220 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
24221 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
24222 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
24223 servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk \
24224 servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk \
24225 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
24226 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
24228 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
24231 cat >> $CONFIG_STATUS <<\EOF
24232 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
24233 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24235 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
24236 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24237 *) ac_file_in="${ac_file}.in" ;;
24240 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
24242 # Remove last slash and all that follows it. Not all systems have dirname.
24243 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
24244 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24245 # The file is in a subdirectory.
24246 test ! -d "$ac_dir" && mkdir "$ac_dir"
24247 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
24248 # A "../" for each directory in $ac_dir_suffix.
24249 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
24251 ac_dir_suffix= ac_dots=
24254 case "$ac_given_srcdir" in
24256 if test -z "$ac_dots"; then top_srcdir=.
24257 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
24258 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
24259 *) # Relative path.
24260 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
24261 top_srcdir="$ac_dots$ac_given_srcdir" ;;
24264 case "$ac_given_INSTALL" in
24265 [/$]*) INSTALL="$ac_given_INSTALL" ;;
24266 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
24269 echo creating "$ac_file"
24271 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
24273 *[Mm]akefile*) ac_comsub="1i\\
24274 # $configure_input" ;;
24278 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
24280 s%@configure_input@%$configure_input%g
24281 s%@srcdir@%$srcdir%g
24282 s%@top_srcdir@%$top_srcdir%g
24283 s%@INSTALL@%$INSTALL%g
24284 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
24288 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24289 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24291 # ac_d sets the value in "#define NAME VALUE" lines.
24292 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24293 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
24296 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
24297 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24298 ac_uB='\([ ]\)%\1#\2define\3'
24301 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24302 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24303 ac_eB='$%\1#\2define\3'
24307 if test "${CONFIG_HEADERS+set}" != set; then
24309 cat >> $CONFIG_STATUS <<EOF
24310 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
24312 cat >> $CONFIG_STATUS <<\EOF
24314 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
24315 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24317 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
24318 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24319 *) ac_file_in="${ac_file}.in" ;;
24322 echo creating $ac_file
24324 rm -f conftest.frag conftest.in conftest.out
24325 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
24326 cat $ac_file_inputs > conftest.in
24330 # Transform confdefs.h into a sed script conftest.vals that substitutes
24331 # the proper values into config.h.in to produce config.h. And first:
24332 # Protect against being on the right side of a sed subst in config.status.
24333 # Protect against being in an unquoted here document in config.status.
24334 rm -f conftest.vals
24335 cat > conftest.hdr <<\EOF
24338 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
24342 sed -n -f conftest.hdr confdefs.h > conftest.vals
24345 # This sed command replaces #undef with comments. This is necessary, for
24346 # example, in the case of _POSIX_SOURCE, which is predefined and required
24347 # on some systems where configure will not decide to define it.
24348 cat >> conftest.vals <<\EOF
24349 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
24352 # Break up conftest.vals because some shells have a limit on
24353 # the size of here documents, and old seds have small limits too.
24355 rm -f conftest.tail
24358 ac_lines=`grep -c . conftest.vals`
24359 # grep -c gives empty output for an empty file on some AIX systems.
24360 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
24361 # Write a limited-size here document to conftest.frag.
24362 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
24363 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
24365 sed -f conftest.frag conftest.in > conftest.out
24367 mv conftest.out conftest.in
24368 ' >> $CONFIG_STATUS
24369 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
24370 rm -f conftest.vals
24371 mv conftest.tail conftest.vals
24373 rm -f conftest.vals
24375 cat >> $CONFIG_STATUS <<\EOF
24376 rm -f conftest.frag conftest.h
24377 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
24378 cat conftest.in >> conftest.h
24380 if cmp -s $ac_file conftest.h 2>/dev/null; then
24381 echo "$ac_file is unchanged"
24384 # Remove last slash and all that follows it. Not all systems have dirname.
24385 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
24386 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24387 # The file is in a subdirectory.
24388 test ! -d "$ac_dir" && mkdir "$ac_dir"
24391 mv conftest.h $ac_file
24396 cat >> $CONFIG_STATUS <<EOF
24399 cat >> $CONFIG_STATUS <<\EOF
24403 echo Please run \"make depend\" to build dependencies
24407 chmod +x $CONFIG_STATUS
24408 rm -fr confdefs* $ac_clean_files
24409 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1