3 # from OpenLDAP: pkg/ldap/configure.in,v 1.533 2004/04/17 06:45:29 hyc 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 --with-cyrus-sasl with Cyrus SASL support [auto]"
50 --with-fetch with fetch(3) URL support [auto]"
52 --with-threads with threads [auto]"
54 --with-tls with TLS/SSL support [auto]"
56 --with-yielding-select with implicitly yielding select [auto]"
59 SLAPD (Standalone LDAP Daemon) Options:"
61 --enable-slapd enable building slapd [yes]"
63 --enable-aci enable per-object ACIs (experimental) [no]"
65 --enable-cleartext enable cleartext passwords [yes]"
67 --enable-crypt enable crypt(3) passwords [no]"
69 --enable-lmpasswd enable LAN Manager passwords [no]"
71 --enable-spasswd enable (Cyrus) SASL password verification [no]"
73 --enable-modules enable dynamic module support [no]"
75 --enable-rewrite enable DN rewriting in back-ldap and the rwm overlay [auto]"
77 --enable-rlookups enable reverse lookups of client hostnames [no]"
79 --enable-slapi enable SLAPI support (experimental) [no]"
81 --enable-slp enable SLPv2 support [no]"
83 --enable-wrappers enable tcp wrapper support [no]"
86 SLAPD Backend Options:"
88 --enable-backends enable all available backends no|yes|mod [no]"
90 --enable-bdb enable Berkeley DB backend no|yes|mod [yes]"
92 --enable-dnssrv enable dnssrv backend no|yes|mod [no]"
94 --enable-hdb enable Hierarchical DB backend no|yes|mod [no]"
96 --enable-ldap enable ldap backend no|yes|mod [no]"
98 --enable-ldbm enable ldbm backend no|yes|mod [no]"
100 --with-ldbm-api with LDBM API auto|berkeley|bcompat|mdbm|gdbm [auto]"
102 --with-ldbm-type use LDBM type auto|btree|hash [auto]"
104 --enable-meta enable metadirectory backend no|yes|mod [no]"
106 --enable-monitor enable monitor backend no|yes|mod [yes]"
108 --enable-null enable null backend no|yes|mod [no]"
110 --enable-passwd enable passwd backend no|yes|mod [no]"
112 --enable-perl enable perl backend no|yes|mod [no]"
114 --enable-relay enable relay backend no|yes|mod [yes]"
116 --enable-shell enable shell backend no|yes|mod [no]"
118 --enable-sql enable sql backend no|yes|mod [no]"
121 SLAPD Overlay Options:"
123 --enable-overlays enable all available overlays no|yes|mod [no]"
125 --enable-chain LDAP Chain Response no|yes|mod [no]"
127 --enable-denyop Deny Operation overlay no|yes|mod [no]"
129 --enable-dyngroup Dynamic Group overlay no|yes|mod [no]"
131 --enable-lastmod Last Modification overlay no|yes|mod [no]"
133 --enable-ppolicy Password Policy overlay no|yes|mod [no]"
135 --enable-proxycache Proxy Cache overlay no|yes|mod [no]"
137 --enable-shared[=PKGS] build shared libraries [default=yes]"
139 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
141 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
143 # Find the correct PATH separator. Usually this is `:', but
144 # DJGPP uses `;' like DOS.
145 if test "X${PATH_SEPARATOR+set}" != Xset; then
146 UNAME=${UNAME-`uname 2>/dev/null`}
148 *-DOS) lt_cv_sys_path_separator=';' ;;
149 *) lt_cv_sys_path_separator=':' ;;
151 PATH_SEPARATOR=$lt_cv_sys_path_separator
155 # Check that we are running under the correct shell.
156 SHELL=${CONFIG_SHELL-/bin/sh}
160 # Remove one level of quotation (which was required for Make).
161 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
166 if test "X$1" = X--no-reexec; then
167 # Discard the --no-reexec flag, and continue.
169 elif test "X$1" = X--fallback-echo; then
170 # Avoid inline document here, it may be left over
172 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
173 # Yippee, $echo works!
176 # Restart under the correct shell.
177 exec $SHELL "$0" --no-reexec ${1+"$@"}
180 if test "X$1" = X--fallback-echo; then
181 # used as fallback echo
189 # The HP-UX ksh and POSIX shell print the target directory to stdout
191 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
193 if test -z "$ECHO"; then
194 if test "X${echo_test_string+set}" != Xset; then
195 # find a string as large as possible, as long as the shell can cope with it
196 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
197 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
198 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
199 echo_test_string="`eval $cmd`" &&
200 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
207 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
208 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
209 test "X$echo_testing_string" = "X$echo_test_string"; then
212 # The Solaris, AIX, and Digital Unix default echo programs unquote
213 # backslashes. This makes it impossible to quote backslashes using
214 # echo "$something" | sed 's/\\/\\\\/g'
216 # So, first we look for a working echo in the user's PATH.
218 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
219 for dir in $PATH /usr/ucb; do
220 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
221 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
222 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
223 test "X$echo_testing_string" = "X$echo_test_string"; then
230 if test "X$echo" = Xecho; then
231 # We didn't find a better echo, so look for alternatives.
232 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
233 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
234 test "X$echo_testing_string" = "X$echo_test_string"; then
235 # This shell has a builtin print -r that does the trick.
237 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
238 test "X$CONFIG_SHELL" != X/bin/ksh; then
239 # If we have ksh, try running configure again with it.
240 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
241 export ORIGINAL_CONFIG_SHELL
242 CONFIG_SHELL=/bin/ksh
244 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
248 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
249 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
250 test "X$echo_testing_string" = "X$echo_test_string"; then
253 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
254 test "X$echo_testing_string" = 'X\t' &&
255 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
256 test "X$echo_testing_string" = "X$echo_test_string"; then
257 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
259 SHELL="$CONFIG_SHELL"
261 echo="$CONFIG_SHELL $0 --fallback-echo"
262 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
263 test "X$echo_testing_string" = 'X\t' &&
264 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
265 test "X$echo_testing_string" = "X$echo_test_string"; then
266 echo="$CONFIG_SHELL $0 --fallback-echo"
268 # maybe with a smaller string...
271 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
272 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
279 if test "$prev" != 'sed 50q "$0"'; then
280 echo_test_string=`eval $prev`
281 export echo_test_string
282 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
284 # Oops. We lost completely, so just stick with echo.
293 # Copy echo and quote the copy suitably for passing to libtool from
294 # the Makefile, instead of quoting the original, which is used later.
296 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
297 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
302 --disable-libtool-lock avoid locking (might break parallel builds)"
304 --with-pic try to use only PIC/non-PIC objects [default=use both]"
307 See INSTALL file for further details."
309 # Initialize some variables set by options.
310 # The variables have the same names as the options, with
311 # dashes changed to underlines.
313 cache_file=./config.cache
322 program_transform_name=s,x,x,
330 bindir='${exec_prefix}/bin'
331 sbindir='${exec_prefix}/sbin'
332 libexecdir='${exec_prefix}/libexec'
333 datadir='${prefix}/share'
334 sysconfdir='${prefix}/etc'
335 sharedstatedir='${prefix}/com'
336 localstatedir='${prefix}/var'
337 libdir='${exec_prefix}/lib'
338 includedir='${prefix}/include'
339 oldincludedir='/usr/include'
340 infodir='${prefix}/info'
341 mandir='${prefix}/man'
343 # Initialize some other variables.
346 SHELL=${CONFIG_SHELL-/bin/sh}
347 # Maximum number of lines to put in a shell here document.
354 # If the previous option needs an argument, assign it.
355 if test -n "$ac_prev"; then
356 eval "$ac_prev=\$ac_option"
362 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
366 # Accept the important Cygnus configure options, so we can diagnose typos.
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 bindir="$ac_optarg" ;;
375 -build | --build | --buil | --bui | --bu)
377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378 build="$ac_optarg" ;;
380 -cache-file | --cache-file | --cache-fil | --cache-fi \
381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382 ac_prev=cache_file ;;
383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385 cache_file="$ac_optarg" ;;
387 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391 datadir="$ac_optarg" ;;
393 -disable-* | --disable-*)
394 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
395 # Reject names that are not valid shell variable names.
396 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
397 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
399 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
400 eval "enable_${ac_feature}=no" ;;
402 -enable-* | --enable-*)
403 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
404 # Reject names that are not valid shell variable names.
405 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
406 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
408 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
413 eval "enable_${ac_feature}='$ac_optarg'" ;;
415 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
416 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
417 | --exec | --exe | --ex)
418 ac_prev=exec_prefix ;;
419 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
420 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
421 | --exec=* | --exe=* | --ex=*)
422 exec_prefix="$ac_optarg" ;;
424 -gas | --gas | --ga | --g)
425 # Obsolete; use --with-gas.
428 -help | --help | --hel | --he)
429 # Omit some internal or obsolete options to make the list less imposing.
430 # This message is too long to be a string in the A/UX 3.1 sh.
432 Usage: configure [options] [host]
433 Options: [defaults in brackets after descriptions]
435 --cache-file=FILE cache test results in FILE
436 --help print this message
437 --no-create do not create output files
438 --quiet, --silent do not print \`checking...' messages
439 --version print the version of autoconf that created configure
440 Directory and file names:
441 --prefix=PREFIX install architecture-independent files in PREFIX
443 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
445 --bindir=DIR user executables in DIR [EPREFIX/bin]
446 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
447 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
448 --datadir=DIR read-only architecture-independent data in DIR
450 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
451 --sharedstatedir=DIR modifiable architecture-independent data in DIR
453 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
454 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
455 --includedir=DIR C header files in DIR [PREFIX/include]
456 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
457 --infodir=DIR info documentation in DIR [PREFIX/info]
458 --mandir=DIR man documentation in DIR [PREFIX/man]
459 --srcdir=DIR find the sources in DIR [configure dir or ..]
460 --program-prefix=PREFIX prepend PREFIX to installed program names
461 --program-suffix=SUFFIX append SUFFIX to installed program names
462 --program-transform-name=PROGRAM
463 run sed PROGRAM on installed program names
467 --build=BUILD configure for building on BUILD [BUILD=HOST]
468 --host=HOST configure for HOST [guessed]
469 --target=TARGET configure for TARGET [TARGET=HOST]
470 Features and packages:
471 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
472 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
473 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
474 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
475 --x-includes=DIR X include files are in DIR
476 --x-libraries=DIR X library files are in DIR
478 if test -n "$ac_help"; then
479 echo "--enable and --with options recognized:$ac_help"
483 -host | --host | --hos | --ho)
485 -host=* | --host=* | --hos=* | --ho=*)
488 -includedir | --includedir | --includedi | --included | --include \
489 | --includ | --inclu | --incl | --inc)
490 ac_prev=includedir ;;
491 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
492 | --includ=* | --inclu=* | --incl=* | --inc=*)
493 includedir="$ac_optarg" ;;
495 -infodir | --infodir | --infodi | --infod | --info | --inf)
497 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
498 infodir="$ac_optarg" ;;
500 -libdir | --libdir | --libdi | --libd)
502 -libdir=* | --libdir=* | --libdi=* | --libd=*)
503 libdir="$ac_optarg" ;;
505 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
506 | --libexe | --libex | --libe)
507 ac_prev=libexecdir ;;
508 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
509 | --libexe=* | --libex=* | --libe=*)
510 libexecdir="$ac_optarg" ;;
512 -localstatedir | --localstatedir | --localstatedi | --localstated \
513 | --localstate | --localstat | --localsta | --localst \
514 | --locals | --local | --loca | --loc | --lo)
515 ac_prev=localstatedir ;;
516 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
517 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
518 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
519 localstatedir="$ac_optarg" ;;
521 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
523 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
524 mandir="$ac_optarg" ;;
527 # Obsolete; use --without-fp.
530 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
534 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
535 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
538 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
539 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
540 | --oldin | --oldi | --old | --ol | --o)
541 ac_prev=oldincludedir ;;
542 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
543 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
544 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
545 oldincludedir="$ac_optarg" ;;
547 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
549 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
550 prefix="$ac_optarg" ;;
552 -program-prefix | --program-prefix | --program-prefi | --program-pref \
553 | --program-pre | --program-pr | --program-p)
554 ac_prev=program_prefix ;;
555 -program-prefix=* | --program-prefix=* | --program-prefi=* \
556 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
557 program_prefix="$ac_optarg" ;;
559 -program-suffix | --program-suffix | --program-suffi | --program-suff \
560 | --program-suf | --program-su | --program-s)
561 ac_prev=program_suffix ;;
562 -program-suffix=* | --program-suffix=* | --program-suffi=* \
563 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
564 program_suffix="$ac_optarg" ;;
566 -program-transform-name | --program-transform-name \
567 | --program-transform-nam | --program-transform-na \
568 | --program-transform-n | --program-transform- \
569 | --program-transform | --program-transfor \
570 | --program-transfo | --program-transf \
571 | --program-trans | --program-tran \
572 | --progr-tra | --program-tr | --program-t)
573 ac_prev=program_transform_name ;;
574 -program-transform-name=* | --program-transform-name=* \
575 | --program-transform-nam=* | --program-transform-na=* \
576 | --program-transform-n=* | --program-transform-=* \
577 | --program-transform=* | --program-transfor=* \
578 | --program-transfo=* | --program-transf=* \
579 | --program-trans=* | --program-tran=* \
580 | --progr-tra=* | --program-tr=* | --program-t=*)
581 program_transform_name="$ac_optarg" ;;
583 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
584 | -silent | --silent | --silen | --sile | --sil)
587 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
589 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
591 sbindir="$ac_optarg" ;;
593 -sharedstatedir | --sharedstatedir | --sharedstatedi \
594 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
595 | --sharedst | --shareds | --shared | --share | --shar \
597 ac_prev=sharedstatedir ;;
598 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
599 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
600 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
602 sharedstatedir="$ac_optarg" ;;
604 -site | --site | --sit)
606 -site=* | --site=* | --sit=*)
609 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
611 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
612 srcdir="$ac_optarg" ;;
614 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
615 | --syscon | --sysco | --sysc | --sys | --sy)
616 ac_prev=sysconfdir ;;
617 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
618 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
619 sysconfdir="$ac_optarg" ;;
621 -target | --target | --targe | --targ | --tar | --ta | --t)
623 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
624 target="$ac_optarg" ;;
626 -v | -verbose | --verbose | --verbos | --verbo | --verb)
629 -version | --version | --versio | --versi | --vers)
630 echo "configure generated by autoconf version 2.13.1"
634 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
635 # Reject names that are not valid shell variable names.
636 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
637 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
639 ac_package=`echo $ac_package| sed 's/-/_/g'`
644 eval "with_${ac_package}='$ac_optarg'" ;;
646 -without-* | --without-*)
647 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
648 # Reject names that are not valid shell variable names.
649 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
650 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
652 ac_package=`echo $ac_package| sed 's/-/_/g'`
653 eval "with_${ac_package}=no" ;;
656 # Obsolete; use --with-x.
659 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
660 | --x-incl | --x-inc | --x-in | --x-i)
661 ac_prev=x_includes ;;
662 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
663 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
664 x_includes="$ac_optarg" ;;
666 -x-libraries | --x-libraries | --x-librarie | --x-librari \
667 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
668 ac_prev=x_libraries ;;
669 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
670 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
671 x_libraries="$ac_optarg" ;;
673 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
677 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
678 echo "configure: warning: $ac_option: invalid host type" 1>&2
680 if test "x$nonopt" != xNONE; then
681 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
689 if test -n "$ac_prev"; then
690 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
693 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
695 # File descriptor usage:
698 # 2 errors and warnings
699 # 3 some systems may open it to /dev/tty
700 # 4 used on the Kubota Titan
701 # 6 checking for... messages and results
702 # 5 compiler messages saved in config.log
703 if test "$silent" = yes; then
711 This file contains any messages produced by compilers while
712 running configure, to aid debugging if configure makes a mistake.
715 # Strip out --no-create and --no-recursion so they do not pile up.
716 # Also quote any args containing shell metacharacters.
721 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
722 | --no-cr | --no-c) ;;
723 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
724 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
725 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
726 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
727 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
732 # Only set these to C if already set. These must not be set unconditionally
733 # because not all systems understand e.g. LANG=C (notably SCO).
734 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
735 # Non-C LC_CTYPE values break the ctype check.
736 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
737 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
738 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
739 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
741 # confdefs.h avoids OS command line length limits that DEFS can exceed.
742 rm -rf conftest* confdefs.h
743 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
746 # A filename unique to this package, relative to the directory that
747 # configure is in, which we can look for to find out if srcdir is correct.
748 ac_unique_file=build/version.sh
750 # Find the source files, if location was not specified.
751 if test -z "$srcdir"; then
752 ac_srcdir_defaulted=yes
753 # Try the directory containing this script, then its parent.
755 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
756 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
758 if test ! -r $srcdir/$ac_unique_file; then
762 ac_srcdir_defaulted=no
764 if test ! -r $srcdir/$ac_unique_file; then
765 if test "$ac_srcdir_defaulted" = yes; then
766 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
768 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
771 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
773 # Prefer explicitly selected file to automatically selected ones.
774 if test -z "$CONFIG_SITE"; then
775 if test "x$prefix" != xNONE; then
776 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
778 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
781 for ac_site_file in $CONFIG_SITE; do
782 if test -r "$ac_site_file"; then
783 echo "loading site script $ac_site_file"
790 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
791 ac_cpp='$CPP $CPPFLAGS'
792 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
793 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
794 cross_compiling=$ac_cv_prog_cc_cross
798 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
799 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
800 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
807 ac_n= ac_c='\c' ac_t=
811 # set unset (borrowed from autoconf 2.49c)
812 if (OL_FOO=OL_FOO; unset OL_FOO) >/dev/null 2>&1; then
818 $ol_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
821 for ac_dir in build $srcdir/build; do
822 if test -f $ac_dir/install-sh; then
824 ac_install_sh="$ac_aux_dir/install-sh -c"
826 elif test -f $ac_dir/install.sh; then
828 ac_install_sh="$ac_aux_dir/install.sh -c"
830 elif test -f $ac_dir/shtool; then
832 ac_install_sh="$ac_aux_dir/shtool install -c"
836 if test -z "$ac_aux_dir"; then
837 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
839 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
840 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
841 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
843 eval `$ac_aux_dir/version.sh`
844 if test -z "$OL_STRING"; then
845 { echo "configure: error: could not determine version" 1>&2; exit 1; }
848 if test -f "$ac_aux_dir/shtool" -a ! -d $ac_aux_dir/shtool; then
849 ac_cv_shtool="$ac_aux_dir/shtool"
851 { echo "configure: error: no shtool found in $ac_aux_dir" 1>&2; exit 1; }
854 SHTOOL="$ac_cv_shtool"
856 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
857 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
860 if test -d $ac_aux_dir/CVS; then
861 OPENLDAP_CVS="(from CVS sources) "
864 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
867 echo $ac_n "checking host system type""... $ac_c" 1>&6
868 echo "configure:869: checking host system type" >&5
869 if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
871 # Make sure we can run config.sub.
872 if $ac_config_sub sun4 >/dev/null 2>&1; then :
873 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
876 ac_cv_host_alias=$host
877 case "$ac_cv_host_alias" in
881 if ac_cv_host_alias=`$ac_config_guess`; then :
882 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
884 *) ac_cv_host_alias=$nonopt ;;
888 ac_cv_host=`$ac_config_sub $ac_cv_host_alias`
889 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
890 ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
891 ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
893 echo $ac_n "(cached) $ac_c" 1>&6
896 echo "$ac_t""$ac_cv_host" 1>&6
899 host_alias=$ac_cv_host_alias
900 host_cpu=$ac_cv_host_cpu
901 host_vendor=$ac_cv_host_vendor
902 host_os=$ac_cv_host_os
908 echo $ac_n "checking target system type""... $ac_c" 1>&6
909 echo "configure:910: checking target system type" >&5
910 if test "x$ac_cv_target" = "x" || (test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
912 # Make sure we can run config.sub.
913 if $ac_config_sub sun4 >/dev/null 2>&1; then :
914 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
917 ac_cv_target_alias=$target
918 case "$ac_cv_target_alias" in
922 ac_cv_target_alias=$host_alias ;;
924 *) ac_cv_target_alias=$nonopt ;;
928 ac_cv_target=`$ac_config_sub $ac_cv_target_alias`
929 ac_cv_target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
930 ac_cv_target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
931 ac_cv_target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
933 echo $ac_n "(cached) $ac_c" 1>&6
936 echo "$ac_t""$ac_cv_target" 1>&6
939 target_alias=$ac_cv_target_alias
940 target_cpu=$ac_cv_target_cpu
941 target_vendor=$ac_cv_target_vendor
942 target_os=$ac_cv_target_os
948 echo $ac_n "checking build system type""... $ac_c" 1>&6
949 echo "configure:950: checking build system type" >&5
950 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
952 # Make sure we can run config.sub.
953 if $ac_config_sub sun4 >/dev/null 2>&1; then :
954 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
957 ac_cv_build_alias=$build
958 case "$ac_cv_build_alias" in
962 ac_cv_build_alias=$host_alias ;;
964 *) ac_cv_build_alias=$nonopt ;;
968 ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
969 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
970 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
971 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
973 echo $ac_n "(cached) $ac_c" 1>&6
976 echo "$ac_t""$ac_cv_build" 1>&6
979 build_alias=$ac_cv_build_alias
980 build_cpu=$ac_cv_build_cpu
981 build_vendor=$ac_cv_build_vendor
982 build_os=$ac_cv_build_os
988 # Do some error checking and defaulting for the host and target type.
990 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
993 # 1. You are not allowed to specify --host, --target, and nonopt at the
995 # 2. Host defaults to nonopt.
996 # 3. If nonopt is not specified, then host defaults to the current host,
997 # as determined by config.guess.
998 # 4. Target and build default to nonopt.
999 # 5. If nonopt is not specified, then target and build default to host.
1001 # The aliases save the names the user supplied, while $host etc.
1002 # will get canonicalized.
1003 case $host---$target---$nonopt in
1004 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1005 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1008 test "$host_alias" != "$target_alias" &&
1009 test "$program_prefix$program_suffix$program_transform_name" = \
1011 program_prefix=${target_alias}-
1014 # Find a good install program. We prefer a C program (faster),
1015 # so one script is as good as another. But avoid the broken or
1016 # incompatible versions:
1017 # SysV /etc/install, /usr/sbin/install
1018 # SunOS /usr/etc/install
1019 # IRIX /sbin/install
1021 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1022 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1023 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1024 # ./install, which can be erroneously created by make from ./install.sh.
1025 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1026 echo "configure:1027: checking for a BSD compatible install" >&5
1027 if test -z "$INSTALL"; then
1028 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
1029 echo $ac_n "(cached) $ac_c" 1>&6
1031 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1032 for ac_dir in $PATH; do
1033 # Account for people who put trailing slashes in PATH elements.
1035 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1037 # OSF1 and SCO ODT 3.0 have their own names for install.
1038 # Don't use installbsd from OSF since it installs stuff as root
1040 for ac_prog in ginstall scoinst install; do
1041 if test -f $ac_dir/$ac_prog; then
1042 if test $ac_prog = install &&
1043 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1044 # AIX install. It has an incompatible calling convention.
1046 elif test $ac_prog = install &&
1047 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
1048 # program-specific install script used by HP pwplus--don't use.
1051 ac_cv_path_install="$ac_dir/$ac_prog -c"
1062 if test "${ac_cv_path_install+set}" = set; then
1063 INSTALL="$ac_cv_path_install"
1065 # As a last resort, use the slow shell script. We don't cache a
1066 # path for INSTALL within a source directory, because that will
1067 # break other packages using the cache if that directory is
1068 # removed, or if the path is relative.
1069 INSTALL="$ac_install_sh"
1072 echo "$ac_t""$INSTALL" 1>&6
1074 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1075 # It thinks the first close brace ends the variable substitution.
1076 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1078 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1080 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1082 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1083 echo "configure:1084: checking whether build environment is sane" >&5
1086 echo timestamp > conftestfile
1087 # Do `set' in a subshell so we don't clobber the current shell's
1088 # arguments. Must try -L first in case configure is actually a
1089 # symlink; some systems play weird games with the mod time of symlinks
1090 # (eg FreeBSD returns the mod time of the symlink's containing
1093 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1094 if test "$*" = "X"; then
1096 set X `ls -t $srcdir/configure conftestfile`
1098 if test "$*" != "X $srcdir/configure conftestfile" \
1099 && test "$*" != "X conftestfile $srcdir/configure"; then
1101 # If neither matched, then we have a broken ls. This can happen
1102 # if, for instance, CONFIG_SHELL is bash and it inherits a
1103 # broken ls alias from the environment. This has actually
1104 # happened. Such a system could not be considered "sane".
1105 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1106 alias in your environment" 1>&2; exit 1; }
1109 test "$2" = conftestfile
1115 { echo "configure: error: newly created file is older than distributed files!
1116 Check your system clock" 1>&2; exit 1; }
1119 echo "$ac_t""yes" 1>&6
1120 if test "$program_transform_name" = s,x,x,; then
1121 program_transform_name=
1123 # Double any \ or $. echo might interpret backslashes.
1124 cat <<\EOF_SED > conftestsed
1125 s,\\,\\\\,g; s,\$,$$,g
1127 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1130 test "$program_prefix" != NONE &&
1131 program_transform_name="s,^,${program_prefix},;$program_transform_name"
1132 # Use a double $ so make ignores it.
1133 test "$program_suffix" != NONE &&
1134 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
1136 # sed with no file args requires a program.
1137 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1139 for ac_prog in mawk gawk nawk awk
1141 # Extract the first word of "$ac_prog", so it can be a program name with args.
1142 set dummy $ac_prog; ac_word=$2
1143 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1144 echo "configure:1145: checking for $ac_word" >&5
1145 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
1146 echo $ac_n "(cached) $ac_c" 1>&6
1148 if test -n "$AWK"; then
1149 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1151 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1153 for ac_dir in $ac_dummy; do
1154 test -z "$ac_dir" && ac_dir=.
1155 if test -f $ac_dir/$ac_word; then
1156 ac_cv_prog_AWK="$ac_prog"
1163 AWK="$ac_cv_prog_AWK"
1164 if test -n "$AWK"; then
1165 echo "$ac_t""$AWK" 1>&6
1167 echo "$ac_t""no" 1>&6
1170 test -n "$AWK" && break
1173 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1174 echo "configure:1175: checking whether ${MAKE-make} sets \${MAKE}" >&5
1175 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1176 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1177 echo $ac_n "(cached) $ac_c" 1>&6
1179 cat > conftestmake <<\EOF
1181 @echo 'ac_maketemp="${MAKE}"'
1183 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1184 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1185 if test -n "$ac_maketemp"; then
1186 eval ac_cv_prog_make_${ac_make}_set=yes
1188 eval ac_cv_prog_make_${ac_make}_set=no
1192 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1193 echo "$ac_t""yes" 1>&6
1196 echo "$ac_t""no" 1>&6
1197 SET_MAKE="MAKE=${MAKE-make}"
1206 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1207 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1212 missing_dir=`cd $ac_aux_dir && pwd`
1213 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1214 echo "configure:1215: checking for working aclocal" >&5
1215 # Run test in a subshell; some versions of sh will print an error if
1216 # an executable is not found, even if stderr is redirected.
1217 # Redirect stdin to placate older versions of autoconf. Sigh.
1218 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1220 echo "$ac_t""found" 1>&6
1222 ACLOCAL="$missing_dir/missing aclocal"
1223 echo "$ac_t""missing" 1>&6
1226 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1227 echo "configure:1228: checking for working autoconf" >&5
1228 # Run test in a subshell; some versions of sh will print an error if
1229 # an executable is not found, even if stderr is redirected.
1230 # Redirect stdin to placate older versions of autoconf. Sigh.
1231 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1233 echo "$ac_t""found" 1>&6
1235 AUTOCONF="$missing_dir/missing autoconf"
1236 echo "$ac_t""missing" 1>&6
1239 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1240 echo "configure:1241: checking for working automake" >&5
1241 # Run test in a subshell; some versions of sh will print an error if
1242 # an executable is not found, even if stderr is redirected.
1243 # Redirect stdin to placate older versions of autoconf. Sigh.
1244 if (automake --version) < /dev/null > /dev/null 2>&1; then
1246 echo "$ac_t""found" 1>&6
1248 AUTOMAKE="$missing_dir/missing automake"
1249 echo "$ac_t""missing" 1>&6
1252 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1253 echo "configure:1254: checking for working autoheader" >&5
1254 # Run test in a subshell; some versions of sh will print an error if
1255 # an executable is not found, even if stderr is redirected.
1256 # Redirect stdin to placate older versions of autoconf. Sigh.
1257 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1258 AUTOHEADER=autoheader
1259 echo "$ac_t""found" 1>&6
1261 AUTOHEADER="$missing_dir/missing autoheader"
1262 echo "$ac_t""missing" 1>&6
1265 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1266 echo "configure:1267: checking for working makeinfo" >&5
1267 # Run test in a subshell; some versions of sh will print an error if
1268 # an executable is not found, even if stderr is redirected.
1269 # Redirect stdin to placate older versions of autoconf. Sigh.
1270 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1272 echo "$ac_t""found" 1>&6
1274 MAKEINFO="$missing_dir/missing makeinfo"
1275 echo "$ac_t""missing" 1>&6
1278 install_sh="$missing_dir/install-sh"
1279 test -f "$install_sh" || install_sh="$missing_dir/install.sh"
1281 for ac_prog in gnutar gtar tar
1283 # Extract the first word of "$ac_prog", so it can be a program name with args.
1284 set dummy $ac_prog; ac_word=$2
1285 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1286 echo "configure:1287: checking for $ac_word" >&5
1287 if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then
1288 echo $ac_n "(cached) $ac_c" 1>&6
1290 if test -n "$AMTAR"; then
1291 ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
1293 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1295 for ac_dir in $ac_dummy; do
1296 test -z "$ac_dir" && ac_dir=.
1297 if test -f $ac_dir/$ac_word; then
1298 ac_cv_prog_AMTAR="$ac_prog"
1305 AMTAR="$ac_cv_prog_AMTAR"
1306 if test -n "$AMTAR"; then
1307 echo "$ac_t""$AMTAR" 1>&6
1309 echo "$ac_t""no" 1>&6
1312 test -n "$AMTAR" && break
1317 if test -n "$AMTAR"; then
1318 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
1323 cat >> confdefs.h <<EOF
1324 #define OPENLDAP_PACKAGE "$PACKAGE"
1327 cat >> confdefs.h <<EOF
1328 #define OPENLDAP_VERSION "$VERSION"
1332 cat >> confdefs.h <<EOF
1333 #define LDAP_VENDOR_VERSION $OL_API_INC
1336 cat >> confdefs.h <<EOF
1337 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
1340 cat >> confdefs.h <<EOF
1341 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
1344 cat >> confdefs.h <<EOF
1345 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
1349 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
1351 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
1353 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
1357 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
1358 echo "configure:1359: checking configure arguments" >&5
1363 ldap_subdir="/openldap"
1365 # Check whether --with-subdir or --without-subdir was given.
1366 if test "${with_subdir+set}" = set; then
1367 withval="$with_subdir"
1374 ldap_subdir="$withval"
1377 ldap_subdir="/$withval"
1384 # OpenLDAP --enable-debug
1385 # Check whether --enable-debug or --disable-debug was given.
1386 if test "${enable_debug+set}" = set; then
1387 enableval="$enable_debug"
1390 for ol_val in auto yes no ; do
1391 if test "$enableval" = "$ol_val" ; then
1395 if test "$ol_arg" = "invalid" ; then
1396 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
1398 ol_enable_debug="$ol_arg"
1401 ol_enable_debug="yes"
1403 # end --enable-debug
1404 # OpenLDAP --enable-dynamic
1405 # Check whether --enable-dynamic or --disable-dynamic was given.
1406 if test "${enable_dynamic+set}" = set; then
1407 enableval="$enable_dynamic"
1410 for ol_val in auto yes no ; do
1411 if test "$enableval" = "$ol_val" ; then
1415 if test "$ol_arg" = "invalid" ; then
1416 { echo "configure: error: bad value $enableval for --enable-dynamic" 1>&2; exit 1; }
1418 ol_enable_dynamic="$ol_arg"
1421 ol_enable_dynamic="no"
1423 # end --enable-dynamic
1424 # OpenLDAP --enable-syslog
1425 # Check whether --enable-syslog or --disable-syslog was given.
1426 if test "${enable_syslog+set}" = set; then
1427 enableval="$enable_syslog"
1430 for ol_val in auto yes no ; do
1431 if test "$enableval" = "$ol_val" ; then
1435 if test "$ol_arg" = "invalid" ; then
1436 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
1438 ol_enable_syslog="$ol_arg"
1441 ol_enable_syslog="auto"
1443 # end --enable-syslog
1444 # OpenLDAP --enable-proctitle
1445 # Check whether --enable-proctitle or --disable-proctitle was given.
1446 if test "${enable_proctitle+set}" = set; then
1447 enableval="$enable_proctitle"
1450 for ol_val in auto yes no ; do
1451 if test "$enableval" = "$ol_val" ; then
1455 if test "$ol_arg" = "invalid" ; then
1456 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
1458 ol_enable_proctitle="$ol_arg"
1461 ol_enable_proctitle="yes"
1463 # end --enable-proctitle
1464 ol_enable_referrals=${ol_enable_referrals-no}
1465 ol_enable_kbind=${ol_enable_kbind-no}
1466 # OpenLDAP --enable-ipv6
1467 # Check whether --enable-ipv6 or --disable-ipv6 was given.
1468 if test "${enable_ipv6+set}" = set; then
1469 enableval="$enable_ipv6"
1472 for ol_val in auto yes no ; do
1473 if test "$enableval" = "$ol_val" ; then
1477 if test "$ol_arg" = "invalid" ; then
1478 { echo "configure: error: bad value $enableval for --enable-ipv6" 1>&2; exit 1; }
1480 ol_enable_ipv6="$ol_arg"
1483 ol_enable_ipv6="auto"
1486 # OpenLDAP --enable-local
1487 # Check whether --enable-local or --disable-local was given.
1488 if test "${enable_local+set}" = set; then
1489 enableval="$enable_local"
1492 for ol_val in auto yes no ; do
1493 if test "$enableval" = "$ol_val" ; then
1497 if test "$ol_arg" = "invalid" ; then
1498 { echo "configure: error: bad value $enableval for --enable-local" 1>&2; exit 1; }
1500 ol_enable_local="$ol_arg"
1503 ol_enable_local="auto"
1505 # end --enable-local
1508 # OpenLDAP --with-cyrus_sasl
1509 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
1510 if test "${with_cyrus_sasl+set}" = set; then
1511 withval="$with_cyrus_sasl"
1514 for ol_val in auto yes no ; do
1515 if test "$withval" = "$ol_val" ; then
1519 if test "$ol_arg" = "invalid" ; then
1520 { echo "configure: error: bad value $withval for --with-cyrus_sasl" 1>&2; exit 1; }
1522 ol_with_cyrus_sasl="$ol_arg"
1525 ol_with_cyrus_sasl="auto"
1527 # end --with-cyrus_sasl
1529 # OpenLDAP --with-fetch
1530 # Check whether --with-fetch or --without-fetch was given.
1531 if test "${with_fetch+set}" = set; then
1532 withval="$with_fetch"
1535 for ol_val in auto yes no ; do
1536 if test "$withval" = "$ol_val" ; then
1540 if test "$ol_arg" = "invalid" ; then
1541 { echo "configure: error: bad value $withval for --with-fetch" 1>&2; exit 1; }
1543 ol_with_fetch="$ol_arg"
1546 ol_with_fetch="auto"
1550 ol_with_kerberos=${ol_with_kerberos-auto}
1551 # OpenLDAP --with-threads
1552 # Check whether --with-threads or --without-threads was given.
1553 if test "${with_threads+set}" = set; then
1554 withval="$with_threads"
1557 for ol_val in auto nt posix mach pth lwp yes no manual ; do
1558 if test "$withval" = "$ol_val" ; then
1562 if test "$ol_arg" = "invalid" ; then
1563 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1565 ol_with_threads="$ol_arg"
1568 ol_with_threads="auto"
1570 # end --with-threads
1572 # OpenLDAP --with-tls
1573 # Check whether --with-tls or --without-tls was given.
1574 if test "${with_tls+set}" = set; then
1578 for ol_val in auto ssleay openssl yes no ; do
1579 if test "$withval" = "$ol_val" ; then
1583 if test "$ol_arg" = "invalid" ; then
1584 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1586 ol_with_tls="$ol_arg"
1593 # OpenLDAP --with-yielding_select
1594 # Check whether --with-yielding_select or --without-yielding_select was given.
1595 if test "${with_yielding_select+set}" = set; then
1596 withval="$with_yielding_select"
1599 for ol_val in auto yes no manual ; do
1600 if test "$withval" = "$ol_val" ; then
1604 if test "$ol_arg" = "invalid" ; then
1605 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1607 ol_with_yielding_select="$ol_arg"
1610 ol_with_yielding_select="auto"
1612 # end --with-yielding_select
1616 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1617 if test "${with_xxslapdoptions+set}" = set; then
1618 withval="$with_xxslapdoptions"
1622 # OpenLDAP --enable-slapd
1623 # Check whether --enable-slapd or --disable-slapd was given.
1624 if test "${enable_slapd+set}" = set; then
1625 enableval="$enable_slapd"
1628 for ol_val in auto yes no ; do
1629 if test "$enableval" = "$ol_val" ; then
1633 if test "$ol_arg" = "invalid" ; then
1634 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1636 ol_enable_slapd="$ol_arg"
1639 ol_enable_slapd="yes"
1641 # end --enable-slapd
1642 # OpenLDAP --enable-aci
1643 # Check whether --enable-aci or --disable-aci was given.
1644 if test "${enable_aci+set}" = set; then
1645 enableval="$enable_aci"
1648 for ol_val in auto yes no ; do
1649 if test "$enableval" = "$ol_val" ; then
1653 if test "$ol_arg" = "invalid" ; then
1654 { echo "configure: error: bad value $enableval for --enable-aci" 1>&2; exit 1; }
1656 ol_enable_aci="$ol_arg"
1662 # OpenLDAP --enable-cleartext
1663 # Check whether --enable-cleartext or --disable-cleartext was given.
1664 if test "${enable_cleartext+set}" = set; then
1665 enableval="$enable_cleartext"
1668 for ol_val in auto yes no ; do
1669 if test "$enableval" = "$ol_val" ; then
1673 if test "$ol_arg" = "invalid" ; then
1674 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1676 ol_enable_cleartext="$ol_arg"
1679 ol_enable_cleartext="yes"
1681 # end --enable-cleartext
1682 # OpenLDAP --enable-crypt
1683 # Check whether --enable-crypt or --disable-crypt was given.
1684 if test "${enable_crypt+set}" = set; then
1685 enableval="$enable_crypt"
1688 for ol_val in auto yes no ; do
1689 if test "$enableval" = "$ol_val" ; then
1693 if test "$ol_arg" = "invalid" ; then
1694 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1696 ol_enable_crypt="$ol_arg"
1699 ol_enable_crypt="no"
1701 # end --enable-crypt
1702 # OpenLDAP --enable-lmpasswd
1703 # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
1704 if test "${enable_lmpasswd+set}" = set; then
1705 enableval="$enable_lmpasswd"
1708 for ol_val in auto yes no ; do
1709 if test "$enableval" = "$ol_val" ; then
1713 if test "$ol_arg" = "invalid" ; then
1714 { echo "configure: error: bad value $enableval for --enable-lmpasswd" 1>&2; exit 1; }
1716 ol_enable_lmpasswd="$ol_arg"
1719 ol_enable_lmpasswd="no"
1721 # end --enable-lmpasswd
1722 # OpenLDAP --enable-spasswd
1723 # Check whether --enable-spasswd or --disable-spasswd was given.
1724 if test "${enable_spasswd+set}" = set; then
1725 enableval="$enable_spasswd"
1728 for ol_val in auto yes no ; do
1729 if test "$enableval" = "$ol_val" ; then
1733 if test "$ol_arg" = "invalid" ; then
1734 { echo "configure: error: bad value $enableval for --enable-spasswd" 1>&2; exit 1; }
1736 ol_enable_spasswd="$ol_arg"
1739 ol_enable_spasswd="no"
1741 # end --enable-spasswd
1742 # OpenLDAP --enable-modules
1743 # Check whether --enable-modules or --disable-modules was given.
1744 if test "${enable_modules+set}" = set; then
1745 enableval="$enable_modules"
1748 for ol_val in auto yes no ; do
1749 if test "$enableval" = "$ol_val" ; then
1753 if test "$ol_arg" = "invalid" ; then
1754 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1756 ol_enable_modules="$ol_arg"
1759 ol_enable_modules="no"
1761 # end --enable-modules
1762 ol_enable_multimaster=${ol_enable_multimaster-no}
1763 # OpenLDAP --enable-rewrite
1764 # Check whether --enable-rewrite or --disable-rewrite was given.
1765 if test "${enable_rewrite+set}" = set; then
1766 enableval="$enable_rewrite"
1769 for ol_val in auto yes no ; do
1770 if test "$enableval" = "$ol_val" ; then
1774 if test "$ol_arg" = "invalid" ; then
1775 { echo "configure: error: bad value $enableval for --enable-rewrite" 1>&2; exit 1; }
1777 ol_enable_rewrite="$ol_arg"
1780 ol_enable_rewrite="auto"
1782 # end --enable-rewrite
1783 # OpenLDAP --enable-rlookups
1784 # Check whether --enable-rlookups or --disable-rlookups was given.
1785 if test "${enable_rlookups+set}" = set; then
1786 enableval="$enable_rlookups"
1789 for ol_val in auto yes no ; do
1790 if test "$enableval" = "$ol_val" ; then
1794 if test "$ol_arg" = "invalid" ; then
1795 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1797 ol_enable_rlookups="$ol_arg"
1800 ol_enable_rlookups="no"
1802 # end --enable-rlookups
1803 # OpenLDAP --enable-slapi
1804 # Check whether --enable-slapi or --disable-slapi was given.
1805 if test "${enable_slapi+set}" = set; then
1806 enableval="$enable_slapi"
1809 for ol_val in auto yes no ; do
1810 if test "$enableval" = "$ol_val" ; then
1814 if test "$ol_arg" = "invalid" ; then
1815 { echo "configure: error: bad value $enableval for --enable-slapi" 1>&2; exit 1; }
1817 ol_enable_slapi="$ol_arg"
1820 ol_enable_slapi="no"
1822 # end --enable-slapi
1823 # OpenLDAP --enable-slp
1824 # Check whether --enable-slp or --disable-slp was given.
1825 if test "${enable_slp+set}" = set; then
1826 enableval="$enable_slp"
1829 for ol_val in auto yes no ; do
1830 if test "$enableval" = "$ol_val" ; then
1834 if test "$ol_arg" = "invalid" ; then
1835 { echo "configure: error: bad value $enableval for --enable-slp" 1>&2; exit 1; }
1837 ol_enable_slp="$ol_arg"
1843 # OpenLDAP --enable-wrappers
1844 # Check whether --enable-wrappers or --disable-wrappers was given.
1845 if test "${enable_wrappers+set}" = set; then
1846 enableval="$enable_wrappers"
1849 for ol_val in auto yes no ; do
1850 if test "$enableval" = "$ol_val" ; then
1854 if test "$ol_arg" = "invalid" ; then
1855 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1857 ol_enable_wrappers="$ol_arg"
1860 ol_enable_wrappers="no"
1862 # end --enable-wrappers
1864 Backends="bdb dnssrv hdb ldap ldbm meta monitor null \
1865 passwd perl relay shell sql"
1867 # Check whether --with-xxslapbackends or --without-xxslapbackends was given.
1868 if test "${with_xxslapbackends+set}" = set; then
1869 withval="$with_xxslapbackends"
1874 # OpenLDAP --enable-backends
1875 # Check whether --enable-backends or --disable-backends was given.
1876 if test "${enable_backends+set}" = set; then
1877 enableval="$enable_backends"
1880 for ol_val in no yes mod ; do
1881 if test "$enableval" = "$ol_val" ; then
1885 if test "$ol_arg" = "invalid" ; then
1886 { echo "configure: error: bad value $enableval for --enable-backends" 1>&2; exit 1; }
1888 ol_enable_backends="$ol_arg"
1891 ol_enable_backends="no"
1893 # end --enable-backends
1894 # OpenLDAP --enable-bdb
1895 # Check whether --enable-bdb or --disable-bdb was given.
1896 if test "${enable_bdb+set}" = set; then
1897 enableval="$enable_bdb"
1900 for ol_val in no yes mod ; do
1901 if test "$enableval" = "$ol_val" ; then
1905 if test "$ol_arg" = "invalid" ; then
1906 { echo "configure: error: bad value $enableval for --enable-bdb" 1>&2; exit 1; }
1908 ol_enable_bdb="$ol_arg"
1914 # OpenLDAP --enable-dnssrv
1915 # Check whether --enable-dnssrv or --disable-dnssrv was given.
1916 if test "${enable_dnssrv+set}" = set; then
1917 enableval="$enable_dnssrv"
1920 for ol_val in no yes mod ; do
1921 if test "$enableval" = "$ol_val" ; then
1925 if test "$ol_arg" = "invalid" ; then
1926 { echo "configure: error: bad value $enableval for --enable-dnssrv" 1>&2; exit 1; }
1928 ol_enable_dnssrv="$ol_arg"
1931 ol_enable_dnssrv="no"
1933 # end --enable-dnssrv
1934 # OpenLDAP --enable-hdb
1935 # Check whether --enable-hdb or --disable-hdb was given.
1936 if test "${enable_hdb+set}" = set; then
1937 enableval="$enable_hdb"
1940 for ol_val in no yes mod ; do
1941 if test "$enableval" = "$ol_val" ; then
1945 if test "$ol_arg" = "invalid" ; then
1946 { echo "configure: error: bad value $enableval for --enable-hdb" 1>&2; exit 1; }
1948 ol_enable_hdb="$ol_arg"
1954 # OpenLDAP --enable-ldap
1955 # Check whether --enable-ldap or --disable-ldap was given.
1956 if test "${enable_ldap+set}" = set; then
1957 enableval="$enable_ldap"
1960 for ol_val in no yes mod ; do
1961 if test "$enableval" = "$ol_val" ; then
1965 if test "$ol_arg" = "invalid" ; then
1966 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
1968 ol_enable_ldap="$ol_arg"
1974 # OpenLDAP --enable-ldbm
1975 # Check whether --enable-ldbm or --disable-ldbm was given.
1976 if test "${enable_ldbm+set}" = set; then
1977 enableval="$enable_ldbm"
1980 for ol_val in no yes mod ; do
1981 if test "$enableval" = "$ol_val" ; then
1985 if test "$ol_arg" = "invalid" ; then
1986 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
1988 ol_enable_ldbm="$ol_arg"
1994 # OpenLDAP --with-ldbm_api
1995 # Check whether --with-ldbm_api or --without-ldbm_api was given.
1996 if test "${with_ldbm_api+set}" = set; then
1997 withval="$with_ldbm_api"
2000 for ol_val in auto berkeley bcompat mdbm gdbm ; do
2001 if test "$withval" = "$ol_val" ; then
2005 if test "$ol_arg" = "invalid" ; then
2006 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
2008 ol_with_ldbm_api="$ol_arg"
2011 ol_with_ldbm_api="auto"
2013 # end --with-ldbm_api
2015 # OpenLDAP --with-ldbm_type
2016 # Check whether --with-ldbm_type or --without-ldbm_type was given.
2017 if test "${with_ldbm_type+set}" = set; then
2018 withval="$with_ldbm_type"
2021 for ol_val in auto btree hash ; do
2022 if test "$withval" = "$ol_val" ; then
2026 if test "$ol_arg" = "invalid" ; then
2027 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
2029 ol_with_ldbm_type="$ol_arg"
2032 ol_with_ldbm_type="auto"
2034 # end --with-ldbm_type
2036 # OpenLDAP --enable-meta
2037 # Check whether --enable-meta or --disable-meta was given.
2038 if test "${enable_meta+set}" = set; then
2039 enableval="$enable_meta"
2042 for ol_val in no yes mod ; do
2043 if test "$enableval" = "$ol_val" ; then
2047 if test "$ol_arg" = "invalid" ; then
2048 { echo "configure: error: bad value $enableval for --enable-meta" 1>&2; exit 1; }
2050 ol_enable_meta="$ol_arg"
2056 # OpenLDAP --enable-monitor
2057 # Check whether --enable-monitor or --disable-monitor was given.
2058 if test "${enable_monitor+set}" = set; then
2059 enableval="$enable_monitor"
2062 for ol_val in no yes mod ; do
2063 if test "$enableval" = "$ol_val" ; then
2067 if test "$ol_arg" = "invalid" ; then
2068 { echo "configure: error: bad value $enableval for --enable-monitor" 1>&2; exit 1; }
2070 ol_enable_monitor="$ol_arg"
2073 ol_enable_monitor="yes"
2075 # end --enable-monitor
2076 # OpenLDAP --enable-null
2077 # Check whether --enable-null or --disable-null was given.
2078 if test "${enable_null+set}" = set; then
2079 enableval="$enable_null"
2082 for ol_val in no yes mod ; do
2083 if test "$enableval" = "$ol_val" ; then
2087 if test "$ol_arg" = "invalid" ; then
2088 { echo "configure: error: bad value $enableval for --enable-null" 1>&2; exit 1; }
2090 ol_enable_null="$ol_arg"
2096 # OpenLDAP --enable-passwd
2097 # Check whether --enable-passwd or --disable-passwd was given.
2098 if test "${enable_passwd+set}" = set; then
2099 enableval="$enable_passwd"
2102 for ol_val in no yes mod ; do
2103 if test "$enableval" = "$ol_val" ; then
2107 if test "$ol_arg" = "invalid" ; then
2108 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
2110 ol_enable_passwd="$ol_arg"
2113 ol_enable_passwd="no"
2115 # end --enable-passwd
2116 # OpenLDAP --enable-perl
2117 # Check whether --enable-perl or --disable-perl was given.
2118 if test "${enable_perl+set}" = set; then
2119 enableval="$enable_perl"
2122 for ol_val in no yes mod ; do
2123 if test "$enableval" = "$ol_val" ; then
2127 if test "$ol_arg" = "invalid" ; then
2128 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
2130 ol_enable_perl="$ol_arg"
2136 # OpenLDAP --enable-relay
2137 # Check whether --enable-relay or --disable-relay was given.
2138 if test "${enable_relay+set}" = set; then
2139 enableval="$enable_relay"
2142 for ol_val in no yes mod ; do
2143 if test "$enableval" = "$ol_val" ; then
2147 if test "$ol_arg" = "invalid" ; then
2148 { echo "configure: error: bad value $enableval for --enable-relay" 1>&2; exit 1; }
2150 ol_enable_relay="$ol_arg"
2153 ol_enable_relay="yes"
2155 # end --enable-relay
2156 # OpenLDAP --enable-shell
2157 # Check whether --enable-shell or --disable-shell was given.
2158 if test "${enable_shell+set}" = set; then
2159 enableval="$enable_shell"
2162 for ol_val in no yes mod ; do
2163 if test "$enableval" = "$ol_val" ; then
2167 if test "$ol_arg" = "invalid" ; then
2168 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
2170 ol_enable_shell="$ol_arg"
2173 ol_enable_shell="no"
2175 # end --enable-shell
2176 # OpenLDAP --enable-sql
2177 # Check whether --enable-sql or --disable-sql was given.
2178 if test "${enable_sql+set}" = set; then
2179 enableval="$enable_sql"
2182 for ol_val in no yes mod ; do
2183 if test "$enableval" = "$ol_val" ; then
2187 if test "$ol_arg" = "invalid" ; then
2188 { echo "configure: error: bad value $enableval for --enable-sql" 1>&2; exit 1; }
2190 ol_enable_sql="$ol_arg"
2197 Overlays="chain denyop dyngroup lastmod ppolicy proxycache rwm \
2200 # Check whether --with-xxslapoverlays or --without-xxslapoverlays was given.
2201 if test "${with_xxslapoverlays+set}" = set; then
2202 withval="$with_xxslapoverlays"
2207 # OpenLDAP --enable-overlays
2208 # Check whether --enable-overlays or --disable-overlays was given.
2209 if test "${enable_overlays+set}" = set; then
2210 enableval="$enable_overlays"
2213 for ol_val in no yes mod ; do
2214 if test "$enableval" = "$ol_val" ; then
2218 if test "$ol_arg" = "invalid" ; then
2219 { echo "configure: error: bad value $enableval for --enable-overlays" 1>&2; exit 1; }
2221 ol_enable_overlays="$ol_arg"
2224 ol_enable_overlays="no"
2226 # end --enable-overlays
2227 # OpenLDAP --enable-chain
2228 # Check whether --enable-chain or --disable-chain was given.
2229 if test "${enable_chain+set}" = set; then
2230 enableval="$enable_chain"
2233 for ol_val in no yes mod ; do
2234 if test "$enableval" = "$ol_val" ; then
2238 if test "$ol_arg" = "invalid" ; then
2239 { echo "configure: error: bad value $enableval for --enable-chain" 1>&2; exit 1; }
2241 ol_enable_chain="$ol_arg"
2244 ol_enable_chain="no"
2246 # end --enable-chain
2248 # OpenLDAP --enable-denyop
2249 # Check whether --enable-denyop or --disable-denyop was given.
2250 if test "${enable_denyop+set}" = set; then
2251 enableval="$enable_denyop"
2254 for ol_val in no yes mod ; do
2255 if test "$enableval" = "$ol_val" ; then
2259 if test "$ol_arg" = "invalid" ; then
2260 { echo "configure: error: bad value $enableval for --enable-denyop" 1>&2; exit 1; }
2262 ol_enable_denyop="$ol_arg"
2265 ol_enable_denyop="no"
2267 # end --enable-denyop
2269 # OpenLDAP --enable-dyngroup
2270 # Check whether --enable-dyngroup or --disable-dyngroup was given.
2271 if test "${enable_dyngroup+set}" = set; then
2272 enableval="$enable_dyngroup"
2275 for ol_val in no yes mod ; do
2276 if test "$enableval" = "$ol_val" ; then
2280 if test "$ol_arg" = "invalid" ; then
2281 { echo "configure: error: bad value $enableval for --enable-dyngroup" 1>&2; exit 1; }
2283 ol_enable_dyngroup="$ol_arg"
2286 ol_enable_dyngroup="no"
2288 # end --enable-dyngroup
2290 # OpenLDAP --enable-lastmod
2291 # Check whether --enable-lastmod or --disable-lastmod was given.
2292 if test "${enable_lastmod+set}" = set; then
2293 enableval="$enable_lastmod"
2296 for ol_val in no yes mod ; do
2297 if test "$enableval" = "$ol_val" ; then
2301 if test "$ol_arg" = "invalid" ; then
2302 { echo "configure: error: bad value $enableval for --enable-lastmod" 1>&2; exit 1; }
2304 ol_enable_lastmod="$ol_arg"
2307 ol_enable_lastmod="no"
2309 # end --enable-lastmod
2311 # OpenLDAP --enable-ppolicy
2312 # Check whether --enable-ppolicy or --disable-ppolicy was given.
2313 if test "${enable_ppolicy+set}" = set; then
2314 enableval="$enable_ppolicy"
2317 for ol_val in no yes mod ; do
2318 if test "$enableval" = "$ol_val" ; then
2322 if test "$ol_arg" = "invalid" ; then
2323 { echo "configure: error: bad value $enableval for --enable-ppolicy" 1>&2; exit 1; }
2325 ol_enable_ppolicy="$ol_arg"
2328 ol_enable_ppolicy="no"
2330 # end --enable-ppolicy
2332 # OpenLDAP --enable-proxycache
2333 # Check whether --enable-proxycache or --disable-proxycache was given.
2334 if test "${enable_proxycache+set}" = set; then
2335 enableval="$enable_proxycache"
2338 for ol_val in # OpenLDAP --enable-refint
2340 --enable-refint Referential Integrity overlay no|yes|mod no"
2341 # Check whether --enable-refint or --disable-refint was given.
2342 if test "${enable_refint+set}" = set; then
2343 enableval="$enable_refint"
2346 for ol_val in no yes mod ; do
2347 if test "$enableval" = "$ol_val" ; then
2351 if test "$ol_arg" = "invalid" ; then
2352 { echo "configure: error: bad value $enableval for --enable-refint" 1>&2; exit 1; }
2354 ol_enable_refint="$ol_arg"
2357 ol_enable_refint="no"
2359 # end --enable-refint
2361 # OpenLDAP --enable-rwm
2363 --enable-rwm Rewrite/Remap overlay no|yes|mod no"
2364 # Check whether --enable-rwm or --disable-rwm was given.
2365 if test "${enable_rwm+set}" = set; then
2366 enableval="$enable_rwm"
2369 for ol_val in # OpenLDAP --enable-unique
2371 --enable-unique Attribute Uniqueness overlay no|yes|mod no"
2372 # Check whether --enable-unique or --disable-unique was given.
2373 if test "${enable_unique+set}" = set; then
2374 enableval="$enable_unique"
2377 for ol_val in no yes mod ; do
2378 if test "$enableval" = "$ol_val" ; then
2382 if test "$ol_arg" = "invalid" ; then
2383 { echo "configure: error: bad value $enableval for --enable-unique" 1>&2; exit 1; }
2385 ol_enable_unique="$ol_arg"
2388 ol_enable_unique="no"
2390 # end --enable-unique
2395 SLURPD (Replication Daemon) Options:"
2396 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
2397 if test "${with_xxslurpdoptions+set}" = set; then
2398 withval="$with_xxslurpdoptions"
2402 # OpenLDAP --enable-slurpd
2404 --enable-slurpd enable building slurpd auto"
2405 # Check whether --enable-slurpd or --disable-slurpd was given.
2406 if test "${enable_slurpd+set}" = set; then
2407 enableval="$enable_slurpd"
2410 for ol_val in auto yes no ; do
2411 if test "$enableval" = "$ol_val" ; then
2415 if test "$ol_arg" = "invalid" ; then
2416 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
2418 ol_enable_slurpd="$ol_arg"
2421 ol_enable_slurpd="auto"
2423 # end --enable-slurpd
2427 Library Generation & Linking Options"
2428 # Check whether --with-xxliboptions or --without-xxliboptions was given.
2429 if test "${with_xxliboptions+set}" = set; then
2430 withval="$with_xxliboptions"
2435 --enable-static=PKGS build static libraries default=yes"
2436 # Check whether --enable-static or --disable-static was given.
2437 if test "${enable_static+set}" = set; then
2438 enableval="$enable_static"
2439 p=${PACKAGE-default}
2442 if test "$enableval" = "$ol_val" ; then
2446 if test "$ol_arg" = "invalid" ; then
2447 { echo "configure: error: bad value $enableval for --enable-rwm" 1>&2; exit 1; }
2449 ol_enable_rwm="$ol_arg"
2455 enable_static=yes ;;
2457 if test "$enableval" = "$ol_val" ; then
2461 if test "$ol_arg" = "invalid" ; then
2462 { echo "configure: error: bad value $enableval for --enable-proxycache" 1>&2; exit 1; }
2464 ol_enable_proxycache="$ol_arg"
2467 ol_enable_proxycache="no"
2469 # end --enable-proxycache
2473 # Look at the argument we got. We use all the common list separators.
2474 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2475 for pkg in $enableval; do
2476 if test "X$pkg" = "X$p"; then
2487 # Check whether --enable-shared or --disable-shared was given.
2488 if test "${enable_shared+set}" = set; then
2489 enableval="$enable_shared"
2490 p=${PACKAGE-default}
2492 yes) enable_shared=yes ;;
2493 no) enable_shared=no ;;
2496 # Look at the argument we got. We use all the common list separators.
2497 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2498 for pkg in $enableval; do
2499 if test "X$pkg" = "X$p"; then
2512 # Activate any backends that were not explicitly enabled.
2513 # Note that back_bdb defaults to "yes" so this loop won't touch it.
2514 if test $ol_enable_backends != no ; then
2515 for i in $Backends; do
2516 eval "ol_tmp=\$ol_enable_$i"
2517 if test $ol_tmp = no ; then
2518 eval "ol_enable_$i=$ol_enable_backends"
2522 # Activate the overlays
2523 if test $ol_enable_overlays != no ; then
2524 for i in $Overlays; do
2525 eval "ol_tmp=\$ol_enable_$i"
2526 if test $ol_tmp = no ; then
2527 eval "ol_enable_$i=$ol_enable_overlays"
2533 if test $ol_enable_slapd = no ; then
2534 if test $ol_enable_slapi = yes ; then
2535 echo "configure: warning: slapd disabled, ignoring --enable-slapi argument" 1>&2
2537 if test $ol_enable_backends != no ; then
2538 echo "configure: warning: slapd disabled, ignoring --enable-backends argument" 1>&2
2540 for i in $Backends; do
2541 eval "ol_tmp=\$ol_enable_$i"
2542 if test $ol_tmp != no ; then
2543 echo "configure: warning: slapd disabled, ignoring --enable-$i argument" 1>&2
2544 eval "ol_enable_$i=no"
2547 if test $ol_enable_modules = yes ; then
2548 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2550 if test $ol_enable_multimaster = yes ; then
2551 echo "configure: warning: slapd disabled, ignoring --enable-multimaster argument" 1>&2
2553 if test $ol_enable_wrappers = yes ; then
2554 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2556 if test $ol_enable_rlookups = yes ; then
2557 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2559 if test $ol_enable_aci = yes ; then
2560 echo "configure: warning: slapd disabled, ignoring --enable-aci argument" 1>&2
2562 if test $ol_with_ldbm_api != auto ; then
2563 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2565 if test $ol_with_ldbm_type != auto ; then
2566 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2568 if test $ol_enable_slurpd = yes ; then
2569 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2571 if test $ol_enable_rewrite = yes ; then
2572 echo "configure: warning: slapd disabled, ignoring --enable-rewrite argument" 1>&2
2574 if test $ol_enable_overlays != no ; then
2575 echo "configure: warning: slapd disabled, ignoring --enable-overlays argument" 1>&2
2577 for i in $Overlays; do
2578 eval "ol_tmp=\$ol_enable_$i"
2579 if test $ol_tmp != no ; then
2580 echo "configure: warning: slapd disabled, ignoring --enable-$i argument" 1>&2
2581 eval "ol_enable_$i=no"
2585 # force settings to no
2588 ol_enable_backends=no
2589 ol_enable_overlays=no
2590 ol_enable_modules=no
2591 ol_enable_multimaster=no
2592 ol_enable_rlookups=no
2594 ol_enable_wrappers=no
2597 ol_with_ldbm_type=no
2601 ol_enable_rewrite=no
2603 elif test $ol_enable_ldbm = no ; then
2605 if test $ol_with_ldbm_api != auto ; then
2606 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2609 if test $ol_with_ldbm_type != auto ; then
2610 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2613 if test $ol_enable_modules != yes -a \
2614 $ol_enable_bdb = no -a \
2615 $ol_enable_dnssrv = no -a \
2616 $ol_enable_hdb = no -a \
2617 $ol_enable_ldap = no -a \
2618 $ol_enable_meta = no -a \
2619 $ol_enable_monitor = no -a \
2620 $ol_enable_null = no -a \
2621 $ol_enable_passwd = no -a \
2622 $ol_enable_perl = no -a \
2623 $ol_enable_relay = no -a \
2624 $ol_enable_shell = no -a \
2625 $ol_enable_sql = no ; then
2627 if test $ol_enable_slapd = yes ; then
2628 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2630 echo "configure: warning: skipping slapd, no backend specified" 1>&2
2636 ol_with_ldbm_type=no
2638 if test $ol_enable_bdb != no -o $ol_enable_hdb != no; then
2639 ol_with_ldbm_api=berkeley
2643 if test $ol_with_ldbm_api = gdbm -a \
2644 $ol_with_ldbm_type = btree ; then
2645 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2647 if test $ol_with_ldbm_api = mdbm -a \
2648 $ol_with_ldbm_type = btree ; then
2649 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2651 if test $ol_with_ldbm_api = ndbm -a \
2652 $ol_with_ldbm_type = btree ; then
2653 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2656 if test $ol_enable_bdb = yes -o $ol_enable_hdb = yes ; then
2657 if test $ol_with_ldbm_api = auto ; then
2658 ol_with_ldbm_api=berkeley
2659 elif test $ol_with_ldbm_api != berkeley ; then
2660 { echo "configure: error: LDBM API not compatible with BDB/HDB" 1>&2; exit 1; }
2663 elif test $ol_enable_bdb = auto ; then
2664 if test $ol_with_ldbm_api != berkeley \
2665 -o $ol_with_ldbm_api != auto ; then
2666 echo "configure: warning: LDBM API not compatible with BDB, disabling BDB" 1>&2
2672 if test $ol_enable_chain != no -a $ol_enable_ldap = no ; then
2673 { echo "configure: error: --enable-chain requires --enable-ldap" 1>&2; exit 1; }
2676 if test $ol_enable_meta = yes -a $ol_enable_ldap = no ; then
2677 { echo "configure: error: --enable-meta requires --enable-ldap" 1>&2; exit 1; }
2680 if test $ol_enable_slurpd = yes ; then
2681 if test $ol_with_threads = no ; then
2682 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2686 if test $ol_enable_lmpasswd = yes ; then
2687 if test $ol_with_tls = no ; then
2688 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
2692 if test $ol_enable_kbind = yes ; then
2693 if test $ol_with_kerberos = no ; then
2694 { echo "configure: error: options require --with-kerberos" 1>&2; exit 1; }
2695 elif test $ol_with_kerberos = auto ; then
2696 ol_with_kerberos=yes
2699 elif test $ol_enable_kbind = no ; then
2700 if test $ol_with_kerberos = auto ; then
2702 elif test $ol_with_kerberos != no ; then
2703 echo "configure: warning: Kerberos detection enabled unnecessarily" 1>&2;
2708 if test $ol_enable_spasswd = yes ; then
2709 if test $ol_with_cyrus_sasl = no ; then
2710 { echo "configure: error: options require --with-cyrus-sasl" 1>&2; exit 1; }
2712 ol_with_cyrus_sasl=yes
2715 echo "$ac_t""done" 1>&6
2757 SLAPD_DYNAMIC_OVERLAYS=
2759 SLAPD_MODULES_LDFLAGS=
2760 SLAPD_MODULES_CPPFLAGS=
2762 SLAPD_STATIC_BACKENDS=
2763 SLAPD_DYNAMIC_BACKENDS=
2786 # Find a good install program. We prefer a C program (faster),
2787 # so one script is as good as another. But avoid the broken or
2788 # incompatible versions:
2789 # SysV /etc/install, /usr/sbin/install
2790 # SunOS /usr/etc/install
2791 # IRIX /sbin/install
2793 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2794 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2795 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2796 # ./install, which can be erroneously created by make from ./install.sh.
2797 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2798 echo "configure:2799: checking for a BSD compatible install" >&5
2799 if test -z "$INSTALL"; then
2800 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
2801 echo $ac_n "(cached) $ac_c" 1>&6
2803 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2804 for ac_dir in $PATH; do
2805 # Account for people who put trailing slashes in PATH elements.
2807 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2809 # OSF1 and SCO ODT 3.0 have their own names for install.
2810 # Don't use installbsd from OSF since it installs stuff as root
2812 for ac_prog in ginstall scoinst install; do
2813 if test -f $ac_dir/$ac_prog; then
2814 if test $ac_prog = install &&
2815 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2816 # AIX install. It has an incompatible calling convention.
2818 elif test $ac_prog = install &&
2819 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
2820 # program-specific install script used by HP pwplus--don't use.
2823 ac_cv_path_install="$ac_dir/$ac_prog -c"
2834 if test "${ac_cv_path_install+set}" = set; then
2835 INSTALL="$ac_cv_path_install"
2837 # As a last resort, use the slow shell script. We don't cache a
2838 # path for INSTALL within a source directory, because that will
2839 # break other packages using the cache if that directory is
2840 # removed, or if the path is relative.
2841 INSTALL="$ac_install_sh"
2844 echo "$ac_t""$INSTALL" 1>&6
2846 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2847 # It thinks the first close brace ends the variable substitution.
2848 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2850 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2852 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2855 cat >> confdefs.h <<\EOF
2856 #define HAVE_MKVERSION 1
2864 *-*-aix*) if test -z "$CC" ; then
2865 case "$ol_with_threads" in
2866 auto | yes | posix) ol_aix_threads=yes ;;
2872 if test $ol_aix_threads = yes ; then
2873 if test -z "${CC}" ; then
2874 for ac_prog in cc_r xlc_r cc
2876 # Extract the first word of "$ac_prog", so it can be a program name with args.
2877 set dummy $ac_prog; ac_word=$2
2878 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2879 echo "configure:2880: checking for $ac_word" >&5
2880 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2881 echo $ac_n "(cached) $ac_c" 1>&6
2883 if test -n "$CC"; then
2884 ac_cv_prog_CC="$CC" # Let the user override the test.
2886 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2888 for ac_dir in $ac_dummy; do
2889 test -z "$ac_dir" && ac_dir=.
2890 if test -f $ac_dir/$ac_word; then
2891 ac_cv_prog_CC="$ac_prog"
2899 if test -n "$CC"; then
2900 echo "$ac_t""$CC" 1>&6
2902 echo "$ac_t""no" 1>&6
2905 test -n "$CC" && break
2909 if test "$CC" = cc ; then
2910 if test $ol_with_threads != auto ; then
2911 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
2913 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
2919 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
2920 ol_with_threads=posix
2921 ol_cv_pthread_create=yes
2925 if test -z "${CC}"; then
2926 for ac_prog in cc gcc
2928 # Extract the first word of "$ac_prog", so it can be a program name with args.
2929 set dummy $ac_prog; ac_word=$2
2930 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2931 echo "configure:2932: checking for $ac_word" >&5
2932 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2933 echo $ac_n "(cached) $ac_c" 1>&6
2935 if test -n "$CC"; then
2936 ac_cv_prog_CC="$CC" # Let the user override the test.
2938 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2940 for ac_dir in $ac_dummy; do
2941 test -z "$ac_dir" && ac_dir=.
2942 if test -f $ac_dir/$ac_word; then
2943 ac_cv_prog_CC="$ac_prog"
2951 if test -n "$CC"; then
2952 echo "$ac_t""$CC" 1>&6
2954 echo "$ac_t""no" 1>&6
2957 test -n "$CC" && break
2959 test -n "$CC" || CC="missing"
2962 if test "${CC}" = "missing" ; then
2963 { echo "configure: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." 1>&2; exit 1; }
2967 if test -z "${AR}"; then
2968 for ac_prog in ar gar
2970 # Extract the first word of "$ac_prog", so it can be a program name with args.
2971 set dummy $ac_prog; ac_word=$2
2972 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2973 echo "configure:2974: checking for $ac_word" >&5
2974 if eval "test \"\${ac_cv_prog_AR+set}\" = set"; then
2975 echo $ac_n "(cached) $ac_c" 1>&6
2977 if test -n "$AR"; then
2978 ac_cv_prog_AR="$AR" # Let the user override the test.
2980 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2982 for ac_dir in $ac_dummy; do
2983 test -z "$ac_dir" && ac_dir=.
2984 if test -f $ac_dir/$ac_word; then
2985 ac_cv_prog_AR="$ac_prog"
2993 if test -n "$AR"; then
2994 echo "$ac_t""$AR" 1>&6
2996 echo "$ac_t""no" 1>&6
2999 test -n "$AR" && break
3001 test -n "$AR" || AR="missing"
3004 if test "${AR}" = "missing" ; then
3005 { echo "configure: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." 1>&2; exit 1; }
3011 # Find the correct PATH separator. Usually this is `:', but
3012 # DJGPP uses `;' like DOS.
3013 if test "X${PATH_SEPARATOR+set}" != Xset; then
3014 UNAME=${UNAME-`uname 2>/dev/null`}
3016 *-DOS) lt_cv_sys_path_separator=';' ;;
3017 *) lt_cv_sys_path_separator=':' ;;
3019 PATH_SEPARATOR=$lt_cv_sys_path_separator
3022 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3023 echo "configure:3024: checking for Cygwin environment" >&5
3024 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
3025 echo $ac_n "(cached) $ac_c" 1>&6
3027 cat > conftest.$ac_ext <<EOF
3028 #line 3029 "configure"
3029 #include "confdefs.h"
3034 #define __CYGWIN__ __CYGWIN32__
3039 if { (eval echo configure:3040: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3043 echo "configure: failed program was:" >&5
3044 cat conftest.$ac_ext >&5
3051 echo "$ac_t""$ac_cv_cygwin" 1>&6
3053 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3054 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3055 echo "configure:3056: checking for mingw32 environment" >&5
3056 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
3057 echo $ac_n "(cached) $ac_c" 1>&6
3059 cat > conftest.$ac_ext <<EOF
3060 #line 3061 "configure"
3061 #include "confdefs.h"
3067 if { (eval echo configure:3068: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3071 echo "configure: failed program was:" >&5
3072 cat conftest.$ac_ext >&5
3079 echo "$ac_t""$ac_cv_mingw32" 1>&6
3081 test "$ac_cv_mingw32" = yes && MINGW32=yes
3082 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
3083 echo "configure:3084: checking for EMX OS/2 environment" >&5
3084 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
3085 echo $ac_n "(cached) $ac_c" 1>&6
3087 cat > conftest.$ac_ext <<EOF
3088 #line 3089 "configure"
3089 #include "confdefs.h"
3095 if { (eval echo configure:3096: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3099 echo "configure: failed program was:" >&5
3100 cat conftest.$ac_ext >&5
3107 echo "$ac_t""$ac_cv_emxos2" 1>&6
3109 test "$ac_cv_emxos2" = yes && EMXOS2=yes
3110 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3111 echo "configure:3112: checking how to run the C preprocessor" >&5
3112 # On Suns, sometimes $CPP names a directory.
3113 if test -n "$CPP" && test -d "$CPP"; then
3116 if test -z "$CPP"; then
3117 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
3118 echo $ac_n "(cached) $ac_c" 1>&6
3120 # This must be in double quotes, not single quotes, because CPP may get
3121 # substituted into the Makefile and "${CC-cc}" will confuse make.
3123 # On the NeXT, cc -E runs the code through the compiler's parser,
3124 # not just through cpp.
3125 cat > conftest.$ac_ext <<EOF
3126 #line 3127 "configure"
3127 #include "confdefs.h"
3131 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3132 { (eval echo configure:3133: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3133 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3134 if test -z "$ac_err"; then
3138 echo "configure: failed program was:" >&5
3139 cat conftest.$ac_ext >&5
3141 CPP="${CC-cc} -E -traditional-cpp"
3142 cat > conftest.$ac_ext <<EOF
3143 #line 3144 "configure"
3144 #include "confdefs.h"
3148 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3149 { (eval echo configure:3150: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3150 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3151 if test -z "$ac_err"; then
3155 echo "configure: failed program was:" >&5
3156 cat conftest.$ac_ext >&5
3158 CPP="${CC-cc} -nologo -E"
3159 cat > conftest.$ac_ext <<EOF
3160 #line 3161 "configure"
3161 #include "confdefs.h"
3165 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3166 { (eval echo configure:3167: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3167 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3168 if test -z "$ac_err"; then
3172 echo "configure: failed program was:" >&5
3173 cat conftest.$ac_ext >&5
3182 ac_cv_prog_CPP="$CPP"
3184 CPP="$ac_cv_prog_CPP"
3186 ac_cv_prog_CPP="$CPP"
3188 echo "$ac_t""$CPP" 1>&6
3190 # Check whether --enable-fast-install or --disable-fast-install was given.
3191 if test "${enable_fast_install+set}" = set; then
3192 enableval="$enable_fast_install"
3193 p=${PACKAGE-default}
3195 yes) enable_fast_install=yes ;;
3196 no) enable_fast_install=no ;;
3198 enable_fast_install=no
3199 # Look at the argument we got. We use all the common list separators.
3200 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3201 for pkg in $enableval; do
3202 if test "X$pkg" = "X$p"; then
3203 enable_fast_install=yes
3210 enable_fast_install=yes
3213 # Extract the first word of "gcc", so it can be a program name with args.
3214 set dummy gcc; ac_word=$2
3215 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3216 echo "configure:3217: checking for $ac_word" >&5
3217 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3218 echo $ac_n "(cached) $ac_c" 1>&6
3220 if test -n "$CC"; then
3221 ac_cv_prog_CC="$CC" # Let the user override the test.
3223 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3225 for ac_dir in $ac_dummy; do
3226 test -z "$ac_dir" && ac_dir=.
3227 if test -f $ac_dir/$ac_word; then
3236 if test -n "$CC"; then
3237 echo "$ac_t""$CC" 1>&6
3239 echo "$ac_t""no" 1>&6
3242 if test -z "$CC"; then
3243 # Extract the first word of "cc", so it can be a program name with args.
3244 set dummy cc; ac_word=$2
3245 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3246 echo "configure:3247: checking for $ac_word" >&5
3247 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3248 echo $ac_n "(cached) $ac_c" 1>&6
3250 if test -n "$CC"; then
3251 ac_cv_prog_CC="$CC" # Let the user override the test.
3253 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3256 for ac_dir in $ac_dummy; do
3257 test -z "$ac_dir" && ac_dir=.
3258 if test -f $ac_dir/$ac_word; then
3259 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
3260 ac_prog_rejected=yes
3268 if test $ac_prog_rejected = yes; then
3269 # We found a bogon in the path, so make sure we never use it.
3270 set dummy $ac_cv_prog_CC
3272 if test $# -gt 0; then
3273 # We chose a different compiler from the bogus one.
3274 # However, it has the same basename, so the bogon will be chosen
3275 # first if we set CC to just the basename; use the full file name.
3277 set dummy "$ac_dir/$ac_word" "$@"
3285 if test -n "$CC"; then
3286 echo "$ac_t""$CC" 1>&6
3288 echo "$ac_t""no" 1>&6
3291 if test -z "$CC"; then
3292 case "`uname -s`" in
3293 *win32* | *WIN32* | *CYGWIN*)
3294 # Extract the first word of "cl", so it can be a program name with args.
3295 set dummy cl; ac_word=$2
3296 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3297 echo "configure:3298: checking for $ac_word" >&5
3298 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3299 echo $ac_n "(cached) $ac_c" 1>&6
3301 if test -n "$CC"; then
3302 ac_cv_prog_CC="$CC" # Let the user override the test.
3304 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3306 for ac_dir in $ac_dummy; do
3307 test -z "$ac_dir" && ac_dir=.
3308 if test -f $ac_dir/$ac_word; then
3317 if test -n "$CC"; then
3318 echo "$ac_t""$CC" 1>&6
3320 echo "$ac_t""no" 1>&6
3325 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
3328 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
3329 echo "configure:3330: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
3332 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3333 ac_cpp='$CPP $CPPFLAGS'
3334 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3335 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3336 cross_compiling=$ac_cv_prog_cc_cross
3338 cat > conftest.$ac_ext << EOF
3340 #line 3341 "configure"
3341 #include "confdefs.h"
3345 if { (eval echo configure:3346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3346 ac_cv_prog_cc_works=yes
3347 # If we can't run a trivial program, we are probably using a cross compiler.
3348 if (./conftest; exit) 2>/dev/null; then
3349 ac_cv_prog_cc_cross=no
3351 ac_cv_prog_cc_cross=yes
3354 echo "configure: failed program was:" >&5
3355 cat conftest.$ac_ext >&5
3356 ac_cv_prog_cc_works=no
3360 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3361 ac_cpp='$CPP $CPPFLAGS'
3362 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3363 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3364 cross_compiling=$ac_cv_prog_cc_cross
3366 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
3367 if test $ac_cv_prog_cc_works = no; then
3368 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
3370 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
3371 echo "configure:3372: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
3372 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
3373 cross_compiling=$ac_cv_prog_cc_cross
3375 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
3376 echo "configure:3377: checking whether we are using GNU C" >&5
3377 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
3378 echo $ac_n "(cached) $ac_c" 1>&6
3380 cat > conftest.c <<EOF
3385 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:3386: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
3392 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
3394 if test $ac_cv_prog_gcc = yes; then
3400 ac_test_CFLAGS="${CFLAGS+set}"
3401 ac_save_CFLAGS="$CFLAGS"
3403 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
3404 echo "configure:3405: checking whether ${CC-cc} accepts -g" >&5
3405 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
3406 echo $ac_n "(cached) $ac_c" 1>&6
3408 echo 'void f(){}' > conftest.c
3409 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
3418 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
3419 if test "$ac_test_CFLAGS" = set; then
3420 CFLAGS="$ac_save_CFLAGS"
3421 elif test $ac_cv_prog_cc_g = yes; then
3422 if test "$GCC" = yes; then
3428 if test "$GCC" = yes; then
3435 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3436 if test "${with_gnu_ld+set}" = set; then
3437 withval="$with_gnu_ld"
3438 test "$withval" = no || with_gnu_ld=yes
3444 if test "$GCC" = yes; then
3445 # Check if gcc -print-prog-name=ld gives a path.
3446 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
3447 echo "configure:3448: checking for ld used by GCC" >&5
3450 # gcc leaves a trailing carriage return which upsets mingw
3451 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3453 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3456 # Accept absolute paths.
3457 [\\/]* | [A-Za-z]:[\\/]*)
3458 re_direlt='/[^/][^/]*/\.\./'
3459 # Canonicalize the path of ld
3460 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3461 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3462 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3464 test -z "$LD" && LD="$ac_prog"
3467 # If it fails, then pretend we aren't using GCC.
3471 # If it is relative, then search for the first ld in PATH.
3475 elif test "$with_gnu_ld" = yes; then
3476 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
3477 echo "configure:3478: checking for GNU ld" >&5
3479 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
3480 echo "configure:3481: checking for non-GNU ld" >&5
3482 if eval "test \"\${lt_cv_path_LD+set}\" = set"; then
3483 echo $ac_n "(cached) $ac_c" 1>&6
3485 if test -z "$LD"; then
3486 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3487 for ac_dir in $PATH; do
3488 test -z "$ac_dir" && ac_dir=.
3489 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3490 lt_cv_path_LD="$ac_dir/$ac_prog"
3491 # Check to see if the program is GNU ld. I'd rather use --version,
3492 # but apparently some GNU ld's only accept -v.
3493 # Break only if it was the GNU/non-GNU ld that we prefer.
3494 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3495 test "$with_gnu_ld" != no && break
3497 test "$with_gnu_ld" != yes && break
3503 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3508 if test -n "$LD"; then
3509 echo "$ac_t""$LD" 1>&6
3511 echo "$ac_t""no" 1>&6
3513 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
3514 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
3515 echo "configure:3516: checking if the linker ($LD) is GNU ld" >&5
3516 if eval "test \"\${lt_cv_prog_gnu_ld+set}\" = set"; then
3517 echo $ac_n "(cached) $ac_c" 1>&6
3519 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3520 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3521 lt_cv_prog_gnu_ld=yes
3523 lt_cv_prog_gnu_ld=no
3527 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
3528 with_gnu_ld=$lt_cv_prog_gnu_ld
3531 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
3532 echo "configure:3533: checking for $LD option to reload object files" >&5
3533 if eval "test \"\${lt_cv_ld_reload_flag+set}\" = set"; then
3534 echo $ac_n "(cached) $ac_c" 1>&6
3536 lt_cv_ld_reload_flag='-r'
3539 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
3540 reload_flag=$lt_cv_ld_reload_flag
3541 test -n "$reload_flag" && reload_flag=" $reload_flag"
3543 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
3544 echo "configure:3545: checking for BSD-compatible nm" >&5
3545 if eval "test \"\${lt_cv_path_NM+set}\" = set"; then
3546 echo $ac_n "(cached) $ac_c" 1>&6
3548 if test -n "$NM"; then
3549 # Let the user override the test.
3552 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3553 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3554 test -z "$ac_dir" && ac_dir=.
3555 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3556 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3557 # Check to see if the nm accepts a BSD-compat flag.
3558 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3559 # nm: unknown option "B" ignored
3560 # Tru64's nm complains that /dev/null is an invalid object file
3561 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3562 lt_cv_path_NM="$tmp_nm -B"
3564 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3565 lt_cv_path_NM="$tmp_nm -p"
3568 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3569 continue # so that we can try to find one that supports BSD flags
3574 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3579 echo "$ac_t""$NM" 1>&6
3581 echo $ac_n "checking for a sed that does not truncate output""... $ac_c" 1>&6
3582 echo "configure:3583: checking for a sed that does not truncate output" >&5
3583 if eval "test \"\${lt_cv_path_SED+set}\" = set"; then
3584 echo $ac_n "(cached) $ac_c" 1>&6
3586 # Loop through the user's path and test for sed and gsed.
3587 # Then use that list of sed's as ones to test for truncation.
3588 as_executable_p="test -f"
3589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3593 test -z "$as_dir" && as_dir=.
3594 for ac_prog in sed gsed; do
3595 for ac_exec_ext in '' $ac_executable_extensions; do
3596 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3597 _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3603 # Create a temporary directory, and hook for its removal unless debugging.
3606 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3607 trap '{ (exit 1); exit 1; }' 1 2 13 15
3610 # Create a (secure) tmp directory for tmp files.
3613 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3614 test -n "$tmp" && test -d "$tmp"
3617 tmp=$TMPDIR/sed$$-$RANDOM
3618 (umask 077 && mkdir $tmp)
3621 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3622 { (exit 1); exit 1; }
3626 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3627 # along with /bin/sed that truncates output.
3628 for _sed in $_sed_list /usr/xpg4/bin/sed; do
3629 test ! -f ${_sed} && break
3630 cat /dev/null > "$tmp/sed.in"
3632 echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
3633 # Check for GNU sed and select it if it is found.
3634 if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
3635 lt_cv_path_SED=${_sed}
3639 cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3640 mv "$tmp/sed.tmp" "$tmp/sed.in"
3641 cp "$tmp/sed.in" "$tmp/sed.nl"
3642 echo >>"$tmp/sed.nl"
3643 ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
3644 cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
3645 # 40000 chars as input seems more than enough
3646 test $_count -gt 10 && break
3647 _count=`expr $_count + 1`
3648 if test $_count -gt $_max; then
3650 lt_cv_path_SED=$_sed
3658 if test "X$SED" != "X"; then
3663 echo "$ac_t""$SED" 1>&6
3665 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3666 echo "configure:3667: checking whether ln -s works" >&5
3667 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3668 echo $ac_n "(cached) $ac_c" 1>&6
3671 if ln -s X conftestdata 2>/dev/null
3674 ac_cv_prog_LN_S="ln -s"
3679 LN_S="$ac_cv_prog_LN_S"
3680 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3681 echo "$ac_t""yes" 1>&6
3683 echo "$ac_t""no" 1>&6
3686 echo $ac_n "checking how to recognise dependent libraries""... $ac_c" 1>&6
3687 echo "configure:3688: checking how to recognise dependent libraries" >&5
3688 if eval "test \"\${lt_cv_deplibs_check_method+set}\" = set"; then
3689 echo $ac_n "(cached) $ac_c" 1>&6
3691 lt_cv_file_magic_cmd='$MAGIC_CMD'
3692 lt_cv_file_magic_test_file=
3693 lt_cv_deplibs_check_method='unknown'
3694 # Need to set the preceding variable on all platforms that support
3695 # interlibrary dependencies.
3696 # 'none' -- dependencies not supported.
3697 # `unknown' -- same as none, but documents that we really don't know.
3698 # 'pass_all' -- all dependencies passed with no checks.
3699 # 'test_compile' -- check by making test program.
3700 # 'file_magic [[regex]]' -- check by looking for files in library path
3701 # which responds to the $file_magic_cmd with a given egrep regex.
3702 # If you have `file' or equivalent on your system and you're not sure
3703 # whether `pass_all' will *always* work, you probably want this one.
3707 lt_cv_deplibs_check_method=pass_all
3711 lt_cv_deplibs_check_method=pass_all
3715 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3716 lt_cv_file_magic_cmd='/usr/bin/file -L'
3717 lt_cv_file_magic_test_file=/shlib/libc.so
3720 cygwin* | mingw* | pw32*)
3721 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3722 lt_cv_file_magic_cmd='$OBJDUMP -f'
3725 darwin* | rhapsody*)
3726 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3727 lt_cv_file_magic_cmd='/usr/bin/file -L'
3729 rhapsody* | darwin1.[012])
3730 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3733 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3739 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3742 # Not sure whether the presence of OpenBSD here was a mistake.
3743 # Let's accept both of them until this is cleared up.
3744 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3745 lt_cv_file_magic_cmd=/usr/bin/file
3746 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3750 lt_cv_deplibs_check_method=pass_all
3755 lt_cv_deplibs_check_method=pass_all
3759 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3760 lt_cv_file_magic_cmd=/usr/bin/file
3761 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3764 irix5* | irix6* | nonstopux*)
3766 irix5* | nonstopux*)
3767 # this will be overridden with pass_all, but let us keep it just in case
3768 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3772 *-32|*"-32 ") libmagic=32-bit;;
3773 *-n32|*"-n32 ") libmagic=N32;;
3774 *-64|*"-64 ") libmagic=64-bit;;
3775 *) libmagic=never-match;;
3777 # this will be overridden with pass_all, but let us keep it just in case
3778 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3781 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3782 lt_cv_deplibs_check_method=pass_all
3785 # This must be Linux ELF.
3788 alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64*)
3789 lt_cv_deplibs_check_method=pass_all ;;
3791 # glibc up to 2.1.1 does not perform some relocations on ARM
3792 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3794 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3798 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3799 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3801 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3806 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3807 lt_cv_file_magic_cmd=/usr/bin/file
3808 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3812 lt_cv_file_magic_cmd=/usr/bin/file
3813 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3814 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3815 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3817 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3822 lt_cv_deplibs_check_method=pass_all
3825 osf3* | osf4* | osf5*)
3826 # this will be overridden with pass_all, but let us keep it just in case
3827 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3828 lt_cv_file_magic_test_file=/shlib/libc.so
3829 lt_cv_deplibs_check_method=pass_all
3833 lt_cv_deplibs_check_method=pass_all
3837 lt_cv_deplibs_check_method=pass_all
3838 lt_cv_file_magic_test_file=/lib/libc.so
3841 sysv5uw[78]* | sysv4*uw2*)
3842 lt_cv_deplibs_check_method=pass_all
3845 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3846 case $host_vendor in
3848 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]'
3849 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3852 lt_cv_deplibs_check_method=pass_all
3855 lt_cv_file_magic_cmd='/bin/file'
3856 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3859 lt_cv_file_magic_cmd='/bin/file'
3860 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3861 lt_cv_file_magic_test_file=/lib/libc.so
3864 lt_cv_deplibs_check_method=pass_all
3872 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
3873 file_magic_cmd=$lt_cv_file_magic_cmd
3874 deplibs_check_method=$lt_cv_deplibs_check_method
3876 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
3877 echo "configure:3878: checking for object suffix" >&5
3878 if eval "test \"\${ac_cv_objext+set}\" = set"; then
3879 echo $ac_n "(cached) $ac_c" 1>&6
3882 echo 'int i = 1;' > conftest.$ac_ext
3883 if { (eval echo configure:3884: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3884 for ac_file in conftest.*; do
3887 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
3891 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
3896 echo "$ac_t""$ac_cv_objext" 1>&6
3897 OBJEXT=$ac_cv_objext
3898 ac_objext=$ac_cv_objext
3903 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3904 echo "configure:3905: checking for executable suffix" >&5
3905 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
3906 echo $ac_n "(cached) $ac_c" 1>&6
3908 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
3912 echo 'int main () { return 0; }' > conftest.$ac_ext
3914 if { (eval echo configure:3915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3915 for file in conftest.*; do
3917 *.c | *.C | *.o | *.obj | *.xcoff) ;;
3918 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3922 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3925 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3930 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3931 echo "$ac_t""${ac_cv_exeext}" 1>&6
3934 if test $host != $build; then
3935 ac_tool_prefix=${host_alias}-
3943 # Check for command to grab the raw symbol name followed by C symbol from nm.
3944 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
3945 echo "configure:3946: checking command to parse $NM output" >&5
3946 if eval "test \"\${lt_cv_sys_global_symbol_pipe+set}\" = set"; then
3947 echo $ac_n "(cached) $ac_c" 1>&6
3950 # These are sane defaults that work on at least a few old systems.
3951 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
3953 # Character class describing NM global symbol codes.
3954 symcode='[BCDEGRST]'
3956 # Regexp to match symbols that can be accessed directly from C.
3957 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3959 # Transform the above into a raw symbol and a C symbol.
3960 symxfrm='\1 \2\3 \3'
3962 # Transform an extracted symbol line into a proper C declaration
3963 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3965 # Transform an extracted symbol line into symbol name and symbol address
3966 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'"
3968 # Define system-specific variables.
3973 cygwin* | mingw* | pw32*)
3974 symcode='[ABCDGISTW]'
3976 hpux*) # Its linker distinguishes data from code symbols
3977 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3978 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'"
3981 symcode='[BCDEGRST]'
3984 symcode='[BCDEGQRST]'
3994 # Handle CRLF in mingw tool chain
3998 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4002 # If we're using GNU nm, then use its standard symbol codes.
4003 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
4004 symcode='[ABCDGISTW]'
4007 # Try without a prefix undercore, then with it.
4008 for ac_symprfx in "" "_"; do
4010 # Write the raw and C identifiers.
4011 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4013 # Check to see that the pipe works correctly.
4016 cat > conftest.$ac_ext <<EOF
4021 void nm_test_func(){}
4025 int main(){nm_test_var='a';nm_test_func();return(0);}
4028 if { (eval echo configure:4029: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4029 # Now try to grab the symbols.
4031 if { (eval echo configure:4032: \"$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
4032 # Try sorting and uniquifying the output.
4033 if sort "$nlist" | uniq > "$nlist"T; then
4034 mv -f "$nlist"T "$nlist"
4039 # Make sure that we snagged all the symbols we need.
4040 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4041 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4042 cat <<EOF > conftest.$ac_ext
4048 # Now generate the symbol file.
4049 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4051 cat <<EOF >> conftest.$ac_ext
4052 #if defined (__STDC__) && __STDC__
4053 # define lt_ptr void *
4055 # define lt_ptr char *
4059 /* The mapping between symbol names and symbols. */
4064 lt_preloaded_symbols[] =
4067 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4068 cat <<\EOF >> conftest.$ac_ext
4076 # Now try linking the two files.
4077 mv conftest.$ac_objext conftstm.$ac_objext
4079 save_CFLAGS="$CFLAGS"
4080 LIBS="conftstm.$ac_objext"
4081 CFLAGS="$CFLAGS$no_builtin_flag"
4082 if { (eval echo configure:4083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
4086 CFLAGS="$save_CFLAGS"
4088 echo "cannot find nm_test_func in $nlist" >&5
4091 echo "cannot find nm_test_var in $nlist" >&5
4094 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4097 echo "$progname: failed program was:" >&5
4098 cat conftest.$ac_ext >&5
4100 rm -f conftest* conftst*
4102 # Do not use the global_symbol_pipe unless it works.
4103 if test "$pipe_works" = yes; then
4106 lt_cv_sys_global_symbol_pipe=
4112 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4113 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4114 global_symbol_to_cdecl=
4115 global_symbol_to_c_name_address=
4117 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4118 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4120 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4122 echo "$ac_t""failed" 1>&6
4124 echo "$ac_t""ok" 1>&6
4127 for ac_hdr in dlfcn.h
4129 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4130 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4131 echo "configure:4132: checking for $ac_hdr" >&5
4132 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4133 echo $ac_n "(cached) $ac_c" 1>&6
4135 cat > conftest.$ac_ext <<EOF
4136 #line 4137 "configure"
4137 #include "confdefs.h"
4140 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4141 { (eval echo configure:4142: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4142 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4143 if test -z "$ac_err"; then
4145 eval "ac_cv_header_$ac_safe=yes"
4148 echo "configure: failed program was:" >&5
4149 cat conftest.$ac_ext >&5
4151 eval "ac_cv_header_$ac_safe=no"
4155 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4156 echo "$ac_t""yes" 1>&6
4157 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4158 cat >> confdefs.h <<EOF
4159 #define $ac_tr_hdr 1
4163 echo "$ac_t""no" 1>&6
4172 # Only perform the check for file, if the check method requires it
4173 case $deplibs_check_method in
4175 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4176 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
4177 echo "configure:4178: checking for ${ac_tool_prefix}file" >&5
4178 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
4179 echo $ac_n "(cached) $ac_c" 1>&6
4183 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4186 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4189 ac_save_MAGIC_CMD="$MAGIC_CMD"
4190 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4191 ac_dummy="/usr/bin:$PATH"
4192 for ac_dir in $ac_dummy; do
4193 test -z "$ac_dir" && ac_dir=.
4194 if test -f $ac_dir/${ac_tool_prefix}file; then
4195 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4196 if test -n "$file_magic_test_file"; then
4197 case $deplibs_check_method in
4199 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4200 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4201 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4202 egrep "$file_magic_regex" > /dev/null; then
4207 *** Warning: the command libtool uses to detect shared libraries,
4208 *** $file_magic_cmd, produces output that libtool cannot recognize.
4209 *** The result is that libtool may fail to recognize shared libraries
4210 *** as such. This will affect the creation of libtool libraries that
4211 *** depend on shared libraries, but programs linked with such libtool
4212 *** libraries will work regardless of this problem. Nevertheless, you
4213 *** may want to report the problem to your system manager and/or to
4214 *** bug-libtool@gnu.org
4224 MAGIC_CMD="$ac_save_MAGIC_CMD"
4229 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4230 if test -n "$MAGIC_CMD"; then
4231 echo "$ac_t""$MAGIC_CMD" 1>&6
4233 echo "$ac_t""no" 1>&6
4236 if test -z "$lt_cv_path_MAGIC_CMD"; then
4237 if test -n "$ac_tool_prefix"; then
4238 echo $ac_n "checking for file""... $ac_c" 1>&6
4239 echo "configure:4240: checking for file" >&5
4240 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
4241 echo $ac_n "(cached) $ac_c" 1>&6
4245 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4248 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4251 ac_save_MAGIC_CMD="$MAGIC_CMD"
4252 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4253 ac_dummy="/usr/bin:$PATH"
4254 for ac_dir in $ac_dummy; do
4255 test -z "$ac_dir" && ac_dir=.
4256 if test -f $ac_dir/file; then
4257 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4258 if test -n "$file_magic_test_file"; then
4259 case $deplibs_check_method in
4261 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4262 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4263 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4264 egrep "$file_magic_regex" > /dev/null; then
4269 *** Warning: the command libtool uses to detect shared libraries,
4270 *** $file_magic_cmd, produces output that libtool cannot recognize.
4271 *** The result is that libtool may fail to recognize shared libraries
4272 *** as such. This will affect the creation of libtool libraries that
4273 *** depend on shared libraries, but programs linked with such libtool
4274 *** libraries will work regardless of this problem. Nevertheless, you
4275 *** may want to report the problem to your system manager and/or to
4276 *** bug-libtool@gnu.org
4286 MAGIC_CMD="$ac_save_MAGIC_CMD"
4291 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4292 if test -n "$MAGIC_CMD"; then
4293 echo "$ac_t""$MAGIC_CMD" 1>&6
4295 echo "$ac_t""no" 1>&6
4307 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4308 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4309 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4310 echo "configure:4311: checking for $ac_word" >&5
4311 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
4312 echo $ac_n "(cached) $ac_c" 1>&6
4314 if test -n "$RANLIB"; then
4315 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4317 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4319 for ac_dir in $ac_dummy; do
4320 test -z "$ac_dir" && ac_dir=.
4321 if test -f $ac_dir/$ac_word; then
4322 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4329 RANLIB="$ac_cv_prog_RANLIB"
4330 if test -n "$RANLIB"; then
4331 echo "$ac_t""$RANLIB" 1>&6
4333 echo "$ac_t""no" 1>&6
4337 if test -z "$ac_cv_prog_RANLIB"; then
4338 if test -n "$ac_tool_prefix"; then
4339 # Extract the first word of "ranlib", so it can be a program name with args.
4340 set dummy ranlib; ac_word=$2
4341 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4342 echo "configure:4343: checking for $ac_word" >&5
4343 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
4344 echo $ac_n "(cached) $ac_c" 1>&6
4346 if test -n "$RANLIB"; then
4347 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4349 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4351 for ac_dir in $ac_dummy; do
4352 test -z "$ac_dir" && ac_dir=.
4353 if test -f $ac_dir/$ac_word; then
4354 ac_cv_prog_RANLIB="ranlib"
4359 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
4362 RANLIB="$ac_cv_prog_RANLIB"
4363 if test -n "$RANLIB"; then
4364 echo "$ac_t""$RANLIB" 1>&6
4366 echo "$ac_t""no" 1>&6
4374 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4375 set dummy ${ac_tool_prefix}strip; ac_word=$2
4376 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4377 echo "configure:4378: checking for $ac_word" >&5
4378 if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then
4379 echo $ac_n "(cached) $ac_c" 1>&6
4381 if test -n "$STRIP"; then
4382 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4384 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4386 for ac_dir in $ac_dummy; do
4387 test -z "$ac_dir" && ac_dir=.
4388 if test -f $ac_dir/$ac_word; then
4389 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4396 STRIP="$ac_cv_prog_STRIP"
4397 if test -n "$STRIP"; then
4398 echo "$ac_t""$STRIP" 1>&6
4400 echo "$ac_t""no" 1>&6
4404 if test -z "$ac_cv_prog_STRIP"; then
4405 if test -n "$ac_tool_prefix"; then
4406 # Extract the first word of "strip", so it can be a program name with args.
4407 set dummy strip; ac_word=$2
4408 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4409 echo "configure:4410: checking for $ac_word" >&5
4410 if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then
4411 echo $ac_n "(cached) $ac_c" 1>&6
4413 if test -n "$STRIP"; then
4414 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4416 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4418 for ac_dir in $ac_dummy; do
4419 test -z "$ac_dir" && ac_dir=.
4420 if test -f $ac_dir/$ac_word; then
4421 ac_cv_prog_STRIP="strip"
4426 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
4429 STRIP="$ac_cv_prog_STRIP"
4430 if test -n "$STRIP"; then
4431 echo "$ac_t""$STRIP" 1>&6
4433 echo "$ac_t""no" 1>&6
4443 enable_win32_dll=yes
4445 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4446 if test "${enable_libtool_lock+set}" = set; then
4447 enableval="$enable_libtool_lock"
4451 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4453 # Some flags need to be propagated to the compiler or linker for good
4457 # Find out which ABI we are using.
4458 echo '#line 4459 "configure"' > conftest.$ac_ext
4459 if { (eval echo configure:4460: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4460 case `/usr/bin/file conftest.$ac_objext` in
4476 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4477 SAVE_CFLAGS="$CFLAGS"
4478 CFLAGS="$CFLAGS -belf"
4479 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
4480 echo "configure:4481: checking whether the C compiler needs -belf" >&5
4481 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
4482 echo $ac_n "(cached) $ac_c" 1>&6
4486 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4487 ac_cpp='$CPP $CPPFLAGS'
4488 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4489 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4490 cross_compiling=$ac_cv_prog_cc_cross
4492 cat > conftest.$ac_ext <<EOF
4493 #line 4494 "configure"
4494 #include "confdefs.h"
4500 if { (eval echo configure:4501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4502 lt_cv_cc_needs_belf=yes
4504 echo "configure: failed program was:" >&5
4505 cat conftest.$ac_ext >&5
4507 lt_cv_cc_needs_belf=no
4511 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4512 ac_cpp='$CPP $CPPFLAGS'
4513 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4514 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4515 cross_compiling=$ac_cv_prog_cc_cross
4519 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
4520 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4521 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4522 CFLAGS="$SAVE_CFLAGS"
4526 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4527 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4528 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4529 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4530 echo "configure:4531: checking for $ac_word" >&5
4531 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
4532 echo $ac_n "(cached) $ac_c" 1>&6
4534 if test -n "$DLLTOOL"; then
4535 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4537 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4539 for ac_dir in $ac_dummy; do
4540 test -z "$ac_dir" && ac_dir=.
4541 if test -f $ac_dir/$ac_word; then
4542 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4549 DLLTOOL="$ac_cv_prog_DLLTOOL"
4550 if test -n "$DLLTOOL"; then
4551 echo "$ac_t""$DLLTOOL" 1>&6
4553 echo "$ac_t""no" 1>&6
4557 if test -z "$ac_cv_prog_DLLTOOL"; then
4558 if test -n "$ac_tool_prefix"; then
4559 # Extract the first word of "dlltool", so it can be a program name with args.
4560 set dummy dlltool; ac_word=$2
4561 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4562 echo "configure:4563: checking for $ac_word" >&5
4563 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
4564 echo $ac_n "(cached) $ac_c" 1>&6
4566 if test -n "$DLLTOOL"; then
4567 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4569 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4571 for ac_dir in $ac_dummy; do
4572 test -z "$ac_dir" && ac_dir=.
4573 if test -f $ac_dir/$ac_word; then
4574 ac_cv_prog_DLLTOOL="dlltool"
4579 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
4582 DLLTOOL="$ac_cv_prog_DLLTOOL"
4583 if test -n "$DLLTOOL"; then
4584 echo "$ac_t""$DLLTOOL" 1>&6
4586 echo "$ac_t""no" 1>&6
4594 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4595 set dummy ${ac_tool_prefix}as; ac_word=$2
4596 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4597 echo "configure:4598: checking for $ac_word" >&5
4598 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
4599 echo $ac_n "(cached) $ac_c" 1>&6
4601 if test -n "$AS"; then
4602 ac_cv_prog_AS="$AS" # Let the user override the test.
4604 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4606 for ac_dir in $ac_dummy; do
4607 test -z "$ac_dir" && ac_dir=.
4608 if test -f $ac_dir/$ac_word; then
4609 ac_cv_prog_AS="${ac_tool_prefix}as"
4617 if test -n "$AS"; then
4618 echo "$ac_t""$AS" 1>&6
4620 echo "$ac_t""no" 1>&6
4624 if test -z "$ac_cv_prog_AS"; then
4625 if test -n "$ac_tool_prefix"; then
4626 # Extract the first word of "as", so it can be a program name with args.
4627 set dummy as; ac_word=$2
4628 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4629 echo "configure:4630: checking for $ac_word" >&5
4630 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
4631 echo $ac_n "(cached) $ac_c" 1>&6
4633 if test -n "$AS"; then
4634 ac_cv_prog_AS="$AS" # Let the user override the test.
4636 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4638 for ac_dir in $ac_dummy; do
4639 test -z "$ac_dir" && ac_dir=.
4640 if test -f $ac_dir/$ac_word; then
4646 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
4650 if test -n "$AS"; then
4651 echo "$ac_t""$AS" 1>&6
4653 echo "$ac_t""no" 1>&6
4661 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4662 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4663 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4664 echo "configure:4665: checking for $ac_word" >&5
4665 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
4666 echo $ac_n "(cached) $ac_c" 1>&6
4668 if test -n "$OBJDUMP"; then
4669 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4671 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4673 for ac_dir in $ac_dummy; do
4674 test -z "$ac_dir" && ac_dir=.
4675 if test -f $ac_dir/$ac_word; then
4676 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4683 OBJDUMP="$ac_cv_prog_OBJDUMP"
4684 if test -n "$OBJDUMP"; then
4685 echo "$ac_t""$OBJDUMP" 1>&6
4687 echo "$ac_t""no" 1>&6
4691 if test -z "$ac_cv_prog_OBJDUMP"; then
4692 if test -n "$ac_tool_prefix"; then
4693 # Extract the first word of "objdump", so it can be a program name with args.
4694 set dummy objdump; ac_word=$2
4695 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4696 echo "configure:4697: checking for $ac_word" >&5
4697 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
4698 echo $ac_n "(cached) $ac_c" 1>&6
4700 if test -n "$OBJDUMP"; then
4701 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4703 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4705 for ac_dir in $ac_dummy; do
4706 test -z "$ac_dir" && ac_dir=.
4707 if test -f $ac_dir/$ac_word; then
4708 ac_cv_prog_OBJDUMP="objdump"
4713 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
4716 OBJDUMP="$ac_cv_prog_OBJDUMP"
4717 if test -n "$OBJDUMP"; then
4718 echo "$ac_t""$OBJDUMP" 1>&6
4720 echo "$ac_t""no" 1>&6
4729 # recent cygwin and mingw systems supply a stub DllMain which the user
4730 # can override, but on older systems we have to supply one
4731 echo $ac_n "checking if libtool should supply DllMain function""... $ac_c" 1>&6
4732 echo "configure:4733: checking if libtool should supply DllMain function" >&5
4733 if eval "test \"\${lt_cv_need_dllmain+set}\" = set"; then
4734 echo $ac_n "(cached) $ac_c" 1>&6
4736 cat > conftest.$ac_ext <<EOF
4737 #line 4738 "configure"
4738 #include "confdefs.h"
4741 extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
4745 if { (eval echo configure:4746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4747 lt_cv_need_dllmain=no
4749 echo "configure: failed program was:" >&5
4750 cat conftest.$ac_ext >&5
4752 lt_cv_need_dllmain=yes
4757 echo "$ac_t""$lt_cv_need_dllmain" 1>&6
4760 *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
4761 # old mingw systems require "-dll" to link a DLL, while more recent ones
4763 SAVE_CFLAGS="$CFLAGS"
4764 CFLAGS="$CFLAGS -mdll"
4765 echo $ac_n "checking how to link DLLs""... $ac_c" 1>&6
4766 echo "configure:4767: checking how to link DLLs" >&5
4767 if eval "test \"\${lt_cv_cc_dll_switch+set}\" = set"; then
4768 echo $ac_n "(cached) $ac_c" 1>&6
4770 cat > conftest.$ac_ext <<EOF
4771 #line 4772 "configure"
4772 #include "confdefs.h"
4778 if { (eval echo configure:4779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4780 lt_cv_cc_dll_switch=-mdll
4782 echo "configure: failed program was:" >&5
4783 cat conftest.$ac_ext >&5
4785 lt_cv_cc_dll_switch=-dll
4790 echo "$ac_t""$lt_cv_cc_dll_switch" 1>&6
4791 CFLAGS="$SAVE_CFLAGS" ;;
4792 *-*-cygwin* | *-*-pw32*)
4793 # cygwin systems need to pass --dll to the linker, and not link
4794 # crt.o which will require a WinMain@16 definition.
4795 lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
4801 # Sed substitution that helps us do robust quoting. It backslashifies
4802 # metacharacters that are still active within double-quoted strings.
4803 Xsed='sed -e s/^X//'
4804 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4806 # Same as above, but do not quote variable references.
4807 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4809 # Sed substitution to delay expansion of an escaped shell variable in a
4810 # double_quote_subst'ed string.
4811 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4817 default_ofile=libtool
4818 can_build_shared=yes
4820 # All known linkers require a `.a' archive for static linking (except M$VC,
4821 # which needs '.lib').
4823 ltmain="$ac_aux_dir/ltmain.sh"
4824 ofile="$default_ofile"
4825 with_gnu_ld="$lt_cv_prog_gnu_ld"
4826 need_locks="$enable_libtool_lock"
4829 old_CFLAGS="$CFLAGS"
4831 # Set sane defaults for various variables
4832 test -z "$AR" && AR=ar
4833 test -z "$AR_FLAGS" && AR_FLAGS=cru
4834 test -z "$AS" && AS=as
4835 test -z "$CC" && CC=cc
4836 test -z "$DLLTOOL" && DLLTOOL=dlltool
4837 test -z "$LD" && LD=ld
4838 test -z "$LN_S" && LN_S="ln -s"
4839 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4840 test -z "$NM" && NM=nm
4841 test -z "$OBJDUMP" && OBJDUMP=objdump
4842 test -z "$RANLIB" && RANLIB=:
4843 test -z "$STRIP" && STRIP=:
4844 test -z "$ac_objext" && ac_objext=o
4846 if test x"$host" != x"$build"; then
4847 ac_tool_prefix=${host_alias}-
4852 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4855 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4860 # AIX sometimes has problems with the GCC collect2 program. For some
4861 # reason, if we set the COLLECT_NAMES environment variable, the problems
4862 # vanish in a puff of smoke.
4863 if test "X${COLLECT_NAMES+set}" != Xset; then
4865 export COLLECT_NAMES
4870 # Determine commands to create old-style static archives.
4871 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4872 old_postinstall_cmds='chmod 644 $oldlib'
4873 old_postuninstall_cmds=
4875 if test -n "$RANLIB"; then
4878 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4881 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4884 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4887 # Allow CC to be a program name with arguments.
4891 echo $ac_n "checking for objdir""... $ac_c" 1>&6
4892 echo "configure:4893: checking for objdir" >&5
4893 rm -f .libs 2>/dev/null
4894 mkdir .libs 2>/dev/null
4895 if test -d .libs; then
4898 # MS-DOS does not allow filenames that begin with a dot.
4901 rmdir .libs 2>/dev/null
4902 echo "$ac_t""$objdir" 1>&6
4905 # Check whether --with-pic or --without-pic was given.
4906 if test "${with_pic+set}" = set; then
4913 test -z "$pic_mode" && pic_mode=default
4915 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
4916 # in isolation, and that seeing it set (from the cache) indicates that
4917 # the associated values are set (in the cache) correctly too.
4918 echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6
4919 echo "configure:4920: checking for $compiler option to produce PIC" >&5
4920 if eval "test \"\${lt_cv_prog_cc_pic+set}\" = set"; then
4921 echo $ac_n "(cached) $ac_c" 1>&6
4924 lt_cv_prog_cc_shlib=
4926 lt_cv_prog_cc_static=
4927 lt_cv_prog_cc_no_builtin=
4928 lt_cv_prog_cc_can_build_shared=$can_build_shared
4930 if test "$GCC" = yes; then
4931 lt_cv_prog_cc_wl='-Wl,'
4932 lt_cv_prog_cc_static='-static'
4936 # Below there is a dirty hack to force normal static linking with -ldl
4937 # The problem is because libdl dynamically linked with both libc and
4938 # libC (AIX C++ library), which obviously doesn't included in libraries
4939 # list by gcc. This cause undefined symbols with -static flags.
4940 # This hack allows C programs to be linked with "-static -ldl", but
4941 # not sure about C++ programs.
4942 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
4945 # FIXME: we need at least 68020 code to build shared libraries, but
4946 # adding the `-m68020' flag to GCC prevents building anything better,
4948 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
4950 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4951 # PIC is the default for these OSes.
4953 darwin* | rhapsody*)
4954 # PIC is the default on this platform
4955 # Common symbols not allowed in MH_DYLIB files
4956 lt_cv_prog_cc_pic='-fno-common'
4958 cygwin* | mingw* | pw32* | os2*)
4959 # This hack is so that the source file can tell whether it is being
4960 # built for inclusion in a dll (and should export symbols for example).
4961 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4964 if test -d /usr/nec; then
4965 lt_cv_prog_cc_pic=-Kconform_pic
4969 lt_cv_prog_cc_pic='-fPIC'
4973 # PORTME Check for PIC flags for the system compiler.
4975 aix3* | aix4* | aix5*)
4976 lt_cv_prog_cc_wl='-Wl,'
4977 # All AIX code is PIC.
4978 if test "$host_cpu" = ia64; then
4979 # AIX 5 now supports IA64 processor
4980 lt_cv_prog_cc_static='-Bstatic'
4982 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
4986 hpux9* | hpux10* | hpux11*)
4987 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
4988 lt_cv_prog_cc_wl='-Wl,'
4989 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
4990 lt_cv_prog_cc_pic='+Z'
4993 irix5* | irix6* | nonstopux*)
4994 lt_cv_prog_cc_wl='-Wl,'
4995 lt_cv_prog_cc_static='-non_shared'
4996 # PIC (with -KPIC) is the default.
4999 cygwin* | mingw* | pw32* | os2*)
5000 # This hack is so that the source file can tell whether it is being
5001 # built for inclusion in a dll (and should export symbols for example).
5002 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5006 lt_cv_prog_cc_pic='-KPIC'
5007 lt_cv_prog_cc_static='-Bstatic'
5011 # XPLINK code is PIC by default
5014 osf3* | osf4* | osf5*)
5015 # All OSF/1 code is PIC.
5016 lt_cv_prog_cc_wl='-Wl,'
5017 lt_cv_prog_cc_static='-non_shared'
5021 lt_cv_prog_cc_pic='-Kpic'
5022 lt_cv_prog_cc_static='-dn'
5023 lt_cv_prog_cc_shlib='-belf'
5027 lt_cv_prog_cc_pic='-KPIC'
5028 lt_cv_prog_cc_static='-Bstatic'
5029 lt_cv_prog_cc_wl='-Wl,'
5033 lt_cv_prog_cc_pic='-PIC'
5034 lt_cv_prog_cc_static='-Bstatic'
5035 lt_cv_prog_cc_wl='-Qoption ld '
5038 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5039 lt_cv_prog_cc_pic='-KPIC'
5040 lt_cv_prog_cc_static='-Bstatic'
5041 lt_cv_prog_cc_wl='-Wl,'
5045 lt_cv_prog_cc_pic='-pic'
5046 lt_cv_prog_cc_static='-Bstatic'
5050 if test -d /usr/nec ;then
5051 lt_cv_prog_cc_pic='-Kconform_pic'
5052 lt_cv_prog_cc_static='-Bstatic'
5057 lt_cv_prog_cc_can_build_shared=no
5064 if test -z "$lt_cv_prog_cc_pic"; then
5065 echo "$ac_t""none" 1>&6
5067 echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6
5069 # Check to make sure the pic_flag actually works.
5070 echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6
5071 echo "configure:5072: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5072 if eval "test \"\${lt_cv_prog_cc_pic_works+set}\" = set"; then
5073 echo $ac_n "(cached) $ac_c" 1>&6
5075 save_CFLAGS="$CFLAGS"
5076 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5077 cat > conftest.$ac_ext <<EOF
5078 #line 5079 "configure"
5079 #include "confdefs.h"
5085 if { (eval echo configure:5086: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5088 hpux9* | hpux10* | hpux11*)
5089 # On HP-UX, both CC and GCC only warn that PIC is supported... then
5090 # they create non-PIC objects. So, if there were any warnings, we
5091 # assume that PIC is not supported.
5092 if test -s conftest.err; then
5093 lt_cv_prog_cc_pic_works=no
5095 lt_cv_prog_cc_pic_works=yes
5099 lt_cv_prog_cc_pic_works=yes
5104 echo "configure: failed program was:" >&5
5105 cat conftest.$ac_ext >&5
5107 lt_cv_prog_cc_pic_works=no
5111 CFLAGS="$save_CFLAGS"
5116 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5118 lt_cv_prog_cc_can_build_shared=no
5120 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5123 echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6
5126 # Check for any special shared library compilation flags.
5127 if test -n "$lt_cv_prog_cc_shlib"; then
5128 echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2
5129 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5131 echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2
5132 lt_cv_prog_cc_can_build_shared=no
5136 echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6
5137 echo "configure:5138: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5138 if eval "test \"\${lt_cv_prog_cc_static_works+set}\" = set"; then
5139 echo $ac_n "(cached) $ac_c" 1>&6
5141 lt_cv_prog_cc_static_works=no
5142 save_LDFLAGS="$LDFLAGS"
5143 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5144 cat > conftest.$ac_ext <<EOF
5145 #line 5146 "configure"
5146 #include "confdefs.h"
5152 if { (eval echo configure:5153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5154 lt_cv_prog_cc_static_works=yes
5156 echo "configure: failed program was:" >&5
5157 cat conftest.$ac_ext >&5
5160 LDFLAGS="$save_LDFLAGS"
5165 # Belt *and* braces to stop my trousers falling down:
5166 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5167 echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6
5169 pic_flag="$lt_cv_prog_cc_pic"
5170 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5171 wl="$lt_cv_prog_cc_wl"
5172 link_static_flag="$lt_cv_prog_cc_static"
5173 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5174 can_build_shared="$lt_cv_prog_cc_can_build_shared"
5177 # Check to see if options -o and -c are simultaneously supported by compiler
5178 echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6
5179 echo "configure:5180: checking if $compiler supports -c -o file.$ac_objext" >&5
5180 if eval "test \"\${lt_cv_compiler_c_o+set}\" = set"; then
5181 echo $ac_n "(cached) $ac_c" 1>&6
5184 $rm -r conftest 2>/dev/null
5187 echo "int some_variable = 0;" > conftest.$ac_ext
5189 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5190 # that will create temporary files in the current directory regardless of
5191 # the output directory. Thus, making CWD read-only will cause this test
5192 # to fail, enabling locking or at least warning the user not to do parallel
5195 save_CFLAGS="$CFLAGS"
5196 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5198 if { (eval echo configure:5199: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5199 # The compiler can only warn and ignore the option if not recognized
5200 # So say no if there are warnings
5201 if test -s out/conftest.err; then
5202 lt_cv_compiler_c_o=no
5204 lt_cv_compiler_c_o=yes
5207 # Append any errors to the config.log.
5208 cat out/conftest.err 1>&5
5209 lt_cv_compiler_c_o=no
5211 CFLAGS="$save_CFLAGS"
5217 $rm -r conftest 2>/dev/null
5221 compiler_c_o=$lt_cv_compiler_c_o
5222 echo "$ac_t""$compiler_c_o" 1>&6
5224 if test x"$compiler_c_o" = x"yes"; then
5225 # Check to see if we can write to a .lo
5226 echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6
5227 echo "configure:5228: checking if $compiler supports -c -o file.lo" >&5
5228 if eval "test \"\${lt_cv_compiler_o_lo+set}\" = set"; then
5229 echo $ac_n "(cached) $ac_c" 1>&6
5232 lt_cv_compiler_o_lo=no
5233 save_CFLAGS="$CFLAGS"
5234 CFLAGS="$CFLAGS -c -o conftest.lo"
5235 save_objext="$ac_objext"
5237 cat > conftest.$ac_ext <<EOF
5238 #line 5239 "configure"
5239 #include "confdefs.h"
5242 int some_variable = 0;
5245 if { (eval echo configure:5246: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5247 # The compiler can only warn and ignore the option if not recognized
5248 # So say no if there are warnings
5249 if test -s conftest.err; then
5250 lt_cv_compiler_o_lo=no
5252 lt_cv_compiler_o_lo=yes
5256 echo "configure: failed program was:" >&5
5257 cat conftest.$ac_ext >&5
5260 ac_objext="$save_objext"
5261 CFLAGS="$save_CFLAGS"
5265 compiler_o_lo=$lt_cv_compiler_o_lo
5266 echo "$ac_t""$compiler_o_lo" 1>&6
5271 # Check to see if we can do hard links to lock some files if needed
5272 hard_links="nottested"
5273 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5274 # do not overwrite the value of need_locks provided by the user
5275 echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6
5276 echo "configure:5277: checking if we can lock with hard links" >&5
5279 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5281 ln conftest.a conftest.b 2>&5 || hard_links=no
5282 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5283 echo "$ac_t""$hard_links" 1>&6
5284 if test "$hard_links" = no; then
5285 echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2
5292 if test "$GCC" = yes; then
5293 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5294 echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6
5295 echo "configure:5296: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5296 echo "int some_variable = 0;" > conftest.$ac_ext
5297 save_CFLAGS="$CFLAGS"
5298 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5299 compiler_rtti_exceptions=no
5300 cat > conftest.$ac_ext <<EOF
5301 #line 5302 "configure"
5302 #include "confdefs.h"
5305 int some_variable = 0;
5308 if { (eval echo configure:5309: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5310 # The compiler can only warn and ignore the option if not recognized
5311 # So say no if there are warnings
5312 if test -s conftest.err; then
5313 compiler_rtti_exceptions=no
5315 compiler_rtti_exceptions=yes
5319 echo "configure: failed program was:" >&5
5320 cat conftest.$ac_ext >&5
5323 CFLAGS="$save_CFLAGS"
5324 echo "$ac_t""$compiler_rtti_exceptions" 1>&6
5326 if test "$compiler_rtti_exceptions" = "yes"; then
5327 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5329 no_builtin_flag=' -fno-builtin'
5333 # See if the linker supports building shared libraries.
5334 echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6
5335 echo "configure:5336: checking whether the linker ($LD) supports shared libraries" >&5
5337 allow_undefined_flag=
5339 need_lib_prefix=unknown
5340 need_version=unknown
5341 # when you set need_version to no, make sure it does not cause -set_version
5342 # flags to be left without arguments
5344 archive_expsym_cmds=
5345 old_archive_from_new_cmds=
5346 old_archive_from_expsyms_cmds=
5347 export_dynamic_flag_spec=
5348 whole_archive_flag_spec=
5349 thread_safe_flag_spec=
5350 hardcode_into_libs=no
5351 hardcode_libdir_flag_spec=
5352 hardcode_libdir_separator=
5355 hardcode_shlibpath_var=unsupported
5357 link_all_deplibs=unknown
5358 always_export_symbols=no
5359 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5360 # include_expsyms should be a list of space-separated symbols to be *always*
5361 # included in the symbol list
5363 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5364 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5365 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5366 # as well as any symbol that contains `d'.
5367 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5368 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5369 # platforms (ab)use it in PIC code, but their linkers get confused if
5370 # the symbol is explicitly referenced. Since portable code cannot
5371 # rely on this symbol name, it's probably fine to never include it in
5372 # preloaded symbol tables.
5373 extract_expsyms_cmds=
5376 cygwin* | mingw* | pw32*)
5377 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5378 # When not using gcc, we currently assume that we are using
5379 # Microsoft Visual C++.
5380 if test "$GCC" != yes; then
5390 if test "$with_gnu_ld" = yes; then
5391 # If archive_cmds runs LD, not CC, wlarc should be empty
5394 # See if GNU ld supports shared libraries.
5396 aix3* | aix4* | aix5*)
5397 # On AIX, the GNU linker is very broken
5398 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5402 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5403 *** to be unable to reliably create shared libraries on AIX.
5404 *** Therefore, libtool is disabling shared libraries support. If you
5405 *** really care for shared libraries, you may want to modify your PATH
5406 *** so that a non-GNU linker is found, and then restart.
5412 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)'
5413 hardcode_libdir_flag_spec='-L$libdir'
5414 hardcode_minus_L=yes
5416 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5417 # that the semantics of dynamic libraries on AmigaOS, at least up
5418 # to version 4, is to share data among multiple programs linked
5419 # with the same dynamic library. Since this doesn't match the
5420 # behavior of shared libraries on other platforms, we can use
5426 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5427 allow_undefined_flag=unsupported
5428 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5429 # support --undefined. This deserves some investigation. FIXME
5430 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5436 cygwin* | mingw* | pw32*)
5437 # hardcode_libdir_flag_spec is actually meaningless, as there is
5438 # no search path for DLLs.
5439 hardcode_libdir_flag_spec='-L$libdir'
5440 allow_undefined_flag=unsupported
5441 always_export_symbols=yes
5443 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5444 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5445 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5446 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5447 else $CC -o impgen impgen.c ; fi)~
5448 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5450 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5452 # cygwin and mingw dlls have different entry points and sets of symbols
5454 # FIXME: what about values for MSVC?
5455 dll_entry=__cygwin_dll_entry@12
5456 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5460 dll_entry=_DllMainCRTStartup@12
5461 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5465 # mingw and cygwin differ, and it's simplest to just exclude the union
5466 # of the two symbol sets.
5467 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5469 # recent cygwin and mingw systems supply a stub DllMain which the user
5470 # can override, but on older systems we have to supply one (in ltdll.c)
5471 if test "x$lt_cv_need_dllmain" = "xyes"; then
5472 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5473 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~
5474 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5480 # Extract the symbol export list from an `--export-all' def file,
5481 # then regenerate the def file from the symbol export list, so that
5482 # the compiled dll only exports the symbol export list.
5483 # Be careful not to strip the DATA tag left be newer dlltools.
5484 export_symbols_cmds="$ltdll_cmds"'
5485 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5486 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5488 # If the export-symbols file already is a .def file (1st line
5489 # is EXPORTS), use it as is.
5490 # If DATA tags from a recent dlltool are present, honour them!
5491 archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
5492 cp $export_symbols $output_objdir/$soname-def;
5494 echo EXPORTS > $output_objdir/$soname-def;
5496 cat $export_symbols | while read symbol; do
5499 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5500 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
5501 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5503 _lt_hint=`expr 1 + \$_lt_hint`;
5507 $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~
5508 $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~
5509 $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~
5510 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
5511 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5515 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5516 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5519 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5520 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5525 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5529 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5530 *** create shared libraries on Solaris systems. Therefore, libtool
5531 *** is disabling shared libraries support. We urge you to upgrade GNU
5532 *** binutils to release 2.9.1 or newer. Another option is to modify
5533 *** your PATH or compiler configuration so that the native linker is
5534 *** used, and then restart.
5537 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5538 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5539 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5546 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5549 hardcode_shlibpath_var=no
5553 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5554 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5555 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5562 if test "$ld_shlibs" = yes; then
5563 runpath_var=LD_RUN_PATH
5564 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5565 export_dynamic_flag_spec='${wl}--export-dynamic'
5567 cygwin* | mingw* | pw32*)
5568 # dlltool doesn't understand --whole-archive et. al.
5569 whole_archive_flag_spec=
5572 # ancient GNU ld didn't support --whole-archive et. al.
5573 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5574 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5576 whole_archive_flag_spec=
5582 # PORTME fill in a description of your system's linker (not GNU ld)
5585 allow_undefined_flag=unsupported
5586 always_export_symbols=yes
5587 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'
5588 # Note: this linker hardcodes the directories in LIBPATH if there
5589 # are no directories specified by -L.
5590 hardcode_minus_L=yes
5591 if test "$GCC" = yes && test -z "$link_static_flag"; then
5592 # Neither direct hardcoding nor static linking is supported with a
5594 hardcode_direct=unsupported
5599 if test "$host_cpu" = ia64; then
5600 # On IA64, the linker does run time linking by default, so we don't
5601 # have to do anything special.
5602 aix_use_runtimelinking=no
5603 exp_sym_flag='-Bexport'
5606 aix_use_runtimelinking=no
5608 # Test if we are trying to use run time linking or normal
5609 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5610 # need to do runtime linking.
5611 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5612 for ld_flag in $LDFLAGS; do
5615 aix_use_runtimelinking=yes
5622 exp_sym_flag='-bexport'
5623 no_entry_flag='-bnoentry'
5626 # When large executables or shared objects are built, AIX ld can
5627 # have problems creating the table of contents. If linking a library
5628 # or program results in "error TOC overflow" add -mminimal-toc to
5629 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5630 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5634 hardcode_libdir_separator=':'
5635 if test "$GCC" = yes; then
5636 case $host_os in aix4.[012]|aix4.[012].*)
5637 collect2name=`${CC} -print-prog-name=collect2`
5638 if test -f "$collect2name" && \
5639 strings "$collect2name" | grep resolve_lib_name >/dev/null
5641 # We have reworked collect2
5644 # We have old collect2
5645 hardcode_direct=unsupported
5646 # It fails to find uninstalled libraries when the uninstalled
5647 # path is not listed in the libpath. Setting hardcode_minus_L
5648 # to unsupported forces relinking
5649 hardcode_minus_L=yes
5650 hardcode_libdir_flag_spec='-L$libdir'
5651 hardcode_libdir_separator=
5655 shared_flag='-shared'
5658 if test "$host_cpu" = ia64; then
5659 shared_flag='${wl}-G'
5661 if test "$aix_use_runtimelinking" = yes; then
5662 shared_flag='${wl}-G'
5664 shared_flag='${wl}-bM:SRE'
5669 # It seems that -bexpall can do strange things, so it is better to
5670 # generate a list of symbols to export.
5671 always_export_symbols=yes
5672 if test "$aix_use_runtimelinking" = yes; then
5673 # Warning - without using the other runtime loading flags (-brtl),
5674 # -berok will link without error, but may produce a broken library.
5675 allow_undefined_flag='-berok'
5676 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5677 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5679 if test "$host_cpu" = ia64; then
5680 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5681 allow_undefined_flag="-z nodefs"
5682 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
5684 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5685 # Warning - without using the other run time loading flags,
5686 # -berok will link without error, but may produce a broken library.
5687 allow_undefined_flag='${wl}-berok'
5688 # This is a bit strange, but is similar to how AIX traditionally builds
5689 # it's shared libraries.
5690 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
5696 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
5697 hardcode_libdir_flag_spec='-L$libdir'
5698 hardcode_minus_L=yes
5699 # see comment about different semantics on the GNU ld section
5703 cygwin* | mingw* | pw32*)
5704 # When not using gcc, we currently assume that we are using
5705 # Microsoft Visual C++.
5706 # hardcode_libdir_flag_spec is actually meaningless, as there is
5707 # no search path for DLLs.
5708 hardcode_libdir_flag_spec=' '
5709 allow_undefined_flag=unsupported
5710 # Tell ltmain to make .lib files, not .a files.
5712 # FIXME: Setting linknames here is a bad hack.
5713 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5714 # The linker will automatically build a .lib file if we build a DLL.
5715 old_archive_from_new_cmds='true'
5716 # FIXME: Should let the user specify the lib program.
5717 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5718 fix_srcfile_path='`cygpath -w "$srcfile"`'
5721 darwin* | rhapsody*)
5723 rhapsody* | darwin1.[012])
5724 allow_undefined_flag='-undefined suppress'
5727 allow_undefined_flag='-flat_namespace -undefined suppress'
5730 # FIXME: Relying on posixy $() will cause problems for
5731 # cross-compilation, but unfortunately the echo tests do not
5732 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
5733 # `"' quotes if we put them in here... so don't!
5734 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)'
5735 # We need to add '_' to the symbols in $export_symbols first
5736 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5738 hardcode_shlibpath_var=no
5739 whole_archive_flag_spec='-all_load $convenience'
5746 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5747 # support. Future versions do this automatically, but an explicit c++rt0.o
5748 # does not break anything, and helps significantly (at the cost of a little
5751 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5752 hardcode_libdir_flag_spec='-R$libdir'
5754 hardcode_shlibpath_var=no
5757 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5759 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5761 hardcode_minus_L=yes
5762 hardcode_shlibpath_var=no
5765 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5767 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5768 hardcode_libdir_flag_spec='-R$libdir'
5770 hardcode_shlibpath_var=no
5773 hpux9* | hpux10* | hpux11*)
5775 hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
5776 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5778 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5779 hardcode_libdir_separator=:
5781 hardcode_minus_L=yes # Not in the search PATH, but as the default
5782 # location of the library.
5783 export_dynamic_flag_spec='${wl}-E'
5786 irix5* | irix6* | nonstopux*)
5787 if test "$GCC" = yes; then
5788 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5789 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5791 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5792 hardcode_libdir_flag_spec='-rpath $libdir'
5794 hardcode_libdir_separator=:
5795 link_all_deplibs=yes
5799 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5800 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5802 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5804 hardcode_libdir_flag_spec='-R$libdir'
5806 hardcode_shlibpath_var=no
5810 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5812 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5813 hardcode_libdir_separator=:
5814 hardcode_shlibpath_var=no
5819 hardcode_shlibpath_var=no
5820 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5821 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5822 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5823 export_dynamic_flag_spec='${wl}-E'
5826 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5827 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5828 hardcode_libdir_flag_spec='-R$libdir'
5831 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5832 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5839 archive_cmds="\$CC -Wl,DLL \$libobjs \$deplibs \$compiler_flags -o \$lib &&
5840 cp \$linknames \$output_objdir && linknames=''"
5841 export_dynamic_flag_spec="-Wl,DLL"
5845 hardcode_libdir_flag_spec='-L$libdir'
5846 hardcode_minus_L=yes
5847 allow_undefined_flag=unsupported
5848 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'
5849 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5853 if test "$GCC" = yes; then
5854 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5855 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'
5857 allow_undefined_flag=' -expect_unresolved \*'
5858 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'
5860 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5861 hardcode_libdir_separator=:
5864 osf4* | osf5*) # as osf3* with the addition of -msym flag
5865 if test "$GCC" = yes; then
5866 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5867 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'
5868 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5870 allow_undefined_flag=' -expect_unresolved \*'
5871 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'
5872 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5873 $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'
5875 #Both c and cxx compiler support -rpath directly
5876 hardcode_libdir_flag_spec='-rpath $libdir'
5878 hardcode_libdir_separator=:
5882 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5883 hardcode_shlibpath_var=no
5884 runpath_var=LD_RUN_PATH
5885 hardcode_runpath_var=yes
5886 export_dynamic_flag_spec='${wl}-Bexport'
5890 # gcc --version < 3.0 without binutils cannot create self contained
5891 # shared libraries reliably, requiring libgcc.a to resolve some of
5892 # the object symbols generated in some cases. Libraries that use
5893 # assert need libgcc.a to resolve __eprintf, for example. Linking
5894 # a copy of libgcc.a into every shared library to guarantee resolving
5895 # such symbols causes other problems: According to Tim Van Holder
5896 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
5897 # (to the application) exception stack for one thing.
5898 no_undefined_flag=' -z defs'
5899 if test "$GCC" = yes; then
5900 case `$CC --version 2>/dev/null` in
5904 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5905 *** create self contained shared libraries on Solaris systems, without
5906 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
5907 *** -no-undefined support, which will at least allow you to build shared
5908 *** libraries. However, you may find that when you link such libraries
5909 *** into an application without using GCC, you have to manually add
5910 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
5911 *** upgrade to a newer version of GCC. Another option is to rebuild your
5912 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
5919 # $CC -shared without GNU ld will not create a library from C++
5920 # object files and a static libstdc++, better avoid it by now
5921 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5922 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5923 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5924 hardcode_libdir_flag_spec='-R$libdir'
5925 hardcode_shlibpath_var=no
5927 solaris2.[0-5] | solaris2.[0-5].*) ;;
5928 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5929 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5931 link_all_deplibs=yes
5935 if test "x$host_vendor" = xsequent; then
5936 # Use $CC to link under sequent, because it throws in some extra .o
5937 # files that make .init and .fini sections work.
5938 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5940 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5942 hardcode_libdir_flag_spec='-L$libdir'
5944 hardcode_minus_L=yes
5945 hardcode_shlibpath_var=no
5949 case $host_vendor in
5951 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5952 hardcode_direct=yes # is this really true???
5955 ## LD is ld it makes a PLAMLIB
5956 ## CC just makes a GrossModule.
5957 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5958 reload_cmds='$CC -r -o $output$reload_objs'
5962 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5963 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5966 runpath_var='LD_RUN_PATH'
5967 hardcode_shlibpath_var=no
5971 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5972 hardcode_shlibpath_var=no
5973 export_dynamic_flag_spec='-Bexport'
5977 no_undefined_flag=' -z text'
5978 # $CC -shared without GNU ld will not create a library from C++
5979 # object files and a static libstdc++, better avoid it by now
5980 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5981 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5982 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5983 hardcode_libdir_flag_spec=
5984 hardcode_shlibpath_var=no
5985 runpath_var='LD_RUN_PATH'
5989 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5990 hardcode_libdir_flag_spec='-L$libdir'
5991 hardcode_shlibpath_var=no
5995 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5996 hardcode_libdir_flag_spec='-L$libdir'
5997 hardcode_shlibpath_var=no
6001 if test -d /usr/nec; then
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
6011 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6014 hardcode_shlibpath_var=no
6015 hardcode_runpath_var=yes
6016 runpath_var=LD_RUN_PATH
6019 sysv5uw7* | unixware7*)
6020 no_undefined_flag='${wl}-z ${wl}text'
6021 if test "$GCC" = yes; then
6022 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6024 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6026 runpath_var='LD_RUN_PATH'
6027 hardcode_shlibpath_var=no
6035 echo "$ac_t""$ld_shlibs" 1>&6
6036 test "$ld_shlibs" = no && can_build_shared=no
6038 # Check hardcoding attributes.
6039 echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6
6040 echo "configure:6041: checking how to hardcode library paths into programs" >&5
6042 if test -n "$hardcode_libdir_flag_spec" || \
6043 test -n "$runpath_var"; then
6045 # We can hardcode non-existant directories.
6046 if test "$hardcode_direct" != no &&
6047 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6048 # have to relink, otherwise we might link with an installed library
6049 # when we should be linking with a yet-to-be-installed one
6050 ## test "$hardcode_shlibpath_var" != no &&
6051 test "$hardcode_minus_L" != no; then
6052 # Linking always hardcodes the temporary library directory.
6053 hardcode_action=relink
6055 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6056 hardcode_action=immediate
6059 # We cannot hardcode anything, or else we can only hardcode existing
6061 hardcode_action=unsupported
6063 echo "$ac_t""$hardcode_action" 1>&6
6067 echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6
6068 echo "configure:6069: checking whether stripping libraries is possible" >&5
6069 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6070 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6071 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6072 echo "$ac_t""yes" 1>&6
6074 echo "$ac_t""no" 1>&6
6077 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6078 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6080 # PORTME Fill in your ld.so characteristics
6081 echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6
6082 echo "configure:6083: checking dynamic linker characteristics" >&5
6084 libname_spec='lib$name'
6091 shlibpath_overrides_runpath=unknown
6093 dynamic_linker="$host_os ld.so"
6094 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6095 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6100 library_names_spec='${libname}${release}.so$versuffix $libname.a'
6101 shlibpath_var=LIBPATH
6103 # AIX has no versioning support, so we append a major version to the name.
6104 soname_spec='${libname}${release}.so$major'
6111 hardcode_into_libs=yes
6112 if test "$host_cpu" = ia64; then
6113 # AIX 5 supports IA64
6114 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6115 shlibpath_var=LD_LIBRARY_PATH
6117 # With GCC up to 2.95.x, collect2 would create an import file
6118 # for dependence libraries. The import file would start with
6119 # the line `#! .'. This would cause the generated library to
6120 # depend on `.', always an invalid library. This was fixed in
6121 # development snapshots of GCC prior to 3.0.
6123 aix4 | aix4.[01] | aix4.[01].*)
6124 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6126 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6133 # AIX (on Power*) has no versioning support, so currently we can
6134 # not hardcode correct soname into executable. Probably we can
6135 # add versioning support to collect2, so additional links can
6136 # be useful in future.
6137 if test "$aix_use_runtimelinking" = yes; then
6138 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6139 # instead of lib<name>.a to let people know that these are not
6140 # typical AIX shared libraries.
6141 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6143 # We preserve .a as extension for shared libraries through AIX4.2
6144 # and later when we are not doing run time linking.
6145 library_names_spec='${libname}${release}.a $libname.a'
6146 soname_spec='${libname}${release}.so$major'
6148 shlibpath_var=LIBPATH
6150 hardcode_into_libs=yes
6154 library_names_spec='$libname.ixlibrary $libname.a'
6155 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6156 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'
6160 library_names_spec='${libname}.so'
6161 dynamic_linker="$host_os ld.so"
6162 shlibpath_var=LIBRARY_PATH
6168 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6169 soname_spec='${libname}${release}.so$major'
6170 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6171 shlibpath_var=LD_LIBRARY_PATH
6172 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6173 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6174 export_dynamic_flag_spec=-rdynamic
6175 # the default ld.so.conf also contains /usr/contrib/lib and
6176 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6177 # libtool to hard-code these into programs
6180 cygwin* | mingw* | pw32*)
6181 version_type=windows
6184 case $GCC,$host_os in
6186 library_names_spec='$libname.dll.a'
6187 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6188 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6189 dldir=$destdir/`dirname \$dlpath`~
6190 test -d \$dldir || mkdir -p \$dldir~
6191 $install_prog .libs/$dlname \$dldir/$dlname'
6192 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6193 dlpath=$dir/\$dldll~
6197 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6198 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
6201 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6204 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6207 dynamic_linker='Win32 ld.exe'
6208 # FIXME: first we should search . and the directory the executable is in
6212 darwin* | rhapsody*)
6213 dynamic_linker="$host_os dyld"
6217 # FIXME: Relying on posixy $() will cause problems for
6218 # cross-compilation, but unfortunately the echo tests do not
6219 # yet detect zsh echo's removal of \ escapes.
6220 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)'
6221 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6222 shlibpath_overrides_runpath=yes
6223 shlibpath_var=DYLD_LIBRARY_PATH
6231 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6232 version_type=freebsd-$objformat
6233 case $version_type in
6235 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6240 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6244 shlibpath_var=LD_LIBRARY_PATH
6247 shlibpath_overrides_runpath=yes
6250 shlibpath_overrides_runpath=no
6251 hardcode_into_libs=yes
6260 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6261 soname_spec='${libname}${release}.so$major'
6262 shlibpath_var=LD_LIBRARY_PATH
6263 hardcode_into_libs=yes
6266 hpux9* | hpux10* | hpux11*)
6267 # Give a soname corresponding to the major version so that dld.sl refuses to
6268 # link against other versions.
6269 dynamic_linker="$host_os dld.sl"
6273 shlibpath_var=SHLIB_PATH
6274 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6275 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6276 soname_spec='${libname}${release}.sl$major'
6277 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6278 postinstall_cmds='chmod 555 $lib'
6281 irix5* | irix6* | nonstopux*)
6283 nonstopux*) version_type=nonstopux ;;
6284 *) version_type=irix ;;
6288 soname_spec='${libname}${release}.so$major'
6289 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6291 irix5* | nonstopux*)
6295 case $LD in # libtool.m4 will add one of these switches to LD
6296 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6297 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6298 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6299 *) libsuff= shlibsuff= libmagic=never-match;;
6303 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6304 shlibpath_overrides_runpath=no
6305 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6306 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6309 # No shared lib support for Linux oldld, aout, or coff.
6310 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6314 # This must be Linux ELF.
6319 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6320 soname_spec='${libname}${release}.so$major'
6321 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6322 shlibpath_var=LD_LIBRARY_PATH
6323 shlibpath_overrides_runpath=no
6324 # This implies no fast_install, which is unacceptable.
6325 # Some rework will be needed to allow for fast_install
6326 # before this can be enabled.
6327 hardcode_into_libs=yes
6329 # We used to test for /lib/ld.so.1 and disable shared libraries on
6330 # powerpc, because MkLinux only supported shared libraries with the
6331 # GNU dynamic linker. Since this was broken with cross compilers,
6332 # most powerpc-linux boxes support dynamic linking these days and
6333 # people can always --disable-shared, the test was removed, and we
6334 # assume the GNU/Linux dynamic linker is in use.
6335 dynamic_linker='GNU/Linux ld.so'
6342 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6343 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6344 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6345 dynamic_linker='NetBSD (a.out) ld.so'
6347 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6348 soname_spec='${libname}${release}.so$major'
6349 dynamic_linker='NetBSD ld.elf_so'
6351 shlibpath_var=LD_LIBRARY_PATH
6352 shlibpath_overrides_runpath=yes
6353 hardcode_into_libs=yes
6358 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6359 shlibpath_var=LD_LIBRARY_PATH
6360 shlibpath_overrides_runpath=yes
6367 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6369 openbsd2.[89] | openbsd2.[89].*)
6370 shlibpath_overrides_runpath=no
6373 shlibpath_overrides_runpath=yes
6377 shlibpath_overrides_runpath=yes
6379 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6380 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6381 shlibpath_var=LD_LIBRARY_PATH
6387 shlibpath_overrides_runpath=yes
6388 shlibpath_var=LIBPATH
6389 postinstall_cmds="rm \$destdir/\$linkname; cp \$linkname \$destdir; chmod a+x \$lib"
6390 # the library's exports are in libname.x; this is the file that must
6391 # actually be linked with to use a DLL.
6392 library_names_spec="\${libname}\${release}.so\$versuffix \${libname}.x"
6396 libname_spec='$name'
6398 library_names_spec='$libname.dll $libname.a'
6399 dynamic_linker='OS/2 ld.exe'
6400 shlibpath_var=LIBPATH
6403 osf3* | osf4* | osf5*)
6406 soname_spec='${libname}${release}.so$major'
6407 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6408 shlibpath_var=LD_LIBRARY_PATH
6409 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6410 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6411 hardcode_into_libs=yes
6416 soname_spec='${libname}${release}.so$major'
6417 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6418 shlibpath_var=LD_LIBRARY_PATH
6425 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6426 soname_spec='${libname}${release}.so$major'
6427 shlibpath_var=LD_LIBRARY_PATH
6428 shlibpath_overrides_runpath=yes
6429 hardcode_into_libs=yes
6430 # ldd complains unless libraries are executable
6431 postinstall_cmds='chmod +x $lib'
6436 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6437 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6438 shlibpath_var=LD_LIBRARY_PATH
6439 shlibpath_overrides_runpath=yes
6440 if test "$with_gnu_ld" = yes; then
6446 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6448 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6449 soname_spec='${libname}${release}.so$major'
6450 shlibpath_var=LD_LIBRARY_PATH
6451 case $host_vendor in
6453 shlibpath_overrides_runpath=no
6455 export_dynamic_flag_spec='${wl}-Blargedynsym'
6456 runpath_var=LD_RUN_PATH
6464 shlibpath_overrides_runpath=no
6465 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6472 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6473 soname_spec='${libname}${release}.so$major'
6474 shlibpath_var=LD_LIBRARY_PATH
6481 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6482 soname_spec='${libname}${release}.so$major'
6483 shlibpath_var=LD_LIBRARY_PATH
6487 if test -d /usr/nec ;then
6489 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6490 soname_spec='$libname.so.$major'
6491 shlibpath_var=LD_LIBRARY_PATH
6499 echo "$ac_t""$dynamic_linker" 1>&6
6500 test "$dynamic_linker" = no && can_build_shared=no
6502 # Report the final consequences.
6503 echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6
6504 echo "configure:6505: checking if libtool supports shared libraries" >&5
6505 echo "$ac_t""$can_build_shared" 1>&6
6507 echo $ac_n "checking whether to build shared libraries""... $ac_c" 1>&6
6508 echo "configure:6509: checking whether to build shared libraries" >&5
6509 test "$can_build_shared" = "no" && enable_shared=no
6511 # On AIX, shared libraries and static libraries use the same namespace, and
6512 # are all built from PIC.
6515 test "$enable_shared" = yes && enable_static=no
6516 if test -n "$RANLIB"; then
6517 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6518 postinstall_cmds='$RANLIB $lib'
6523 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6524 test "$enable_shared" = yes && enable_static=no
6528 echo "$ac_t""$enable_shared" 1>&6
6530 echo $ac_n "checking whether to build static libraries""... $ac_c" 1>&6
6531 echo "configure:6532: checking whether to build static libraries" >&5
6532 # Make sure either enable_shared or enable_static is yes.
6533 test "$enable_shared" = yes || enable_static=yes
6534 echo "$ac_t""$enable_static" 1>&6
6536 if test "$hardcode_action" = relink; then
6537 # Fast installation is not supported
6538 enable_fast_install=no
6539 elif test "$shlibpath_overrides_runpath" = yes ||
6540 test "$enable_shared" = no; then
6541 # Fast installation is not necessary
6542 enable_fast_install=needless
6545 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6546 if test "$GCC" = yes; then
6547 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6550 if test "x$enable_dlopen" != xyes; then
6551 enable_dlopen=unknown
6552 enable_dlopen_self=unknown
6553 enable_dlopen_self_static=unknown
6560 lt_cv_dlopen="load_add_on"
6562 lt_cv_dlopen_self=yes
6565 cygwin* | mingw* | pw32*)
6566 lt_cv_dlopen="LoadLibrary"
6571 echo $ac_n "checking for dllload""... $ac_c" 1>&6
6572 echo "configure:6573: checking for dllload" >&5
6573 if eval "test \"\${ac_cv_func_dllload+set}\" = set"; then
6574 echo $ac_n "(cached) $ac_c" 1>&6
6576 cat > conftest.$ac_ext <<EOF
6577 #line 6578 "configure"
6578 #include "confdefs.h"
6579 /* System header to define __stub macros and hopefully few prototypes,
6580 which can conflict with char dllload(); below. */
6582 /* Override any gcc2 internal prototype to avoid an error. */
6583 /* We use char because int might match the return type of a gcc2
6584 builtin and then its argument prototype would still apply. */
6590 /* The GNU C library defines this for functions which it implements
6591 to always fail with ENOSYS. Some functions are actually named
6592 something starting with __ and the normal name is an alias. */
6593 #if defined (__stub_dllload) || defined (__stub___dllload)
6601 if { (eval echo configure:6602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6603 eval "ac_cv_func_dllload=yes"
6605 echo "configure: failed program was:" >&5
6606 cat conftest.$ac_ext >&5
6608 eval "ac_cv_func_dllload=no"
6613 if eval "test \"`echo '$ac_cv_func_'dllload`\" = yes"; then
6614 echo "$ac_t""yes" 1>&6
6615 lt_cv_dlopen="dllload"
6617 echo "$ac_t""no" 1>&6
6618 echo $ac_n "checking for shl_load""... $ac_c" 1>&6
6619 echo "configure:6620: checking for shl_load" >&5
6620 if eval "test \"\${ac_cv_func_shl_load+set}\" = set"; then
6621 echo $ac_n "(cached) $ac_c" 1>&6
6623 cat > conftest.$ac_ext <<EOF
6624 #line 6625 "configure"
6625 #include "confdefs.h"
6626 /* System header to define __stub macros and hopefully few prototypes,
6627 which can conflict with char shl_load(); below. */
6629 /* Override any gcc2 internal prototype to avoid an error. */
6630 /* We use char because int might match the return type of a gcc2
6631 builtin and then its argument prototype would still apply. */
6637 /* The GNU C library defines this for functions which it implements
6638 to always fail with ENOSYS. Some functions are actually named
6639 something starting with __ and the normal name is an alias. */
6640 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6648 if { (eval echo configure:6649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6650 eval "ac_cv_func_shl_load=yes"
6652 echo "configure: failed program was:" >&5
6653 cat conftest.$ac_ext >&5
6655 eval "ac_cv_func_shl_load=no"
6660 if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
6661 echo "$ac_t""yes" 1>&6
6662 lt_cv_dlopen="shl_load"
6664 echo "$ac_t""no" 1>&6
6665 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
6666 echo "configure:6667: checking for shl_load in -ldld" >&5
6667 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-:%__p__%'`
6668 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6669 echo $ac_n "(cached) $ac_c" 1>&6
6671 ac_save_LIBS="$LIBS"
6673 cat > conftest.$ac_ext <<EOF
6674 #line 6675 "configure"
6675 #include "confdefs.h"
6676 /* Override any gcc2 internal prototype to avoid an error. */
6677 /* We use char because int might match the return type of a gcc2
6678 builtin and then its argument prototype would still apply. */
6685 if { (eval echo configure:6686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6687 eval "ac_cv_lib_$ac_lib_var=yes"
6689 echo "configure: failed program was:" >&5
6690 cat conftest.$ac_ext >&5
6692 eval "ac_cv_lib_$ac_lib_var=no"
6695 LIBS="$ac_save_LIBS"
6698 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6699 echo "$ac_t""yes" 1>&6
6700 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6702 echo "$ac_t""no" 1>&6
6703 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
6704 echo "configure:6705: checking for dlopen" >&5
6705 if eval "test \"\${ac_cv_func_dlopen+set}\" = set"; then
6706 echo $ac_n "(cached) $ac_c" 1>&6
6708 cat > conftest.$ac_ext <<EOF
6709 #line 6710 "configure"
6710 #include "confdefs.h"
6711 /* System header to define __stub macros and hopefully few prototypes,
6712 which can conflict with char dlopen(); below. */
6714 /* Override any gcc2 internal prototype to avoid an error. */
6715 /* We use char because int might match the return type of a gcc2
6716 builtin and then its argument prototype would still apply. */
6722 /* The GNU C library defines this for functions which it implements
6723 to always fail with ENOSYS. Some functions are actually named
6724 something starting with __ and the normal name is an alias. */
6725 #if defined (__stub_dlopen) || defined (__stub___dlopen)
6733 if { (eval echo configure:6734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6735 eval "ac_cv_func_dlopen=yes"
6737 echo "configure: failed program was:" >&5
6738 cat conftest.$ac_ext >&5
6740 eval "ac_cv_func_dlopen=no"
6745 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
6746 echo "$ac_t""yes" 1>&6
6747 lt_cv_dlopen="dlopen"
6749 echo "$ac_t""no" 1>&6
6750 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
6751 echo "configure:6752: checking for dlopen in -ldl" >&5
6752 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-:%__p__%'`
6753 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6754 echo $ac_n "(cached) $ac_c" 1>&6
6756 ac_save_LIBS="$LIBS"
6758 cat > conftest.$ac_ext <<EOF
6759 #line 6760 "configure"
6760 #include "confdefs.h"
6761 /* Override any gcc2 internal prototype to avoid an error. */
6762 /* We use char because int might match the return type of a gcc2
6763 builtin and then its argument prototype would still apply. */
6770 if { (eval echo configure:6771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6772 eval "ac_cv_lib_$ac_lib_var=yes"
6774 echo "configure: failed program was:" >&5
6775 cat conftest.$ac_ext >&5
6777 eval "ac_cv_lib_$ac_lib_var=no"
6780 LIBS="$ac_save_LIBS"
6783 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6784 echo "$ac_t""yes" 1>&6
6785 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6787 echo "$ac_t""no" 1>&6
6788 echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
6789 echo "configure:6790: checking for dlopen in -lsvld" >&5
6790 ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-:%__p__%'`
6791 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6792 echo $ac_n "(cached) $ac_c" 1>&6
6794 ac_save_LIBS="$LIBS"
6796 cat > conftest.$ac_ext <<EOF
6797 #line 6798 "configure"
6798 #include "confdefs.h"
6799 /* Override any gcc2 internal prototype to avoid an error. */
6800 /* We use char because int might match the return type of a gcc2
6801 builtin and then its argument prototype would still apply. */
6808 if { (eval echo configure:6809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6810 eval "ac_cv_lib_$ac_lib_var=yes"
6812 echo "configure: failed program was:" >&5
6813 cat conftest.$ac_ext >&5
6815 eval "ac_cv_lib_$ac_lib_var=no"
6818 LIBS="$ac_save_LIBS"
6821 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6822 echo "$ac_t""yes" 1>&6
6823 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6825 echo "$ac_t""no" 1>&6
6826 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
6827 echo "configure:6828: checking for dld_link in -ldld" >&5
6828 ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-:%__p__%'`
6829 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6830 echo $ac_n "(cached) $ac_c" 1>&6
6832 ac_save_LIBS="$LIBS"
6834 cat > conftest.$ac_ext <<EOF
6835 #line 6836 "configure"
6836 #include "confdefs.h"
6837 /* Override any gcc2 internal prototype to avoid an error. */
6838 /* We use char because int might match the return type of a gcc2
6839 builtin and then its argument prototype would still apply. */
6846 if { (eval echo configure:6847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6848 eval "ac_cv_lib_$ac_lib_var=yes"
6850 echo "configure: failed program was:" >&5
6851 cat conftest.$ac_ext >&5
6853 eval "ac_cv_lib_$ac_lib_var=no"
6856 LIBS="$ac_save_LIBS"
6859 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6860 echo "$ac_t""yes" 1>&6
6861 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6863 echo "$ac_t""no" 1>&6
6887 if test "x$lt_cv_dlopen" != xno; then
6893 case $lt_cv_dlopen in
6895 save_CPPFLAGS="$CPPFLAGS"
6896 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6898 save_LDFLAGS="$LDFLAGS"
6899 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6902 LIBS="$lt_cv_dlopen_libs $LIBS"
6904 echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
6905 echo "configure:6906: checking whether a program can dlopen itself" >&5
6906 if eval "test \"\${lt_cv_dlopen_self+set}\" = set"; then
6907 echo $ac_n "(cached) $ac_c" 1>&6
6909 if test "$cross_compiling" = yes; then :
6910 lt_cv_dlopen_self=cross
6912 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6913 lt_status=$lt_dlunknown
6914 cat > conftest.$ac_ext <<EOF
6915 #line 6916 "configure"
6916 #include "confdefs.h"
6925 # define LT_DLGLOBAL RTLD_GLOBAL
6928 # define LT_DLGLOBAL DL_GLOBAL
6930 # define LT_DLGLOBAL 0
6934 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6935 find out it does not work in some platform. */
6936 #ifndef LT_DLLAZY_OR_NOW
6938 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6941 # define LT_DLLAZY_OR_NOW DL_LAZY
6944 # define LT_DLLAZY_OR_NOW RTLD_NOW
6947 # define LT_DLLAZY_OR_NOW DL_NOW
6949 # define LT_DLLAZY_OR_NOW 0
6957 extern "C" void exit (int);
6960 void fnord() { int i=42;}
6963 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6964 int status = $lt_dlunknown;
6968 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6969 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6970 /* dlclose (self); */
6976 if { (eval echo configure:6977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
6977 (./conftest; exit; ) 2>/dev/null
6980 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
6981 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
6982 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
6985 # compilation failed
6986 lt_cv_dlopen_self=no
6994 echo "$ac_t""$lt_cv_dlopen_self" 1>&6
6996 if test "x$lt_cv_dlopen_self" = xyes; then
6997 LDFLAGS="$LDFLAGS $link_static_flag"
6998 echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
6999 echo "configure:7000: checking whether a statically linked program can dlopen itself" >&5
7000 if eval "test \"\${lt_cv_dlopen_self_static+set}\" = set"; then
7001 echo $ac_n "(cached) $ac_c" 1>&6
7003 if test "$cross_compiling" = yes; then :
7004 lt_cv_dlopen_self_static=cross
7006 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7007 lt_status=$lt_dlunknown
7008 cat > conftest.$ac_ext <<EOF
7009 #line 7010 "configure"
7010 #include "confdefs.h"
7019 # define LT_DLGLOBAL RTLD_GLOBAL
7022 # define LT_DLGLOBAL DL_GLOBAL
7024 # define LT_DLGLOBAL 0
7028 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7029 find out it does not work in some platform. */
7030 #ifndef LT_DLLAZY_OR_NOW
7032 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7035 # define LT_DLLAZY_OR_NOW DL_LAZY
7038 # define LT_DLLAZY_OR_NOW RTLD_NOW
7041 # define LT_DLLAZY_OR_NOW DL_NOW
7043 # define LT_DLLAZY_OR_NOW 0
7051 extern "C" void exit (int);
7054 void fnord() { int i=42;}
7057 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7058 int status = $lt_dlunknown;
7062 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7063 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7064 /* dlclose (self); */
7070 if { (eval echo configure:7071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
7071 (./conftest; exit; ) 2>/dev/null
7074 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7075 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7076 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7079 # compilation failed
7080 lt_cv_dlopen_self_static=no
7088 echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6
7091 CPPFLAGS="$save_CPPFLAGS"
7092 LDFLAGS="$save_LDFLAGS"
7097 case $lt_cv_dlopen_self in
7098 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7099 *) enable_dlopen_self=unknown ;;
7102 case $lt_cv_dlopen_self_static in
7103 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7104 *) enable_dlopen_self_static=unknown ;;
7109 if test "$enable_shared" = yes && test "$GCC" = yes; then
7110 case $archive_cmds in
7112 # FIXME: we may have to deal with multi-command sequences.
7115 # Test whether the compiler implicitly links with -lc since on some
7116 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7117 # to ld, don't add -lc before -lgcc.
7118 echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6
7119 echo "configure:7120: checking whether -lc should be explicitly linked in" >&5
7120 if eval "test \"\${lt_cv_archive_cmds_need_lc+set}\" = set"; then
7121 echo $ac_n "(cached) $ac_c" 1>&6
7124 echo 'static int dummy;' > conftest.$ac_ext
7126 if { (eval echo configure:7127: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7129 libobjs=conftest.$ac_objext
7131 wl=$lt_cv_prog_cc_wl
7137 save_allow_undefined_flag=$allow_undefined_flag
7138 allow_undefined_flag=
7139 if { (eval echo configure:7140: \"$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; }
7141 lt_cv_archive_cmds_need_lc=no
7143 lt_cv_archive_cmds_need_lc=yes
7145 allow_undefined_flag=$save_allow_undefined_flag
7147 cat conftest.err 1>&5
7151 echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6
7155 need_lc=${lt_cv_archive_cmds_need_lc-yes}
7157 # The second clause should only fire when bootstrapping the
7158 # libtool distribution, otherwise you forgot to ship ltmain.sh
7159 # with your package, and you will get complaints that there are
7160 # no rules to generate ltmain.sh.
7161 if test -f "$ltmain"; then
7164 # If there is no Makefile yet, we rely on a make rule to execute
7165 # `config.status --recheck' to rerun these tests and create the
7166 # libtool script then.
7167 test -f Makefile && make "$ltmain"
7170 if test -f "$ltmain"; then
7171 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7174 echo creating $ofile
7176 # Now quote all the things that may contain metacharacters while being
7177 # careful not to overquote the AC_SUBSTed values. We take copies of the
7178 # variables and quote the copies for generation of the libtool script.
7179 for var in echo old_CC old_CFLAGS SED \
7180 AR AR_FLAGS CC LD LN_S NM SHELL \
7181 reload_flag reload_cmds wl \
7182 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7183 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7184 library_names_spec soname_spec \
7185 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7186 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7187 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7188 old_striplib striplib file_magic_cmd export_symbols_cmds \
7189 deplibs_check_method allow_undefined_flag no_undefined_flag \
7190 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7191 global_symbol_to_c_name_address \
7192 hardcode_libdir_flag_spec hardcode_libdir_separator \
7193 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7194 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7197 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7198 old_postinstall_cmds | old_postuninstall_cmds | \
7199 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7200 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7201 postinstall_cmds | postuninstall_cmds | \
7202 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7203 # Double-quote double-evaled strings.
7204 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7207 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7212 cat <<__EOF__ > "${ofile}T"
7215 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7216 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7217 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7219 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7220 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7222 # This program is free software; you can redistribute it and/or modify
7223 # it under the terms of the GNU General Public License as published by
7224 # the Free Software Foundation; either version 2 of the License, or
7225 # (at your option) any later version.
7227 # This program is distributed in the hope that it will be useful, but
7228 # WITHOUT ANY WARRANTY; without even the implied warranty of
7229 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7230 # General Public License for more details.
7232 # You should have received a copy of the GNU General Public License
7233 # along with this program; if not, write to the Free Software
7234 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7236 # As a special exception to the GNU General Public License, if you
7237 # distribute this file as part of a program that contains a
7238 # configuration script generated by Autoconf, you may include it under
7239 # the same distribution terms that you use for the rest of that program.
7241 # A sed that does not truncate output.
7244 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7245 Xsed="${SED} -e s/^X//"
7247 # The HP-UX ksh and POSIX shell print the target directory to stdout
7249 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7251 # ### BEGIN LIBTOOL CONFIG
7253 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7255 # Shell to use when invoking shell scripts.
7258 # Whether or not to build shared libraries.
7259 build_libtool_libs=$enable_shared
7261 # Whether or not to build static libraries.
7262 build_old_libs=$enable_static
7264 # Whether or not to add -lc for building shared libraries.
7265 build_libtool_need_lc=$need_lc
7267 # Whether or not to optimize for fast installation.
7268 fast_install=$enable_fast_install
7271 host_alias=$host_alias
7274 # An echo program that does not interpret backslashes.
7279 AR_FLAGS=$lt_AR_FLAGS
7281 # The default C compiler.
7284 # Is the compiler the GNU C compiler?
7287 # The linker used to build libraries.
7290 # Whether we need hard or soft links.
7293 # A BSD-compatible nm program.
7296 # A symbol stripping program
7299 # Used to examine libraries when file_magic_cmd begins "file"
7300 MAGIC_CMD=$MAGIC_CMD
7302 # Used on cygwin: DLL creation program.
7305 # Used on cygwin: object dumper.
7308 # Used on cygwin: assembler.
7311 # The name of the directory that contains temporary libtool files.
7314 # How to create reloadable object files.
7315 reload_flag=$lt_reload_flag
7316 reload_cmds=$lt_reload_cmds
7318 # How to pass a linker flag through the compiler.
7321 # Object file suffix (normally "o").
7324 # Old archive suffix (normally "a").
7327 # Executable file suffix (normally "").
7330 # Additional compiler flags for building library objects.
7331 pic_flag=$lt_pic_flag
7334 # Does compiler simultaneously support -c and -o options?
7335 compiler_c_o=$lt_compiler_c_o
7337 # Can we write directly to a .lo ?
7338 compiler_o_lo=$lt_compiler_o_lo
7340 # Must we lock files when doing compilation ?
7341 need_locks=$lt_need_locks
7343 # Do we need the lib prefix for modules?
7344 need_lib_prefix=$need_lib_prefix
7346 # Do we need a version for libraries?
7347 need_version=$need_version
7349 # Whether dlopen is supported.
7350 dlopen_support=$enable_dlopen
7352 # Whether dlopen of programs is supported.
7353 dlopen_self=$enable_dlopen_self
7355 # Whether dlopen of statically linked programs is supported.
7356 dlopen_self_static=$enable_dlopen_self_static
7358 # Compiler flag to prevent dynamic linking.
7359 link_static_flag=$lt_link_static_flag
7361 # Compiler flag to turn off builtin functions.
7362 no_builtin_flag=$lt_no_builtin_flag
7364 # Compiler flag to allow reflexive dlopens.
7365 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7367 # Compiler flag to generate shared objects directly from archives.
7368 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7370 # Compiler flag to generate thread-safe objects.
7371 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7373 # Library versioning type.
7374 version_type=$version_type
7376 # Format of library name prefix.
7377 libname_spec=$lt_libname_spec
7379 # List of archive names. First name is the real one, the rest are links.
7380 # The last name is the one that the linker finds with -lNAME.
7381 library_names_spec=$lt_library_names_spec
7383 # The coded name of the library, if different from the real name.
7384 soname_spec=$lt_soname_spec
7386 # Commands used to build and install an old-style archive.
7388 old_archive_cmds=$lt_old_archive_cmds
7389 old_postinstall_cmds=$lt_old_postinstall_cmds
7390 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7392 # Create an old-style archive from a shared archive.
7393 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7395 # Create a temporary old-style archive to link instead of a shared archive.
7396 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7398 # Commands used to build and install a shared archive.
7399 archive_cmds=$lt_archive_cmds
7400 archive_expsym_cmds=$lt_archive_expsym_cmds
7401 postinstall_cmds=$lt_postinstall_cmds
7402 postuninstall_cmds=$lt_postuninstall_cmds
7404 # Commands to strip libraries.
7405 old_striplib=$lt_old_striplib
7406 striplib=$lt_striplib
7408 # Method to check whether dependent libraries are shared objects.
7409 deplibs_check_method=$lt_deplibs_check_method
7411 # Command to use when deplibs_check_method == file_magic.
7412 file_magic_cmd=$lt_file_magic_cmd
7414 # Flag that allows shared libraries with undefined symbols to be built.
7415 allow_undefined_flag=$lt_allow_undefined_flag
7417 # Flag that forces no undefined symbols.
7418 no_undefined_flag=$lt_no_undefined_flag
7420 # Commands used to finish a libtool library installation in a directory.
7421 finish_cmds=$lt_finish_cmds
7423 # Same as above, but a single script fragment to be evaled but not shown.
7424 finish_eval=$lt_finish_eval
7426 # Take the output of nm and produce a listing of raw symbols and C names.
7427 global_symbol_pipe=$lt_global_symbol_pipe
7429 # Transform the output of nm in a proper C declaration
7430 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7432 # Transform the output of nm in a C name address pair
7433 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7435 # This is the shared library runtime path variable.
7436 runpath_var=$runpath_var
7438 # This is the shared library path variable.
7439 shlibpath_var=$shlibpath_var
7441 # Is shlibpath searched before the hard-coded library search path?
7442 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7444 # How to hardcode a shared library path into an executable.
7445 hardcode_action=$hardcode_action
7447 # Whether we should hardcode library paths into libraries.
7448 hardcode_into_libs=$hardcode_into_libs
7450 # Flag to hardcode \$libdir into a binary during linking.
7451 # This must work even if \$libdir does not exist.
7452 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7454 # Whether we need a single -rpath flag with a separated argument.
7455 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7457 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7459 hardcode_direct=$hardcode_direct
7461 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7463 hardcode_minus_L=$hardcode_minus_L
7465 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7466 # the resulting binary.
7467 hardcode_shlibpath_var=$hardcode_shlibpath_var
7469 # Variables whose values should be saved in libtool wrapper scripts and
7470 # restored at relink time.
7471 variables_saved_for_relink="$variables_saved_for_relink"
7473 # Whether libtool must link a program against all its dependency libraries.
7474 link_all_deplibs=$link_all_deplibs
7476 # Compile-time system search path for libraries
7477 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7479 # Run-time system search path for libraries
7480 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7482 # Fix the shell variable \$srcfile for the compiler.
7483 fix_srcfile_path="$fix_srcfile_path"
7485 # Set to yes if exported symbols are required.
7486 always_export_symbols=$always_export_symbols
7488 # The commands to list exported symbols.
7489 export_symbols_cmds=$lt_export_symbols_cmds
7491 # The commands to extract the exported symbol list from a shared archive.
7492 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7494 # Symbols that should not be listed in the preloaded symbols.
7495 exclude_expsyms=$lt_exclude_expsyms
7497 # Symbols that must always be exported.
7498 include_expsyms=$lt_include_expsyms
7500 # ### END LIBTOOL CONFIG
7506 cat <<\EOF >> "${ofile}T"
7508 # AIX sometimes has problems with the GCC collect2 program. For some
7509 # reason, if we set the COLLECT_NAMES environment variable, the problems
7510 # vanish in a puff of smoke.
7511 if test "X${COLLECT_NAMES+set}" != Xset; then
7513 export COLLECT_NAMES
7520 cygwin* | mingw* | pw32* | os2*)
7521 cat <<'EOF' >> "${ofile}T"
7522 # This is a source program that is used to create dlls on Windows
7523 # Don't remove nor modify the starting and closing comments
7524 # /* ltdll.c starts here */
7525 # #define WIN32_LEAN_AND_MEAN
7526 # #include <windows.h>
7527 # #undef WIN32_LEAN_AND_MEAN
7528 # #include <stdio.h>
7530 # #ifndef __CYGWIN__
7531 # # ifdef __CYGWIN32__
7532 # # define __CYGWIN__ __CYGWIN32__
7536 # #ifdef __cplusplus
7539 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7540 # #ifdef __cplusplus
7545 # #include <cygwin/cygwin_dll.h>
7546 # DECLARE_CYGWIN_DLL( DllMain );
7548 # HINSTANCE __hDllInstance_base;
7551 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7553 # __hDllInstance_base = hInst;
7556 # /* ltdll.c ends here */
7557 # This is a source program that is used to create import libraries
7558 # on Windows for dlls which lack them. Don't remove nor modify the
7559 # starting and closing comments
7560 # /* impgen.c starts here */
7561 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7563 # This file is part of GNU libtool.
7565 # This program is free software; you can redistribute it and/or modify
7566 # it under the terms of the GNU General Public License as published by
7567 # the Free Software Foundation; either version 2 of the License, or
7568 # (at your option) any later version.
7570 # This program is distributed in the hope that it will be useful,
7571 # but WITHOUT ANY WARRANTY; without even the implied warranty of
7572 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7573 # GNU General Public License for more details.
7575 # You should have received a copy of the GNU General Public License
7576 # along with this program; if not, write to the Free Software
7577 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7580 # #include <stdio.h> /* for printf() */
7581 # #include <unistd.h> /* for open(), lseek(), read() */
7582 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7583 # #include <string.h> /* for strdup() */
7585 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
7587 # #define O_BINARY 0
7590 # static unsigned int
7591 # pe_get16 (fd, offset)
7595 # unsigned char b[2];
7596 # lseek (fd, offset, SEEK_SET);
7598 # return b[0] + (b[1]<<8);
7601 # static unsigned int
7602 # pe_get32 (fd, offset)
7606 # unsigned char b[4];
7607 # lseek (fd, offset, SEEK_SET);
7609 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7612 # static unsigned int
7616 # unsigned char *b = ptr;
7617 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7626 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7627 # unsigned long export_rva, export_size, nsections, secptr, expptr;
7628 # unsigned long name_rvas, nexp;
7629 # unsigned char *expdata, *erva;
7630 # char *filename, *dll_name;
7632 # filename = argv[1];
7634 # dll = open(filename, O_RDONLY|O_BINARY);
7638 # dll_name = filename;
7640 # for (i=0; filename[i]; i++)
7641 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7642 # dll_name = filename + i +1;
7644 # pe_header_offset = pe_get32 (dll, 0x3c);
7645 # opthdr_ofs = pe_header_offset + 4 + 20;
7646 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
7648 # if (num_entries < 1) /* no exports */
7651 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
7652 # export_size = pe_get32 (dll, opthdr_ofs + 100);
7653 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7654 # secptr = (pe_header_offset + 4 + 20 +
7655 # pe_get16 (dll, pe_header_offset + 4 + 16));
7658 # for (i = 0; i < nsections; i++)
7661 # unsigned long secptr1 = secptr + 40 * i;
7662 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7663 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7664 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7665 # lseek(dll, secptr1, SEEK_SET);
7666 # read(dll, sname, 8);
7667 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
7669 # expptr = fptr + (export_rva - vaddr);
7670 # if (export_rva + export_size > vaddr + vsize)
7671 # export_size = vsize - (export_rva - vaddr);
7676 # expdata = (unsigned char*)malloc(export_size);
7677 # lseek (dll, expptr, SEEK_SET);
7678 # read (dll, expdata, export_size);
7679 # erva = expdata - export_rva;
7681 # nexp = pe_as32 (expdata+24);
7682 # name_rvas = pe_as32 (expdata+32);
7684 # printf ("EXPORTS\n");
7685 # for (i = 0; i<nexp; i++)
7687 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7688 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7693 # /* impgen.c ends here */
7699 # We use sed instead of cat because bash on DJGPP gets confused if
7700 # if finds mixed CR/LF and LF-only lines. Since sed operates in
7701 # text mode, it properly converts lines to CR/LF. This bash problem
7702 # is reportedly fixed, but why not run on old versions too?
7703 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7705 mv -f "${ofile}T" "$ofile" || \
7706 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7714 # This can be used to rebuild libtool when needed
7715 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7717 # Always use our own libtool.
7718 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7720 # Prevent multiple expansion
7724 # test for ln hardlink support
7725 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
7726 echo "configure:7727: checking whether ln works" >&5
7727 if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then
7728 echo $ac_n "(cached) $ac_c" 1>&6
7730 rm -f conftest.src conftest.dst
7731 echo "conftest" > conftest.src
7732 if ln conftest.src conftest.dst 2>/dev/null
7734 ol_cv_prog_LN_H="ln"
7736 ol_cv_prog_LN_H="cp"
7738 rm -f conftest.src conftest.dst
7741 LN_H="$ol_cv_prog_LN_H"
7742 if test "$ol_cv_prog_LN_H" = "ln"; then
7743 echo "$ac_t""yes" 1>&6
7745 echo "$ac_t""no" 1>&6
7748 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
7749 echo "configure:7750: checking whether ln -s works" >&5
7750 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
7751 echo $ac_n "(cached) $ac_c" 1>&6
7754 if ln -s X conftestdata 2>/dev/null
7757 ac_cv_prog_LN_S="ln -s"
7762 LN_S="$ac_cv_prog_LN_S"
7763 if test "$ac_cv_prog_LN_S" = "ln -s"; then
7764 echo "$ac_t""yes" 1>&6
7766 echo "$ac_t""no" 1>&6
7771 if test $ol_enable_perl != no ; then
7772 # Extract the first word of "perl", so it can be a program name with args.
7773 set dummy perl; ac_word=$2
7774 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7775 echo "configure:7776: checking for $ac_word" >&5
7776 if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then
7777 echo $ac_n "(cached) $ac_c" 1>&6
7781 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
7784 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
7787 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7789 for ac_dir in $ac_dummy; do
7790 test -z "$ac_dir" && ac_dir=.
7791 if test -f $ac_dir/$ac_word; then
7792 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
7797 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
7801 PERLBIN="$ac_cv_path_PERLBIN"
7802 if test -n "$PERLBIN"; then
7803 echo "$ac_t""$PERLBIN" 1>&6
7805 echo "$ac_t""no" 1>&6
7809 if test "no$PERLBIN" = "no" ; then
7810 if test $ol_enable_perl = yes ; then
7811 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
7815 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
7816 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
7818 if test x"$ol_enable_perl" = "xyes" ; then
7819 SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
7821 MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
7827 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
7828 echo "configure:7829: checking how to run the C preprocessor" >&5
7829 # On Suns, sometimes $CPP names a directory.
7830 if test -n "$CPP" && test -d "$CPP"; then
7833 if test -z "$CPP"; then
7834 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
7835 echo $ac_n "(cached) $ac_c" 1>&6
7837 # This must be in double quotes, not single quotes, because CPP may get
7838 # substituted into the Makefile and "${CC-cc}" will confuse make.
7840 # On the NeXT, cc -E runs the code through the compiler's parser,
7841 # not just through cpp.
7842 cat > conftest.$ac_ext <<EOF
7843 #line 7844 "configure"
7844 #include "confdefs.h"
7848 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7849 { (eval echo configure:7850: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7850 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7851 if test -z "$ac_err"; then
7855 echo "configure: failed program was:" >&5
7856 cat conftest.$ac_ext >&5
7858 CPP="${CC-cc} -E -traditional-cpp"
7859 cat > conftest.$ac_ext <<EOF
7860 #line 7861 "configure"
7861 #include "confdefs.h"
7865 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7866 { (eval echo configure:7867: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7867 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7868 if test -z "$ac_err"; then
7872 echo "configure: failed program was:" >&5
7873 cat conftest.$ac_ext >&5
7875 CPP="${CC-cc} -nologo -E"
7876 cat > conftest.$ac_ext <<EOF
7877 #line 7878 "configure"
7878 #include "confdefs.h"
7882 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7883 { (eval echo configure:7884: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7884 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7885 if test -z "$ac_err"; then
7889 echo "configure: failed program was:" >&5
7890 cat conftest.$ac_ext >&5
7899 ac_cv_prog_CPP="$CPP"
7901 CPP="$ac_cv_prog_CPP"
7903 ac_cv_prog_CPP="$CPP"
7905 echo "$ac_t""$CPP" 1>&6
7909 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
7910 echo "configure:7911: checking for Cygwin environment" >&5
7911 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
7912 echo $ac_n "(cached) $ac_c" 1>&6
7914 cat > conftest.$ac_ext <<EOF
7915 #line 7916 "configure"
7916 #include "confdefs.h"
7921 #define __CYGWIN__ __CYGWIN32__
7926 if { (eval echo configure:7927: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7930 echo "configure: failed program was:" >&5
7931 cat conftest.$ac_ext >&5
7938 echo "$ac_t""$ac_cv_cygwin" 1>&6
7940 test "$ac_cv_cygwin" = yes && CYGWIN=yes
7941 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
7942 echo "configure:7943: checking for mingw32 environment" >&5
7943 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
7944 echo $ac_n "(cached) $ac_c" 1>&6
7946 cat > conftest.$ac_ext <<EOF
7947 #line 7948 "configure"
7948 #include "confdefs.h"
7954 if { (eval echo configure:7955: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7958 echo "configure: failed program was:" >&5
7959 cat conftest.$ac_ext >&5
7966 echo "$ac_t""$ac_cv_mingw32" 1>&6
7968 test "$ac_cv_mingw32" = yes && MINGW32=yes
7972 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
7973 echo "configure:7974: checking for executable suffix" >&5
7974 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
7975 echo $ac_n "(cached) $ac_c" 1>&6
7977 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
7981 echo 'int main () { return 0; }' > conftest.$ac_ext
7983 if { (eval echo configure:7984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
7984 for file in conftest.*; do
7986 *.c | *.C | *.o | *.obj | *.xcoff) ;;
7987 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
7991 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
7994 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
7999 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
8000 echo "$ac_t""${ac_cv_exeext}" 1>&6
8003 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
8004 echo "configure:8005: checking for object suffix" >&5
8005 if eval "test \"\${ac_cv_objext+set}\" = set"; then
8006 echo $ac_n "(cached) $ac_c" 1>&6
8009 echo 'int i = 1;' > conftest.$ac_ext
8010 if { (eval echo configure:8011: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8011 for ac_file in conftest.*; do
8014 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
8018 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
8023 echo "$ac_t""$ac_cv_objext" 1>&6
8024 OBJEXT=$ac_cv_objext
8025 ac_objext=$ac_cv_objext
8028 cat >> confdefs.h <<EOF
8029 #define EXEEXT "${EXEEXT}"
8033 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
8034 echo "configure:8035: checking for be_app in -lbe" >&5
8035 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
8036 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8037 echo $ac_n "(cached) $ac_c" 1>&6
8039 ac_save_LIBS="$LIBS"
8040 LIBS="-lbe -lroot -lnet $LIBS"
8041 cat > conftest.$ac_ext <<EOF
8042 #line 8043 "configure"
8043 #include "confdefs.h"
8044 /* Override any gcc2 internal prototype to avoid an error. */
8045 /* We use char because int might match the return type of a gcc2
8046 builtin and then its argument prototype would still apply. */
8053 if { (eval echo configure:8054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8055 eval "ac_cv_lib_$ac_lib_var=yes"
8057 echo "configure: failed program was:" >&5
8058 cat conftest.$ac_ext >&5
8060 eval "ac_cv_lib_$ac_lib_var=no"
8063 LIBS="$ac_save_LIBS"
8066 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8067 echo "$ac_t""yes" 1>&6
8068 LIBS="$LIBS -lbe -lroot -lnet"
8070 echo "$ac_t""no" 1>&6
8078 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
8079 echo "configure:8080: checking for ${CC-cc} option to accept ANSI C" >&5
8080 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
8081 echo $ac_n "(cached) $ac_c" 1>&6
8083 am_cv_prog_cc_stdc=no
8085 # Don't try gcc -ansi; that turns off useful extensions and
8086 # breaks some systems' header files.
8087 # AIX -qlanglvl=ansi
8088 # Ultrix and OSF/1 -std1
8089 # HP-UX 10.20 and later -Ae
8090 # HP-UX older versions -Aa -D_HPUX_SOURCE
8091 # SVR4 -Xc -D__EXTENSIONS__
8092 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
8094 CC="$ac_save_CC $ac_arg"
8095 cat > conftest.$ac_ext <<EOF
8096 #line 8097 "configure"
8097 #include "confdefs.h"
8100 #include <sys/types.h>
8101 #include <sys/stat.h>
8102 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
8103 struct buf { int x; };
8104 FILE * (*rcsopen) (struct buf *, struct stat *, int);
8105 static char *e (p, i)
8111 static char *f (char * (*g) (char **, int), char **p, ...)
8116 s = g (p, va_arg (v,int));
8120 int test (int i, double x);
8121 struct s1 {int (*f) (int a);};
8122 struct s2 {int (*f) (double a);};
8123 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
8129 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
8133 if { (eval echo configure:8134: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8135 am_cv_prog_cc_stdc="$ac_arg"; break
8137 echo "configure: failed program was:" >&5
8138 cat conftest.$ac_ext >&5
8146 if test -z "$am_cv_prog_cc_stdc"; then
8147 echo "$ac_t""none needed" 1>&6
8149 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
8151 case "x$am_cv_prog_cc_stdc" in
8153 *) CC="$CC $am_cv_prog_cc_stdc" ;;
8156 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
8157 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
8160 # test for make depend flag
8163 if test -z "${MKDEP}"; then
8165 if test -z "${MKDEP_FLAGS}"; then
8166 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
8167 echo "configure:8168: checking for ${OL_MKDEP} depend flag" >&5
8168 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
8169 echo $ac_n "(cached) $ac_c" 1>&6
8173 for flag in "-M" "-xM"; do
8174 cat > conftest.c <<EOF
8177 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:8178: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
8178 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
8180 if test ! -f conftest."${ac_object}" ; then
8182 OL_MKDEP_FLAGS="$flag"
8191 echo "$ac_t""$ol_cv_mkdep" 1>&6
8194 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
8199 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
8204 if test "${ol_cv_mkdep}" = no ; then
8205 # this will soon become an error
8206 echo "configure: warning: do not know how to generate dependencies" 1>&2
8209 echo $ac_n "checking for afopen in -ls""... $ac_c" 1>&6
8210 echo "configure:8211: checking for afopen in -ls" >&5
8211 ac_lib_var=`echo s'_'afopen | sed 'y%./+-:%__p__%'`
8212 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8213 echo $ac_n "(cached) $ac_c" 1>&6
8215 ac_save_LIBS="$LIBS"
8217 cat > conftest.$ac_ext <<EOF
8218 #line 8219 "configure"
8219 #include "confdefs.h"
8220 /* Override any gcc2 internal prototype to avoid an error. */
8221 /* We use char because int might match the return type of a gcc2
8222 builtin and then its argument prototype would still apply. */
8229 if { (eval echo configure:8230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8231 eval "ac_cv_lib_$ac_lib_var=yes"
8233 echo "configure: failed program was:" >&5
8234 cat conftest.$ac_ext >&5
8236 eval "ac_cv_lib_$ac_lib_var=no"
8239 LIBS="$ac_save_LIBS"
8242 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8243 echo "$ac_t""yes" 1>&6
8246 cat >> confdefs.h <<\EOF
8247 #define HAVE_AIX_SECURITY 1
8252 echo "$ac_t""no" 1>&6
8258 ac_cv_func_getopt=no
8259 cat >> confdefs.h <<\EOF
8260 #define BOTH_STRINGS_H 1
8267 if test $ol_enable_modules != no ; then
8268 for ac_hdr in ltdl.h
8270 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8271 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8272 echo "configure:8273: checking for $ac_hdr" >&5
8273 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8274 echo $ac_n "(cached) $ac_c" 1>&6
8276 cat > conftest.$ac_ext <<EOF
8277 #line 8278 "configure"
8278 #include "confdefs.h"
8281 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8282 { (eval echo configure:8283: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8283 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8284 if test -z "$ac_err"; then
8286 eval "ac_cv_header_$ac_safe=yes"
8289 echo "configure: failed program was:" >&5
8290 cat conftest.$ac_ext >&5
8292 eval "ac_cv_header_$ac_safe=no"
8296 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8297 echo "$ac_t""yes" 1>&6
8298 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8299 cat >> confdefs.h <<EOF
8300 #define $ac_tr_hdr 1
8304 echo "$ac_t""no" 1>&6
8309 if test $ac_cv_header_ltdl_h = no ; then
8310 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
8313 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
8314 echo "configure:8315: checking for lt_dlinit in -lltdl" >&5
8315 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
8316 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8317 echo $ac_n "(cached) $ac_c" 1>&6
8319 ac_save_LIBS="$LIBS"
8321 cat > conftest.$ac_ext <<EOF
8322 #line 8323 "configure"
8323 #include "confdefs.h"
8324 /* Override any gcc2 internal prototype to avoid an error. */
8325 /* We use char because int might match the return type of a gcc2
8326 builtin and then its argument prototype would still apply. */
8333 if { (eval echo configure:8334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8335 eval "ac_cv_lib_$ac_lib_var=yes"
8337 echo "configure: failed program was:" >&5
8338 cat conftest.$ac_ext >&5
8340 eval "ac_cv_lib_$ac_lib_var=no"
8343 LIBS="$ac_save_LIBS"
8346 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8347 echo "$ac_t""yes" 1>&6
8350 cat >> confdefs.h <<\EOF
8351 #define HAVE_LIBLTDL 1
8356 echo "$ac_t""no" 1>&6
8360 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
8361 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
8366 for i in $Backends; do
8367 eval "ol_tmp=\$ol_enable_$i"
8368 if test $ol_tmp = mod ; then
8369 echo "configure: warning: building static $i backend" 1>&2
8370 eval "ol_enable_$i=yes"
8373 for i in $Overlays; do
8374 eval "ol_tmp=\$ol_enable_$i"
8375 if test $ol_tmp = mod ; then
8376 echo "configure: warning: building static $i overlay" 1>&2
8377 eval "ol_enable_$i=yes"
8383 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
8384 echo "configure:8385: checking for EBCDIC" >&5
8385 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
8386 echo $ac_n "(cached) $ac_c" 1>&6
8389 cat > conftest.$ac_ext <<EOF
8390 #line 8391 "configure"
8391 #include "confdefs.h"
8394 #include <__ASCII__/generate_error.h>
8398 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8399 { (eval echo configure:8400: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8400 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8401 if test -z "$ac_err"; then
8403 ol_cv_cpp_ebcdic=yes
8406 echo "configure: failed program was:" >&5
8407 cat conftest.$ac_ext >&5
8414 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
8415 if test $ol_cv_cpp_ebcdic = yes ; then
8416 cat >> confdefs.h <<\EOF
8417 #define HAVE_EBCDIC 1
8422 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
8423 echo "configure:8424: checking for ANSI C header files" >&5
8424 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
8425 echo $ac_n "(cached) $ac_c" 1>&6
8427 cat > conftest.$ac_ext <<EOF
8428 #line 8429 "configure"
8429 #include "confdefs.h"
8435 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8436 { (eval echo configure:8437: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8437 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8438 if test -z "$ac_err"; then
8440 ol_cv_header_stdc=yes
8443 echo "configure: failed program was:" >&5
8444 cat conftest.$ac_ext >&5
8446 ol_cv_header_stdc=no
8450 if test $ol_cv_header_stdc = yes; then
8451 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8452 cat > conftest.$ac_ext <<EOF
8453 #line 8454 "configure"
8454 #include "confdefs.h"
8457 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8458 egrep "memchr" >/dev/null 2>&1; then
8462 ol_cv_header_stdc=no
8468 if test $ol_cv_header_stdc = yes; then
8469 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8470 cat > conftest.$ac_ext <<EOF
8471 #line 8472 "configure"
8472 #include "confdefs.h"
8475 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8476 egrep "free" >/dev/null 2>&1; then
8480 ol_cv_header_stdc=no
8486 if test $ol_cv_header_stdc = yes; then
8487 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8488 if test "$cross_compiling" = yes; then
8491 cat > conftest.$ac_ext <<EOF
8492 #line 8493 "configure"
8493 #include "confdefs.h"
8496 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8497 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8499 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
8500 || ('j' <= (c) && (c) <= 'r') \
8501 || ('s' <= (c) && (c) <= 'z'))
8502 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8504 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8505 int main () { int i; for (i = 0; i < 256; i++)
8506 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
8510 if { (eval echo configure:8511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8514 echo "configure: failed program was:" >&5
8515 cat conftest.$ac_ext >&5
8517 ol_cv_header_stdc=no
8525 echo "$ac_t""$ol_cv_header_stdc" 1>&6
8526 if test $ol_cv_header_stdc = yes; then
8527 cat >> confdefs.h <<\EOF
8528 #define STDC_HEADERS 1
8532 ac_cv_header_stdc=disable
8535 if test $ol_cv_header_stdc != yes; then
8536 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
8540 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
8542 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8543 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
8544 echo "configure:8545: checking for $ac_hdr that defines DIR" >&5
8545 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
8546 echo $ac_n "(cached) $ac_c" 1>&6
8548 cat > conftest.$ac_ext <<EOF
8549 #line 8550 "configure"
8550 #include "confdefs.h"
8551 #include <sys/types.h>
8557 if { (eval echo configure:8558: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8559 eval "ac_cv_header_dirent_$ac_safe=yes"
8561 echo "configure: failed program was:" >&5
8562 cat conftest.$ac_ext >&5
8564 eval "ac_cv_header_dirent_$ac_safe=no"
8568 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
8569 echo "$ac_t""yes" 1>&6
8570 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8571 cat >> confdefs.h <<EOF
8572 #define $ac_tr_hdr 1
8574 ac_header_dirent=$ac_hdr; break
8576 echo "$ac_t""no" 1>&6
8579 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8580 if test $ac_header_dirent = dirent.h; then
8581 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
8582 echo "configure:8583: checking for opendir in -ldir" >&5
8583 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
8584 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8585 echo $ac_n "(cached) $ac_c" 1>&6
8587 ac_save_LIBS="$LIBS"
8589 cat > conftest.$ac_ext <<EOF
8590 #line 8591 "configure"
8591 #include "confdefs.h"
8592 /* Override any gcc2 internal prototype to avoid an error. */
8593 /* We use char because int might match the return type of a gcc2
8594 builtin and then its argument prototype would still apply. */
8601 if { (eval echo configure:8602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8603 eval "ac_cv_lib_$ac_lib_var=yes"
8605 echo "configure: failed program was:" >&5
8606 cat conftest.$ac_ext >&5
8608 eval "ac_cv_lib_$ac_lib_var=no"
8611 LIBS="$ac_save_LIBS"
8614 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8615 echo "$ac_t""yes" 1>&6
8618 echo "$ac_t""no" 1>&6
8622 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
8623 echo "configure:8624: checking for opendir in -lx" >&5
8624 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
8625 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8626 echo $ac_n "(cached) $ac_c" 1>&6
8628 ac_save_LIBS="$LIBS"
8630 cat > conftest.$ac_ext <<EOF
8631 #line 8632 "configure"
8632 #include "confdefs.h"
8633 /* Override any gcc2 internal prototype to avoid an error. */
8634 /* We use char because int might match the return type of a gcc2
8635 builtin and then its argument prototype would still apply. */
8642 if { (eval echo configure:8643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8644 eval "ac_cv_lib_$ac_lib_var=yes"
8646 echo "configure: failed program was:" >&5
8647 cat conftest.$ac_ext >&5
8649 eval "ac_cv_lib_$ac_lib_var=no"
8652 LIBS="$ac_save_LIBS"
8655 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8656 echo "$ac_t""yes" 1>&6
8659 echo "$ac_t""no" 1>&6
8664 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
8665 echo "configure:8666: checking for sys/wait.h that is POSIX.1 compatible" >&5
8666 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
8667 echo $ac_n "(cached) $ac_c" 1>&6
8669 cat > conftest.$ac_ext <<EOF
8670 #line 8671 "configure"
8671 #include "confdefs.h"
8672 #include <sys/types.h>
8673 #include <sys/wait.h>
8675 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8678 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8683 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8686 if { (eval echo configure:8687: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8688 ac_cv_header_sys_wait_h=yes
8690 echo "configure: failed program was:" >&5
8691 cat conftest.$ac_ext >&5
8693 ac_cv_header_sys_wait_h=no
8698 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
8699 if test $ac_cv_header_sys_wait_h = yes; then
8700 cat >> confdefs.h <<\EOF
8701 #define HAVE_SYS_WAIT_H 1
8706 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
8707 echo "configure:8708: checking POSIX termios" >&5
8708 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
8709 echo $ac_n "(cached) $ac_c" 1>&6
8711 cat > conftest.$ac_ext <<EOF
8712 #line 8713 "configure"
8713 #include "confdefs.h"
8714 #include <sys/types.h>
8716 #include <termios.h>
8718 /* SunOS 4.0.3 has termios.h but not the library calls. */
8722 if { (eval echo configure:8723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8724 am_cv_sys_posix_termios=yes
8726 echo "configure: failed program was:" >&5
8727 cat conftest.$ac_ext >&5
8729 am_cv_sys_posix_termios=no
8734 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
8737 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
8738 echo "configure:8739: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
8739 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
8740 echo $ac_n "(cached) $ac_c" 1>&6
8742 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
8744 gwinsz_in_termios_h=no
8745 if test $am_cv_sys_posix_termios = yes; then
8746 cat > conftest.$ac_ext <<EOF
8747 #line 8748 "configure"
8748 #include "confdefs.h"
8749 #include <sys/types.h>
8750 # include <termios.h>
8756 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8757 egrep "yes" >/dev/null 2>&1; then
8759 gwinsz_in_termios_h=yes
8765 if test $gwinsz_in_termios_h = no; then
8766 cat > conftest.$ac_ext <<EOF
8767 #line 8768 "configure"
8768 #include "confdefs.h"
8769 #include <sys/types.h>
8770 # include <sys/ioctl.h>
8776 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8777 egrep "yes" >/dev/null 2>&1; then
8779 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
8787 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
8788 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
8789 cat >> confdefs.h <<\EOF
8790 #define GWINSZ_IN_SYS_IOCTL 1
8795 if test $am_cv_sys_posix_termios = yes ; then
8796 cat >> confdefs.h <<\EOF
8797 #define HAVE_POSIX_TERMIOS 1
8853 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8854 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8855 echo "configure:8856: checking for $ac_hdr" >&5
8856 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8857 echo $ac_n "(cached) $ac_c" 1>&6
8859 cat > conftest.$ac_ext <<EOF
8860 #line 8861 "configure"
8861 #include "confdefs.h"
8864 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8865 { (eval echo configure:8866: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8866 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8867 if test -z "$ac_err"; then
8869 eval "ac_cv_header_$ac_safe=yes"
8872 echo "configure: failed program was:" >&5
8873 cat conftest.$ac_ext >&5
8875 eval "ac_cv_header_$ac_safe=no"
8879 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8880 echo "$ac_t""yes" 1>&6
8881 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8882 cat >> confdefs.h <<EOF
8883 #define $ac_tr_hdr 1
8887 echo "$ac_t""no" 1>&6
8894 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
8895 echo "configure:8896: checking for sigset in -lV3" >&5
8896 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
8897 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8898 echo $ac_n "(cached) $ac_c" 1>&6
8900 ac_save_LIBS="$LIBS"
8902 cat > conftest.$ac_ext <<EOF
8903 #line 8904 "configure"
8904 #include "confdefs.h"
8905 /* Override any gcc2 internal prototype to avoid an error. */
8906 /* We use char because int might match the return type of a gcc2
8907 builtin and then its argument prototype would still apply. */
8914 if { (eval echo configure:8915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8916 eval "ac_cv_lib_$ac_lib_var=yes"
8918 echo "configure: failed program was:" >&5
8919 cat conftest.$ac_ext >&5
8921 eval "ac_cv_lib_$ac_lib_var=no"
8924 LIBS="$ac_save_LIBS"
8927 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8928 echo "$ac_t""yes" 1>&6
8929 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8930 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8931 cat >> confdefs.h <<EOF
8932 #define $ac_tr_lib 1
8938 echo "$ac_t""no" 1>&6
8942 if test "$ac_cv_header_winsock_h" = yes; then
8943 echo $ac_n "checking for winsock""... $ac_c" 1>&6
8944 echo "configure:8945: checking for winsock" >&5
8945 if eval "test \"\${ol_cv_winsock+set}\" = set"; then
8946 echo $ac_n "(cached) $ac_c" 1>&6
8949 for curlib in ws2_32 wsock32; do
8950 LIBS="$LIBS -l$curlib"
8951 cat > conftest.$ac_ext <<EOF
8952 #line 8953 "configure"
8953 #include "confdefs.h"
8954 #include <winsock.h>
8959 select(0,NULL,NULL,NULL,NULL);
8961 gethostname(NULL,0);
8965 if { (eval echo configure:8966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8969 echo "configure: failed program was:" >&5
8970 cat conftest.$ac_ext >&5
8976 if test $ol_cv_winsock = yes; then
8977 cat >> confdefs.h <<\EOF
8978 #define HAVE_WINSOCK 1
8981 ac_cv_func_socket=yes
8982 ac_cv_func_select=yes
8983 ac_cv_func_closesocket=yes
8984 ac_cv_func_gethostname=yes
8985 if test $curlib = ws2_32; then
8986 ol_cv_winsock=winsock2
8987 cat >> confdefs.h <<\EOF
8988 #define HAVE_WINSOCK2 1
8998 echo "$ac_t""$ol_cv_winsock" 1>&6
9002 echo $ac_n "checking for socket""... $ac_c" 1>&6
9003 echo "configure:9004: checking for socket" >&5
9004 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
9005 echo $ac_n "(cached) $ac_c" 1>&6
9007 cat > conftest.$ac_ext <<EOF
9008 #line 9009 "configure"
9009 #include "confdefs.h"
9010 /* System header to define __stub macros and hopefully few prototypes,
9011 which can conflict with char socket(); below. */
9013 /* Override any gcc2 internal prototype to avoid an error. */
9014 /* We use char because int might match the return type of a gcc2
9015 builtin and then its argument prototype would still apply. */
9021 /* The GNU C library defines this for functions which it implements
9022 to always fail with ENOSYS. Some functions are actually named
9023 something starting with __ and the normal name is an alias. */
9024 #if defined (__stub_socket) || defined (__stub___socket)
9032 if { (eval echo configure:9033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9034 eval "ac_cv_func_socket=yes"
9036 echo "configure: failed program was:" >&5
9037 cat conftest.$ac_ext >&5
9039 eval "ac_cv_func_socket=no"
9044 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
9045 echo "$ac_t""yes" 1>&6
9048 echo "$ac_t""no" 1>&6
9050 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
9051 echo "configure:9052: checking for main in -lsocket" >&5
9052 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
9053 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9054 echo $ac_n "(cached) $ac_c" 1>&6
9056 ac_save_LIBS="$LIBS"
9057 LIBS="-lsocket $LIBS"
9058 cat > conftest.$ac_ext <<EOF
9059 #line 9060 "configure"
9060 #include "confdefs.h"
9066 if { (eval echo configure:9067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9068 eval "ac_cv_lib_$ac_lib_var=yes"
9070 echo "configure: failed program was:" >&5
9071 cat conftest.$ac_ext >&5
9073 eval "ac_cv_lib_$ac_lib_var=no"
9076 LIBS="$ac_save_LIBS"
9079 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9080 echo "$ac_t""yes" 1>&6
9081 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9082 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9083 cat >> confdefs.h <<EOF
9084 #define $ac_tr_lib 1
9087 LIBS="-lsocket $LIBS"
9090 echo "$ac_t""no" 1>&6
9093 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
9094 echo "configure:9095: checking for main in -lnet" >&5
9095 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
9096 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9097 echo $ac_n "(cached) $ac_c" 1>&6
9099 ac_save_LIBS="$LIBS"
9101 cat > conftest.$ac_ext <<EOF
9102 #line 9103 "configure"
9103 #include "confdefs.h"
9109 if { (eval echo configure:9110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9111 eval "ac_cv_lib_$ac_lib_var=yes"
9113 echo "configure: failed program was:" >&5
9114 cat conftest.$ac_ext >&5
9116 eval "ac_cv_lib_$ac_lib_var=no"
9119 LIBS="$ac_save_LIBS"
9122 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9123 echo "$ac_t""yes" 1>&6
9124 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9125 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9126 cat >> confdefs.h <<EOF
9127 #define $ac_tr_lib 1
9133 echo "$ac_t""no" 1>&6
9136 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
9137 echo "configure:9138: checking for main in -lnsl_s" >&5
9138 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
9139 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9140 echo $ac_n "(cached) $ac_c" 1>&6
9142 ac_save_LIBS="$LIBS"
9143 LIBS="-lnsl_s $LIBS"
9144 cat > conftest.$ac_ext <<EOF
9145 #line 9146 "configure"
9146 #include "confdefs.h"
9152 if { (eval echo configure:9153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9154 eval "ac_cv_lib_$ac_lib_var=yes"
9156 echo "configure: failed program was:" >&5
9157 cat conftest.$ac_ext >&5
9159 eval "ac_cv_lib_$ac_lib_var=no"
9162 LIBS="$ac_save_LIBS"
9165 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9166 echo "$ac_t""yes" 1>&6
9167 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9168 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9169 cat >> confdefs.h <<EOF
9170 #define $ac_tr_lib 1
9173 LIBS="-lnsl_s $LIBS"
9176 echo "$ac_t""no" 1>&6
9179 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
9180 echo "configure:9181: checking for main in -lnsl" >&5
9181 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
9182 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9183 echo $ac_n "(cached) $ac_c" 1>&6
9185 ac_save_LIBS="$LIBS"
9187 cat > conftest.$ac_ext <<EOF
9188 #line 9189 "configure"
9189 #include "confdefs.h"
9195 if { (eval echo configure:9196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9197 eval "ac_cv_lib_$ac_lib_var=yes"
9199 echo "configure: failed program was:" >&5
9200 cat conftest.$ac_ext >&5
9202 eval "ac_cv_lib_$ac_lib_var=no"
9205 LIBS="$ac_save_LIBS"
9208 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9209 echo "$ac_t""yes" 1>&6
9210 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9211 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9212 cat >> confdefs.h <<EOF
9213 #define $ac_tr_lib 1
9219 echo "$ac_t""no" 1>&6
9222 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
9223 echo "configure:9224: checking for socket in -linet" >&5
9224 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
9225 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9226 echo $ac_n "(cached) $ac_c" 1>&6
9228 ac_save_LIBS="$LIBS"
9230 cat > conftest.$ac_ext <<EOF
9231 #line 9232 "configure"
9232 #include "confdefs.h"
9233 /* Override any gcc2 internal prototype to avoid an error. */
9234 /* We use char because int might match the return type of a gcc2
9235 builtin and then its argument prototype would still apply. */
9242 if { (eval echo configure:9243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9244 eval "ac_cv_lib_$ac_lib_var=yes"
9246 echo "configure: failed program was:" >&5
9247 cat conftest.$ac_ext >&5
9249 eval "ac_cv_lib_$ac_lib_var=no"
9252 LIBS="$ac_save_LIBS"
9255 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9256 echo "$ac_t""yes" 1>&6
9257 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9258 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9259 cat >> confdefs.h <<EOF
9260 #define $ac_tr_lib 1
9266 echo "$ac_t""no" 1>&6
9269 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
9270 echo "configure:9271: checking for main in -lgen" >&5
9271 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
9272 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9273 echo $ac_n "(cached) $ac_c" 1>&6
9275 ac_save_LIBS="$LIBS"
9277 cat > conftest.$ac_ext <<EOF
9278 #line 9279 "configure"
9279 #include "confdefs.h"
9285 if { (eval echo configure:9286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9287 eval "ac_cv_lib_$ac_lib_var=yes"
9289 echo "configure: failed program was:" >&5
9290 cat conftest.$ac_ext >&5
9292 eval "ac_cv_lib_$ac_lib_var=no"
9295 LIBS="$ac_save_LIBS"
9298 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9299 echo "$ac_t""yes" 1>&6
9300 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9301 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9302 cat >> confdefs.h <<EOF
9303 #define $ac_tr_lib 1
9309 echo "$ac_t""no" 1>&6
9316 echo $ac_n "checking for select""... $ac_c" 1>&6
9317 echo "configure:9318: checking for select" >&5
9318 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
9319 echo $ac_n "(cached) $ac_c" 1>&6
9321 cat > conftest.$ac_ext <<EOF
9322 #line 9323 "configure"
9323 #include "confdefs.h"
9324 /* System header to define __stub macros and hopefully few prototypes,
9325 which can conflict with char select(); below. */
9327 /* Override any gcc2 internal prototype to avoid an error. */
9328 /* We use char because int might match the return type of a gcc2
9329 builtin and then its argument prototype would still apply. */
9335 /* The GNU C library defines this for functions which it implements
9336 to always fail with ENOSYS. Some functions are actually named
9337 something starting with __ and the normal name is an alias. */
9338 #if defined (__stub_select) || defined (__stub___select)
9346 if { (eval echo configure:9347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9348 eval "ac_cv_func_select=yes"
9350 echo "configure: failed program was:" >&5
9351 cat conftest.$ac_ext >&5
9353 eval "ac_cv_func_select=no"
9358 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
9359 echo "$ac_t""yes" 1>&6
9362 echo "$ac_t""no" 1>&6
9363 { echo "configure: error: select() required." 1>&2; exit 1; }
9367 if test "${ac_cv_header_winsock_h}" != yes; then
9368 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
9369 echo "configure:9370: checking types of arguments for select()" >&5
9370 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
9371 echo $ac_n "(cached) $ac_c" 1>&6
9373 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
9374 echo $ac_n "(cached) $ac_c" 1>&6
9376 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
9377 echo $ac_n "(cached) $ac_c" 1>&6
9379 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
9380 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
9381 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
9382 cat > conftest.$ac_ext <<EOF
9383 #line 9384 "configure"
9384 #include "confdefs.h"
9385 #ifdef HAVE_SYS_TYPES_H
9386 #include <sys/types.h>
9388 #ifdef HAVE_SYS_TIME_H
9389 #include <sys/time.h>
9391 #ifdef HAVE_SYS_SELECT_H
9392 #include <sys/select.h>
9394 #ifdef HAVE_SYS_SOCKET_H
9395 #include <sys/socket.h>
9397 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);
9402 if { (eval echo configure:9403: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9404 ac_not_found=no ; break 3
9406 echo "configure: failed program was:" >&5
9407 cat conftest.$ac_ext >&5
9421 if test "$ac_not_found" = yes; then
9422 ac_cv_func_select_arg1=int
9423 ac_cv_func_select_arg234='int *'
9424 ac_cv_func_select_arg5='struct timeval *'
9426 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
9427 cat >> confdefs.h <<EOF
9428 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
9431 cat >> confdefs.h <<EOF
9432 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
9435 cat >> confdefs.h <<EOF
9436 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
9443 for ac_hdr in regex.h
9445 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9446 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9447 echo "configure:9448: checking for $ac_hdr" >&5
9448 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9449 echo $ac_n "(cached) $ac_c" 1>&6
9451 cat > conftest.$ac_ext <<EOF
9452 #line 9453 "configure"
9453 #include "confdefs.h"
9456 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9457 { (eval echo configure:9458: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9458 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9459 if test -z "$ac_err"; then
9461 eval "ac_cv_header_$ac_safe=yes"
9464 echo "configure: failed program was:" >&5
9465 cat conftest.$ac_ext >&5
9467 eval "ac_cv_header_$ac_safe=no"
9471 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9472 echo "$ac_t""yes" 1>&6
9473 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9474 cat >> confdefs.h <<EOF
9475 #define $ac_tr_hdr 1
9479 echo "$ac_t""no" 1>&6
9483 if test "$ac_cv_header_regex_h" != yes ; then
9484 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
9487 echo $ac_n "checking for library containing regfree""... $ac_c" 1>&6
9488 echo "configure:9489: checking for library containing regfree" >&5
9489 if eval "test \"\${ac_cv_search_regfree+set}\" = set"; then
9490 echo $ac_n "(cached) $ac_c" 1>&6
9492 ac_func_search_save_LIBS="$LIBS"
9493 ac_cv_search_regfree="no"
9494 cat > conftest.$ac_ext <<EOF
9495 #line 9496 "configure"
9496 #include "confdefs.h"
9497 /* Override any gcc2 internal prototype to avoid an error. */
9498 /* We use char because int might match the return type of a gcc2
9499 builtin and then its argument prototype would still apply. */
9506 if { (eval echo configure:9507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9508 ac_cv_search_regfree="none required"
9510 echo "configure: failed program was:" >&5
9511 cat conftest.$ac_ext >&5
9514 test "$ac_cv_search_regfree" = "no" && for ac_lib in regex gnuregex; do
9515 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9516 cat > conftest.$ac_ext <<EOF
9517 #line 9518 "configure"
9518 #include "confdefs.h"
9519 /* Override any gcc2 internal prototype to avoid an error. */
9520 /* We use char because int might match the return type of a gcc2
9521 builtin and then its argument prototype would still apply. */
9528 if { (eval echo configure:9529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9530 ac_cv_search_regfree="-l$ac_lib"
9533 echo "configure: failed program was:" >&5
9534 cat conftest.$ac_ext >&5
9538 LIBS="$ac_func_search_save_LIBS"
9541 echo "$ac_t""$ac_cv_search_regfree" 1>&6
9542 if test "$ac_cv_search_regfree" != "no"; then
9543 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
9546 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
9550 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
9551 echo "configure:9552: checking for compatible POSIX regex" >&5
9552 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
9553 echo $ac_n "(cached) $ac_c" 1>&6
9556 if test "$cross_compiling" = yes; then
9557 ol_cv_c_posix_regex=cross
9559 cat > conftest.$ac_ext <<EOF
9560 #line 9561 "configure"
9561 #include "confdefs.h"
9563 #include <sys/types.h>
9565 static char *pattern, *string;
9573 if(regcomp(&re, pattern, 0)) {
9577 string = "ALL MATCH";
9579 rc = regexec(&re, string, 0, (void*)0, 0);
9586 if { (eval echo configure:9587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9588 ol_cv_c_posix_regex=yes
9590 echo "configure: failed program was:" >&5
9591 cat conftest.$ac_ext >&5
9593 ol_cv_c_posix_regex=no
9600 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
9602 if test "$ol_cv_c_posix_regex" = no ; then
9603 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
9608 for ac_hdr in sys/uuid.h
9610 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9611 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9612 echo "configure:9613: checking for $ac_hdr" >&5
9613 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9614 echo $ac_n "(cached) $ac_c" 1>&6
9616 cat > conftest.$ac_ext <<EOF
9617 #line 9618 "configure"
9618 #include "confdefs.h"
9621 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9622 { (eval echo configure:9623: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9623 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9624 if test -z "$ac_err"; then
9626 eval "ac_cv_header_$ac_safe=yes"
9629 echo "configure: failed program was:" >&5
9630 cat conftest.$ac_ext >&5
9632 eval "ac_cv_header_$ac_safe=no"
9636 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9637 echo "$ac_t""yes" 1>&6
9638 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9639 cat >> confdefs.h <<EOF
9640 #define $ac_tr_hdr 1
9644 echo "$ac_t""no" 1>&6
9648 if test $ac_cv_header_sys_uuid_h = yes ; then
9651 echo $ac_n "checking for library containing uuid_to_str""... $ac_c" 1>&6
9652 echo "configure:9653: checking for library containing uuid_to_str" >&5
9653 if eval "test \"\${ac_cv_search_uuid_to_str+set}\" = set"; then
9654 echo $ac_n "(cached) $ac_c" 1>&6
9656 ac_func_search_save_LIBS="$LIBS"
9657 ac_cv_search_uuid_to_str="no"
9658 cat > conftest.$ac_ext <<EOF
9659 #line 9660 "configure"
9660 #include "confdefs.h"
9661 /* Override any gcc2 internal prototype to avoid an error. */
9662 /* We use char because int might match the return type of a gcc2
9663 builtin and then its argument prototype would still apply. */
9670 if { (eval echo configure:9671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9672 ac_cv_search_uuid_to_str="none required"
9674 echo "configure: failed program was:" >&5
9675 cat conftest.$ac_ext >&5
9678 test "$ac_cv_search_uuid_to_str" = "no" && for ac_lib in uuid; do
9679 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9680 cat > conftest.$ac_ext <<EOF
9681 #line 9682 "configure"
9682 #include "confdefs.h"
9683 /* Override any gcc2 internal prototype to avoid an error. */
9684 /* We use char because int might match the return type of a gcc2
9685 builtin and then its argument prototype would still apply. */
9692 if { (eval echo configure:9693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9694 ac_cv_search_uuid_to_str="-l$ac_lib"
9697 echo "configure: failed program was:" >&5
9698 cat conftest.$ac_ext >&5
9702 LIBS="$ac_func_search_save_LIBS"
9705 echo "$ac_t""$ac_cv_search_uuid_to_str" 1>&6
9706 if test "$ac_cv_search_uuid_to_str" != "no"; then
9707 test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
9714 if test have_uuid = yes ; then
9715 cat >> confdefs.h <<\EOF
9716 #define HAVE_UUID_TO_STR 1
9720 test "$ac_cv_search_uuid_to_str" = "none required" || \
9721 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
9725 if test $have_uuid = no ; then
9726 echo $ac_n "checking to see if -lrpcrt4 is needed for win32 UUID support""... $ac_c" 1>&6
9727 echo "configure:9728: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
9729 LIBS="$LIBS -lrpcrt4"
9730 cat > conftest.$ac_ext <<EOF
9731 #line 9732 "configure"
9732 #include "confdefs.h"
9734 int __stdcall UuidCreate(void *);
9735 int __stdcall UuidToStringA(void *,void **);
9744 if { (eval echo configure:9745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9748 echo "configure: failed program was:" >&5
9749 cat conftest.$ac_ext >&5
9754 if test $need_rpcrt = yes; then
9755 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
9758 echo "$ac_t""$need_rpcrt" 1>&6
9762 echo $ac_n "checking for res_query""... $ac_c" 1>&6
9763 echo "configure:9764: checking for res_query" >&5
9764 if eval "test \"\${ac_cv_func_res_query+set}\" = set"; then
9765 echo $ac_n "(cached) $ac_c" 1>&6
9767 cat > conftest.$ac_ext <<EOF
9768 #line 9769 "configure"
9769 #include "confdefs.h"
9770 /* System header to define __stub macros and hopefully few prototypes,
9771 which can conflict with char res_query(); below. */
9773 /* Override any gcc2 internal prototype to avoid an error. */
9774 /* We use char because int might match the return type of a gcc2
9775 builtin and then its argument prototype would still apply. */
9781 /* The GNU C library defines this for functions which it implements
9782 to always fail with ENOSYS. Some functions are actually named
9783 something starting with __ and the normal name is an alias. */
9784 #if defined (__stub_res_query) || defined (__stub___res_query)
9792 if { (eval echo configure:9793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9794 eval "ac_cv_func_res_query=yes"
9796 echo "configure: failed program was:" >&5
9797 cat conftest.$ac_ext >&5
9799 eval "ac_cv_func_res_query=no"
9804 if eval "test \"`echo '$ac_cv_func_'res_query`\" = yes"; then
9805 echo "$ac_t""yes" 1>&6
9808 echo "$ac_t""no" 1>&6
9811 if test $ac_cv_func_res_query = no ; then
9812 echo $ac_n "checking for __res_query""... $ac_c" 1>&6
9813 echo "configure:9814: checking for __res_query" >&5
9814 if eval "test \"\${ac_cv_func___res_query+set}\" = set"; then
9815 echo $ac_n "(cached) $ac_c" 1>&6
9817 cat > conftest.$ac_ext <<EOF
9818 #line 9819 "configure"
9819 #include "confdefs.h"
9820 /* System header to define __stub macros and hopefully few prototypes,
9821 which can conflict with char __res_query(); below. */
9823 /* Override any gcc2 internal prototype to avoid an error. */
9824 /* We use char because int might match the return type of a gcc2
9825 builtin and then its argument prototype would still apply. */
9831 /* The GNU C library defines this for functions which it implements
9832 to always fail with ENOSYS. Some functions are actually named
9833 something starting with __ and the normal name is an alias. */
9834 #if defined (__stub___res_query) || defined (__stub_____res_query)
9842 if { (eval echo configure:9843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9844 eval "ac_cv_func___res_query=yes"
9846 echo "configure: failed program was:" >&5
9847 cat conftest.$ac_ext >&5
9849 eval "ac_cv_func___res_query=no"
9854 if eval "test \"`echo '$ac_cv_func_'__res_query`\" = yes"; then
9855 echo "$ac_t""yes" 1>&6
9858 echo "$ac_t""no" 1>&6
9861 ac_cv_func_res_query=$ac_cv_func___res_query
9864 if test $ac_cv_func_res_query = no ; then
9865 echo $ac_n "checking for res_query in -lbind""... $ac_c" 1>&6
9866 echo "configure:9867: checking for res_query in -lbind" >&5
9867 ac_lib_var=`echo bind'_'res_query | sed 'y%./+-:%__p__%'`
9868 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9869 echo $ac_n "(cached) $ac_c" 1>&6
9871 ac_save_LIBS="$LIBS"
9873 cat > conftest.$ac_ext <<EOF
9874 #line 9875 "configure"
9875 #include "confdefs.h"
9876 /* Override any gcc2 internal prototype to avoid an error. */
9877 /* We use char because int might match the return type of a gcc2
9878 builtin and then its argument prototype would still apply. */
9885 if { (eval echo configure:9886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9887 eval "ac_cv_lib_$ac_lib_var=yes"
9889 echo "configure: failed program was:" >&5
9890 cat conftest.$ac_ext >&5
9892 eval "ac_cv_lib_$ac_lib_var=no"
9895 LIBS="$ac_save_LIBS"
9898 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9899 echo "$ac_t""yes" 1>&6
9900 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9901 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9902 cat >> confdefs.h <<EOF
9903 #define $ac_tr_lib 1
9909 echo "$ac_t""no" 1>&6
9912 ac_cv_func_res_query=$ac_cv_lib_bind_res_query
9915 if test $ac_cv_func_res_query = no ; then
9916 echo $ac_n "checking for __res_query in -lbind""... $ac_c" 1>&6
9917 echo "configure:9918: checking for __res_query in -lbind" >&5
9918 ac_lib_var=`echo bind'_'__res_query | sed 'y%./+-:%__p__%'`
9919 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9920 echo $ac_n "(cached) $ac_c" 1>&6
9922 ac_save_LIBS="$LIBS"
9924 cat > conftest.$ac_ext <<EOF
9925 #line 9926 "configure"
9926 #include "confdefs.h"
9927 /* Override any gcc2 internal prototype to avoid an error. */
9928 /* We use char because int might match the return type of a gcc2
9929 builtin and then its argument prototype would still apply. */
9936 if { (eval echo configure:9937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9938 eval "ac_cv_lib_$ac_lib_var=yes"
9940 echo "configure: failed program was:" >&5
9941 cat conftest.$ac_ext >&5
9943 eval "ac_cv_lib_$ac_lib_var=no"
9946 LIBS="$ac_save_LIBS"
9949 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9950 echo "$ac_t""yes" 1>&6
9951 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9952 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9953 cat >> confdefs.h <<EOF
9954 #define $ac_tr_lib 1
9960 echo "$ac_t""no" 1>&6
9963 ac_cv_func_res_query=$ac_cv_lib_bind___res_query
9966 if test $ac_cv_func_res_query = no ; then
9967 echo $ac_n "checking for res_query in -lresolv""... $ac_c" 1>&6
9968 echo "configure:9969: checking for res_query in -lresolv" >&5
9969 ac_lib_var=`echo resolv'_'res_query | sed 'y%./+-:%__p__%'`
9970 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9971 echo $ac_n "(cached) $ac_c" 1>&6
9973 ac_save_LIBS="$LIBS"
9974 LIBS="-lresolv $LIBS"
9975 cat > conftest.$ac_ext <<EOF
9976 #line 9977 "configure"
9977 #include "confdefs.h"
9978 /* Override any gcc2 internal prototype to avoid an error. */
9979 /* We use char because int might match the return type of a gcc2
9980 builtin and then its argument prototype would still apply. */
9987 if { (eval echo configure:9988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9989 eval "ac_cv_lib_$ac_lib_var=yes"
9991 echo "configure: failed program was:" >&5
9992 cat conftest.$ac_ext >&5
9994 eval "ac_cv_lib_$ac_lib_var=no"
9997 LIBS="$ac_save_LIBS"
10000 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10001 echo "$ac_t""yes" 1>&6
10002 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10003 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10004 cat >> confdefs.h <<EOF
10005 #define $ac_tr_lib 1
10008 LIBS="-lresolv $LIBS"
10011 echo "$ac_t""no" 1>&6
10014 ac_cv_func_res_query=$ac_cv_lib_resolv_res_query
10017 if test $ac_cv_func_res_query = no ; then
10018 echo $ac_n "checking for __res_query in -lresolv""... $ac_c" 1>&6
10019 echo "configure:10020: checking for __res_query in -lresolv" >&5
10020 ac_lib_var=`echo resolv'_'__res_query | sed 'y%./+-:%__p__%'`
10021 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10022 echo $ac_n "(cached) $ac_c" 1>&6
10024 ac_save_LIBS="$LIBS"
10025 LIBS="-lresolv $LIBS"
10026 cat > conftest.$ac_ext <<EOF
10027 #line 10028 "configure"
10028 #include "confdefs.h"
10029 /* Override any gcc2 internal prototype to avoid an error. */
10030 /* We use char because int might match the return type of a gcc2
10031 builtin and then its argument prototype would still apply. */
10032 char __res_query();
10038 if { (eval echo configure:10039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10040 eval "ac_cv_lib_$ac_lib_var=yes"
10042 echo "configure: failed program was:" >&5
10043 cat conftest.$ac_ext >&5
10045 eval "ac_cv_lib_$ac_lib_var=no"
10048 LIBS="$ac_save_LIBS"
10051 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10052 echo "$ac_t""yes" 1>&6
10053 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10054 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10055 cat >> confdefs.h <<EOF
10056 #define $ac_tr_lib 1
10059 LIBS="-lresolv $LIBS"
10062 echo "$ac_t""no" 1>&6
10065 ac_cv_func_res_query=$ac_cv_lib_resolv___res_query
10068 if test "$ac_cv_func_res_query" = yes ; then
10069 cat >> confdefs.h <<\EOF
10070 #define HAVE_RES_QUERY 1
10074 if test $ol_enable_dnssrv != no ; then
10079 if test "$ol_enable_dnssrv" != no -a "$ol_link_dnssrv" = no ; then
10080 { echo "configure: error: DNSSRV requires res_query()" 1>&2; exit 1; }
10083 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
10085 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10086 echo "configure:10087: checking for $ac_func" >&5
10087 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10088 echo $ac_n "(cached) $ac_c" 1>&6
10090 cat > conftest.$ac_ext <<EOF
10091 #line 10092 "configure"
10092 #include "confdefs.h"
10093 /* System header to define __stub macros and hopefully few prototypes,
10094 which can conflict with char $ac_func(); below. */
10095 #include <assert.h>
10096 /* Override any gcc2 internal prototype to avoid an error. */
10097 /* We use char because int might match the return type of a gcc2
10098 builtin and then its argument prototype would still apply. */
10104 /* The GNU C library defines this for functions which it implements
10105 to always fail with ENOSYS. Some functions are actually named
10106 something starting with __ and the normal name is an alias. */
10107 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10115 if { (eval echo configure:10116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10117 eval "ac_cv_func_$ac_func=yes"
10119 echo "configure: failed program was:" >&5
10120 cat conftest.$ac_ext >&5
10122 eval "ac_cv_func_$ac_func=no"
10127 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10128 echo "$ac_t""yes" 1>&6
10129 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10130 cat >> confdefs.h <<EOF
10131 #define $ac_tr_func 1
10135 echo "$ac_t""no" 1>&6
10141 if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then
10142 if test $ol_enable_ipv6 = yes ; then
10143 { echo "configure: error: IPv6 support requires getaddrinfo() and inet_ntop()" 1>&2; exit 1; }
10145 elif test $ol_enable_ipv6 != no ; then
10146 echo $ac_n "checking INET6_ADDRSTRLEN""... $ac_c" 1>&6
10147 echo "configure:10148: checking INET6_ADDRSTRLEN" >&5
10148 if eval "test \"\${ol_cv_inet6_addrstrlen+set}\" = set"; then
10149 echo $ac_n "(cached) $ac_c" 1>&6
10152 cat > conftest.$ac_ext <<EOF
10153 #line 10154 "configure"
10154 #include "confdefs.h"
10156 # include <netinet/in.h>
10157 # ifdef INET6_ADDRSTRLEN
10158 __has_inet6_addrstrlen__;
10162 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10163 egrep "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
10165 ol_cv_inet6_addrstrlen=yes
10168 ol_cv_inet6_addrstrlen=no
10174 echo "$ac_t""$ol_cv_inet6_addrstrlen" 1>&6
10177 echo $ac_n "checking struct sockaddr_storage""... $ac_c" 1>&6
10178 echo "configure:10179: checking struct sockaddr_storage" >&5
10179 if eval "test \"\${ol_cv_struct_sockaddr_storage+set}\" = set"; then
10180 echo $ac_n "(cached) $ac_c" 1>&6
10183 cat > conftest.$ac_ext <<EOF
10184 #line 10185 "configure"
10185 #include "confdefs.h"
10187 #include <sys/types.h>
10188 #include <sys/socket.h>
10192 struct sockaddr_storage ss;
10196 if { (eval echo configure:10197: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10198 ol_cv_struct_sockaddr_storage=yes
10200 echo "configure: failed program was:" >&5
10201 cat conftest.$ac_ext >&5
10203 ol_cv_struct_sockaddr_storage=no
10208 echo "$ac_t""$ol_cv_struct_sockaddr_storage" 1>&6
10210 if test $ol_cv_inet6_addrstrlen = yes \
10211 -a $ol_cv_struct_sockaddr_storage = yes ; then
10213 elif test $ol_enable_ipv6 = yes \
10214 -a $ol_cv_inet6_addrstrlen = no ; then
10215 { echo "configure: error: IPv6 support requires INET6_ADDRSTRLEN" 1>&2; exit 1; }
10216 elif test $ol_enable_ipv6 = yes \
10217 -a $ol_cv_struct_sockaddr_storage = no ; then
10218 { echo "configure: error: IPv6 support requires struct sockaddr_storage" 1>&2; exit 1; }
10222 if test $ol_enable_local != no ; then
10223 for ac_hdr in sys/un.h
10225 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10226 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10227 echo "configure:10228: checking for $ac_hdr" >&5
10228 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10229 echo $ac_n "(cached) $ac_c" 1>&6
10231 cat > conftest.$ac_ext <<EOF
10232 #line 10233 "configure"
10233 #include "confdefs.h"
10236 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10237 { (eval echo configure:10238: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10238 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10239 if test -z "$ac_err"; then
10241 eval "ac_cv_header_$ac_safe=yes"
10244 echo "configure: failed program was:" >&5
10245 cat conftest.$ac_ext >&5
10247 eval "ac_cv_header_$ac_safe=no"
10251 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10252 echo "$ac_t""yes" 1>&6
10253 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10254 cat >> confdefs.h <<EOF
10255 #define $ac_tr_hdr 1
10259 echo "$ac_t""no" 1>&6
10264 if test $ol_enable_local = auto ; then
10265 ol_enable_local=$ac_cv_header_sys_un_h
10266 elif test $ac_cv_header_sys_un_h = no ; then
10267 { echo "configure: error: AF_LOCAL domain support requires sys/un.h" 1>&2; exit 1; }
10275 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
10276 -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
10277 -o $ol_with_kerberos = k425 ; then
10279 for ac_hdr in krb5.h
10281 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10282 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10283 echo "configure:10284: checking for $ac_hdr" >&5
10284 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10285 echo $ac_n "(cached) $ac_c" 1>&6
10287 cat > conftest.$ac_ext <<EOF
10288 #line 10289 "configure"
10289 #include "confdefs.h"
10292 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10293 { (eval echo configure:10294: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10294 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10295 if test -z "$ac_err"; then
10297 eval "ac_cv_header_$ac_safe=yes"
10300 echo "configure: failed program was:" >&5
10301 cat conftest.$ac_ext >&5
10303 eval "ac_cv_header_$ac_safe=no"
10307 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10308 echo "$ac_t""yes" 1>&6
10309 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10310 cat >> confdefs.h <<EOF
10311 #define $ac_tr_hdr 1
10315 echo "$ac_t""no" 1>&6
10320 if test $ac_cv_header_krb5_h = yes ; then
10321 for ac_hdr in heim_err.h
10323 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10324 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10325 echo "configure:10326: checking for $ac_hdr" >&5
10326 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10327 echo $ac_n "(cached) $ac_c" 1>&6
10329 cat > conftest.$ac_ext <<EOF
10330 #line 10331 "configure"
10331 #include "confdefs.h"
10334 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10335 { (eval echo configure:10336: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10336 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10337 if test -z "$ac_err"; then
10339 eval "ac_cv_header_$ac_safe=yes"
10342 echo "configure: failed program was:" >&5
10343 cat conftest.$ac_ext >&5
10345 eval "ac_cv_header_$ac_safe=no"
10349 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10350 echo "$ac_t""yes" 1>&6
10351 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10352 cat >> confdefs.h <<EOF
10353 #define $ac_tr_hdr 1
10357 echo "$ac_t""no" 1>&6
10361 if test $ac_cv_header_heim_err_h = yes ; then
10367 if test $krb5_impl = mit; then
10368 echo $ac_n "checking for main in -lk5crypto""... $ac_c" 1>&6
10369 echo "configure:10370: checking for main in -lk5crypto" >&5
10370 ac_lib_var=`echo k5crypto'_'main | sed 'y%./+-:%__p__%'`
10371 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10372 echo $ac_n "(cached) $ac_c" 1>&6
10374 ac_save_LIBS="$LIBS"
10375 LIBS="-lk5crypto $LIBS"
10376 cat > conftest.$ac_ext <<EOF
10377 #line 10378 "configure"
10378 #include "confdefs.h"
10384 if { (eval echo configure:10385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10386 eval "ac_cv_lib_$ac_lib_var=yes"
10388 echo "configure: failed program was:" >&5
10389 cat conftest.$ac_ext >&5
10391 eval "ac_cv_lib_$ac_lib_var=no"
10394 LIBS="$ac_save_LIBS"
10397 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10398 echo "$ac_t""yes" 1>&6
10399 krb5crypto=k5crypto
10401 echo "$ac_t""no" 1>&6
10406 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
10407 echo "configure:10408: checking for main in -lkrb5" >&5
10408 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
10409 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10410 echo $ac_n "(cached) $ac_c" 1>&6
10412 ac_save_LIBS="$LIBS"
10413 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
10414 cat > conftest.$ac_ext <<EOF
10415 #line 10416 "configure"
10416 #include "confdefs.h"
10422 if { (eval echo configure:10423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10424 eval "ac_cv_lib_$ac_lib_var=yes"
10426 echo "configure: failed program was:" >&5
10427 cat conftest.$ac_ext >&5
10429 eval "ac_cv_lib_$ac_lib_var=no"
10432 LIBS="$ac_save_LIBS"
10435 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10436 echo "$ac_t""yes" 1>&6
10438 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
10440 echo "$ac_t""no" 1>&6
10445 elif test $krb5_impl = heimdal; then
10446 echo $ac_n "checking for main in -ldes""... $ac_c" 1>&6
10447 echo "configure:10448: checking for main in -ldes" >&5
10448 ac_lib_var=`echo des'_'main | sed 'y%./+-:%__p__%'`
10449 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10450 echo $ac_n "(cached) $ac_c" 1>&6
10452 ac_save_LIBS="$LIBS"
10454 cat > conftest.$ac_ext <<EOF
10455 #line 10456 "configure"
10456 #include "confdefs.h"
10462 if { (eval echo configure:10463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10464 eval "ac_cv_lib_$ac_lib_var=yes"
10466 echo "configure: failed program was:" >&5
10467 cat conftest.$ac_ext >&5
10469 eval "ac_cv_lib_$ac_lib_var=no"
10472 LIBS="$ac_save_LIBS"
10475 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10476 echo "$ac_t""yes" 1>&6
10479 echo "$ac_t""no" 1>&6
10484 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
10485 echo "configure:10486: checking for main in -lkrb5" >&5
10486 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
10487 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10488 echo $ac_n "(cached) $ac_c" 1>&6
10490 ac_save_LIBS="$LIBS"
10491 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
10492 cat > conftest.$ac_ext <<EOF
10493 #line 10494 "configure"
10494 #include "confdefs.h"
10500 if { (eval echo configure:10501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10502 eval "ac_cv_lib_$ac_lib_var=yes"
10504 echo "configure: failed program was:" >&5
10505 cat conftest.$ac_ext >&5
10507 eval "ac_cv_lib_$ac_lib_var=no"
10510 LIBS="$ac_save_LIBS"
10513 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10514 echo "$ac_t""yes" 1>&6
10516 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
10518 echo "$ac_t""no" 1>&6
10523 cat >> confdefs.h <<\EOF
10524 #define HAVE_HEIMDAL_KERBEROS 1
10530 echo "configure: warning: Unrecognized Kerberos5 Implementation" 1>&2
10533 if test $have_krb5 = yes ; then
10536 cat >> confdefs.h <<\EOF
10537 #define HAVE_KRB5 1
10541 if test $ol_with_kerberos = k5only ; then
10542 ol_with_kerberos=found
10545 elif test $ol_with_kerberos != auto ; then
10546 { echo "configure: error: Required Kerberos 5 support not available" 1>&2; exit 1; }
10552 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
10553 $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
10555 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
10557 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10558 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10559 echo "configure:10560: checking for $ac_hdr" >&5
10560 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10561 echo $ac_n "(cached) $ac_c" 1>&6
10563 cat > conftest.$ac_ext <<EOF
10564 #line 10565 "configure"
10565 #include "confdefs.h"
10568 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10569 { (eval echo configure:10570: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10570 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10571 if test -z "$ac_err"; then
10573 eval "ac_cv_header_$ac_safe=yes"
10576 echo "configure: failed program was:" >&5
10577 cat conftest.$ac_ext >&5
10579 eval "ac_cv_header_$ac_safe=no"
10583 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10584 echo "$ac_t""yes" 1>&6
10585 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10586 cat >> confdefs.h <<EOF
10587 #define $ac_tr_hdr 1
10591 echo "$ac_t""no" 1>&6
10596 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
10597 if test $krb5_impl = mit; then
10598 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
10599 echo "configure:10600: checking for main in -lkrb4" >&5
10600 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
10601 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10602 echo $ac_n "(cached) $ac_c" 1>&6
10604 ac_save_LIBS="$LIBS"
10605 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
10606 cat > conftest.$ac_ext <<EOF
10607 #line 10608 "configure"
10608 #include "confdefs.h"
10614 if { (eval echo configure:10615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10616 eval "ac_cv_lib_$ac_lib_var=yes"
10618 echo "configure: failed program was:" >&5
10619 cat conftest.$ac_ext >&5
10621 eval "ac_cv_lib_$ac_lib_var=no"
10624 LIBS="$ac_save_LIBS"
10627 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10628 echo "$ac_t""yes" 1>&6
10630 KRB4_LIBS="-lkrb4 -ldes425"
10632 echo "$ac_t""no" 1>&6
10637 elif test $krb5_impl = heimdal; then
10638 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
10639 echo "configure:10640: checking for main in -lkrb4" >&5
10640 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
10641 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10642 echo $ac_n "(cached) $ac_c" 1>&6
10644 ac_save_LIBS="$LIBS"
10645 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
10646 cat > conftest.$ac_ext <<EOF
10647 #line 10648 "configure"
10648 #include "confdefs.h"
10654 if { (eval echo configure:10655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10656 eval "ac_cv_lib_$ac_lib_var=yes"
10658 echo "configure: failed program was:" >&5
10659 cat conftest.$ac_ext >&5
10661 eval "ac_cv_lib_$ac_lib_var=no"
10664 LIBS="$ac_save_LIBS"
10667 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10668 echo "$ac_t""yes" 1>&6
10672 echo "$ac_t""no" 1>&6
10679 echo "configure: warning: Unrecongized Kerberos V Implementation" 1>&2
10682 if test $have_k425 = yes ; then
10683 ol_with_kerberos=found
10686 cat >> confdefs.h <<\EOF
10687 #define HAVE_KRB425 1
10690 cat >> confdefs.h <<\EOF
10691 #define HAVE_KRB4 1
10695 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
10696 echo "configure:10697: checking for des_debug in Kerberos libraries" >&5
10697 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
10698 echo $ac_n "(cached) $ac_c" 1>&6
10702 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
10703 cat > conftest.$ac_ext <<EOF
10704 #line 10705 "configure"
10705 #include "confdefs.h"
10707 #include <kerberosIV/krb.h>
10708 #include <kerberosIV/des.h>
10709 extern int des_debug;
10717 if { (eval echo configure:10718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10719 ol_cv_var_des_debug=yes
10721 echo "configure: failed program was:" >&5
10722 cat conftest.$ac_ext >&5
10724 ol_cv_var_des_debug=no
10731 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
10733 if test $ol_cv_var_des_debug = yes ; then
10734 cat >> confdefs.h <<\EOF
10735 #define HAVE_DES_DEBUG 1
10745 if test $ol_link_krb5 = yes ; then
10746 ol_with_kerberos=found
10749 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
10750 -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
10752 for ac_hdr in krb.h des.h krb-archaeology.h
10754 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10755 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10756 echo "configure:10757: checking for $ac_hdr" >&5
10757 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10758 echo $ac_n "(cached) $ac_c" 1>&6
10760 cat > conftest.$ac_ext <<EOF
10761 #line 10762 "configure"
10762 #include "confdefs.h"
10765 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10766 { (eval echo configure:10767: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10767 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10768 if test -z "$ac_err"; then
10770 eval "ac_cv_header_$ac_safe=yes"
10773 echo "configure: failed program was:" >&5
10774 cat conftest.$ac_ext >&5
10776 eval "ac_cv_header_$ac_safe=no"
10780 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10781 echo "$ac_t""yes" 1>&6
10782 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10783 cat >> confdefs.h <<EOF
10784 #define $ac_tr_hdr 1
10788 echo "$ac_t""no" 1>&6
10793 if test $ac_cv_header_krb_h = yes ; then
10794 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
10795 echo "configure:10796: checking for main in -lkrb" >&5
10796 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
10797 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10798 echo $ac_n "(cached) $ac_c" 1>&6
10800 ac_save_LIBS="$LIBS"
10801 LIBS="-lkrb -ldes $LIBS"
10802 cat > conftest.$ac_ext <<EOF
10803 #line 10804 "configure"
10804 #include "confdefs.h"
10810 if { (eval echo configure:10811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10812 eval "ac_cv_lib_$ac_lib_var=yes"
10814 echo "configure: failed program was:" >&5
10815 cat conftest.$ac_ext >&5
10817 eval "ac_cv_lib_$ac_lib_var=no"
10820 LIBS="$ac_save_LIBS"
10823 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10824 echo "$ac_t""yes" 1>&6
10827 echo "$ac_t""no" 1>&6
10832 if test $have_k4 = yes ; then
10833 ol_with_kerberos=found
10836 cat >> confdefs.h <<\EOF
10837 #define HAVE_KRB4 1
10841 KRB4_LIBS="-lkrb -ldes"
10843 if test $ac_cv_header_krb_archaeology_h = yes ; then
10844 cat >> confdefs.h <<\EOF
10845 #define HAVE_KTH_KERBEROS 1
10853 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
10856 elif test $ol_enable_kbind = yes ; then
10857 { echo "configure: error: Kerberos IV detection failed" 1>&2; exit 1; }
10860 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
10861 cat >> confdefs.h <<\EOF
10862 #define HAVE_KERBEROS 1
10866 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
10867 { echo "configure: error: Kerberos detection failed" 1>&2; exit 1; }
10871 if test $ol_with_tls != no ; then
10872 for ac_hdr in openssl/ssl.h ssl.h
10874 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10875 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10876 echo "configure:10877: checking for $ac_hdr" >&5
10877 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10878 echo $ac_n "(cached) $ac_c" 1>&6
10880 cat > conftest.$ac_ext <<EOF
10881 #line 10882 "configure"
10882 #include "confdefs.h"
10885 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10886 { (eval echo configure:10887: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10887 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10888 if test -z "$ac_err"; then
10890 eval "ac_cv_header_$ac_safe=yes"
10893 echo "configure: failed program was:" >&5
10894 cat conftest.$ac_ext >&5
10896 eval "ac_cv_header_$ac_safe=no"
10900 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10901 echo "$ac_t""yes" 1>&6
10902 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10903 cat >> confdefs.h <<EOF
10904 #define $ac_tr_hdr 1
10908 echo "$ac_t""no" 1>&6
10913 if test $ac_cv_header_openssl_ssl_h = yes \
10914 -o $ac_cv_header_ssl_h = yes ; then
10915 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
10916 echo "configure:10917: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
10917 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
10918 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10919 echo $ac_n "(cached) $ac_c" 1>&6
10921 ac_save_LIBS="$LIBS"
10922 LIBS="-lssl -lcrypto $LIBS"
10923 cat > conftest.$ac_ext <<EOF
10924 #line 10925 "configure"
10925 #include "confdefs.h"
10926 /* Override any gcc2 internal prototype to avoid an error. */
10927 /* We use char because int might match the return type of a gcc2
10928 builtin and then its argument prototype would still apply. */
10929 char SSLeay_add_ssl_algorithms();
10932 SSLeay_add_ssl_algorithms()
10935 if { (eval echo configure:10936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10937 eval "ac_cv_lib_$ac_lib_var=yes"
10939 echo "configure: failed program was:" >&5
10940 cat conftest.$ac_ext >&5
10942 eval "ac_cv_lib_$ac_lib_var=no"
10945 LIBS="$ac_save_LIBS"
10948 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10949 echo "$ac_t""yes" 1>&6
10953 echo "$ac_t""no" 1>&6
10958 if test $have_ssleay = no ; then
10959 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
10960 echo "configure:10961: checking for SSL_library_init in -lssl" >&5
10961 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
10962 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10963 echo $ac_n "(cached) $ac_c" 1>&6
10965 ac_save_LIBS="$LIBS"
10966 LIBS="-lssl -lcrypto $LIBS"
10967 cat > conftest.$ac_ext <<EOF
10968 #line 10969 "configure"
10969 #include "confdefs.h"
10970 /* Override any gcc2 internal prototype to avoid an error. */
10971 /* We use char because int might match the return type of a gcc2
10972 builtin and then its argument prototype would still apply. */
10973 char SSL_library_init();
10979 if { (eval echo configure:10980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10981 eval "ac_cv_lib_$ac_lib_var=yes"
10983 echo "configure: failed program was:" >&5
10984 cat conftest.$ac_ext >&5
10986 eval "ac_cv_lib_$ac_lib_var=no"
10989 LIBS="$ac_save_LIBS"
10992 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10993 echo "$ac_t""yes" 1>&6
10997 echo "$ac_t""no" 1>&6
11003 if test $have_ssleay = no ; then
11004 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
11005 echo "configure:11006: checking for ssl3_accept in -lssl" >&5
11006 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
11007 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11008 echo $ac_n "(cached) $ac_c" 1>&6
11010 ac_save_LIBS="$LIBS"
11011 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
11012 cat > conftest.$ac_ext <<EOF
11013 #line 11014 "configure"
11014 #include "confdefs.h"
11015 /* Override any gcc2 internal prototype to avoid an error. */
11016 /* We use char because int might match the return type of a gcc2
11017 builtin and then its argument prototype would still apply. */
11018 char ssl3_accept();
11024 if { (eval echo configure:11025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11026 eval "ac_cv_lib_$ac_lib_var=yes"
11028 echo "configure: failed program was:" >&5
11029 cat conftest.$ac_ext >&5
11031 eval "ac_cv_lib_$ac_lib_var=no"
11034 LIBS="$ac_save_LIBS"
11037 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11038 echo "$ac_t""yes" 1>&6
11042 echo "$ac_t""no" 1>&6
11048 if test $have_ssleay = yes ; then
11052 cat >> confdefs.h <<\EOF
11053 #define HAVE_SSLEAY 1
11057 if test $need_rsaref = yes; then
11058 cat >> confdefs.h <<\EOF
11059 #define HAVE_RSAREF 1
11063 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
11065 TLS_LIBS="-lssl -lcrypto"
11071 echo "configure: warning: TLS data protection not supported!" 1>&2
11075 if test $ol_link_tls = yes ; then
11076 cat >> confdefs.h <<\EOF
11082 elif test $ol_with_tls = auto ; then
11083 echo "configure: warning: Could not locate TLS/SSL package" 1>&2
11084 echo "configure: warning: TLS data protection not supported!" 1>&2
11086 elif test $ol_with_tls != no ; then
11087 { echo "configure: error: Could not locate TLS/SSL package" 1>&2; exit 1; }
11090 if test $ol_enable_lmpasswd != no; then
11091 if test $ol_link_tls != yes ; then
11092 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
11095 cat >> confdefs.h <<\EOF
11096 #define SLAPD_LMHASH 1
11103 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11104 -o $ol_with_threads = nt ; then
11107 echo $ac_n "checking for _beginthread""... $ac_c" 1>&6
11108 echo "configure:11109: checking for _beginthread" >&5
11109 if eval "test \"\${ac_cv_func__beginthread+set}\" = set"; then
11110 echo $ac_n "(cached) $ac_c" 1>&6
11112 cat > conftest.$ac_ext <<EOF
11113 #line 11114 "configure"
11114 #include "confdefs.h"
11115 /* System header to define __stub macros and hopefully few prototypes,
11116 which can conflict with char _beginthread(); below. */
11117 #include <assert.h>
11118 /* Override any gcc2 internal prototype to avoid an error. */
11119 /* We use char because int might match the return type of a gcc2
11120 builtin and then its argument prototype would still apply. */
11121 char _beginthread();
11126 /* The GNU C library defines this for functions which it implements
11127 to always fail with ENOSYS. Some functions are actually named
11128 something starting with __ and the normal name is an alias. */
11129 #if defined (__stub__beginthread) || defined (__stub____beginthread)
11137 if { (eval echo configure:11138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11139 eval "ac_cv_func__beginthread=yes"
11141 echo "configure: failed program was:" >&5
11142 cat conftest.$ac_ext >&5
11144 eval "ac_cv_func__beginthread=no"
11149 if eval "test \"`echo '$ac_cv_func_'_beginthread`\" = yes"; then
11150 echo "$ac_t""yes" 1>&6
11153 echo "$ac_t""no" 1>&6
11157 if test $ac_cv_func__beginthread = yes ; then
11158 cat >> confdefs.h <<\EOF
11159 #define HAVE_NT_THREADS 1
11162 ol_cv_nt_threads=yes
11166 if test "$ol_cv_nt_threads" = yes ; then
11168 ol_with_threads=found
11169 ol_with_yielding_select=yes
11171 cat >> confdefs.h <<\EOF
11172 #define HAVE_NT_SERVICE_MANAGER 1
11175 cat >> confdefs.h <<\EOF
11176 #define HAVE_NT_EVENT_LOG 1
11181 if test $ol_with_threads = nt ; then
11182 { echo "configure: error: could not locate NT Threads" 1>&2; exit 1; }
11186 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11187 -o $ol_with_threads = posix ; then
11189 for ac_hdr in pthread.h
11191 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11192 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11193 echo "configure:11194: checking for $ac_hdr" >&5
11194 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11195 echo $ac_n "(cached) $ac_c" 1>&6
11197 cat > conftest.$ac_ext <<EOF
11198 #line 11199 "configure"
11199 #include "confdefs.h"
11202 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11203 { (eval echo configure:11204: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11204 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11205 if test -z "$ac_err"; then
11207 eval "ac_cv_header_$ac_safe=yes"
11210 echo "configure: failed program was:" >&5
11211 cat conftest.$ac_ext >&5
11213 eval "ac_cv_header_$ac_safe=no"
11217 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11218 echo "$ac_t""yes" 1>&6
11219 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11220 cat >> confdefs.h <<EOF
11221 #define $ac_tr_hdr 1
11225 echo "$ac_t""no" 1>&6
11230 if test $ac_cv_header_pthread_h = yes ; then
11231 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
11232 echo "configure:11233: checking POSIX thread version" >&5
11233 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
11234 echo $ac_n "(cached) $ac_c" 1>&6
11237 cat > conftest.$ac_ext <<EOF
11238 #line 11239 "configure"
11239 #include "confdefs.h"
11241 # include <pthread.h>
11245 int i = PTHREAD_CREATE_JOINABLE;
11249 if { (eval echo configure:11250: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11252 cat > conftest.$ac_ext <<EOF
11253 #line 11254 "configure"
11254 #include "confdefs.h"
11255 #include <pthread.h>
11257 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11258 egrep "pthread_detach" >/dev/null 2>&1; then
11260 ol_cv_pthread_version=10
11263 ol_cv_pthread_version=8
11268 echo "configure: failed program was:" >&5
11269 cat conftest.$ac_ext >&5
11272 cat > conftest.$ac_ext <<EOF
11273 #line 11274 "configure"
11274 #include "confdefs.h"
11276 # include <pthread.h>
11277 # ifdef PTHREAD_CREATE_UNDETACHED
11282 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11283 egrep "draft7" >/dev/null 2>&1; then
11285 ol_cv_pthread_version=7
11289 cat > conftest.$ac_ext <<EOF
11290 #line 11291 "configure"
11291 #include "confdefs.h"
11292 #include <pthread.h>
11294 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11295 egrep "pthread_attr_init" >/dev/null 2>&1; then
11297 ol_cv_pthread_version=6
11301 cat > conftest.$ac_ext <<EOF
11302 #line 11303 "configure"
11303 #include "confdefs.h"
11305 # include <pthread.h>
11306 #ifdef PTHREAD_MUTEX_INITIALIZER
11311 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11312 egrep "draft5" >/dev/null 2>&1; then
11314 ol_cv_pthread_version=5
11317 ol_cv_pthread_version=4
11332 echo "$ac_t""$ol_cv_pthread_version" 1>&6
11335 if test $ol_cv_pthread_version != 0 ; then
11336 cat >> confdefs.h <<EOF
11337 #define HAVE_PTHREADS $ol_cv_pthread_version
11341 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
11344 # consider threads found
11345 ol_with_threads=found
11348 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
11349 echo "configure:11350: checking for LinuxThreads pthread.h" >&5
11350 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
11351 echo $ac_n "(cached) $ac_c" 1>&6
11353 cat > conftest.$ac_ext <<EOF
11354 #line 11355 "configure"
11355 #include "confdefs.h"
11356 #include <pthread.h>
11358 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11359 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
11361 ol_cv_header_linux_threads=yes
11364 ol_cv_header_linux_threads=no
11371 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
11372 if test $ol_cv_header_linux_threads = yes; then
11373 cat >> confdefs.h <<\EOF
11374 #define HAVE_LINUX_THREADS 1
11380 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
11381 echo "configure:11382: checking for GNU Pth pthread.h" >&5
11382 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
11383 echo $ac_n "(cached) $ac_c" 1>&6
11385 cat > conftest.$ac_ext <<EOF
11386 #line 11387 "configure"
11387 #include "confdefs.h"
11388 #include <pthread.h>
11389 #ifdef _POSIX_THREAD_IS_GNU_PTH
11394 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11395 egrep "__gnu_pth__" >/dev/null 2>&1; then
11397 ol_cv_header_gnu_pth_pthread_h=yes
11400 ol_cv_header_gnu_pth_pthread_h=no
11407 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
11410 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
11411 for ac_hdr in sched.h
11413 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11414 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11415 echo "configure:11416: checking for $ac_hdr" >&5
11416 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11417 echo $ac_n "(cached) $ac_c" 1>&6
11419 cat > conftest.$ac_ext <<EOF
11420 #line 11421 "configure"
11421 #include "confdefs.h"
11424 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11425 { (eval echo configure:11426: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11426 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11427 if test -z "$ac_err"; then
11429 eval "ac_cv_header_$ac_safe=yes"
11432 echo "configure: failed program was:" >&5
11433 cat conftest.$ac_ext >&5
11435 eval "ac_cv_header_$ac_safe=no"
11439 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11440 echo "$ac_t""yes" 1>&6
11441 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11442 cat >> confdefs.h <<EOF
11443 #define $ac_tr_hdr 1
11447 echo "$ac_t""no" 1>&6
11454 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
11455 echo "configure:11456: checking for pthread_create in default libraries" >&5
11456 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
11457 echo $ac_n "(cached) $ac_c" 1>&6
11460 if test "$cross_compiling" = yes; then
11461 cat > conftest.$ac_ext <<EOF
11462 #line 11463 "configure"
11463 #include "confdefs.h"
11464 /* pthread test headers */
11465 #include <pthread.h>
11466 #if HAVE_PTHREADS < 7
11470 #define NULL (void*)0
11473 static void *task(p)
11476 return (void *) (p == NULL);
11481 /* pthread test function */
11482 #ifndef PTHREAD_CREATE_DETACHED
11483 #define PTHREAD_CREATE_DETACHED 1
11487 int detach = PTHREAD_CREATE_DETACHED;
11489 #if HAVE_PTHREADS > 4
11490 /* Final pthreads */
11491 pthread_attr_t attr;
11493 status = pthread_attr_init(&attr);
11494 if( status ) return status;
11496 #if HAVE_PTHREADS < 7
11497 status = pthread_attr_setdetachstate(&attr, &detach);
11498 if( status < 0 ) status = errno;
11500 status = pthread_attr_setdetachstate(&attr, detach);
11502 if( status ) return status;
11503 status = pthread_create( &t, &attr, task, NULL );
11504 #if HAVE_PTHREADS < 7
11505 if( status < 0 ) status = errno;
11507 if( status ) return status;
11509 /* Draft 4 pthreads */
11510 status = pthread_create( &t, pthread_attr_default, task, NULL );
11511 if( status ) return errno;
11513 /* give thread a chance to complete */
11514 /* it should remain joinable and hence detachable */
11517 status = pthread_detach( &t );
11518 if( status ) return errno;
11521 #ifdef HAVE_LINUX_THREADS
11522 pthread_kill_other_threads_np();
11529 if { (eval echo configure:11530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11531 ol_cv_pthread_create=yes
11533 echo "configure: failed program was:" >&5
11534 cat conftest.$ac_ext >&5
11536 ol_cv_pthread_create=no
11540 cat > conftest.$ac_ext <<EOF
11541 #line 11542 "configure"
11542 #include "confdefs.h"
11543 /* pthread test headers */
11544 #include <pthread.h>
11545 #if HAVE_PTHREADS < 7
11549 #define NULL (void*)0
11552 static void *task(p)
11555 return (void *) (p == NULL);
11559 int main(argc, argv)
11564 /* pthread test function */
11565 #ifndef PTHREAD_CREATE_DETACHED
11566 #define PTHREAD_CREATE_DETACHED 1
11570 int detach = PTHREAD_CREATE_DETACHED;
11572 #if HAVE_PTHREADS > 4
11573 /* Final pthreads */
11574 pthread_attr_t attr;
11576 status = pthread_attr_init(&attr);
11577 if( status ) return status;
11579 #if HAVE_PTHREADS < 7
11580 status = pthread_attr_setdetachstate(&attr, &detach);
11581 if( status < 0 ) status = errno;
11583 status = pthread_attr_setdetachstate(&attr, detach);
11585 if( status ) return status;
11586 status = pthread_create( &t, &attr, task, NULL );
11587 #if HAVE_PTHREADS < 7
11588 if( status < 0 ) status = errno;
11590 if( status ) return status;
11592 /* Draft 4 pthreads */
11593 status = pthread_create( &t, pthread_attr_default, task, NULL );
11594 if( status ) return errno;
11596 /* give thread a chance to complete */
11597 /* it should remain joinable and hence detachable */
11600 status = pthread_detach( &t );
11601 if( status ) return errno;
11604 #ifdef HAVE_LINUX_THREADS
11605 pthread_kill_other_threads_np();
11613 if { (eval echo configure:11614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11615 ol_cv_pthread_create=yes
11617 echo "configure: failed program was:" >&5
11618 cat conftest.$ac_ext >&5
11620 ol_cv_pthread_create=no
11627 echo "$ac_t""$ol_cv_pthread_create" 1>&6
11629 if test $ol_cv_pthread_create != no ; then
11630 ol_link_threads=posix
11631 ol_link_pthreads=""
11634 # Pthread try link: -kthread (ol_cv_pthread_kthread)
11635 if test "$ol_link_threads" = no ; then
11637 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
11638 echo "configure:11639: checking for pthread link with -kthread" >&5
11639 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
11640 echo $ac_n "(cached) $ac_c" 1>&6
11645 LIBS="-kthread $LIBS"
11647 if test "$cross_compiling" = yes; then
11648 cat > conftest.$ac_ext <<EOF
11649 #line 11650 "configure"
11650 #include "confdefs.h"
11651 /* pthread test headers */
11652 #include <pthread.h>
11653 #if HAVE_PTHREADS < 7
11657 #define NULL (void*)0
11660 static void *task(p)
11663 return (void *) (p == NULL);
11668 /* pthread test function */
11669 #ifndef PTHREAD_CREATE_DETACHED
11670 #define PTHREAD_CREATE_DETACHED 1
11674 int detach = PTHREAD_CREATE_DETACHED;
11676 #if HAVE_PTHREADS > 4
11677 /* Final pthreads */
11678 pthread_attr_t attr;
11680 status = pthread_attr_init(&attr);
11681 if( status ) return status;
11683 #if HAVE_PTHREADS < 7
11684 status = pthread_attr_setdetachstate(&attr, &detach);
11685 if( status < 0 ) status = errno;
11687 status = pthread_attr_setdetachstate(&attr, detach);
11689 if( status ) return status;
11690 status = pthread_create( &t, &attr, task, NULL );
11691 #if HAVE_PTHREADS < 7
11692 if( status < 0 ) status = errno;
11694 if( status ) return status;
11696 /* Draft 4 pthreads */
11697 status = pthread_create( &t, pthread_attr_default, task, NULL );
11698 if( status ) return errno;
11700 /* give thread a chance to complete */
11701 /* it should remain joinable and hence detachable */
11704 status = pthread_detach( &t );
11705 if( status ) return errno;
11708 #ifdef HAVE_LINUX_THREADS
11709 pthread_kill_other_threads_np();
11716 if { (eval echo configure:11717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11718 ol_cv_pthread_kthread=yes
11720 echo "configure: failed program was:" >&5
11721 cat conftest.$ac_ext >&5
11723 ol_cv_pthread_kthread=no
11727 cat > conftest.$ac_ext <<EOF
11728 #line 11729 "configure"
11729 #include "confdefs.h"
11730 /* pthread test headers */
11731 #include <pthread.h>
11732 #if HAVE_PTHREADS < 7
11736 #define NULL (void*)0
11739 static void *task(p)
11742 return (void *) (p == NULL);
11746 int main(argc, argv)
11751 /* pthread test function */
11752 #ifndef PTHREAD_CREATE_DETACHED
11753 #define PTHREAD_CREATE_DETACHED 1
11757 int detach = PTHREAD_CREATE_DETACHED;
11759 #if HAVE_PTHREADS > 4
11760 /* Final pthreads */
11761 pthread_attr_t attr;
11763 status = pthread_attr_init(&attr);
11764 if( status ) return status;
11766 #if HAVE_PTHREADS < 7
11767 status = pthread_attr_setdetachstate(&attr, &detach);
11768 if( status < 0 ) status = errno;
11770 status = pthread_attr_setdetachstate(&attr, detach);
11772 if( status ) return status;
11773 status = pthread_create( &t, &attr, task, NULL );
11774 #if HAVE_PTHREADS < 7
11775 if( status < 0 ) status = errno;
11777 if( status ) return status;
11779 /* Draft 4 pthreads */
11780 status = pthread_create( &t, pthread_attr_default, task, NULL );
11781 if( status ) return errno;
11783 /* give thread a chance to complete */
11784 /* it should remain joinable and hence detachable */
11787 status = pthread_detach( &t );
11788 if( status ) return errno;
11791 #ifdef HAVE_LINUX_THREADS
11792 pthread_kill_other_threads_np();
11800 if { (eval echo configure:11801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11802 ol_cv_pthread_kthread=yes
11804 echo "configure: failed program was:" >&5
11805 cat conftest.$ac_ext >&5
11807 ol_cv_pthread_kthread=no
11818 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
11820 if test $ol_cv_pthread_kthread = yes ; then
11821 ol_link_pthreads="-kthread"
11822 ol_link_threads=posix
11826 # Pthread try link: -pthread (ol_cv_pthread_pthread)
11827 if test "$ol_link_threads" = no ; then
11829 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
11830 echo "configure:11831: checking for pthread link with -pthread" >&5
11831 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
11832 echo $ac_n "(cached) $ac_c" 1>&6
11837 LIBS="-pthread $LIBS"
11839 if test "$cross_compiling" = yes; then
11840 cat > conftest.$ac_ext <<EOF
11841 #line 11842 "configure"
11842 #include "confdefs.h"
11843 /* pthread test headers */
11844 #include <pthread.h>
11845 #if HAVE_PTHREADS < 7
11849 #define NULL (void*)0
11852 static void *task(p)
11855 return (void *) (p == NULL);
11860 /* pthread test function */
11861 #ifndef PTHREAD_CREATE_DETACHED
11862 #define PTHREAD_CREATE_DETACHED 1
11866 int detach = PTHREAD_CREATE_DETACHED;
11868 #if HAVE_PTHREADS > 4
11869 /* Final pthreads */
11870 pthread_attr_t attr;
11872 status = pthread_attr_init(&attr);
11873 if( status ) return status;
11875 #if HAVE_PTHREADS < 7
11876 status = pthread_attr_setdetachstate(&attr, &detach);
11877 if( status < 0 ) status = errno;
11879 status = pthread_attr_setdetachstate(&attr, detach);
11881 if( status ) return status;
11882 status = pthread_create( &t, &attr, task, NULL );
11883 #if HAVE_PTHREADS < 7
11884 if( status < 0 ) status = errno;
11886 if( status ) return status;
11888 /* Draft 4 pthreads */
11889 status = pthread_create( &t, pthread_attr_default, task, NULL );
11890 if( status ) return errno;
11892 /* give thread a chance to complete */
11893 /* it should remain joinable and hence detachable */
11896 status = pthread_detach( &t );
11897 if( status ) return errno;
11900 #ifdef HAVE_LINUX_THREADS
11901 pthread_kill_other_threads_np();
11908 if { (eval echo configure:11909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11910 ol_cv_pthread_pthread=yes
11912 echo "configure: failed program was:" >&5
11913 cat conftest.$ac_ext >&5
11915 ol_cv_pthread_pthread=no
11919 cat > conftest.$ac_ext <<EOF
11920 #line 11921 "configure"
11921 #include "confdefs.h"
11922 /* pthread test headers */
11923 #include <pthread.h>
11924 #if HAVE_PTHREADS < 7
11928 #define NULL (void*)0
11931 static void *task(p)
11934 return (void *) (p == NULL);
11938 int main(argc, argv)
11943 /* pthread test function */
11944 #ifndef PTHREAD_CREATE_DETACHED
11945 #define PTHREAD_CREATE_DETACHED 1
11949 int detach = PTHREAD_CREATE_DETACHED;
11951 #if HAVE_PTHREADS > 4
11952 /* Final pthreads */
11953 pthread_attr_t attr;
11955 status = pthread_attr_init(&attr);
11956 if( status ) return status;
11958 #if HAVE_PTHREADS < 7
11959 status = pthread_attr_setdetachstate(&attr, &detach);
11960 if( status < 0 ) status = errno;
11962 status = pthread_attr_setdetachstate(&attr, detach);
11964 if( status ) return status;
11965 status = pthread_create( &t, &attr, task, NULL );
11966 #if HAVE_PTHREADS < 7
11967 if( status < 0 ) status = errno;
11969 if( status ) return status;
11971 /* Draft 4 pthreads */
11972 status = pthread_create( &t, pthread_attr_default, task, NULL );
11973 if( status ) return errno;
11975 /* give thread a chance to complete */
11976 /* it should remain joinable and hence detachable */
11979 status = pthread_detach( &t );
11980 if( status ) return errno;
11983 #ifdef HAVE_LINUX_THREADS
11984 pthread_kill_other_threads_np();
11992 if { (eval echo configure:11993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11994 ol_cv_pthread_pthread=yes
11996 echo "configure: failed program was:" >&5
11997 cat conftest.$ac_ext >&5
11999 ol_cv_pthread_pthread=no
12010 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
12012 if test $ol_cv_pthread_pthread = yes ; then
12013 ol_link_pthreads="-pthread"
12014 ol_link_threads=posix
12018 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
12019 if test "$ol_link_threads" = no ; then
12021 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
12022 echo "configure:12023: checking for pthread link with -pthreads" >&5
12023 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
12024 echo $ac_n "(cached) $ac_c" 1>&6
12029 LIBS="-pthreads $LIBS"
12031 if test "$cross_compiling" = yes; then
12032 cat > conftest.$ac_ext <<EOF
12033 #line 12034 "configure"
12034 #include "confdefs.h"
12035 /* pthread test headers */
12036 #include <pthread.h>
12037 #if HAVE_PTHREADS < 7
12041 #define NULL (void*)0
12044 static void *task(p)
12047 return (void *) (p == NULL);
12052 /* pthread test function */
12053 #ifndef PTHREAD_CREATE_DETACHED
12054 #define PTHREAD_CREATE_DETACHED 1
12058 int detach = PTHREAD_CREATE_DETACHED;
12060 #if HAVE_PTHREADS > 4
12061 /* Final pthreads */
12062 pthread_attr_t attr;
12064 status = pthread_attr_init(&attr);
12065 if( status ) return status;
12067 #if HAVE_PTHREADS < 7
12068 status = pthread_attr_setdetachstate(&attr, &detach);
12069 if( status < 0 ) status = errno;
12071 status = pthread_attr_setdetachstate(&attr, detach);
12073 if( status ) return status;
12074 status = pthread_create( &t, &attr, task, NULL );
12075 #if HAVE_PTHREADS < 7
12076 if( status < 0 ) status = errno;
12078 if( status ) return status;
12080 /* Draft 4 pthreads */
12081 status = pthread_create( &t, pthread_attr_default, task, NULL );
12082 if( status ) return errno;
12084 /* give thread a chance to complete */
12085 /* it should remain joinable and hence detachable */
12088 status = pthread_detach( &t );
12089 if( status ) return errno;
12092 #ifdef HAVE_LINUX_THREADS
12093 pthread_kill_other_threads_np();
12100 if { (eval echo configure:12101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12102 ol_cv_pthread_pthreads=yes
12104 echo "configure: failed program was:" >&5
12105 cat conftest.$ac_ext >&5
12107 ol_cv_pthread_pthreads=no
12111 cat > conftest.$ac_ext <<EOF
12112 #line 12113 "configure"
12113 #include "confdefs.h"
12114 /* pthread test headers */
12115 #include <pthread.h>
12116 #if HAVE_PTHREADS < 7
12120 #define NULL (void*)0
12123 static void *task(p)
12126 return (void *) (p == NULL);
12130 int main(argc, argv)
12135 /* pthread test function */
12136 #ifndef PTHREAD_CREATE_DETACHED
12137 #define PTHREAD_CREATE_DETACHED 1
12141 int detach = PTHREAD_CREATE_DETACHED;
12143 #if HAVE_PTHREADS > 4
12144 /* Final pthreads */
12145 pthread_attr_t attr;
12147 status = pthread_attr_init(&attr);
12148 if( status ) return status;
12150 #if HAVE_PTHREADS < 7
12151 status = pthread_attr_setdetachstate(&attr, &detach);
12152 if( status < 0 ) status = errno;
12154 status = pthread_attr_setdetachstate(&attr, detach);
12156 if( status ) return status;
12157 status = pthread_create( &t, &attr, task, NULL );
12158 #if HAVE_PTHREADS < 7
12159 if( status < 0 ) status = errno;
12161 if( status ) return status;
12163 /* Draft 4 pthreads */
12164 status = pthread_create( &t, pthread_attr_default, task, NULL );
12165 if( status ) return errno;
12167 /* give thread a chance to complete */
12168 /* it should remain joinable and hence detachable */
12171 status = pthread_detach( &t );
12172 if( status ) return errno;
12175 #ifdef HAVE_LINUX_THREADS
12176 pthread_kill_other_threads_np();
12184 if { (eval echo configure:12185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12186 ol_cv_pthread_pthreads=yes
12188 echo "configure: failed program was:" >&5
12189 cat conftest.$ac_ext >&5
12191 ol_cv_pthread_pthreads=no
12202 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
12204 if test $ol_cv_pthread_pthreads = yes ; then
12205 ol_link_pthreads="-pthreads"
12206 ol_link_threads=posix
12210 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
12211 if test "$ol_link_threads" = no ; then
12213 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
12214 echo "configure:12215: checking for pthread link with -mthreads" >&5
12215 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
12216 echo $ac_n "(cached) $ac_c" 1>&6
12221 LIBS="-mthreads $LIBS"
12223 if test "$cross_compiling" = yes; then
12224 cat > conftest.$ac_ext <<EOF
12225 #line 12226 "configure"
12226 #include "confdefs.h"
12227 /* pthread test headers */
12228 #include <pthread.h>
12229 #if HAVE_PTHREADS < 7
12233 #define NULL (void*)0
12236 static void *task(p)
12239 return (void *) (p == NULL);
12244 /* pthread test function */
12245 #ifndef PTHREAD_CREATE_DETACHED
12246 #define PTHREAD_CREATE_DETACHED 1
12250 int detach = PTHREAD_CREATE_DETACHED;
12252 #if HAVE_PTHREADS > 4
12253 /* Final pthreads */
12254 pthread_attr_t attr;
12256 status = pthread_attr_init(&attr);
12257 if( status ) return status;
12259 #if HAVE_PTHREADS < 7
12260 status = pthread_attr_setdetachstate(&attr, &detach);
12261 if( status < 0 ) status = errno;
12263 status = pthread_attr_setdetachstate(&attr, detach);
12265 if( status ) return status;
12266 status = pthread_create( &t, &attr, task, NULL );
12267 #if HAVE_PTHREADS < 7
12268 if( status < 0 ) status = errno;
12270 if( status ) return status;
12272 /* Draft 4 pthreads */
12273 status = pthread_create( &t, pthread_attr_default, task, NULL );
12274 if( status ) return errno;
12276 /* give thread a chance to complete */
12277 /* it should remain joinable and hence detachable */
12280 status = pthread_detach( &t );
12281 if( status ) return errno;
12284 #ifdef HAVE_LINUX_THREADS
12285 pthread_kill_other_threads_np();
12292 if { (eval echo configure:12293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12294 ol_cv_pthread_mthreads=yes
12296 echo "configure: failed program was:" >&5
12297 cat conftest.$ac_ext >&5
12299 ol_cv_pthread_mthreads=no
12303 cat > conftest.$ac_ext <<EOF
12304 #line 12305 "configure"
12305 #include "confdefs.h"
12306 /* pthread test headers */
12307 #include <pthread.h>
12308 #if HAVE_PTHREADS < 7
12312 #define NULL (void*)0
12315 static void *task(p)
12318 return (void *) (p == NULL);
12322 int main(argc, argv)
12327 /* pthread test function */
12328 #ifndef PTHREAD_CREATE_DETACHED
12329 #define PTHREAD_CREATE_DETACHED 1
12333 int detach = PTHREAD_CREATE_DETACHED;
12335 #if HAVE_PTHREADS > 4
12336 /* Final pthreads */
12337 pthread_attr_t attr;
12339 status = pthread_attr_init(&attr);
12340 if( status ) return status;
12342 #if HAVE_PTHREADS < 7
12343 status = pthread_attr_setdetachstate(&attr, &detach);
12344 if( status < 0 ) status = errno;
12346 status = pthread_attr_setdetachstate(&attr, detach);
12348 if( status ) return status;
12349 status = pthread_create( &t, &attr, task, NULL );
12350 #if HAVE_PTHREADS < 7
12351 if( status < 0 ) status = errno;
12353 if( status ) return status;
12355 /* Draft 4 pthreads */
12356 status = pthread_create( &t, pthread_attr_default, task, NULL );
12357 if( status ) return errno;
12359 /* give thread a chance to complete */
12360 /* it should remain joinable and hence detachable */
12363 status = pthread_detach( &t );
12364 if( status ) return errno;
12367 #ifdef HAVE_LINUX_THREADS
12368 pthread_kill_other_threads_np();
12376 if { (eval echo configure:12377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12378 ol_cv_pthread_mthreads=yes
12380 echo "configure: failed program was:" >&5
12381 cat conftest.$ac_ext >&5
12383 ol_cv_pthread_mthreads=no
12394 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
12396 if test $ol_cv_pthread_mthreads = yes ; then
12397 ol_link_pthreads="-mthreads"
12398 ol_link_threads=posix
12402 # Pthread try link: -thread (ol_cv_pthread_thread)
12403 if test "$ol_link_threads" = no ; then
12405 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
12406 echo "configure:12407: checking for pthread link with -thread" >&5
12407 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
12408 echo $ac_n "(cached) $ac_c" 1>&6
12413 LIBS="-thread $LIBS"
12415 if test "$cross_compiling" = yes; then
12416 cat > conftest.$ac_ext <<EOF
12417 #line 12418 "configure"
12418 #include "confdefs.h"
12419 /* pthread test headers */
12420 #include <pthread.h>
12421 #if HAVE_PTHREADS < 7
12425 #define NULL (void*)0
12428 static void *task(p)
12431 return (void *) (p == NULL);
12436 /* pthread test function */
12437 #ifndef PTHREAD_CREATE_DETACHED
12438 #define PTHREAD_CREATE_DETACHED 1
12442 int detach = PTHREAD_CREATE_DETACHED;
12444 #if HAVE_PTHREADS > 4
12445 /* Final pthreads */
12446 pthread_attr_t attr;
12448 status = pthread_attr_init(&attr);
12449 if( status ) return status;
12451 #if HAVE_PTHREADS < 7
12452 status = pthread_attr_setdetachstate(&attr, &detach);
12453 if( status < 0 ) status = errno;
12455 status = pthread_attr_setdetachstate(&attr, detach);
12457 if( status ) return status;
12458 status = pthread_create( &t, &attr, task, NULL );
12459 #if HAVE_PTHREADS < 7
12460 if( status < 0 ) status = errno;
12462 if( status ) return status;
12464 /* Draft 4 pthreads */
12465 status = pthread_create( &t, pthread_attr_default, task, NULL );
12466 if( status ) return errno;
12468 /* give thread a chance to complete */
12469 /* it should remain joinable and hence detachable */
12472 status = pthread_detach( &t );
12473 if( status ) return errno;
12476 #ifdef HAVE_LINUX_THREADS
12477 pthread_kill_other_threads_np();
12484 if { (eval echo configure:12485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12486 ol_cv_pthread_thread=yes
12488 echo "configure: failed program was:" >&5
12489 cat conftest.$ac_ext >&5
12491 ol_cv_pthread_thread=no
12495 cat > conftest.$ac_ext <<EOF
12496 #line 12497 "configure"
12497 #include "confdefs.h"
12498 /* pthread test headers */
12499 #include <pthread.h>
12500 #if HAVE_PTHREADS < 7
12504 #define NULL (void*)0
12507 static void *task(p)
12510 return (void *) (p == NULL);
12514 int main(argc, argv)
12519 /* pthread test function */
12520 #ifndef PTHREAD_CREATE_DETACHED
12521 #define PTHREAD_CREATE_DETACHED 1
12525 int detach = PTHREAD_CREATE_DETACHED;
12527 #if HAVE_PTHREADS > 4
12528 /* Final pthreads */
12529 pthread_attr_t attr;
12531 status = pthread_attr_init(&attr);
12532 if( status ) return status;
12534 #if HAVE_PTHREADS < 7
12535 status = pthread_attr_setdetachstate(&attr, &detach);
12536 if( status < 0 ) status = errno;
12538 status = pthread_attr_setdetachstate(&attr, detach);
12540 if( status ) return status;
12541 status = pthread_create( &t, &attr, task, NULL );
12542 #if HAVE_PTHREADS < 7
12543 if( status < 0 ) status = errno;
12545 if( status ) return status;
12547 /* Draft 4 pthreads */
12548 status = pthread_create( &t, pthread_attr_default, task, NULL );
12549 if( status ) return errno;
12551 /* give thread a chance to complete */
12552 /* it should remain joinable and hence detachable */
12555 status = pthread_detach( &t );
12556 if( status ) return errno;
12559 #ifdef HAVE_LINUX_THREADS
12560 pthread_kill_other_threads_np();
12568 if { (eval echo configure:12569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12570 ol_cv_pthread_thread=yes
12572 echo "configure: failed program was:" >&5
12573 cat conftest.$ac_ext >&5
12575 ol_cv_pthread_thread=no
12586 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
12588 if test $ol_cv_pthread_thread = yes ; then
12589 ol_link_pthreads="-thread"
12590 ol_link_threads=posix
12595 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
12596 if test "$ol_link_threads" = no ; then
12597 # try -lpthread -lmach -lexc -lc_r
12598 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
12599 echo "configure:12600: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
12600 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
12601 echo $ac_n "(cached) $ac_c" 1>&6
12606 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
12608 if test "$cross_compiling" = yes; then
12609 cat > conftest.$ac_ext <<EOF
12610 #line 12611 "configure"
12611 #include "confdefs.h"
12612 /* pthread test headers */
12613 #include <pthread.h>
12614 #if HAVE_PTHREADS < 7
12618 #define NULL (void*)0
12621 static void *task(p)
12624 return (void *) (p == NULL);
12629 /* pthread test function */
12630 #ifndef PTHREAD_CREATE_DETACHED
12631 #define PTHREAD_CREATE_DETACHED 1
12635 int detach = PTHREAD_CREATE_DETACHED;
12637 #if HAVE_PTHREADS > 4
12638 /* Final pthreads */
12639 pthread_attr_t attr;
12641 status = pthread_attr_init(&attr);
12642 if( status ) return status;
12644 #if HAVE_PTHREADS < 7
12645 status = pthread_attr_setdetachstate(&attr, &detach);
12646 if( status < 0 ) status = errno;
12648 status = pthread_attr_setdetachstate(&attr, detach);
12650 if( status ) return status;
12651 status = pthread_create( &t, &attr, task, NULL );
12652 #if HAVE_PTHREADS < 7
12653 if( status < 0 ) status = errno;
12655 if( status ) return status;
12657 /* Draft 4 pthreads */
12658 status = pthread_create( &t, pthread_attr_default, task, NULL );
12659 if( status ) return errno;
12661 /* give thread a chance to complete */
12662 /* it should remain joinable and hence detachable */
12665 status = pthread_detach( &t );
12666 if( status ) return errno;
12669 #ifdef HAVE_LINUX_THREADS
12670 pthread_kill_other_threads_np();
12677 if { (eval echo configure:12678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12679 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
12681 echo "configure: failed program was:" >&5
12682 cat conftest.$ac_ext >&5
12684 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
12688 cat > conftest.$ac_ext <<EOF
12689 #line 12690 "configure"
12690 #include "confdefs.h"
12691 /* pthread test headers */
12692 #include <pthread.h>
12693 #if HAVE_PTHREADS < 7
12697 #define NULL (void*)0
12700 static void *task(p)
12703 return (void *) (p == NULL);
12707 int main(argc, argv)
12712 /* pthread test function */
12713 #ifndef PTHREAD_CREATE_DETACHED
12714 #define PTHREAD_CREATE_DETACHED 1
12718 int detach = PTHREAD_CREATE_DETACHED;
12720 #if HAVE_PTHREADS > 4
12721 /* Final pthreads */
12722 pthread_attr_t attr;
12724 status = pthread_attr_init(&attr);
12725 if( status ) return status;
12727 #if HAVE_PTHREADS < 7
12728 status = pthread_attr_setdetachstate(&attr, &detach);
12729 if( status < 0 ) status = errno;
12731 status = pthread_attr_setdetachstate(&attr, detach);
12733 if( status ) return status;
12734 status = pthread_create( &t, &attr, task, NULL );
12735 #if HAVE_PTHREADS < 7
12736 if( status < 0 ) status = errno;
12738 if( status ) return status;
12740 /* Draft 4 pthreads */
12741 status = pthread_create( &t, pthread_attr_default, task, NULL );
12742 if( status ) return errno;
12744 /* give thread a chance to complete */
12745 /* it should remain joinable and hence detachable */
12748 status = pthread_detach( &t );
12749 if( status ) return errno;
12752 #ifdef HAVE_LINUX_THREADS
12753 pthread_kill_other_threads_np();
12761 if { (eval echo configure:12762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12763 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
12765 echo "configure: failed program was:" >&5
12766 cat conftest.$ac_ext >&5
12768 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
12779 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
12781 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
12782 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
12783 ol_link_threads=posix
12787 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
12788 if test "$ol_link_threads" = no ; then
12789 # try -lpthread -lmach -lexc
12790 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
12791 echo "configure:12792: checking for pthread link with -lpthread -lmach -lexc" >&5
12792 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
12793 echo $ac_n "(cached) $ac_c" 1>&6
12798 LIBS="-lpthread -lmach -lexc $LIBS"
12800 if test "$cross_compiling" = yes; then
12801 cat > conftest.$ac_ext <<EOF
12802 #line 12803 "configure"
12803 #include "confdefs.h"
12804 /* pthread test headers */
12805 #include <pthread.h>
12806 #if HAVE_PTHREADS < 7
12810 #define NULL (void*)0
12813 static void *task(p)
12816 return (void *) (p == NULL);
12821 /* pthread test function */
12822 #ifndef PTHREAD_CREATE_DETACHED
12823 #define PTHREAD_CREATE_DETACHED 1
12827 int detach = PTHREAD_CREATE_DETACHED;
12829 #if HAVE_PTHREADS > 4
12830 /* Final pthreads */
12831 pthread_attr_t attr;
12833 status = pthread_attr_init(&attr);
12834 if( status ) return status;
12836 #if HAVE_PTHREADS < 7
12837 status = pthread_attr_setdetachstate(&attr, &detach);
12838 if( status < 0 ) status = errno;
12840 status = pthread_attr_setdetachstate(&attr, detach);
12842 if( status ) return status;
12843 status = pthread_create( &t, &attr, task, NULL );
12844 #if HAVE_PTHREADS < 7
12845 if( status < 0 ) status = errno;
12847 if( status ) return status;
12849 /* Draft 4 pthreads */
12850 status = pthread_create( &t, pthread_attr_default, task, NULL );
12851 if( status ) return errno;
12853 /* give thread a chance to complete */
12854 /* it should remain joinable and hence detachable */
12857 status = pthread_detach( &t );
12858 if( status ) return errno;
12861 #ifdef HAVE_LINUX_THREADS
12862 pthread_kill_other_threads_np();
12869 if { (eval echo configure:12870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12871 ol_cv_pthread_lpthread_lmach_lexc=yes
12873 echo "configure: failed program was:" >&5
12874 cat conftest.$ac_ext >&5
12876 ol_cv_pthread_lpthread_lmach_lexc=no
12880 cat > conftest.$ac_ext <<EOF
12881 #line 12882 "configure"
12882 #include "confdefs.h"
12883 /* pthread test headers */
12884 #include <pthread.h>
12885 #if HAVE_PTHREADS < 7
12889 #define NULL (void*)0
12892 static void *task(p)
12895 return (void *) (p == NULL);
12899 int main(argc, argv)
12904 /* pthread test function */
12905 #ifndef PTHREAD_CREATE_DETACHED
12906 #define PTHREAD_CREATE_DETACHED 1
12910 int detach = PTHREAD_CREATE_DETACHED;
12912 #if HAVE_PTHREADS > 4
12913 /* Final pthreads */
12914 pthread_attr_t attr;
12916 status = pthread_attr_init(&attr);
12917 if( status ) return status;
12919 #if HAVE_PTHREADS < 7
12920 status = pthread_attr_setdetachstate(&attr, &detach);
12921 if( status < 0 ) status = errno;
12923 status = pthread_attr_setdetachstate(&attr, detach);
12925 if( status ) return status;
12926 status = pthread_create( &t, &attr, task, NULL );
12927 #if HAVE_PTHREADS < 7
12928 if( status < 0 ) status = errno;
12930 if( status ) return status;
12932 /* Draft 4 pthreads */
12933 status = pthread_create( &t, pthread_attr_default, task, NULL );
12934 if( status ) return errno;
12936 /* give thread a chance to complete */
12937 /* it should remain joinable and hence detachable */
12940 status = pthread_detach( &t );
12941 if( status ) return errno;
12944 #ifdef HAVE_LINUX_THREADS
12945 pthread_kill_other_threads_np();
12953 if { (eval echo configure:12954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12955 ol_cv_pthread_lpthread_lmach_lexc=yes
12957 echo "configure: failed program was:" >&5
12958 cat conftest.$ac_ext >&5
12960 ol_cv_pthread_lpthread_lmach_lexc=no
12971 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
12973 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
12974 ol_link_pthreads="-lpthread -lmach -lexc"
12975 ol_link_threads=posix
12980 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
12981 if test "$ol_link_threads" = no ; then
12982 # try -lpthread -Wl,-woff,85
12983 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
12984 echo "configure:12985: checking for pthread link with -lpthread -Wl,-woff,85" >&5
12985 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
12986 echo $ac_n "(cached) $ac_c" 1>&6
12991 LIBS="-lpthread -Wl,-woff,85 $LIBS"
12993 if test "$cross_compiling" = yes; then
12994 cat > conftest.$ac_ext <<EOF
12995 #line 12996 "configure"
12996 #include "confdefs.h"
12997 /* pthread test headers */
12998 #include <pthread.h>
12999 #if HAVE_PTHREADS < 7
13003 #define NULL (void*)0
13006 static void *task(p)
13009 return (void *) (p == NULL);
13014 /* pthread test function */
13015 #ifndef PTHREAD_CREATE_DETACHED
13016 #define PTHREAD_CREATE_DETACHED 1
13020 int detach = PTHREAD_CREATE_DETACHED;
13022 #if HAVE_PTHREADS > 4
13023 /* Final pthreads */
13024 pthread_attr_t attr;
13026 status = pthread_attr_init(&attr);
13027 if( status ) return status;
13029 #if HAVE_PTHREADS < 7
13030 status = pthread_attr_setdetachstate(&attr, &detach);
13031 if( status < 0 ) status = errno;
13033 status = pthread_attr_setdetachstate(&attr, detach);
13035 if( status ) return status;
13036 status = pthread_create( &t, &attr, task, NULL );
13037 #if HAVE_PTHREADS < 7
13038 if( status < 0 ) status = errno;
13040 if( status ) return status;
13042 /* Draft 4 pthreads */
13043 status = pthread_create( &t, pthread_attr_default, task, NULL );
13044 if( status ) return errno;
13046 /* give thread a chance to complete */
13047 /* it should remain joinable and hence detachable */
13050 status = pthread_detach( &t );
13051 if( status ) return errno;
13054 #ifdef HAVE_LINUX_THREADS
13055 pthread_kill_other_threads_np();
13062 if { (eval echo configure:13063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13064 ol_cv_pthread_lib_lpthread_woff=yes
13066 echo "configure: failed program was:" >&5
13067 cat conftest.$ac_ext >&5
13069 ol_cv_pthread_lib_lpthread_woff=no
13073 cat > conftest.$ac_ext <<EOF
13074 #line 13075 "configure"
13075 #include "confdefs.h"
13076 /* pthread test headers */
13077 #include <pthread.h>
13078 #if HAVE_PTHREADS < 7
13082 #define NULL (void*)0
13085 static void *task(p)
13088 return (void *) (p == NULL);
13092 int main(argc, argv)
13097 /* pthread test function */
13098 #ifndef PTHREAD_CREATE_DETACHED
13099 #define PTHREAD_CREATE_DETACHED 1
13103 int detach = PTHREAD_CREATE_DETACHED;
13105 #if HAVE_PTHREADS > 4
13106 /* Final pthreads */
13107 pthread_attr_t attr;
13109 status = pthread_attr_init(&attr);
13110 if( status ) return status;
13112 #if HAVE_PTHREADS < 7
13113 status = pthread_attr_setdetachstate(&attr, &detach);
13114 if( status < 0 ) status = errno;
13116 status = pthread_attr_setdetachstate(&attr, detach);
13118 if( status ) return status;
13119 status = pthread_create( &t, &attr, task, NULL );
13120 #if HAVE_PTHREADS < 7
13121 if( status < 0 ) status = errno;
13123 if( status ) return status;
13125 /* Draft 4 pthreads */
13126 status = pthread_create( &t, pthread_attr_default, task, NULL );
13127 if( status ) return errno;
13129 /* give thread a chance to complete */
13130 /* it should remain joinable and hence detachable */
13133 status = pthread_detach( &t );
13134 if( status ) return errno;
13137 #ifdef HAVE_LINUX_THREADS
13138 pthread_kill_other_threads_np();
13146 if { (eval echo configure:13147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13148 ol_cv_pthread_lib_lpthread_woff=yes
13150 echo "configure: failed program was:" >&5
13151 cat conftest.$ac_ext >&5
13153 ol_cv_pthread_lib_lpthread_woff=no
13164 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
13166 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
13167 ol_link_pthreads="-lpthread -Wl,-woff,85"
13168 ol_link_threads=posix
13173 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
13174 if test "$ol_link_threads" = no ; then
13176 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
13177 echo "configure:13178: checking for pthread link with -lpthread" >&5
13178 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
13179 echo $ac_n "(cached) $ac_c" 1>&6
13184 LIBS="-lpthread $LIBS"
13186 if test "$cross_compiling" = yes; then
13187 cat > conftest.$ac_ext <<EOF
13188 #line 13189 "configure"
13189 #include "confdefs.h"
13190 /* pthread test headers */
13191 #include <pthread.h>
13192 #if HAVE_PTHREADS < 7
13196 #define NULL (void*)0
13199 static void *task(p)
13202 return (void *) (p == NULL);
13207 /* pthread test function */
13208 #ifndef PTHREAD_CREATE_DETACHED
13209 #define PTHREAD_CREATE_DETACHED 1
13213 int detach = PTHREAD_CREATE_DETACHED;
13215 #if HAVE_PTHREADS > 4
13216 /* Final pthreads */
13217 pthread_attr_t attr;
13219 status = pthread_attr_init(&attr);
13220 if( status ) return status;
13222 #if HAVE_PTHREADS < 7
13223 status = pthread_attr_setdetachstate(&attr, &detach);
13224 if( status < 0 ) status = errno;
13226 status = pthread_attr_setdetachstate(&attr, detach);
13228 if( status ) return status;
13229 status = pthread_create( &t, &attr, task, NULL );
13230 #if HAVE_PTHREADS < 7
13231 if( status < 0 ) status = errno;
13233 if( status ) return status;
13235 /* Draft 4 pthreads */
13236 status = pthread_create( &t, pthread_attr_default, task, NULL );
13237 if( status ) return errno;
13239 /* give thread a chance to complete */
13240 /* it should remain joinable and hence detachable */
13243 status = pthread_detach( &t );
13244 if( status ) return errno;
13247 #ifdef HAVE_LINUX_THREADS
13248 pthread_kill_other_threads_np();
13255 if { (eval echo configure:13256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13257 ol_cv_pthread_lpthread=yes
13259 echo "configure: failed program was:" >&5
13260 cat conftest.$ac_ext >&5
13262 ol_cv_pthread_lpthread=no
13266 cat > conftest.$ac_ext <<EOF
13267 #line 13268 "configure"
13268 #include "confdefs.h"
13269 /* pthread test headers */
13270 #include <pthread.h>
13271 #if HAVE_PTHREADS < 7
13275 #define NULL (void*)0
13278 static void *task(p)
13281 return (void *) (p == NULL);
13285 int main(argc, argv)
13290 /* pthread test function */
13291 #ifndef PTHREAD_CREATE_DETACHED
13292 #define PTHREAD_CREATE_DETACHED 1
13296 int detach = PTHREAD_CREATE_DETACHED;
13298 #if HAVE_PTHREADS > 4
13299 /* Final pthreads */
13300 pthread_attr_t attr;
13302 status = pthread_attr_init(&attr);
13303 if( status ) return status;
13305 #if HAVE_PTHREADS < 7
13306 status = pthread_attr_setdetachstate(&attr, &detach);
13307 if( status < 0 ) status = errno;
13309 status = pthread_attr_setdetachstate(&attr, detach);
13311 if( status ) return status;
13312 status = pthread_create( &t, &attr, task, NULL );
13313 #if HAVE_PTHREADS < 7
13314 if( status < 0 ) status = errno;
13316 if( status ) return status;
13318 /* Draft 4 pthreads */
13319 status = pthread_create( &t, pthread_attr_default, task, NULL );
13320 if( status ) return errno;
13322 /* give thread a chance to complete */
13323 /* it should remain joinable and hence detachable */
13326 status = pthread_detach( &t );
13327 if( status ) return errno;
13330 #ifdef HAVE_LINUX_THREADS
13331 pthread_kill_other_threads_np();
13339 if { (eval echo configure:13340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13341 ol_cv_pthread_lpthread=yes
13343 echo "configure: failed program was:" >&5
13344 cat conftest.$ac_ext >&5
13346 ol_cv_pthread_lpthread=no
13357 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
13359 if test $ol_cv_pthread_lpthread = yes ; then
13360 ol_link_pthreads="-lpthread"
13361 ol_link_threads=posix
13365 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
13366 if test "$ol_link_threads" = no ; then
13368 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
13369 echo "configure:13370: checking for pthread link with -lc_r" >&5
13370 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
13371 echo $ac_n "(cached) $ac_c" 1>&6
13378 if test "$cross_compiling" = yes; then
13379 cat > conftest.$ac_ext <<EOF
13380 #line 13381 "configure"
13381 #include "confdefs.h"
13382 /* pthread test headers */
13383 #include <pthread.h>
13384 #if HAVE_PTHREADS < 7
13388 #define NULL (void*)0
13391 static void *task(p)
13394 return (void *) (p == NULL);
13399 /* pthread test function */
13400 #ifndef PTHREAD_CREATE_DETACHED
13401 #define PTHREAD_CREATE_DETACHED 1
13405 int detach = PTHREAD_CREATE_DETACHED;
13407 #if HAVE_PTHREADS > 4
13408 /* Final pthreads */
13409 pthread_attr_t attr;
13411 status = pthread_attr_init(&attr);
13412 if( status ) return status;
13414 #if HAVE_PTHREADS < 7
13415 status = pthread_attr_setdetachstate(&attr, &detach);
13416 if( status < 0 ) status = errno;
13418 status = pthread_attr_setdetachstate(&attr, detach);
13420 if( status ) return status;
13421 status = pthread_create( &t, &attr, task, NULL );
13422 #if HAVE_PTHREADS < 7
13423 if( status < 0 ) status = errno;
13425 if( status ) return status;
13427 /* Draft 4 pthreads */
13428 status = pthread_create( &t, pthread_attr_default, task, NULL );
13429 if( status ) return errno;
13431 /* give thread a chance to complete */
13432 /* it should remain joinable and hence detachable */
13435 status = pthread_detach( &t );
13436 if( status ) return errno;
13439 #ifdef HAVE_LINUX_THREADS
13440 pthread_kill_other_threads_np();
13447 if { (eval echo configure:13448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13449 ol_cv_pthread_lc_r=yes
13451 echo "configure: failed program was:" >&5
13452 cat conftest.$ac_ext >&5
13454 ol_cv_pthread_lc_r=no
13458 cat > conftest.$ac_ext <<EOF
13459 #line 13460 "configure"
13460 #include "confdefs.h"
13461 /* pthread test headers */
13462 #include <pthread.h>
13463 #if HAVE_PTHREADS < 7
13467 #define NULL (void*)0
13470 static void *task(p)
13473 return (void *) (p == NULL);
13477 int main(argc, argv)
13482 /* pthread test function */
13483 #ifndef PTHREAD_CREATE_DETACHED
13484 #define PTHREAD_CREATE_DETACHED 1
13488 int detach = PTHREAD_CREATE_DETACHED;
13490 #if HAVE_PTHREADS > 4
13491 /* Final pthreads */
13492 pthread_attr_t attr;
13494 status = pthread_attr_init(&attr);
13495 if( status ) return status;
13497 #if HAVE_PTHREADS < 7
13498 status = pthread_attr_setdetachstate(&attr, &detach);
13499 if( status < 0 ) status = errno;
13501 status = pthread_attr_setdetachstate(&attr, detach);
13503 if( status ) return status;
13504 status = pthread_create( &t, &attr, task, NULL );
13505 #if HAVE_PTHREADS < 7
13506 if( status < 0 ) status = errno;
13508 if( status ) return status;
13510 /* Draft 4 pthreads */
13511 status = pthread_create( &t, pthread_attr_default, task, NULL );
13512 if( status ) return errno;
13514 /* give thread a chance to complete */
13515 /* it should remain joinable and hence detachable */
13518 status = pthread_detach( &t );
13519 if( status ) return errno;
13522 #ifdef HAVE_LINUX_THREADS
13523 pthread_kill_other_threads_np();
13531 if { (eval echo configure:13532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13533 ol_cv_pthread_lc_r=yes
13535 echo "configure: failed program was:" >&5
13536 cat conftest.$ac_ext >&5
13538 ol_cv_pthread_lc_r=no
13549 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
13551 if test $ol_cv_pthread_lc_r = yes ; then
13552 ol_link_pthreads="-lc_r"
13553 ol_link_threads=posix
13558 # Pthread try link: -threads (ol_cv_pthread_threads)
13559 if test "$ol_link_threads" = no ; then
13561 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
13562 echo "configure:13563: checking for pthread link with -threads" >&5
13563 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
13564 echo $ac_n "(cached) $ac_c" 1>&6
13569 LIBS="-threads $LIBS"
13571 if test "$cross_compiling" = yes; then
13572 cat > conftest.$ac_ext <<EOF
13573 #line 13574 "configure"
13574 #include "confdefs.h"
13575 /* pthread test headers */
13576 #include <pthread.h>
13577 #if HAVE_PTHREADS < 7
13581 #define NULL (void*)0
13584 static void *task(p)
13587 return (void *) (p == NULL);
13592 /* pthread test function */
13593 #ifndef PTHREAD_CREATE_DETACHED
13594 #define PTHREAD_CREATE_DETACHED 1
13598 int detach = PTHREAD_CREATE_DETACHED;
13600 #if HAVE_PTHREADS > 4
13601 /* Final pthreads */
13602 pthread_attr_t attr;
13604 status = pthread_attr_init(&attr);
13605 if( status ) return status;
13607 #if HAVE_PTHREADS < 7
13608 status = pthread_attr_setdetachstate(&attr, &detach);
13609 if( status < 0 ) status = errno;
13611 status = pthread_attr_setdetachstate(&attr, detach);
13613 if( status ) return status;
13614 status = pthread_create( &t, &attr, task, NULL );
13615 #if HAVE_PTHREADS < 7
13616 if( status < 0 ) status = errno;
13618 if( status ) return status;
13620 /* Draft 4 pthreads */
13621 status = pthread_create( &t, pthread_attr_default, task, NULL );
13622 if( status ) return errno;
13624 /* give thread a chance to complete */
13625 /* it should remain joinable and hence detachable */
13628 status = pthread_detach( &t );
13629 if( status ) return errno;
13632 #ifdef HAVE_LINUX_THREADS
13633 pthread_kill_other_threads_np();
13640 if { (eval echo configure:13641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13642 ol_cv_pthread_threads=yes
13644 echo "configure: failed program was:" >&5
13645 cat conftest.$ac_ext >&5
13647 ol_cv_pthread_threads=no
13651 cat > conftest.$ac_ext <<EOF
13652 #line 13653 "configure"
13653 #include "confdefs.h"
13654 /* pthread test headers */
13655 #include <pthread.h>
13656 #if HAVE_PTHREADS < 7
13660 #define NULL (void*)0
13663 static void *task(p)
13666 return (void *) (p == NULL);
13670 int main(argc, argv)
13675 /* pthread test function */
13676 #ifndef PTHREAD_CREATE_DETACHED
13677 #define PTHREAD_CREATE_DETACHED 1
13681 int detach = PTHREAD_CREATE_DETACHED;
13683 #if HAVE_PTHREADS > 4
13684 /* Final pthreads */
13685 pthread_attr_t attr;
13687 status = pthread_attr_init(&attr);
13688 if( status ) return status;
13690 #if HAVE_PTHREADS < 7
13691 status = pthread_attr_setdetachstate(&attr, &detach);
13692 if( status < 0 ) status = errno;
13694 status = pthread_attr_setdetachstate(&attr, detach);
13696 if( status ) return status;
13697 status = pthread_create( &t, &attr, task, NULL );
13698 #if HAVE_PTHREADS < 7
13699 if( status < 0 ) status = errno;
13701 if( status ) return status;
13703 /* Draft 4 pthreads */
13704 status = pthread_create( &t, pthread_attr_default, task, NULL );
13705 if( status ) return errno;
13707 /* give thread a chance to complete */
13708 /* it should remain joinable and hence detachable */
13711 status = pthread_detach( &t );
13712 if( status ) return errno;
13715 #ifdef HAVE_LINUX_THREADS
13716 pthread_kill_other_threads_np();
13724 if { (eval echo configure:13725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13726 ol_cv_pthread_threads=yes
13728 echo "configure: failed program was:" >&5
13729 cat conftest.$ac_ext >&5
13731 ol_cv_pthread_threads=no
13742 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
13744 if test $ol_cv_pthread_threads = yes ; then
13745 ol_link_pthreads="-threads"
13746 ol_link_threads=posix
13751 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
13752 if test "$ol_link_threads" = no ; then
13753 # try -lpthreads -lmach -lexc -lc_r
13754 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
13755 echo "configure:13756: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
13756 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
13757 echo $ac_n "(cached) $ac_c" 1>&6
13762 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
13764 if test "$cross_compiling" = yes; then
13765 cat > conftest.$ac_ext <<EOF
13766 #line 13767 "configure"
13767 #include "confdefs.h"
13768 /* pthread test headers */
13769 #include <pthread.h>
13770 #if HAVE_PTHREADS < 7
13774 #define NULL (void*)0
13777 static void *task(p)
13780 return (void *) (p == NULL);
13785 /* pthread test function */
13786 #ifndef PTHREAD_CREATE_DETACHED
13787 #define PTHREAD_CREATE_DETACHED 1
13791 int detach = PTHREAD_CREATE_DETACHED;
13793 #if HAVE_PTHREADS > 4
13794 /* Final pthreads */
13795 pthread_attr_t attr;
13797 status = pthread_attr_init(&attr);
13798 if( status ) return status;
13800 #if HAVE_PTHREADS < 7
13801 status = pthread_attr_setdetachstate(&attr, &detach);
13802 if( status < 0 ) status = errno;
13804 status = pthread_attr_setdetachstate(&attr, detach);
13806 if( status ) return status;
13807 status = pthread_create( &t, &attr, task, NULL );
13808 #if HAVE_PTHREADS < 7
13809 if( status < 0 ) status = errno;
13811 if( status ) return status;
13813 /* Draft 4 pthreads */
13814 status = pthread_create( &t, pthread_attr_default, task, NULL );
13815 if( status ) return errno;
13817 /* give thread a chance to complete */
13818 /* it should remain joinable and hence detachable */
13821 status = pthread_detach( &t );
13822 if( status ) return errno;
13825 #ifdef HAVE_LINUX_THREADS
13826 pthread_kill_other_threads_np();
13833 if { (eval echo configure:13834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13835 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
13837 echo "configure: failed program was:" >&5
13838 cat conftest.$ac_ext >&5
13840 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
13844 cat > conftest.$ac_ext <<EOF
13845 #line 13846 "configure"
13846 #include "confdefs.h"
13847 /* pthread test headers */
13848 #include <pthread.h>
13849 #if HAVE_PTHREADS < 7
13853 #define NULL (void*)0
13856 static void *task(p)
13859 return (void *) (p == NULL);
13863 int main(argc, argv)
13868 /* pthread test function */
13869 #ifndef PTHREAD_CREATE_DETACHED
13870 #define PTHREAD_CREATE_DETACHED 1
13874 int detach = PTHREAD_CREATE_DETACHED;
13876 #if HAVE_PTHREADS > 4
13877 /* Final pthreads */
13878 pthread_attr_t attr;
13880 status = pthread_attr_init(&attr);
13881 if( status ) return status;
13883 #if HAVE_PTHREADS < 7
13884 status = pthread_attr_setdetachstate(&attr, &detach);
13885 if( status < 0 ) status = errno;
13887 status = pthread_attr_setdetachstate(&attr, detach);
13889 if( status ) return status;
13890 status = pthread_create( &t, &attr, task, NULL );
13891 #if HAVE_PTHREADS < 7
13892 if( status < 0 ) status = errno;
13894 if( status ) return status;
13896 /* Draft 4 pthreads */
13897 status = pthread_create( &t, pthread_attr_default, task, NULL );
13898 if( status ) return errno;
13900 /* give thread a chance to complete */
13901 /* it should remain joinable and hence detachable */
13904 status = pthread_detach( &t );
13905 if( status ) return errno;
13908 #ifdef HAVE_LINUX_THREADS
13909 pthread_kill_other_threads_np();
13917 if { (eval echo configure:13918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13919 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
13921 echo "configure: failed program was:" >&5
13922 cat conftest.$ac_ext >&5
13924 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
13935 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
13937 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
13938 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
13939 ol_link_threads=posix
13943 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
13944 if test "$ol_link_threads" = no ; then
13945 # try -lpthreads -lmach -lexc
13946 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
13947 echo "configure:13948: checking for pthread link with -lpthreads -lmach -lexc" >&5
13948 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
13949 echo $ac_n "(cached) $ac_c" 1>&6
13954 LIBS="-lpthreads -lmach -lexc $LIBS"
13956 if test "$cross_compiling" = yes; then
13957 cat > conftest.$ac_ext <<EOF
13958 #line 13959 "configure"
13959 #include "confdefs.h"
13960 /* pthread test headers */
13961 #include <pthread.h>
13962 #if HAVE_PTHREADS < 7
13966 #define NULL (void*)0
13969 static void *task(p)
13972 return (void *) (p == NULL);
13977 /* pthread test function */
13978 #ifndef PTHREAD_CREATE_DETACHED
13979 #define PTHREAD_CREATE_DETACHED 1
13983 int detach = PTHREAD_CREATE_DETACHED;
13985 #if HAVE_PTHREADS > 4
13986 /* Final pthreads */
13987 pthread_attr_t attr;
13989 status = pthread_attr_init(&attr);
13990 if( status ) return status;
13992 #if HAVE_PTHREADS < 7
13993 status = pthread_attr_setdetachstate(&attr, &detach);
13994 if( status < 0 ) status = errno;
13996 status = pthread_attr_setdetachstate(&attr, detach);
13998 if( status ) return status;
13999 status = pthread_create( &t, &attr, task, NULL );
14000 #if HAVE_PTHREADS < 7
14001 if( status < 0 ) status = errno;
14003 if( status ) return status;
14005 /* Draft 4 pthreads */
14006 status = pthread_create( &t, pthread_attr_default, task, NULL );
14007 if( status ) return errno;
14009 /* give thread a chance to complete */
14010 /* it should remain joinable and hence detachable */
14013 status = pthread_detach( &t );
14014 if( status ) return errno;
14017 #ifdef HAVE_LINUX_THREADS
14018 pthread_kill_other_threads_np();
14025 if { (eval echo configure:14026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14027 ol_cv_pthread_lpthreads_lmach_lexc=yes
14029 echo "configure: failed program was:" >&5
14030 cat conftest.$ac_ext >&5
14032 ol_cv_pthread_lpthreads_lmach_lexc=no
14036 cat > conftest.$ac_ext <<EOF
14037 #line 14038 "configure"
14038 #include "confdefs.h"
14039 /* pthread test headers */
14040 #include <pthread.h>
14041 #if HAVE_PTHREADS < 7
14045 #define NULL (void*)0
14048 static void *task(p)
14051 return (void *) (p == NULL);
14055 int main(argc, argv)
14060 /* pthread test function */
14061 #ifndef PTHREAD_CREATE_DETACHED
14062 #define PTHREAD_CREATE_DETACHED 1
14066 int detach = PTHREAD_CREATE_DETACHED;
14068 #if HAVE_PTHREADS > 4
14069 /* Final pthreads */
14070 pthread_attr_t attr;
14072 status = pthread_attr_init(&attr);
14073 if( status ) return status;
14075 #if HAVE_PTHREADS < 7
14076 status = pthread_attr_setdetachstate(&attr, &detach);
14077 if( status < 0 ) status = errno;
14079 status = pthread_attr_setdetachstate(&attr, detach);
14081 if( status ) return status;
14082 status = pthread_create( &t, &attr, task, NULL );
14083 #if HAVE_PTHREADS < 7
14084 if( status < 0 ) status = errno;
14086 if( status ) return status;
14088 /* Draft 4 pthreads */
14089 status = pthread_create( &t, pthread_attr_default, task, NULL );
14090 if( status ) return errno;
14092 /* give thread a chance to complete */
14093 /* it should remain joinable and hence detachable */
14096 status = pthread_detach( &t );
14097 if( status ) return errno;
14100 #ifdef HAVE_LINUX_THREADS
14101 pthread_kill_other_threads_np();
14109 if { (eval echo configure:14110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14111 ol_cv_pthread_lpthreads_lmach_lexc=yes
14113 echo "configure: failed program was:" >&5
14114 cat conftest.$ac_ext >&5
14116 ol_cv_pthread_lpthreads_lmach_lexc=no
14127 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
14129 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
14130 ol_link_pthreads="-lpthreads -lmach -lexc"
14131 ol_link_threads=posix
14135 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
14136 if test "$ol_link_threads" = no ; then
14137 # try -lpthreads -lexc
14138 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
14139 echo "configure:14140: checking for pthread link with -lpthreads -lexc" >&5
14140 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
14141 echo $ac_n "(cached) $ac_c" 1>&6
14146 LIBS="-lpthreads -lexc $LIBS"
14148 if test "$cross_compiling" = yes; then
14149 cat > conftest.$ac_ext <<EOF
14150 #line 14151 "configure"
14151 #include "confdefs.h"
14152 /* pthread test headers */
14153 #include <pthread.h>
14154 #if HAVE_PTHREADS < 7
14158 #define NULL (void*)0
14161 static void *task(p)
14164 return (void *) (p == NULL);
14169 /* pthread test function */
14170 #ifndef PTHREAD_CREATE_DETACHED
14171 #define PTHREAD_CREATE_DETACHED 1
14175 int detach = PTHREAD_CREATE_DETACHED;
14177 #if HAVE_PTHREADS > 4
14178 /* Final pthreads */
14179 pthread_attr_t attr;
14181 status = pthread_attr_init(&attr);
14182 if( status ) return status;
14184 #if HAVE_PTHREADS < 7
14185 status = pthread_attr_setdetachstate(&attr, &detach);
14186 if( status < 0 ) status = errno;
14188 status = pthread_attr_setdetachstate(&attr, detach);
14190 if( status ) return status;
14191 status = pthread_create( &t, &attr, task, NULL );
14192 #if HAVE_PTHREADS < 7
14193 if( status < 0 ) status = errno;
14195 if( status ) return status;
14197 /* Draft 4 pthreads */
14198 status = pthread_create( &t, pthread_attr_default, task, NULL );
14199 if( status ) return errno;
14201 /* give thread a chance to complete */
14202 /* it should remain joinable and hence detachable */
14205 status = pthread_detach( &t );
14206 if( status ) return errno;
14209 #ifdef HAVE_LINUX_THREADS
14210 pthread_kill_other_threads_np();
14217 if { (eval echo configure:14218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14219 ol_cv_pthread_lpthreads_lexc=yes
14221 echo "configure: failed program was:" >&5
14222 cat conftest.$ac_ext >&5
14224 ol_cv_pthread_lpthreads_lexc=no
14228 cat > conftest.$ac_ext <<EOF
14229 #line 14230 "configure"
14230 #include "confdefs.h"
14231 /* pthread test headers */
14232 #include <pthread.h>
14233 #if HAVE_PTHREADS < 7
14237 #define NULL (void*)0
14240 static void *task(p)
14243 return (void *) (p == NULL);
14247 int main(argc, argv)
14252 /* pthread test function */
14253 #ifndef PTHREAD_CREATE_DETACHED
14254 #define PTHREAD_CREATE_DETACHED 1
14258 int detach = PTHREAD_CREATE_DETACHED;
14260 #if HAVE_PTHREADS > 4
14261 /* Final pthreads */
14262 pthread_attr_t attr;
14264 status = pthread_attr_init(&attr);
14265 if( status ) return status;
14267 #if HAVE_PTHREADS < 7
14268 status = pthread_attr_setdetachstate(&attr, &detach);
14269 if( status < 0 ) status = errno;
14271 status = pthread_attr_setdetachstate(&attr, detach);
14273 if( status ) return status;
14274 status = pthread_create( &t, &attr, task, NULL );
14275 #if HAVE_PTHREADS < 7
14276 if( status < 0 ) status = errno;
14278 if( status ) return status;
14280 /* Draft 4 pthreads */
14281 status = pthread_create( &t, pthread_attr_default, task, NULL );
14282 if( status ) return errno;
14284 /* give thread a chance to complete */
14285 /* it should remain joinable and hence detachable */
14288 status = pthread_detach( &t );
14289 if( status ) return errno;
14292 #ifdef HAVE_LINUX_THREADS
14293 pthread_kill_other_threads_np();
14301 if { (eval echo configure:14302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14303 ol_cv_pthread_lpthreads_lexc=yes
14305 echo "configure: failed program was:" >&5
14306 cat conftest.$ac_ext >&5
14308 ol_cv_pthread_lpthreads_lexc=no
14319 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
14321 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
14322 ol_link_pthreads="-lpthreads -lexc"
14323 ol_link_threads=posix
14328 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
14329 if test "$ol_link_threads" = no ; then
14331 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
14332 echo "configure:14333: checking for pthread link with -lpthreads" >&5
14333 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
14334 echo $ac_n "(cached) $ac_c" 1>&6
14339 LIBS="-lpthreads $LIBS"
14341 if test "$cross_compiling" = yes; then
14342 cat > conftest.$ac_ext <<EOF
14343 #line 14344 "configure"
14344 #include "confdefs.h"
14345 /* pthread test headers */
14346 #include <pthread.h>
14347 #if HAVE_PTHREADS < 7
14351 #define NULL (void*)0
14354 static void *task(p)
14357 return (void *) (p == NULL);
14362 /* pthread test function */
14363 #ifndef PTHREAD_CREATE_DETACHED
14364 #define PTHREAD_CREATE_DETACHED 1
14368 int detach = PTHREAD_CREATE_DETACHED;
14370 #if HAVE_PTHREADS > 4
14371 /* Final pthreads */
14372 pthread_attr_t attr;
14374 status = pthread_attr_init(&attr);
14375 if( status ) return status;
14377 #if HAVE_PTHREADS < 7
14378 status = pthread_attr_setdetachstate(&attr, &detach);
14379 if( status < 0 ) status = errno;
14381 status = pthread_attr_setdetachstate(&attr, detach);
14383 if( status ) return status;
14384 status = pthread_create( &t, &attr, task, NULL );
14385 #if HAVE_PTHREADS < 7
14386 if( status < 0 ) status = errno;
14388 if( status ) return status;
14390 /* Draft 4 pthreads */
14391 status = pthread_create( &t, pthread_attr_default, task, NULL );
14392 if( status ) return errno;
14394 /* give thread a chance to complete */
14395 /* it should remain joinable and hence detachable */
14398 status = pthread_detach( &t );
14399 if( status ) return errno;
14402 #ifdef HAVE_LINUX_THREADS
14403 pthread_kill_other_threads_np();
14410 if { (eval echo configure:14411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14412 ol_cv_pthread_lib_lpthreads=yes
14414 echo "configure: failed program was:" >&5
14415 cat conftest.$ac_ext >&5
14417 ol_cv_pthread_lib_lpthreads=no
14421 cat > conftest.$ac_ext <<EOF
14422 #line 14423 "configure"
14423 #include "confdefs.h"
14424 /* pthread test headers */
14425 #include <pthread.h>
14426 #if HAVE_PTHREADS < 7
14430 #define NULL (void*)0
14433 static void *task(p)
14436 return (void *) (p == NULL);
14440 int main(argc, argv)
14445 /* pthread test function */
14446 #ifndef PTHREAD_CREATE_DETACHED
14447 #define PTHREAD_CREATE_DETACHED 1
14451 int detach = PTHREAD_CREATE_DETACHED;
14453 #if HAVE_PTHREADS > 4
14454 /* Final pthreads */
14455 pthread_attr_t attr;
14457 status = pthread_attr_init(&attr);
14458 if( status ) return status;
14460 #if HAVE_PTHREADS < 7
14461 status = pthread_attr_setdetachstate(&attr, &detach);
14462 if( status < 0 ) status = errno;
14464 status = pthread_attr_setdetachstate(&attr, detach);
14466 if( status ) return status;
14467 status = pthread_create( &t, &attr, task, NULL );
14468 #if HAVE_PTHREADS < 7
14469 if( status < 0 ) status = errno;
14471 if( status ) return status;
14473 /* Draft 4 pthreads */
14474 status = pthread_create( &t, pthread_attr_default, task, NULL );
14475 if( status ) return errno;
14477 /* give thread a chance to complete */
14478 /* it should remain joinable and hence detachable */
14481 status = pthread_detach( &t );
14482 if( status ) return errno;
14485 #ifdef HAVE_LINUX_THREADS
14486 pthread_kill_other_threads_np();
14494 if { (eval echo configure:14495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14496 ol_cv_pthread_lib_lpthreads=yes
14498 echo "configure: failed program was:" >&5
14499 cat conftest.$ac_ext >&5
14501 ol_cv_pthread_lib_lpthreads=no
14512 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
14514 if test $ol_cv_pthread_lib_lpthreads = yes ; then
14515 ol_link_pthreads="-lpthreads"
14516 ol_link_threads=posix
14521 if test $ol_link_threads != no ; then
14522 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
14524 save_CPPFLAGS="$CPPFLAGS"
14526 LIBS="$LTHREAD_LIBS $LIBS"
14528 for ac_func in sched_yield pthread_yield thr_yield
14530 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14531 echo "configure:14532: checking for $ac_func" >&5
14532 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14533 echo $ac_n "(cached) $ac_c" 1>&6
14535 cat > conftest.$ac_ext <<EOF
14536 #line 14537 "configure"
14537 #include "confdefs.h"
14538 /* System header to define __stub macros and hopefully few prototypes,
14539 which can conflict with char $ac_func(); below. */
14540 #include <assert.h>
14541 /* Override any gcc2 internal prototype to avoid an error. */
14542 /* We use char because int might match the return type of a gcc2
14543 builtin and then its argument prototype would still apply. */
14549 /* The GNU C library defines this for functions which it implements
14550 to always fail with ENOSYS. Some functions are actually named
14551 something starting with __ and the normal name is an alias. */
14552 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14560 if { (eval echo configure:14561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14562 eval "ac_cv_func_$ac_func=yes"
14564 echo "configure: failed program was:" >&5
14565 cat conftest.$ac_ext >&5
14567 eval "ac_cv_func_$ac_func=no"
14572 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14573 echo "$ac_t""yes" 1>&6
14574 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14575 cat >> confdefs.h <<EOF
14576 #define $ac_tr_func 1
14580 echo "$ac_t""no" 1>&6
14585 if test $ac_cv_func_sched_yield = no -a \
14586 $ac_cv_func_pthread_yield = no -a \
14587 $ac_cv_func_thr_yield = no ; then
14588 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
14589 echo "configure:14590: checking for sched_yield in -lrt" >&5
14590 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
14591 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14592 echo $ac_n "(cached) $ac_c" 1>&6
14594 ac_save_LIBS="$LIBS"
14596 cat > conftest.$ac_ext <<EOF
14597 #line 14598 "configure"
14598 #include "confdefs.h"
14599 /* Override any gcc2 internal prototype to avoid an error. */
14600 /* We use char because int might match the return type of a gcc2
14601 builtin and then its argument prototype would still apply. */
14602 char sched_yield();
14608 if { (eval echo configure:14609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14610 eval "ac_cv_lib_$ac_lib_var=yes"
14612 echo "configure: failed program was:" >&5
14613 cat conftest.$ac_ext >&5
14615 eval "ac_cv_lib_$ac_lib_var=no"
14618 LIBS="$ac_save_LIBS"
14621 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14622 echo "$ac_t""yes" 1>&6
14623 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
14624 cat >> confdefs.h <<\EOF
14625 #define HAVE_SCHED_YIELD 1
14628 ac_cv_func_sched_yield=yes
14630 echo "$ac_t""no" 1>&6
14631 ac_cv_func_sched_yield=no
14635 if test $ac_cv_func_sched_yield = no -a \
14636 $ac_cv_func_pthread_yield = no -a \
14637 "$ac_cv_func_thr_yield" = no ; then
14638 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
14641 for ac_func in pthread_kill pthread_rwlock_destroy
14643 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14644 echo "configure:14645: checking for $ac_func" >&5
14645 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14646 echo $ac_n "(cached) $ac_c" 1>&6
14648 cat > conftest.$ac_ext <<EOF
14649 #line 14650 "configure"
14650 #include "confdefs.h"
14651 /* System header to define __stub macros and hopefully few prototypes,
14652 which can conflict with char $ac_func(); below. */
14653 #include <assert.h>
14654 /* Override any gcc2 internal prototype to avoid an error. */
14655 /* We use char because int might match the return type of a gcc2
14656 builtin and then its argument prototype would still apply. */
14662 /* The GNU C library defines this for functions which it implements
14663 to always fail with ENOSYS. Some functions are actually named
14664 something starting with __ and the normal name is an alias. */
14665 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14673 if { (eval echo configure:14674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14675 eval "ac_cv_func_$ac_func=yes"
14677 echo "configure: failed program was:" >&5
14678 cat conftest.$ac_ext >&5
14680 eval "ac_cv_func_$ac_func=no"
14685 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14686 echo "$ac_t""yes" 1>&6
14687 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14688 cat >> confdefs.h <<EOF
14689 #define $ac_tr_func 1
14693 echo "$ac_t""no" 1>&6
14698 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
14699 echo "configure:14700: checking for pthread_detach with <pthread.h>" >&5
14700 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
14701 echo $ac_n "(cached) $ac_c" 1>&6
14704 cat > conftest.$ac_ext <<EOF
14705 #line 14706 "configure"
14706 #include "confdefs.h"
14708 #include <pthread.h>
14710 #define NULL (void*)0
14714 pthread_detach(NULL);
14717 if { (eval echo configure:14718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14719 ol_cv_func_pthread_detach=yes
14721 echo "configure: failed program was:" >&5
14722 cat conftest.$ac_ext >&5
14724 ol_cv_func_pthread_detach=no
14730 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
14732 if test $ol_cv_func_pthread_detach = no ; then
14733 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
14736 cat >> confdefs.h <<\EOF
14737 #define HAVE_PTHREAD_DETACH 1
14742 pthread_setconcurrency \
14743 pthread_getconcurrency \
14744 thr_setconcurrency \
14745 thr_getconcurrency \
14748 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14749 echo "configure:14750: checking for $ac_func" >&5
14750 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14751 echo $ac_n "(cached) $ac_c" 1>&6
14753 cat > conftest.$ac_ext <<EOF
14754 #line 14755 "configure"
14755 #include "confdefs.h"
14756 /* System header to define __stub macros and hopefully few prototypes,
14757 which can conflict with char $ac_func(); below. */
14758 #include <assert.h>
14759 /* Override any gcc2 internal prototype to avoid an error. */
14760 /* We use char because int might match the return type of a gcc2
14761 builtin and then its argument prototype would still apply. */
14767 /* The GNU C library defines this for functions which it implements
14768 to always fail with ENOSYS. Some functions are actually named
14769 something starting with __ and the normal name is an alias. */
14770 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14778 if { (eval echo configure:14779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14780 eval "ac_cv_func_$ac_func=yes"
14782 echo "configure: failed program was:" >&5
14783 cat conftest.$ac_ext >&5
14785 eval "ac_cv_func_$ac_func=no"
14790 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14791 echo "$ac_t""yes" 1>&6
14792 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14793 cat >> confdefs.h <<EOF
14794 #define $ac_tr_func 1
14798 echo "$ac_t""no" 1>&6
14804 for ac_func in pthread_kill_other_threads_np
14806 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14807 echo "configure:14808: checking for $ac_func" >&5
14808 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14809 echo $ac_n "(cached) $ac_c" 1>&6
14811 cat > conftest.$ac_ext <<EOF
14812 #line 14813 "configure"
14813 #include "confdefs.h"
14814 /* System header to define __stub macros and hopefully few prototypes,
14815 which can conflict with char $ac_func(); below. */
14816 #include <assert.h>
14817 /* Override any gcc2 internal prototype to avoid an error. */
14818 /* We use char because int might match the return type of a gcc2
14819 builtin and then its argument prototype would still apply. */
14825 /* The GNU C library defines this for functions which it implements
14826 to always fail with ENOSYS. Some functions are actually named
14827 something starting with __ and the normal name is an alias. */
14828 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14836 if { (eval echo configure:14837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14838 eval "ac_cv_func_$ac_func=yes"
14840 echo "configure: failed program was:" >&5
14841 cat conftest.$ac_ext >&5
14843 eval "ac_cv_func_$ac_func=no"
14848 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14849 echo "$ac_t""yes" 1>&6
14850 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14851 cat >> confdefs.h <<EOF
14852 #define $ac_tr_func 1
14856 echo "$ac_t""no" 1>&6
14860 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
14861 echo "configure:14862: checking for LinuxThreads implementation" >&5
14862 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
14863 echo $ac_n "(cached) $ac_c" 1>&6
14865 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
14868 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
14873 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
14874 echo "configure:14875: checking for LinuxThreads consistency" >&5
14875 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
14876 echo $ac_n "(cached) $ac_c" 1>&6
14879 if test $ol_cv_header_linux_threads = yes -a \
14880 $ol_cv_sys_linux_threads = yes; then
14881 ol_cv_linux_threads=yes
14882 elif test $ol_cv_header_linux_threads = no -a \
14883 $ol_cv_sys_linux_threads = no; then
14884 ol_cv_linux_threads=no
14886 ol_cv_linux_threads=error
14891 echo "$ac_t""$ol_cv_linux_threads" 1>&6
14894 if test $ol_cv_linux_threads = error; then
14895 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
14898 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
14899 echo "configure:14900: checking if pthread_create() works" >&5
14900 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
14901 echo $ac_n "(cached) $ac_c" 1>&6
14904 if test "$cross_compiling" = yes; then
14905 ol_cv_pthread_create_works=yes
14907 cat > conftest.$ac_ext <<EOF
14908 #line 14909 "configure"
14909 #include "confdefs.h"
14910 /* pthread test headers */
14911 #include <pthread.h>
14912 #if HAVE_PTHREADS < 7
14916 #define NULL (void*)0
14919 static void *task(p)
14922 return (void *) (p == NULL);
14926 int main(argc, argv)
14931 /* pthread test function */
14932 #ifndef PTHREAD_CREATE_DETACHED
14933 #define PTHREAD_CREATE_DETACHED 1
14937 int detach = PTHREAD_CREATE_DETACHED;
14939 #if HAVE_PTHREADS > 4
14940 /* Final pthreads */
14941 pthread_attr_t attr;
14943 status = pthread_attr_init(&attr);
14944 if( status ) return status;
14946 #if HAVE_PTHREADS < 7
14947 status = pthread_attr_setdetachstate(&attr, &detach);
14948 if( status < 0 ) status = errno;
14950 status = pthread_attr_setdetachstate(&attr, detach);
14952 if( status ) return status;
14953 status = pthread_create( &t, &attr, task, NULL );
14954 #if HAVE_PTHREADS < 7
14955 if( status < 0 ) status = errno;
14957 if( status ) return status;
14959 /* Draft 4 pthreads */
14960 status = pthread_create( &t, pthread_attr_default, task, NULL );
14961 if( status ) return errno;
14963 /* give thread a chance to complete */
14964 /* it should remain joinable and hence detachable */
14967 status = pthread_detach( &t );
14968 if( status ) return errno;
14971 #ifdef HAVE_LINUX_THREADS
14972 pthread_kill_other_threads_np();
14980 if { (eval echo configure:14981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14982 ol_cv_pthread_create_works=yes
14984 echo "configure: failed program was:" >&5
14985 cat conftest.$ac_ext >&5
14987 ol_cv_pthread_create_works=no
14994 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
14996 if test $ol_cv_pthread_create_works = no ; then
14997 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
15000 if test $ol_with_yielding_select = auto ; then
15001 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
15002 echo "configure:15003: checking if select yields when using pthreads" >&5
15003 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
15004 echo $ac_n "(cached) $ac_c" 1>&6
15007 if test "$cross_compiling" = yes; then
15008 ol_cv_pthread_select_yields=cross
15010 cat > conftest.$ac_ext <<EOF
15011 #line 15012 "configure"
15012 #include "confdefs.h"
15014 #include <sys/types.h>
15015 #include <sys/time.h>
15016 #include <unistd.h>
15017 #include <pthread.h>
15019 #define NULL (void*) 0
15022 static int fildes[2];
15024 static void *task(p)
15036 FD_SET(fildes[0], &rfds);
15038 /* we're not interested in any fds */
15039 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
15046 exit(0); /* if we exit here, the select blocked the whole process */
15049 int main(argc, argv)
15055 /* create a pipe to select */
15056 if(pipe(&fildes[0])) {
15061 #ifdef HAVE_PTHREAD_SETCONCURRENCY
15062 (void) pthread_setconcurrency(2);
15064 #ifdef HAVE_THR_SETCONCURRENCY
15065 /* Set Solaris LWP concurrency to 2 */
15066 thr_setconcurrency(2);
15070 #if HAVE_PTHREADS < 6
15071 pthread_create(&t, pthread_attr_default, task, NULL);
15073 pthread_create(&t, NULL, task, NULL);
15076 /* make sure task runs first */
15079 #elif defined( HAVE_SCHED_YIELD )
15081 #elif defined( HAVE_PTHREAD_YIELD )
15088 if { (eval echo configure:15089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15090 ol_cv_pthread_select_yields=no
15092 echo "configure: failed program was:" >&5
15093 cat conftest.$ac_ext >&5
15095 ol_cv_pthread_select_yields=yes
15102 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
15104 if test $ol_cv_pthread_select_yields = cross ; then
15105 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
15108 if test $ol_cv_pthread_select_yields = yes ; then
15109 ol_with_yielding_select=yes
15113 CPPFLAGS="$save_CPPFLAGS"
15116 { echo "configure: error: could not locate usable POSIX Threads" 1>&2; exit 1; }
15120 if test $ol_with_threads = posix ; then
15121 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
15125 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15126 -o $ol_with_threads = mach ; then
15128 for ac_hdr in mach/cthreads.h cthreads.h
15130 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15131 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15132 echo "configure:15133: checking for $ac_hdr" >&5
15133 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15134 echo $ac_n "(cached) $ac_c" 1>&6
15136 cat > conftest.$ac_ext <<EOF
15137 #line 15138 "configure"
15138 #include "confdefs.h"
15141 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15142 { (eval echo configure:15143: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15143 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15144 if test -z "$ac_err"; then
15146 eval "ac_cv_header_$ac_safe=yes"
15149 echo "configure: failed program was:" >&5
15150 cat conftest.$ac_ext >&5
15152 eval "ac_cv_header_$ac_safe=no"
15156 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15157 echo "$ac_t""yes" 1>&6
15158 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15159 cat >> confdefs.h <<EOF
15160 #define $ac_tr_hdr 1
15164 echo "$ac_t""no" 1>&6
15168 if test $ac_cv_header_mach_cthreads_h = yes ; then
15169 ol_with_threads=found
15171 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
15172 echo "configure:15173: checking for cthread_fork" >&5
15173 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
15174 echo $ac_n "(cached) $ac_c" 1>&6
15176 cat > conftest.$ac_ext <<EOF
15177 #line 15178 "configure"
15178 #include "confdefs.h"
15179 /* System header to define __stub macros and hopefully few prototypes,
15180 which can conflict with char cthread_fork(); below. */
15181 #include <assert.h>
15182 /* Override any gcc2 internal prototype to avoid an error. */
15183 /* We use char because int might match the return type of a gcc2
15184 builtin and then its argument prototype would still apply. */
15185 char cthread_fork();
15190 /* The GNU C library defines this for functions which it implements
15191 to always fail with ENOSYS. Some functions are actually named
15192 something starting with __ and the normal name is an alias. */
15193 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
15201 if { (eval echo configure:15202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15203 eval "ac_cv_func_cthread_fork=yes"
15205 echo "configure: failed program was:" >&5
15206 cat conftest.$ac_ext >&5
15208 eval "ac_cv_func_cthread_fork=no"
15213 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
15214 echo "$ac_t""yes" 1>&6
15215 ol_link_threads=yes
15217 echo "$ac_t""no" 1>&6
15221 if test $ol_link_threads = no ; then
15222 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
15223 echo "configure:15224: checking for cthread_fork with -all_load" >&5
15224 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
15225 echo $ac_n "(cached) $ac_c" 1>&6
15229 LIBS="-all_load $LIBS"
15230 cat > conftest.$ac_ext <<EOF
15231 #line 15232 "configure"
15232 #include "confdefs.h"
15233 #include <mach/cthreads.h>
15236 cthread_fork((void *)0, (void *)0);
15240 if { (eval echo configure:15241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15242 ol_cv_cthread_all_load=yes
15244 echo "configure: failed program was:" >&5
15245 cat conftest.$ac_ext >&5
15247 ol_cv_cthread_all_load=no
15254 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
15256 if test $ol_cv_cthread_all_load = yes ; then
15257 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
15258 ol_link_threads=mach
15259 ol_with_threads=found
15263 elif test $ac_cv_header_cthreads_h = yes ; then
15265 ol_with_threads=found
15268 LIBS="$LIBS -lthreads"
15269 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
15270 echo "configure:15271: checking for cthread_fork" >&5
15271 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
15272 echo $ac_n "(cached) $ac_c" 1>&6
15274 cat > conftest.$ac_ext <<EOF
15275 #line 15276 "configure"
15276 #include "confdefs.h"
15277 /* System header to define __stub macros and hopefully few prototypes,
15278 which can conflict with char cthread_fork(); below. */
15279 #include <assert.h>
15280 /* Override any gcc2 internal prototype to avoid an error. */
15281 /* We use char because int might match the return type of a gcc2
15282 builtin and then its argument prototype would still apply. */
15283 char cthread_fork();
15288 /* The GNU C library defines this for functions which it implements
15289 to always fail with ENOSYS. Some functions are actually named
15290 something starting with __ and the normal name is an alias. */
15291 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
15299 if { (eval echo configure:15300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15301 eval "ac_cv_func_cthread_fork=yes"
15303 echo "configure: failed program was:" >&5
15304 cat conftest.$ac_ext >&5
15306 eval "ac_cv_func_cthread_fork=no"
15311 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
15312 echo "$ac_t""yes" 1>&6
15313 ol_link_threads=yes
15315 echo "$ac_t""no" 1>&6
15320 if test $ol_link_threads = yes ; then
15321 LTHREAD_LIBS="-lthreads"
15322 ol_link_threads=mach
15323 ol_with_threads=found
15325 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
15328 elif test $ol_with_threads = mach ; then
15329 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
15332 if test $ol_link_threads = mach ; then
15333 cat >> confdefs.h <<\EOF
15334 #define HAVE_MACH_CTHREADS 1
15337 elif test $ol_with_threads = found ; then
15338 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
15342 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15343 -o $ol_with_threads = pth ; then
15345 for ac_hdr in pth.h
15347 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15348 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15349 echo "configure:15350: checking for $ac_hdr" >&5
15350 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15351 echo $ac_n "(cached) $ac_c" 1>&6
15353 cat > conftest.$ac_ext <<EOF
15354 #line 15355 "configure"
15355 #include "confdefs.h"
15358 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15359 { (eval echo configure:15360: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15360 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15361 if test -z "$ac_err"; then
15363 eval "ac_cv_header_$ac_safe=yes"
15366 echo "configure: failed program was:" >&5
15367 cat conftest.$ac_ext >&5
15369 eval "ac_cv_header_$ac_safe=no"
15373 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15374 echo "$ac_t""yes" 1>&6
15375 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15376 cat >> confdefs.h <<EOF
15377 #define $ac_tr_hdr 1
15381 echo "$ac_t""no" 1>&6
15386 if test $ac_cv_header_pth_h = yes ; then
15387 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
15388 echo "configure:15389: checking for pth_version in -lpth" >&5
15389 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
15390 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15391 echo $ac_n "(cached) $ac_c" 1>&6
15393 ac_save_LIBS="$LIBS"
15395 cat > conftest.$ac_ext <<EOF
15396 #line 15397 "configure"
15397 #include "confdefs.h"
15398 /* Override any gcc2 internal prototype to avoid an error. */
15399 /* We use char because int might match the return type of a gcc2
15400 builtin and then its argument prototype would still apply. */
15401 char pth_version();
15407 if { (eval echo configure:15408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15409 eval "ac_cv_lib_$ac_lib_var=yes"
15411 echo "configure: failed program was:" >&5
15412 cat conftest.$ac_ext >&5
15414 eval "ac_cv_lib_$ac_lib_var=no"
15417 LIBS="$ac_save_LIBS"
15420 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15421 echo "$ac_t""yes" 1>&6
15424 echo "$ac_t""no" 1>&6
15429 if test $have_pth = yes ; then
15430 cat >> confdefs.h <<\EOF
15431 #define HAVE_GNU_PTH 1
15434 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
15435 ol_link_threads=pth
15436 ol_with_threads=found
15438 if test $ol_with_yielding_select = auto ; then
15439 ol_with_yielding_select=yes
15445 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15446 -o $ol_with_threads = lwp ; then
15448 for ac_hdr in thread.h synch.h
15450 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15451 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15452 echo "configure:15453: checking for $ac_hdr" >&5
15453 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15454 echo $ac_n "(cached) $ac_c" 1>&6
15456 cat > conftest.$ac_ext <<EOF
15457 #line 15458 "configure"
15458 #include "confdefs.h"
15461 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15462 { (eval echo configure:15463: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15463 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15464 if test -z "$ac_err"; then
15466 eval "ac_cv_header_$ac_safe=yes"
15469 echo "configure: failed program was:" >&5
15470 cat conftest.$ac_ext >&5
15472 eval "ac_cv_header_$ac_safe=no"
15476 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15477 echo "$ac_t""yes" 1>&6
15478 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15479 cat >> confdefs.h <<EOF
15480 #define $ac_tr_hdr 1
15484 echo "$ac_t""no" 1>&6
15488 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
15489 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
15490 echo "configure:15491: checking for thr_create in -lthread" >&5
15491 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
15492 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15493 echo $ac_n "(cached) $ac_c" 1>&6
15495 ac_save_LIBS="$LIBS"
15496 LIBS="-lthread $LIBS"
15497 cat > conftest.$ac_ext <<EOF
15498 #line 15499 "configure"
15499 #include "confdefs.h"
15500 /* Override any gcc2 internal prototype to avoid an error. */
15501 /* We use char because int might match the return type of a gcc2
15502 builtin and then its argument prototype would still apply. */
15509 if { (eval echo configure:15510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15511 eval "ac_cv_lib_$ac_lib_var=yes"
15513 echo "configure: failed program was:" >&5
15514 cat conftest.$ac_ext >&5
15516 eval "ac_cv_lib_$ac_lib_var=no"
15519 LIBS="$ac_save_LIBS"
15522 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15523 echo "$ac_t""yes" 1>&6
15526 echo "$ac_t""no" 1>&6
15531 if test $have_thr = yes ; then
15532 cat >> confdefs.h <<\EOF
15536 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
15537 ol_link_threads=thr
15539 if test $ol_with_yielding_select = auto ; then
15540 ol_with_yielding_select=yes
15544 thr_setconcurrency \
15545 thr_getconcurrency \
15548 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15549 echo "configure:15550: checking for $ac_func" >&5
15550 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15551 echo $ac_n "(cached) $ac_c" 1>&6
15553 cat > conftest.$ac_ext <<EOF
15554 #line 15555 "configure"
15555 #include "confdefs.h"
15556 /* System header to define __stub macros and hopefully few prototypes,
15557 which can conflict with char $ac_func(); below. */
15558 #include <assert.h>
15559 /* Override any gcc2 internal prototype to avoid an error. */
15560 /* We use char because int might match the return type of a gcc2
15561 builtin and then its argument prototype would still apply. */
15567 /* The GNU C library defines this for functions which it implements
15568 to always fail with ENOSYS. Some functions are actually named
15569 something starting with __ and the normal name is an alias. */
15570 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15578 if { (eval echo configure:15579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15580 eval "ac_cv_func_$ac_func=yes"
15582 echo "configure: failed program was:" >&5
15583 cat conftest.$ac_ext >&5
15585 eval "ac_cv_func_$ac_func=no"
15590 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15591 echo "$ac_t""yes" 1>&6
15592 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15593 cat >> confdefs.h <<EOF
15594 #define $ac_tr_func 1
15598 echo "$ac_t""no" 1>&6
15605 for ac_hdr in lwp/lwp.h
15607 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15608 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15609 echo "configure:15610: checking for $ac_hdr" >&5
15610 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15611 echo $ac_n "(cached) $ac_c" 1>&6
15613 cat > conftest.$ac_ext <<EOF
15614 #line 15615 "configure"
15615 #include "confdefs.h"
15618 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15619 { (eval echo configure:15620: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15620 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15621 if test -z "$ac_err"; then
15623 eval "ac_cv_header_$ac_safe=yes"
15626 echo "configure: failed program was:" >&5
15627 cat conftest.$ac_ext >&5
15629 eval "ac_cv_header_$ac_safe=no"
15633 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15634 echo "$ac_t""yes" 1>&6
15635 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15636 cat >> confdefs.h <<EOF
15637 #define $ac_tr_hdr 1
15641 echo "$ac_t""no" 1>&6
15645 if test $ac_cv_header_lwp_lwp_h = yes ; then
15646 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
15647 echo "configure:15648: checking for lwp_create in -llwp" >&5
15648 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
15649 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15650 echo $ac_n "(cached) $ac_c" 1>&6
15652 ac_save_LIBS="$LIBS"
15654 cat > conftest.$ac_ext <<EOF
15655 #line 15656 "configure"
15656 #include "confdefs.h"
15657 /* Override any gcc2 internal prototype to avoid an error. */
15658 /* We use char because int might match the return type of a gcc2
15659 builtin and then its argument prototype would still apply. */
15666 if { (eval echo configure:15667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15668 eval "ac_cv_lib_$ac_lib_var=yes"
15670 echo "configure: failed program was:" >&5
15671 cat conftest.$ac_ext >&5
15673 eval "ac_cv_lib_$ac_lib_var=no"
15676 LIBS="$ac_save_LIBS"
15679 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15680 echo "$ac_t""yes" 1>&6
15683 echo "$ac_t""no" 1>&6
15688 if test $have_lwp = yes ; then
15689 cat >> confdefs.h <<\EOF
15693 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
15694 ol_link_threads=lwp
15696 if test $ol_with_yielding_select = auto ; then
15697 ol_with_yielding_select=no
15703 if test $ol_with_yielding_select = yes ; then
15704 cat >> confdefs.h <<\EOF
15705 #define HAVE_YIELDING_SELECT 1
15710 if test $ol_with_threads = manual ; then
15711 ol_link_threads=yes
15713 echo "configure: warning: thread defines and link options must be set manually" 1>&2
15715 for ac_hdr in pthread.h sched.h
15717 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15718 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15719 echo "configure:15720: checking for $ac_hdr" >&5
15720 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15721 echo $ac_n "(cached) $ac_c" 1>&6
15723 cat > conftest.$ac_ext <<EOF
15724 #line 15725 "configure"
15725 #include "confdefs.h"
15728 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15729 { (eval echo configure:15730: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15730 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15731 if test -z "$ac_err"; then
15733 eval "ac_cv_header_$ac_safe=yes"
15736 echo "configure: failed program was:" >&5
15737 cat conftest.$ac_ext >&5
15739 eval "ac_cv_header_$ac_safe=no"
15743 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15744 echo "$ac_t""yes" 1>&6
15745 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15746 cat >> confdefs.h <<EOF
15747 #define $ac_tr_hdr 1
15751 echo "$ac_t""no" 1>&6
15755 for ac_func in sched_yield pthread_yield
15757 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15758 echo "configure:15759: checking for $ac_func" >&5
15759 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15760 echo $ac_n "(cached) $ac_c" 1>&6
15762 cat > conftest.$ac_ext <<EOF
15763 #line 15764 "configure"
15764 #include "confdefs.h"
15765 /* System header to define __stub macros and hopefully few prototypes,
15766 which can conflict with char $ac_func(); below. */
15767 #include <assert.h>
15768 /* Override any gcc2 internal prototype to avoid an error. */
15769 /* We use char because int might match the return type of a gcc2
15770 builtin and then its argument prototype would still apply. */
15776 /* The GNU C library defines this for functions which it implements
15777 to always fail with ENOSYS. Some functions are actually named
15778 something starting with __ and the normal name is an alias. */
15779 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15787 if { (eval echo configure:15788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15789 eval "ac_cv_func_$ac_func=yes"
15791 echo "configure: failed program was:" >&5
15792 cat conftest.$ac_ext >&5
15794 eval "ac_cv_func_$ac_func=no"
15799 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15800 echo "$ac_t""yes" 1>&6
15801 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15802 cat >> confdefs.h <<EOF
15803 #define $ac_tr_func 1
15807 echo "$ac_t""no" 1>&6
15812 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
15813 echo "configure:15814: checking for LinuxThreads pthread.h" >&5
15814 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
15815 echo $ac_n "(cached) $ac_c" 1>&6
15817 cat > conftest.$ac_ext <<EOF
15818 #line 15819 "configure"
15819 #include "confdefs.h"
15820 #include <pthread.h>
15822 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15823 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
15825 ol_cv_header_linux_threads=yes
15828 ol_cv_header_linux_threads=no
15835 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
15836 if test $ol_cv_header_linux_threads = yes; then
15837 cat >> confdefs.h <<\EOF
15838 #define HAVE_LINUX_THREADS 1
15844 for ac_hdr in mach/cthreads.h
15846 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15847 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15848 echo "configure:15849: checking for $ac_hdr" >&5
15849 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15850 echo $ac_n "(cached) $ac_c" 1>&6
15852 cat > conftest.$ac_ext <<EOF
15853 #line 15854 "configure"
15854 #include "confdefs.h"
15857 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15858 { (eval echo configure:15859: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15859 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15860 if test -z "$ac_err"; then
15862 eval "ac_cv_header_$ac_safe=yes"
15865 echo "configure: failed program was:" >&5
15866 cat conftest.$ac_ext >&5
15868 eval "ac_cv_header_$ac_safe=no"
15872 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15873 echo "$ac_t""yes" 1>&6
15874 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15875 cat >> confdefs.h <<EOF
15876 #define $ac_tr_hdr 1
15880 echo "$ac_t""no" 1>&6
15884 for ac_hdr in lwp/lwp.h
15886 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15887 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15888 echo "configure:15889: checking for $ac_hdr" >&5
15889 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15890 echo $ac_n "(cached) $ac_c" 1>&6
15892 cat > conftest.$ac_ext <<EOF
15893 #line 15894 "configure"
15894 #include "confdefs.h"
15897 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15898 { (eval echo configure:15899: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15899 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15900 if test -z "$ac_err"; then
15902 eval "ac_cv_header_$ac_safe=yes"
15905 echo "configure: failed program was:" >&5
15906 cat conftest.$ac_ext >&5
15908 eval "ac_cv_header_$ac_safe=no"
15912 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15913 echo "$ac_t""yes" 1>&6
15914 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15915 cat >> confdefs.h <<EOF
15916 #define $ac_tr_hdr 1
15920 echo "$ac_t""no" 1>&6
15924 for ac_hdr in thread.h synch.h
15926 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15927 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15928 echo "configure:15929: checking for $ac_hdr" >&5
15929 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15930 echo $ac_n "(cached) $ac_c" 1>&6
15932 cat > conftest.$ac_ext <<EOF
15933 #line 15934 "configure"
15934 #include "confdefs.h"
15937 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15938 { (eval echo configure:15939: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15939 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15940 if test -z "$ac_err"; then
15942 eval "ac_cv_header_$ac_safe=yes"
15945 echo "configure: failed program was:" >&5
15946 cat conftest.$ac_ext >&5
15948 eval "ac_cv_header_$ac_safe=no"
15952 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15953 echo "$ac_t""yes" 1>&6
15954 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15955 cat >> confdefs.h <<EOF
15956 #define $ac_tr_hdr 1
15960 echo "$ac_t""no" 1>&6
15966 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
15967 cat >> confdefs.h <<\EOF
15968 #define REENTRANT 1
15971 cat >> confdefs.h <<\EOF
15972 #define _REENTRANT 1
15975 cat >> confdefs.h <<\EOF
15976 #define THREAD_SAFE 1
15979 cat >> confdefs.h <<\EOF
15980 #define _THREAD_SAFE 1
15983 cat >> confdefs.h <<\EOF
15984 #define THREADSAFE 1
15987 cat >> confdefs.h <<\EOF
15988 #define _THREADSAFE 1
15991 cat >> confdefs.h <<\EOF
15992 #define _SGI_MP_SOURCE 1
15996 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
15997 echo "configure:15998: checking for thread specific errno" >&5
15998 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
15999 echo $ac_n "(cached) $ac_c" 1>&6
16002 cat > conftest.$ac_ext <<EOF
16003 #line 16004 "configure"
16004 #include "confdefs.h"
16010 if { (eval echo configure:16011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16012 ol_cv_errno_thread_specific=yes
16014 echo "configure: failed program was:" >&5
16015 cat conftest.$ac_ext >&5
16017 ol_cv_errno_thread_specific=no
16023 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
16025 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
16026 echo "configure:16027: checking for thread specific h_errno" >&5
16027 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
16028 echo $ac_n "(cached) $ac_c" 1>&6
16031 cat > conftest.$ac_ext <<EOF
16032 #line 16033 "configure"
16033 #include "confdefs.h"
16039 if { (eval echo configure:16040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16041 ol_cv_h_errno_thread_specific=yes
16043 echo "configure: failed program was:" >&5
16044 cat conftest.$ac_ext >&5
16046 ol_cv_h_errno_thread_specific=no
16052 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
16054 if test $ol_cv_errno_thread_specific != yes \
16055 -o $ol_cv_h_errno_thread_specific != yes ; then
16056 LIBS="$LTHREAD_LIBS $LIBS"
16062 if test $ol_link_threads = no ; then
16063 if test $ol_with_threads = yes ; then
16064 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
16067 if test $ol_with_threads = auto ; then
16068 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
16072 cat >> confdefs.h <<\EOF
16073 #define NO_THREADS 1
16079 if test $ol_link_threads != no ; then
16080 cat >> confdefs.h <<\EOF
16081 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
16088 gethostbyname_r gethostbyaddr_r \
16091 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16092 echo "configure:16093: checking for $ac_func" >&5
16093 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
16094 echo $ac_n "(cached) $ac_c" 1>&6
16096 cat > conftest.$ac_ext <<EOF
16097 #line 16098 "configure"
16098 #include "confdefs.h"
16099 /* System header to define __stub macros and hopefully few prototypes,
16100 which can conflict with char $ac_func(); below. */
16101 #include <assert.h>
16102 /* Override any gcc2 internal prototype to avoid an error. */
16103 /* We use char because int might match the return type of a gcc2
16104 builtin and then its argument prototype would still apply. */
16110 /* The GNU C library defines this for functions which it implements
16111 to always fail with ENOSYS. Some functions are actually named
16112 something starting with __ and the normal name is an alias. */
16113 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16121 if { (eval echo configure:16122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16123 eval "ac_cv_func_$ac_func=yes"
16125 echo "configure: failed program was:" >&5
16126 cat conftest.$ac_ext >&5
16128 eval "ac_cv_func_$ac_func=no"
16133 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16134 echo "$ac_t""yes" 1>&6
16135 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16136 cat >> confdefs.h <<EOF
16137 #define $ac_tr_func 1
16141 echo "$ac_t""no" 1>&6
16146 if test "$ac_cv_func_ctime_r" = no ; then
16147 ol_cv_func_ctime_r_nargs=0
16149 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
16150 echo "configure:16151: checking number of arguments of ctime_r" >&5
16151 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
16152 echo $ac_n "(cached) $ac_c" 1>&6
16154 cat > conftest.$ac_ext <<EOF
16155 #line 16156 "configure"
16156 #include "confdefs.h"
16159 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
16162 if { (eval echo configure:16163: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16164 ol_cv_func_ctime_r_nargs3=yes
16166 echo "configure: failed program was:" >&5
16167 cat conftest.$ac_ext >&5
16169 ol_cv_func_ctime_r_nargs3=no
16173 cat > conftest.$ac_ext <<EOF
16174 #line 16175 "configure"
16175 #include "confdefs.h"
16178 time_t ti; char *buffer; ctime_r(&ti,buffer);
16181 if { (eval echo configure:16182: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16183 ol_cv_func_ctime_r_nargs2=yes
16185 echo "configure: failed program was:" >&5
16186 cat conftest.$ac_ext >&5
16188 ol_cv_func_ctime_r_nargs2=no
16192 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
16193 $ol_cv_func_ctime_r_nargs2 = no ; then
16195 ol_cv_func_ctime_r_nargs=3
16197 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
16198 $ol_cv_func_ctime_r_nargs2 = yes ; then
16200 ol_cv_func_ctime_r_nargs=2
16203 ol_cv_func_ctime_r_nargs=0
16208 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
16210 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
16211 cat >> confdefs.h <<EOF
16212 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
16219 if test "$ac_cv_func_gethostbyname_r" = yes ; then
16220 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
16221 echo "configure:16222: checking number of arguments of gethostbyname_r" >&5
16222 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
16223 echo $ac_n "(cached) $ac_c" 1>&6
16225 cat > conftest.$ac_ext <<EOF
16226 #line 16227 "configure"
16227 #include "confdefs.h"
16228 #include <sys/types.h>
16229 #include <sys/socket.h>
16230 #include <netinet/in.h>
16232 #define BUFSIZE (sizeof(struct hostent)+10)
16234 struct hostent hent; char buffer[BUFSIZE];
16235 int bufsize=BUFSIZE;int h_errno;
16236 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
16237 buffer, bufsize, &h_errno);
16240 if { (eval echo configure:16241: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16242 ol_cv_func_gethostbyname_r_nargs5=yes
16244 echo "configure: failed program was:" >&5
16245 cat conftest.$ac_ext >&5
16247 ol_cv_func_gethostbyname_r_nargs5=no
16251 cat > conftest.$ac_ext <<EOF
16252 #line 16253 "configure"
16253 #include "confdefs.h"
16254 #include <sys/types.h>
16255 #include <sys/socket.h>
16256 #include <netinet/in.h>
16258 #define BUFSIZE (sizeof(struct hostent)+10)
16260 struct hostent hent;struct hostent *rhent;
16261 char buffer[BUFSIZE];
16262 int bufsize=BUFSIZE;int h_errno;
16263 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
16267 if { (eval echo configure:16268: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16269 ol_cv_func_gethostbyname_r_nargs6=yes
16271 echo "configure: failed program was:" >&5
16272 cat conftest.$ac_ext >&5
16274 ol_cv_func_gethostbyname_r_nargs6=no
16278 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
16279 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
16281 ol_cv_func_gethostbyname_r_nargs=5
16283 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
16284 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
16286 ol_cv_func_gethostbyname_r_nargs=6
16289 ol_cv_func_gethostbyname_r_nargs=0
16294 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
16295 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
16296 cat >> confdefs.h <<EOF
16297 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
16303 ol_cv_func_gethostbyname_r_nargs=0
16306 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
16307 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
16308 echo "configure:16309: checking number of arguments of gethostbyaddr_r" >&5
16309 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
16310 echo $ac_n "(cached) $ac_c" 1>&6
16312 cat > conftest.$ac_ext <<EOF
16313 #line 16314 "configure"
16314 #include "confdefs.h"
16315 #include <sys/types.h>
16316 #include <sys/socket.h>
16317 #include <netinet/in.h>
16319 #define BUFSIZE (sizeof(struct hostent)+10)
16321 struct hostent hent; char buffer[BUFSIZE];
16322 struct in_addr add;
16323 size_t alen=sizeof(struct in_addr);
16324 int bufsize=BUFSIZE;int h_errno;
16325 (void)gethostbyaddr_r( (void *)&(add.s_addr),
16326 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
16329 if { (eval echo configure:16330: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16331 ol_cv_func_gethostbyaddr_r_nargs7=yes
16333 echo "configure: failed program was:" >&5
16334 cat conftest.$ac_ext >&5
16336 ol_cv_func_gethostbyaddr_r_nargs7=no
16340 cat > conftest.$ac_ext <<EOF
16341 #line 16342 "configure"
16342 #include "confdefs.h"
16343 #include <sys/types.h>
16344 #include <sys/socket.h>
16345 #include <netinet/in.h>
16347 #define BUFSIZE (sizeof(struct hostent)+10)
16349 struct hostent hent;
16350 struct hostent *rhent; char buffer[BUFSIZE];
16351 struct in_addr add;
16352 size_t alen=sizeof(struct in_addr);
16353 int bufsize=BUFSIZE;int h_errno;
16354 (void)gethostbyaddr_r( (void *)&(add.s_addr),
16355 alen, AF_INET, &hent, buffer, bufsize,
16359 if { (eval echo configure:16360: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16361 ol_cv_func_gethostbyaddr_r_nargs8=yes
16363 echo "configure: failed program was:" >&5
16364 cat conftest.$ac_ext >&5
16366 ol_cv_func_gethostbyaddr_r_nargs8=no
16370 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
16371 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
16373 ol_cv_func_gethostbyaddr_r_nargs=7
16375 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
16376 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
16378 ol_cv_func_gethostbyaddr_r_nargs=8
16381 ol_cv_func_gethostbyaddr_r_nargs=0
16386 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
16387 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
16388 cat >> confdefs.h <<EOF
16389 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
16395 ol_cv_func_gethostbyaddr_r_nargs=0
16400 if test $ol_with_ldbm_api = auto \
16401 -o $ol_with_ldbm_api = berkeley \
16402 -o $ol_with_ldbm_api = bcompat ; then
16404 if test $ol_with_ldbm_api = bcompat; then \
16405 for ac_hdr in db_185.h db.h
16407 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16408 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16409 echo "configure:16410: checking for $ac_hdr" >&5
16410 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16411 echo $ac_n "(cached) $ac_c" 1>&6
16413 cat > conftest.$ac_ext <<EOF
16414 #line 16415 "configure"
16415 #include "confdefs.h"
16418 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16419 { (eval echo configure:16420: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16420 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16421 if test -z "$ac_err"; then
16423 eval "ac_cv_header_$ac_safe=yes"
16426 echo "configure: failed program was:" >&5
16427 cat conftest.$ac_ext >&5
16429 eval "ac_cv_header_$ac_safe=no"
16433 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16434 echo "$ac_t""yes" 1>&6
16435 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16436 cat >> confdefs.h <<EOF
16437 #define $ac_tr_hdr 1
16441 echo "$ac_t""no" 1>&6
16445 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
16446 echo $ac_n "checking if Berkeley DB header compatibility""... $ac_c" 1>&6
16447 echo "configure:16448: checking if Berkeley DB header compatibility" >&5
16448 if eval "test \"\${ol_cv_header_db1+set}\" = set"; then
16449 echo $ac_n "(cached) $ac_c" 1>&6
16452 cat > conftest.$ac_ext <<EOF
16453 #line 16454 "configure"
16454 #include "confdefs.h"
16457 # include <db_185.h>
16462 /* this check could be improved */
16463 #ifndef DB_VERSION_MAJOR
16464 # define DB_VERSION_MAJOR 1
16467 #if DB_VERSION_MAJOR == 1
16472 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16473 egrep "__db_version_1" >/dev/null 2>&1; then
16475 ol_cv_header_db1=yes
16478 ol_cv_header_db1=no
16484 echo "$ac_t""$ol_cv_header_db1" 1>&6
16486 if test $ol_cv_header_db1 = yes ; then
16488 if test $ol_cv_lib_db = no ; then
16489 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
16490 echo "configure:16491: checking for Berkeley DB link (default)" >&5
16491 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
16492 echo $ac_n "(cached) $ac_c" 1>&6
16497 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16499 cat > conftest.$ac_ext <<EOF
16500 #line 16501 "configure"
16501 #include "confdefs.h"
16503 #ifdef HAVE_DB_185_H
16504 # include <db_185.h>
16509 #ifndef DB_VERSION_MAJOR
16510 # define DB_VERSION_MAJOR 1
16514 #define NULL ((void*)0)
16519 #if DB_VERSION_MAJOR > 1
16522 int major, minor, patch;
16524 version = db_version( &major, &minor, &patch );
16526 if( major != DB_VERSION_MAJOR ||
16527 minor < DB_VERSION_MINOR )
16529 printf("Berkeley DB version mismatch\n"
16530 "\texpected: %s\n\tgot: %s\n",
16531 DB_VERSION_STRING, version);
16537 #if DB_VERSION_MAJOR > 2
16538 db_env_create( NULL, 0 );
16539 #elif DB_VERSION_MAJOR > 1
16540 db_appexit( NULL );
16542 (void) dbopen( NULL, 0, 0, 0, NULL);
16547 if { (eval echo configure:16548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16551 echo "configure: failed program was:" >&5
16552 cat conftest.$ac_ext >&5
16562 echo "$ac_t""$ol_cv_db_none" 1>&6
16564 if test $ol_cv_db_none = yes ; then
16569 if test $ol_cv_lib_db = no ; then
16570 echo $ac_n "checking for Berkeley DB link (-ldb42)""... $ac_c" 1>&6
16571 echo "configure:16572: checking for Berkeley DB link (-ldb42)" >&5
16572 if eval "test \"\${ol_cv_db_db42+set}\" = set"; then
16573 echo $ac_n "(cached) $ac_c" 1>&6
16578 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16580 cat > conftest.$ac_ext <<EOF
16581 #line 16582 "configure"
16582 #include "confdefs.h"
16584 #ifdef HAVE_DB_185_H
16585 # include <db_185.h>
16590 #ifndef DB_VERSION_MAJOR
16591 # define DB_VERSION_MAJOR 1
16595 #define NULL ((void*)0)
16600 #if DB_VERSION_MAJOR > 1
16603 int major, minor, patch;
16605 version = db_version( &major, &minor, &patch );
16607 if( major != DB_VERSION_MAJOR ||
16608 minor < DB_VERSION_MINOR )
16610 printf("Berkeley DB version mismatch\n"
16611 "\texpected: %s\n\tgot: %s\n",
16612 DB_VERSION_STRING, version);
16618 #if DB_VERSION_MAJOR > 2
16619 db_env_create( NULL, 0 );
16620 #elif DB_VERSION_MAJOR > 1
16621 db_appexit( NULL );
16623 (void) dbopen( NULL, 0, 0, 0, NULL);
16628 if { (eval echo configure:16629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16632 echo "configure: failed program was:" >&5
16633 cat conftest.$ac_ext >&5
16643 echo "$ac_t""$ol_cv_db_db42" 1>&6
16645 if test $ol_cv_db_db42 = yes ; then
16646 ol_cv_lib_db=-ldb42
16650 if test $ol_cv_lib_db = no ; then
16651 echo $ac_n "checking for Berkeley DB link (-ldb-42)""... $ac_c" 1>&6
16652 echo "configure:16653: checking for Berkeley DB link (-ldb-42)" >&5
16653 if eval "test \"\${ol_cv_db_db_42+set}\" = set"; then
16654 echo $ac_n "(cached) $ac_c" 1>&6
16659 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16661 cat > conftest.$ac_ext <<EOF
16662 #line 16663 "configure"
16663 #include "confdefs.h"
16665 #ifdef HAVE_DB_185_H
16666 # include <db_185.h>
16671 #ifndef DB_VERSION_MAJOR
16672 # define DB_VERSION_MAJOR 1
16676 #define NULL ((void*)0)
16681 #if DB_VERSION_MAJOR > 1
16684 int major, minor, patch;
16686 version = db_version( &major, &minor, &patch );
16688 if( major != DB_VERSION_MAJOR ||
16689 minor < DB_VERSION_MINOR )
16691 printf("Berkeley DB version mismatch\n"
16692 "\texpected: %s\n\tgot: %s\n",
16693 DB_VERSION_STRING, version);
16699 #if DB_VERSION_MAJOR > 2
16700 db_env_create( NULL, 0 );
16701 #elif DB_VERSION_MAJOR > 1
16702 db_appexit( NULL );
16704 (void) dbopen( NULL, 0, 0, 0, NULL);
16709 if { (eval echo configure:16710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16713 echo "configure: failed program was:" >&5
16714 cat conftest.$ac_ext >&5
16724 echo "$ac_t""$ol_cv_db_db_42" 1>&6
16726 if test $ol_cv_db_db_42 = yes ; then
16727 ol_cv_lib_db=-ldb-42
16731 if test $ol_cv_lib_db = no ; then
16732 echo $ac_n "checking for Berkeley DB link (-ldb-4.2)""... $ac_c" 1>&6
16733 echo "configure:16734: checking for Berkeley DB link (-ldb-4.2)" >&5
16734 if eval "test \"\${ol_cv_db_db_4_dot_2+set}\" = set"; then
16735 echo $ac_n "(cached) $ac_c" 1>&6
16740 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16742 cat > conftest.$ac_ext <<EOF
16743 #line 16744 "configure"
16744 #include "confdefs.h"
16746 #ifdef HAVE_DB_185_H
16747 # include <db_185.h>
16752 #ifndef DB_VERSION_MAJOR
16753 # define DB_VERSION_MAJOR 1
16757 #define NULL ((void*)0)
16762 #if DB_VERSION_MAJOR > 1
16765 int major, minor, patch;
16767 version = db_version( &major, &minor, &patch );
16769 if( major != DB_VERSION_MAJOR ||
16770 minor < DB_VERSION_MINOR )
16772 printf("Berkeley DB version mismatch\n"
16773 "\texpected: %s\n\tgot: %s\n",
16774 DB_VERSION_STRING, version);
16780 #if DB_VERSION_MAJOR > 2
16781 db_env_create( NULL, 0 );
16782 #elif DB_VERSION_MAJOR > 1
16783 db_appexit( NULL );
16785 (void) dbopen( NULL, 0, 0, 0, NULL);
16790 if { (eval echo configure:16791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16792 ol_cv_db_db_4_dot_2=yes
16794 echo "configure: failed program was:" >&5
16795 cat conftest.$ac_ext >&5
16797 ol_cv_db_db_4_dot_2=no
16805 echo "$ac_t""$ol_cv_db_db_4_dot_2" 1>&6
16807 if test $ol_cv_db_db_4_dot_2 = yes ; then
16808 ol_cv_lib_db=-ldb-4.2
16812 if test $ol_cv_lib_db = no ; then
16813 echo $ac_n "checking for Berkeley DB link (-ldb-4-2)""... $ac_c" 1>&6
16814 echo "configure:16815: checking for Berkeley DB link (-ldb-4-2)" >&5
16815 if eval "test \"\${ol_cv_db_db_4_2+set}\" = set"; then
16816 echo $ac_n "(cached) $ac_c" 1>&6
16821 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16823 cat > conftest.$ac_ext <<EOF
16824 #line 16825 "configure"
16825 #include "confdefs.h"
16827 #ifdef HAVE_DB_185_H
16828 # include <db_185.h>
16833 #ifndef DB_VERSION_MAJOR
16834 # define DB_VERSION_MAJOR 1
16838 #define NULL ((void*)0)
16843 #if DB_VERSION_MAJOR > 1
16846 int major, minor, patch;
16848 version = db_version( &major, &minor, &patch );
16850 if( major != DB_VERSION_MAJOR ||
16851 minor < DB_VERSION_MINOR )
16853 printf("Berkeley DB version mismatch\n"
16854 "\texpected: %s\n\tgot: %s\n",
16855 DB_VERSION_STRING, version);
16861 #if DB_VERSION_MAJOR > 2
16862 db_env_create( NULL, 0 );
16863 #elif DB_VERSION_MAJOR > 1
16864 db_appexit( NULL );
16866 (void) dbopen( NULL, 0, 0, 0, NULL);
16871 if { (eval echo configure:16872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16873 ol_cv_db_db_4_2=yes
16875 echo "configure: failed program was:" >&5
16876 cat conftest.$ac_ext >&5
16886 echo "$ac_t""$ol_cv_db_db_4_2" 1>&6
16888 if test $ol_cv_db_db_4_2 = yes ; then
16889 ol_cv_lib_db=-ldb-4-2
16893 if test $ol_cv_lib_db = no ; then
16894 echo $ac_n "checking for Berkeley DB link (-ldb-4)""... $ac_c" 1>&6
16895 echo "configure:16896: checking for Berkeley DB link (-ldb-4)" >&5
16896 if eval "test \"\${ol_cv_db_db_4+set}\" = set"; then
16897 echo $ac_n "(cached) $ac_c" 1>&6
16902 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16904 cat > conftest.$ac_ext <<EOF
16905 #line 16906 "configure"
16906 #include "confdefs.h"
16908 #ifdef HAVE_DB_185_H
16909 # include <db_185.h>
16914 #ifndef DB_VERSION_MAJOR
16915 # define DB_VERSION_MAJOR 1
16919 #define NULL ((void*)0)
16924 #if DB_VERSION_MAJOR > 1
16927 int major, minor, patch;
16929 version = db_version( &major, &minor, &patch );
16931 if( major != DB_VERSION_MAJOR ||
16932 minor < DB_VERSION_MINOR )
16934 printf("Berkeley DB version mismatch\n"
16935 "\texpected: %s\n\tgot: %s\n",
16936 DB_VERSION_STRING, version);
16942 #if DB_VERSION_MAJOR > 2
16943 db_env_create( NULL, 0 );
16944 #elif DB_VERSION_MAJOR > 1
16945 db_appexit( NULL );
16947 (void) dbopen( NULL, 0, 0, 0, NULL);
16952 if { (eval echo configure:16953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16956 echo "configure: failed program was:" >&5
16957 cat conftest.$ac_ext >&5
16967 echo "$ac_t""$ol_cv_db_db_4" 1>&6
16969 if test $ol_cv_db_db_4 = yes ; then
16970 ol_cv_lib_db=-ldb-4
16974 if test $ol_cv_lib_db = no ; then
16975 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
16976 echo "configure:16977: checking for Berkeley DB link (-ldb4)" >&5
16977 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
16978 echo $ac_n "(cached) $ac_c" 1>&6
16983 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16985 cat > conftest.$ac_ext <<EOF
16986 #line 16987 "configure"
16987 #include "confdefs.h"
16989 #ifdef HAVE_DB_185_H
16990 # include <db_185.h>
16995 #ifndef DB_VERSION_MAJOR
16996 # define DB_VERSION_MAJOR 1
17000 #define NULL ((void*)0)
17005 #if DB_VERSION_MAJOR > 1
17008 int major, minor, patch;
17010 version = db_version( &major, &minor, &patch );
17012 if( major != DB_VERSION_MAJOR ||
17013 minor < DB_VERSION_MINOR )
17015 printf("Berkeley DB version mismatch\n"
17016 "\texpected: %s\n\tgot: %s\n",
17017 DB_VERSION_STRING, version);
17023 #if DB_VERSION_MAJOR > 2
17024 db_env_create( NULL, 0 );
17025 #elif DB_VERSION_MAJOR > 1
17026 db_appexit( NULL );
17028 (void) dbopen( NULL, 0, 0, 0, NULL);
17033 if { (eval echo configure:17034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17037 echo "configure: failed program was:" >&5
17038 cat conftest.$ac_ext >&5
17048 echo "$ac_t""$ol_cv_db_db4" 1>&6
17050 if test $ol_cv_db_db4 = yes ; then
17055 if test $ol_cv_lib_db = no ; then
17056 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
17057 echo "configure:17058: checking for Berkeley DB link (-ldb)" >&5
17058 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
17059 echo $ac_n "(cached) $ac_c" 1>&6
17064 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17066 cat > conftest.$ac_ext <<EOF
17067 #line 17068 "configure"
17068 #include "confdefs.h"
17070 #ifdef HAVE_DB_185_H
17071 # include <db_185.h>
17076 #ifndef DB_VERSION_MAJOR
17077 # define DB_VERSION_MAJOR 1
17081 #define NULL ((void*)0)
17086 #if DB_VERSION_MAJOR > 1
17089 int major, minor, patch;
17091 version = db_version( &major, &minor, &patch );
17093 if( major != DB_VERSION_MAJOR ||
17094 minor < DB_VERSION_MINOR )
17096 printf("Berkeley DB version mismatch\n"
17097 "\texpected: %s\n\tgot: %s\n",
17098 DB_VERSION_STRING, version);
17104 #if DB_VERSION_MAJOR > 2
17105 db_env_create( NULL, 0 );
17106 #elif DB_VERSION_MAJOR > 1
17107 db_appexit( NULL );
17109 (void) dbopen( NULL, 0, 0, 0, NULL);
17114 if { (eval echo configure:17115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17118 echo "configure: failed program was:" >&5
17119 cat conftest.$ac_ext >&5
17129 echo "$ac_t""$ol_cv_db_db" 1>&6
17131 if test $ol_cv_db_db = yes ; then
17136 if test $ol_cv_lib_db = no ; then
17137 echo $ac_n "checking for Berkeley DB link (-ldb41)""... $ac_c" 1>&6
17138 echo "configure:17139: checking for Berkeley DB link (-ldb41)" >&5
17139 if eval "test \"\${ol_cv_db_db41+set}\" = set"; then
17140 echo $ac_n "(cached) $ac_c" 1>&6
17145 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17147 cat > conftest.$ac_ext <<EOF
17148 #line 17149 "configure"
17149 #include "confdefs.h"
17151 #ifdef HAVE_DB_185_H
17152 # include <db_185.h>
17157 #ifndef DB_VERSION_MAJOR
17158 # define DB_VERSION_MAJOR 1
17162 #define NULL ((void*)0)
17167 #if DB_VERSION_MAJOR > 1
17170 int major, minor, patch;
17172 version = db_version( &major, &minor, &patch );
17174 if( major != DB_VERSION_MAJOR ||
17175 minor < DB_VERSION_MINOR )
17177 printf("Berkeley DB version mismatch\n"
17178 "\texpected: %s\n\tgot: %s\n",
17179 DB_VERSION_STRING, version);
17185 #if DB_VERSION_MAJOR > 2
17186 db_env_create( NULL, 0 );
17187 #elif DB_VERSION_MAJOR > 1
17188 db_appexit( NULL );
17190 (void) dbopen( NULL, 0, 0, 0, NULL);
17195 if { (eval echo configure:17196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17199 echo "configure: failed program was:" >&5
17200 cat conftest.$ac_ext >&5
17210 echo "$ac_t""$ol_cv_db_db41" 1>&6
17212 if test $ol_cv_db_db41 = yes ; then
17213 ol_cv_lib_db=-ldb41
17217 if test $ol_cv_lib_db = no ; then
17218 echo $ac_n "checking for Berkeley DB link (-ldb-41)""... $ac_c" 1>&6
17219 echo "configure:17220: checking for Berkeley DB link (-ldb-41)" >&5
17220 if eval "test \"\${ol_cv_db_db_41+set}\" = set"; then
17221 echo $ac_n "(cached) $ac_c" 1>&6
17226 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17228 cat > conftest.$ac_ext <<EOF
17229 #line 17230 "configure"
17230 #include "confdefs.h"
17232 #ifdef HAVE_DB_185_H
17233 # include <db_185.h>
17238 #ifndef DB_VERSION_MAJOR
17239 # define DB_VERSION_MAJOR 1
17243 #define NULL ((void*)0)
17248 #if DB_VERSION_MAJOR > 1
17251 int major, minor, patch;
17253 version = db_version( &major, &minor, &patch );
17255 if( major != DB_VERSION_MAJOR ||
17256 minor < DB_VERSION_MINOR )
17258 printf("Berkeley DB version mismatch\n"
17259 "\texpected: %s\n\tgot: %s\n",
17260 DB_VERSION_STRING, version);
17266 #if DB_VERSION_MAJOR > 2
17267 db_env_create( NULL, 0 );
17268 #elif DB_VERSION_MAJOR > 1
17269 db_appexit( NULL );
17271 (void) dbopen( NULL, 0, 0, 0, NULL);
17276 if { (eval echo configure:17277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17280 echo "configure: failed program was:" >&5
17281 cat conftest.$ac_ext >&5
17291 echo "$ac_t""$ol_cv_db_db_41" 1>&6
17293 if test $ol_cv_db_db_41 = yes ; then
17294 ol_cv_lib_db=-ldb-41
17298 if test $ol_cv_lib_db = no ; then
17299 echo $ac_n "checking for Berkeley DB link (-ldb-4.1)""... $ac_c" 1>&6
17300 echo "configure:17301: checking for Berkeley DB link (-ldb-4.1)" >&5
17301 if eval "test \"\${ol_cv_db_db_4_dot_1+set}\" = set"; then
17302 echo $ac_n "(cached) $ac_c" 1>&6
17307 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17309 cat > conftest.$ac_ext <<EOF
17310 #line 17311 "configure"
17311 #include "confdefs.h"
17313 #ifdef HAVE_DB_185_H
17314 # include <db_185.h>
17319 #ifndef DB_VERSION_MAJOR
17320 # define DB_VERSION_MAJOR 1
17324 #define NULL ((void*)0)
17329 #if DB_VERSION_MAJOR > 1
17332 int major, minor, patch;
17334 version = db_version( &major, &minor, &patch );
17336 if( major != DB_VERSION_MAJOR ||
17337 minor < DB_VERSION_MINOR )
17339 printf("Berkeley DB version mismatch\n"
17340 "\texpected: %s\n\tgot: %s\n",
17341 DB_VERSION_STRING, version);
17347 #if DB_VERSION_MAJOR > 2
17348 db_env_create( NULL, 0 );
17349 #elif DB_VERSION_MAJOR > 1
17350 db_appexit( NULL );
17352 (void) dbopen( NULL, 0, 0, 0, NULL);
17357 if { (eval echo configure:17358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17359 ol_cv_db_db_4_dot_1=yes
17361 echo "configure: failed program was:" >&5
17362 cat conftest.$ac_ext >&5
17364 ol_cv_db_db_4_dot_1=no
17372 echo "$ac_t""$ol_cv_db_db_4_dot_1" 1>&6
17374 if test $ol_cv_db_db_4_dot_1 = yes ; then
17375 ol_cv_lib_db=-ldb-4.1
17379 if test $ol_cv_lib_db = no ; then
17380 echo $ac_n "checking for Berkeley DB link (-ldb-4-1)""... $ac_c" 1>&6
17381 echo "configure:17382: checking for Berkeley DB link (-ldb-4-1)" >&5
17382 if eval "test \"\${ol_cv_db_db_4_1+set}\" = set"; then
17383 echo $ac_n "(cached) $ac_c" 1>&6
17388 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17390 cat > conftest.$ac_ext <<EOF
17391 #line 17392 "configure"
17392 #include "confdefs.h"
17394 #ifdef HAVE_DB_185_H
17395 # include <db_185.h>
17400 #ifndef DB_VERSION_MAJOR
17401 # define DB_VERSION_MAJOR 1
17405 #define NULL ((void*)0)
17410 #if DB_VERSION_MAJOR > 1
17413 int major, minor, patch;
17415 version = db_version( &major, &minor, &patch );
17417 if( major != DB_VERSION_MAJOR ||
17418 minor < DB_VERSION_MINOR )
17420 printf("Berkeley DB version mismatch\n"
17421 "\texpected: %s\n\tgot: %s\n",
17422 DB_VERSION_STRING, version);
17428 #if DB_VERSION_MAJOR > 2
17429 db_env_create( NULL, 0 );
17430 #elif DB_VERSION_MAJOR > 1
17431 db_appexit( NULL );
17433 (void) dbopen( NULL, 0, 0, 0, NULL);
17438 if { (eval echo configure:17439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17440 ol_cv_db_db_4_1=yes
17442 echo "configure: failed program was:" >&5
17443 cat conftest.$ac_ext >&5
17453 echo "$ac_t""$ol_cv_db_db_4_1" 1>&6
17455 if test $ol_cv_db_db_4_1 = yes ; then
17456 ol_cv_lib_db=-ldb-4-1
17460 if test $ol_cv_lib_db = no ; then
17461 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
17462 echo "configure:17463: checking for Berkeley DB link (-ldb3)" >&5
17463 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
17464 echo $ac_n "(cached) $ac_c" 1>&6
17469 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17471 cat > conftest.$ac_ext <<EOF
17472 #line 17473 "configure"
17473 #include "confdefs.h"
17475 #ifdef HAVE_DB_185_H
17476 # include <db_185.h>
17481 #ifndef DB_VERSION_MAJOR
17482 # define DB_VERSION_MAJOR 1
17486 #define NULL ((void*)0)
17491 #if DB_VERSION_MAJOR > 1
17494 int major, minor, patch;
17496 version = db_version( &major, &minor, &patch );
17498 if( major != DB_VERSION_MAJOR ||
17499 minor < DB_VERSION_MINOR )
17501 printf("Berkeley DB version mismatch\n"
17502 "\texpected: %s\n\tgot: %s\n",
17503 DB_VERSION_STRING, version);
17509 #if DB_VERSION_MAJOR > 2
17510 db_env_create( NULL, 0 );
17511 #elif DB_VERSION_MAJOR > 1
17512 db_appexit( NULL );
17514 (void) dbopen( NULL, 0, 0, 0, NULL);
17519 if { (eval echo configure:17520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17523 echo "configure: failed program was:" >&5
17524 cat conftest.$ac_ext >&5
17534 echo "$ac_t""$ol_cv_db_db3" 1>&6
17536 if test $ol_cv_db_db3 = yes ; then
17541 if test $ol_cv_lib_db = no ; then
17542 echo $ac_n "checking for Berkeley DB link (-ldb-3)""... $ac_c" 1>&6
17543 echo "configure:17544: checking for Berkeley DB link (-ldb-3)" >&5
17544 if eval "test \"\${ol_cv_db_db_3+set}\" = set"; then
17545 echo $ac_n "(cached) $ac_c" 1>&6
17550 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17552 cat > conftest.$ac_ext <<EOF
17553 #line 17554 "configure"
17554 #include "confdefs.h"
17556 #ifdef HAVE_DB_185_H
17557 # include <db_185.h>
17562 #ifndef DB_VERSION_MAJOR
17563 # define DB_VERSION_MAJOR 1
17567 #define NULL ((void*)0)
17572 #if DB_VERSION_MAJOR > 1
17575 int major, minor, patch;
17577 version = db_version( &major, &minor, &patch );
17579 if( major != DB_VERSION_MAJOR ||
17580 minor < DB_VERSION_MINOR )
17582 printf("Berkeley DB version mismatch\n"
17583 "\texpected: %s\n\tgot: %s\n",
17584 DB_VERSION_STRING, version);
17590 #if DB_VERSION_MAJOR > 2
17591 db_env_create( NULL, 0 );
17592 #elif DB_VERSION_MAJOR > 1
17593 db_appexit( NULL );
17595 (void) dbopen( NULL, 0, 0, 0, NULL);
17600 if { (eval echo configure:17601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17604 echo "configure: failed program was:" >&5
17605 cat conftest.$ac_ext >&5
17615 echo "$ac_t""$ol_cv_db_db_3" 1>&6
17617 if test $ol_cv_db_db_3 = yes ; then
17618 ol_cv_lib_db=-ldb-3
17622 if test $ol_cv_lib_db = no ; then
17623 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
17624 echo "configure:17625: checking for Berkeley DB link (-ldb2)" >&5
17625 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
17626 echo $ac_n "(cached) $ac_c" 1>&6
17631 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17633 cat > conftest.$ac_ext <<EOF
17634 #line 17635 "configure"
17635 #include "confdefs.h"
17637 #ifdef HAVE_DB_185_H
17638 # include <db_185.h>
17643 #ifndef DB_VERSION_MAJOR
17644 # define DB_VERSION_MAJOR 1
17648 #define NULL ((void*)0)
17653 #if DB_VERSION_MAJOR > 1
17656 int major, minor, patch;
17658 version = db_version( &major, &minor, &patch );
17660 if( major != DB_VERSION_MAJOR ||
17661 minor < DB_VERSION_MINOR )
17663 printf("Berkeley DB version mismatch\n"
17664 "\texpected: %s\n\tgot: %s\n",
17665 DB_VERSION_STRING, version);
17671 #if DB_VERSION_MAJOR > 2
17672 db_env_create( NULL, 0 );
17673 #elif DB_VERSION_MAJOR > 1
17674 db_appexit( NULL );
17676 (void) dbopen( NULL, 0, 0, 0, NULL);
17681 if { (eval echo configure:17682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17685 echo "configure: failed program was:" >&5
17686 cat conftest.$ac_ext >&5
17696 echo "$ac_t""$ol_cv_db_db2" 1>&6
17698 if test $ol_cv_db_db2 = yes ; then
17703 if test $ol_cv_lib_db = no ; then
17704 echo $ac_n "checking for Berkeley DB link (-ldb-2)""... $ac_c" 1>&6
17705 echo "configure:17706: checking for Berkeley DB link (-ldb-2)" >&5
17706 if eval "test \"\${ol_cv_db_db_2+set}\" = set"; then
17707 echo $ac_n "(cached) $ac_c" 1>&6
17712 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17714 cat > conftest.$ac_ext <<EOF
17715 #line 17716 "configure"
17716 #include "confdefs.h"
17718 #ifdef HAVE_DB_185_H
17719 # include <db_185.h>
17724 #ifndef DB_VERSION_MAJOR
17725 # define DB_VERSION_MAJOR 1
17729 #define NULL ((void*)0)
17734 #if DB_VERSION_MAJOR > 1
17737 int major, minor, patch;
17739 version = db_version( &major, &minor, &patch );
17741 if( major != DB_VERSION_MAJOR ||
17742 minor < DB_VERSION_MINOR )
17744 printf("Berkeley DB version mismatch\n"
17745 "\texpected: %s\n\tgot: %s\n",
17746 DB_VERSION_STRING, version);
17752 #if DB_VERSION_MAJOR > 2
17753 db_env_create( NULL, 0 );
17754 #elif DB_VERSION_MAJOR > 1
17755 db_appexit( NULL );
17757 (void) dbopen( NULL, 0, 0, 0, NULL);
17762 if { (eval echo configure:17763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17766 echo "configure: failed program was:" >&5
17767 cat conftest.$ac_ext >&5
17777 echo "$ac_t""$ol_cv_db_db_2" 1>&6
17779 if test $ol_cv_db_db_2 = yes ; then
17780 ol_cv_lib_db=-ldb-2
17784 if test $ol_cv_lib_db = no ; then
17785 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
17786 echo "configure:17787: checking for Berkeley DB link (-ldb1)" >&5
17787 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
17788 echo $ac_n "(cached) $ac_c" 1>&6
17793 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17795 cat > conftest.$ac_ext <<EOF
17796 #line 17797 "configure"
17797 #include "confdefs.h"
17799 #ifdef HAVE_DB_185_H
17800 # include <db_185.h>
17805 #ifndef DB_VERSION_MAJOR
17806 # define DB_VERSION_MAJOR 1
17810 #define NULL ((void*)0)
17815 #if DB_VERSION_MAJOR > 1
17818 int major, minor, patch;
17820 version = db_version( &major, &minor, &patch );
17822 if( major != DB_VERSION_MAJOR ||
17823 minor < DB_VERSION_MINOR )
17825 printf("Berkeley DB version mismatch\n"
17826 "\texpected: %s\n\tgot: %s\n",
17827 DB_VERSION_STRING, version);
17833 #if DB_VERSION_MAJOR > 2
17834 db_env_create( NULL, 0 );
17835 #elif DB_VERSION_MAJOR > 1
17836 db_appexit( NULL );
17838 (void) dbopen( NULL, 0, 0, 0, NULL);
17843 if { (eval echo configure:17844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17847 echo "configure: failed program was:" >&5
17848 cat conftest.$ac_ext >&5
17858 echo "$ac_t""$ol_cv_db_db1" 1>&6
17860 if test $ol_cv_db_db1 = yes ; then
17865 if test $ol_cv_lib_db = no ; then
17866 echo $ac_n "checking for Berkeley DB link (-ldb-1)""... $ac_c" 1>&6
17867 echo "configure:17868: checking for Berkeley DB link (-ldb-1)" >&5
17868 if eval "test \"\${ol_cv_db_db_1+set}\" = set"; then
17869 echo $ac_n "(cached) $ac_c" 1>&6
17874 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17876 cat > conftest.$ac_ext <<EOF
17877 #line 17878 "configure"
17878 #include "confdefs.h"
17880 #ifdef HAVE_DB_185_H
17881 # include <db_185.h>
17886 #ifndef DB_VERSION_MAJOR
17887 # define DB_VERSION_MAJOR 1
17891 #define NULL ((void*)0)
17896 #if DB_VERSION_MAJOR > 1
17899 int major, minor, patch;
17901 version = db_version( &major, &minor, &patch );
17903 if( major != DB_VERSION_MAJOR ||
17904 minor < DB_VERSION_MINOR )
17906 printf("Berkeley DB version mismatch\n"
17907 "\texpected: %s\n\tgot: %s\n",
17908 DB_VERSION_STRING, version);
17914 #if DB_VERSION_MAJOR > 2
17915 db_env_create( NULL, 0 );
17916 #elif DB_VERSION_MAJOR > 1
17917 db_appexit( NULL );
17919 (void) dbopen( NULL, 0, 0, 0, NULL);
17924 if { (eval echo configure:17925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17928 echo "configure: failed program was:" >&5
17929 cat conftest.$ac_ext >&5
17939 echo "$ac_t""$ol_cv_db_db_1" 1>&6
17941 if test $ol_cv_db_db_1 = yes ; then
17942 ol_cv_lib_db=-ldb-1
17947 if test "$ol_cv_lib_db" != no ; then
17948 ol_cv_berkeley_db=yes
17954 ol_cv_berkeley_db=no
17957 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17958 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17959 echo "configure:17960: checking for $ac_hdr" >&5
17960 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
17961 echo $ac_n "(cached) $ac_c" 1>&6
17963 cat > conftest.$ac_ext <<EOF
17964 #line 17965 "configure"
17965 #include "confdefs.h"
17968 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17969 { (eval echo configure:17970: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17970 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17971 if test -z "$ac_err"; then
17973 eval "ac_cv_header_$ac_safe=yes"
17976 echo "configure: failed program was:" >&5
17977 cat conftest.$ac_ext >&5
17979 eval "ac_cv_header_$ac_safe=no"
17983 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17984 echo "$ac_t""yes" 1>&6
17985 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17986 cat >> confdefs.h <<EOF
17987 #define $ac_tr_hdr 1
17991 echo "$ac_t""no" 1>&6
17995 if test $ac_cv_header_db_h = yes; then
17997 if test $ol_cv_lib_db = no ; then
17998 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
17999 echo "configure:18000: checking for Berkeley DB link (default)" >&5
18000 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
18001 echo $ac_n "(cached) $ac_c" 1>&6
18006 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18008 cat > conftest.$ac_ext <<EOF
18009 #line 18010 "configure"
18010 #include "confdefs.h"
18012 #ifdef HAVE_DB_185_H
18013 # include <db_185.h>
18018 #ifndef DB_VERSION_MAJOR
18019 # define DB_VERSION_MAJOR 1
18023 #define NULL ((void*)0)
18028 #if DB_VERSION_MAJOR > 1
18031 int major, minor, patch;
18033 version = db_version( &major, &minor, &patch );
18035 if( major != DB_VERSION_MAJOR ||
18036 minor < DB_VERSION_MINOR )
18038 printf("Berkeley DB version mismatch\n"
18039 "\texpected: %s\n\tgot: %s\n",
18040 DB_VERSION_STRING, version);
18046 #if DB_VERSION_MAJOR > 2
18047 db_env_create( NULL, 0 );
18048 #elif DB_VERSION_MAJOR > 1
18049 db_appexit( NULL );
18051 (void) dbopen( NULL, 0, 0, 0, NULL);
18056 if { (eval echo configure:18057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18060 echo "configure: failed program was:" >&5
18061 cat conftest.$ac_ext >&5
18071 echo "$ac_t""$ol_cv_db_none" 1>&6
18073 if test $ol_cv_db_none = yes ; then
18078 if test $ol_cv_lib_db = no ; then
18079 echo $ac_n "checking for Berkeley DB link (-ldb42)""... $ac_c" 1>&6
18080 echo "configure:18081: checking for Berkeley DB link (-ldb42)" >&5
18081 if eval "test \"\${ol_cv_db_db42+set}\" = set"; then
18082 echo $ac_n "(cached) $ac_c" 1>&6
18087 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18089 cat > conftest.$ac_ext <<EOF
18090 #line 18091 "configure"
18091 #include "confdefs.h"
18093 #ifdef HAVE_DB_185_H
18094 # include <db_185.h>
18099 #ifndef DB_VERSION_MAJOR
18100 # define DB_VERSION_MAJOR 1
18104 #define NULL ((void*)0)
18109 #if DB_VERSION_MAJOR > 1
18112 int major, minor, patch;
18114 version = db_version( &major, &minor, &patch );
18116 if( major != DB_VERSION_MAJOR ||
18117 minor < DB_VERSION_MINOR )
18119 printf("Berkeley DB version mismatch\n"
18120 "\texpected: %s\n\tgot: %s\n",
18121 DB_VERSION_STRING, version);
18127 #if DB_VERSION_MAJOR > 2
18128 db_env_create( NULL, 0 );
18129 #elif DB_VERSION_MAJOR > 1
18130 db_appexit( NULL );
18132 (void) dbopen( NULL, 0, 0, 0, NULL);
18137 if { (eval echo configure:18138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18141 echo "configure: failed program was:" >&5
18142 cat conftest.$ac_ext >&5
18152 echo "$ac_t""$ol_cv_db_db42" 1>&6
18154 if test $ol_cv_db_db42 = yes ; then
18155 ol_cv_lib_db=-ldb42
18159 if test $ol_cv_lib_db = no ; then
18160 echo $ac_n "checking for Berkeley DB link (-ldb-42)""... $ac_c" 1>&6
18161 echo "configure:18162: checking for Berkeley DB link (-ldb-42)" >&5
18162 if eval "test \"\${ol_cv_db_db_42+set}\" = set"; then
18163 echo $ac_n "(cached) $ac_c" 1>&6
18168 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18170 cat > conftest.$ac_ext <<EOF
18171 #line 18172 "configure"
18172 #include "confdefs.h"
18174 #ifdef HAVE_DB_185_H
18175 # include <db_185.h>
18180 #ifndef DB_VERSION_MAJOR
18181 # define DB_VERSION_MAJOR 1
18185 #define NULL ((void*)0)
18190 #if DB_VERSION_MAJOR > 1
18193 int major, minor, patch;
18195 version = db_version( &major, &minor, &patch );
18197 if( major != DB_VERSION_MAJOR ||
18198 minor < DB_VERSION_MINOR )
18200 printf("Berkeley DB version mismatch\n"
18201 "\texpected: %s\n\tgot: %s\n",
18202 DB_VERSION_STRING, version);
18208 #if DB_VERSION_MAJOR > 2
18209 db_env_create( NULL, 0 );
18210 #elif DB_VERSION_MAJOR > 1
18211 db_appexit( NULL );
18213 (void) dbopen( NULL, 0, 0, 0, NULL);
18218 if { (eval echo configure:18219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18222 echo "configure: failed program was:" >&5
18223 cat conftest.$ac_ext >&5
18233 echo "$ac_t""$ol_cv_db_db_42" 1>&6
18235 if test $ol_cv_db_db_42 = yes ; then
18236 ol_cv_lib_db=-ldb-42
18240 if test $ol_cv_lib_db = no ; then
18241 echo $ac_n "checking for Berkeley DB link (-ldb-4.2)""... $ac_c" 1>&6
18242 echo "configure:18243: checking for Berkeley DB link (-ldb-4.2)" >&5
18243 if eval "test \"\${ol_cv_db_db_4_dot_2+set}\" = set"; then
18244 echo $ac_n "(cached) $ac_c" 1>&6
18249 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18251 cat > conftest.$ac_ext <<EOF
18252 #line 18253 "configure"
18253 #include "confdefs.h"
18255 #ifdef HAVE_DB_185_H
18256 # include <db_185.h>
18261 #ifndef DB_VERSION_MAJOR
18262 # define DB_VERSION_MAJOR 1
18266 #define NULL ((void*)0)
18271 #if DB_VERSION_MAJOR > 1
18274 int major, minor, patch;
18276 version = db_version( &major, &minor, &patch );
18278 if( major != DB_VERSION_MAJOR ||
18279 minor < DB_VERSION_MINOR )
18281 printf("Berkeley DB version mismatch\n"
18282 "\texpected: %s\n\tgot: %s\n",
18283 DB_VERSION_STRING, version);
18289 #if DB_VERSION_MAJOR > 2
18290 db_env_create( NULL, 0 );
18291 #elif DB_VERSION_MAJOR > 1
18292 db_appexit( NULL );
18294 (void) dbopen( NULL, 0, 0, 0, NULL);
18299 if { (eval echo configure:18300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18301 ol_cv_db_db_4_dot_2=yes
18303 echo "configure: failed program was:" >&5
18304 cat conftest.$ac_ext >&5
18306 ol_cv_db_db_4_dot_2=no
18314 echo "$ac_t""$ol_cv_db_db_4_dot_2" 1>&6
18316 if test $ol_cv_db_db_4_dot_2 = yes ; then
18317 ol_cv_lib_db=-ldb-4.2
18321 if test $ol_cv_lib_db = no ; then
18322 echo $ac_n "checking for Berkeley DB link (-ldb-4-2)""... $ac_c" 1>&6
18323 echo "configure:18324: checking for Berkeley DB link (-ldb-4-2)" >&5
18324 if eval "test \"\${ol_cv_db_db_4_2+set}\" = set"; then
18325 echo $ac_n "(cached) $ac_c" 1>&6
18330 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18332 cat > conftest.$ac_ext <<EOF
18333 #line 18334 "configure"
18334 #include "confdefs.h"
18336 #ifdef HAVE_DB_185_H
18337 # include <db_185.h>
18342 #ifndef DB_VERSION_MAJOR
18343 # define DB_VERSION_MAJOR 1
18347 #define NULL ((void*)0)
18352 #if DB_VERSION_MAJOR > 1
18355 int major, minor, patch;
18357 version = db_version( &major, &minor, &patch );
18359 if( major != DB_VERSION_MAJOR ||
18360 minor < DB_VERSION_MINOR )
18362 printf("Berkeley DB version mismatch\n"
18363 "\texpected: %s\n\tgot: %s\n",
18364 DB_VERSION_STRING, version);
18370 #if DB_VERSION_MAJOR > 2
18371 db_env_create( NULL, 0 );
18372 #elif DB_VERSION_MAJOR > 1
18373 db_appexit( NULL );
18375 (void) dbopen( NULL, 0, 0, 0, NULL);
18380 if { (eval echo configure:18381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18382 ol_cv_db_db_4_2=yes
18384 echo "configure: failed program was:" >&5
18385 cat conftest.$ac_ext >&5
18395 echo "$ac_t""$ol_cv_db_db_4_2" 1>&6
18397 if test $ol_cv_db_db_4_2 = yes ; then
18398 ol_cv_lib_db=-ldb-4-2
18402 if test $ol_cv_lib_db = no ; then
18403 echo $ac_n "checking for Berkeley DB link (-ldb-4)""... $ac_c" 1>&6
18404 echo "configure:18405: checking for Berkeley DB link (-ldb-4)" >&5
18405 if eval "test \"\${ol_cv_db_db_4+set}\" = set"; then
18406 echo $ac_n "(cached) $ac_c" 1>&6
18411 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18413 cat > conftest.$ac_ext <<EOF
18414 #line 18415 "configure"
18415 #include "confdefs.h"
18417 #ifdef HAVE_DB_185_H
18418 # include <db_185.h>
18423 #ifndef DB_VERSION_MAJOR
18424 # define DB_VERSION_MAJOR 1
18428 #define NULL ((void*)0)
18433 #if DB_VERSION_MAJOR > 1
18436 int major, minor, patch;
18438 version = db_version( &major, &minor, &patch );
18440 if( major != DB_VERSION_MAJOR ||
18441 minor < DB_VERSION_MINOR )
18443 printf("Berkeley DB version mismatch\n"
18444 "\texpected: %s\n\tgot: %s\n",
18445 DB_VERSION_STRING, version);
18451 #if DB_VERSION_MAJOR > 2
18452 db_env_create( NULL, 0 );
18453 #elif DB_VERSION_MAJOR > 1
18454 db_appexit( NULL );
18456 (void) dbopen( NULL, 0, 0, 0, NULL);
18461 if { (eval echo configure:18462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18465 echo "configure: failed program was:" >&5
18466 cat conftest.$ac_ext >&5
18476 echo "$ac_t""$ol_cv_db_db_4" 1>&6
18478 if test $ol_cv_db_db_4 = yes ; then
18479 ol_cv_lib_db=-ldb-4
18483 if test $ol_cv_lib_db = no ; then
18484 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
18485 echo "configure:18486: checking for Berkeley DB link (-ldb4)" >&5
18486 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
18487 echo $ac_n "(cached) $ac_c" 1>&6
18492 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18494 cat > conftest.$ac_ext <<EOF
18495 #line 18496 "configure"
18496 #include "confdefs.h"
18498 #ifdef HAVE_DB_185_H
18499 # include <db_185.h>
18504 #ifndef DB_VERSION_MAJOR
18505 # define DB_VERSION_MAJOR 1
18509 #define NULL ((void*)0)
18514 #if DB_VERSION_MAJOR > 1
18517 int major, minor, patch;
18519 version = db_version( &major, &minor, &patch );
18521 if( major != DB_VERSION_MAJOR ||
18522 minor < DB_VERSION_MINOR )
18524 printf("Berkeley DB version mismatch\n"
18525 "\texpected: %s\n\tgot: %s\n",
18526 DB_VERSION_STRING, version);
18532 #if DB_VERSION_MAJOR > 2
18533 db_env_create( NULL, 0 );
18534 #elif DB_VERSION_MAJOR > 1
18535 db_appexit( NULL );
18537 (void) dbopen( NULL, 0, 0, 0, NULL);
18542 if { (eval echo configure:18543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18546 echo "configure: failed program was:" >&5
18547 cat conftest.$ac_ext >&5
18557 echo "$ac_t""$ol_cv_db_db4" 1>&6
18559 if test $ol_cv_db_db4 = yes ; then
18564 if test $ol_cv_lib_db = no ; then
18565 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
18566 echo "configure:18567: checking for Berkeley DB link (-ldb)" >&5
18567 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
18568 echo $ac_n "(cached) $ac_c" 1>&6
18573 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18575 cat > conftest.$ac_ext <<EOF
18576 #line 18577 "configure"
18577 #include "confdefs.h"
18579 #ifdef HAVE_DB_185_H
18580 # include <db_185.h>
18585 #ifndef DB_VERSION_MAJOR
18586 # define DB_VERSION_MAJOR 1
18590 #define NULL ((void*)0)
18595 #if DB_VERSION_MAJOR > 1
18598 int major, minor, patch;
18600 version = db_version( &major, &minor, &patch );
18602 if( major != DB_VERSION_MAJOR ||
18603 minor < DB_VERSION_MINOR )
18605 printf("Berkeley DB version mismatch\n"
18606 "\texpected: %s\n\tgot: %s\n",
18607 DB_VERSION_STRING, version);
18613 #if DB_VERSION_MAJOR > 2
18614 db_env_create( NULL, 0 );
18615 #elif DB_VERSION_MAJOR > 1
18616 db_appexit( NULL );
18618 (void) dbopen( NULL, 0, 0, 0, NULL);
18623 if { (eval echo configure:18624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18627 echo "configure: failed program was:" >&5
18628 cat conftest.$ac_ext >&5
18638 echo "$ac_t""$ol_cv_db_db" 1>&6
18640 if test $ol_cv_db_db = yes ; then
18645 if test $ol_cv_lib_db = no ; then
18646 echo $ac_n "checking for Berkeley DB link (-ldb41)""... $ac_c" 1>&6
18647 echo "configure:18648: checking for Berkeley DB link (-ldb41)" >&5
18648 if eval "test \"\${ol_cv_db_db41+set}\" = set"; then
18649 echo $ac_n "(cached) $ac_c" 1>&6
18654 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18656 cat > conftest.$ac_ext <<EOF
18657 #line 18658 "configure"
18658 #include "confdefs.h"
18660 #ifdef HAVE_DB_185_H
18661 # include <db_185.h>
18666 #ifndef DB_VERSION_MAJOR
18667 # define DB_VERSION_MAJOR 1
18671 #define NULL ((void*)0)
18676 #if DB_VERSION_MAJOR > 1
18679 int major, minor, patch;
18681 version = db_version( &major, &minor, &patch );
18683 if( major != DB_VERSION_MAJOR ||
18684 minor < DB_VERSION_MINOR )
18686 printf("Berkeley DB version mismatch\n"
18687 "\texpected: %s\n\tgot: %s\n",
18688 DB_VERSION_STRING, version);
18694 #if DB_VERSION_MAJOR > 2
18695 db_env_create( NULL, 0 );
18696 #elif DB_VERSION_MAJOR > 1
18697 db_appexit( NULL );
18699 (void) dbopen( NULL, 0, 0, 0, NULL);
18704 if { (eval echo configure:18705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18708 echo "configure: failed program was:" >&5
18709 cat conftest.$ac_ext >&5
18719 echo "$ac_t""$ol_cv_db_db41" 1>&6
18721 if test $ol_cv_db_db41 = yes ; then
18722 ol_cv_lib_db=-ldb41
18726 if test $ol_cv_lib_db = no ; then
18727 echo $ac_n "checking for Berkeley DB link (-ldb-41)""... $ac_c" 1>&6
18728 echo "configure:18729: checking for Berkeley DB link (-ldb-41)" >&5
18729 if eval "test \"\${ol_cv_db_db_41+set}\" = set"; then
18730 echo $ac_n "(cached) $ac_c" 1>&6
18735 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18737 cat > conftest.$ac_ext <<EOF
18738 #line 18739 "configure"
18739 #include "confdefs.h"
18741 #ifdef HAVE_DB_185_H
18742 # include <db_185.h>
18747 #ifndef DB_VERSION_MAJOR
18748 # define DB_VERSION_MAJOR 1
18752 #define NULL ((void*)0)
18757 #if DB_VERSION_MAJOR > 1
18760 int major, minor, patch;
18762 version = db_version( &major, &minor, &patch );
18764 if( major != DB_VERSION_MAJOR ||
18765 minor < DB_VERSION_MINOR )
18767 printf("Berkeley DB version mismatch\n"
18768 "\texpected: %s\n\tgot: %s\n",
18769 DB_VERSION_STRING, version);
18775 #if DB_VERSION_MAJOR > 2
18776 db_env_create( NULL, 0 );
18777 #elif DB_VERSION_MAJOR > 1
18778 db_appexit( NULL );
18780 (void) dbopen( NULL, 0, 0, 0, NULL);
18785 if { (eval echo configure:18786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18789 echo "configure: failed program was:" >&5
18790 cat conftest.$ac_ext >&5
18800 echo "$ac_t""$ol_cv_db_db_41" 1>&6
18802 if test $ol_cv_db_db_41 = yes ; then
18803 ol_cv_lib_db=-ldb-41
18807 if test $ol_cv_lib_db = no ; then
18808 echo $ac_n "checking for Berkeley DB link (-ldb-4.1)""... $ac_c" 1>&6
18809 echo "configure:18810: checking for Berkeley DB link (-ldb-4.1)" >&5
18810 if eval "test \"\${ol_cv_db_db_4_dot_1+set}\" = set"; then
18811 echo $ac_n "(cached) $ac_c" 1>&6
18816 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18818 cat > conftest.$ac_ext <<EOF
18819 #line 18820 "configure"
18820 #include "confdefs.h"
18822 #ifdef HAVE_DB_185_H
18823 # include <db_185.h>
18828 #ifndef DB_VERSION_MAJOR
18829 # define DB_VERSION_MAJOR 1
18833 #define NULL ((void*)0)
18838 #if DB_VERSION_MAJOR > 1
18841 int major, minor, patch;
18843 version = db_version( &major, &minor, &patch );
18845 if( major != DB_VERSION_MAJOR ||
18846 minor < DB_VERSION_MINOR )
18848 printf("Berkeley DB version mismatch\n"
18849 "\texpected: %s\n\tgot: %s\n",
18850 DB_VERSION_STRING, version);
18856 #if DB_VERSION_MAJOR > 2
18857 db_env_create( NULL, 0 );
18858 #elif DB_VERSION_MAJOR > 1
18859 db_appexit( NULL );
18861 (void) dbopen( NULL, 0, 0, 0, NULL);
18866 if { (eval echo configure:18867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18868 ol_cv_db_db_4_dot_1=yes
18870 echo "configure: failed program was:" >&5
18871 cat conftest.$ac_ext >&5
18873 ol_cv_db_db_4_dot_1=no
18881 echo "$ac_t""$ol_cv_db_db_4_dot_1" 1>&6
18883 if test $ol_cv_db_db_4_dot_1 = yes ; then
18884 ol_cv_lib_db=-ldb-4.1
18888 if test $ol_cv_lib_db = no ; then
18889 echo $ac_n "checking for Berkeley DB link (-ldb-4-1)""... $ac_c" 1>&6
18890 echo "configure:18891: checking for Berkeley DB link (-ldb-4-1)" >&5
18891 if eval "test \"\${ol_cv_db_db_4_1+set}\" = set"; then
18892 echo $ac_n "(cached) $ac_c" 1>&6
18897 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18899 cat > conftest.$ac_ext <<EOF
18900 #line 18901 "configure"
18901 #include "confdefs.h"
18903 #ifdef HAVE_DB_185_H
18904 # include <db_185.h>
18909 #ifndef DB_VERSION_MAJOR
18910 # define DB_VERSION_MAJOR 1
18914 #define NULL ((void*)0)
18919 #if DB_VERSION_MAJOR > 1
18922 int major, minor, patch;
18924 version = db_version( &major, &minor, &patch );
18926 if( major != DB_VERSION_MAJOR ||
18927 minor < DB_VERSION_MINOR )
18929 printf("Berkeley DB version mismatch\n"
18930 "\texpected: %s\n\tgot: %s\n",
18931 DB_VERSION_STRING, version);
18937 #if DB_VERSION_MAJOR > 2
18938 db_env_create( NULL, 0 );
18939 #elif DB_VERSION_MAJOR > 1
18940 db_appexit( NULL );
18942 (void) dbopen( NULL, 0, 0, 0, NULL);
18947 if { (eval echo configure:18948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18949 ol_cv_db_db_4_1=yes
18951 echo "configure: failed program was:" >&5
18952 cat conftest.$ac_ext >&5
18962 echo "$ac_t""$ol_cv_db_db_4_1" 1>&6
18964 if test $ol_cv_db_db_4_1 = yes ; then
18965 ol_cv_lib_db=-ldb-4-1
18969 if test $ol_cv_lib_db = no ; then
18970 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
18971 echo "configure:18972: checking for Berkeley DB link (-ldb3)" >&5
18972 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
18973 echo $ac_n "(cached) $ac_c" 1>&6
18978 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18980 cat > conftest.$ac_ext <<EOF
18981 #line 18982 "configure"
18982 #include "confdefs.h"
18984 #ifdef HAVE_DB_185_H
18985 # include <db_185.h>
18990 #ifndef DB_VERSION_MAJOR
18991 # define DB_VERSION_MAJOR 1
18995 #define NULL ((void*)0)
19000 #if DB_VERSION_MAJOR > 1
19003 int major, minor, patch;
19005 version = db_version( &major, &minor, &patch );
19007 if( major != DB_VERSION_MAJOR ||
19008 minor < DB_VERSION_MINOR )
19010 printf("Berkeley DB version mismatch\n"
19011 "\texpected: %s\n\tgot: %s\n",
19012 DB_VERSION_STRING, version);
19018 #if DB_VERSION_MAJOR > 2
19019 db_env_create( NULL, 0 );
19020 #elif DB_VERSION_MAJOR > 1
19021 db_appexit( NULL );
19023 (void) dbopen( NULL, 0, 0, 0, NULL);
19028 if { (eval echo configure:19029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19032 echo "configure: failed program was:" >&5
19033 cat conftest.$ac_ext >&5
19043 echo "$ac_t""$ol_cv_db_db3" 1>&6
19045 if test $ol_cv_db_db3 = yes ; then
19050 if test $ol_cv_lib_db = no ; then
19051 echo $ac_n "checking for Berkeley DB link (-ldb-3)""... $ac_c" 1>&6
19052 echo "configure:19053: checking for Berkeley DB link (-ldb-3)" >&5
19053 if eval "test \"\${ol_cv_db_db_3+set}\" = set"; then
19054 echo $ac_n "(cached) $ac_c" 1>&6
19059 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19061 cat > conftest.$ac_ext <<EOF
19062 #line 19063 "configure"
19063 #include "confdefs.h"
19065 #ifdef HAVE_DB_185_H
19066 # include <db_185.h>
19071 #ifndef DB_VERSION_MAJOR
19072 # define DB_VERSION_MAJOR 1
19076 #define NULL ((void*)0)
19081 #if DB_VERSION_MAJOR > 1
19084 int major, minor, patch;
19086 version = db_version( &major, &minor, &patch );
19088 if( major != DB_VERSION_MAJOR ||
19089 minor < DB_VERSION_MINOR )
19091 printf("Berkeley DB version mismatch\n"
19092 "\texpected: %s\n\tgot: %s\n",
19093 DB_VERSION_STRING, version);
19099 #if DB_VERSION_MAJOR > 2
19100 db_env_create( NULL, 0 );
19101 #elif DB_VERSION_MAJOR > 1
19102 db_appexit( NULL );
19104 (void) dbopen( NULL, 0, 0, 0, NULL);
19109 if { (eval echo configure:19110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19113 echo "configure: failed program was:" >&5
19114 cat conftest.$ac_ext >&5
19124 echo "$ac_t""$ol_cv_db_db_3" 1>&6
19126 if test $ol_cv_db_db_3 = yes ; then
19127 ol_cv_lib_db=-ldb-3
19131 if test $ol_cv_lib_db = no ; then
19132 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
19133 echo "configure:19134: checking for Berkeley DB link (-ldb2)" >&5
19134 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
19135 echo $ac_n "(cached) $ac_c" 1>&6
19140 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19142 cat > conftest.$ac_ext <<EOF
19143 #line 19144 "configure"
19144 #include "confdefs.h"
19146 #ifdef HAVE_DB_185_H
19147 # include <db_185.h>
19152 #ifndef DB_VERSION_MAJOR
19153 # define DB_VERSION_MAJOR 1
19157 #define NULL ((void*)0)
19162 #if DB_VERSION_MAJOR > 1
19165 int major, minor, patch;
19167 version = db_version( &major, &minor, &patch );
19169 if( major != DB_VERSION_MAJOR ||
19170 minor < DB_VERSION_MINOR )
19172 printf("Berkeley DB version mismatch\n"
19173 "\texpected: %s\n\tgot: %s\n",
19174 DB_VERSION_STRING, version);
19180 #if DB_VERSION_MAJOR > 2
19181 db_env_create( NULL, 0 );
19182 #elif DB_VERSION_MAJOR > 1
19183 db_appexit( NULL );
19185 (void) dbopen( NULL, 0, 0, 0, NULL);
19190 if { (eval echo configure:19191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19194 echo "configure: failed program was:" >&5
19195 cat conftest.$ac_ext >&5
19205 echo "$ac_t""$ol_cv_db_db2" 1>&6
19207 if test $ol_cv_db_db2 = yes ; then
19212 if test $ol_cv_lib_db = no ; then
19213 echo $ac_n "checking for Berkeley DB link (-ldb-2)""... $ac_c" 1>&6
19214 echo "configure:19215: checking for Berkeley DB link (-ldb-2)" >&5
19215 if eval "test \"\${ol_cv_db_db_2+set}\" = set"; then
19216 echo $ac_n "(cached) $ac_c" 1>&6
19221 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19223 cat > conftest.$ac_ext <<EOF
19224 #line 19225 "configure"
19225 #include "confdefs.h"
19227 #ifdef HAVE_DB_185_H
19228 # include <db_185.h>
19233 #ifndef DB_VERSION_MAJOR
19234 # define DB_VERSION_MAJOR 1
19238 #define NULL ((void*)0)
19243 #if DB_VERSION_MAJOR > 1
19246 int major, minor, patch;
19248 version = db_version( &major, &minor, &patch );
19250 if( major != DB_VERSION_MAJOR ||
19251 minor < DB_VERSION_MINOR )
19253 printf("Berkeley DB version mismatch\n"
19254 "\texpected: %s\n\tgot: %s\n",
19255 DB_VERSION_STRING, version);
19261 #if DB_VERSION_MAJOR > 2
19262 db_env_create( NULL, 0 );
19263 #elif DB_VERSION_MAJOR > 1
19264 db_appexit( NULL );
19266 (void) dbopen( NULL, 0, 0, 0, NULL);
19271 if { (eval echo configure:19272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19275 echo "configure: failed program was:" >&5
19276 cat conftest.$ac_ext >&5
19286 echo "$ac_t""$ol_cv_db_db_2" 1>&6
19288 if test $ol_cv_db_db_2 = yes ; then
19289 ol_cv_lib_db=-ldb-2
19293 if test $ol_cv_lib_db = no ; then
19294 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
19295 echo "configure:19296: checking for Berkeley DB link (-ldb1)" >&5
19296 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
19297 echo $ac_n "(cached) $ac_c" 1>&6
19302 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19304 cat > conftest.$ac_ext <<EOF
19305 #line 19306 "configure"
19306 #include "confdefs.h"
19308 #ifdef HAVE_DB_185_H
19309 # include <db_185.h>
19314 #ifndef DB_VERSION_MAJOR
19315 # define DB_VERSION_MAJOR 1
19319 #define NULL ((void*)0)
19324 #if DB_VERSION_MAJOR > 1
19327 int major, minor, patch;
19329 version = db_version( &major, &minor, &patch );
19331 if( major != DB_VERSION_MAJOR ||
19332 minor < DB_VERSION_MINOR )
19334 printf("Berkeley DB version mismatch\n"
19335 "\texpected: %s\n\tgot: %s\n",
19336 DB_VERSION_STRING, version);
19342 #if DB_VERSION_MAJOR > 2
19343 db_env_create( NULL, 0 );
19344 #elif DB_VERSION_MAJOR > 1
19345 db_appexit( NULL );
19347 (void) dbopen( NULL, 0, 0, 0, NULL);
19352 if { (eval echo configure:19353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19356 echo "configure: failed program was:" >&5
19357 cat conftest.$ac_ext >&5
19367 echo "$ac_t""$ol_cv_db_db1" 1>&6
19369 if test $ol_cv_db_db1 = yes ; then
19374 if test $ol_cv_lib_db = no ; then
19375 echo $ac_n "checking for Berkeley DB link (-ldb-1)""... $ac_c" 1>&6
19376 echo "configure:19377: checking for Berkeley DB link (-ldb-1)" >&5
19377 if eval "test \"\${ol_cv_db_db_1+set}\" = set"; then
19378 echo $ac_n "(cached) $ac_c" 1>&6
19383 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19385 cat > conftest.$ac_ext <<EOF
19386 #line 19387 "configure"
19387 #include "confdefs.h"
19389 #ifdef HAVE_DB_185_H
19390 # include <db_185.h>
19395 #ifndef DB_VERSION_MAJOR
19396 # define DB_VERSION_MAJOR 1
19400 #define NULL ((void*)0)
19405 #if DB_VERSION_MAJOR > 1
19408 int major, minor, patch;
19410 version = db_version( &major, &minor, &patch );
19412 if( major != DB_VERSION_MAJOR ||
19413 minor < DB_VERSION_MINOR )
19415 printf("Berkeley DB version mismatch\n"
19416 "\texpected: %s\n\tgot: %s\n",
19417 DB_VERSION_STRING, version);
19423 #if DB_VERSION_MAJOR > 2
19424 db_env_create( NULL, 0 );
19425 #elif DB_VERSION_MAJOR > 1
19426 db_appexit( NULL );
19428 (void) dbopen( NULL, 0, 0, 0, NULL);
19433 if { (eval echo configure:19434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19437 echo "configure: failed program was:" >&5
19438 cat conftest.$ac_ext >&5
19448 echo "$ac_t""$ol_cv_db_db_1" 1>&6
19450 if test $ol_cv_db_db_1 = yes ; then
19451 ol_cv_lib_db=-ldb-1
19456 if test "$ol_cv_lib_db" != no ; then
19457 ol_cv_berkeley_db=yes
19458 echo $ac_n "checking for Berkeley DB thread support""... $ac_c" 1>&6
19459 echo "configure:19460: checking for Berkeley DB thread support" >&5
19460 if eval "test \"\${ol_cv_berkeley_db_thread+set}\" = set"; then
19461 echo $ac_n "(cached) $ac_c" 1>&6
19465 LIBS="$LTHREAD_LIBS $LIBS"
19466 if test $ol_cv_lib_db != yes ; then
19467 LIBS="$ol_cv_lib_db $LIBS"
19470 if test "$cross_compiling" = yes; then
19471 ol_cv_berkeley_db_thread=cross
19473 cat > conftest.$ac_ext <<EOF
19474 #line 19475 "configure"
19475 #include "confdefs.h"
19477 #ifdef HAVE_DB_185_H
19483 #define NULL ((void *)0)
19488 u_int32_t flags = DB_CREATE |
19494 #if DB_VERSION_MAJOR > 2
19495 DB_ENV *env = NULL;
19497 rc = db_env_create( &env, 0 );
19499 flags |= DB_INIT_MPOOL;
19500 #ifdef DB_MPOOL_PRIVATE
19501 flags |= DB_MPOOL_PRIVATE;
19505 printf("BerkeleyDB: %s\n", db_strerror(rc) );
19509 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
19510 rc = env->open( env, NULL, flags, 0 );
19512 rc = env->open( env, NULL, NULL, flags, 0 );
19516 rc = env->close( env, 0 );
19520 printf("BerkeleyDB: %s\n", db_strerror(rc) );
19526 memset( &env, '\0', sizeof(env) );
19528 rc = db_appinit( NULL, NULL, &env, flags );
19531 db_appexit( &env );
19534 unlink("__db_mpool.share");
19535 unlink("__db_lock.share");
19541 if { (eval echo configure:19542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
19543 ol_cv_berkeley_db_thread=yes
19545 echo "configure: failed program was:" >&5
19546 cat conftest.$ac_ext >&5
19548 ol_cv_berkeley_db_thread=no
19558 echo "$ac_t""$ol_cv_berkeley_db_thread" 1>&6
19560 if test $ol_cv_berkeley_db_thread != no ; then
19561 cat >> confdefs.h <<\EOF
19562 #define HAVE_BERKELEY_DB_THREAD 1
19572 if test $ol_cv_berkeley_db != no ; then
19573 cat >> confdefs.h <<\EOF
19574 #define HAVE_BERKELEY_DB 1
19578 ol_link_ldbm=berkeley
19579 ol_with_ldbm_api=berkeley
19581 if test $ol_with_ldbm_type = hash ; then
19582 cat >> confdefs.h <<\EOF
19583 #define LDBM_USE_DBHASH 1
19587 cat >> confdefs.h <<\EOF
19588 #define LDBM_USE_DBBTREE 1
19593 if test $ol_cv_lib_db != yes ; then
19594 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
19599 if test $ol_enable_bdb = yes -a $ol_link_ldbm != berkeley ; then
19600 { echo "configure: error: BDB: BerkeleyDB not available" 1>&2; exit 1; }
19601 elif test $ol_enable_bdb != no -a $ol_link_ldbm = berkeley ; then
19602 echo $ac_n "checking Berkeley DB version for BDB backend""... $ac_c" 1>&6
19603 echo "configure:19604: checking Berkeley DB version for BDB backend" >&5
19604 if eval "test \"\${ol_cv_bdb_compat+set}\" = set"; then
19605 echo $ac_n "(cached) $ac_c" 1>&6
19608 cat > conftest.$ac_ext <<EOF
19609 #line 19610 "configure"
19610 #include "confdefs.h"
19614 /* this check could be improved */
19615 #ifndef DB_VERSION_MAJOR
19616 # define DB_VERSION_MAJOR 1
19618 #ifndef DB_VERSION_MINOR
19619 # define DB_VERSION_MINOR 0
19622 /* require 4.2 or later */
19623 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2)
19624 __db_version_compat
19628 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19629 egrep "__db_version_compat" >/dev/null 2>&1; then
19631 ol_cv_bdb_compat=yes
19634 ol_cv_bdb_compat=no
19640 echo "$ac_t""$ol_cv_bdb_compat" 1>&6
19643 if test $ol_cv_bdb_compat = yes ; then
19645 elif test $ol_enable_bdb = yes ; then
19646 { echo "configure: error: BDB: BerkeleyDB version incompatible" 1>&2; exit 1; }
19651 if test $ol_enable_hdb = yes -a $ol_link_ldbm != berkeley ; then
19652 { echo "configure: error: HDB: BerkeleyDB not available" 1>&2; exit 1; }
19655 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
19656 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
19657 ol_with_ldbm_api=none
19660 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
19661 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
19662 echo "configure:19663: checking for MDBM library" >&5
19663 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
19664 echo $ac_n "(cached) $ac_c" 1>&6
19667 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
19668 echo "configure:19669: checking for mdbm_set_chain" >&5
19669 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
19670 echo $ac_n "(cached) $ac_c" 1>&6
19672 cat > conftest.$ac_ext <<EOF
19673 #line 19674 "configure"
19674 #include "confdefs.h"
19675 /* System header to define __stub macros and hopefully few prototypes,
19676 which can conflict with char mdbm_set_chain(); below. */
19677 #include <assert.h>
19678 /* Override any gcc2 internal prototype to avoid an error. */
19679 /* We use char because int might match the return type of a gcc2
19680 builtin and then its argument prototype would still apply. */
19681 char mdbm_set_chain();
19686 /* The GNU C library defines this for functions which it implements
19687 to always fail with ENOSYS. Some functions are actually named
19688 something starting with __ and the normal name is an alias. */
19689 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
19692 f = mdbm_set_chain;
19697 if { (eval echo configure:19698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19699 eval "ac_cv_func_mdbm_set_chain=yes"
19701 echo "configure: failed program was:" >&5
19702 cat conftest.$ac_ext >&5
19704 eval "ac_cv_func_mdbm_set_chain=no"
19709 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
19710 echo "$ac_t""yes" 1>&6
19713 echo "$ac_t""no" 1>&6
19715 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
19716 echo "configure:19717: checking for mdbm_set_chain in -lmdbm" >&5
19717 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
19718 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19719 echo $ac_n "(cached) $ac_c" 1>&6
19721 ac_save_LIBS="$LIBS"
19722 LIBS="-lmdbm $LIBS"
19723 cat > conftest.$ac_ext <<EOF
19724 #line 19725 "configure"
19725 #include "confdefs.h"
19726 /* Override any gcc2 internal prototype to avoid an error. */
19727 /* We use char because int might match the return type of a gcc2
19728 builtin and then its argument prototype would still apply. */
19729 char mdbm_set_chain();
19735 if { (eval echo configure:19736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19737 eval "ac_cv_lib_$ac_lib_var=yes"
19739 echo "configure: failed program was:" >&5
19740 cat conftest.$ac_ext >&5
19742 eval "ac_cv_lib_$ac_lib_var=no"
19745 LIBS="$ac_save_LIBS"
19748 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19749 echo "$ac_t""yes" 1>&6
19750 ol_cv_lib_mdbm=-lmdbm
19752 echo "$ac_t""no" 1>&6
19763 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
19766 for ac_hdr in mdbm.h
19768 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19769 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19770 echo "configure:19771: checking for $ac_hdr" >&5
19771 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19772 echo $ac_n "(cached) $ac_c" 1>&6
19774 cat > conftest.$ac_ext <<EOF
19775 #line 19776 "configure"
19776 #include "confdefs.h"
19779 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19780 { (eval echo configure:19781: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19781 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19782 if test -z "$ac_err"; then
19784 eval "ac_cv_header_$ac_safe=yes"
19787 echo "configure: failed program was:" >&5
19788 cat conftest.$ac_ext >&5
19790 eval "ac_cv_header_$ac_safe=no"
19794 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19795 echo "$ac_t""yes" 1>&6
19796 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19797 cat >> confdefs.h <<EOF
19798 #define $ac_tr_hdr 1
19802 echo "$ac_t""no" 1>&6
19806 echo $ac_n "checking for db""... $ac_c" 1>&6
19807 echo "configure:19808: checking for db" >&5
19808 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
19809 echo $ac_n "(cached) $ac_c" 1>&6
19812 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
19820 echo "$ac_t""$ol_cv_mdbm" 1>&6
19821 if test $ol_cv_mdbm = yes ; then
19822 cat >> confdefs.h <<\EOF
19823 #define HAVE_MDBM 1
19829 if test $ol_cv_mdbm = yes ; then
19831 ol_with_ldbm_api=mdbm
19832 if test $ol_cv_lib_mdbm != yes ; then
19833 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
19838 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
19839 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
19840 echo "configure:19841: checking for GDBM library" >&5
19841 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
19842 echo $ac_n "(cached) $ac_c" 1>&6
19845 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
19846 echo "configure:19847: checking for gdbm_open" >&5
19847 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
19848 echo $ac_n "(cached) $ac_c" 1>&6
19850 cat > conftest.$ac_ext <<EOF
19851 #line 19852 "configure"
19852 #include "confdefs.h"
19853 /* System header to define __stub macros and hopefully few prototypes,
19854 which can conflict with char gdbm_open(); below. */
19855 #include <assert.h>
19856 /* Override any gcc2 internal prototype to avoid an error. */
19857 /* We use char because int might match the return type of a gcc2
19858 builtin and then its argument prototype would still apply. */
19864 /* The GNU C library defines this for functions which it implements
19865 to always fail with ENOSYS. Some functions are actually named
19866 something starting with __ and the normal name is an alias. */
19867 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
19875 if { (eval echo configure:19876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19877 eval "ac_cv_func_gdbm_open=yes"
19879 echo "configure: failed program was:" >&5
19880 cat conftest.$ac_ext >&5
19882 eval "ac_cv_func_gdbm_open=no"
19887 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
19888 echo "$ac_t""yes" 1>&6
19891 echo "$ac_t""no" 1>&6
19893 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
19894 echo "configure:19895: checking for gdbm_open in -lgdbm" >&5
19895 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
19896 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19897 echo $ac_n "(cached) $ac_c" 1>&6
19899 ac_save_LIBS="$LIBS"
19900 LIBS="-lgdbm $LIBS"
19901 cat > conftest.$ac_ext <<EOF
19902 #line 19903 "configure"
19903 #include "confdefs.h"
19904 /* Override any gcc2 internal prototype to avoid an error. */
19905 /* We use char because int might match the return type of a gcc2
19906 builtin and then its argument prototype would still apply. */
19913 if { (eval echo configure:19914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19915 eval "ac_cv_lib_$ac_lib_var=yes"
19917 echo "configure: failed program was:" >&5
19918 cat conftest.$ac_ext >&5
19920 eval "ac_cv_lib_$ac_lib_var=no"
19923 LIBS="$ac_save_LIBS"
19926 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19927 echo "$ac_t""yes" 1>&6
19928 ol_cv_lib_gdbm=-lgdbm
19930 echo "$ac_t""no" 1>&6
19941 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
19944 for ac_hdr in gdbm.h
19946 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19947 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19948 echo "configure:19949: checking for $ac_hdr" >&5
19949 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19950 echo $ac_n "(cached) $ac_c" 1>&6
19952 cat > conftest.$ac_ext <<EOF
19953 #line 19954 "configure"
19954 #include "confdefs.h"
19957 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19958 { (eval echo configure:19959: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19959 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19960 if test -z "$ac_err"; then
19962 eval "ac_cv_header_$ac_safe=yes"
19965 echo "configure: failed program was:" >&5
19966 cat conftest.$ac_ext >&5
19968 eval "ac_cv_header_$ac_safe=no"
19972 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19973 echo "$ac_t""yes" 1>&6
19974 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19975 cat >> confdefs.h <<EOF
19976 #define $ac_tr_hdr 1
19980 echo "$ac_t""no" 1>&6
19984 echo $ac_n "checking for db""... $ac_c" 1>&6
19985 echo "configure:19986: checking for db" >&5
19986 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
19987 echo $ac_n "(cached) $ac_c" 1>&6
19990 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
19998 echo "$ac_t""$ol_cv_gdbm" 1>&6
19999 if test $ol_cv_gdbm = yes ; then
20000 cat >> confdefs.h <<\EOF
20001 #define HAVE_GDBM 1
20007 if test $ol_cv_gdbm = yes ; then
20009 ol_with_ldbm_api=gdbm
20011 if test $ol_cv_lib_gdbm != yes ; then
20012 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
20017 if test $ol_with_ldbm_api = ndbm ; then
20018 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
20019 echo "configure:20020: checking for NDBM library" >&5
20020 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
20021 echo $ac_n "(cached) $ac_c" 1>&6
20024 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
20025 echo "configure:20026: checking for dbm_open" >&5
20026 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
20027 echo $ac_n "(cached) $ac_c" 1>&6
20029 cat > conftest.$ac_ext <<EOF
20030 #line 20031 "configure"
20031 #include "confdefs.h"
20032 /* System header to define __stub macros and hopefully few prototypes,
20033 which can conflict with char dbm_open(); below. */
20034 #include <assert.h>
20035 /* Override any gcc2 internal prototype to avoid an error. */
20036 /* We use char because int might match the return type of a gcc2
20037 builtin and then its argument prototype would still apply. */
20043 /* The GNU C library defines this for functions which it implements
20044 to always fail with ENOSYS. Some functions are actually named
20045 something starting with __ and the normal name is an alias. */
20046 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
20054 if { (eval echo configure:20055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20056 eval "ac_cv_func_dbm_open=yes"
20058 echo "configure: failed program was:" >&5
20059 cat conftest.$ac_ext >&5
20061 eval "ac_cv_func_dbm_open=no"
20066 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
20067 echo "$ac_t""yes" 1>&6
20070 echo "$ac_t""no" 1>&6
20072 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
20073 echo "configure:20074: checking for dbm_open in -lndbm" >&5
20074 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
20075 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20076 echo $ac_n "(cached) $ac_c" 1>&6
20078 ac_save_LIBS="$LIBS"
20079 LIBS="-lndbm $LIBS"
20080 cat > conftest.$ac_ext <<EOF
20081 #line 20082 "configure"
20082 #include "confdefs.h"
20083 /* Override any gcc2 internal prototype to avoid an error. */
20084 /* We use char because int might match the return type of a gcc2
20085 builtin and then its argument prototype would still apply. */
20092 if { (eval echo configure:20093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20094 eval "ac_cv_lib_$ac_lib_var=yes"
20096 echo "configure: failed program was:" >&5
20097 cat conftest.$ac_ext >&5
20099 eval "ac_cv_lib_$ac_lib_var=no"
20102 LIBS="$ac_save_LIBS"
20105 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20106 echo "$ac_t""yes" 1>&6
20107 ol_cv_lib_ndbm=-lndbm
20109 echo "$ac_t""no" 1>&6
20111 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
20112 echo "configure:20113: checking for dbm_open in -ldbm" >&5
20113 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
20114 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20115 echo $ac_n "(cached) $ac_c" 1>&6
20117 ac_save_LIBS="$LIBS"
20119 cat > conftest.$ac_ext <<EOF
20120 #line 20121 "configure"
20121 #include "confdefs.h"
20122 /* Override any gcc2 internal prototype to avoid an error. */
20123 /* We use char because int might match the return type of a gcc2
20124 builtin and then its argument prototype would still apply. */
20131 if { (eval echo configure:20132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20133 eval "ac_cv_lib_$ac_lib_var=yes"
20135 echo "configure: failed program was:" >&5
20136 cat conftest.$ac_ext >&5
20138 eval "ac_cv_lib_$ac_lib_var=no"
20141 LIBS="$ac_save_LIBS"
20144 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20145 echo "$ac_t""yes" 1>&6
20146 ol_cv_lib_ndbm=-ldbm
20148 echo "$ac_t""no" 1>&6
20161 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
20164 for ac_hdr in ndbm.h
20166 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20167 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20168 echo "configure:20169: checking for $ac_hdr" >&5
20169 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20170 echo $ac_n "(cached) $ac_c" 1>&6
20172 cat > conftest.$ac_ext <<EOF
20173 #line 20174 "configure"
20174 #include "confdefs.h"
20177 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20178 { (eval echo configure:20179: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20179 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20180 if test -z "$ac_err"; then
20182 eval "ac_cv_header_$ac_safe=yes"
20185 echo "configure: failed program was:" >&5
20186 cat conftest.$ac_ext >&5
20188 eval "ac_cv_header_$ac_safe=no"
20192 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20193 echo "$ac_t""yes" 1>&6
20194 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20195 cat >> confdefs.h <<EOF
20196 #define $ac_tr_hdr 1
20200 echo "$ac_t""no" 1>&6
20204 echo $ac_n "checking for db""... $ac_c" 1>&6
20205 echo "configure:20206: checking for db" >&5
20206 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
20207 echo $ac_n "(cached) $ac_c" 1>&6
20210 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
20218 echo "$ac_t""$ol_cv_ndbm" 1>&6
20219 if test $ol_cv_ndbm = yes ; then
20220 cat >> confdefs.h <<\EOF
20221 #define HAVE_NDBM 1
20227 if test $ol_cv_ndbm = yes ; then
20229 ol_with_ldbm_api=ndbm
20231 if test $ol_cv_lib_ndbm != yes ; then
20232 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
20237 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
20238 echo "configure: warning: could not find suitable LDBM backend" 1>&2
20239 if test $ol_enable_ldbm = yes ; then
20240 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
20243 echo "configure: warning: disabling LDBM" 1>&2
20248 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
20249 BUILD_LIBS_DYNAMIC=shared
20250 cat >> confdefs.h <<\EOF
20251 #define LDAP_LIBS_DYNAMIC 1
20256 BUILD_LIBS_DYNAMIC=static
20260 if test $ol_enable_wrappers != no ; then
20261 for ac_hdr in tcpd.h
20263 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20264 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20265 echo "configure:20266: checking for $ac_hdr" >&5
20266 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20267 echo $ac_n "(cached) $ac_c" 1>&6
20269 cat > conftest.$ac_ext <<EOF
20270 #line 20271 "configure"
20271 #include "confdefs.h"
20274 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20275 { (eval echo configure:20276: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20276 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20277 if test -z "$ac_err"; then
20279 eval "ac_cv_header_$ac_safe=yes"
20282 echo "configure: failed program was:" >&5
20283 cat conftest.$ac_ext >&5
20285 eval "ac_cv_header_$ac_safe=no"
20289 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20290 echo "$ac_t""yes" 1>&6
20291 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20292 cat >> confdefs.h <<EOF
20293 #define $ac_tr_hdr 1
20296 echo $ac_n "checking for TCP wrappers library""... $ac_c" 1>&6
20297 echo "configure:20298: checking for TCP wrappers library" >&5
20299 LIBS="$LIBS -lwrap"
20300 cat > conftest.$ac_ext <<EOF
20301 #line 20302 "configure"
20302 #include "confdefs.h"
20305 int allow_severity = 0;
20306 int deny_severity = 0;
20308 struct request_info *req;
20316 if { (eval echo configure:20317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20318 echo "$ac_t""-lwrap" 1>&6
20322 echo "configure: failed program was:" >&5
20323 cat conftest.$ac_ext >&5
20327 cat > conftest.$ac_ext <<EOF
20328 #line 20329 "configure"
20329 #include "confdefs.h"
20332 int allow_severity = 0;
20333 int deny_severity = 0;
20335 struct request_info *req;
20343 if { (eval echo configure:20344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20345 echo "$ac_t""-lwrap -lnsl" 1>&6
20347 LIBS="$save_LIBS -lnsl"
20349 echo "configure: failed program was:" >&5
20350 cat conftest.$ac_ext >&5
20353 echo "$ac_t""no" 1>&6
20361 echo "$ac_t""no" 1>&6
20367 if test $have_wrappers = yes ; then
20368 cat >> confdefs.h <<\EOF
20369 #define HAVE_TCPD 1
20373 elif test $ol_enable_wrappers = yes ; then
20374 { echo "configure: error: could not find TCP wrappers, select apppropriate options or disable" 1>&2; exit 1; }
20376 echo "configure: warning: could not find TCP wrappers, support disabled" 1>&2
20381 if test $ol_enable_syslog != no ; then
20382 echo $ac_n "checking for openlog""... $ac_c" 1>&6
20383 echo "configure:20384: checking for openlog" >&5
20384 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
20385 echo $ac_n "(cached) $ac_c" 1>&6
20387 cat > conftest.$ac_ext <<EOF
20388 #line 20389 "configure"
20389 #include "confdefs.h"
20390 /* System header to define __stub macros and hopefully few prototypes,
20391 which can conflict with char openlog(); below. */
20392 #include <assert.h>
20393 /* Override any gcc2 internal prototype to avoid an error. */
20394 /* We use char because int might match the return type of a gcc2
20395 builtin and then its argument prototype would still apply. */
20401 /* The GNU C library defines this for functions which it implements
20402 to always fail with ENOSYS. Some functions are actually named
20403 something starting with __ and the normal name is an alias. */
20404 #if defined (__stub_openlog) || defined (__stub___openlog)
20412 if { (eval echo configure:20413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20414 eval "ac_cv_func_openlog=yes"
20416 echo "configure: failed program was:" >&5
20417 cat conftest.$ac_ext >&5
20419 eval "ac_cv_func_openlog=no"
20424 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
20425 echo "$ac_t""yes" 1>&6
20428 echo "$ac_t""no" 1>&6
20431 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
20432 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
20434 ol_enable_syslog=$ac_cv_func_openlog
20439 if test $ol_enable_sql != no ; then
20440 for ac_hdr in sql.h sqlext.h
20442 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20443 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20444 echo "configure:20445: checking for $ac_hdr" >&5
20445 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20446 echo $ac_n "(cached) $ac_c" 1>&6
20448 cat > conftest.$ac_ext <<EOF
20449 #line 20450 "configure"
20450 #include "confdefs.h"
20453 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20454 { (eval echo configure:20455: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20455 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20456 if test -z "$ac_err"; then
20458 eval "ac_cv_header_$ac_safe=yes"
20461 echo "configure: failed program was:" >&5
20462 cat conftest.$ac_ext >&5
20464 eval "ac_cv_header_$ac_safe=no"
20468 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20469 echo "$ac_t""yes" 1>&6
20470 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20471 cat >> confdefs.h <<EOF
20472 #define $ac_tr_hdr 1
20476 echo "$ac_t""no" 1>&6
20477 { echo "configure: error: could not locate SQL headers" 1>&2; exit 1; }
20483 echo $ac_n "checking for SQLDriverConnect in -liodbc""... $ac_c" 1>&6
20484 echo "configure:20485: checking for SQLDriverConnect in -liodbc" >&5
20485 ac_lib_var=`echo iodbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
20486 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20487 echo $ac_n "(cached) $ac_c" 1>&6
20489 ac_save_LIBS="$LIBS"
20490 LIBS="-liodbc $LIBS"
20491 cat > conftest.$ac_ext <<EOF
20492 #line 20493 "configure"
20493 #include "confdefs.h"
20494 /* Override any gcc2 internal prototype to avoid an error. */
20495 /* We use char because int might match the return type of a gcc2
20496 builtin and then its argument prototype would still apply. */
20497 char SQLDriverConnect();
20503 if { (eval echo configure:20504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20505 eval "ac_cv_lib_$ac_lib_var=yes"
20507 echo "configure: failed program was:" >&5
20508 cat conftest.$ac_ext >&5
20510 eval "ac_cv_lib_$ac_lib_var=no"
20513 LIBS="$ac_save_LIBS"
20516 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20517 echo "$ac_t""yes" 1>&6
20520 echo "$ac_t""no" 1>&6
20524 if test $have_iodbc = yes ; then
20525 ol_link_sql="-liodbc"
20527 echo $ac_n "checking for SQLDriverConnect in -lodbc""... $ac_c" 1>&6
20528 echo "configure:20529: checking for SQLDriverConnect in -lodbc" >&5
20529 ac_lib_var=`echo odbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
20530 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20531 echo $ac_n "(cached) $ac_c" 1>&6
20533 ac_save_LIBS="$LIBS"
20534 LIBS="-lodbc $LIBS"
20535 cat > conftest.$ac_ext <<EOF
20536 #line 20537 "configure"
20537 #include "confdefs.h"
20538 /* Override any gcc2 internal prototype to avoid an error. */
20539 /* We use char because int might match the return type of a gcc2
20540 builtin and then its argument prototype would still apply. */
20541 char SQLDriverConnect();
20547 if { (eval echo configure:20548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20549 eval "ac_cv_lib_$ac_lib_var=yes"
20551 echo "configure: failed program was:" >&5
20552 cat conftest.$ac_ext >&5
20554 eval "ac_cv_lib_$ac_lib_var=no"
20557 LIBS="$ac_save_LIBS"
20560 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20561 echo "$ac_t""yes" 1>&6
20564 echo "$ac_t""no" 1>&6
20568 if test $have_odbc = yes ; then
20569 ol_link_sql="-lodbc"
20573 if test $ol_link_sql != no ; then
20574 SLAPD_SQL_LIBS="$ol_link_sql"
20576 elif test $ol_enable_sql != auto ; then
20577 { echo "configure: error: could not locate suitable ODBC library" 1>&2; exit 1; }
20583 if test $ol_with_cyrus_sasl != no ; then
20584 for ac_hdr in sasl/sasl.h sasl.h
20586 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20587 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20588 echo "configure:20589: checking for $ac_hdr" >&5
20589 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20590 echo $ac_n "(cached) $ac_c" 1>&6
20592 cat > conftest.$ac_ext <<EOF
20593 #line 20594 "configure"
20594 #include "confdefs.h"
20597 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20598 { (eval echo configure:20599: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20599 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20600 if test -z "$ac_err"; then
20602 eval "ac_cv_header_$ac_safe=yes"
20605 echo "configure: failed program was:" >&5
20606 cat conftest.$ac_ext >&5
20608 eval "ac_cv_header_$ac_safe=no"
20612 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20613 echo "$ac_t""yes" 1>&6
20614 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20615 cat >> confdefs.h <<EOF
20616 #define $ac_tr_hdr 1
20620 echo "$ac_t""no" 1>&6
20625 if test $ac_cv_header_sasl_sasl_h = yes -o $ac_cv_header_sasl_h = yes; then
20626 echo $ac_n "checking for sasl_client_init in -lsasl2""... $ac_c" 1>&6
20627 echo "configure:20628: checking for sasl_client_init in -lsasl2" >&5
20628 ac_lib_var=`echo sasl2'_'sasl_client_init | sed 'y%./+-:%__p__%'`
20629 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20630 echo $ac_n "(cached) $ac_c" 1>&6
20632 ac_save_LIBS="$LIBS"
20633 LIBS="-lsasl2 $LIBS"
20634 cat > conftest.$ac_ext <<EOF
20635 #line 20636 "configure"
20636 #include "confdefs.h"
20637 /* Override any gcc2 internal prototype to avoid an error. */
20638 /* We use char because int might match the return type of a gcc2
20639 builtin and then its argument prototype would still apply. */
20640 char sasl_client_init();
20646 if { (eval echo configure:20647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20648 eval "ac_cv_lib_$ac_lib_var=yes"
20650 echo "configure: failed program was:" >&5
20651 cat conftest.$ac_ext >&5
20653 eval "ac_cv_lib_$ac_lib_var=no"
20656 LIBS="$ac_save_LIBS"
20659 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20660 echo "$ac_t""yes" 1>&6
20661 ol_link_sasl="-lsasl2"
20663 echo "$ac_t""no" 1>&6
20664 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
20665 echo "configure:20666: checking for sasl_client_init in -lsasl" >&5
20666 ac_lib_var=`echo sasl'_'sasl_client_init | 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="-lsasl $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 sasl_client_init();
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
20699 ol_link_sasl="-lsasl"
20701 echo "$ac_t""no" 1>&6
20708 if test $ol_link_sasl = no ; then
20709 if test $ol_with_cyrus_sasl != auto ; then
20710 { echo "configure: error: Could not locate Cyrus SASL" 1>&2; exit 1; }
20712 echo "configure: warning: Could not locate Cyrus SASL" 1>&2
20713 echo "configure: warning: SASL authentication not supported!" 1>&2
20714 if test $ol_link_tls = no ; then
20715 echo "configure: warning: Strong authentication not supported!" 1>&2
20719 echo $ac_n "checking Cyrus SASL library version""... $ac_c" 1>&6
20720 echo "configure:20721: checking Cyrus SASL library version" >&5
20721 if eval "test \"\${ol_cv_sasl_compat+set}\" = set"; then
20722 echo $ac_n "(cached) $ac_c" 1>&6
20725 cat > conftest.$ac_ext <<EOF
20726 #line 20727 "configure"
20727 #include "confdefs.h"
20729 #ifdef HAVE_SASL_SASL_H
20730 #include <sasl/sasl.h>
20735 /* Require 2.1.15+ */
20736 #if SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
20737 char *__sasl_compat = "2.2+ or better okay (we guess)";
20738 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
20739 && SASL_VERSION_STEP >=15
20740 char *__sasl_compat = "2.1.15+ or better okay";
20744 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20745 egrep "__sasl_compat" >/dev/null 2>&1; then
20747 ol_cv_sasl_compat=yes
20750 ol_cv_sasl_compat=no
20756 echo "$ac_t""$ol_cv_sasl_compat" 1>&6
20758 if test $ol_cv_sasl_compat = no ; then
20760 { echo "configure: error: Cyrus SASL library located but is incompatible" 1>&2; exit 1; }
20763 cat >> confdefs.h <<\EOF
20764 #define HAVE_CYRUS_SASL 1
20767 SASL_LIBS="$ol_link_sasl"
20768 if test $ol_enable_spasswd != no ; then
20769 ol_link_spasswd=yes
20772 ac_save_LIBS="$LIBS"
20773 LIBS="$LIBS $ol_link_sasl"
20774 echo $ac_n "checking for sasl_version""... $ac_c" 1>&6
20775 echo "configure:20776: checking for sasl_version" >&5
20776 if eval "test \"\${ac_cv_func_sasl_version+set}\" = set"; then
20777 echo $ac_n "(cached) $ac_c" 1>&6
20779 cat > conftest.$ac_ext <<EOF
20780 #line 20781 "configure"
20781 #include "confdefs.h"
20782 /* System header to define __stub macros and hopefully few prototypes,
20783 which can conflict with char sasl_version(); below. */
20784 #include <assert.h>
20785 /* Override any gcc2 internal prototype to avoid an error. */
20786 /* We use char because int might match the return type of a gcc2
20787 builtin and then its argument prototype would still apply. */
20788 char sasl_version();
20793 /* The GNU C library defines this for functions which it implements
20794 to always fail with ENOSYS. Some functions are actually named
20795 something starting with __ and the normal name is an alias. */
20796 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
20804 if { (eval echo configure:20805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20806 eval "ac_cv_func_sasl_version=yes"
20808 echo "configure: failed program was:" >&5
20809 cat conftest.$ac_ext >&5
20811 eval "ac_cv_func_sasl_version=no"
20816 if eval "test \"`echo '$ac_cv_func_'sasl_version`\" = yes"; then
20817 echo "$ac_t""yes" 1>&6
20818 cat >> confdefs.h <<\EOF
20819 #define HAVE_SASL_VERSION 1
20823 echo "$ac_t""no" 1>&6
20826 LIBS="$ac_save_LIBS"
20830 echo "configure: warning: SASL authentication not supported!" 1>&2
20831 if test $ol_link_tls = no ; then
20832 echo "configure: warning: Strong authentication not supported!" 1>&2
20836 if test $cross_compiling != yes -a "$ac_cv_mingw32" != yes ; then
20838 if test -r /dev/urandom ; then
20839 dev="/dev/urandom";
20840 elif test -r /idev/urandom ; then
20841 dev="/idev/urandom";
20842 elif test -r /dev/srandom ; then
20843 dev="/dev/srandom";
20844 elif test -r /dev/random ; then
20846 elif test -r /idev/random ; then
20847 dev="/idev/random";
20850 if test $dev != no ; then
20851 cat >> confdefs.h <<EOF
20852 #define URANDOM_DEVICE "$dev"
20859 if test $ol_with_fetch != no ; then
20861 LIBS="-lfetch -lcom_err $LIBS"
20862 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
20863 echo "configure:20864: checking fetch(3) library" >&5
20864 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
20865 echo $ac_n "(cached) $ac_c" 1>&6
20868 cat > conftest.$ac_ext <<EOF
20869 #line 20870 "configure"
20870 #include "confdefs.h"
20872 #include <sys/param.h>
20876 struct url *u = fetchParseURL("file:///");
20879 if { (eval echo configure:20880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20881 ol_cv_lib_fetch=yes
20883 echo "configure: failed program was:" >&5
20884 cat conftest.$ac_ext >&5
20891 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
20893 if test $ol_cv_lib_fetch != no ; then
20894 ol_link_fetch="-lfetch -lcom_err"
20895 cat >> confdefs.h <<\EOF
20896 #define HAVE_FETCH 1
20902 if test $ol_cv_lib_fetch != no ; then
20903 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
20904 ol_link_fetch=freebsd
20906 elif test $ol_with_fetch != auto ; then
20907 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
20911 if test $ol_enable_crypt != no ; then
20913 LIBS="$TLS_LIBS $LIBS"
20915 echo $ac_n "checking for crypt""... $ac_c" 1>&6
20916 echo "configure:20917: checking for crypt" >&5
20917 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
20918 echo $ac_n "(cached) $ac_c" 1>&6
20920 cat > conftest.$ac_ext <<EOF
20921 #line 20922 "configure"
20922 #include "confdefs.h"
20923 /* System header to define __stub macros and hopefully few prototypes,
20924 which can conflict with char crypt(); below. */
20925 #include <assert.h>
20926 /* Override any gcc2 internal prototype to avoid an error. */
20927 /* We use char because int might match the return type of a gcc2
20928 builtin and then its argument prototype would still apply. */
20934 /* The GNU C library defines this for functions which it implements
20935 to always fail with ENOSYS. Some functions are actually named
20936 something starting with __ and the normal name is an alias. */
20937 #if defined (__stub_crypt) || defined (__stub___crypt)
20945 if { (eval echo configure:20946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20947 eval "ac_cv_func_crypt=yes"
20949 echo "configure: failed program was:" >&5
20950 cat conftest.$ac_ext >&5
20952 eval "ac_cv_func_crypt=no"
20957 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
20958 echo "$ac_t""yes" 1>&6
20961 echo "$ac_t""no" 1>&6
20964 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
20965 echo "configure:20966: checking for crypt in -lcrypt" >&5
20966 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
20967 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20968 echo $ac_n "(cached) $ac_c" 1>&6
20970 ac_save_LIBS="$LIBS"
20971 LIBS="-lcrypt $LIBS"
20972 cat > conftest.$ac_ext <<EOF
20973 #line 20974 "configure"
20974 #include "confdefs.h"
20975 /* Override any gcc2 internal prototype to avoid an error. */
20976 /* We use char because int might match the return type of a gcc2
20977 builtin and then its argument prototype would still apply. */
20984 if { (eval echo configure:20985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20986 eval "ac_cv_lib_$ac_lib_var=yes"
20988 echo "configure: failed program was:" >&5
20989 cat conftest.$ac_ext >&5
20991 eval "ac_cv_lib_$ac_lib_var=no"
20994 LIBS="$ac_save_LIBS"
20997 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20998 echo "$ac_t""yes" 1>&6
20999 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
21002 echo "$ac_t""no" 1>&6
21011 if test $have_crypt = yes ; then
21012 cat >> confdefs.h <<\EOF
21013 #define HAVE_CRYPT 1
21017 echo "configure: warning: could not find crypt" 1>&2
21018 if test $ol_enable_crypt = yes ; then
21019 { echo "configure: error: could not find crypt, select appropriate options or disable" 1>&2; exit 1; }
21022 echo "configure: warning: disabling crypt support" 1>&2
21027 if test $ol_enable_proctitle != no ; then
21028 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
21029 echo "configure:21030: checking for setproctitle" >&5
21030 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
21031 echo $ac_n "(cached) $ac_c" 1>&6
21033 cat > conftest.$ac_ext <<EOF
21034 #line 21035 "configure"
21035 #include "confdefs.h"
21036 /* System header to define __stub macros and hopefully few prototypes,
21037 which can conflict with char setproctitle(); below. */
21038 #include <assert.h>
21039 /* Override any gcc2 internal prototype to avoid an error. */
21040 /* We use char because int might match the return type of a gcc2
21041 builtin and then its argument prototype would still apply. */
21042 char setproctitle();
21047 /* The GNU C library defines this for functions which it implements
21048 to always fail with ENOSYS. Some functions are actually named
21049 something starting with __ and the normal name is an alias. */
21050 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
21058 if { (eval echo configure:21059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21060 eval "ac_cv_func_setproctitle=yes"
21062 echo "configure: failed program was:" >&5
21063 cat conftest.$ac_ext >&5
21065 eval "ac_cv_func_setproctitle=no"
21070 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
21071 echo "$ac_t""yes" 1>&6
21072 have_setproctitle=yes
21074 echo "$ac_t""no" 1>&6
21076 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
21077 echo "configure:21078: checking for setproctitle in -lutil" >&5
21078 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
21079 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21080 echo $ac_n "(cached) $ac_c" 1>&6
21082 ac_save_LIBS="$LIBS"
21083 LIBS="-lutil $LIBS"
21084 cat > conftest.$ac_ext <<EOF
21085 #line 21086 "configure"
21086 #include "confdefs.h"
21087 /* Override any gcc2 internal prototype to avoid an error. */
21088 /* We use char because int might match the return type of a gcc2
21089 builtin and then its argument prototype would still apply. */
21090 char setproctitle();
21096 if { (eval echo configure:21097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21098 eval "ac_cv_lib_$ac_lib_var=yes"
21100 echo "configure: failed program was:" >&5
21101 cat conftest.$ac_ext >&5
21103 eval "ac_cv_lib_$ac_lib_var=no"
21106 LIBS="$ac_save_LIBS"
21109 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21110 echo "$ac_t""yes" 1>&6
21111 have_setproctitle=yes
21112 LUTIL_LIBS="$LUTIL_LIBS -lutil"
21114 echo "$ac_t""no" 1>&6
21115 have_setproctitle=no
21116 LIBOBJS="$LIBOBJS setproctitle.o"
21117 LIBSRCS="$LIBSRCS setproctitle.c"
21123 if test $have_setproctitle = yes ; then
21124 cat >> confdefs.h <<\EOF
21125 #define HAVE_SETPROCTITLE 1
21131 if test $ol_enable_slp != no ; then
21132 for ac_hdr in slp.h
21134 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21135 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21136 echo "configure:21137: checking for $ac_hdr" >&5
21137 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
21138 echo $ac_n "(cached) $ac_c" 1>&6
21140 cat > conftest.$ac_ext <<EOF
21141 #line 21142 "configure"
21142 #include "confdefs.h"
21145 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21146 { (eval echo configure:21147: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21147 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21148 if test -z "$ac_err"; then
21150 eval "ac_cv_header_$ac_safe=yes"
21153 echo "configure: failed program was:" >&5
21154 cat conftest.$ac_ext >&5
21156 eval "ac_cv_header_$ac_safe=no"
21160 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21161 echo "$ac_t""yes" 1>&6
21162 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21163 cat >> confdefs.h <<EOF
21164 #define $ac_tr_hdr 1
21168 echo "$ac_t""no" 1>&6
21173 if test $ac_cv_header_slp_h = yes ; then
21174 echo $ac_n "checking for SLPOpen in -lslp""... $ac_c" 1>&6
21175 echo "configure:21176: checking for SLPOpen in -lslp" >&5
21176 ac_lib_var=`echo slp'_'SLPOpen | sed 'y%./+-:%__p__%'`
21177 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21178 echo $ac_n "(cached) $ac_c" 1>&6
21180 ac_save_LIBS="$LIBS"
21182 cat > conftest.$ac_ext <<EOF
21183 #line 21184 "configure"
21184 #include "confdefs.h"
21185 /* Override any gcc2 internal prototype to avoid an error. */
21186 /* We use char because int might match the return type of a gcc2
21187 builtin and then its argument prototype would still apply. */
21194 if { (eval echo configure:21195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21196 eval "ac_cv_lib_$ac_lib_var=yes"
21198 echo "configure: failed program was:" >&5
21199 cat conftest.$ac_ext >&5
21201 eval "ac_cv_lib_$ac_lib_var=no"
21204 LIBS="$ac_save_LIBS"
21207 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21208 echo "$ac_t""yes" 1>&6
21211 echo "$ac_t""no" 1>&6
21215 if test $have_slp = yes ; then
21216 cat >> confdefs.h <<\EOF
21220 SLAPD_SLP_LIBS=-lslp
21223 elif test $ol_enable_slp = yes ; then
21224 { echo "configure: error: SLP not found" 1>&2; exit 1; }
21229 echo $ac_n "checking long long""... $ac_c" 1>&6
21230 echo "configure:21231: checking long long" >&5
21231 if eval "test \"\${ol_cv_type_long_long+set}\" = set"; then
21232 echo $ac_n "(cached) $ac_c" 1>&6
21235 cat > conftest.$ac_ext <<EOF
21236 #line 21237 "configure"
21237 #include "confdefs.h"
21243 if { (eval echo configure:21244: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21245 ol_cv_type_long_long=yes
21247 echo "configure: failed program was:" >&5
21248 cat conftest.$ac_ext >&5
21250 ol_cv_type_long_long=no
21255 echo "$ac_t""$ol_cv_type_long_long" 1>&6
21256 if test $ol_cv_type_long_long = yes; then
21257 cat >> confdefs.h <<\EOF
21258 #define HAVE_LONG_LONG 1
21263 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
21264 echo "configure:21265: checking for ANSI C header files" >&5
21265 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
21266 echo $ac_n "(cached) $ac_c" 1>&6
21268 cat > conftest.$ac_ext <<EOF
21269 #line 21270 "configure"
21270 #include "confdefs.h"
21271 #include <stdlib.h>
21272 #include <stdarg.h>
21273 #include <string.h>
21276 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21277 { (eval echo configure:21278: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21278 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21279 if test -z "$ac_err"; then
21281 ac_cv_header_stdc=yes
21284 echo "configure: failed program was:" >&5
21285 cat conftest.$ac_ext >&5
21287 ac_cv_header_stdc=no
21291 if test $ac_cv_header_stdc = yes; then
21292 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21293 cat > conftest.$ac_ext <<EOF
21294 #line 21295 "configure"
21295 #include "confdefs.h"
21296 #include <string.h>
21298 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21299 egrep "memchr" >/dev/null 2>&1; then
21303 ac_cv_header_stdc=no
21309 if test $ac_cv_header_stdc = yes; then
21310 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21311 cat > conftest.$ac_ext <<EOF
21312 #line 21313 "configure"
21313 #include "confdefs.h"
21314 #include <stdlib.h>
21316 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21317 egrep "free" >/dev/null 2>&1; then
21321 ac_cv_header_stdc=no
21327 if test $ac_cv_header_stdc = yes; then
21328 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21329 if test "$cross_compiling" = yes; then
21332 cat > conftest.$ac_ext <<EOF
21333 #line 21334 "configure"
21334 #include "confdefs.h"
21336 #if ((' ' & 0x0FF) == 0x020)
21337 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21338 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21340 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
21341 || ('j' <= (c) && (c) <= 'r') \
21342 || ('s' <= (c) && (c) <= 'z'))
21343 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21345 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21346 int main () { int i; for (i = 0; i < 256; i++)
21347 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
21351 if { (eval echo configure:21352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21355 echo "configure: failed program was:" >&5
21356 cat conftest.$ac_ext >&5
21358 ac_cv_header_stdc=no
21366 echo "$ac_t""$ac_cv_header_stdc" 1>&6
21367 if test $ac_cv_header_stdc = yes; then
21368 cat >> confdefs.h <<\EOF
21369 #define STDC_HEADERS 1
21374 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
21375 echo "configure:21376: checking for mode_t" >&5
21376 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
21377 echo $ac_n "(cached) $ac_c" 1>&6
21379 cat > conftest.$ac_ext <<EOF
21380 #line 21381 "configure"
21381 #include "confdefs.h"
21382 #include <sys/types.h>
21384 #include <stdlib.h>
21385 #include <stddef.h>
21389 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21390 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21392 eval "ac_cv_type_mode_t=yes"
21395 eval "ac_cv_type_mode_t=no"
21400 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
21401 echo "$ac_t""yes" 1>&6
21403 echo "$ac_t""no" 1>&6
21404 cat >> confdefs.h <<EOF
21410 echo $ac_n "checking for off_t""... $ac_c" 1>&6
21411 echo "configure:21412: checking for off_t" >&5
21412 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
21413 echo $ac_n "(cached) $ac_c" 1>&6
21415 cat > conftest.$ac_ext <<EOF
21416 #line 21417 "configure"
21417 #include "confdefs.h"
21418 #include <sys/types.h>
21420 #include <stdlib.h>
21421 #include <stddef.h>
21425 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21426 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21428 eval "ac_cv_type_off_t=yes"
21431 eval "ac_cv_type_off_t=no"
21436 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
21437 echo "$ac_t""yes" 1>&6
21439 echo "$ac_t""no" 1>&6
21440 cat >> confdefs.h <<EOF
21446 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
21447 echo "configure:21448: checking for pid_t" >&5
21448 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
21449 echo $ac_n "(cached) $ac_c" 1>&6
21451 cat > conftest.$ac_ext <<EOF
21452 #line 21453 "configure"
21453 #include "confdefs.h"
21454 #include <sys/types.h>
21456 #include <stdlib.h>
21457 #include <stddef.h>
21461 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21462 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21464 eval "ac_cv_type_pid_t=yes"
21467 eval "ac_cv_type_pid_t=no"
21472 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
21473 echo "$ac_t""yes" 1>&6
21475 echo "$ac_t""no" 1>&6
21476 cat >> confdefs.h <<EOF
21482 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
21483 echo "configure:21484: checking for ptrdiff_t" >&5
21484 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
21485 echo $ac_n "(cached) $ac_c" 1>&6
21487 cat > conftest.$ac_ext <<EOF
21488 #line 21489 "configure"
21489 #include "confdefs.h"
21490 #include <stddef.h>
21495 if { (eval echo configure:21496: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21497 am_cv_type_ptrdiff_t=yes
21499 echo "configure: failed program was:" >&5
21500 cat conftest.$ac_ext >&5
21502 am_cv_type_ptrdiff_t=no
21507 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
21508 if test $am_cv_type_ptrdiff_t = yes; then
21509 cat >> confdefs.h <<\EOF
21510 #define HAVE_PTRDIFF_T 1
21515 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
21516 echo "configure:21517: checking return type of signal handlers" >&5
21517 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
21518 echo $ac_n "(cached) $ac_c" 1>&6
21520 cat > conftest.$ac_ext <<EOF
21521 #line 21522 "configure"
21522 #include "confdefs.h"
21523 #include <sys/types.h>
21524 #include <signal.h>
21529 extern "C" void (*signal (int, void (*)(int)))(int);
21531 void (*signal ()) ();
21538 if { (eval echo configure:21539: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21540 ac_cv_type_signal=void
21542 echo "configure: failed program was:" >&5
21543 cat conftest.$ac_ext >&5
21545 ac_cv_type_signal=int
21550 echo "$ac_t""$ac_cv_type_signal" 1>&6
21551 cat >> confdefs.h <<EOF
21552 #define RETSIGTYPE $ac_cv_type_signal
21556 echo $ac_n "checking for size_t""... $ac_c" 1>&6
21557 echo "configure:21558: checking for size_t" >&5
21558 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
21559 echo $ac_n "(cached) $ac_c" 1>&6
21561 cat > conftest.$ac_ext <<EOF
21562 #line 21563 "configure"
21563 #include "confdefs.h"
21564 #include <sys/types.h>
21566 #include <stdlib.h>
21567 #include <stddef.h>
21571 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21572 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21574 eval "ac_cv_type_size_t=yes"
21577 eval "ac_cv_type_size_t=no"
21582 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
21583 echo "$ac_t""yes" 1>&6
21585 echo "$ac_t""no" 1>&6
21586 cat >> confdefs.h <<EOF
21587 #define size_t unsigned
21593 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
21594 echo "configure:21595: checking for ssize_t" >&5
21595 if eval "test \"\${ac_cv_type_ssize_t+set}\" = set"; then
21596 echo $ac_n "(cached) $ac_c" 1>&6
21598 cat > conftest.$ac_ext <<EOF
21599 #line 21600 "configure"
21600 #include "confdefs.h"
21601 #include <sys/types.h>
21603 #include <stdlib.h>
21604 #include <stddef.h>
21608 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21609 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21611 eval "ac_cv_type_ssize_t=yes"
21614 eval "ac_cv_type_ssize_t=no"
21619 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
21620 echo "$ac_t""yes" 1>&6
21622 echo "$ac_t""no" 1>&6
21623 cat >> confdefs.h <<EOF
21624 #define ssize_t signed int
21629 echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
21630 echo "configure:21631: checking for caddr_t" >&5
21631 if eval "test \"\${ac_cv_type_caddr_t+set}\" = set"; then
21632 echo $ac_n "(cached) $ac_c" 1>&6
21634 cat > conftest.$ac_ext <<EOF
21635 #line 21636 "configure"
21636 #include "confdefs.h"
21637 #include <sys/types.h>
21639 #include <stdlib.h>
21640 #include <stddef.h>
21644 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21645 egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21647 eval "ac_cv_type_caddr_t=yes"
21650 eval "ac_cv_type_caddr_t=no"
21655 if eval "test \"`echo '$ac_cv_type_'caddr_t`\" = yes"; then
21656 echo "$ac_t""yes" 1>&6
21658 echo "$ac_t""no" 1>&6
21659 cat >> confdefs.h <<EOF
21660 #define caddr_t char *
21666 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
21667 echo "configure:21668: checking for socklen_t" >&5
21668 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
21669 echo $ac_n "(cached) $ac_c" 1>&6
21671 cat > conftest.$ac_ext <<EOF
21672 #line 21673 "configure"
21673 #include "confdefs.h"
21675 #ifdef HAVE_SYS_TYPES_H
21676 #include <sys/types.h>
21678 #ifdef HAVE_SYS_SOCKET_H
21679 #include <sys/socket.h>
21686 if { (eval echo configure:21687: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21688 ol_cv_type_socklen_t=yes
21690 echo "configure: failed program was:" >&5
21691 cat conftest.$ac_ext >&5
21693 ol_cv_type_socklen_t=no
21698 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
21699 if test $ol_cv_type_socklen_t = no; then
21700 cat >> confdefs.h <<\EOF
21701 #define socklen_t int
21706 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
21707 echo "configure:21708: checking for member st_blksize in aggregate type struct stat" >&5
21708 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
21709 echo $ac_n "(cached) $ac_c" 1>&6
21711 cat > conftest.$ac_ext <<EOF
21712 #line 21713 "configure"
21713 #include "confdefs.h"
21714 #include <sys/types.h>
21715 #include <sys/stat.h>
21717 struct stat foo; foo.st_blksize;
21720 if { (eval echo configure:21721: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21722 ac_cv_c_struct_member_st_blksize=yes
21724 echo "configure: failed program was:" >&5
21725 cat conftest.$ac_ext >&5
21727 ac_cv_c_struct_member_st_blksize=no
21732 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
21733 st_blksize="$ac_cv_c_struct_member_st_blksize"
21734 if test $ac_cv_c_struct_member_st_blksize = yes; then
21735 cat >> confdefs.h <<\EOF
21736 #define HAVE_ST_BLKSIZE 1
21741 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
21742 echo "configure:21743: checking whether time.h and sys/time.h may both be included" >&5
21743 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
21744 echo $ac_n "(cached) $ac_c" 1>&6
21746 cat > conftest.$ac_ext <<EOF
21747 #line 21748 "configure"
21748 #include "confdefs.h"
21749 #include <sys/types.h>
21750 #include <sys/time.h>
21756 if { (eval echo configure:21757: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21758 ac_cv_header_time=yes
21760 echo "configure: failed program was:" >&5
21761 cat conftest.$ac_ext >&5
21763 ac_cv_header_time=no
21768 echo "$ac_t""$ac_cv_header_time" 1>&6
21769 if test $ac_cv_header_time = yes; then
21770 cat >> confdefs.h <<\EOF
21771 #define TIME_WITH_SYS_TIME 1
21776 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
21777 echo "configure:21778: checking whether struct tm is in sys/time.h or time.h" >&5
21778 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
21779 echo $ac_n "(cached) $ac_c" 1>&6
21781 cat > conftest.$ac_ext <<EOF
21782 #line 21783 "configure"
21783 #include "confdefs.h"
21784 #include <sys/types.h>
21787 struct tm *tp; tp->tm_sec;
21790 if { (eval echo configure:21791: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21792 ac_cv_struct_tm=time.h
21794 echo "configure: failed program was:" >&5
21795 cat conftest.$ac_ext >&5
21797 ac_cv_struct_tm=sys/time.h
21802 echo "$ac_t""$ac_cv_struct_tm" 1>&6
21803 if test $ac_cv_struct_tm = sys/time.h; then
21804 cat >> confdefs.h <<\EOF
21805 #define TM_IN_SYS_TIME 1
21810 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
21811 echo "configure:21812: checking for uid_t in sys/types.h" >&5
21812 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
21813 echo $ac_n "(cached) $ac_c" 1>&6
21815 cat > conftest.$ac_ext <<EOF
21816 #line 21817 "configure"
21817 #include "confdefs.h"
21818 #include <sys/types.h>
21820 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21821 egrep "uid_t" >/dev/null 2>&1; then
21823 ac_cv_type_uid_t=yes
21826 ac_cv_type_uid_t=no
21832 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
21833 if test $ac_cv_type_uid_t = no; then
21834 cat >> confdefs.h <<\EOF
21838 cat >> confdefs.h <<\EOF
21844 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
21845 echo "configure:21846: checking for sig_atomic_t" >&5
21846 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
21847 echo $ac_n "(cached) $ac_c" 1>&6
21849 cat > conftest.$ac_ext <<EOF
21850 #line 21851 "configure"
21851 #include "confdefs.h"
21852 #include <signal.h>
21854 sig_atomic_t atomic;
21857 if { (eval echo configure:21858: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21859 ol_cv_type_sig_atomic_t=yes
21861 echo "configure: failed program was:" >&5
21862 cat conftest.$ac_ext >&5
21864 ol_cv_type_sig_atomic_t=no
21869 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
21870 if test $ol_cv_type_sig_atomic_t = no; then
21871 cat >> confdefs.h <<\EOF
21872 #define sig_atomic_t int
21879 # test for pw_gecos in struct passwd
21880 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
21881 echo "configure:21882: checking struct passwd for pw_gecos" >&5
21882 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
21883 echo $ac_n "(cached) $ac_c" 1>&6
21886 cat > conftest.$ac_ext <<EOF
21887 #line 21888 "configure"
21888 #include "confdefs.h"
21893 pwd.pw_gecos = pwd.pw_name;
21897 if { (eval echo configure:21898: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21899 ol_cv_struct_passwd_pw_gecos=yes
21901 echo "configure: failed program was:" >&5
21902 cat conftest.$ac_ext >&5
21904 ol_cv_struct_passwd_pw_gecos=no
21909 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
21910 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
21911 cat >> confdefs.h <<\EOF
21912 #define HAVE_PW_GECOS 1
21917 # test for pw_passwd in struct passwd
21918 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
21919 echo "configure:21920: checking struct passwd for pw_passwd" >&5
21920 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
21921 echo $ac_n "(cached) $ac_c" 1>&6
21924 cat > conftest.$ac_ext <<EOF
21925 #line 21926 "configure"
21926 #include "confdefs.h"
21931 pwd.pw_passwd = pwd.pw_name;
21935 if { (eval echo configure:21936: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21937 ol_cv_struct_passwd_pw_passwd=yes
21939 echo "configure: failed program was:" >&5
21940 cat conftest.$ac_ext >&5
21942 ol_cv_struct_passwd_pw_passwd=no
21947 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
21948 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
21949 cat >> confdefs.h <<\EOF
21950 #define HAVE_PW_PASSWD 1
21956 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
21957 echo "configure:21958: checking if toupper() requires islower()" >&5
21958 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
21959 echo $ac_n "(cached) $ac_c" 1>&6
21962 if test "$cross_compiling" = yes; then
21963 ol_cv_c_upper_lower=safe
21965 cat > conftest.$ac_ext <<EOF
21966 #line 21967 "configure"
21967 #include "confdefs.h"
21972 if ('C' == toupper('C'))
21978 if { (eval echo configure:21979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21980 ol_cv_c_upper_lower=no
21982 echo "configure: failed program was:" >&5
21983 cat conftest.$ac_ext >&5
21985 ol_cv_c_upper_lower=yes
21992 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
21993 if test $ol_cv_c_upper_lower != no ; then
21994 cat >> confdefs.h <<\EOF
21995 #define C_UPPER_LOWER 1
22000 echo $ac_n "checking for working const""... $ac_c" 1>&6
22001 echo "configure:22002: checking for working const" >&5
22002 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
22003 echo $ac_n "(cached) $ac_c" 1>&6
22005 cat > conftest.$ac_ext <<EOF
22006 #line 22007 "configure"
22007 #include "confdefs.h"
22011 /* Ultrix mips cc rejects this. */
22012 typedef int charset[2]; const charset x;
22013 /* SunOS 4.1.1 cc rejects this. */
22014 char const *const *ccp;
22016 /* NEC SVR4.0.2 mips cc rejects this. */
22017 struct point {int x, y;};
22018 static struct point const zero = {0,0};
22019 /* AIX XL C 1.02.0.0 rejects this.
22020 It does not let you subtract one const X* pointer from another in an arm
22021 of an if-expression whose if-part is not a constant expression */
22022 const char *g = "string";
22023 ccp = &g + (g ? g-g : 0);
22024 /* HPUX 7.0 cc rejects these. */
22027 ccp = (char const *const *) p;
22028 { /* SCO 3.2v4 cc rejects this. */
22030 char const *s = 0 ? (char *) 0 : (char const *) 0;
22034 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22035 int x[] = {25, 17};
22036 const int *foo = &x[0];
22039 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22040 typedef const int *iptr;
22044 { /* AIX XL C 1.02.0.0 rejects this saying
22045 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22046 struct s { int j; const int *ap[3]; };
22047 struct s *b; b->j = 5;
22049 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22050 const int foo = 10;
22055 if { (eval echo configure:22056: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22059 echo "configure: failed program was:" >&5
22060 cat conftest.$ac_ext >&5
22067 echo "$ac_t""$ac_cv_c_const" 1>&6
22068 if test $ac_cv_c_const = no; then
22069 cat >> confdefs.h <<\EOF
22075 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
22076 echo "configure:22077: checking if compiler understands volatile" >&5
22077 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
22078 echo $ac_n "(cached) $ac_c" 1>&6
22080 cat > conftest.$ac_ext <<EOF
22081 #line 22082 "configure"
22082 #include "confdefs.h"
22085 volatile int a; int * volatile b = x ? &y : &z;
22086 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
22090 if { (eval echo configure:22091: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22092 ol_cv_c_volatile=yes
22094 echo "configure: failed program was:" >&5
22095 cat conftest.$ac_ext >&5
22097 ol_cv_c_volatile=no
22102 echo "$ac_t""$ol_cv_c_volatile" 1>&6
22103 if test $ol_cv_c_volatile = yes; then
22106 cat >> confdefs.h <<\EOF
22113 if test $cross_compiling = yes ; then
22114 echo "configure: warning: Crossing compiling... all bets are off!" 1>&2
22115 cat >> confdefs.h <<\EOF
22116 #define CROSS_COMPILING 1
22120 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
22121 echo "configure:22122: checking whether byte ordering is bigendian" >&5
22122 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
22123 echo $ac_n "(cached) $ac_c" 1>&6
22125 ac_cv_c_bigendian=unknown
22126 # See if sys/param.h defines the BYTE_ORDER macro.
22127 cat > conftest.$ac_ext <<EOF
22128 #line 22129 "configure"
22129 #include "confdefs.h"
22130 #include <sys/types.h>
22131 #include <sys/param.h>
22134 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
22135 bogus endian macros
22139 if { (eval echo configure:22140: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22141 # It does; now see whether it defined to BIG_ENDIAN or not.
22142 cat > conftest.$ac_ext <<EOF
22143 #line 22144 "configure"
22144 #include "confdefs.h"
22145 #include <sys/types.h>
22146 #include <sys/param.h>
22149 #if BYTE_ORDER != BIG_ENDIAN
22154 if { (eval echo configure:22155: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22156 ac_cv_c_bigendian=yes
22158 echo "configure: failed program was:" >&5
22159 cat conftest.$ac_ext >&5
22161 ac_cv_c_bigendian=no
22165 echo "configure: failed program was:" >&5
22166 cat conftest.$ac_ext >&5
22169 if test $ac_cv_c_bigendian = unknown; then
22170 if test "$cross_compiling" = yes; then
22171 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
22173 cat > conftest.$ac_ext <<EOF
22174 #line 22175 "configure"
22175 #include "confdefs.h"
22177 /* Are we little or big endian? From Harbison&Steele. */
22181 char c[sizeof (long)];
22184 exit (u.c[sizeof (long) - 1] == 1);
22187 if { (eval echo configure:22188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
22189 ac_cv_c_bigendian=no
22191 echo "configure: failed program was:" >&5
22192 cat conftest.$ac_ext >&5
22194 ac_cv_c_bigendian=yes
22202 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
22203 if test $ac_cv_c_bigendian = yes; then
22204 cat >> confdefs.h <<\EOF
22205 #define WORDS_BIGENDIAN 1
22212 echo $ac_n "checking size of short""... $ac_c" 1>&6
22213 echo "configure:22214: checking size of short" >&5
22214 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
22215 echo $ac_n "(cached) $ac_c" 1>&6
22217 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22218 cat > conftest.$ac_ext <<EOF
22219 #line 22220 "configure"
22220 #include "confdefs.h"
22221 #include "confdefs.h"
22222 #include <stdlib.h>
22223 #include <sys/types.h>
22227 switch (0) case 0: case (sizeof (short) == $ac_size):;
22230 if { (eval echo configure:22231: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22232 ac_cv_sizeof_short=$ac_size
22234 echo "configure: failed program was:" >&5
22235 cat conftest.$ac_ext >&5
22238 if test x$ac_cv_sizeof_short != x ; then break; fi
22243 if test x$ac_cv_sizeof_short = x ; then
22244 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
22246 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
22247 cat >> confdefs.h <<EOF
22248 #define SIZEOF_SHORT $ac_cv_sizeof_short
22252 echo $ac_n "checking size of int""... $ac_c" 1>&6
22253 echo "configure:22254: checking size of int" >&5
22254 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
22255 echo $ac_n "(cached) $ac_c" 1>&6
22257 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22258 cat > conftest.$ac_ext <<EOF
22259 #line 22260 "configure"
22260 #include "confdefs.h"
22261 #include "confdefs.h"
22262 #include <stdlib.h>
22263 #include <sys/types.h>
22267 switch (0) case 0: case (sizeof (int) == $ac_size):;
22270 if { (eval echo configure:22271: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22272 ac_cv_sizeof_int=$ac_size
22274 echo "configure: failed program was:" >&5
22275 cat conftest.$ac_ext >&5
22278 if test x$ac_cv_sizeof_int != x ; then break; fi
22283 if test x$ac_cv_sizeof_int = x ; then
22284 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
22286 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
22287 cat >> confdefs.h <<EOF
22288 #define SIZEOF_INT $ac_cv_sizeof_int
22292 echo $ac_n "checking size of long""... $ac_c" 1>&6
22293 echo "configure:22294: checking size of long" >&5
22294 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
22295 echo $ac_n "(cached) $ac_c" 1>&6
22297 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22298 cat > conftest.$ac_ext <<EOF
22299 #line 22300 "configure"
22300 #include "confdefs.h"
22301 #include "confdefs.h"
22302 #include <stdlib.h>
22303 #include <sys/types.h>
22307 switch (0) case 0: case (sizeof (long) == $ac_size):;
22310 if { (eval echo configure:22311: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22312 ac_cv_sizeof_long=$ac_size
22314 echo "configure: failed program was:" >&5
22315 cat conftest.$ac_ext >&5
22318 if test x$ac_cv_sizeof_long != x ; then break; fi
22323 if test x$ac_cv_sizeof_long = x ; then
22324 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
22326 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
22327 cat >> confdefs.h <<EOF
22328 #define SIZEOF_LONG $ac_cv_sizeof_long
22332 echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
22333 echo "configure:22334: checking size of wchar_t" >&5
22334 if eval "test \"\${ac_cv_sizeof_wchar_t+set}\" = set"; then
22335 echo $ac_n "(cached) $ac_c" 1>&6
22337 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22338 cat > conftest.$ac_ext <<EOF
22339 #line 22340 "configure"
22340 #include "confdefs.h"
22341 #include "confdefs.h"
22342 #include <stdlib.h>
22343 #include <sys/types.h>
22347 switch (0) case 0: case (sizeof (wchar_t) == $ac_size):;
22350 if { (eval echo configure:22351: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22352 ac_cv_sizeof_wchar_t=$ac_size
22354 echo "configure: failed program was:" >&5
22355 cat conftest.$ac_ext >&5
22358 if test x$ac_cv_sizeof_wchar_t != x ; then break; fi
22363 if test x$ac_cv_sizeof_wchar_t = x ; then
22364 { echo "configure: error: cannot determine a size for wchar_t" 1>&2; exit 1; }
22366 echo "$ac_t""$ac_cv_sizeof_wchar_t" 1>&6
22367 cat >> confdefs.h <<EOF
22368 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
22373 if test "$ac_cv_sizeof_int" -lt 4 ; then
22374 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
22376 cat >> confdefs.h <<\EOF
22377 #define LBER_INT_T long
22381 cat >> confdefs.h <<\EOF
22382 #define LBER_INT_T int
22387 cat >> confdefs.h <<\EOF
22388 #define LBER_LEN_T long
22391 cat >> confdefs.h <<\EOF
22392 #define LBER_SOCKET_T int
22395 cat >> confdefs.h <<\EOF
22396 #define LBER_TAG_T long
22400 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
22401 echo "configure:22402: checking for 8-bit clean memcmp" >&5
22402 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
22403 echo $ac_n "(cached) $ac_c" 1>&6
22405 if test "$cross_compiling" = yes; then
22406 ac_cv_func_memcmp_clean=no
22408 cat > conftest.$ac_ext <<EOF
22409 #line 22410 "configure"
22410 #include "confdefs.h"
22414 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
22415 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
22419 if { (eval echo configure:22420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
22421 ac_cv_func_memcmp_clean=yes
22423 echo "configure: failed program was:" >&5
22424 cat conftest.$ac_ext >&5
22426 ac_cv_func_memcmp_clean=no
22433 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
22434 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
22436 echo $ac_n "checking for strftime""... $ac_c" 1>&6
22437 echo "configure:22438: checking for strftime" >&5
22438 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
22439 echo $ac_n "(cached) $ac_c" 1>&6
22441 cat > conftest.$ac_ext <<EOF
22442 #line 22443 "configure"
22443 #include "confdefs.h"
22444 /* System header to define __stub macros and hopefully few prototypes,
22445 which can conflict with char strftime(); below. */
22446 #include <assert.h>
22447 /* Override any gcc2 internal prototype to avoid an error. */
22448 /* We use char because int might match the return type of a gcc2
22449 builtin and then its argument prototype would still apply. */
22455 /* The GNU C library defines this for functions which it implements
22456 to always fail with ENOSYS. Some functions are actually named
22457 something starting with __ and the normal name is an alias. */
22458 #if defined (__stub_strftime) || defined (__stub___strftime)
22466 if { (eval echo configure:22467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22468 eval "ac_cv_func_strftime=yes"
22470 echo "configure: failed program was:" >&5
22471 cat conftest.$ac_ext >&5
22473 eval "ac_cv_func_strftime=no"
22478 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
22479 echo "$ac_t""yes" 1>&6
22480 cat >> confdefs.h <<\EOF
22481 #define HAVE_STRFTIME 1
22485 echo "$ac_t""no" 1>&6
22486 # strftime is in -lintl on SCO UNIX.
22487 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
22488 echo "configure:22489: checking for strftime in -lintl" >&5
22489 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
22490 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
22491 echo $ac_n "(cached) $ac_c" 1>&6
22493 ac_save_LIBS="$LIBS"
22494 LIBS="-lintl $LIBS"
22495 cat > conftest.$ac_ext <<EOF
22496 #line 22497 "configure"
22497 #include "confdefs.h"
22498 /* Override any gcc2 internal prototype to avoid an error. */
22499 /* We use char because int might match the return type of a gcc2
22500 builtin and then its argument prototype would still apply. */
22507 if { (eval echo configure:22508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22509 eval "ac_cv_lib_$ac_lib_var=yes"
22511 echo "configure: failed program was:" >&5
22512 cat conftest.$ac_ext >&5
22514 eval "ac_cv_lib_$ac_lib_var=no"
22517 LIBS="$ac_save_LIBS"
22520 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
22521 echo "$ac_t""yes" 1>&6
22522 cat >> confdefs.h <<\EOF
22523 #define HAVE_STRFTIME 1
22526 LIBS="-lintl $LIBS"
22528 echo "$ac_t""no" 1>&6
22534 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
22535 echo "configure:22536: checking for inet_aton()" >&5
22536 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
22537 echo $ac_n "(cached) $ac_c" 1>&6
22539 cat > conftest.$ac_ext <<EOF
22540 #line 22541 "configure"
22541 #include "confdefs.h"
22543 #ifdef HAVE_SYS_TYPES_H
22544 # include <sys/types.h>
22546 #ifdef HAVE_SYS_SOCKET_H
22547 # include <sys/socket.h>
22548 # ifdef HAVE_SYS_SELECT_H
22549 # include <sys/select.h>
22551 # include <netinet/in.h>
22552 # ifdef HAVE_ARPA_INET_H
22553 # include <arpa/inet.h>
22559 int rc = inet_aton( "255.255.255.255", &in );
22562 if { (eval echo configure:22563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22564 ol_cv_func_inet_aton=yes
22566 echo "configure: failed program was:" >&5
22567 cat conftest.$ac_ext >&5
22569 ol_cv_func_inet_aton=no
22574 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
22575 if test $ol_cv_func_inet_aton != no; then
22576 cat >> confdefs.h <<\EOF
22577 #define HAVE_INET_ATON 1
22583 echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
22584 echo "configure:22585: checking for _spawnlp" >&5
22585 if eval "test \"\${ac_cv_func__spawnlp+set}\" = set"; then
22586 echo $ac_n "(cached) $ac_c" 1>&6
22588 cat > conftest.$ac_ext <<EOF
22589 #line 22590 "configure"
22590 #include "confdefs.h"
22591 /* System header to define __stub macros and hopefully few prototypes,
22592 which can conflict with char _spawnlp(); below. */
22593 #include <assert.h>
22594 /* Override any gcc2 internal prototype to avoid an error. */
22595 /* We use char because int might match the return type of a gcc2
22596 builtin and then its argument prototype would still apply. */
22602 /* The GNU C library defines this for functions which it implements
22603 to always fail with ENOSYS. Some functions are actually named
22604 something starting with __ and the normal name is an alias. */
22605 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
22613 if { (eval echo configure:22614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22615 eval "ac_cv_func__spawnlp=yes"
22617 echo "configure: failed program was:" >&5
22618 cat conftest.$ac_ext >&5
22620 eval "ac_cv_func__spawnlp=no"
22625 if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
22626 echo "$ac_t""yes" 1>&6
22627 cat >> confdefs.h <<\EOF
22628 #define HAVE_SPAWNLP 1
22632 echo "$ac_t""no" 1>&6
22636 echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
22637 echo "configure:22638: checking for _snprintf" >&5
22638 if eval "test \"\${ac_cv_func__snprintf+set}\" = set"; then
22639 echo $ac_n "(cached) $ac_c" 1>&6
22641 cat > conftest.$ac_ext <<EOF
22642 #line 22643 "configure"
22643 #include "confdefs.h"
22644 /* System header to define __stub macros and hopefully few prototypes,
22645 which can conflict with char _snprintf(); below. */
22646 #include <assert.h>
22647 /* Override any gcc2 internal prototype to avoid an error. */
22648 /* We use char because int might match the return type of a gcc2
22649 builtin and then its argument prototype would still apply. */
22655 /* The GNU C library defines this for functions which it implements
22656 to always fail with ENOSYS. Some functions are actually named
22657 something starting with __ and the normal name is an alias. */
22658 #if defined (__stub__snprintf) || defined (__stub____snprintf)
22666 if { (eval echo configure:22667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22668 eval "ac_cv_func__snprintf=yes"
22670 echo "configure: failed program was:" >&5
22671 cat conftest.$ac_ext >&5
22673 eval "ac_cv_func__snprintf=no"
22678 if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
22679 echo "$ac_t""yes" 1>&6
22680 ac_cv_func_snprintf=yes
22681 cat >> confdefs.h <<\EOF
22682 #define snprintf _snprintf
22687 echo "$ac_t""no" 1>&6
22691 echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
22692 echo "configure:22693: checking for _vsnprintf" >&5
22693 if eval "test \"\${ac_cv_func__vsnprintf+set}\" = set"; then
22694 echo $ac_n "(cached) $ac_c" 1>&6
22696 cat > conftest.$ac_ext <<EOF
22697 #line 22698 "configure"
22698 #include "confdefs.h"
22699 /* System header to define __stub macros and hopefully few prototypes,
22700 which can conflict with char _vsnprintf(); below. */
22701 #include <assert.h>
22702 /* Override any gcc2 internal prototype to avoid an error. */
22703 /* We use char because int might match the return type of a gcc2
22704 builtin and then its argument prototype would still apply. */
22710 /* The GNU C library defines this for functions which it implements
22711 to always fail with ENOSYS. Some functions are actually named
22712 something starting with __ and the normal name is an alias. */
22713 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
22721 if { (eval echo configure:22722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22723 eval "ac_cv_func__vsnprintf=yes"
22725 echo "configure: failed program was:" >&5
22726 cat conftest.$ac_ext >&5
22728 eval "ac_cv_func__vsnprintf=no"
22733 if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
22734 echo "$ac_t""yes" 1>&6
22735 ac_cv_func_vsnprintf=yes
22736 cat >> confdefs.h <<\EOF
22737 #define vsnprintf _vsnprintf
22742 echo "$ac_t""no" 1>&6
22746 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
22747 echo "configure:22748: checking for vprintf" >&5
22748 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
22749 echo $ac_n "(cached) $ac_c" 1>&6
22751 cat > conftest.$ac_ext <<EOF
22752 #line 22753 "configure"
22753 #include "confdefs.h"
22754 /* System header to define __stub macros and hopefully few prototypes,
22755 which can conflict with char vprintf(); below. */
22756 #include <assert.h>
22757 /* Override any gcc2 internal prototype to avoid an error. */
22758 /* We use char because int might match the return type of a gcc2
22759 builtin and then its argument prototype would still apply. */
22765 /* The GNU C library defines this for functions which it implements
22766 to always fail with ENOSYS. Some functions are actually named
22767 something starting with __ and the normal name is an alias. */
22768 #if defined (__stub_vprintf) || defined (__stub___vprintf)
22776 if { (eval echo configure:22777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22778 eval "ac_cv_func_vprintf=yes"
22780 echo "configure: failed program was:" >&5
22781 cat conftest.$ac_ext >&5
22783 eval "ac_cv_func_vprintf=no"
22788 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
22789 echo "$ac_t""yes" 1>&6
22790 cat >> confdefs.h <<\EOF
22791 #define HAVE_VPRINTF 1
22795 echo "$ac_t""no" 1>&6
22798 if test "$ac_cv_func_vprintf" != yes; then
22799 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
22800 echo "configure:22801: checking for _doprnt" >&5
22801 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
22802 echo $ac_n "(cached) $ac_c" 1>&6
22804 cat > conftest.$ac_ext <<EOF
22805 #line 22806 "configure"
22806 #include "confdefs.h"
22807 /* System header to define __stub macros and hopefully few prototypes,
22808 which can conflict with char _doprnt(); below. */
22809 #include <assert.h>
22810 /* Override any gcc2 internal prototype to avoid an error. */
22811 /* We use char because int might match the return type of a gcc2
22812 builtin and then its argument prototype would still apply. */
22818 /* The GNU C library defines this for functions which it implements
22819 to always fail with ENOSYS. Some functions are actually named
22820 something starting with __ and the normal name is an alias. */
22821 #if defined (__stub__doprnt) || defined (__stub____doprnt)
22829 if { (eval echo configure:22830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22831 eval "ac_cv_func__doprnt=yes"
22833 echo "configure: failed program was:" >&5
22834 cat conftest.$ac_ext >&5
22836 eval "ac_cv_func__doprnt=no"
22841 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
22842 echo "$ac_t""yes" 1>&6
22843 cat >> confdefs.h <<\EOF
22844 #define HAVE_DOPRNT 1
22848 echo "$ac_t""no" 1>&6
22854 if test $ac_cv_func_vprintf = yes ; then
22855 for ac_func in snprintf vsnprintf
22857 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22858 echo "configure:22859: checking for $ac_func" >&5
22859 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
22860 echo $ac_n "(cached) $ac_c" 1>&6
22862 cat > conftest.$ac_ext <<EOF
22863 #line 22864 "configure"
22864 #include "confdefs.h"
22865 /* System header to define __stub macros and hopefully few prototypes,
22866 which can conflict with char $ac_func(); below. */
22867 #include <assert.h>
22868 /* Override any gcc2 internal prototype to avoid an error. */
22869 /* We use char because int might match the return type of a gcc2
22870 builtin and then its argument prototype would still apply. */
22876 /* The GNU C library defines this for functions which it implements
22877 to always fail with ENOSYS. Some functions are actually named
22878 something starting with __ and the normal name is an alias. */
22879 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22887 if { (eval echo configure:22888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22889 eval "ac_cv_func_$ac_func=yes"
22891 echo "configure: failed program was:" >&5
22892 cat conftest.$ac_ext >&5
22894 eval "ac_cv_func_$ac_func=no"
22899 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22900 echo "$ac_t""yes" 1>&6
22901 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22902 cat >> confdefs.h <<EOF
22903 #define $ac_tr_func 1
22907 echo "$ac_t""no" 1>&6
22972 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22973 echo "configure:22974: checking for $ac_func" >&5
22974 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
22975 echo $ac_n "(cached) $ac_c" 1>&6
22977 cat > conftest.$ac_ext <<EOF
22978 #line 22979 "configure"
22979 #include "confdefs.h"
22980 /* System header to define __stub macros and hopefully few prototypes,
22981 which can conflict with char $ac_func(); below. */
22982 #include <assert.h>
22983 /* Override any gcc2 internal prototype to avoid an error. */
22984 /* We use char because int might match the return type of a gcc2
22985 builtin and then its argument prototype would still apply. */
22991 /* The GNU C library defines this for functions which it implements
22992 to always fail with ENOSYS. Some functions are actually named
22993 something starting with __ and the normal name is an alias. */
22994 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23002 if { (eval echo configure:23003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23004 eval "ac_cv_func_$ac_func=yes"
23006 echo "configure: failed program was:" >&5
23007 cat conftest.$ac_ext >&5
23009 eval "ac_cv_func_$ac_func=no"
23014 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
23015 echo "$ac_t""yes" 1>&6
23016 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23017 cat >> confdefs.h <<EOF
23018 #define $ac_tr_func 1
23022 echo "$ac_t""no" 1>&6
23027 for ac_func in getopt getpeereid
23029 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
23030 echo "configure:23031: checking for $ac_func" >&5
23031 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
23032 echo $ac_n "(cached) $ac_c" 1>&6
23034 cat > conftest.$ac_ext <<EOF
23035 #line 23036 "configure"
23036 #include "confdefs.h"
23037 /* System header to define __stub macros and hopefully few prototypes,
23038 which can conflict with char $ac_func(); below. */
23039 #include <assert.h>
23040 /* Override any gcc2 internal prototype to avoid an error. */
23041 /* We use char because int might match the return type of a gcc2
23042 builtin and then its argument prototype would still apply. */
23048 /* The GNU C library defines this for functions which it implements
23049 to always fail with ENOSYS. Some functions are actually named
23050 something starting with __ and the normal name is an alias. */
23051 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23059 if { (eval echo configure:23060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23061 eval "ac_cv_func_$ac_func=yes"
23063 echo "configure: failed program was:" >&5
23064 cat conftest.$ac_ext >&5
23066 eval "ac_cv_func_$ac_func=no"
23071 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
23072 echo "$ac_t""yes" 1>&6
23073 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23074 cat >> confdefs.h <<EOF
23075 #define $ac_tr_func 1
23079 echo "$ac_t""no" 1>&6
23080 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
23086 if test "$ac_cv_func_getopt" != yes; then
23087 LIBSRCS="$LIBSRCS getopt.c"
23089 if test "$ac_cv_func_getpeereid" != yes; then
23090 echo $ac_n "checking for msg_accrights in msghdr""... $ac_c" 1>&6
23091 echo "configure:23092: checking for msg_accrights in msghdr" >&5
23092 if eval "test \"\${ol_cv_msghdr_msg_accrights+set}\" = set"; then
23093 echo $ac_n "(cached) $ac_c" 1>&6
23095 cat > conftest.$ac_ext <<EOF
23096 #line 23097 "configure"
23097 #include "confdefs.h"
23098 #include <sys/socket.h>
23100 struct msghdr m; m.msg_accrightslen=0
23103 if { (eval echo configure:23104: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23105 ol_cv_msghdr_msg_accrights=yes
23107 echo "configure: failed program was:" >&5
23108 cat conftest.$ac_ext >&5
23110 ol_cv_msghdr_msg_accrights=no
23116 echo "$ac_t""$ol_cv_msghdr_msg_accrights" 1>&6
23117 if test $ol_cv_msghdr_msg_accrights = "yes" ; then
23118 cat >> confdefs.h <<\EOF
23119 #define HAVE_MSGHDR_MSG_ACCRIGHTS 1
23124 LIBSRCS="$LIBSRCS getpeereid.c"
23126 if test "$ac_cv_func_snprintf" != yes -o "$ac_cv_func_vsnprintf" != yes; then
23127 if test "$ac_cv_func_snprintf" != yes; then
23128 cat >> confdefs.h <<\EOF
23129 #define snprintf ber_pvt_snprintf
23133 if test "$ac_cv_func_vsnprintf" != yes; then
23134 cat >> confdefs.h <<\EOF
23135 #define vsnprintf ber_pvt_vsnprintf
23141 # Check Configuration
23142 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
23143 echo "configure:23144: checking declaration of sys_errlist" >&5
23144 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
23145 echo $ac_n "(cached) $ac_c" 1>&6
23148 cat > conftest.$ac_ext <<EOF
23149 #line 23150 "configure"
23150 #include "confdefs.h"
23153 #include <sys/types.h>
23156 #include <stdlib.h>
23159 char *c = (char *) *sys_errlist
23162 if { (eval echo configure:23163: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23164 ol_cv_dcl_sys_errlist=yes
23165 ol_cv_have_sys_errlist=yes
23167 echo "configure: failed program was:" >&5
23168 cat conftest.$ac_ext >&5
23170 ol_cv_dcl_sys_errlist=no
23175 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
23177 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
23178 if test $ol_cv_dcl_sys_errlist = no ; then
23179 cat >> confdefs.h <<\EOF
23180 #define DECL_SYS_ERRLIST 1
23184 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
23185 echo "configure:23186: checking existence of sys_errlist" >&5
23186 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
23187 echo $ac_n "(cached) $ac_c" 1>&6
23190 cat > conftest.$ac_ext <<EOF
23191 #line 23192 "configure"
23192 #include "confdefs.h"
23195 char *c = (char *) *sys_errlist
23198 if { (eval echo configure:23199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23200 ol_cv_have_sys_errlist=yes
23202 echo "configure: failed program was:" >&5
23203 cat conftest.$ac_ext >&5
23205 ol_cv_have_sys_errlist=no
23210 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
23212 if test $ol_cv_have_sys_errlist = yes ; then
23213 cat >> confdefs.h <<\EOF
23214 #define HAVE_SYS_ERRLIST 1
23221 if test "$ol_enable_slapi" != no ; then
23222 for ac_hdr in ltdl.h
23224 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
23225 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
23226 echo "configure:23227: checking for $ac_hdr" >&5
23227 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
23228 echo $ac_n "(cached) $ac_c" 1>&6
23230 cat > conftest.$ac_ext <<EOF
23231 #line 23232 "configure"
23232 #include "confdefs.h"
23235 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
23236 { (eval echo configure:23237: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
23237 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
23238 if test -z "$ac_err"; then
23240 eval "ac_cv_header_$ac_safe=yes"
23243 echo "configure: failed program was:" >&5
23244 cat conftest.$ac_ext >&5
23246 eval "ac_cv_header_$ac_safe=no"
23250 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
23251 echo "$ac_t""yes" 1>&6
23252 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
23253 cat >> confdefs.h <<EOF
23254 #define $ac_tr_hdr 1
23258 echo "$ac_t""no" 1>&6
23263 if test $ac_cv_header_ltdl_h != yes ; then
23264 { echo "configure: error: could not locate <ltdl.h>" 1>&2; exit 1; }
23266 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
23267 echo "configure:23268: checking for lt_dlinit in -lltdl" >&5
23268 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
23269 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
23270 echo $ac_n "(cached) $ac_c" 1>&6
23272 ac_save_LIBS="$LIBS"
23273 LIBS="-lltdl $LIBS"
23274 cat > conftest.$ac_ext <<EOF
23275 #line 23276 "configure"
23276 #include "confdefs.h"
23277 /* Override any gcc2 internal prototype to avoid an error. */
23278 /* We use char because int might match the return type of a gcc2
23279 builtin and then its argument prototype would still apply. */
23286 if { (eval echo configure:23287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23288 eval "ac_cv_lib_$ac_lib_var=yes"
23290 echo "configure: failed program was:" >&5
23291 cat conftest.$ac_ext >&5
23293 eval "ac_cv_lib_$ac_lib_var=no"
23296 LIBS="$ac_save_LIBS"
23299 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
23300 echo "$ac_t""yes" 1>&6
23303 LIBSLAPI=libslapi.a
23304 LIBSLAPITOOLS=../libslapi.a
23305 cat >> confdefs.h <<\EOF
23306 #define HAVE_LIBLTDL 1
23311 echo "$ac_t""no" 1>&6
23312 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
23316 cat >> confdefs.h <<\EOF
23317 #define LDAP_SLAPI 1
23322 if test "$ol_enable_debug" != no ; then
23323 cat >> confdefs.h <<\EOF
23324 #define LDAP_DEBUG 1
23328 if test "$ol_enable_syslog" = yes ; then
23329 cat >> confdefs.h <<\EOF
23330 #define LDAP_SYSLOG 1
23334 if test "$ol_link_kbind" != no ; then
23335 cat >> confdefs.h <<\EOF
23336 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
23340 if test "$ol_enable_proctitle" != no ; then
23341 cat >> confdefs.h <<\EOF
23342 #define LDAP_PROCTITLE 1
23346 if test "$ol_enable_referrals" != no ; then
23347 cat >> confdefs.h <<\EOF
23348 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
23352 if test "$ol_enable_local" != no; then
23353 cat >> confdefs.h <<\EOF
23354 #define LDAP_PF_LOCAL 1
23358 if test "$ol_link_ipv6" != no; then
23359 cat >> confdefs.h <<\EOF
23360 #define LDAP_PF_INET6 1
23364 if test "$ol_enable_cleartext" != no ; then
23365 cat >> confdefs.h <<\EOF
23366 #define SLAPD_CLEARTEXT 1
23370 if test "$ol_enable_crypt" != no ; then
23371 cat >> confdefs.h <<\EOF
23372 #define SLAPD_CRYPT 1
23376 if test "$ol_link_spasswd" != no ; then
23377 cat >> confdefs.h <<\EOF
23378 #define SLAPD_SPASSWD 1
23382 if test "$ol_enable_multimaster" != no ; then
23383 cat >> confdefs.h <<\EOF
23384 #define SLAPD_MULTIMASTER 1
23388 if test "$ol_enable_rlookups" != no ; then
23389 cat >> confdefs.h <<\EOF
23390 #define SLAPD_RLOOKUPS 1
23394 if test "$ol_enable_aci" != no ; then
23395 cat >> confdefs.h <<\EOF
23396 #define SLAPD_ACI_ENABLED 1
23401 if test "$ol_link_modules" != no ; then
23402 cat >> confdefs.h <<\EOF
23403 #define SLAPD_MODULES 1
23407 SLAPD_MODULES_LDFLAGS="-dlopen self"
23410 cat >> confdefs.h <<\EOF
23411 #define SLAPD_MOD_STATIC 1
23414 cat >> confdefs.h <<\EOF
23415 #define SLAPD_MOD_DYNAMIC 2
23419 if test "$ol_enable_bdb" != no ; then
23421 BUILD_BDB=$ol_enable_bdb
23422 if test "$ol_enable_bdb" = mod ; then
23423 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
23424 MFLAG=SLAPD_MOD_DYNAMIC
23426 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
23427 MFLAG=SLAPD_MOD_STATIC
23429 cat >> confdefs.h <<EOF
23430 #define SLAPD_BDB $MFLAG
23435 if test "$ol_enable_dnssrv" != no ; then
23437 BUILD_DNSSRV=$ol_enable_dnssrv
23438 if test "$ol_enable_dnssrv" = mod ; then
23439 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
23440 MFLAG=SLAPD_MOD_DYNAMIC
23442 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
23443 MFLAG=SLAPD_MOD_STATIC
23445 cat >> confdefs.h <<EOF
23446 #define SLAPD_DNSSRV $MFLAG
23451 if test "$ol_enable_hdb" != no ; then
23453 BUILD_HDB=$ol_enable_hdb
23454 if test "$ol_enable_hdb" = mod ; then
23455 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
23456 MFLAG=SLAPD_MOD_DYNAMIC
23458 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
23459 MFLAG=SLAPD_MOD_STATIC
23461 cat >> confdefs.h <<EOF
23462 #define SLAPD_HDB $MFLAG
23467 if test "$ol_enable_ldap" != no ; then
23469 BUILD_LDAP=$ol_enable_ldap
23470 if test "$ol_enable_ldap" = mod ; then
23471 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
23472 MFLAG=SLAPD_MOD_DYNAMIC
23474 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
23475 MFLAG=SLAPD_MOD_STATIC
23477 cat >> confdefs.h <<EOF
23478 #define SLAPD_LDAP $MFLAG
23483 if test "$ol_link_ldbm" != no -a $ol_enable_ldbm != no; then
23485 BUILD_LDBM=$ol_enable_ldbm
23486 if test "$ol_enable_ldbm" = mod ; then
23487 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
23488 MFLAG=SLAPD_MOD_DYNAMIC
23490 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
23491 MFLAG=SLAPD_MOD_STATIC
23493 cat >> confdefs.h <<EOF
23494 #define SLAPD_LDBM $MFLAG
23499 if test "$ol_enable_meta" != no ; then
23501 BUILD_META=$ol_enable_meta
23503 if test "$ol_enable_meta" = mod ; then
23504 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
23505 MFLAG=SLAPD_MOD_DYNAMIC
23507 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
23508 MFLAG=SLAPD_MOD_STATIC
23510 cat >> confdefs.h <<EOF
23511 #define SLAPD_META $MFLAG
23516 if test "$ol_enable_monitor" != no ; then
23518 BUILD_MONITOR=$ol_enable_monitor
23519 if test "$ol_enable_monitor" = mod ; then
23520 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
23521 MFLAG=SLAPD_MOD_DYNAMIC
23523 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
23524 MFLAG=SLAPD_MOD_STATIC
23526 cat >> confdefs.h <<EOF
23527 #define SLAPD_MONITOR $MFLAG
23532 if test "$ol_enable_null" != no ; then
23534 BUILD_NULL=$ol_enable_null
23535 if test "$ol_enable_null" = mod ; then
23536 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
23537 MFLAG=SLAPD_MOD_DYNAMIC
23539 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
23540 MFLAG=SLAPD_MOD_STATIC
23542 cat >> confdefs.h <<EOF
23543 #define SLAPD_NULL $MFLAG
23548 if test "$ol_enable_passwd" != no ; then
23550 BUILD_PASSWD=$ol_enable_passwd
23551 if test "$ol_enable_passwd" = mod ; then
23552 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
23553 MFLAG=SLAPD_MOD_DYNAMIC
23555 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
23556 MFLAG=SLAPD_MOD_STATIC
23558 cat >> confdefs.h <<EOF
23559 #define SLAPD_PASSWD $MFLAG
23564 if test "$ol_link_perl" != no ; then
23566 BUILD_PERL=$ol_enable_perl
23567 if test "$ol_enable_perl" = mod ; then
23568 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
23569 MFLAG=SLAPD_MOD_DYNAMIC
23571 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
23572 MFLAG=SLAPD_MOD_STATIC
23574 cat >> confdefs.h <<EOF
23575 #define SLAPD_PERL $MFLAG
23580 if test "$ol_enable_relay" != no ; then
23582 BUILD_RELAY=$ol_enable_relay
23583 if test "$ol_enable_relay" = mod ; then
23584 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
23585 MFLAG=SLAPD_MOD_DYNAMIC
23587 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
23588 MFLAG=SLAPD_MOD_STATIC
23590 cat >> confdefs.h <<EOF
23591 #define SLAPD_RELAY $MFLAG
23596 if test "$ol_enable_shell" != no ; then
23597 if test "$ol_link_thread" != no ; then
23598 echo "configure: warning: Use of --without-threads is recommended with back-shell" 1>&2
23601 BUILD_SHELL=$ol_enable_shell
23602 if test "$ol_enable_shell" = mod ; then
23603 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
23604 MFLAG=SLAPD_MOD_DYNAMIC
23606 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
23607 MFLAG=SLAPD_MOD_STATIC
23609 cat >> confdefs.h <<EOF
23610 #define SLAPD_SHELL $MFLAG
23615 if test "$ol_link_sql" != no ; then
23617 BUILD_SQL=$ol_enable_sql
23618 if test "$ol_enable_sql" = mod; then
23619 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
23620 MFLAG=SLAPD_MOD_DYNAMIC
23622 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
23623 MFLAG=SLAPD_MOD_STATIC
23625 cat >> confdefs.h <<EOF
23626 #define SLAPD_SQL $MFLAG
23631 if test "$ol_enable_chain" != no ; then
23632 BUILD_CHAIN=$ol_enable_chain
23633 if test "$ol_enable_chain" = mod ; then
23634 MFLAG=SLAPD_MOD_DYNAMIC
23635 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS chain.la"
23637 MFLAG=SLAPD_MOD_STATIC
23639 cat >> confdefs.h <<EOF
23640 #define SLAPD_OVER_CHAIN $MFLAG
23645 if test "$ol_enable_denyop" != no ; then
23646 BUILD_DENYOP=$ol_enable_denyop
23647 if test "$ol_enable_denyop" = mod ; then
23648 MFLAG=SLAPD_MOD_DYNAMIC
23649 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS denyop.la"
23651 MFLAG=SLAPD_MOD_STATIC
23653 cat >> confdefs.h <<EOF
23654 #define SLAPD_OVER_DENYOP $MFLAG
23659 if test "$ol_enable_dyngroup" != no ; then
23660 BUILD_DYNGROUP=$ol_enable_dyngroup
23661 if test "$ol_enable_dyngroup" = mod ; then
23662 MFLAG=SLAPD_MOD_DYNAMIC
23663 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
23665 MFLAG=SLAPD_MOD_STATIC
23667 cat >> confdefs.h <<EOF
23668 #define SLAPD_OVER_DYNGROUP $MFLAG
23673 if test "$ol_enable_lastmod" != no ; then
23674 BUILD_LASTMOD=$ol_enable_lastmod
23675 if test "$ol_enable_lastmod" = mod ; then
23676 MFLAG=SLAPD_MOD_DYNAMIC
23677 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS lastmod.la"
23679 MFLAG=SLAPD_MOD_STATIC
23681 cat >> confdefs.h <<EOF
23682 #define SLAPD_OVER_LASTMOD $MFLAG
23687 if test "$ol_enable_ppolicy" != no ; then
23688 BUILD_PPOLICY=$ol_enable_ppolicy
23689 if test "$ol_enable_ppolicy" = mod ; then
23690 MFLAG=SLAPD_MOD_DYNAMIC
23691 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
23693 MFLAG=SLAPD_MOD_STATIC
23695 cat >> confdefs.h <<EOF
23696 #define SLAPD_OVER_PPOLICY $MFLAG
23701 if test "$ol_enable_proxycache" != no ; then
23702 BUILD_PROXYCACHE=$ol_enable_proxycache
23703 if test "$ol_enable_proxycache" = mod ; then
23704 MFLAG=SLAPD_MOD_DYNAMIC
23705 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
23707 MFLAG=SLAPD_MOD_STATIC
23709 cat >> confdefs.h <<EOF
23710 #define SLAPD_OVER_PROXYCACHE $MFLAG
23715 if test "$ol_enable_refint" != no ; then
23716 BUILD_REFINT=$ol_enable_refint
23717 if test "$ol_enable_refint" = mod ; then
23718 MFLAG=SLAPD_MOD_DYNAMIC
23719 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
23721 MFLAG=SLAPD_MOD_STATIC
23723 cat >> confdefs.h <<EOF
23724 #define SLAPD_OVER_REFINT $MFLAG
23729 if test "$ol_enable_rwm" != no ; then
23731 BUILD_RWM=$ol_enable_rwm
23732 if test "$ol_enable_rwm" = mod ; then
23733 MFLAG=SLAPD_MOD_DYNAMIC
23734 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
23736 MFLAG=SLAPD_MOD_STATIC
23738 cat >> confdefs.h <<EOF
23739 #define SLAPD_OVER_RWM $MFLAG
23744 if test "$ol_enable_unique" != no ; then
23745 BUILD_UNIQUE=$ol_enable_unique
23746 if test "$ol_enable_unique" = mod ; then
23747 MFLAG=SLAPD_MOD_DYNAMIC
23748 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
23750 MFLAG=SLAPD_MOD_STATIC
23752 cat >> confdefs.h <<EOF
23753 #define SLAPD_OVER_UNIQUE $MFLAG
23758 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
23759 $BUILD_SLAPD = yes ; then
23763 if test "$ol_enable_rewrite" != no ; then
23764 cat >> confdefs.h <<\EOF
23765 #define ENABLE_REWRITE 1
23771 if test "$ol_enable_slapi" != no ; then
23772 cat >> confdefs.h <<\EOF
23773 #define ENABLE_SLAPI 1
23777 SLAPD_SLAPI_DEPEND=libslapi.a
23782 if test "$ac_cv_mingw32" = yes ; then
23784 SLAPD_MODULES_LDFLAGS=
23789 if test -z "$SLAPD_STATIC_BACKENDS"; then
23790 SLAPD_NO_STATIC='#'
23863 # Check whether --with-xxinstall or --without-xxinstall was given.
23864 if test "${with_xxinstall+set}" = set; then
23865 withval="$with_xxinstall"
23873 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
23875 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23876 # Let make expand exec_prefix.
23877 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23879 # Any assignment to VPATH causes Sun make to only execute
23880 # the first set of double-colon rules, so remove it if not needed.
23881 # If there is a colon in the path, we need to keep it.
23882 if test "x$srcdir" = x.; then
23883 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
23886 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
23888 DEFS=-DHAVE_CONFIG_H
23890 # Without the "./", some shells look in PATH for config.status.
23891 : ${CONFIG_STATUS=./config.status}
23893 echo creating $CONFIG_STATUS
23894 rm -f $CONFIG_STATUS
23895 cat > $CONFIG_STATUS <<EOF
23897 # Generated automatically by configure.
23898 # Run this file to recreate the current configuration.
23899 # This directory was configured as follows,
23900 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23902 # $0 $ac_configure_args
23904 # Compiler output produced by configure, useful for debugging
23905 # configure, is in ./config.log if it exists.
23907 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
23910 case "\$ac_option" in
23911 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23912 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
23913 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
23914 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
23915 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
23917 -help | --help | --hel | --he | --h)
23918 echo "\$ac_cs_usage"; exit 0 ;;
23919 *) echo "\$ac_cs_usage"; exit 1 ;;
23923 ac_given_srcdir=$srcdir
23924 ac_given_INSTALL="$INSTALL"
23926 trap 'rm -fr `echo "\
23927 Makefile:build/top.mk:Makefile.in:build/dir.mk \
23928 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
23929 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
23930 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
23931 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
23932 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
23933 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
23934 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
23935 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
23936 include/Makefile:build/top.mk:include/Makefile.in \
23937 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
23938 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
23939 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
23940 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
23941 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
23942 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
23943 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
23944 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
23945 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
23946 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
23947 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
23948 servers/slapd/back-hdb/Makefile:build/top.mk:servers/slapd/back-hdb/Makefile.in:build/mod.mk \
23949 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
23950 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
23951 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
23952 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
23953 servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk \
23954 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
23955 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
23956 servers/slapd/back-relay/Makefile:build/top.mk:servers/slapd/back-relay/Makefile.in:build/mod.mk \
23957 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
23958 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
23959 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
23960 servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk \
23961 servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk \
23962 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
23963 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
23965 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
23966 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
23968 cat >> $CONFIG_STATUS <<EOF
23970 # Protect against being on the right side of a sed subst in config.status.
23971 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
23972 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
23976 s%@CFLAGS@%$CFLAGS%g
23977 s%@CPPFLAGS@%$CPPFLAGS%g
23978 s%@CXXFLAGS@%$CXXFLAGS%g
23979 s%@FFLAGS@%$FFLAGS%g
23981 s%@LDFLAGS@%$LDFLAGS%g
23983 s%@exec_prefix@%$exec_prefix%g
23984 s%@prefix@%$prefix%g
23985 s%@program_transform_name@%$program_transform_name%g
23986 s%@bindir@%$bindir%g
23987 s%@sbindir@%$sbindir%g
23988 s%@libexecdir@%$libexecdir%g
23989 s%@datadir@%$datadir%g
23990 s%@sysconfdir@%$sysconfdir%g
23991 s%@sharedstatedir@%$sharedstatedir%g
23992 s%@localstatedir@%$localstatedir%g
23993 s%@libdir@%$libdir%g
23994 s%@includedir@%$includedir%g
23995 s%@oldincludedir@%$oldincludedir%g
23996 s%@infodir@%$infodir%g
23997 s%@mandir@%$mandir%g
23999 s%@host_alias@%$host_alias%g
24000 s%@host_cpu@%$host_cpu%g
24001 s%@host_vendor@%$host_vendor%g
24002 s%@host_os@%$host_os%g
24003 s%@target@%$target%g
24004 s%@target_alias@%$target_alias%g
24005 s%@target_cpu@%$target_cpu%g
24006 s%@target_vendor@%$target_vendor%g
24007 s%@target_os@%$target_os%g
24009 s%@build_alias@%$build_alias%g
24010 s%@build_cpu@%$build_cpu%g
24011 s%@build_vendor@%$build_vendor%g
24012 s%@build_os@%$build_os%g
24013 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
24014 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
24015 s%@INSTALL_DATA@%$INSTALL_DATA%g
24016 s%@PACKAGE@%$PACKAGE%g
24017 s%@VERSION@%$VERSION%g
24018 s%@ACLOCAL@%$ACLOCAL%g
24019 s%@AUTOCONF@%$AUTOCONF%g
24020 s%@AUTOMAKE@%$AUTOMAKE%g
24021 s%@AUTOHEADER@%$AUTOHEADER%g
24022 s%@MAKEINFO@%$MAKEINFO%g
24023 s%@install_sh@%$install_sh%g
24026 s%@AMTARFLAGS@%$AMTARFLAGS%g
24027 s%@SET_MAKE@%$SET_MAKE%g
24028 s%@OPENLDAP_LIBRELEASE@%$OPENLDAP_LIBRELEASE%g
24029 s%@OPENLDAP_LIBVERSION@%$OPENLDAP_LIBVERSION%g
24030 s%@OPENLDAP_RELEASE_DATE@%$OPENLDAP_RELEASE_DATE%g
24031 s%@top_builddir@%$top_builddir%g
24032 s%@ldap_subdir@%$ldap_subdir%g
24036 s%@OBJEXT@%$OBJEXT%g
24037 s%@EXEEXT@%$EXEEXT%g
24039 s%@RANLIB@%$RANLIB%g
24041 s%@DLLTOOL@%$DLLTOOL%g
24043 s%@OBJDUMP@%$OBJDUMP%g
24045 s%@LIBTOOL@%$LIBTOOL%g
24047 s%@PERLBIN@%$PERLBIN%g
24048 s%@OL_MKDEP@%$OL_MKDEP%g
24049 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
24050 s%@LTSTATIC@%$LTSTATIC%g
24051 s%@LIBOBJS@%$LIBOBJS%g
24052 s%@LIBSRCS@%$LIBSRCS%g
24054 s%@WITH_TLS@%$WITH_TLS%g
24055 s%@BUILD_LIBS_DYNAMIC@%$BUILD_LIBS_DYNAMIC%g
24056 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
24057 s%@BUILD_SLAPI@%$BUILD_SLAPI%g
24058 s%@SLAPD_SLAPI_DEPEND@%$SLAPD_SLAPI_DEPEND%g
24059 s%@BUILD_BDB@%$BUILD_BDB%g
24060 s%@BUILD_DNSSRV@%$BUILD_DNSSRV%g
24061 s%@BUILD_HDB@%$BUILD_HDB%g
24062 s%@BUILD_LDAP@%$BUILD_LDAP%g
24063 s%@BUILD_LDBM@%$BUILD_LDBM%g
24064 s%@BUILD_META@%$BUILD_META%g
24065 s%@BUILD_MONITOR@%$BUILD_MONITOR%g
24066 s%@BUILD_NULL@%$BUILD_NULL%g
24067 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
24068 s%@BUILD_RELAY@%$BUILD_RELAY%g
24069 s%@BUILD_PERL@%$BUILD_PERL%g
24070 s%@BUILD_SHELL@%$BUILD_SHELL%g
24071 s%@BUILD_SQL@%$BUILD_SQL%g
24072 s%@BUILD_CHAIN@%$BUILD_CHAIN%g
24073 s%@BUILD_DENYOP@%$BUILD_DENYOP%g
24074 s%@BUILD_DYNGROUP@%$BUILD_DYNGROUP%g
24075 s%@BUILD_LASTMOD@%$BUILD_LASTMOD%g
24076 s%@BUILD_PPOLICY@%$BUILD_PPOLICY%g
24077 s%@BUILD_PROXYCACHE@%$BUILD_PROXYCACHE%g
24078 s%@BUILD_REFINT@%$BUILD_REFINT%g
24079 s%@BUILD_RWM@%$BUILD_RWM%g
24080 s%@BUILD_UNIQUE@%$BUILD_UNIQUE%g
24081 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
24082 s%@LDAP_LIBS@%$LDAP_LIBS%g
24083 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
24084 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
24085 s%@LDBM_LIBS@%$LDBM_LIBS%g
24086 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
24087 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
24088 s%@WRAP_LIBS@%$WRAP_LIBS%g
24089 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
24090 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
24091 s%@SLAPD_NO_STATIC@%$SLAPD_NO_STATIC%g
24092 s%@SLAPD_STATIC_BACKENDS@%$SLAPD_STATIC_BACKENDS%g
24093 s%@SLAPD_DYNAMIC_BACKENDS@%$SLAPD_DYNAMIC_BACKENDS%g
24094 s%@SLAPD_DYNAMIC_OVERLAYS@%$SLAPD_DYNAMIC_OVERLAYS%g
24095 s%@PERL_CPPFLAGS@%$PERL_CPPFLAGS%g
24096 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
24097 s%@MOD_PERL_LDFLAGS@%$MOD_PERL_LDFLAGS%g
24098 s%@KRB4_LIBS@%$KRB4_LIBS%g
24099 s%@KRB5_LIBS@%$KRB5_LIBS%g
24100 s%@SASL_LIBS@%$SASL_LIBS%g
24101 s%@TLS_LIBS@%$TLS_LIBS%g
24102 s%@MODULES_LIBS@%$MODULES_LIBS%g
24103 s%@SLAPI_LIBS@%$SLAPI_LIBS%g
24104 s%@LIBSLAPI@%$LIBSLAPI%g
24105 s%@LIBSLAPITOOLS@%$LIBSLAPITOOLS%g
24106 s%@AUTH_LIBS@%$AUTH_LIBS%g
24107 s%@SLAPD_SLP_LIBS@%$SLAPD_SLP_LIBS%g
24108 s%@SLAPD_SQL_LDFLAGS@%$SLAPD_SQL_LDFLAGS%g
24109 s%@SLAPD_SQL_LIBS@%$SLAPD_SQL_LIBS%g
24110 s%@SLAPD_SQL_INCLUDES@%$SLAPD_SQL_INCLUDES%g
24115 cat >> $CONFIG_STATUS <<\EOF
24117 # Split the substitutions into bite-sized pieces for seds with
24118 # small command number limits, like on Digital OSF/1 and HP-UX.
24119 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
24120 ac_file=1 # Number of current file.
24121 ac_beg=1 # First line for current file.
24122 ac_end=$ac_max_sed_cmds # Line after last line for current file.
24125 while $ac_more_lines; do
24126 if test $ac_beg -gt 1; then
24127 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
24129 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
24131 if test ! -s conftest.s$ac_file; then
24132 ac_more_lines=false
24133 rm -f conftest.s$ac_file
24135 if test -z "$ac_sed_cmds"; then
24136 ac_sed_cmds="sed -f conftest.s$ac_file"
24138 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
24140 ac_file=`expr $ac_file + 1`
24142 ac_end=`expr $ac_end + $ac_max_sed_cmds`
24145 if test -z "$ac_sed_cmds"; then
24150 cat >> $CONFIG_STATUS <<EOF
24152 CONFIG_FILES=\${CONFIG_FILES-"\
24153 Makefile:build/top.mk:Makefile.in:build/dir.mk \
24154 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
24155 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
24156 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
24157 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
24158 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
24159 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
24160 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
24161 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
24162 include/Makefile:build/top.mk:include/Makefile.in \
24163 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
24164 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
24165 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
24166 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
24167 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
24168 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
24169 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
24170 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
24171 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
24172 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
24173 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
24174 servers/slapd/back-hdb/Makefile:build/top.mk:servers/slapd/back-hdb/Makefile.in:build/mod.mk \
24175 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
24176 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
24177 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
24178 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
24179 servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk \
24180 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
24181 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
24182 servers/slapd/back-relay/Makefile:build/top.mk:servers/slapd/back-relay/Makefile.in:build/mod.mk \
24183 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
24184 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
24185 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
24186 servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk \
24187 servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk \
24188 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
24189 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
24191 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
24194 cat >> $CONFIG_STATUS <<\EOF
24195 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
24196 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24198 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
24199 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24200 *) ac_file_in="${ac_file}.in" ;;
24203 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
24205 # Remove last slash and all that follows it. Not all systems have dirname.
24206 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
24207 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24208 # The file is in a subdirectory.
24209 test ! -d "$ac_dir" && mkdir "$ac_dir"
24210 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
24211 # A "../" for each directory in $ac_dir_suffix.
24212 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
24214 ac_dir_suffix= ac_dots=
24217 case "$ac_given_srcdir" in
24219 if test -z "$ac_dots"; then top_srcdir=.
24220 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
24221 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
24222 *) # Relative path.
24223 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
24224 top_srcdir="$ac_dots$ac_given_srcdir" ;;
24227 case "$ac_given_INSTALL" in
24228 [/$]*) INSTALL="$ac_given_INSTALL" ;;
24229 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
24232 echo creating "$ac_file"
24234 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
24236 *[Mm]akefile*) ac_comsub="1i\\
24237 # $configure_input" ;;
24241 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
24243 s%@configure_input@%$configure_input%g
24244 s%@srcdir@%$srcdir%g
24245 s%@top_srcdir@%$top_srcdir%g
24246 s%@INSTALL@%$INSTALL%g
24247 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
24251 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24252 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24254 # ac_d sets the value in "#define NAME VALUE" lines.
24255 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24256 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
24259 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
24260 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24261 ac_uB='\([ ]\)%\1#\2define\3'
24264 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24265 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24266 ac_eB='$%\1#\2define\3'
24270 if test "${CONFIG_HEADERS+set}" != set; then
24272 cat >> $CONFIG_STATUS <<EOF
24273 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
24275 cat >> $CONFIG_STATUS <<\EOF
24277 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
24278 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24280 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
24281 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24282 *) ac_file_in="${ac_file}.in" ;;
24285 echo creating $ac_file
24287 rm -f conftest.frag conftest.in conftest.out
24288 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
24289 cat $ac_file_inputs > conftest.in
24293 # Transform confdefs.h into a sed script conftest.vals that substitutes
24294 # the proper values into config.h.in to produce config.h. And first:
24295 # Protect against being on the right side of a sed subst in config.status.
24296 # Protect against being in an unquoted here document in config.status.
24297 rm -f conftest.vals
24298 cat > conftest.hdr <<\EOF
24301 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
24305 sed -n -f conftest.hdr confdefs.h > conftest.vals
24308 # This sed command replaces #undef with comments. This is necessary, for
24309 # example, in the case of _POSIX_SOURCE, which is predefined and required
24310 # on some systems where configure will not decide to define it.
24311 cat >> conftest.vals <<\EOF
24312 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
24315 # Break up conftest.vals because some shells have a limit on
24316 # the size of here documents, and old seds have small limits too.
24318 rm -f conftest.tail
24321 ac_lines=`grep -c . conftest.vals`
24322 # grep -c gives empty output for an empty file on some AIX systems.
24323 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
24324 # Write a limited-size here document to conftest.frag.
24325 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
24326 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
24328 sed -f conftest.frag conftest.in > conftest.out
24330 mv conftest.out conftest.in
24331 ' >> $CONFIG_STATUS
24332 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
24333 rm -f conftest.vals
24334 mv conftest.tail conftest.vals
24336 rm -f conftest.vals
24338 cat >> $CONFIG_STATUS <<\EOF
24339 rm -f conftest.frag conftest.h
24340 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
24341 cat conftest.in >> conftest.h
24343 if cmp -s $ac_file conftest.h 2>/dev/null; then
24344 echo "$ac_file is unchanged"
24347 # Remove last slash and all that follows it. Not all systems have dirname.
24348 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
24349 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24350 # The file is in a subdirectory.
24351 test ! -d "$ac_dir" && mkdir "$ac_dir"
24354 mv conftest.h $ac_file
24359 cat >> $CONFIG_STATUS <<EOF
24362 cat >> $CONFIG_STATUS <<\EOF
24366 echo Please run \"make depend\" to build dependencies
24370 chmod +x $CONFIG_STATUS
24371 rm -fr confdefs* $ac_clean_files
24372 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1