3 # from OpenLDAP: pkg/ldap/configure.in,v 1.530 2004/04/10 01:45:25 kurt Exp
5 # This work is part of OpenLDAP Software <http://www.openldap.org/>.
7 # Copyright 1998-2004 The OpenLDAP Foundation.
10 # Redistribution and use in source and binary forms, with or without
11 # modification, are permitted only as authorized by the OpenLDAP
14 # A copy of this license is available in the file LICENSE in the
15 # top-level directory of the distribution or, alternatively, at
16 # <http://www.OpenLDAP.org/license.html>.
18 echo "Copyright 1998-2004 The OpenLDAP Foundation. All rights reserved."
19 echo " Restrictions apply, see COPYRIGHT and LICENSE files."
21 # Guess values for system-dependent variables and create Makefiles.
22 # Generated automatically using autoconf version 2.13.1
23 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
25 # This configure script is free software; the Free Software Foundation
26 # gives unlimited permission to copy, distribute and modify it.
30 ac_default_prefix=/usr/local
31 # Any additions from configure.in:
32 ac_default_prefix=/usr/local
34 --with-subdir=DIR change default subdirectory used for installs"
36 --enable-debug enable debugging [yes]"
38 --enable-dynamic enable linking built binaries with dynamic libs [no]"
40 --enable-syslog enable syslog support [auto]"
42 --enable-proctitle enable proctitle support [yes]"
44 --enable-ipv6 enable IPv6 support [auto]"
46 --enable-local enable AF_LOCAL (AF_UNIX) socket support [auto]"
48 --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]"
85 --enable-bdb enable Berkeley DB backend no|yes|mod [yes]"
87 --enable-dnssrv enable dnssrv backend no|yes|mod [no]"
89 --enable-hdb enable Hierarchical DB backend no|yes|mod [no]"
91 --enable-ldap enable ldap backend no|yes|mod [no]"
93 --enable-ldbm enable ldbm backend no|yes|mod [no]"
95 --with-ldbm-api with LDBM API auto|berkeley|bcompat|mdbm|gdbm [auto]"
97 --with-ldbm-type use LDBM type auto|btree|hash [auto]"
99 --enable-meta enable metadirectory backend no|yes|mod [no]"
101 --enable-monitor enable monitor backend no|yes|mod [yes]"
103 --enable-null enable null backend no|yes|mod [no]"
105 --enable-passwd enable passwd backend no|yes|mod [no]"
107 --enable-perl enable perl backend no|yes|mod [no]"
109 --enable-shell enable shell backend no|yes|mod [no]"
111 --enable-sql enable sql backend no|yes|mod [no]"
114 SLAPD Overlay Options:"
116 --enable-dyngroup Dynamic Group overlay no|yes|mod [no]"
118 --enable-proxycache Proxy Cache overlay no|yes|mod [no]"
121 SLURPD (Replication Daemon) Options:"
123 --enable-slurpd enable building slurpd [auto]"
126 Library Generation & Linking Options"
128 --enable-static[=PKGS] build static libraries [default=yes]"
130 --enable-shared[=PKGS] build shared libraries [default=yes]"
132 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
134 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
136 # Find the correct PATH separator. Usually this is `:', but
137 # DJGPP uses `;' like DOS.
138 if test "X${PATH_SEPARATOR+set}" != Xset; then
139 UNAME=${UNAME-`uname 2>/dev/null`}
141 *-DOS) lt_cv_sys_path_separator=';' ;;
142 *) lt_cv_sys_path_separator=':' ;;
144 PATH_SEPARATOR=$lt_cv_sys_path_separator
148 # Check that we are running under the correct shell.
149 SHELL=${CONFIG_SHELL-/bin/sh}
153 # Remove one level of quotation (which was required for Make).
154 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
159 if test "X$1" = X--no-reexec; then
160 # Discard the --no-reexec flag, and continue.
162 elif test "X$1" = X--fallback-echo; then
163 # Avoid inline document here, it may be left over
165 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
166 # Yippee, $echo works!
169 # Restart under the correct shell.
170 exec $SHELL "$0" --no-reexec ${1+"$@"}
173 if test "X$1" = X--fallback-echo; then
174 # used as fallback echo
182 # The HP-UX ksh and POSIX shell print the target directory to stdout
184 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
186 if test -z "$ECHO"; then
187 if test "X${echo_test_string+set}" != Xset; then
188 # find a string as large as possible, as long as the shell can cope with it
189 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
190 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
191 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
192 echo_test_string="`eval $cmd`" &&
193 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
200 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
201 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
202 test "X$echo_testing_string" = "X$echo_test_string"; then
205 # The Solaris, AIX, and Digital Unix default echo programs unquote
206 # backslashes. This makes it impossible to quote backslashes using
207 # echo "$something" | sed 's/\\/\\\\/g'
209 # So, first we look for a working echo in the user's PATH.
211 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
212 for dir in $PATH /usr/ucb; do
213 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
214 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
215 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
216 test "X$echo_testing_string" = "X$echo_test_string"; then
223 if test "X$echo" = Xecho; then
224 # We didn't find a better echo, so look for alternatives.
225 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
226 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
227 test "X$echo_testing_string" = "X$echo_test_string"; then
228 # This shell has a builtin print -r that does the trick.
230 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
231 test "X$CONFIG_SHELL" != X/bin/ksh; then
232 # If we have ksh, try running configure again with it.
233 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
234 export ORIGINAL_CONFIG_SHELL
235 CONFIG_SHELL=/bin/ksh
237 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
241 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
242 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
243 test "X$echo_testing_string" = "X$echo_test_string"; then
246 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
247 test "X$echo_testing_string" = 'X\t' &&
248 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
249 test "X$echo_testing_string" = "X$echo_test_string"; then
250 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
252 SHELL="$CONFIG_SHELL"
254 echo="$CONFIG_SHELL $0 --fallback-echo"
255 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
256 test "X$echo_testing_string" = 'X\t' &&
257 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
258 test "X$echo_testing_string" = "X$echo_test_string"; then
259 echo="$CONFIG_SHELL $0 --fallback-echo"
261 # maybe with a smaller string...
264 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
265 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
272 if test "$prev" != 'sed 50q "$0"'; then
273 echo_test_string=`eval $prev`
274 export echo_test_string
275 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
277 # Oops. We lost completely, so just stick with echo.
286 # Copy echo and quote the copy suitably for passing to libtool from
287 # the Makefile, instead of quoting the original, which is used later.
289 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
290 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
295 --disable-libtool-lock avoid locking (might break parallel builds)"
297 --with-pic try to use only PIC/non-PIC objects [default=use both]"
300 See INSTALL file for further details."
302 # Initialize some variables set by options.
303 # The variables have the same names as the options, with
304 # dashes changed to underlines.
306 cache_file=./config.cache
315 program_transform_name=s,x,x,
323 bindir='${exec_prefix}/bin'
324 sbindir='${exec_prefix}/sbin'
325 libexecdir='${exec_prefix}/libexec'
326 datadir='${prefix}/share'
327 sysconfdir='${prefix}/etc'
328 sharedstatedir='${prefix}/com'
329 localstatedir='${prefix}/var'
330 libdir='${exec_prefix}/lib'
331 includedir='${prefix}/include'
332 oldincludedir='/usr/include'
333 infodir='${prefix}/info'
334 mandir='${prefix}/man'
336 # Initialize some other variables.
339 SHELL=${CONFIG_SHELL-/bin/sh}
340 # Maximum number of lines to put in a shell here document.
347 # If the previous option needs an argument, assign it.
348 if test -n "$ac_prev"; then
349 eval "$ac_prev=\$ac_option"
355 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
359 # Accept the important Cygnus configure options, so we can diagnose typos.
363 -bindir | --bindir | --bindi | --bind | --bin | --bi)
365 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
366 bindir="$ac_optarg" ;;
368 -build | --build | --buil | --bui | --bu)
370 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
371 build="$ac_optarg" ;;
373 -cache-file | --cache-file | --cache-fil | --cache-fi \
374 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
375 ac_prev=cache_file ;;
376 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
377 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
378 cache_file="$ac_optarg" ;;
380 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
382 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
384 datadir="$ac_optarg" ;;
386 -disable-* | --disable-*)
387 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
388 # Reject names that are not valid shell variable names.
389 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
390 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
392 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
393 eval "enable_${ac_feature}=no" ;;
395 -enable-* | --enable-*)
396 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
397 # Reject names that are not valid shell variable names.
398 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
399 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
401 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
406 eval "enable_${ac_feature}='$ac_optarg'" ;;
408 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
409 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
410 | --exec | --exe | --ex)
411 ac_prev=exec_prefix ;;
412 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
413 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
414 | --exec=* | --exe=* | --ex=*)
415 exec_prefix="$ac_optarg" ;;
417 -gas | --gas | --ga | --g)
418 # Obsolete; use --with-gas.
421 -help | --help | --hel | --he)
422 # Omit some internal or obsolete options to make the list less imposing.
423 # This message is too long to be a string in the A/UX 3.1 sh.
425 Usage: configure [options] [host]
426 Options: [defaults in brackets after descriptions]
428 --cache-file=FILE cache test results in FILE
429 --help print this message
430 --no-create do not create output files
431 --quiet, --silent do not print \`checking...' messages
432 --version print the version of autoconf that created configure
433 Directory and file names:
434 --prefix=PREFIX install architecture-independent files in PREFIX
436 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
438 --bindir=DIR user executables in DIR [EPREFIX/bin]
439 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
440 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
441 --datadir=DIR read-only architecture-independent data in DIR
443 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
444 --sharedstatedir=DIR modifiable architecture-independent data in DIR
446 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
447 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
448 --includedir=DIR C header files in DIR [PREFIX/include]
449 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
450 --infodir=DIR info documentation in DIR [PREFIX/info]
451 --mandir=DIR man documentation in DIR [PREFIX/man]
452 --srcdir=DIR find the sources in DIR [configure dir or ..]
453 --program-prefix=PREFIX prepend PREFIX to installed program names
454 --program-suffix=SUFFIX append SUFFIX to installed program names
455 --program-transform-name=PROGRAM
456 run sed PROGRAM on installed program names
460 --build=BUILD configure for building on BUILD [BUILD=HOST]
461 --host=HOST configure for HOST [guessed]
462 --target=TARGET configure for TARGET [TARGET=HOST]
463 Features and packages:
464 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
465 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
466 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
467 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
468 --x-includes=DIR X include files are in DIR
469 --x-libraries=DIR X library files are in DIR
471 if test -n "$ac_help"; then
472 echo "--enable and --with options recognized:$ac_help"
476 -host | --host | --hos | --ho)
478 -host=* | --host=* | --hos=* | --ho=*)
481 -includedir | --includedir | --includedi | --included | --include \
482 | --includ | --inclu | --incl | --inc)
483 ac_prev=includedir ;;
484 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
485 | --includ=* | --inclu=* | --incl=* | --inc=*)
486 includedir="$ac_optarg" ;;
488 -infodir | --infodir | --infodi | --infod | --info | --inf)
490 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
491 infodir="$ac_optarg" ;;
493 -libdir | --libdir | --libdi | --libd)
495 -libdir=* | --libdir=* | --libdi=* | --libd=*)
496 libdir="$ac_optarg" ;;
498 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
499 | --libexe | --libex | --libe)
500 ac_prev=libexecdir ;;
501 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
502 | --libexe=* | --libex=* | --libe=*)
503 libexecdir="$ac_optarg" ;;
505 -localstatedir | --localstatedir | --localstatedi | --localstated \
506 | --localstate | --localstat | --localsta | --localst \
507 | --locals | --local | --loca | --loc | --lo)
508 ac_prev=localstatedir ;;
509 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
510 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
511 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
512 localstatedir="$ac_optarg" ;;
514 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
516 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
517 mandir="$ac_optarg" ;;
520 # Obsolete; use --without-fp.
523 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
527 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
528 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
531 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
532 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
533 | --oldin | --oldi | --old | --ol | --o)
534 ac_prev=oldincludedir ;;
535 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
536 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
537 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
538 oldincludedir="$ac_optarg" ;;
540 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
542 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
543 prefix="$ac_optarg" ;;
545 -program-prefix | --program-prefix | --program-prefi | --program-pref \
546 | --program-pre | --program-pr | --program-p)
547 ac_prev=program_prefix ;;
548 -program-prefix=* | --program-prefix=* | --program-prefi=* \
549 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
550 program_prefix="$ac_optarg" ;;
552 -program-suffix | --program-suffix | --program-suffi | --program-suff \
553 | --program-suf | --program-su | --program-s)
554 ac_prev=program_suffix ;;
555 -program-suffix=* | --program-suffix=* | --program-suffi=* \
556 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
557 program_suffix="$ac_optarg" ;;
559 -program-transform-name | --program-transform-name \
560 | --program-transform-nam | --program-transform-na \
561 | --program-transform-n | --program-transform- \
562 | --program-transform | --program-transfor \
563 | --program-transfo | --program-transf \
564 | --program-trans | --program-tran \
565 | --progr-tra | --program-tr | --program-t)
566 ac_prev=program_transform_name ;;
567 -program-transform-name=* | --program-transform-name=* \
568 | --program-transform-nam=* | --program-transform-na=* \
569 | --program-transform-n=* | --program-transform-=* \
570 | --program-transform=* | --program-transfor=* \
571 | --program-transfo=* | --program-transf=* \
572 | --program-trans=* | --program-tran=* \
573 | --progr-tra=* | --program-tr=* | --program-t=*)
574 program_transform_name="$ac_optarg" ;;
576 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
577 | -silent | --silent | --silen | --sile | --sil)
580 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
582 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
584 sbindir="$ac_optarg" ;;
586 -sharedstatedir | --sharedstatedir | --sharedstatedi \
587 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
588 | --sharedst | --shareds | --shared | --share | --shar \
590 ac_prev=sharedstatedir ;;
591 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
592 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
593 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
595 sharedstatedir="$ac_optarg" ;;
597 -site | --site | --sit)
599 -site=* | --site=* | --sit=*)
602 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
604 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
605 srcdir="$ac_optarg" ;;
607 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
608 | --syscon | --sysco | --sysc | --sys | --sy)
609 ac_prev=sysconfdir ;;
610 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
611 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
612 sysconfdir="$ac_optarg" ;;
614 -target | --target | --targe | --targ | --tar | --ta | --t)
616 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
617 target="$ac_optarg" ;;
619 -v | -verbose | --verbose | --verbos | --verbo | --verb)
622 -version | --version | --versio | --versi | --vers)
623 echo "configure generated by autoconf version 2.13.1"
627 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
628 # Reject names that are not valid shell variable names.
629 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
630 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
632 ac_package=`echo $ac_package| sed 's/-/_/g'`
637 eval "with_${ac_package}='$ac_optarg'" ;;
639 -without-* | --without-*)
640 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
641 # Reject names that are not valid shell variable names.
642 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
643 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
645 ac_package=`echo $ac_package| sed 's/-/_/g'`
646 eval "with_${ac_package}=no" ;;
649 # Obsolete; use --with-x.
652 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
653 | --x-incl | --x-inc | --x-in | --x-i)
654 ac_prev=x_includes ;;
655 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
656 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
657 x_includes="$ac_optarg" ;;
659 -x-libraries | --x-libraries | --x-librarie | --x-librari \
660 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
661 ac_prev=x_libraries ;;
662 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
663 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
664 x_libraries="$ac_optarg" ;;
666 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
670 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
671 echo "configure: warning: $ac_option: invalid host type" 1>&2
673 if test "x$nonopt" != xNONE; then
674 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
682 if test -n "$ac_prev"; then
683 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
686 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
688 # File descriptor usage:
691 # 2 errors and warnings
692 # 3 some systems may open it to /dev/tty
693 # 4 used on the Kubota Titan
694 # 6 checking for... messages and results
695 # 5 compiler messages saved in config.log
696 if test "$silent" = yes; then
704 This file contains any messages produced by compilers while
705 running configure, to aid debugging if configure makes a mistake.
708 # Strip out --no-create and --no-recursion so they do not pile up.
709 # Also quote any args containing shell metacharacters.
714 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
715 | --no-cr | --no-c) ;;
716 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
717 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
718 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
719 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
720 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
725 # Only set these to C if already set. These must not be set unconditionally
726 # because not all systems understand e.g. LANG=C (notably SCO).
727 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
728 # Non-C LC_CTYPE values break the ctype check.
729 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
730 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
731 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
732 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
734 # confdefs.h avoids OS command line length limits that DEFS can exceed.
735 rm -rf conftest* confdefs.h
736 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
739 # A filename unique to this package, relative to the directory that
740 # configure is in, which we can look for to find out if srcdir is correct.
741 ac_unique_file=build/version.sh
743 # Find the source files, if location was not specified.
744 if test -z "$srcdir"; then
745 ac_srcdir_defaulted=yes
746 # Try the directory containing this script, then its parent.
748 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
749 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
751 if test ! -r $srcdir/$ac_unique_file; then
755 ac_srcdir_defaulted=no
757 if test ! -r $srcdir/$ac_unique_file; then
758 if test "$ac_srcdir_defaulted" = yes; then
759 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
761 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
764 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
766 # Prefer explicitly selected file to automatically selected ones.
767 if test -z "$CONFIG_SITE"; then
768 if test "x$prefix" != xNONE; then
769 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
771 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
774 for ac_site_file in $CONFIG_SITE; do
775 if test -r "$ac_site_file"; then
776 echo "loading site script $ac_site_file"
783 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
784 ac_cpp='$CPP $CPPFLAGS'
785 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
786 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
787 cross_compiling=$ac_cv_prog_cc_cross
791 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
792 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
793 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
800 ac_n= ac_c='\c' ac_t=
804 # set unset (borrowed from autoconf 2.49c)
805 if (OL_FOO=OL_FOO; unset OL_FOO) >/dev/null 2>&1; then
811 $ol_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
814 for ac_dir in build $srcdir/build; do
815 if test -f $ac_dir/install-sh; then
817 ac_install_sh="$ac_aux_dir/install-sh -c"
819 elif test -f $ac_dir/install.sh; then
821 ac_install_sh="$ac_aux_dir/install.sh -c"
823 elif test -f $ac_dir/shtool; then
825 ac_install_sh="$ac_aux_dir/shtool install -c"
829 if test -z "$ac_aux_dir"; then
830 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
832 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
833 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
834 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
836 eval `$ac_aux_dir/version.sh`
837 if test -z "$OL_STRING"; then
838 { echo "configure: error: could not determine version" 1>&2; exit 1; }
841 if test -f "$ac_aux_dir/shtool" -a ! -d $ac_aux_dir/shtool; then
842 ac_cv_shtool="$ac_aux_dir/shtool"
844 { echo "configure: error: no shtool found in $ac_aux_dir" 1>&2; exit 1; }
847 SHTOOL="$ac_cv_shtool"
849 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
850 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
853 if test -d $ac_aux_dir/CVS; then
854 OPENLDAP_CVS="(from CVS sources) "
857 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
860 echo $ac_n "checking host system type""... $ac_c" 1>&6
861 echo "configure:862: checking host system type" >&5
862 if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
864 # Make sure we can run config.sub.
865 if $ac_config_sub sun4 >/dev/null 2>&1; then :
866 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
869 ac_cv_host_alias=$host
870 case "$ac_cv_host_alias" in
874 if ac_cv_host_alias=`$ac_config_guess`; then :
875 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
877 *) ac_cv_host_alias=$nonopt ;;
881 ac_cv_host=`$ac_config_sub $ac_cv_host_alias`
882 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
883 ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
884 ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
886 echo $ac_n "(cached) $ac_c" 1>&6
889 echo "$ac_t""$ac_cv_host" 1>&6
892 host_alias=$ac_cv_host_alias
893 host_cpu=$ac_cv_host_cpu
894 host_vendor=$ac_cv_host_vendor
895 host_os=$ac_cv_host_os
901 echo $ac_n "checking target system type""... $ac_c" 1>&6
902 echo "configure:903: checking target system type" >&5
903 if test "x$ac_cv_target" = "x" || (test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
905 # Make sure we can run config.sub.
906 if $ac_config_sub sun4 >/dev/null 2>&1; then :
907 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
910 ac_cv_target_alias=$target
911 case "$ac_cv_target_alias" in
915 ac_cv_target_alias=$host_alias ;;
917 *) ac_cv_target_alias=$nonopt ;;
921 ac_cv_target=`$ac_config_sub $ac_cv_target_alias`
922 ac_cv_target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
923 ac_cv_target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
924 ac_cv_target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
926 echo $ac_n "(cached) $ac_c" 1>&6
929 echo "$ac_t""$ac_cv_target" 1>&6
932 target_alias=$ac_cv_target_alias
933 target_cpu=$ac_cv_target_cpu
934 target_vendor=$ac_cv_target_vendor
935 target_os=$ac_cv_target_os
941 echo $ac_n "checking build system type""... $ac_c" 1>&6
942 echo "configure:943: checking build system type" >&5
943 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
945 # Make sure we can run config.sub.
946 if $ac_config_sub sun4 >/dev/null 2>&1; then :
947 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
950 ac_cv_build_alias=$build
951 case "$ac_cv_build_alias" in
955 ac_cv_build_alias=$host_alias ;;
957 *) ac_cv_build_alias=$nonopt ;;
961 ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
962 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
963 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
964 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
966 echo $ac_n "(cached) $ac_c" 1>&6
969 echo "$ac_t""$ac_cv_build" 1>&6
972 build_alias=$ac_cv_build_alias
973 build_cpu=$ac_cv_build_cpu
974 build_vendor=$ac_cv_build_vendor
975 build_os=$ac_cv_build_os
981 # Do some error checking and defaulting for the host and target type.
983 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
986 # 1. You are not allowed to specify --host, --target, and nonopt at the
988 # 2. Host defaults to nonopt.
989 # 3. If nonopt is not specified, then host defaults to the current host,
990 # as determined by config.guess.
991 # 4. Target and build default to nonopt.
992 # 5. If nonopt is not specified, then target and build default to host.
994 # The aliases save the names the user supplied, while $host etc.
995 # will get canonicalized.
996 case $host---$target---$nonopt in
997 NONE---*---* | *---NONE---* | *---*---NONE) ;;
998 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1001 test "$host_alias" != "$target_alias" &&
1002 test "$program_prefix$program_suffix$program_transform_name" = \
1004 program_prefix=${target_alias}-
1007 # Find a good install program. We prefer a C program (faster),
1008 # so one script is as good as another. But avoid the broken or
1009 # incompatible versions:
1010 # SysV /etc/install, /usr/sbin/install
1011 # SunOS /usr/etc/install
1012 # IRIX /sbin/install
1014 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1015 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1016 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1017 # ./install, which can be erroneously created by make from ./install.sh.
1018 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1019 echo "configure:1020: checking for a BSD compatible install" >&5
1020 if test -z "$INSTALL"; then
1021 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
1022 echo $ac_n "(cached) $ac_c" 1>&6
1024 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1025 for ac_dir in $PATH; do
1026 # Account for people who put trailing slashes in PATH elements.
1028 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1030 # OSF1 and SCO ODT 3.0 have their own names for install.
1031 # Don't use installbsd from OSF since it installs stuff as root
1033 for ac_prog in ginstall scoinst install; do
1034 if test -f $ac_dir/$ac_prog; then
1035 if test $ac_prog = install &&
1036 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1037 # AIX install. It has an incompatible calling convention.
1039 elif test $ac_prog = install &&
1040 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
1041 # program-specific install script used by HP pwplus--don't use.
1044 ac_cv_path_install="$ac_dir/$ac_prog -c"
1055 if test "${ac_cv_path_install+set}" = set; then
1056 INSTALL="$ac_cv_path_install"
1058 # As a last resort, use the slow shell script. We don't cache a
1059 # path for INSTALL within a source directory, because that will
1060 # break other packages using the cache if that directory is
1061 # removed, or if the path is relative.
1062 INSTALL="$ac_install_sh"
1065 echo "$ac_t""$INSTALL" 1>&6
1067 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1068 # It thinks the first close brace ends the variable substitution.
1069 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1071 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1073 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1075 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1076 echo "configure:1077: checking whether build environment is sane" >&5
1079 echo timestamp > conftestfile
1080 # Do `set' in a subshell so we don't clobber the current shell's
1081 # arguments. Must try -L first in case configure is actually a
1082 # symlink; some systems play weird games with the mod time of symlinks
1083 # (eg FreeBSD returns the mod time of the symlink's containing
1086 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1087 if test "$*" = "X"; then
1089 set X `ls -t $srcdir/configure conftestfile`
1091 if test "$*" != "X $srcdir/configure conftestfile" \
1092 && test "$*" != "X conftestfile $srcdir/configure"; then
1094 # If neither matched, then we have a broken ls. This can happen
1095 # if, for instance, CONFIG_SHELL is bash and it inherits a
1096 # broken ls alias from the environment. This has actually
1097 # happened. Such a system could not be considered "sane".
1098 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1099 alias in your environment" 1>&2; exit 1; }
1102 test "$2" = conftestfile
1108 { echo "configure: error: newly created file is older than distributed files!
1109 Check your system clock" 1>&2; exit 1; }
1112 echo "$ac_t""yes" 1>&6
1113 if test "$program_transform_name" = s,x,x,; then
1114 program_transform_name=
1116 # Double any \ or $. echo might interpret backslashes.
1117 cat <<\EOF_SED > conftestsed
1118 s,\\,\\\\,g; s,\$,$$,g
1120 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1123 test "$program_prefix" != NONE &&
1124 program_transform_name="s,^,${program_prefix},;$program_transform_name"
1125 # Use a double $ so make ignores it.
1126 test "$program_suffix" != NONE &&
1127 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
1129 # sed with no file args requires a program.
1130 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1132 for ac_prog in mawk gawk nawk awk
1134 # Extract the first word of "$ac_prog", so it can be a program name with args.
1135 set dummy $ac_prog; ac_word=$2
1136 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1137 echo "configure:1138: checking for $ac_word" >&5
1138 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
1139 echo $ac_n "(cached) $ac_c" 1>&6
1141 if test -n "$AWK"; then
1142 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1144 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1146 for ac_dir in $ac_dummy; do
1147 test -z "$ac_dir" && ac_dir=.
1148 if test -f $ac_dir/$ac_word; then
1149 ac_cv_prog_AWK="$ac_prog"
1156 AWK="$ac_cv_prog_AWK"
1157 if test -n "$AWK"; then
1158 echo "$ac_t""$AWK" 1>&6
1160 echo "$ac_t""no" 1>&6
1163 test -n "$AWK" && break
1166 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1167 echo "configure:1168: checking whether ${MAKE-make} sets \${MAKE}" >&5
1168 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1169 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1170 echo $ac_n "(cached) $ac_c" 1>&6
1172 cat > conftestmake <<\EOF
1174 @echo 'ac_maketemp="${MAKE}"'
1176 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1177 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1178 if test -n "$ac_maketemp"; then
1179 eval ac_cv_prog_make_${ac_make}_set=yes
1181 eval ac_cv_prog_make_${ac_make}_set=no
1185 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1186 echo "$ac_t""yes" 1>&6
1189 echo "$ac_t""no" 1>&6
1190 SET_MAKE="MAKE=${MAKE-make}"
1199 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1200 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1205 missing_dir=`cd $ac_aux_dir && pwd`
1206 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1207 echo "configure:1208: checking for working aclocal" >&5
1208 # Run test in a subshell; some versions of sh will print an error if
1209 # an executable is not found, even if stderr is redirected.
1210 # Redirect stdin to placate older versions of autoconf. Sigh.
1211 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1213 echo "$ac_t""found" 1>&6
1215 ACLOCAL="$missing_dir/missing aclocal"
1216 echo "$ac_t""missing" 1>&6
1219 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1220 echo "configure:1221: checking for working autoconf" >&5
1221 # Run test in a subshell; some versions of sh will print an error if
1222 # an executable is not found, even if stderr is redirected.
1223 # Redirect stdin to placate older versions of autoconf. Sigh.
1224 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1226 echo "$ac_t""found" 1>&6
1228 AUTOCONF="$missing_dir/missing autoconf"
1229 echo "$ac_t""missing" 1>&6
1232 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1233 echo "configure:1234: checking for working automake" >&5
1234 # Run test in a subshell; some versions of sh will print an error if
1235 # an executable is not found, even if stderr is redirected.
1236 # Redirect stdin to placate older versions of autoconf. Sigh.
1237 if (automake --version) < /dev/null > /dev/null 2>&1; then
1239 echo "$ac_t""found" 1>&6
1241 AUTOMAKE="$missing_dir/missing automake"
1242 echo "$ac_t""missing" 1>&6
1245 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1246 echo "configure:1247: checking for working autoheader" >&5
1247 # Run test in a subshell; some versions of sh will print an error if
1248 # an executable is not found, even if stderr is redirected.
1249 # Redirect stdin to placate older versions of autoconf. Sigh.
1250 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1251 AUTOHEADER=autoheader
1252 echo "$ac_t""found" 1>&6
1254 AUTOHEADER="$missing_dir/missing autoheader"
1255 echo "$ac_t""missing" 1>&6
1258 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1259 echo "configure:1260: checking for working makeinfo" >&5
1260 # Run test in a subshell; some versions of sh will print an error if
1261 # an executable is not found, even if stderr is redirected.
1262 # Redirect stdin to placate older versions of autoconf. Sigh.
1263 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1265 echo "$ac_t""found" 1>&6
1267 MAKEINFO="$missing_dir/missing makeinfo"
1268 echo "$ac_t""missing" 1>&6
1271 install_sh="$missing_dir/install-sh"
1272 test -f "$install_sh" || install_sh="$missing_dir/install.sh"
1274 for ac_prog in gnutar gtar tar
1276 # Extract the first word of "$ac_prog", so it can be a program name with args.
1277 set dummy $ac_prog; ac_word=$2
1278 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1279 echo "configure:1280: checking for $ac_word" >&5
1280 if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then
1281 echo $ac_n "(cached) $ac_c" 1>&6
1283 if test -n "$AMTAR"; then
1284 ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
1286 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1288 for ac_dir in $ac_dummy; do
1289 test -z "$ac_dir" && ac_dir=.
1290 if test -f $ac_dir/$ac_word; then
1291 ac_cv_prog_AMTAR="$ac_prog"
1298 AMTAR="$ac_cv_prog_AMTAR"
1299 if test -n "$AMTAR"; then
1300 echo "$ac_t""$AMTAR" 1>&6
1302 echo "$ac_t""no" 1>&6
1305 test -n "$AMTAR" && break
1310 if test -n "$AMTAR"; then
1311 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
1316 cat >> confdefs.h <<EOF
1317 #define OPENLDAP_PACKAGE "$PACKAGE"
1320 cat >> confdefs.h <<EOF
1321 #define OPENLDAP_VERSION "$VERSION"
1325 cat >> confdefs.h <<EOF
1326 #define LDAP_VENDOR_VERSION $OL_API_INC
1329 cat >> confdefs.h <<EOF
1330 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
1333 cat >> confdefs.h <<EOF
1334 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
1337 cat >> confdefs.h <<EOF
1338 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
1342 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
1344 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
1346 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
1350 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
1351 echo "configure:1352: checking configure arguments" >&5
1356 ldap_subdir="/openldap"
1358 # Check whether --with-subdir or --without-subdir was given.
1359 if test "${with_subdir+set}" = set; then
1360 withval="$with_subdir"
1367 ldap_subdir="$withval"
1370 ldap_subdir="/$withval"
1377 # OpenLDAP --enable-debug
1378 # Check whether --enable-debug or --disable-debug was given.
1379 if test "${enable_debug+set}" = set; then
1380 enableval="$enable_debug"
1383 for ol_val in auto yes no ; do
1384 if test "$enableval" = "$ol_val" ; then
1388 if test "$ol_arg" = "invalid" ; then
1389 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
1391 ol_enable_debug="$ol_arg"
1394 ol_enable_debug="yes"
1396 # end --enable-debug
1397 # OpenLDAP --enable-dynamic
1398 # Check whether --enable-dynamic or --disable-dynamic was given.
1399 if test "${enable_dynamic+set}" = set; then
1400 enableval="$enable_dynamic"
1403 for ol_val in auto yes no ; do
1404 if test "$enableval" = "$ol_val" ; then
1408 if test "$ol_arg" = "invalid" ; then
1409 { echo "configure: error: bad value $enableval for --enable-dynamic" 1>&2; exit 1; }
1411 ol_enable_dynamic="$ol_arg"
1414 ol_enable_dynamic="no"
1416 # end --enable-dynamic
1417 # OpenLDAP --enable-syslog
1418 # Check whether --enable-syslog or --disable-syslog was given.
1419 if test "${enable_syslog+set}" = set; then
1420 enableval="$enable_syslog"
1423 for ol_val in auto yes no ; do
1424 if test "$enableval" = "$ol_val" ; then
1428 if test "$ol_arg" = "invalid" ; then
1429 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
1431 ol_enable_syslog="$ol_arg"
1434 ol_enable_syslog="auto"
1436 # end --enable-syslog
1437 # OpenLDAP --enable-proctitle
1438 # Check whether --enable-proctitle or --disable-proctitle was given.
1439 if test "${enable_proctitle+set}" = set; then
1440 enableval="$enable_proctitle"
1443 for ol_val in auto yes no ; do
1444 if test "$enableval" = "$ol_val" ; then
1448 if test "$ol_arg" = "invalid" ; then
1449 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
1451 ol_enable_proctitle="$ol_arg"
1454 ol_enable_proctitle="yes"
1456 # end --enable-proctitle
1457 ol_enable_referrals=${ol_enable_referrals-no}
1458 ol_enable_kbind=${ol_enable_kbind-no}
1459 # OpenLDAP --enable-ipv6
1460 # Check whether --enable-ipv6 or --disable-ipv6 was given.
1461 if test "${enable_ipv6+set}" = set; then
1462 enableval="$enable_ipv6"
1465 for ol_val in auto yes no ; do
1466 if test "$enableval" = "$ol_val" ; then
1470 if test "$ol_arg" = "invalid" ; then
1471 { echo "configure: error: bad value $enableval for --enable-ipv6" 1>&2; exit 1; }
1473 ol_enable_ipv6="$ol_arg"
1476 ol_enable_ipv6="auto"
1479 # OpenLDAP --enable-local
1480 # Check whether --enable-local or --disable-local was given.
1481 if test "${enable_local+set}" = set; then
1482 enableval="$enable_local"
1485 for ol_val in auto yes no ; do
1486 if test "$enableval" = "$ol_val" ; then
1490 if test "$ol_arg" = "invalid" ; then
1491 { echo "configure: error: bad value $enableval for --enable-local" 1>&2; exit 1; }
1493 ol_enable_local="$ol_arg"
1496 ol_enable_local="auto"
1498 # end --enable-local
1501 # OpenLDAP --with-cyrus_sasl
1502 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
1503 if test "${with_cyrus_sasl+set}" = set; then
1504 withval="$with_cyrus_sasl"
1507 for ol_val in auto yes no ; do
1508 if test "$withval" = "$ol_val" ; then
1512 if test "$ol_arg" = "invalid" ; then
1513 { echo "configure: error: bad value $withval for --with-cyrus_sasl" 1>&2; exit 1; }
1515 ol_with_cyrus_sasl="$ol_arg"
1518 ol_with_cyrus_sasl="auto"
1520 # end --with-cyrus_sasl
1522 # OpenLDAP --with-fetch
1523 # Check whether --with-fetch or --without-fetch was given.
1524 if test "${with_fetch+set}" = set; then
1525 withval="$with_fetch"
1528 for ol_val in auto yes no ; do
1529 if test "$withval" = "$ol_val" ; then
1533 if test "$ol_arg" = "invalid" ; then
1534 { echo "configure: error: bad value $withval for --with-fetch" 1>&2; exit 1; }
1536 ol_with_fetch="$ol_arg"
1539 ol_with_fetch="auto"
1543 ol_with_kerberos=${ol_with_kerberos-auto}
1544 # OpenLDAP --with-threads
1545 # Check whether --with-threads or --without-threads was given.
1546 if test "${with_threads+set}" = set; then
1547 withval="$with_threads"
1550 for ol_val in auto nt posix mach pth lwp yes no manual ; do
1551 if test "$withval" = "$ol_val" ; then
1555 if test "$ol_arg" = "invalid" ; then
1556 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1558 ol_with_threads="$ol_arg"
1561 ol_with_threads="auto"
1563 # end --with-threads
1565 # OpenLDAP --with-tls
1566 # Check whether --with-tls or --without-tls was given.
1567 if test "${with_tls+set}" = set; then
1571 for ol_val in auto ssleay openssl yes no ; do
1572 if test "$withval" = "$ol_val" ; then
1576 if test "$ol_arg" = "invalid" ; then
1577 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1579 ol_with_tls="$ol_arg"
1586 # OpenLDAP --with-yielding_select
1587 # Check whether --with-yielding_select or --without-yielding_select was given.
1588 if test "${with_yielding_select+set}" = set; then
1589 withval="$with_yielding_select"
1592 for ol_val in auto yes no manual ; do
1593 if test "$withval" = "$ol_val" ; then
1597 if test "$ol_arg" = "invalid" ; then
1598 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1600 ol_with_yielding_select="$ol_arg"
1603 ol_with_yielding_select="auto"
1605 # end --with-yielding_select
1609 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1610 if test "${with_xxslapdoptions+set}" = set; then
1611 withval="$with_xxslapdoptions"
1615 # OpenLDAP --enable-slapd
1616 # Check whether --enable-slapd or --disable-slapd was given.
1617 if test "${enable_slapd+set}" = set; then
1618 enableval="$enable_slapd"
1621 for ol_val in auto yes no ; do
1622 if test "$enableval" = "$ol_val" ; then
1626 if test "$ol_arg" = "invalid" ; then
1627 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1629 ol_enable_slapd="$ol_arg"
1632 ol_enable_slapd="yes"
1634 # end --enable-slapd
1635 # OpenLDAP --enable-aci
1636 # Check whether --enable-aci or --disable-aci was given.
1637 if test "${enable_aci+set}" = set; then
1638 enableval="$enable_aci"
1641 for ol_val in auto yes no ; do
1642 if test "$enableval" = "$ol_val" ; then
1646 if test "$ol_arg" = "invalid" ; then
1647 { echo "configure: error: bad value $enableval for --enable-aci" 1>&2; exit 1; }
1649 ol_enable_aci="$ol_arg"
1655 # OpenLDAP --enable-cleartext
1656 # Check whether --enable-cleartext or --disable-cleartext was given.
1657 if test "${enable_cleartext+set}" = set; then
1658 enableval="$enable_cleartext"
1661 for ol_val in auto yes no ; do
1662 if test "$enableval" = "$ol_val" ; then
1666 if test "$ol_arg" = "invalid" ; then
1667 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1669 ol_enable_cleartext="$ol_arg"
1672 ol_enable_cleartext="yes"
1674 # end --enable-cleartext
1675 # OpenLDAP --enable-crypt
1676 # Check whether --enable-crypt or --disable-crypt was given.
1677 if test "${enable_crypt+set}" = set; then
1678 enableval="$enable_crypt"
1681 for ol_val in auto yes no ; do
1682 if test "$enableval" = "$ol_val" ; then
1686 if test "$ol_arg" = "invalid" ; then
1687 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1689 ol_enable_crypt="$ol_arg"
1692 ol_enable_crypt="no"
1694 # end --enable-crypt
1695 # OpenLDAP --enable-lmpasswd
1696 # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
1697 if test "${enable_lmpasswd+set}" = set; then
1698 enableval="$enable_lmpasswd"
1701 for ol_val in auto yes no ; do
1702 if test "$enableval" = "$ol_val" ; then
1706 if test "$ol_arg" = "invalid" ; then
1707 { echo "configure: error: bad value $enableval for --enable-lmpasswd" 1>&2; exit 1; }
1709 ol_enable_lmpasswd="$ol_arg"
1712 ol_enable_lmpasswd="no"
1714 # end --enable-lmpasswd
1715 # OpenLDAP --enable-spasswd
1716 # Check whether --enable-spasswd or --disable-spasswd was given.
1717 if test "${enable_spasswd+set}" = set; then
1718 enableval="$enable_spasswd"
1721 for ol_val in auto yes no ; do
1722 if test "$enableval" = "$ol_val" ; then
1726 if test "$ol_arg" = "invalid" ; then
1727 { echo "configure: error: bad value $enableval for --enable-spasswd" 1>&2; exit 1; }
1729 ol_enable_spasswd="$ol_arg"
1732 ol_enable_spasswd="no"
1734 # end --enable-spasswd
1735 # OpenLDAP --enable-modules
1736 # Check whether --enable-modules or --disable-modules was given.
1737 if test "${enable_modules+set}" = set; then
1738 enableval="$enable_modules"
1741 for ol_val in auto yes no ; do
1742 if test "$enableval" = "$ol_val" ; then
1746 if test "$ol_arg" = "invalid" ; then
1747 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1749 ol_enable_modules="$ol_arg"
1752 ol_enable_modules="no"
1754 # end --enable-modules
1755 ol_enable_multimaster=${ol_enable_multimaster-no}
1756 # OpenLDAP --enable-rewrite
1757 # Check whether --enable-rewrite or --disable-rewrite was given.
1758 if test "${enable_rewrite+set}" = set; then
1759 enableval="$enable_rewrite"
1762 for ol_val in auto yes no ; do
1763 if test "$enableval" = "$ol_val" ; then
1767 if test "$ol_arg" = "invalid" ; then
1768 { echo "configure: error: bad value $enableval for --enable-rewrite" 1>&2; exit 1; }
1770 ol_enable_rewrite="$ol_arg"
1773 ol_enable_rewrite="auto"
1775 # end --enable-rewrite
1776 # OpenLDAP --enable-rlookups
1777 # Check whether --enable-rlookups or --disable-rlookups was given.
1778 if test "${enable_rlookups+set}" = set; then
1779 enableval="$enable_rlookups"
1782 for ol_val in auto yes no ; do
1783 if test "$enableval" = "$ol_val" ; then
1787 if test "$ol_arg" = "invalid" ; then
1788 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1790 ol_enable_rlookups="$ol_arg"
1793 ol_enable_rlookups="no"
1795 # end --enable-rlookups
1796 # OpenLDAP --enable-slapi
1797 # Check whether --enable-slapi or --disable-slapi was given.
1798 if test "${enable_slapi+set}" = set; then
1799 enableval="$enable_slapi"
1802 for ol_val in auto yes no ; do
1803 if test "$enableval" = "$ol_val" ; then
1807 if test "$ol_arg" = "invalid" ; then
1808 { echo "configure: error: bad value $enableval for --enable-slapi" 1>&2; exit 1; }
1810 ol_enable_slapi="$ol_arg"
1813 ol_enable_slapi="no"
1815 # end --enable-slapi
1816 # OpenLDAP --enable-slp
1817 # Check whether --enable-slp or --disable-slp was given.
1818 if test "${enable_slp+set}" = set; then
1819 enableval="$enable_slp"
1822 for ol_val in auto yes no ; do
1823 if test "$enableval" = "$ol_val" ; then
1827 if test "$ol_arg" = "invalid" ; then
1828 { echo "configure: error: bad value $enableval for --enable-slp" 1>&2; exit 1; }
1830 ol_enable_slp="$ol_arg"
1836 # OpenLDAP --enable-wrappers
1837 # Check whether --enable-wrappers or --disable-wrappers was given.
1838 if test "${enable_wrappers+set}" = set; then
1839 enableval="$enable_wrappers"
1842 for ol_val in auto yes no ; do
1843 if test "$enableval" = "$ol_val" ; then
1847 if test "$ol_arg" = "invalid" ; then
1848 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1850 ol_enable_wrappers="$ol_arg"
1853 ol_enable_wrappers="no"
1855 # end --enable-wrappers
1858 Backends="bdb dnssrv hdb ldap ldbm meta monitor null \
1859 passwd perl shell sql"
1861 # OpenLDAP --enable-bdb
1862 # Check whether --enable-bdb or --disable-bdb was given.
1863 if test "${enable_bdb+set}" = set; then
1864 enableval="$enable_bdb"
1867 for ol_val in no yes mod ; do
1868 if test "$enableval" = "$ol_val" ; then
1872 if test "$ol_arg" = "invalid" ; then
1873 { echo "configure: error: bad value $enableval for --enable-bdb" 1>&2; exit 1; }
1875 ol_enable_bdb="$ol_arg"
1881 # OpenLDAP --enable-dnssrv
1882 # Check whether --enable-dnssrv or --disable-dnssrv was given.
1883 if test "${enable_dnssrv+set}" = set; then
1884 enableval="$enable_dnssrv"
1887 for ol_val in no yes mod ; do
1888 if test "$enableval" = "$ol_val" ; then
1892 if test "$ol_arg" = "invalid" ; then
1893 { echo "configure: error: bad value $enableval for --enable-dnssrv" 1>&2; exit 1; }
1895 ol_enable_dnssrv="$ol_arg"
1898 ol_enable_dnssrv="no"
1900 # end --enable-dnssrv
1901 # OpenLDAP --enable-hdb
1902 # Check whether --enable-hdb or --disable-hdb was given.
1903 if test "${enable_hdb+set}" = set; then
1904 enableval="$enable_hdb"
1907 for ol_val in no yes mod ; do
1908 if test "$enableval" = "$ol_val" ; then
1912 if test "$ol_arg" = "invalid" ; then
1913 { echo "configure: error: bad value $enableval for --enable-hdb" 1>&2; exit 1; }
1915 ol_enable_hdb="$ol_arg"
1921 # OpenLDAP --enable-ldap
1922 # Check whether --enable-ldap or --disable-ldap was given.
1923 if test "${enable_ldap+set}" = set; then
1924 enableval="$enable_ldap"
1927 for ol_val in no yes mod ; do
1928 if test "$enableval" = "$ol_val" ; then
1932 if test "$ol_arg" = "invalid" ; then
1933 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
1935 ol_enable_ldap="$ol_arg"
1941 # OpenLDAP --enable-ldbm
1942 # Check whether --enable-ldbm or --disable-ldbm was given.
1943 if test "${enable_ldbm+set}" = set; then
1944 enableval="$enable_ldbm"
1947 for ol_val in no yes mod ; do
1948 if test "$enableval" = "$ol_val" ; then
1952 if test "$ol_arg" = "invalid" ; then
1953 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
1955 ol_enable_ldbm="$ol_arg"
1961 # OpenLDAP --with-ldbm_api
1962 # Check whether --with-ldbm_api or --without-ldbm_api was given.
1963 if test "${with_ldbm_api+set}" = set; then
1964 withval="$with_ldbm_api"
1967 for ol_val in auto berkeley bcompat mdbm gdbm ; do
1968 if test "$withval" = "$ol_val" ; then
1972 if test "$ol_arg" = "invalid" ; then
1973 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
1975 ol_with_ldbm_api="$ol_arg"
1978 ol_with_ldbm_api="auto"
1980 # end --with-ldbm_api
1982 # OpenLDAP --with-ldbm_type
1983 # Check whether --with-ldbm_type or --without-ldbm_type was given.
1984 if test "${with_ldbm_type+set}" = set; then
1985 withval="$with_ldbm_type"
1988 for ol_val in auto btree hash ; do
1989 if test "$withval" = "$ol_val" ; then
1993 if test "$ol_arg" = "invalid" ; then
1994 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
1996 ol_with_ldbm_type="$ol_arg"
1999 ol_with_ldbm_type="auto"
2001 # end --with-ldbm_type
2003 # OpenLDAP --enable-meta
2004 # Check whether --enable-meta or --disable-meta was given.
2005 if test "${enable_meta+set}" = set; then
2006 enableval="$enable_meta"
2009 for ol_val in no yes mod ; do
2010 if test "$enableval" = "$ol_val" ; then
2014 if test "$ol_arg" = "invalid" ; then
2015 { echo "configure: error: bad value $enableval for --enable-meta" 1>&2; exit 1; }
2017 ol_enable_meta="$ol_arg"
2023 # OpenLDAP --enable-monitor
2024 # Check whether --enable-monitor or --disable-monitor was given.
2025 if test "${enable_monitor+set}" = set; then
2026 enableval="$enable_monitor"
2029 for ol_val in no yes mod ; do
2030 if test "$enableval" = "$ol_val" ; then
2034 if test "$ol_arg" = "invalid" ; then
2035 { echo "configure: error: bad value $enableval for --enable-monitor" 1>&2; exit 1; }
2037 ol_enable_monitor="$ol_arg"
2040 ol_enable_monitor="yes"
2042 # end --enable-monitor
2043 # OpenLDAP --enable-null
2044 # Check whether --enable-null or --disable-null was given.
2045 if test "${enable_null+set}" = set; then
2046 enableval="$enable_null"
2049 for ol_val in no yes mod ; do
2050 if test "$enableval" = "$ol_val" ; then
2054 if test "$ol_arg" = "invalid" ; then
2055 { echo "configure: error: bad value $enableval for --enable-null" 1>&2; exit 1; }
2057 ol_enable_null="$ol_arg"
2063 # OpenLDAP --enable-passwd
2064 # Check whether --enable-passwd or --disable-passwd was given.
2065 if test "${enable_passwd+set}" = set; then
2066 enableval="$enable_passwd"
2069 for ol_val in no yes mod ; do
2070 if test "$enableval" = "$ol_val" ; then
2074 if test "$ol_arg" = "invalid" ; then
2075 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
2077 ol_enable_passwd="$ol_arg"
2080 ol_enable_passwd="no"
2082 # end --enable-passwd
2083 # OpenLDAP --enable-perl
2084 # Check whether --enable-perl or --disable-perl was given.
2085 if test "${enable_perl+set}" = set; then
2086 enableval="$enable_perl"
2089 for ol_val in no yes mod ; do
2090 if test "$enableval" = "$ol_val" ; then
2094 if test "$ol_arg" = "invalid" ; then
2095 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
2097 ol_enable_perl="$ol_arg"
2103 # OpenLDAP --enable-shell
2104 # Check whether --enable-shell or --disable-shell was given.
2105 if test "${enable_shell+set}" = set; then
2106 enableval="$enable_shell"
2109 for ol_val in no yes mod ; do
2110 if test "$enableval" = "$ol_val" ; then
2114 if test "$ol_arg" = "invalid" ; then
2115 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
2117 ol_enable_shell="$ol_arg"
2120 ol_enable_shell="no"
2122 # end --enable-shell
2123 # OpenLDAP --enable-sql
2124 # Check whether --enable-sql or --disable-sql was given.
2125 if test "${enable_sql+set}" = set; then
2126 enableval="$enable_sql"
2129 for ol_val in no yes mod ; do
2130 if test "$enableval" = "$ol_val" ; then
2134 if test "$ol_arg" = "invalid" ; then
2135 { echo "configure: error: bad value $enableval for --enable-sql" 1>&2; exit 1; }
2137 ol_enable_sql="$ol_arg"
2144 Overlays="dyngroup proxycache"
2146 # Check whether --with-xxslapoverlays or --without-xxslapoverlays was given.
2147 if test "${with_xxslapoverlays+set}" = set; then
2148 withval="$with_xxslapoverlays"
2152 # OpenLDAP --enable-dyngroup
2153 # Check whether --enable-dyngroup or --disable-dyngroup was given.
2154 if test "${enable_dyngroup+set}" = set; then
2155 enableval="$enable_dyngroup"
2158 for ol_val in no yes mod ; do
2159 if test "$enableval" = "$ol_val" ; then
2163 if test "$ol_arg" = "invalid" ; then
2164 { echo "configure: error: bad value $enableval for --enable-dyngroup" 1>&2; exit 1; }
2166 ol_enable_dyngroup="$ol_arg"
2169 ol_enable_dyngroup="no"
2171 # end --enable-dyngroup
2173 # OpenLDAP --enable-proxycache
2174 # Check whether --enable-proxycache or --disable-proxycache was given.
2175 if test "${enable_proxycache+set}" = set; then
2176 enableval="$enable_proxycache"
2179 for ol_val in no yes mod ; do
2180 if test "$enableval" = "$ol_val" ; then
2184 if test "$ol_arg" = "invalid" ; then
2185 { echo "configure: error: bad value $enableval for --enable-proxycache" 1>&2; exit 1; }
2187 ol_enable_proxycache="$ol_arg"
2190 ol_enable_proxycache="no"
2192 # end --enable-proxycache
2195 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
2196 if test "${with_xxslurpdoptions+set}" = set; then
2197 withval="$with_xxslurpdoptions"
2201 # OpenLDAP --enable-slurpd
2202 # Check whether --enable-slurpd or --disable-slurpd was given.
2203 if test "${enable_slurpd+set}" = set; then
2204 enableval="$enable_slurpd"
2207 for ol_val in auto yes no ; do
2208 if test "$enableval" = "$ol_val" ; then
2212 if test "$ol_arg" = "invalid" ; then
2213 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
2215 ol_enable_slurpd="$ol_arg"
2218 ol_enable_slurpd="auto"
2220 # end --enable-slurpd
2222 # Check whether --with-xxliboptions or --without-xxliboptions was given.
2223 if test "${with_xxliboptions+set}" = set; then
2224 withval="$with_xxliboptions"
2228 # Check whether --enable-static or --disable-static was given.
2229 if test "${enable_static+set}" = set; then
2230 enableval="$enable_static"
2231 p=${PACKAGE-default}
2233 yes) enable_static=yes ;;
2234 no) enable_static=no ;;
2237 # Look at the argument we got. We use all the common list separators.
2238 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2239 for pkg in $enableval; do
2240 if test "X$pkg" = "X$p"; then
2251 # Check whether --enable-shared or --disable-shared was given.
2252 if test "${enable_shared+set}" = set; then
2253 enableval="$enable_shared"
2254 p=${PACKAGE-default}
2256 yes) enable_shared=yes ;;
2257 no) enable_shared=no ;;
2260 # Look at the argument we got. We use all the common list separators.
2261 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2262 for pkg in $enableval; do
2263 if test "X$pkg" = "X$p"; then
2277 if test $ol_enable_slapd = no ; then
2278 if test $ol_enable_slapi = yes ; then
2279 echo "configure: warning: slapd disabled, ignoring --enable-slapi argument" 1>&2
2281 for i in $Backends; do
2282 eval "ol_tmp=\$ol_enable_$i"
2283 if test $ol_tmp != no ; then
2284 echo "configure: warning: slapd disabled, ignoring --enable-$i argument" 1>&2
2285 eval "ol_enable_$i=no"
2288 if test $ol_enable_modules = yes ; then
2289 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2291 if test $ol_enable_multimaster = yes ; then
2292 echo "configure: warning: slapd disabled, ignoring --enable-multimaster argument" 1>&2
2294 if test $ol_enable_wrappers = yes ; then
2295 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2297 if test $ol_enable_rlookups = yes ; then
2298 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2300 if test $ol_enable_aci = yes ; then
2301 echo "configure: warning: slapd disabled, ignoring --enable-aci argument" 1>&2
2303 if test $ol_with_ldbm_api != auto ; then
2304 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2306 if test $ol_with_ldbm_type != auto ; then
2307 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2309 if test $ol_enable_slurpd = yes ; then
2310 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2312 if test $ol_enable_rewrite = yes ; then
2313 echo "configure: warning: slapd disabled, ignoring --enable-rewrite argument" 1>&2
2315 for i in $Overlays; do
2316 eval "ol_tmp=\$ol_enable_$i"
2317 if test $ol_tmp != no ; then
2318 echo "configure: warning: slapd disabled, ignoring --enable-$i argument" 1>&2
2319 eval "ol_enable_$i=no"
2323 # force settings to no
2326 ol_enable_modules=no
2327 ol_enable_multimaster=no
2328 ol_enable_rlookups=no
2330 ol_enable_wrappers=no
2333 ol_with_ldbm_type=no
2337 ol_enable_rewrite=no
2339 elif test $ol_enable_ldbm = no ; then
2341 if test $ol_with_ldbm_api != auto ; then
2342 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2345 if test $ol_with_ldbm_type != auto ; then
2346 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2349 if test $ol_enable_modules != yes -a \
2350 $ol_enable_bdb = no -a \
2351 $ol_enable_dnssrv = no -a \
2352 $ol_enable_hdb = no -a \
2353 $ol_enable_ldap = no -a \
2354 $ol_enable_meta = no -a \
2355 $ol_enable_monitor = no -a \
2356 $ol_enable_null = no -a \
2357 $ol_enable_passwd = no -a \
2358 $ol_enable_perl = no -a \
2359 $ol_enable_shell = no -a \
2360 $ol_enable_sql = no ; then
2362 if test $ol_enable_slapd = yes ; then
2363 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2365 echo "configure: warning: skipping slapd, no backend specified" 1>&2
2371 ol_with_ldbm_type=no
2373 if test $ol_enable_bdb != no -o $ol_enable_hdb != no; then
2374 ol_with_ldbm_api=berkeley
2378 if test $ol_with_ldbm_api = gdbm -a \
2379 $ol_with_ldbm_type = btree ; then
2380 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2382 if test $ol_with_ldbm_api = mdbm -a \
2383 $ol_with_ldbm_type = btree ; then
2384 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2386 if test $ol_with_ldbm_api = ndbm -a \
2387 $ol_with_ldbm_type = btree ; then
2388 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2391 if test $ol_enable_bdb = yes -o $ol_enable_hdb = yes ; then
2392 if test $ol_with_ldbm_api = auto ; then
2393 ol_with_ldbm_api=berkeley
2394 elif test $ol_with_ldbm_api != berkeley ; then
2395 { echo "configure: error: LDBM API not compatible with BDB/HDB" 1>&2; exit 1; }
2398 elif test $ol_enable_bdb = auto ; then
2399 if test $ol_with_ldbm_api != berkeley \
2400 -o $ol_with_ldbm_api != auto ; then
2401 echo "configure: warning: LDBM API not compatible with BDB, disabling BDB" 1>&2
2407 if test $ol_enable_chain != no -a $ol_enable_ldap = no ; then
2408 { echo "configure: error: --enable-chain requires --enable-ldap" 1>&2; exit 1; }
2411 if test $ol_enable_meta = yes -a $ol_enable_ldap = no ; then
2412 { echo "configure: error: --enable-meta requires --enable-ldap" 1>&2; exit 1; }
2415 if test $ol_enable_slurpd = yes ; then
2416 if test $ol_with_threads = no ; then
2417 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2421 if test $ol_enable_lmpasswd = yes ; then
2422 if test $ol_with_tls = no ; then
2423 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
2427 if test $ol_enable_kbind = yes ; then
2428 if test $ol_with_kerberos = no ; then
2429 { echo "configure: error: options require --with-kerberos" 1>&2; exit 1; }
2430 elif test $ol_with_kerberos = auto ; then
2431 ol_with_kerberos=yes
2434 elif test $ol_enable_kbind = no ; then
2435 if test $ol_with_kerberos = auto ; then
2437 elif test $ol_with_kerberos != no ; then
2438 echo "configure: warning: Kerberos detection enabled unnecessarily" 1>&2;
2443 if test $ol_enable_spasswd = yes ; then
2444 if test $ol_with_cyrus_sasl = no ; then
2445 { echo "configure: error: options require --with-cyrus-sasl" 1>&2; exit 1; }
2447 ol_with_cyrus_sasl=yes
2450 echo "$ac_t""done" 1>&6
2484 SLAPD_DYNAMIC_OVERLAYS=
2486 SLAPD_MODULES_LDFLAGS=
2487 SLAPD_MODULES_CPPFLAGS=
2489 SLAPD_STATIC_BACKENDS=
2490 SLAPD_DYNAMIC_BACKENDS=
2513 # Find a good install program. We prefer a C program (faster),
2514 # so one script is as good as another. But avoid the broken or
2515 # incompatible versions:
2516 # SysV /etc/install, /usr/sbin/install
2517 # SunOS /usr/etc/install
2518 # IRIX /sbin/install
2520 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2521 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2522 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2523 # ./install, which can be erroneously created by make from ./install.sh.
2524 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2525 echo "configure:2526: checking for a BSD compatible install" >&5
2526 if test -z "$INSTALL"; then
2527 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
2528 echo $ac_n "(cached) $ac_c" 1>&6
2530 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2531 for ac_dir in $PATH; do
2532 # Account for people who put trailing slashes in PATH elements.
2534 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2536 # OSF1 and SCO ODT 3.0 have their own names for install.
2537 # Don't use installbsd from OSF since it installs stuff as root
2539 for ac_prog in ginstall scoinst install; do
2540 if test -f $ac_dir/$ac_prog; then
2541 if test $ac_prog = install &&
2542 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2543 # AIX install. It has an incompatible calling convention.
2545 elif test $ac_prog = install &&
2546 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
2547 # program-specific install script used by HP pwplus--don't use.
2550 ac_cv_path_install="$ac_dir/$ac_prog -c"
2561 if test "${ac_cv_path_install+set}" = set; then
2562 INSTALL="$ac_cv_path_install"
2564 # As a last resort, use the slow shell script. We don't cache a
2565 # path for INSTALL within a source directory, because that will
2566 # break other packages using the cache if that directory is
2567 # removed, or if the path is relative.
2568 INSTALL="$ac_install_sh"
2571 echo "$ac_t""$INSTALL" 1>&6
2573 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2574 # It thinks the first close brace ends the variable substitution.
2575 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2577 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2579 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2582 cat >> confdefs.h <<\EOF
2583 #define HAVE_MKVERSION 1
2591 *-*-aix*) if test -z "$CC" ; then
2592 case "$ol_with_threads" in
2593 auto | yes | posix) ol_aix_threads=yes ;;
2599 if test $ol_aix_threads = yes ; then
2600 if test -z "${CC}" ; then
2601 for ac_prog in cc_r xlc_r cc
2603 # Extract the first word of "$ac_prog", so it can be a program name with args.
2604 set dummy $ac_prog; ac_word=$2
2605 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2606 echo "configure:2607: checking for $ac_word" >&5
2607 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2608 echo $ac_n "(cached) $ac_c" 1>&6
2610 if test -n "$CC"; then
2611 ac_cv_prog_CC="$CC" # Let the user override the test.
2613 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2615 for ac_dir in $ac_dummy; do
2616 test -z "$ac_dir" && ac_dir=.
2617 if test -f $ac_dir/$ac_word; then
2618 ac_cv_prog_CC="$ac_prog"
2626 if test -n "$CC"; then
2627 echo "$ac_t""$CC" 1>&6
2629 echo "$ac_t""no" 1>&6
2632 test -n "$CC" && break
2636 if test "$CC" = cc ; then
2637 if test $ol_with_threads != auto ; then
2638 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
2640 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
2646 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
2647 ol_with_threads=posix
2648 ol_cv_pthread_create=yes
2652 if test -z "${CC}"; then
2653 for ac_prog in cc gcc
2655 # Extract the first word of "$ac_prog", so it can be a program name with args.
2656 set dummy $ac_prog; ac_word=$2
2657 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2658 echo "configure:2659: checking for $ac_word" >&5
2659 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2660 echo $ac_n "(cached) $ac_c" 1>&6
2662 if test -n "$CC"; then
2663 ac_cv_prog_CC="$CC" # Let the user override the test.
2665 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2667 for ac_dir in $ac_dummy; do
2668 test -z "$ac_dir" && ac_dir=.
2669 if test -f $ac_dir/$ac_word; then
2670 ac_cv_prog_CC="$ac_prog"
2678 if test -n "$CC"; then
2679 echo "$ac_t""$CC" 1>&6
2681 echo "$ac_t""no" 1>&6
2684 test -n "$CC" && break
2686 test -n "$CC" || CC="missing"
2689 if test "${CC}" = "missing" ; then
2690 { echo "configure: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." 1>&2; exit 1; }
2694 if test -z "${AR}"; then
2695 for ac_prog in ar gar
2697 # Extract the first word of "$ac_prog", so it can be a program name with args.
2698 set dummy $ac_prog; ac_word=$2
2699 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2700 echo "configure:2701: checking for $ac_word" >&5
2701 if eval "test \"\${ac_cv_prog_AR+set}\" = set"; then
2702 echo $ac_n "(cached) $ac_c" 1>&6
2704 if test -n "$AR"; then
2705 ac_cv_prog_AR="$AR" # Let the user override the test.
2707 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2709 for ac_dir in $ac_dummy; do
2710 test -z "$ac_dir" && ac_dir=.
2711 if test -f $ac_dir/$ac_word; then
2712 ac_cv_prog_AR="$ac_prog"
2720 if test -n "$AR"; then
2721 echo "$ac_t""$AR" 1>&6
2723 echo "$ac_t""no" 1>&6
2726 test -n "$AR" && break
2728 test -n "$AR" || AR="missing"
2731 if test "${AR}" = "missing" ; then
2732 { echo "configure: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." 1>&2; exit 1; }
2738 # Find the correct PATH separator. Usually this is `:', but
2739 # DJGPP uses `;' like DOS.
2740 if test "X${PATH_SEPARATOR+set}" != Xset; then
2741 UNAME=${UNAME-`uname 2>/dev/null`}
2743 *-DOS) lt_cv_sys_path_separator=';' ;;
2744 *) lt_cv_sys_path_separator=':' ;;
2746 PATH_SEPARATOR=$lt_cv_sys_path_separator
2749 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
2750 echo "configure:2751: checking for Cygwin environment" >&5
2751 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
2752 echo $ac_n "(cached) $ac_c" 1>&6
2754 cat > conftest.$ac_ext <<EOF
2755 #line 2756 "configure"
2756 #include "confdefs.h"
2761 #define __CYGWIN__ __CYGWIN32__
2766 if { (eval echo configure:2767: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2770 echo "configure: failed program was:" >&5
2771 cat conftest.$ac_ext >&5
2778 echo "$ac_t""$ac_cv_cygwin" 1>&6
2780 test "$ac_cv_cygwin" = yes && CYGWIN=yes
2781 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
2782 echo "configure:2783: checking for mingw32 environment" >&5
2783 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
2784 echo $ac_n "(cached) $ac_c" 1>&6
2786 cat > conftest.$ac_ext <<EOF
2787 #line 2788 "configure"
2788 #include "confdefs.h"
2794 if { (eval echo configure:2795: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2798 echo "configure: failed program was:" >&5
2799 cat conftest.$ac_ext >&5
2806 echo "$ac_t""$ac_cv_mingw32" 1>&6
2808 test "$ac_cv_mingw32" = yes && MINGW32=yes
2809 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
2810 echo "configure:2811: checking for EMX OS/2 environment" >&5
2811 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
2812 echo $ac_n "(cached) $ac_c" 1>&6
2814 cat > conftest.$ac_ext <<EOF
2815 #line 2816 "configure"
2816 #include "confdefs.h"
2822 if { (eval echo configure:2823: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2826 echo "configure: failed program was:" >&5
2827 cat conftest.$ac_ext >&5
2834 echo "$ac_t""$ac_cv_emxos2" 1>&6
2836 test "$ac_cv_emxos2" = yes && EMXOS2=yes
2837 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2838 echo "configure:2839: checking how to run the C preprocessor" >&5
2839 # On Suns, sometimes $CPP names a directory.
2840 if test -n "$CPP" && test -d "$CPP"; then
2843 if test -z "$CPP"; then
2844 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
2845 echo $ac_n "(cached) $ac_c" 1>&6
2847 # This must be in double quotes, not single quotes, because CPP may get
2848 # substituted into the Makefile and "${CC-cc}" will confuse make.
2850 # On the NeXT, cc -E runs the code through the compiler's parser,
2851 # not just through cpp.
2852 cat > conftest.$ac_ext <<EOF
2853 #line 2854 "configure"
2854 #include "confdefs.h"
2858 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2859 { (eval echo configure:2860: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2860 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2861 if test -z "$ac_err"; then
2865 echo "configure: failed program was:" >&5
2866 cat conftest.$ac_ext >&5
2868 CPP="${CC-cc} -E -traditional-cpp"
2869 cat > conftest.$ac_ext <<EOF
2870 #line 2871 "configure"
2871 #include "confdefs.h"
2875 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2876 { (eval echo configure:2877: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2877 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2878 if test -z "$ac_err"; then
2882 echo "configure: failed program was:" >&5
2883 cat conftest.$ac_ext >&5
2885 CPP="${CC-cc} -nologo -E"
2886 cat > conftest.$ac_ext <<EOF
2887 #line 2888 "configure"
2888 #include "confdefs.h"
2892 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2893 { (eval echo configure:2894: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2894 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2895 if test -z "$ac_err"; then
2899 echo "configure: failed program was:" >&5
2900 cat conftest.$ac_ext >&5
2909 ac_cv_prog_CPP="$CPP"
2911 CPP="$ac_cv_prog_CPP"
2913 ac_cv_prog_CPP="$CPP"
2915 echo "$ac_t""$CPP" 1>&6
2917 # Check whether --enable-fast-install or --disable-fast-install was given.
2918 if test "${enable_fast_install+set}" = set; then
2919 enableval="$enable_fast_install"
2920 p=${PACKAGE-default}
2922 yes) enable_fast_install=yes ;;
2923 no) enable_fast_install=no ;;
2925 enable_fast_install=no
2926 # Look at the argument we got. We use all the common list separators.
2927 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2928 for pkg in $enableval; do
2929 if test "X$pkg" = "X$p"; then
2930 enable_fast_install=yes
2937 enable_fast_install=yes
2940 # Extract the first word of "gcc", so it can be a program name with args.
2941 set dummy gcc; ac_word=$2
2942 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2943 echo "configure:2944: checking for $ac_word" >&5
2944 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2945 echo $ac_n "(cached) $ac_c" 1>&6
2947 if test -n "$CC"; then
2948 ac_cv_prog_CC="$CC" # Let the user override the test.
2950 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2952 for ac_dir in $ac_dummy; do
2953 test -z "$ac_dir" && ac_dir=.
2954 if test -f $ac_dir/$ac_word; then
2963 if test -n "$CC"; then
2964 echo "$ac_t""$CC" 1>&6
2966 echo "$ac_t""no" 1>&6
2969 if test -z "$CC"; then
2970 # Extract the first word of "cc", so it can be a program name with args.
2971 set dummy cc; 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_CC+set}\" = set"; then
2975 echo $ac_n "(cached) $ac_c" 1>&6
2977 if test -n "$CC"; then
2978 ac_cv_prog_CC="$CC" # Let the user override the test.
2980 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2983 for ac_dir in $ac_dummy; do
2984 test -z "$ac_dir" && ac_dir=.
2985 if test -f $ac_dir/$ac_word; then
2986 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2987 ac_prog_rejected=yes
2995 if test $ac_prog_rejected = yes; then
2996 # We found a bogon in the path, so make sure we never use it.
2997 set dummy $ac_cv_prog_CC
2999 if test $# -gt 0; then
3000 # We chose a different compiler from the bogus one.
3001 # However, it has the same basename, so the bogon will be chosen
3002 # first if we set CC to just the basename; use the full file name.
3004 set dummy "$ac_dir/$ac_word" "$@"
3012 if test -n "$CC"; then
3013 echo "$ac_t""$CC" 1>&6
3015 echo "$ac_t""no" 1>&6
3018 if test -z "$CC"; then
3019 case "`uname -s`" in
3020 *win32* | *WIN32* | *CYGWIN*)
3021 # Extract the first word of "cl", so it can be a program name with args.
3022 set dummy cl; ac_word=$2
3023 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3024 echo "configure:3025: checking for $ac_word" >&5
3025 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3026 echo $ac_n "(cached) $ac_c" 1>&6
3028 if test -n "$CC"; then
3029 ac_cv_prog_CC="$CC" # Let the user override the test.
3031 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3033 for ac_dir in $ac_dummy; do
3034 test -z "$ac_dir" && ac_dir=.
3035 if test -f $ac_dir/$ac_word; then
3044 if test -n "$CC"; then
3045 echo "$ac_t""$CC" 1>&6
3047 echo "$ac_t""no" 1>&6
3052 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
3055 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
3056 echo "configure:3057: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
3059 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3060 ac_cpp='$CPP $CPPFLAGS'
3061 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3062 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3063 cross_compiling=$ac_cv_prog_cc_cross
3065 cat > conftest.$ac_ext << EOF
3067 #line 3068 "configure"
3068 #include "confdefs.h"
3072 if { (eval echo configure:3073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3073 ac_cv_prog_cc_works=yes
3074 # If we can't run a trivial program, we are probably using a cross compiler.
3075 if (./conftest; exit) 2>/dev/null; then
3076 ac_cv_prog_cc_cross=no
3078 ac_cv_prog_cc_cross=yes
3081 echo "configure: failed program was:" >&5
3082 cat conftest.$ac_ext >&5
3083 ac_cv_prog_cc_works=no
3087 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3088 ac_cpp='$CPP $CPPFLAGS'
3089 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3090 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3091 cross_compiling=$ac_cv_prog_cc_cross
3093 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
3094 if test $ac_cv_prog_cc_works = no; then
3095 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
3097 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
3098 echo "configure:3099: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
3099 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
3100 cross_compiling=$ac_cv_prog_cc_cross
3102 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
3103 echo "configure:3104: checking whether we are using GNU C" >&5
3104 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
3105 echo $ac_n "(cached) $ac_c" 1>&6
3107 cat > conftest.c <<EOF
3112 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:3113: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
3119 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
3121 if test $ac_cv_prog_gcc = yes; then
3127 ac_test_CFLAGS="${CFLAGS+set}"
3128 ac_save_CFLAGS="$CFLAGS"
3130 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
3131 echo "configure:3132: checking whether ${CC-cc} accepts -g" >&5
3132 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
3133 echo $ac_n "(cached) $ac_c" 1>&6
3135 echo 'void f(){}' > conftest.c
3136 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
3145 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
3146 if test "$ac_test_CFLAGS" = set; then
3147 CFLAGS="$ac_save_CFLAGS"
3148 elif test $ac_cv_prog_cc_g = yes; then
3149 if test "$GCC" = yes; then
3155 if test "$GCC" = yes; then
3162 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3163 if test "${with_gnu_ld+set}" = set; then
3164 withval="$with_gnu_ld"
3165 test "$withval" = no || with_gnu_ld=yes
3171 if test "$GCC" = yes; then
3172 # Check if gcc -print-prog-name=ld gives a path.
3173 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
3174 echo "configure:3175: checking for ld used by GCC" >&5
3177 # gcc leaves a trailing carriage return which upsets mingw
3178 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3180 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3183 # Accept absolute paths.
3184 [\\/]* | [A-Za-z]:[\\/]*)
3185 re_direlt='/[^/][^/]*/\.\./'
3186 # Canonicalize the path of ld
3187 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3188 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3189 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3191 test -z "$LD" && LD="$ac_prog"
3194 # If it fails, then pretend we aren't using GCC.
3198 # If it is relative, then search for the first ld in PATH.
3202 elif test "$with_gnu_ld" = yes; then
3203 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
3204 echo "configure:3205: checking for GNU ld" >&5
3206 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
3207 echo "configure:3208: checking for non-GNU ld" >&5
3209 if eval "test \"\${lt_cv_path_LD+set}\" = set"; then
3210 echo $ac_n "(cached) $ac_c" 1>&6
3212 if test -z "$LD"; then
3213 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3214 for ac_dir in $PATH; do
3215 test -z "$ac_dir" && ac_dir=.
3216 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3217 lt_cv_path_LD="$ac_dir/$ac_prog"
3218 # Check to see if the program is GNU ld. I'd rather use --version,
3219 # but apparently some GNU ld's only accept -v.
3220 # Break only if it was the GNU/non-GNU ld that we prefer.
3221 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3222 test "$with_gnu_ld" != no && break
3224 test "$with_gnu_ld" != yes && break
3230 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3235 if test -n "$LD"; then
3236 echo "$ac_t""$LD" 1>&6
3238 echo "$ac_t""no" 1>&6
3240 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
3241 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
3242 echo "configure:3243: checking if the linker ($LD) is GNU ld" >&5
3243 if eval "test \"\${lt_cv_prog_gnu_ld+set}\" = set"; then
3244 echo $ac_n "(cached) $ac_c" 1>&6
3246 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3247 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3248 lt_cv_prog_gnu_ld=yes
3250 lt_cv_prog_gnu_ld=no
3254 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
3255 with_gnu_ld=$lt_cv_prog_gnu_ld
3258 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
3259 echo "configure:3260: checking for $LD option to reload object files" >&5
3260 if eval "test \"\${lt_cv_ld_reload_flag+set}\" = set"; then
3261 echo $ac_n "(cached) $ac_c" 1>&6
3263 lt_cv_ld_reload_flag='-r'
3266 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
3267 reload_flag=$lt_cv_ld_reload_flag
3268 test -n "$reload_flag" && reload_flag=" $reload_flag"
3270 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
3271 echo "configure:3272: checking for BSD-compatible nm" >&5
3272 if eval "test \"\${lt_cv_path_NM+set}\" = set"; then
3273 echo $ac_n "(cached) $ac_c" 1>&6
3275 if test -n "$NM"; then
3276 # Let the user override the test.
3279 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3280 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3281 test -z "$ac_dir" && ac_dir=.
3282 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3283 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3284 # Check to see if the nm accepts a BSD-compat flag.
3285 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3286 # nm: unknown option "B" ignored
3287 # Tru64's nm complains that /dev/null is an invalid object file
3288 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3289 lt_cv_path_NM="$tmp_nm -B"
3291 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3292 lt_cv_path_NM="$tmp_nm -p"
3295 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3296 continue # so that we can try to find one that supports BSD flags
3301 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3306 echo "$ac_t""$NM" 1>&6
3308 echo $ac_n "checking for a sed that does not truncate output""... $ac_c" 1>&6
3309 echo "configure:3310: checking for a sed that does not truncate output" >&5
3310 if eval "test \"\${lt_cv_path_SED+set}\" = set"; then
3311 echo $ac_n "(cached) $ac_c" 1>&6
3313 # Loop through the user's path and test for sed and gsed.
3314 # Then use that list of sed's as ones to test for truncation.
3315 as_executable_p="test -f"
3316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3320 test -z "$as_dir" && as_dir=.
3321 for ac_prog in sed gsed; do
3322 for ac_exec_ext in '' $ac_executable_extensions; do
3323 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3324 _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3330 # Create a temporary directory, and hook for its removal unless debugging.
3333 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3334 trap '{ (exit 1); exit 1; }' 1 2 13 15
3337 # Create a (secure) tmp directory for tmp files.
3340 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3341 test -n "$tmp" && test -d "$tmp"
3344 tmp=$TMPDIR/sed$$-$RANDOM
3345 (umask 077 && mkdir $tmp)
3348 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3349 { (exit 1); exit 1; }
3353 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3354 # along with /bin/sed that truncates output.
3355 for _sed in $_sed_list /usr/xpg4/bin/sed; do
3356 test ! -f ${_sed} && break
3357 cat /dev/null > "$tmp/sed.in"
3359 echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
3360 # Check for GNU sed and select it if it is found.
3361 if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
3362 lt_cv_path_SED=${_sed}
3366 cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3367 mv "$tmp/sed.tmp" "$tmp/sed.in"
3368 cp "$tmp/sed.in" "$tmp/sed.nl"
3369 echo >>"$tmp/sed.nl"
3370 ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
3371 cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
3372 # 40000 chars as input seems more than enough
3373 test $_count -gt 10 && break
3374 _count=`expr $_count + 1`
3375 if test $_count -gt $_max; then
3377 lt_cv_path_SED=$_sed
3385 if test "X$SED" != "X"; then
3390 echo "$ac_t""$SED" 1>&6
3392 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3393 echo "configure:3394: checking whether ln -s works" >&5
3394 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3395 echo $ac_n "(cached) $ac_c" 1>&6
3398 if ln -s X conftestdata 2>/dev/null
3401 ac_cv_prog_LN_S="ln -s"
3406 LN_S="$ac_cv_prog_LN_S"
3407 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3408 echo "$ac_t""yes" 1>&6
3410 echo "$ac_t""no" 1>&6
3413 echo $ac_n "checking how to recognise dependent libraries""... $ac_c" 1>&6
3414 echo "configure:3415: checking how to recognise dependent libraries" >&5
3415 if eval "test \"\${lt_cv_deplibs_check_method+set}\" = set"; then
3416 echo $ac_n "(cached) $ac_c" 1>&6
3418 lt_cv_file_magic_cmd='$MAGIC_CMD'
3419 lt_cv_file_magic_test_file=
3420 lt_cv_deplibs_check_method='unknown'
3421 # Need to set the preceding variable on all platforms that support
3422 # interlibrary dependencies.
3423 # 'none' -- dependencies not supported.
3424 # `unknown' -- same as none, but documents that we really don't know.
3425 # 'pass_all' -- all dependencies passed with no checks.
3426 # 'test_compile' -- check by making test program.
3427 # 'file_magic [[regex]]' -- check by looking for files in library path
3428 # which responds to the $file_magic_cmd with a given egrep regex.
3429 # If you have `file' or equivalent on your system and you're not sure
3430 # whether `pass_all' will *always* work, you probably want this one.
3434 lt_cv_deplibs_check_method=pass_all
3438 lt_cv_deplibs_check_method=pass_all
3442 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3443 lt_cv_file_magic_cmd='/usr/bin/file -L'
3444 lt_cv_file_magic_test_file=/shlib/libc.so
3447 cygwin* | mingw* | pw32*)
3448 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3449 lt_cv_file_magic_cmd='$OBJDUMP -f'
3452 darwin* | rhapsody*)
3453 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3454 lt_cv_file_magic_cmd='/usr/bin/file -L'
3456 rhapsody* | darwin1.[012])
3457 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3460 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3466 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3469 # Not sure whether the presence of OpenBSD here was a mistake.
3470 # Let's accept both of them until this is cleared up.
3471 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3472 lt_cv_file_magic_cmd=/usr/bin/file
3473 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3477 lt_cv_deplibs_check_method=pass_all
3482 lt_cv_deplibs_check_method=pass_all
3486 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3487 lt_cv_file_magic_cmd=/usr/bin/file
3488 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3491 irix5* | irix6* | nonstopux*)
3493 irix5* | nonstopux*)
3494 # this will be overridden with pass_all, but let us keep it just in case
3495 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3499 *-32|*"-32 ") libmagic=32-bit;;
3500 *-n32|*"-n32 ") libmagic=N32;;
3501 *-64|*"-64 ") libmagic=64-bit;;
3502 *) libmagic=never-match;;
3504 # this will be overridden with pass_all, but let us keep it just in case
3505 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3508 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3509 lt_cv_deplibs_check_method=pass_all
3512 # This must be Linux ELF.
3515 alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64*)
3516 lt_cv_deplibs_check_method=pass_all ;;
3518 # glibc up to 2.1.1 does not perform some relocations on ARM
3519 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3521 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3525 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3526 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3528 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3533 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3534 lt_cv_file_magic_cmd=/usr/bin/file
3535 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3539 lt_cv_file_magic_cmd=/usr/bin/file
3540 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3541 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3542 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3544 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3549 lt_cv_deplibs_check_method=pass_all
3552 osf3* | osf4* | osf5*)
3553 # this will be overridden with pass_all, but let us keep it just in case
3554 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3555 lt_cv_file_magic_test_file=/shlib/libc.so
3556 lt_cv_deplibs_check_method=pass_all
3560 lt_cv_deplibs_check_method=pass_all
3564 lt_cv_deplibs_check_method=pass_all
3565 lt_cv_file_magic_test_file=/lib/libc.so
3568 sysv5uw[78]* | sysv4*uw2*)
3569 lt_cv_deplibs_check_method=pass_all
3572 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3573 case $host_vendor in
3575 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]'
3576 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3579 lt_cv_deplibs_check_method=pass_all
3582 lt_cv_file_magic_cmd='/bin/file'
3583 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3586 lt_cv_file_magic_cmd='/bin/file'
3587 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3588 lt_cv_file_magic_test_file=/lib/libc.so
3591 lt_cv_deplibs_check_method=pass_all
3599 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
3600 file_magic_cmd=$lt_cv_file_magic_cmd
3601 deplibs_check_method=$lt_cv_deplibs_check_method
3603 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
3604 echo "configure:3605: checking for object suffix" >&5
3605 if eval "test \"\${ac_cv_objext+set}\" = set"; then
3606 echo $ac_n "(cached) $ac_c" 1>&6
3609 echo 'int i = 1;' > conftest.$ac_ext
3610 if { (eval echo configure:3611: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3611 for ac_file in conftest.*; do
3614 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
3618 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
3623 echo "$ac_t""$ac_cv_objext" 1>&6
3624 OBJEXT=$ac_cv_objext
3625 ac_objext=$ac_cv_objext
3630 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3631 echo "configure:3632: checking for executable suffix" >&5
3632 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
3633 echo $ac_n "(cached) $ac_c" 1>&6
3635 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
3639 echo 'int main () { return 0; }' > conftest.$ac_ext
3641 if { (eval echo configure:3642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3642 for file in conftest.*; do
3644 *.c | *.C | *.o | *.obj | *.xcoff) ;;
3645 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3649 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3652 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3657 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3658 echo "$ac_t""${ac_cv_exeext}" 1>&6
3661 if test $host != $build; then
3662 ac_tool_prefix=${host_alias}-
3670 # Check for command to grab the raw symbol name followed by C symbol from nm.
3671 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
3672 echo "configure:3673: checking command to parse $NM output" >&5
3673 if eval "test \"\${lt_cv_sys_global_symbol_pipe+set}\" = set"; then
3674 echo $ac_n "(cached) $ac_c" 1>&6
3677 # These are sane defaults that work on at least a few old systems.
3678 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
3680 # Character class describing NM global symbol codes.
3681 symcode='[BCDEGRST]'
3683 # Regexp to match symbols that can be accessed directly from C.
3684 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3686 # Transform the above into a raw symbol and a C symbol.
3687 symxfrm='\1 \2\3 \3'
3689 # Transform an extracted symbol line into a proper C declaration
3690 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3692 # Transform an extracted symbol line into symbol name and symbol address
3693 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'"
3695 # Define system-specific variables.
3700 cygwin* | mingw* | pw32*)
3701 symcode='[ABCDGISTW]'
3703 hpux*) # Its linker distinguishes data from code symbols
3704 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3705 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'"
3708 symcode='[BCDEGRST]'
3711 symcode='[BCDEGQRST]'
3721 # Handle CRLF in mingw tool chain
3725 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3729 # If we're using GNU nm, then use its standard symbol codes.
3730 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3731 symcode='[ABCDGISTW]'
3734 # Try without a prefix undercore, then with it.
3735 for ac_symprfx in "" "_"; do
3737 # Write the raw and C identifiers.
3738 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3740 # Check to see that the pipe works correctly.
3743 cat > conftest.$ac_ext <<EOF
3748 void nm_test_func(){}
3752 int main(){nm_test_var='a';nm_test_func();return(0);}
3755 if { (eval echo configure:3756: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3756 # Now try to grab the symbols.
3758 if { (eval echo configure:3759: \"$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
3759 # Try sorting and uniquifying the output.
3760 if sort "$nlist" | uniq > "$nlist"T; then
3761 mv -f "$nlist"T "$nlist"
3766 # Make sure that we snagged all the symbols we need.
3767 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3768 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3769 cat <<EOF > conftest.$ac_ext
3775 # Now generate the symbol file.
3776 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3778 cat <<EOF >> conftest.$ac_ext
3779 #if defined (__STDC__) && __STDC__
3780 # define lt_ptr void *
3782 # define lt_ptr char *
3786 /* The mapping between symbol names and symbols. */
3791 lt_preloaded_symbols[] =
3794 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
3795 cat <<\EOF >> conftest.$ac_ext
3803 # Now try linking the two files.
3804 mv conftest.$ac_objext conftstm.$ac_objext
3806 save_CFLAGS="$CFLAGS"
3807 LIBS="conftstm.$ac_objext"
3808 CFLAGS="$CFLAGS$no_builtin_flag"
3809 if { (eval echo configure:3810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
3813 CFLAGS="$save_CFLAGS"
3815 echo "cannot find nm_test_func in $nlist" >&5
3818 echo "cannot find nm_test_var in $nlist" >&5
3821 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
3824 echo "$progname: failed program was:" >&5
3825 cat conftest.$ac_ext >&5
3827 rm -f conftest* conftst*
3829 # Do not use the global_symbol_pipe unless it works.
3830 if test "$pipe_works" = yes; then
3833 lt_cv_sys_global_symbol_pipe=
3839 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
3840 if test -z "$lt_cv_sys_global_symbol_pipe"; then
3841 global_symbol_to_cdecl=
3842 global_symbol_to_c_name_address=
3844 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
3845 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
3847 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
3849 echo "$ac_t""failed" 1>&6
3851 echo "$ac_t""ok" 1>&6
3854 for ac_hdr in dlfcn.h
3856 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3857 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3858 echo "configure:3859: checking for $ac_hdr" >&5
3859 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3860 echo $ac_n "(cached) $ac_c" 1>&6
3862 cat > conftest.$ac_ext <<EOF
3863 #line 3864 "configure"
3864 #include "confdefs.h"
3867 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3868 { (eval echo configure:3869: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3869 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3870 if test -z "$ac_err"; then
3872 eval "ac_cv_header_$ac_safe=yes"
3875 echo "configure: failed program was:" >&5
3876 cat conftest.$ac_ext >&5
3878 eval "ac_cv_header_$ac_safe=no"
3882 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3883 echo "$ac_t""yes" 1>&6
3884 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3885 cat >> confdefs.h <<EOF
3886 #define $ac_tr_hdr 1
3890 echo "$ac_t""no" 1>&6
3899 # Only perform the check for file, if the check method requires it
3900 case $deplibs_check_method in
3902 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3903 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
3904 echo "configure:3905: checking for ${ac_tool_prefix}file" >&5
3905 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
3906 echo $ac_n "(cached) $ac_c" 1>&6
3910 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3913 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3916 ac_save_MAGIC_CMD="$MAGIC_CMD"
3917 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3918 ac_dummy="/usr/bin:$PATH"
3919 for ac_dir in $ac_dummy; do
3920 test -z "$ac_dir" && ac_dir=.
3921 if test -f $ac_dir/${ac_tool_prefix}file; then
3922 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3923 if test -n "$file_magic_test_file"; then
3924 case $deplibs_check_method in
3926 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3927 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3928 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3929 egrep "$file_magic_regex" > /dev/null; then
3934 *** Warning: the command libtool uses to detect shared libraries,
3935 *** $file_magic_cmd, produces output that libtool cannot recognize.
3936 *** The result is that libtool may fail to recognize shared libraries
3937 *** as such. This will affect the creation of libtool libraries that
3938 *** depend on shared libraries, but programs linked with such libtool
3939 *** libraries will work regardless of this problem. Nevertheless, you
3940 *** may want to report the problem to your system manager and/or to
3941 *** bug-libtool@gnu.org
3951 MAGIC_CMD="$ac_save_MAGIC_CMD"
3956 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3957 if test -n "$MAGIC_CMD"; then
3958 echo "$ac_t""$MAGIC_CMD" 1>&6
3960 echo "$ac_t""no" 1>&6
3963 if test -z "$lt_cv_path_MAGIC_CMD"; then
3964 if test -n "$ac_tool_prefix"; then
3965 echo $ac_n "checking for file""... $ac_c" 1>&6
3966 echo "configure:3967: checking for file" >&5
3967 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
3968 echo $ac_n "(cached) $ac_c" 1>&6
3972 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3975 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3978 ac_save_MAGIC_CMD="$MAGIC_CMD"
3979 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3980 ac_dummy="/usr/bin:$PATH"
3981 for ac_dir in $ac_dummy; do
3982 test -z "$ac_dir" && ac_dir=.
3983 if test -f $ac_dir/file; then
3984 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3985 if test -n "$file_magic_test_file"; then
3986 case $deplibs_check_method in
3988 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3989 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3990 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3991 egrep "$file_magic_regex" > /dev/null; then
3996 *** Warning: the command libtool uses to detect shared libraries,
3997 *** $file_magic_cmd, produces output that libtool cannot recognize.
3998 *** The result is that libtool may fail to recognize shared libraries
3999 *** as such. This will affect the creation of libtool libraries that
4000 *** depend on shared libraries, but programs linked with such libtool
4001 *** libraries will work regardless of this problem. Nevertheless, you
4002 *** may want to report the problem to your system manager and/or to
4003 *** bug-libtool@gnu.org
4013 MAGIC_CMD="$ac_save_MAGIC_CMD"
4018 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4019 if test -n "$MAGIC_CMD"; then
4020 echo "$ac_t""$MAGIC_CMD" 1>&6
4022 echo "$ac_t""no" 1>&6
4034 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4035 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4036 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4037 echo "configure:4038: checking for $ac_word" >&5
4038 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
4039 echo $ac_n "(cached) $ac_c" 1>&6
4041 if test -n "$RANLIB"; then
4042 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4044 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4046 for ac_dir in $ac_dummy; do
4047 test -z "$ac_dir" && ac_dir=.
4048 if test -f $ac_dir/$ac_word; then
4049 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4056 RANLIB="$ac_cv_prog_RANLIB"
4057 if test -n "$RANLIB"; then
4058 echo "$ac_t""$RANLIB" 1>&6
4060 echo "$ac_t""no" 1>&6
4064 if test -z "$ac_cv_prog_RANLIB"; then
4065 if test -n "$ac_tool_prefix"; then
4066 # Extract the first word of "ranlib", so it can be a program name with args.
4067 set dummy ranlib; ac_word=$2
4068 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4069 echo "configure:4070: checking for $ac_word" >&5
4070 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
4071 echo $ac_n "(cached) $ac_c" 1>&6
4073 if test -n "$RANLIB"; then
4074 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4076 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4078 for ac_dir in $ac_dummy; do
4079 test -z "$ac_dir" && ac_dir=.
4080 if test -f $ac_dir/$ac_word; then
4081 ac_cv_prog_RANLIB="ranlib"
4086 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
4089 RANLIB="$ac_cv_prog_RANLIB"
4090 if test -n "$RANLIB"; then
4091 echo "$ac_t""$RANLIB" 1>&6
4093 echo "$ac_t""no" 1>&6
4101 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4102 set dummy ${ac_tool_prefix}strip; ac_word=$2
4103 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4104 echo "configure:4105: checking for $ac_word" >&5
4105 if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then
4106 echo $ac_n "(cached) $ac_c" 1>&6
4108 if test -n "$STRIP"; then
4109 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4111 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4113 for ac_dir in $ac_dummy; do
4114 test -z "$ac_dir" && ac_dir=.
4115 if test -f $ac_dir/$ac_word; then
4116 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4123 STRIP="$ac_cv_prog_STRIP"
4124 if test -n "$STRIP"; then
4125 echo "$ac_t""$STRIP" 1>&6
4127 echo "$ac_t""no" 1>&6
4131 if test -z "$ac_cv_prog_STRIP"; then
4132 if test -n "$ac_tool_prefix"; then
4133 # Extract the first word of "strip", so it can be a program name with args.
4134 set dummy strip; ac_word=$2
4135 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4136 echo "configure:4137: checking for $ac_word" >&5
4137 if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then
4138 echo $ac_n "(cached) $ac_c" 1>&6
4140 if test -n "$STRIP"; then
4141 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4143 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4145 for ac_dir in $ac_dummy; do
4146 test -z "$ac_dir" && ac_dir=.
4147 if test -f $ac_dir/$ac_word; then
4148 ac_cv_prog_STRIP="strip"
4153 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
4156 STRIP="$ac_cv_prog_STRIP"
4157 if test -n "$STRIP"; then
4158 echo "$ac_t""$STRIP" 1>&6
4160 echo "$ac_t""no" 1>&6
4170 enable_win32_dll=yes
4172 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4173 if test "${enable_libtool_lock+set}" = set; then
4174 enableval="$enable_libtool_lock"
4178 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4180 # Some flags need to be propagated to the compiler or linker for good
4184 # Find out which ABI we are using.
4185 echo '#line 4186 "configure"' > conftest.$ac_ext
4186 if { (eval echo configure:4187: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4187 case `/usr/bin/file conftest.$ac_objext` in
4203 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4204 SAVE_CFLAGS="$CFLAGS"
4205 CFLAGS="$CFLAGS -belf"
4206 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
4207 echo "configure:4208: checking whether the C compiler needs -belf" >&5
4208 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
4209 echo $ac_n "(cached) $ac_c" 1>&6
4213 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4214 ac_cpp='$CPP $CPPFLAGS'
4215 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4216 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4217 cross_compiling=$ac_cv_prog_cc_cross
4219 cat > conftest.$ac_ext <<EOF
4220 #line 4221 "configure"
4221 #include "confdefs.h"
4227 if { (eval echo configure:4228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4229 lt_cv_cc_needs_belf=yes
4231 echo "configure: failed program was:" >&5
4232 cat conftest.$ac_ext >&5
4234 lt_cv_cc_needs_belf=no
4238 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4239 ac_cpp='$CPP $CPPFLAGS'
4240 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4241 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4242 cross_compiling=$ac_cv_prog_cc_cross
4246 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
4247 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4248 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4249 CFLAGS="$SAVE_CFLAGS"
4253 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4254 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4255 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4256 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4257 echo "configure:4258: checking for $ac_word" >&5
4258 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
4259 echo $ac_n "(cached) $ac_c" 1>&6
4261 if test -n "$DLLTOOL"; then
4262 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4264 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4266 for ac_dir in $ac_dummy; do
4267 test -z "$ac_dir" && ac_dir=.
4268 if test -f $ac_dir/$ac_word; then
4269 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4276 DLLTOOL="$ac_cv_prog_DLLTOOL"
4277 if test -n "$DLLTOOL"; then
4278 echo "$ac_t""$DLLTOOL" 1>&6
4280 echo "$ac_t""no" 1>&6
4284 if test -z "$ac_cv_prog_DLLTOOL"; then
4285 if test -n "$ac_tool_prefix"; then
4286 # Extract the first word of "dlltool", so it can be a program name with args.
4287 set dummy dlltool; ac_word=$2
4288 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4289 echo "configure:4290: checking for $ac_word" >&5
4290 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
4291 echo $ac_n "(cached) $ac_c" 1>&6
4293 if test -n "$DLLTOOL"; then
4294 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4296 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4298 for ac_dir in $ac_dummy; do
4299 test -z "$ac_dir" && ac_dir=.
4300 if test -f $ac_dir/$ac_word; then
4301 ac_cv_prog_DLLTOOL="dlltool"
4306 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
4309 DLLTOOL="$ac_cv_prog_DLLTOOL"
4310 if test -n "$DLLTOOL"; then
4311 echo "$ac_t""$DLLTOOL" 1>&6
4313 echo "$ac_t""no" 1>&6
4321 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4322 set dummy ${ac_tool_prefix}as; ac_word=$2
4323 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4324 echo "configure:4325: checking for $ac_word" >&5
4325 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
4326 echo $ac_n "(cached) $ac_c" 1>&6
4328 if test -n "$AS"; then
4329 ac_cv_prog_AS="$AS" # Let the user override the test.
4331 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4333 for ac_dir in $ac_dummy; do
4334 test -z "$ac_dir" && ac_dir=.
4335 if test -f $ac_dir/$ac_word; then
4336 ac_cv_prog_AS="${ac_tool_prefix}as"
4344 if test -n "$AS"; then
4345 echo "$ac_t""$AS" 1>&6
4347 echo "$ac_t""no" 1>&6
4351 if test -z "$ac_cv_prog_AS"; then
4352 if test -n "$ac_tool_prefix"; then
4353 # Extract the first word of "as", so it can be a program name with args.
4354 set dummy as; ac_word=$2
4355 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4356 echo "configure:4357: checking for $ac_word" >&5
4357 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
4358 echo $ac_n "(cached) $ac_c" 1>&6
4360 if test -n "$AS"; then
4361 ac_cv_prog_AS="$AS" # Let the user override the test.
4363 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4365 for ac_dir in $ac_dummy; do
4366 test -z "$ac_dir" && ac_dir=.
4367 if test -f $ac_dir/$ac_word; then
4373 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
4377 if test -n "$AS"; then
4378 echo "$ac_t""$AS" 1>&6
4380 echo "$ac_t""no" 1>&6
4388 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4389 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4390 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4391 echo "configure:4392: checking for $ac_word" >&5
4392 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
4393 echo $ac_n "(cached) $ac_c" 1>&6
4395 if test -n "$OBJDUMP"; then
4396 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4398 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4400 for ac_dir in $ac_dummy; do
4401 test -z "$ac_dir" && ac_dir=.
4402 if test -f $ac_dir/$ac_word; then
4403 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4410 OBJDUMP="$ac_cv_prog_OBJDUMP"
4411 if test -n "$OBJDUMP"; then
4412 echo "$ac_t""$OBJDUMP" 1>&6
4414 echo "$ac_t""no" 1>&6
4418 if test -z "$ac_cv_prog_OBJDUMP"; then
4419 if test -n "$ac_tool_prefix"; then
4420 # Extract the first word of "objdump", so it can be a program name with args.
4421 set dummy objdump; ac_word=$2
4422 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4423 echo "configure:4424: checking for $ac_word" >&5
4424 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
4425 echo $ac_n "(cached) $ac_c" 1>&6
4427 if test -n "$OBJDUMP"; then
4428 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4430 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4432 for ac_dir in $ac_dummy; do
4433 test -z "$ac_dir" && ac_dir=.
4434 if test -f $ac_dir/$ac_word; then
4435 ac_cv_prog_OBJDUMP="objdump"
4440 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
4443 OBJDUMP="$ac_cv_prog_OBJDUMP"
4444 if test -n "$OBJDUMP"; then
4445 echo "$ac_t""$OBJDUMP" 1>&6
4447 echo "$ac_t""no" 1>&6
4456 # recent cygwin and mingw systems supply a stub DllMain which the user
4457 # can override, but on older systems we have to supply one
4458 echo $ac_n "checking if libtool should supply DllMain function""... $ac_c" 1>&6
4459 echo "configure:4460: checking if libtool should supply DllMain function" >&5
4460 if eval "test \"\${lt_cv_need_dllmain+set}\" = set"; then
4461 echo $ac_n "(cached) $ac_c" 1>&6
4463 cat > conftest.$ac_ext <<EOF
4464 #line 4465 "configure"
4465 #include "confdefs.h"
4468 extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
4472 if { (eval echo configure:4473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4474 lt_cv_need_dllmain=no
4476 echo "configure: failed program was:" >&5
4477 cat conftest.$ac_ext >&5
4479 lt_cv_need_dllmain=yes
4484 echo "$ac_t""$lt_cv_need_dllmain" 1>&6
4487 *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
4488 # old mingw systems require "-dll" to link a DLL, while more recent ones
4490 SAVE_CFLAGS="$CFLAGS"
4491 CFLAGS="$CFLAGS -mdll"
4492 echo $ac_n "checking how to link DLLs""... $ac_c" 1>&6
4493 echo "configure:4494: checking how to link DLLs" >&5
4494 if eval "test \"\${lt_cv_cc_dll_switch+set}\" = set"; then
4495 echo $ac_n "(cached) $ac_c" 1>&6
4497 cat > conftest.$ac_ext <<EOF
4498 #line 4499 "configure"
4499 #include "confdefs.h"
4505 if { (eval echo configure:4506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4507 lt_cv_cc_dll_switch=-mdll
4509 echo "configure: failed program was:" >&5
4510 cat conftest.$ac_ext >&5
4512 lt_cv_cc_dll_switch=-dll
4517 echo "$ac_t""$lt_cv_cc_dll_switch" 1>&6
4518 CFLAGS="$SAVE_CFLAGS" ;;
4519 *-*-cygwin* | *-*-pw32*)
4520 # cygwin systems need to pass --dll to the linker, and not link
4521 # crt.o which will require a WinMain@16 definition.
4522 lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
4528 # Sed substitution that helps us do robust quoting. It backslashifies
4529 # metacharacters that are still active within double-quoted strings.
4530 Xsed='sed -e s/^X//'
4531 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4533 # Same as above, but do not quote variable references.
4534 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4536 # Sed substitution to delay expansion of an escaped shell variable in a
4537 # double_quote_subst'ed string.
4538 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4544 default_ofile=libtool
4545 can_build_shared=yes
4547 # All known linkers require a `.a' archive for static linking (except M$VC,
4548 # which needs '.lib').
4550 ltmain="$ac_aux_dir/ltmain.sh"
4551 ofile="$default_ofile"
4552 with_gnu_ld="$lt_cv_prog_gnu_ld"
4553 need_locks="$enable_libtool_lock"
4556 old_CFLAGS="$CFLAGS"
4558 # Set sane defaults for various variables
4559 test -z "$AR" && AR=ar
4560 test -z "$AR_FLAGS" && AR_FLAGS=cru
4561 test -z "$AS" && AS=as
4562 test -z "$CC" && CC=cc
4563 test -z "$DLLTOOL" && DLLTOOL=dlltool
4564 test -z "$LD" && LD=ld
4565 test -z "$LN_S" && LN_S="ln -s"
4566 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4567 test -z "$NM" && NM=nm
4568 test -z "$OBJDUMP" && OBJDUMP=objdump
4569 test -z "$RANLIB" && RANLIB=:
4570 test -z "$STRIP" && STRIP=:
4571 test -z "$ac_objext" && ac_objext=o
4573 if test x"$host" != x"$build"; then
4574 ac_tool_prefix=${host_alias}-
4579 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4582 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4587 # AIX sometimes has problems with the GCC collect2 program. For some
4588 # reason, if we set the COLLECT_NAMES environment variable, the problems
4589 # vanish in a puff of smoke.
4590 if test "X${COLLECT_NAMES+set}" != Xset; then
4592 export COLLECT_NAMES
4597 # Determine commands to create old-style static archives.
4598 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4599 old_postinstall_cmds='chmod 644 $oldlib'
4600 old_postuninstall_cmds=
4602 if test -n "$RANLIB"; then
4605 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4608 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4611 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4614 # Allow CC to be a program name with arguments.
4618 echo $ac_n "checking for objdir""... $ac_c" 1>&6
4619 echo "configure:4620: checking for objdir" >&5
4620 rm -f .libs 2>/dev/null
4621 mkdir .libs 2>/dev/null
4622 if test -d .libs; then
4625 # MS-DOS does not allow filenames that begin with a dot.
4628 rmdir .libs 2>/dev/null
4629 echo "$ac_t""$objdir" 1>&6
4632 # Check whether --with-pic or --without-pic was given.
4633 if test "${with_pic+set}" = set; then
4640 test -z "$pic_mode" && pic_mode=default
4642 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
4643 # in isolation, and that seeing it set (from the cache) indicates that
4644 # the associated values are set (in the cache) correctly too.
4645 echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6
4646 echo "configure:4647: checking for $compiler option to produce PIC" >&5
4647 if eval "test \"\${lt_cv_prog_cc_pic+set}\" = set"; then
4648 echo $ac_n "(cached) $ac_c" 1>&6
4651 lt_cv_prog_cc_shlib=
4653 lt_cv_prog_cc_static=
4654 lt_cv_prog_cc_no_builtin=
4655 lt_cv_prog_cc_can_build_shared=$can_build_shared
4657 if test "$GCC" = yes; then
4658 lt_cv_prog_cc_wl='-Wl,'
4659 lt_cv_prog_cc_static='-static'
4663 # Below there is a dirty hack to force normal static linking with -ldl
4664 # The problem is because libdl dynamically linked with both libc and
4665 # libC (AIX C++ library), which obviously doesn't included in libraries
4666 # list by gcc. This cause undefined symbols with -static flags.
4667 # This hack allows C programs to be linked with "-static -ldl", but
4668 # not sure about C++ programs.
4669 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
4672 # FIXME: we need at least 68020 code to build shared libraries, but
4673 # adding the `-m68020' flag to GCC prevents building anything better,
4675 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
4677 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4678 # PIC is the default for these OSes.
4680 darwin* | rhapsody*)
4681 # PIC is the default on this platform
4682 # Common symbols not allowed in MH_DYLIB files
4683 lt_cv_prog_cc_pic='-fno-common'
4685 cygwin* | mingw* | pw32* | os2*)
4686 # This hack is so that the source file can tell whether it is being
4687 # built for inclusion in a dll (and should export symbols for example).
4688 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4691 if test -d /usr/nec; then
4692 lt_cv_prog_cc_pic=-Kconform_pic
4696 lt_cv_prog_cc_pic='-fPIC'
4700 # PORTME Check for PIC flags for the system compiler.
4702 aix3* | aix4* | aix5*)
4703 lt_cv_prog_cc_wl='-Wl,'
4704 # All AIX code is PIC.
4705 if test "$host_cpu" = ia64; then
4706 # AIX 5 now supports IA64 processor
4707 lt_cv_prog_cc_static='-Bstatic'
4709 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
4713 hpux9* | hpux10* | hpux11*)
4714 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
4715 lt_cv_prog_cc_wl='-Wl,'
4716 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
4717 lt_cv_prog_cc_pic='+Z'
4720 irix5* | irix6* | nonstopux*)
4721 lt_cv_prog_cc_wl='-Wl,'
4722 lt_cv_prog_cc_static='-non_shared'
4723 # PIC (with -KPIC) is the default.
4726 cygwin* | mingw* | pw32* | os2*)
4727 # This hack is so that the source file can tell whether it is being
4728 # built for inclusion in a dll (and should export symbols for example).
4729 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4733 lt_cv_prog_cc_pic='-KPIC'
4734 lt_cv_prog_cc_static='-Bstatic'
4738 # XPLINK code is PIC by default
4741 osf3* | osf4* | osf5*)
4742 # All OSF/1 code is PIC.
4743 lt_cv_prog_cc_wl='-Wl,'
4744 lt_cv_prog_cc_static='-non_shared'
4748 lt_cv_prog_cc_pic='-Kpic'
4749 lt_cv_prog_cc_static='-dn'
4750 lt_cv_prog_cc_shlib='-belf'
4754 lt_cv_prog_cc_pic='-KPIC'
4755 lt_cv_prog_cc_static='-Bstatic'
4756 lt_cv_prog_cc_wl='-Wl,'
4760 lt_cv_prog_cc_pic='-PIC'
4761 lt_cv_prog_cc_static='-Bstatic'
4762 lt_cv_prog_cc_wl='-Qoption ld '
4765 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4766 lt_cv_prog_cc_pic='-KPIC'
4767 lt_cv_prog_cc_static='-Bstatic'
4768 lt_cv_prog_cc_wl='-Wl,'
4772 lt_cv_prog_cc_pic='-pic'
4773 lt_cv_prog_cc_static='-Bstatic'
4777 if test -d /usr/nec ;then
4778 lt_cv_prog_cc_pic='-Kconform_pic'
4779 lt_cv_prog_cc_static='-Bstatic'
4784 lt_cv_prog_cc_can_build_shared=no
4791 if test -z "$lt_cv_prog_cc_pic"; then
4792 echo "$ac_t""none" 1>&6
4794 echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6
4796 # Check to make sure the pic_flag actually works.
4797 echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6
4798 echo "configure:4799: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
4799 if eval "test \"\${lt_cv_prog_cc_pic_works+set}\" = set"; then
4800 echo $ac_n "(cached) $ac_c" 1>&6
4802 save_CFLAGS="$CFLAGS"
4803 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
4804 cat > conftest.$ac_ext <<EOF
4805 #line 4806 "configure"
4806 #include "confdefs.h"
4812 if { (eval echo configure:4813: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4815 hpux9* | hpux10* | hpux11*)
4816 # On HP-UX, both CC and GCC only warn that PIC is supported... then
4817 # they create non-PIC objects. So, if there were any warnings, we
4818 # assume that PIC is not supported.
4819 if test -s conftest.err; then
4820 lt_cv_prog_cc_pic_works=no
4822 lt_cv_prog_cc_pic_works=yes
4826 lt_cv_prog_cc_pic_works=yes
4831 echo "configure: failed program was:" >&5
4832 cat conftest.$ac_ext >&5
4834 lt_cv_prog_cc_pic_works=no
4838 CFLAGS="$save_CFLAGS"
4843 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
4845 lt_cv_prog_cc_can_build_shared=no
4847 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
4850 echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6
4853 # Check for any special shared library compilation flags.
4854 if test -n "$lt_cv_prog_cc_shlib"; then
4855 echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2
4856 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
4858 echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2
4859 lt_cv_prog_cc_can_build_shared=no
4863 echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6
4864 echo "configure:4865: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
4865 if eval "test \"\${lt_cv_prog_cc_static_works+set}\" = set"; then
4866 echo $ac_n "(cached) $ac_c" 1>&6
4868 lt_cv_prog_cc_static_works=no
4869 save_LDFLAGS="$LDFLAGS"
4870 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
4871 cat > conftest.$ac_ext <<EOF
4872 #line 4873 "configure"
4873 #include "confdefs.h"
4879 if { (eval echo configure:4880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4881 lt_cv_prog_cc_static_works=yes
4883 echo "configure: failed program was:" >&5
4884 cat conftest.$ac_ext >&5
4887 LDFLAGS="$save_LDFLAGS"
4892 # Belt *and* braces to stop my trousers falling down:
4893 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
4894 echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6
4896 pic_flag="$lt_cv_prog_cc_pic"
4897 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
4898 wl="$lt_cv_prog_cc_wl"
4899 link_static_flag="$lt_cv_prog_cc_static"
4900 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
4901 can_build_shared="$lt_cv_prog_cc_can_build_shared"
4904 # Check to see if options -o and -c are simultaneously supported by compiler
4905 echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6
4906 echo "configure:4907: checking if $compiler supports -c -o file.$ac_objext" >&5
4907 if eval "test \"\${lt_cv_compiler_c_o+set}\" = set"; then
4908 echo $ac_n "(cached) $ac_c" 1>&6
4911 $rm -r conftest 2>/dev/null
4914 echo "int some_variable = 0;" > conftest.$ac_ext
4916 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
4917 # that will create temporary files in the current directory regardless of
4918 # the output directory. Thus, making CWD read-only will cause this test
4919 # to fail, enabling locking or at least warning the user not to do parallel
4922 save_CFLAGS="$CFLAGS"
4923 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
4925 if { (eval echo configure:4926: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
4926 # The compiler can only warn and ignore the option if not recognized
4927 # So say no if there are warnings
4928 if test -s out/conftest.err; then
4929 lt_cv_compiler_c_o=no
4931 lt_cv_compiler_c_o=yes
4934 # Append any errors to the config.log.
4935 cat out/conftest.err 1>&5
4936 lt_cv_compiler_c_o=no
4938 CFLAGS="$save_CFLAGS"
4944 $rm -r conftest 2>/dev/null
4948 compiler_c_o=$lt_cv_compiler_c_o
4949 echo "$ac_t""$compiler_c_o" 1>&6
4951 if test x"$compiler_c_o" = x"yes"; then
4952 # Check to see if we can write to a .lo
4953 echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6
4954 echo "configure:4955: checking if $compiler supports -c -o file.lo" >&5
4955 if eval "test \"\${lt_cv_compiler_o_lo+set}\" = set"; then
4956 echo $ac_n "(cached) $ac_c" 1>&6
4959 lt_cv_compiler_o_lo=no
4960 save_CFLAGS="$CFLAGS"
4961 CFLAGS="$CFLAGS -c -o conftest.lo"
4962 save_objext="$ac_objext"
4964 cat > conftest.$ac_ext <<EOF
4965 #line 4966 "configure"
4966 #include "confdefs.h"
4969 int some_variable = 0;
4972 if { (eval echo configure:4973: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4974 # The compiler can only warn and ignore the option if not recognized
4975 # So say no if there are warnings
4976 if test -s conftest.err; then
4977 lt_cv_compiler_o_lo=no
4979 lt_cv_compiler_o_lo=yes
4983 echo "configure: failed program was:" >&5
4984 cat conftest.$ac_ext >&5
4987 ac_objext="$save_objext"
4988 CFLAGS="$save_CFLAGS"
4992 compiler_o_lo=$lt_cv_compiler_o_lo
4993 echo "$ac_t""$compiler_o_lo" 1>&6
4998 # Check to see if we can do hard links to lock some files if needed
4999 hard_links="nottested"
5000 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5001 # do not overwrite the value of need_locks provided by the user
5002 echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6
5003 echo "configure:5004: checking if we can lock with hard links" >&5
5006 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5008 ln conftest.a conftest.b 2>&5 || hard_links=no
5009 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5010 echo "$ac_t""$hard_links" 1>&6
5011 if test "$hard_links" = no; then
5012 echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2
5019 if test "$GCC" = yes; then
5020 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5021 echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6
5022 echo "configure:5023: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5023 echo "int some_variable = 0;" > conftest.$ac_ext
5024 save_CFLAGS="$CFLAGS"
5025 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5026 compiler_rtti_exceptions=no
5027 cat > conftest.$ac_ext <<EOF
5028 #line 5029 "configure"
5029 #include "confdefs.h"
5032 int some_variable = 0;
5035 if { (eval echo configure:5036: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5037 # The compiler can only warn and ignore the option if not recognized
5038 # So say no if there are warnings
5039 if test -s conftest.err; then
5040 compiler_rtti_exceptions=no
5042 compiler_rtti_exceptions=yes
5046 echo "configure: failed program was:" >&5
5047 cat conftest.$ac_ext >&5
5050 CFLAGS="$save_CFLAGS"
5051 echo "$ac_t""$compiler_rtti_exceptions" 1>&6
5053 if test "$compiler_rtti_exceptions" = "yes"; then
5054 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5056 no_builtin_flag=' -fno-builtin'
5060 # See if the linker supports building shared libraries.
5061 echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6
5062 echo "configure:5063: checking whether the linker ($LD) supports shared libraries" >&5
5064 allow_undefined_flag=
5066 need_lib_prefix=unknown
5067 need_version=unknown
5068 # when you set need_version to no, make sure it does not cause -set_version
5069 # flags to be left without arguments
5071 archive_expsym_cmds=
5072 old_archive_from_new_cmds=
5073 old_archive_from_expsyms_cmds=
5074 export_dynamic_flag_spec=
5075 whole_archive_flag_spec=
5076 thread_safe_flag_spec=
5077 hardcode_into_libs=no
5078 hardcode_libdir_flag_spec=
5079 hardcode_libdir_separator=
5082 hardcode_shlibpath_var=unsupported
5084 link_all_deplibs=unknown
5085 always_export_symbols=no
5086 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5087 # include_expsyms should be a list of space-separated symbols to be *always*
5088 # included in the symbol list
5090 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5091 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5092 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5093 # as well as any symbol that contains `d'.
5094 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5095 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5096 # platforms (ab)use it in PIC code, but their linkers get confused if
5097 # the symbol is explicitly referenced. Since portable code cannot
5098 # rely on this symbol name, it's probably fine to never include it in
5099 # preloaded symbol tables.
5100 extract_expsyms_cmds=
5103 cygwin* | mingw* | pw32*)
5104 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5105 # When not using gcc, we currently assume that we are using
5106 # Microsoft Visual C++.
5107 if test "$GCC" != yes; then
5117 if test "$with_gnu_ld" = yes; then
5118 # If archive_cmds runs LD, not CC, wlarc should be empty
5121 # See if GNU ld supports shared libraries.
5123 aix3* | aix4* | aix5*)
5124 # On AIX, the GNU linker is very broken
5125 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5129 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5130 *** to be unable to reliably create shared libraries on AIX.
5131 *** Therefore, libtool is disabling shared libraries support. If you
5132 *** really care for shared libraries, you may want to modify your PATH
5133 *** so that a non-GNU linker is found, and then restart.
5139 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)'
5140 hardcode_libdir_flag_spec='-L$libdir'
5141 hardcode_minus_L=yes
5143 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5144 # that the semantics of dynamic libraries on AmigaOS, at least up
5145 # to version 4, is to share data among multiple programs linked
5146 # with the same dynamic library. Since this doesn't match the
5147 # behavior of shared libraries on other platforms, we can use
5153 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5154 allow_undefined_flag=unsupported
5155 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5156 # support --undefined. This deserves some investigation. FIXME
5157 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5163 cygwin* | mingw* | pw32*)
5164 # hardcode_libdir_flag_spec is actually meaningless, as there is
5165 # no search path for DLLs.
5166 hardcode_libdir_flag_spec='-L$libdir'
5167 allow_undefined_flag=unsupported
5168 always_export_symbols=yes
5170 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5171 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5172 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5173 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5174 else $CC -o impgen impgen.c ; fi)~
5175 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5177 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5179 # cygwin and mingw dlls have different entry points and sets of symbols
5181 # FIXME: what about values for MSVC?
5182 dll_entry=__cygwin_dll_entry@12
5183 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5187 dll_entry=_DllMainCRTStartup@12
5188 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5192 # mingw and cygwin differ, and it's simplest to just exclude the union
5193 # of the two symbol sets.
5194 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5196 # recent cygwin and mingw systems supply a stub DllMain which the user
5197 # can override, but on older systems we have to supply one (in ltdll.c)
5198 if test "x$lt_cv_need_dllmain" = "xyes"; then
5199 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5200 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~
5201 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5207 # Extract the symbol export list from an `--export-all' def file,
5208 # then regenerate the def file from the symbol export list, so that
5209 # the compiled dll only exports the symbol export list.
5210 # Be careful not to strip the DATA tag left be newer dlltools.
5211 export_symbols_cmds="$ltdll_cmds"'
5212 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5213 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5215 # If the export-symbols file already is a .def file (1st line
5216 # is EXPORTS), use it as is.
5217 # If DATA tags from a recent dlltool are present, honour them!
5218 archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
5219 cp $export_symbols $output_objdir/$soname-def;
5221 echo EXPORTS > $output_objdir/$soname-def;
5223 cat $export_symbols | while read symbol; do
5226 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5227 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
5228 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5230 _lt_hint=`expr 1 + \$_lt_hint`;
5234 $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~
5235 $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~
5236 $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~
5237 $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~
5238 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5242 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5243 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5246 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5247 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5252 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5256 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5257 *** create shared libraries on Solaris systems. Therefore, libtool
5258 *** is disabling shared libraries support. We urge you to upgrade GNU
5259 *** binutils to release 2.9.1 or newer. Another option is to modify
5260 *** your PATH or compiler configuration so that the native linker is
5261 *** used, and then restart.
5264 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5265 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5266 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5273 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5276 hardcode_shlibpath_var=no
5280 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5281 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5282 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5289 if test "$ld_shlibs" = yes; then
5290 runpath_var=LD_RUN_PATH
5291 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5292 export_dynamic_flag_spec='${wl}--export-dynamic'
5294 cygwin* | mingw* | pw32*)
5295 # dlltool doesn't understand --whole-archive et. al.
5296 whole_archive_flag_spec=
5299 # ancient GNU ld didn't support --whole-archive et. al.
5300 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5301 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5303 whole_archive_flag_spec=
5309 # PORTME fill in a description of your system's linker (not GNU ld)
5312 allow_undefined_flag=unsupported
5313 always_export_symbols=yes
5314 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'
5315 # Note: this linker hardcodes the directories in LIBPATH if there
5316 # are no directories specified by -L.
5317 hardcode_minus_L=yes
5318 if test "$GCC" = yes && test -z "$link_static_flag"; then
5319 # Neither direct hardcoding nor static linking is supported with a
5321 hardcode_direct=unsupported
5326 if test "$host_cpu" = ia64; then
5327 # On IA64, the linker does run time linking by default, so we don't
5328 # have to do anything special.
5329 aix_use_runtimelinking=no
5330 exp_sym_flag='-Bexport'
5333 aix_use_runtimelinking=no
5335 # Test if we are trying to use run time linking or normal
5336 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5337 # need to do runtime linking.
5338 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5339 for ld_flag in $LDFLAGS; do
5342 aix_use_runtimelinking=yes
5349 exp_sym_flag='-bexport'
5350 no_entry_flag='-bnoentry'
5353 # When large executables or shared objects are built, AIX ld can
5354 # have problems creating the table of contents. If linking a library
5355 # or program results in "error TOC overflow" add -mminimal-toc to
5356 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5357 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5361 hardcode_libdir_separator=':'
5362 if test "$GCC" = yes; then
5363 case $host_os in aix4.[012]|aix4.[012].*)
5364 collect2name=`${CC} -print-prog-name=collect2`
5365 if test -f "$collect2name" && \
5366 strings "$collect2name" | grep resolve_lib_name >/dev/null
5368 # We have reworked collect2
5371 # We have old collect2
5372 hardcode_direct=unsupported
5373 # It fails to find uninstalled libraries when the uninstalled
5374 # path is not listed in the libpath. Setting hardcode_minus_L
5375 # to unsupported forces relinking
5376 hardcode_minus_L=yes
5377 hardcode_libdir_flag_spec='-L$libdir'
5378 hardcode_libdir_separator=
5382 shared_flag='-shared'
5385 if test "$host_cpu" = ia64; then
5386 shared_flag='${wl}-G'
5388 if test "$aix_use_runtimelinking" = yes; then
5389 shared_flag='${wl}-G'
5391 shared_flag='${wl}-bM:SRE'
5396 # It seems that -bexpall can do strange things, so it is better to
5397 # generate a list of symbols to export.
5398 always_export_symbols=yes
5399 if test "$aix_use_runtimelinking" = yes; then
5400 # Warning - without using the other runtime loading flags (-brtl),
5401 # -berok will link without error, but may produce a broken library.
5402 allow_undefined_flag='-berok'
5403 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5404 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"
5406 if test "$host_cpu" = ia64; then
5407 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5408 allow_undefined_flag="-z nodefs"
5409 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"
5411 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5412 # Warning - without using the other run time loading flags,
5413 # -berok will link without error, but may produce a broken library.
5414 allow_undefined_flag='${wl}-berok'
5415 # This is a bit strange, but is similar to how AIX traditionally builds
5416 # it's shared libraries.
5417 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'
5423 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)'
5424 hardcode_libdir_flag_spec='-L$libdir'
5425 hardcode_minus_L=yes
5426 # see comment about different semantics on the GNU ld section
5430 cygwin* | mingw* | pw32*)
5431 # When not using gcc, we currently assume that we are using
5432 # Microsoft Visual C++.
5433 # hardcode_libdir_flag_spec is actually meaningless, as there is
5434 # no search path for DLLs.
5435 hardcode_libdir_flag_spec=' '
5436 allow_undefined_flag=unsupported
5437 # Tell ltmain to make .lib files, not .a files.
5439 # FIXME: Setting linknames here is a bad hack.
5440 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5441 # The linker will automatically build a .lib file if we build a DLL.
5442 old_archive_from_new_cmds='true'
5443 # FIXME: Should let the user specify the lib program.
5444 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5445 fix_srcfile_path='`cygpath -w "$srcfile"`'
5448 darwin* | rhapsody*)
5450 rhapsody* | darwin1.[012])
5451 allow_undefined_flag='-undefined suppress'
5454 allow_undefined_flag='-flat_namespace -undefined suppress'
5457 # FIXME: Relying on posixy $() will cause problems for
5458 # cross-compilation, but unfortunately the echo tests do not
5459 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
5460 # `"' quotes if we put them in here... so don't!
5461 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)'
5462 # We need to add '_' to the symbols in $export_symbols first
5463 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5465 hardcode_shlibpath_var=no
5466 whole_archive_flag_spec='-all_load $convenience'
5473 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5474 # support. Future versions do this automatically, but an explicit c++rt0.o
5475 # does not break anything, and helps significantly (at the cost of a little
5478 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5479 hardcode_libdir_flag_spec='-R$libdir'
5481 hardcode_shlibpath_var=no
5484 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5486 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5488 hardcode_minus_L=yes
5489 hardcode_shlibpath_var=no
5492 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5494 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5495 hardcode_libdir_flag_spec='-R$libdir'
5497 hardcode_shlibpath_var=no
5500 hpux9* | hpux10* | hpux11*)
5502 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' ;;
5503 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5505 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5506 hardcode_libdir_separator=:
5508 hardcode_minus_L=yes # Not in the search PATH, but as the default
5509 # location of the library.
5510 export_dynamic_flag_spec='${wl}-E'
5513 irix5* | irix6* | nonstopux*)
5514 if test "$GCC" = yes; then
5515 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'
5516 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5518 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'
5519 hardcode_libdir_flag_spec='-rpath $libdir'
5521 hardcode_libdir_separator=:
5522 link_all_deplibs=yes
5526 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5527 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5529 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5531 hardcode_libdir_flag_spec='-R$libdir'
5533 hardcode_shlibpath_var=no
5537 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5539 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5540 hardcode_libdir_separator=:
5541 hardcode_shlibpath_var=no
5546 hardcode_shlibpath_var=no
5547 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5548 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5549 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5550 export_dynamic_flag_spec='${wl}-E'
5553 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5554 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5555 hardcode_libdir_flag_spec='-R$libdir'
5558 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5559 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5566 archive_cmds="\$CC -Wl,DLL \$libobjs \$deplibs \$compiler_flags -o \$lib &&
5567 cp \$linknames \$output_objdir && linknames=''"
5568 export_dynamic_flag_spec="-Wl,DLL"
5572 hardcode_libdir_flag_spec='-L$libdir'
5573 hardcode_minus_L=yes
5574 allow_undefined_flag=unsupported
5575 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'
5576 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5580 if test "$GCC" = yes; then
5581 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5582 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'
5584 allow_undefined_flag=' -expect_unresolved \*'
5585 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'
5587 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5588 hardcode_libdir_separator=:
5591 osf4* | osf5*) # as osf3* with the addition of -msym flag
5592 if test "$GCC" = yes; then
5593 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5594 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'
5595 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5597 allow_undefined_flag=' -expect_unresolved \*'
5598 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'
5599 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5600 $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'
5602 #Both c and cxx compiler support -rpath directly
5603 hardcode_libdir_flag_spec='-rpath $libdir'
5605 hardcode_libdir_separator=:
5609 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5610 hardcode_shlibpath_var=no
5611 runpath_var=LD_RUN_PATH
5612 hardcode_runpath_var=yes
5613 export_dynamic_flag_spec='${wl}-Bexport'
5617 # gcc --version < 3.0 without binutils cannot create self contained
5618 # shared libraries reliably, requiring libgcc.a to resolve some of
5619 # the object symbols generated in some cases. Libraries that use
5620 # assert need libgcc.a to resolve __eprintf, for example. Linking
5621 # a copy of libgcc.a into every shared library to guarantee resolving
5622 # such symbols causes other problems: According to Tim Van Holder
5623 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
5624 # (to the application) exception stack for one thing.
5625 no_undefined_flag=' -z defs'
5626 if test "$GCC" = yes; then
5627 case `$CC --version 2>/dev/null` in
5631 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5632 *** create self contained shared libraries on Solaris systems, without
5633 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
5634 *** -no-undefined support, which will at least allow you to build shared
5635 *** libraries. However, you may find that when you link such libraries
5636 *** into an application without using GCC, you have to manually add
5637 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
5638 *** upgrade to a newer version of GCC. Another option is to rebuild your
5639 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
5646 # $CC -shared without GNU ld will not create a library from C++
5647 # object files and a static libstdc++, better avoid it by now
5648 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5649 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5650 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5651 hardcode_libdir_flag_spec='-R$libdir'
5652 hardcode_shlibpath_var=no
5654 solaris2.[0-5] | solaris2.[0-5].*) ;;
5655 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5656 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5658 link_all_deplibs=yes
5662 if test "x$host_vendor" = xsequent; then
5663 # Use $CC to link under sequent, because it throws in some extra .o
5664 # files that make .init and .fini sections work.
5665 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5667 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5669 hardcode_libdir_flag_spec='-L$libdir'
5671 hardcode_minus_L=yes
5672 hardcode_shlibpath_var=no
5676 case $host_vendor in
5678 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5679 hardcode_direct=yes # is this really true???
5682 ## LD is ld it makes a PLAMLIB
5683 ## CC just makes a GrossModule.
5684 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5685 reload_cmds='$CC -r -o $output$reload_objs'
5689 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5690 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5693 runpath_var='LD_RUN_PATH'
5694 hardcode_shlibpath_var=no
5698 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5699 hardcode_shlibpath_var=no
5700 export_dynamic_flag_spec='-Bexport'
5704 no_undefined_flag=' -z text'
5705 # $CC -shared without GNU ld will not create a library from C++
5706 # object files and a static libstdc++, better avoid it by now
5707 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5708 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5709 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5710 hardcode_libdir_flag_spec=
5711 hardcode_shlibpath_var=no
5712 runpath_var='LD_RUN_PATH'
5716 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5717 hardcode_libdir_flag_spec='-L$libdir'
5718 hardcode_shlibpath_var=no
5722 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5723 hardcode_libdir_flag_spec='-L$libdir'
5724 hardcode_shlibpath_var=no
5728 if test -d /usr/nec; then
5729 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5730 hardcode_shlibpath_var=no
5731 runpath_var=LD_RUN_PATH
5732 hardcode_runpath_var=yes
5738 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5741 hardcode_shlibpath_var=no
5742 hardcode_runpath_var=yes
5743 runpath_var=LD_RUN_PATH
5746 sysv5uw7* | unixware7*)
5747 no_undefined_flag='${wl}-z ${wl}text'
5748 if test "$GCC" = yes; then
5749 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5751 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5753 runpath_var='LD_RUN_PATH'
5754 hardcode_shlibpath_var=no
5762 echo "$ac_t""$ld_shlibs" 1>&6
5763 test "$ld_shlibs" = no && can_build_shared=no
5765 # Check hardcoding attributes.
5766 echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6
5767 echo "configure:5768: checking how to hardcode library paths into programs" >&5
5769 if test -n "$hardcode_libdir_flag_spec" || \
5770 test -n "$runpath_var"; then
5772 # We can hardcode non-existant directories.
5773 if test "$hardcode_direct" != no &&
5774 # If the only mechanism to avoid hardcoding is shlibpath_var, we
5775 # have to relink, otherwise we might link with an installed library
5776 # when we should be linking with a yet-to-be-installed one
5777 ## test "$hardcode_shlibpath_var" != no &&
5778 test "$hardcode_minus_L" != no; then
5779 # Linking always hardcodes the temporary library directory.
5780 hardcode_action=relink
5782 # We can link without hardcoding, and we can hardcode nonexisting dirs.
5783 hardcode_action=immediate
5786 # We cannot hardcode anything, or else we can only hardcode existing
5788 hardcode_action=unsupported
5790 echo "$ac_t""$hardcode_action" 1>&6
5794 echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6
5795 echo "configure:5796: checking whether stripping libraries is possible" >&5
5796 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
5797 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
5798 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
5799 echo "$ac_t""yes" 1>&6
5801 echo "$ac_t""no" 1>&6
5804 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5805 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5807 # PORTME Fill in your ld.so characteristics
5808 echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6
5809 echo "configure:5810: checking dynamic linker characteristics" >&5
5811 libname_spec='lib$name'
5818 shlibpath_overrides_runpath=unknown
5820 dynamic_linker="$host_os ld.so"
5821 sys_lib_dlsearch_path_spec="/lib /usr/lib"
5822 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
5827 library_names_spec='${libname}${release}.so$versuffix $libname.a'
5828 shlibpath_var=LIBPATH
5830 # AIX has no versioning support, so we append a major version to the name.
5831 soname_spec='${libname}${release}.so$major'
5838 hardcode_into_libs=yes
5839 if test "$host_cpu" = ia64; then
5840 # AIX 5 supports IA64
5841 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
5842 shlibpath_var=LD_LIBRARY_PATH
5844 # With GCC up to 2.95.x, collect2 would create an import file
5845 # for dependence libraries. The import file would start with
5846 # the line `#! .'. This would cause the generated library to
5847 # depend on `.', always an invalid library. This was fixed in
5848 # development snapshots of GCC prior to 3.0.
5850 aix4 | aix4.[01] | aix4.[01].*)
5851 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
5853 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
5860 # AIX (on Power*) has no versioning support, so currently we can
5861 # not hardcode correct soname into executable. Probably we can
5862 # add versioning support to collect2, so additional links can
5863 # be useful in future.
5864 if test "$aix_use_runtimelinking" = yes; then
5865 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
5866 # instead of lib<name>.a to let people know that these are not
5867 # typical AIX shared libraries.
5868 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5870 # We preserve .a as extension for shared libraries through AIX4.2
5871 # and later when we are not doing run time linking.
5872 library_names_spec='${libname}${release}.a $libname.a'
5873 soname_spec='${libname}${release}.so$major'
5875 shlibpath_var=LIBPATH
5877 hardcode_into_libs=yes
5881 library_names_spec='$libname.ixlibrary $libname.a'
5882 # Create ${libname}_ixlibrary.a entries in /sys/libs.
5883 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'
5887 library_names_spec='${libname}.so'
5888 dynamic_linker="$host_os ld.so"
5889 shlibpath_var=LIBRARY_PATH
5895 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5896 soname_spec='${libname}${release}.so$major'
5897 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
5898 shlibpath_var=LD_LIBRARY_PATH
5899 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
5900 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
5901 export_dynamic_flag_spec=-rdynamic
5902 # the default ld.so.conf also contains /usr/contrib/lib and
5903 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
5904 # libtool to hard-code these into programs
5907 cygwin* | mingw* | pw32*)
5908 version_type=windows
5911 case $GCC,$host_os in
5913 library_names_spec='$libname.dll.a'
5914 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5915 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
5916 dldir=$destdir/`dirname \$dlpath`~
5917 test -d \$dldir || mkdir -p \$dldir~
5918 $install_prog .libs/$dlname \$dldir/$dlname'
5919 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
5920 dlpath=$dir/\$dldll~
5924 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5925 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
5928 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
5931 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
5934 dynamic_linker='Win32 ld.exe'
5935 # FIXME: first we should search . and the directory the executable is in
5939 darwin* | rhapsody*)
5940 dynamic_linker="$host_os dyld"
5944 # FIXME: Relying on posixy $() will cause problems for
5945 # cross-compilation, but unfortunately the echo tests do not
5946 # yet detect zsh echo's removal of \ escapes.
5947 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)'
5948 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
5949 shlibpath_overrides_runpath=yes
5950 shlibpath_var=DYLD_LIBRARY_PATH
5958 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
5959 version_type=freebsd-$objformat
5960 case $version_type in
5962 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5967 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
5971 shlibpath_var=LD_LIBRARY_PATH
5974 shlibpath_overrides_runpath=yes
5977 shlibpath_overrides_runpath=no
5978 hardcode_into_libs=yes
5987 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
5988 soname_spec='${libname}${release}.so$major'
5989 shlibpath_var=LD_LIBRARY_PATH
5990 hardcode_into_libs=yes
5993 hpux9* | hpux10* | hpux11*)
5994 # Give a soname corresponding to the major version so that dld.sl refuses to
5995 # link against other versions.
5996 dynamic_linker="$host_os dld.sl"
6000 shlibpath_var=SHLIB_PATH
6001 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6002 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6003 soname_spec='${libname}${release}.sl$major'
6004 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6005 postinstall_cmds='chmod 555 $lib'
6008 irix5* | irix6* | nonstopux*)
6010 nonstopux*) version_type=nonstopux ;;
6011 *) version_type=irix ;;
6015 soname_spec='${libname}${release}.so$major'
6016 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6018 irix5* | nonstopux*)
6022 case $LD in # libtool.m4 will add one of these switches to LD
6023 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6024 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6025 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6026 *) libsuff= shlibsuff= libmagic=never-match;;
6030 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6031 shlibpath_overrides_runpath=no
6032 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6033 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6036 # No shared lib support for Linux oldld, aout, or coff.
6037 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6041 # This must be Linux ELF.
6046 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6047 soname_spec='${libname}${release}.so$major'
6048 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6049 shlibpath_var=LD_LIBRARY_PATH
6050 shlibpath_overrides_runpath=no
6051 # This implies no fast_install, which is unacceptable.
6052 # Some rework will be needed to allow for fast_install
6053 # before this can be enabled.
6054 hardcode_into_libs=yes
6056 # We used to test for /lib/ld.so.1 and disable shared libraries on
6057 # powerpc, because MkLinux only supported shared libraries with the
6058 # GNU dynamic linker. Since this was broken with cross compilers,
6059 # most powerpc-linux boxes support dynamic linking these days and
6060 # people can always --disable-shared, the test was removed, and we
6061 # assume the GNU/Linux dynamic linker is in use.
6062 dynamic_linker='GNU/Linux ld.so'
6069 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6070 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6071 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6072 dynamic_linker='NetBSD (a.out) ld.so'
6074 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6075 soname_spec='${libname}${release}.so$major'
6076 dynamic_linker='NetBSD ld.elf_so'
6078 shlibpath_var=LD_LIBRARY_PATH
6079 shlibpath_overrides_runpath=yes
6080 hardcode_into_libs=yes
6085 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6086 shlibpath_var=LD_LIBRARY_PATH
6087 shlibpath_overrides_runpath=yes
6094 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6096 openbsd2.[89] | openbsd2.[89].*)
6097 shlibpath_overrides_runpath=no
6100 shlibpath_overrides_runpath=yes
6104 shlibpath_overrides_runpath=yes
6106 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6107 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6108 shlibpath_var=LD_LIBRARY_PATH
6114 shlibpath_overrides_runpath=yes
6115 shlibpath_var=LIBPATH
6116 postinstall_cmds="rm \$destdir/\$linkname; cp \$linkname \$destdir; chmod a+x \$lib"
6117 # the library's exports are in libname.x; this is the file that must
6118 # actually be linked with to use a DLL.
6119 library_names_spec="\${libname}\${release}.so\$versuffix \${libname}.x"
6123 libname_spec='$name'
6125 library_names_spec='$libname.dll $libname.a'
6126 dynamic_linker='OS/2 ld.exe'
6127 shlibpath_var=LIBPATH
6130 osf3* | osf4* | osf5*)
6133 soname_spec='${libname}${release}.so$major'
6134 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6135 shlibpath_var=LD_LIBRARY_PATH
6136 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6137 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6138 hardcode_into_libs=yes
6143 soname_spec='${libname}${release}.so$major'
6144 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6145 shlibpath_var=LD_LIBRARY_PATH
6152 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6153 soname_spec='${libname}${release}.so$major'
6154 shlibpath_var=LD_LIBRARY_PATH
6155 shlibpath_overrides_runpath=yes
6156 hardcode_into_libs=yes
6157 # ldd complains unless libraries are executable
6158 postinstall_cmds='chmod +x $lib'
6163 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6164 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6165 shlibpath_var=LD_LIBRARY_PATH
6166 shlibpath_overrides_runpath=yes
6167 if test "$with_gnu_ld" = yes; then
6173 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6175 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6176 soname_spec='${libname}${release}.so$major'
6177 shlibpath_var=LD_LIBRARY_PATH
6178 case $host_vendor in
6180 shlibpath_overrides_runpath=no
6182 export_dynamic_flag_spec='${wl}-Blargedynsym'
6183 runpath_var=LD_RUN_PATH
6191 shlibpath_overrides_runpath=no
6192 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6199 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6200 soname_spec='${libname}${release}.so$major'
6201 shlibpath_var=LD_LIBRARY_PATH
6208 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6209 soname_spec='${libname}${release}.so$major'
6210 shlibpath_var=LD_LIBRARY_PATH
6214 if test -d /usr/nec ;then
6216 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6217 soname_spec='$libname.so.$major'
6218 shlibpath_var=LD_LIBRARY_PATH
6226 echo "$ac_t""$dynamic_linker" 1>&6
6227 test "$dynamic_linker" = no && can_build_shared=no
6229 # Report the final consequences.
6230 echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6
6231 echo "configure:6232: checking if libtool supports shared libraries" >&5
6232 echo "$ac_t""$can_build_shared" 1>&6
6234 echo $ac_n "checking whether to build shared libraries""... $ac_c" 1>&6
6235 echo "configure:6236: checking whether to build shared libraries" >&5
6236 test "$can_build_shared" = "no" && enable_shared=no
6238 # On AIX, shared libraries and static libraries use the same namespace, and
6239 # are all built from PIC.
6242 test "$enable_shared" = yes && enable_static=no
6243 if test -n "$RANLIB"; then
6244 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6245 postinstall_cmds='$RANLIB $lib'
6250 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6251 test "$enable_shared" = yes && enable_static=no
6255 echo "$ac_t""$enable_shared" 1>&6
6257 echo $ac_n "checking whether to build static libraries""... $ac_c" 1>&6
6258 echo "configure:6259: checking whether to build static libraries" >&5
6259 # Make sure either enable_shared or enable_static is yes.
6260 test "$enable_shared" = yes || enable_static=yes
6261 echo "$ac_t""$enable_static" 1>&6
6263 if test "$hardcode_action" = relink; then
6264 # Fast installation is not supported
6265 enable_fast_install=no
6266 elif test "$shlibpath_overrides_runpath" = yes ||
6267 test "$enable_shared" = no; then
6268 # Fast installation is not necessary
6269 enable_fast_install=needless
6272 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6273 if test "$GCC" = yes; then
6274 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6277 if test "x$enable_dlopen" != xyes; then
6278 enable_dlopen=unknown
6279 enable_dlopen_self=unknown
6280 enable_dlopen_self_static=unknown
6287 lt_cv_dlopen="load_add_on"
6289 lt_cv_dlopen_self=yes
6292 cygwin* | mingw* | pw32*)
6293 lt_cv_dlopen="LoadLibrary"
6298 echo $ac_n "checking for dllload""... $ac_c" 1>&6
6299 echo "configure:6300: checking for dllload" >&5
6300 if eval "test \"\${ac_cv_func_dllload+set}\" = set"; then
6301 echo $ac_n "(cached) $ac_c" 1>&6
6303 cat > conftest.$ac_ext <<EOF
6304 #line 6305 "configure"
6305 #include "confdefs.h"
6306 /* System header to define __stub macros and hopefully few prototypes,
6307 which can conflict with char dllload(); below. */
6309 /* Override any gcc2 internal prototype to avoid an error. */
6310 /* We use char because int might match the return type of a gcc2
6311 builtin and then its argument prototype would still apply. */
6317 /* The GNU C library defines this for functions which it implements
6318 to always fail with ENOSYS. Some functions are actually named
6319 something starting with __ and the normal name is an alias. */
6320 #if defined (__stub_dllload) || defined (__stub___dllload)
6328 if { (eval echo configure:6329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6330 eval "ac_cv_func_dllload=yes"
6332 echo "configure: failed program was:" >&5
6333 cat conftest.$ac_ext >&5
6335 eval "ac_cv_func_dllload=no"
6340 if eval "test \"`echo '$ac_cv_func_'dllload`\" = yes"; then
6341 echo "$ac_t""yes" 1>&6
6342 lt_cv_dlopen="dllload"
6344 echo "$ac_t""no" 1>&6
6345 echo $ac_n "checking for shl_load""... $ac_c" 1>&6
6346 echo "configure:6347: checking for shl_load" >&5
6347 if eval "test \"\${ac_cv_func_shl_load+set}\" = set"; then
6348 echo $ac_n "(cached) $ac_c" 1>&6
6350 cat > conftest.$ac_ext <<EOF
6351 #line 6352 "configure"
6352 #include "confdefs.h"
6353 /* System header to define __stub macros and hopefully few prototypes,
6354 which can conflict with char shl_load(); below. */
6356 /* Override any gcc2 internal prototype to avoid an error. */
6357 /* We use char because int might match the return type of a gcc2
6358 builtin and then its argument prototype would still apply. */
6364 /* The GNU C library defines this for functions which it implements
6365 to always fail with ENOSYS. Some functions are actually named
6366 something starting with __ and the normal name is an alias. */
6367 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6375 if { (eval echo configure:6376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6377 eval "ac_cv_func_shl_load=yes"
6379 echo "configure: failed program was:" >&5
6380 cat conftest.$ac_ext >&5
6382 eval "ac_cv_func_shl_load=no"
6387 if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
6388 echo "$ac_t""yes" 1>&6
6389 lt_cv_dlopen="shl_load"
6391 echo "$ac_t""no" 1>&6
6392 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
6393 echo "configure:6394: checking for shl_load in -ldld" >&5
6394 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-:%__p__%'`
6395 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6396 echo $ac_n "(cached) $ac_c" 1>&6
6398 ac_save_LIBS="$LIBS"
6400 cat > conftest.$ac_ext <<EOF
6401 #line 6402 "configure"
6402 #include "confdefs.h"
6403 /* Override any gcc2 internal prototype to avoid an error. */
6404 /* We use char because int might match the return type of a gcc2
6405 builtin and then its argument prototype would still apply. */
6412 if { (eval echo configure:6413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6414 eval "ac_cv_lib_$ac_lib_var=yes"
6416 echo "configure: failed program was:" >&5
6417 cat conftest.$ac_ext >&5
6419 eval "ac_cv_lib_$ac_lib_var=no"
6422 LIBS="$ac_save_LIBS"
6425 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6426 echo "$ac_t""yes" 1>&6
6427 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6429 echo "$ac_t""no" 1>&6
6430 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
6431 echo "configure:6432: checking for dlopen" >&5
6432 if eval "test \"\${ac_cv_func_dlopen+set}\" = set"; then
6433 echo $ac_n "(cached) $ac_c" 1>&6
6435 cat > conftest.$ac_ext <<EOF
6436 #line 6437 "configure"
6437 #include "confdefs.h"
6438 /* System header to define __stub macros and hopefully few prototypes,
6439 which can conflict with char dlopen(); below. */
6441 /* Override any gcc2 internal prototype to avoid an error. */
6442 /* We use char because int might match the return type of a gcc2
6443 builtin and then its argument prototype would still apply. */
6449 /* The GNU C library defines this for functions which it implements
6450 to always fail with ENOSYS. Some functions are actually named
6451 something starting with __ and the normal name is an alias. */
6452 #if defined (__stub_dlopen) || defined (__stub___dlopen)
6460 if { (eval echo configure:6461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6462 eval "ac_cv_func_dlopen=yes"
6464 echo "configure: failed program was:" >&5
6465 cat conftest.$ac_ext >&5
6467 eval "ac_cv_func_dlopen=no"
6472 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
6473 echo "$ac_t""yes" 1>&6
6474 lt_cv_dlopen="dlopen"
6476 echo "$ac_t""no" 1>&6
6477 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
6478 echo "configure:6479: checking for dlopen in -ldl" >&5
6479 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-:%__p__%'`
6480 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6481 echo $ac_n "(cached) $ac_c" 1>&6
6483 ac_save_LIBS="$LIBS"
6485 cat > conftest.$ac_ext <<EOF
6486 #line 6487 "configure"
6487 #include "confdefs.h"
6488 /* Override any gcc2 internal prototype to avoid an error. */
6489 /* We use char because int might match the return type of a gcc2
6490 builtin and then its argument prototype would still apply. */
6497 if { (eval echo configure:6498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6499 eval "ac_cv_lib_$ac_lib_var=yes"
6501 echo "configure: failed program was:" >&5
6502 cat conftest.$ac_ext >&5
6504 eval "ac_cv_lib_$ac_lib_var=no"
6507 LIBS="$ac_save_LIBS"
6510 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6511 echo "$ac_t""yes" 1>&6
6512 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6514 echo "$ac_t""no" 1>&6
6515 echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
6516 echo "configure:6517: checking for dlopen in -lsvld" >&5
6517 ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-:%__p__%'`
6518 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6519 echo $ac_n "(cached) $ac_c" 1>&6
6521 ac_save_LIBS="$LIBS"
6523 cat > conftest.$ac_ext <<EOF
6524 #line 6525 "configure"
6525 #include "confdefs.h"
6526 /* Override any gcc2 internal prototype to avoid an error. */
6527 /* We use char because int might match the return type of a gcc2
6528 builtin and then its argument prototype would still apply. */
6535 if { (eval echo configure:6536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6537 eval "ac_cv_lib_$ac_lib_var=yes"
6539 echo "configure: failed program was:" >&5
6540 cat conftest.$ac_ext >&5
6542 eval "ac_cv_lib_$ac_lib_var=no"
6545 LIBS="$ac_save_LIBS"
6548 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6549 echo "$ac_t""yes" 1>&6
6550 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6552 echo "$ac_t""no" 1>&6
6553 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
6554 echo "configure:6555: checking for dld_link in -ldld" >&5
6555 ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-:%__p__%'`
6556 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6557 echo $ac_n "(cached) $ac_c" 1>&6
6559 ac_save_LIBS="$LIBS"
6561 cat > conftest.$ac_ext <<EOF
6562 #line 6563 "configure"
6563 #include "confdefs.h"
6564 /* Override any gcc2 internal prototype to avoid an error. */
6565 /* We use char because int might match the return type of a gcc2
6566 builtin and then its argument prototype would still apply. */
6573 if { (eval echo configure:6574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6575 eval "ac_cv_lib_$ac_lib_var=yes"
6577 echo "configure: failed program was:" >&5
6578 cat conftest.$ac_ext >&5
6580 eval "ac_cv_lib_$ac_lib_var=no"
6583 LIBS="$ac_save_LIBS"
6586 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6587 echo "$ac_t""yes" 1>&6
6588 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6590 echo "$ac_t""no" 1>&6
6614 if test "x$lt_cv_dlopen" != xno; then
6620 case $lt_cv_dlopen in
6622 save_CPPFLAGS="$CPPFLAGS"
6623 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6625 save_LDFLAGS="$LDFLAGS"
6626 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6629 LIBS="$lt_cv_dlopen_libs $LIBS"
6631 echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
6632 echo "configure:6633: checking whether a program can dlopen itself" >&5
6633 if eval "test \"\${lt_cv_dlopen_self+set}\" = set"; then
6634 echo $ac_n "(cached) $ac_c" 1>&6
6636 if test "$cross_compiling" = yes; then :
6637 lt_cv_dlopen_self=cross
6639 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6640 lt_status=$lt_dlunknown
6641 cat > conftest.$ac_ext <<EOF
6642 #line 6643 "configure"
6643 #include "confdefs.h"
6652 # define LT_DLGLOBAL RTLD_GLOBAL
6655 # define LT_DLGLOBAL DL_GLOBAL
6657 # define LT_DLGLOBAL 0
6661 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6662 find out it does not work in some platform. */
6663 #ifndef LT_DLLAZY_OR_NOW
6665 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6668 # define LT_DLLAZY_OR_NOW DL_LAZY
6671 # define LT_DLLAZY_OR_NOW RTLD_NOW
6674 # define LT_DLLAZY_OR_NOW DL_NOW
6676 # define LT_DLLAZY_OR_NOW 0
6684 extern "C" void exit (int);
6687 void fnord() { int i=42;}
6690 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6691 int status = $lt_dlunknown;
6695 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6696 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6697 /* dlclose (self); */
6703 if { (eval echo configure:6704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
6704 (./conftest; exit; ) 2>/dev/null
6707 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
6708 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
6709 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
6712 # compilation failed
6713 lt_cv_dlopen_self=no
6721 echo "$ac_t""$lt_cv_dlopen_self" 1>&6
6723 if test "x$lt_cv_dlopen_self" = xyes; then
6724 LDFLAGS="$LDFLAGS $link_static_flag"
6725 echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
6726 echo "configure:6727: checking whether a statically linked program can dlopen itself" >&5
6727 if eval "test \"\${lt_cv_dlopen_self_static+set}\" = set"; then
6728 echo $ac_n "(cached) $ac_c" 1>&6
6730 if test "$cross_compiling" = yes; then :
6731 lt_cv_dlopen_self_static=cross
6733 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6734 lt_status=$lt_dlunknown
6735 cat > conftest.$ac_ext <<EOF
6736 #line 6737 "configure"
6737 #include "confdefs.h"
6746 # define LT_DLGLOBAL RTLD_GLOBAL
6749 # define LT_DLGLOBAL DL_GLOBAL
6751 # define LT_DLGLOBAL 0
6755 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6756 find out it does not work in some platform. */
6757 #ifndef LT_DLLAZY_OR_NOW
6759 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6762 # define LT_DLLAZY_OR_NOW DL_LAZY
6765 # define LT_DLLAZY_OR_NOW RTLD_NOW
6768 # define LT_DLLAZY_OR_NOW DL_NOW
6770 # define LT_DLLAZY_OR_NOW 0
6778 extern "C" void exit (int);
6781 void fnord() { int i=42;}
6784 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6785 int status = $lt_dlunknown;
6789 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6790 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6791 /* dlclose (self); */
6797 if { (eval echo configure:6798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
6798 (./conftest; exit; ) 2>/dev/null
6801 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
6802 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
6803 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
6806 # compilation failed
6807 lt_cv_dlopen_self_static=no
6815 echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6
6818 CPPFLAGS="$save_CPPFLAGS"
6819 LDFLAGS="$save_LDFLAGS"
6824 case $lt_cv_dlopen_self in
6825 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
6826 *) enable_dlopen_self=unknown ;;
6829 case $lt_cv_dlopen_self_static in
6830 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
6831 *) enable_dlopen_self_static=unknown ;;
6836 if test "$enable_shared" = yes && test "$GCC" = yes; then
6837 case $archive_cmds in
6839 # FIXME: we may have to deal with multi-command sequences.
6842 # Test whether the compiler implicitly links with -lc since on some
6843 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6844 # to ld, don't add -lc before -lgcc.
6845 echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6
6846 echo "configure:6847: checking whether -lc should be explicitly linked in" >&5
6847 if eval "test \"\${lt_cv_archive_cmds_need_lc+set}\" = set"; then
6848 echo $ac_n "(cached) $ac_c" 1>&6
6851 echo 'static int dummy;' > conftest.$ac_ext
6853 if { (eval echo configure:6854: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6856 libobjs=conftest.$ac_objext
6858 wl=$lt_cv_prog_cc_wl
6864 save_allow_undefined_flag=$allow_undefined_flag
6865 allow_undefined_flag=
6866 if { (eval echo configure:6867: \"$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; }
6868 lt_cv_archive_cmds_need_lc=no
6870 lt_cv_archive_cmds_need_lc=yes
6872 allow_undefined_flag=$save_allow_undefined_flag
6874 cat conftest.err 1>&5
6878 echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6
6882 need_lc=${lt_cv_archive_cmds_need_lc-yes}
6884 # The second clause should only fire when bootstrapping the
6885 # libtool distribution, otherwise you forgot to ship ltmain.sh
6886 # with your package, and you will get complaints that there are
6887 # no rules to generate ltmain.sh.
6888 if test -f "$ltmain"; then
6891 # If there is no Makefile yet, we rely on a make rule to execute
6892 # `config.status --recheck' to rerun these tests and create the
6893 # libtool script then.
6894 test -f Makefile && make "$ltmain"
6897 if test -f "$ltmain"; then
6898 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
6901 echo creating $ofile
6903 # Now quote all the things that may contain metacharacters while being
6904 # careful not to overquote the AC_SUBSTed values. We take copies of the
6905 # variables and quote the copies for generation of the libtool script.
6906 for var in echo old_CC old_CFLAGS SED \
6907 AR AR_FLAGS CC LD LN_S NM SHELL \
6908 reload_flag reload_cmds wl \
6909 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
6910 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
6911 library_names_spec soname_spec \
6912 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
6913 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
6914 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
6915 old_striplib striplib file_magic_cmd export_symbols_cmds \
6916 deplibs_check_method allow_undefined_flag no_undefined_flag \
6917 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
6918 global_symbol_to_c_name_address \
6919 hardcode_libdir_flag_spec hardcode_libdir_separator \
6920 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
6921 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
6924 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
6925 old_postinstall_cmds | old_postuninstall_cmds | \
6926 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
6927 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
6928 postinstall_cmds | postuninstall_cmds | \
6929 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
6930 # Double-quote double-evaled strings.
6931 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
6934 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
6939 cat <<__EOF__ > "${ofile}T"
6942 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
6943 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
6944 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
6946 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
6947 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
6949 # This program is free software; you can redistribute it and/or modify
6950 # it under the terms of the GNU General Public License as published by
6951 # the Free Software Foundation; either version 2 of the License, or
6952 # (at your option) any later version.
6954 # This program is distributed in the hope that it will be useful, but
6955 # WITHOUT ANY WARRANTY; without even the implied warranty of
6956 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
6957 # General Public License for more details.
6959 # You should have received a copy of the GNU General Public License
6960 # along with this program; if not, write to the Free Software
6961 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
6963 # As a special exception to the GNU General Public License, if you
6964 # distribute this file as part of a program that contains a
6965 # configuration script generated by Autoconf, you may include it under
6966 # the same distribution terms that you use for the rest of that program.
6968 # A sed that does not truncate output.
6971 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
6972 Xsed="${SED} -e s/^X//"
6974 # The HP-UX ksh and POSIX shell print the target directory to stdout
6976 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
6978 # ### BEGIN LIBTOOL CONFIG
6980 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6982 # Shell to use when invoking shell scripts.
6985 # Whether or not to build shared libraries.
6986 build_libtool_libs=$enable_shared
6988 # Whether or not to build static libraries.
6989 build_old_libs=$enable_static
6991 # Whether or not to add -lc for building shared libraries.
6992 build_libtool_need_lc=$need_lc
6994 # Whether or not to optimize for fast installation.
6995 fast_install=$enable_fast_install
6998 host_alias=$host_alias
7001 # An echo program that does not interpret backslashes.
7006 AR_FLAGS=$lt_AR_FLAGS
7008 # The default C compiler.
7011 # Is the compiler the GNU C compiler?
7014 # The linker used to build libraries.
7017 # Whether we need hard or soft links.
7020 # A BSD-compatible nm program.
7023 # A symbol stripping program
7026 # Used to examine libraries when file_magic_cmd begins "file"
7027 MAGIC_CMD=$MAGIC_CMD
7029 # Used on cygwin: DLL creation program.
7032 # Used on cygwin: object dumper.
7035 # Used on cygwin: assembler.
7038 # The name of the directory that contains temporary libtool files.
7041 # How to create reloadable object files.
7042 reload_flag=$lt_reload_flag
7043 reload_cmds=$lt_reload_cmds
7045 # How to pass a linker flag through the compiler.
7048 # Object file suffix (normally "o").
7051 # Old archive suffix (normally "a").
7054 # Executable file suffix (normally "").
7057 # Additional compiler flags for building library objects.
7058 pic_flag=$lt_pic_flag
7061 # Does compiler simultaneously support -c and -o options?
7062 compiler_c_o=$lt_compiler_c_o
7064 # Can we write directly to a .lo ?
7065 compiler_o_lo=$lt_compiler_o_lo
7067 # Must we lock files when doing compilation ?
7068 need_locks=$lt_need_locks
7070 # Do we need the lib prefix for modules?
7071 need_lib_prefix=$need_lib_prefix
7073 # Do we need a version for libraries?
7074 need_version=$need_version
7076 # Whether dlopen is supported.
7077 dlopen_support=$enable_dlopen
7079 # Whether dlopen of programs is supported.
7080 dlopen_self=$enable_dlopen_self
7082 # Whether dlopen of statically linked programs is supported.
7083 dlopen_self_static=$enable_dlopen_self_static
7085 # Compiler flag to prevent dynamic linking.
7086 link_static_flag=$lt_link_static_flag
7088 # Compiler flag to turn off builtin functions.
7089 no_builtin_flag=$lt_no_builtin_flag
7091 # Compiler flag to allow reflexive dlopens.
7092 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7094 # Compiler flag to generate shared objects directly from archives.
7095 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7097 # Compiler flag to generate thread-safe objects.
7098 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7100 # Library versioning type.
7101 version_type=$version_type
7103 # Format of library name prefix.
7104 libname_spec=$lt_libname_spec
7106 # List of archive names. First name is the real one, the rest are links.
7107 # The last name is the one that the linker finds with -lNAME.
7108 library_names_spec=$lt_library_names_spec
7110 # The coded name of the library, if different from the real name.
7111 soname_spec=$lt_soname_spec
7113 # Commands used to build and install an old-style archive.
7115 old_archive_cmds=$lt_old_archive_cmds
7116 old_postinstall_cmds=$lt_old_postinstall_cmds
7117 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7119 # Create an old-style archive from a shared archive.
7120 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7122 # Create a temporary old-style archive to link instead of a shared archive.
7123 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7125 # Commands used to build and install a shared archive.
7126 archive_cmds=$lt_archive_cmds
7127 archive_expsym_cmds=$lt_archive_expsym_cmds
7128 postinstall_cmds=$lt_postinstall_cmds
7129 postuninstall_cmds=$lt_postuninstall_cmds
7131 # Commands to strip libraries.
7132 old_striplib=$lt_old_striplib
7133 striplib=$lt_striplib
7135 # Method to check whether dependent libraries are shared objects.
7136 deplibs_check_method=$lt_deplibs_check_method
7138 # Command to use when deplibs_check_method == file_magic.
7139 file_magic_cmd=$lt_file_magic_cmd
7141 # Flag that allows shared libraries with undefined symbols to be built.
7142 allow_undefined_flag=$lt_allow_undefined_flag
7144 # Flag that forces no undefined symbols.
7145 no_undefined_flag=$lt_no_undefined_flag
7147 # Commands used to finish a libtool library installation in a directory.
7148 finish_cmds=$lt_finish_cmds
7150 # Same as above, but a single script fragment to be evaled but not shown.
7151 finish_eval=$lt_finish_eval
7153 # Take the output of nm and produce a listing of raw symbols and C names.
7154 global_symbol_pipe=$lt_global_symbol_pipe
7156 # Transform the output of nm in a proper C declaration
7157 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7159 # Transform the output of nm in a C name address pair
7160 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7162 # This is the shared library runtime path variable.
7163 runpath_var=$runpath_var
7165 # This is the shared library path variable.
7166 shlibpath_var=$shlibpath_var
7168 # Is shlibpath searched before the hard-coded library search path?
7169 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7171 # How to hardcode a shared library path into an executable.
7172 hardcode_action=$hardcode_action
7174 # Whether we should hardcode library paths into libraries.
7175 hardcode_into_libs=$hardcode_into_libs
7177 # Flag to hardcode \$libdir into a binary during linking.
7178 # This must work even if \$libdir does not exist.
7179 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7181 # Whether we need a single -rpath flag with a separated argument.
7182 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7184 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7186 hardcode_direct=$hardcode_direct
7188 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7190 hardcode_minus_L=$hardcode_minus_L
7192 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7193 # the resulting binary.
7194 hardcode_shlibpath_var=$hardcode_shlibpath_var
7196 # Variables whose values should be saved in libtool wrapper scripts and
7197 # restored at relink time.
7198 variables_saved_for_relink="$variables_saved_for_relink"
7200 # Whether libtool must link a program against all its dependency libraries.
7201 link_all_deplibs=$link_all_deplibs
7203 # Compile-time system search path for libraries
7204 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7206 # Run-time system search path for libraries
7207 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7209 # Fix the shell variable \$srcfile for the compiler.
7210 fix_srcfile_path="$fix_srcfile_path"
7212 # Set to yes if exported symbols are required.
7213 always_export_symbols=$always_export_symbols
7215 # The commands to list exported symbols.
7216 export_symbols_cmds=$lt_export_symbols_cmds
7218 # The commands to extract the exported symbol list from a shared archive.
7219 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7221 # Symbols that should not be listed in the preloaded symbols.
7222 exclude_expsyms=$lt_exclude_expsyms
7224 # Symbols that must always be exported.
7225 include_expsyms=$lt_include_expsyms
7227 # ### END LIBTOOL CONFIG
7233 cat <<\EOF >> "${ofile}T"
7235 # AIX sometimes has problems with the GCC collect2 program. For some
7236 # reason, if we set the COLLECT_NAMES environment variable, the problems
7237 # vanish in a puff of smoke.
7238 if test "X${COLLECT_NAMES+set}" != Xset; then
7240 export COLLECT_NAMES
7247 cygwin* | mingw* | pw32* | os2*)
7248 cat <<'EOF' >> "${ofile}T"
7249 # This is a source program that is used to create dlls on Windows
7250 # Don't remove nor modify the starting and closing comments
7251 # /* ltdll.c starts here */
7252 # #define WIN32_LEAN_AND_MEAN
7253 # #include <windows.h>
7254 # #undef WIN32_LEAN_AND_MEAN
7255 # #include <stdio.h>
7257 # #ifndef __CYGWIN__
7258 # # ifdef __CYGWIN32__
7259 # # define __CYGWIN__ __CYGWIN32__
7263 # #ifdef __cplusplus
7266 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7267 # #ifdef __cplusplus
7272 # #include <cygwin/cygwin_dll.h>
7273 # DECLARE_CYGWIN_DLL( DllMain );
7275 # HINSTANCE __hDllInstance_base;
7278 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7280 # __hDllInstance_base = hInst;
7283 # /* ltdll.c ends here */
7284 # This is a source program that is used to create import libraries
7285 # on Windows for dlls which lack them. Don't remove nor modify the
7286 # starting and closing comments
7287 # /* impgen.c starts here */
7288 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7290 # This file is part of GNU libtool.
7292 # This program is free software; you can redistribute it and/or modify
7293 # it under the terms of the GNU General Public License as published by
7294 # the Free Software Foundation; either version 2 of the License, or
7295 # (at your option) any later version.
7297 # This program is distributed in the hope that it will be useful,
7298 # but WITHOUT ANY WARRANTY; without even the implied warranty of
7299 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7300 # GNU General Public License for more details.
7302 # You should have received a copy of the GNU General Public License
7303 # along with this program; if not, write to the Free Software
7304 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7307 # #include <stdio.h> /* for printf() */
7308 # #include <unistd.h> /* for open(), lseek(), read() */
7309 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7310 # #include <string.h> /* for strdup() */
7312 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
7314 # #define O_BINARY 0
7317 # static unsigned int
7318 # pe_get16 (fd, offset)
7322 # unsigned char b[2];
7323 # lseek (fd, offset, SEEK_SET);
7325 # return b[0] + (b[1]<<8);
7328 # static unsigned int
7329 # pe_get32 (fd, offset)
7333 # unsigned char b[4];
7334 # lseek (fd, offset, SEEK_SET);
7336 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7339 # static unsigned int
7343 # unsigned char *b = ptr;
7344 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7353 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7354 # unsigned long export_rva, export_size, nsections, secptr, expptr;
7355 # unsigned long name_rvas, nexp;
7356 # unsigned char *expdata, *erva;
7357 # char *filename, *dll_name;
7359 # filename = argv[1];
7361 # dll = open(filename, O_RDONLY|O_BINARY);
7365 # dll_name = filename;
7367 # for (i=0; filename[i]; i++)
7368 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7369 # dll_name = filename + i +1;
7371 # pe_header_offset = pe_get32 (dll, 0x3c);
7372 # opthdr_ofs = pe_header_offset + 4 + 20;
7373 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
7375 # if (num_entries < 1) /* no exports */
7378 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
7379 # export_size = pe_get32 (dll, opthdr_ofs + 100);
7380 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7381 # secptr = (pe_header_offset + 4 + 20 +
7382 # pe_get16 (dll, pe_header_offset + 4 + 16));
7385 # for (i = 0; i < nsections; i++)
7388 # unsigned long secptr1 = secptr + 40 * i;
7389 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7390 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7391 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7392 # lseek(dll, secptr1, SEEK_SET);
7393 # read(dll, sname, 8);
7394 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
7396 # expptr = fptr + (export_rva - vaddr);
7397 # if (export_rva + export_size > vaddr + vsize)
7398 # export_size = vsize - (export_rva - vaddr);
7403 # expdata = (unsigned char*)malloc(export_size);
7404 # lseek (dll, expptr, SEEK_SET);
7405 # read (dll, expdata, export_size);
7406 # erva = expdata - export_rva;
7408 # nexp = pe_as32 (expdata+24);
7409 # name_rvas = pe_as32 (expdata+32);
7411 # printf ("EXPORTS\n");
7412 # for (i = 0; i<nexp; i++)
7414 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7415 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7420 # /* impgen.c ends here */
7426 # We use sed instead of cat because bash on DJGPP gets confused if
7427 # if finds mixed CR/LF and LF-only lines. Since sed operates in
7428 # text mode, it properly converts lines to CR/LF. This bash problem
7429 # is reportedly fixed, but why not run on old versions too?
7430 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7432 mv -f "${ofile}T" "$ofile" || \
7433 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7441 # This can be used to rebuild libtool when needed
7442 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7444 # Always use our own libtool.
7445 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7447 # Prevent multiple expansion
7451 # test for ln hardlink support
7452 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
7453 echo "configure:7454: checking whether ln works" >&5
7454 if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then
7455 echo $ac_n "(cached) $ac_c" 1>&6
7457 rm -f conftest.src conftest.dst
7458 echo "conftest" > conftest.src
7459 if ln conftest.src conftest.dst 2>/dev/null
7461 ol_cv_prog_LN_H="ln"
7463 ol_cv_prog_LN_H="cp"
7465 rm -f conftest.src conftest.dst
7468 LN_H="$ol_cv_prog_LN_H"
7469 if test "$ol_cv_prog_LN_H" = "ln"; then
7470 echo "$ac_t""yes" 1>&6
7472 echo "$ac_t""no" 1>&6
7475 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
7476 echo "configure:7477: checking whether ln -s works" >&5
7477 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
7478 echo $ac_n "(cached) $ac_c" 1>&6
7481 if ln -s X conftestdata 2>/dev/null
7484 ac_cv_prog_LN_S="ln -s"
7489 LN_S="$ac_cv_prog_LN_S"
7490 if test "$ac_cv_prog_LN_S" = "ln -s"; then
7491 echo "$ac_t""yes" 1>&6
7493 echo "$ac_t""no" 1>&6
7498 if test $ol_enable_perl != no ; then
7499 # Extract the first word of "perl", so it can be a program name with args.
7500 set dummy perl; ac_word=$2
7501 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7502 echo "configure:7503: checking for $ac_word" >&5
7503 if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then
7504 echo $ac_n "(cached) $ac_c" 1>&6
7508 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
7511 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
7514 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7516 for ac_dir in $ac_dummy; do
7517 test -z "$ac_dir" && ac_dir=.
7518 if test -f $ac_dir/$ac_word; then
7519 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
7524 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
7528 PERLBIN="$ac_cv_path_PERLBIN"
7529 if test -n "$PERLBIN"; then
7530 echo "$ac_t""$PERLBIN" 1>&6
7532 echo "$ac_t""no" 1>&6
7536 if test "no$PERLBIN" = "no" ; then
7537 if test $ol_enable_perl = yes ; then
7538 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
7542 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
7543 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
7545 if test x"$ol_enable_perl" = "xyes" ; then
7546 SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
7548 MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
7554 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
7555 echo "configure:7556: checking how to run the C preprocessor" >&5
7556 # On Suns, sometimes $CPP names a directory.
7557 if test -n "$CPP" && test -d "$CPP"; then
7560 if test -z "$CPP"; then
7561 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
7562 echo $ac_n "(cached) $ac_c" 1>&6
7564 # This must be in double quotes, not single quotes, because CPP may get
7565 # substituted into the Makefile and "${CC-cc}" will confuse make.
7567 # On the NeXT, cc -E runs the code through the compiler's parser,
7568 # not just through cpp.
7569 cat > conftest.$ac_ext <<EOF
7570 #line 7571 "configure"
7571 #include "confdefs.h"
7575 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7576 { (eval echo configure:7577: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7577 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7578 if test -z "$ac_err"; then
7582 echo "configure: failed program was:" >&5
7583 cat conftest.$ac_ext >&5
7585 CPP="${CC-cc} -E -traditional-cpp"
7586 cat > conftest.$ac_ext <<EOF
7587 #line 7588 "configure"
7588 #include "confdefs.h"
7592 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7593 { (eval echo configure:7594: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7594 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7595 if test -z "$ac_err"; then
7599 echo "configure: failed program was:" >&5
7600 cat conftest.$ac_ext >&5
7602 CPP="${CC-cc} -nologo -E"
7603 cat > conftest.$ac_ext <<EOF
7604 #line 7605 "configure"
7605 #include "confdefs.h"
7609 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7610 { (eval echo configure:7611: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7611 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7612 if test -z "$ac_err"; then
7616 echo "configure: failed program was:" >&5
7617 cat conftest.$ac_ext >&5
7626 ac_cv_prog_CPP="$CPP"
7628 CPP="$ac_cv_prog_CPP"
7630 ac_cv_prog_CPP="$CPP"
7632 echo "$ac_t""$CPP" 1>&6
7636 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
7637 echo "configure:7638: checking for Cygwin environment" >&5
7638 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
7639 echo $ac_n "(cached) $ac_c" 1>&6
7641 cat > conftest.$ac_ext <<EOF
7642 #line 7643 "configure"
7643 #include "confdefs.h"
7648 #define __CYGWIN__ __CYGWIN32__
7653 if { (eval echo configure:7654: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7657 echo "configure: failed program was:" >&5
7658 cat conftest.$ac_ext >&5
7665 echo "$ac_t""$ac_cv_cygwin" 1>&6
7667 test "$ac_cv_cygwin" = yes && CYGWIN=yes
7668 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
7669 echo "configure:7670: checking for mingw32 environment" >&5
7670 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
7671 echo $ac_n "(cached) $ac_c" 1>&6
7673 cat > conftest.$ac_ext <<EOF
7674 #line 7675 "configure"
7675 #include "confdefs.h"
7681 if { (eval echo configure:7682: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7685 echo "configure: failed program was:" >&5
7686 cat conftest.$ac_ext >&5
7693 echo "$ac_t""$ac_cv_mingw32" 1>&6
7695 test "$ac_cv_mingw32" = yes && MINGW32=yes
7699 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
7700 echo "configure:7701: checking for executable suffix" >&5
7701 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
7702 echo $ac_n "(cached) $ac_c" 1>&6
7704 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
7708 echo 'int main () { return 0; }' > conftest.$ac_ext
7710 if { (eval echo configure:7711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
7711 for file in conftest.*; do
7713 *.c | *.C | *.o | *.obj | *.xcoff) ;;
7714 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
7718 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
7721 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
7726 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
7727 echo "$ac_t""${ac_cv_exeext}" 1>&6
7730 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
7731 echo "configure:7732: checking for object suffix" >&5
7732 if eval "test \"\${ac_cv_objext+set}\" = set"; then
7733 echo $ac_n "(cached) $ac_c" 1>&6
7736 echo 'int i = 1;' > conftest.$ac_ext
7737 if { (eval echo configure:7738: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7738 for ac_file in conftest.*; do
7741 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
7745 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
7750 echo "$ac_t""$ac_cv_objext" 1>&6
7751 OBJEXT=$ac_cv_objext
7752 ac_objext=$ac_cv_objext
7755 cat >> confdefs.h <<EOF
7756 #define EXEEXT "${EXEEXT}"
7760 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
7761 echo "configure:7762: checking for be_app in -lbe" >&5
7762 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
7763 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
7764 echo $ac_n "(cached) $ac_c" 1>&6
7766 ac_save_LIBS="$LIBS"
7767 LIBS="-lbe -lroot -lnet $LIBS"
7768 cat > conftest.$ac_ext <<EOF
7769 #line 7770 "configure"
7770 #include "confdefs.h"
7771 /* Override any gcc2 internal prototype to avoid an error. */
7772 /* We use char because int might match the return type of a gcc2
7773 builtin and then its argument prototype would still apply. */
7780 if { (eval echo configure:7781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7782 eval "ac_cv_lib_$ac_lib_var=yes"
7784 echo "configure: failed program was:" >&5
7785 cat conftest.$ac_ext >&5
7787 eval "ac_cv_lib_$ac_lib_var=no"
7790 LIBS="$ac_save_LIBS"
7793 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7794 echo "$ac_t""yes" 1>&6
7795 LIBS="$LIBS -lbe -lroot -lnet"
7797 echo "$ac_t""no" 1>&6
7805 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
7806 echo "configure:7807: checking for ${CC-cc} option to accept ANSI C" >&5
7807 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
7808 echo $ac_n "(cached) $ac_c" 1>&6
7810 am_cv_prog_cc_stdc=no
7812 # Don't try gcc -ansi; that turns off useful extensions and
7813 # breaks some systems' header files.
7814 # AIX -qlanglvl=ansi
7815 # Ultrix and OSF/1 -std1
7816 # HP-UX 10.20 and later -Ae
7817 # HP-UX older versions -Aa -D_HPUX_SOURCE
7818 # SVR4 -Xc -D__EXTENSIONS__
7819 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7821 CC="$ac_save_CC $ac_arg"
7822 cat > conftest.$ac_ext <<EOF
7823 #line 7824 "configure"
7824 #include "confdefs.h"
7827 #include <sys/types.h>
7828 #include <sys/stat.h>
7829 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7830 struct buf { int x; };
7831 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7832 static char *e (p, i)
7838 static char *f (char * (*g) (char **, int), char **p, ...)
7843 s = g (p, va_arg (v,int));
7847 int test (int i, double x);
7848 struct s1 {int (*f) (int a);};
7849 struct s2 {int (*f) (double a);};
7850 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7856 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7860 if { (eval echo configure:7861: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7862 am_cv_prog_cc_stdc="$ac_arg"; break
7864 echo "configure: failed program was:" >&5
7865 cat conftest.$ac_ext >&5
7873 if test -z "$am_cv_prog_cc_stdc"; then
7874 echo "$ac_t""none needed" 1>&6
7876 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
7878 case "x$am_cv_prog_cc_stdc" in
7880 *) CC="$CC $am_cv_prog_cc_stdc" ;;
7883 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
7884 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
7887 # test for make depend flag
7890 if test -z "${MKDEP}"; then
7892 if test -z "${MKDEP_FLAGS}"; then
7893 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
7894 echo "configure:7895: checking for ${OL_MKDEP} depend flag" >&5
7895 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
7896 echo $ac_n "(cached) $ac_c" 1>&6
7900 for flag in "-M" "-xM"; do
7901 cat > conftest.c <<EOF
7904 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:7905: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
7905 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
7907 if test ! -f conftest."${ac_object}" ; then
7909 OL_MKDEP_FLAGS="$flag"
7918 echo "$ac_t""$ol_cv_mkdep" 1>&6
7921 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
7926 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
7931 if test "${ol_cv_mkdep}" = no ; then
7932 # this will soon become an error
7933 echo "configure: warning: do not know how to generate dependencies" 1>&2
7936 echo $ac_n "checking for afopen in -ls""... $ac_c" 1>&6
7937 echo "configure:7938: checking for afopen in -ls" >&5
7938 ac_lib_var=`echo s'_'afopen | sed 'y%./+-:%__p__%'`
7939 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
7940 echo $ac_n "(cached) $ac_c" 1>&6
7942 ac_save_LIBS="$LIBS"
7944 cat > conftest.$ac_ext <<EOF
7945 #line 7946 "configure"
7946 #include "confdefs.h"
7947 /* Override any gcc2 internal prototype to avoid an error. */
7948 /* We use char because int might match the return type of a gcc2
7949 builtin and then its argument prototype would still apply. */
7956 if { (eval echo configure:7957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7958 eval "ac_cv_lib_$ac_lib_var=yes"
7960 echo "configure: failed program was:" >&5
7961 cat conftest.$ac_ext >&5
7963 eval "ac_cv_lib_$ac_lib_var=no"
7966 LIBS="$ac_save_LIBS"
7969 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7970 echo "$ac_t""yes" 1>&6
7973 cat >> confdefs.h <<\EOF
7974 #define HAVE_AIX_SECURITY 1
7979 echo "$ac_t""no" 1>&6
7985 ac_cv_func_getopt=no
7986 cat >> confdefs.h <<\EOF
7987 #define BOTH_STRINGS_H 1
7994 if test $ol_enable_modules != no ; then
7995 for ac_hdr in ltdl.h
7997 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7998 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7999 echo "configure:8000: checking for $ac_hdr" >&5
8000 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8001 echo $ac_n "(cached) $ac_c" 1>&6
8003 cat > conftest.$ac_ext <<EOF
8004 #line 8005 "configure"
8005 #include "confdefs.h"
8008 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8009 { (eval echo configure:8010: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8010 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8011 if test -z "$ac_err"; then
8013 eval "ac_cv_header_$ac_safe=yes"
8016 echo "configure: failed program was:" >&5
8017 cat conftest.$ac_ext >&5
8019 eval "ac_cv_header_$ac_safe=no"
8023 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8024 echo "$ac_t""yes" 1>&6
8025 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8026 cat >> confdefs.h <<EOF
8027 #define $ac_tr_hdr 1
8031 echo "$ac_t""no" 1>&6
8036 if test $ac_cv_header_ltdl_h = no ; then
8037 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
8040 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
8041 echo "configure:8042: checking for lt_dlinit in -lltdl" >&5
8042 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
8043 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8044 echo $ac_n "(cached) $ac_c" 1>&6
8046 ac_save_LIBS="$LIBS"
8048 cat > conftest.$ac_ext <<EOF
8049 #line 8050 "configure"
8050 #include "confdefs.h"
8051 /* Override any gcc2 internal prototype to avoid an error. */
8052 /* We use char because int might match the return type of a gcc2
8053 builtin and then its argument prototype would still apply. */
8060 if { (eval echo configure:8061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8062 eval "ac_cv_lib_$ac_lib_var=yes"
8064 echo "configure: failed program was:" >&5
8065 cat conftest.$ac_ext >&5
8067 eval "ac_cv_lib_$ac_lib_var=no"
8070 LIBS="$ac_save_LIBS"
8073 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8074 echo "$ac_t""yes" 1>&6
8077 cat >> confdefs.h <<\EOF
8078 #define HAVE_LIBLTDL 1
8083 echo "$ac_t""no" 1>&6
8087 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
8088 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
8093 for i in $Backends; do
8094 eval "ol_tmp=\$ol_enable_$i"
8095 if test $ol_tmp = mod ; then
8096 echo "configure: warning: building static $i backend" 1>&2
8097 eval "ol_enable_$i=yes"
8100 for i in $Overlays; do
8101 eval "ol_tmp=\$ol_enable_$i"
8102 if test $ol_tmp = mod ; then
8103 echo "configure: warning: building static $i overlay" 1>&2
8104 eval "ol_enable_$i=yes"
8110 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
8111 echo "configure:8112: checking for EBCDIC" >&5
8112 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
8113 echo $ac_n "(cached) $ac_c" 1>&6
8116 cat > conftest.$ac_ext <<EOF
8117 #line 8118 "configure"
8118 #include "confdefs.h"
8121 #include <__ASCII__/generate_error.h>
8125 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8126 { (eval echo configure:8127: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8127 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8128 if test -z "$ac_err"; then
8130 ol_cv_cpp_ebcdic=yes
8133 echo "configure: failed program was:" >&5
8134 cat conftest.$ac_ext >&5
8141 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
8142 if test $ol_cv_cpp_ebcdic = yes ; then
8143 cat >> confdefs.h <<\EOF
8144 #define HAVE_EBCDIC 1
8149 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
8150 echo "configure:8151: checking for ANSI C header files" >&5
8151 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
8152 echo $ac_n "(cached) $ac_c" 1>&6
8154 cat > conftest.$ac_ext <<EOF
8155 #line 8156 "configure"
8156 #include "confdefs.h"
8162 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8163 { (eval echo configure:8164: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8164 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8165 if test -z "$ac_err"; then
8167 ol_cv_header_stdc=yes
8170 echo "configure: failed program was:" >&5
8171 cat conftest.$ac_ext >&5
8173 ol_cv_header_stdc=no
8177 if test $ol_cv_header_stdc = yes; then
8178 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8179 cat > conftest.$ac_ext <<EOF
8180 #line 8181 "configure"
8181 #include "confdefs.h"
8184 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8185 egrep "memchr" >/dev/null 2>&1; then
8189 ol_cv_header_stdc=no
8195 if test $ol_cv_header_stdc = yes; then
8196 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8197 cat > conftest.$ac_ext <<EOF
8198 #line 8199 "configure"
8199 #include "confdefs.h"
8202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8203 egrep "free" >/dev/null 2>&1; then
8207 ol_cv_header_stdc=no
8213 if test $ol_cv_header_stdc = yes; then
8214 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8215 if test "$cross_compiling" = yes; then
8218 cat > conftest.$ac_ext <<EOF
8219 #line 8220 "configure"
8220 #include "confdefs.h"
8223 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8224 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8226 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
8227 || ('j' <= (c) && (c) <= 'r') \
8228 || ('s' <= (c) && (c) <= 'z'))
8229 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8231 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8232 int main () { int i; for (i = 0; i < 256; i++)
8233 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
8237 if { (eval echo configure:8238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8241 echo "configure: failed program was:" >&5
8242 cat conftest.$ac_ext >&5
8244 ol_cv_header_stdc=no
8252 echo "$ac_t""$ol_cv_header_stdc" 1>&6
8253 if test $ol_cv_header_stdc = yes; then
8254 cat >> confdefs.h <<\EOF
8255 #define STDC_HEADERS 1
8259 ac_cv_header_stdc=disable
8262 if test $ol_cv_header_stdc != yes; then
8263 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
8267 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
8269 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8270 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
8271 echo "configure:8272: checking for $ac_hdr that defines DIR" >&5
8272 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
8273 echo $ac_n "(cached) $ac_c" 1>&6
8275 cat > conftest.$ac_ext <<EOF
8276 #line 8277 "configure"
8277 #include "confdefs.h"
8278 #include <sys/types.h>
8284 if { (eval echo configure:8285: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8286 eval "ac_cv_header_dirent_$ac_safe=yes"
8288 echo "configure: failed program was:" >&5
8289 cat conftest.$ac_ext >&5
8291 eval "ac_cv_header_dirent_$ac_safe=no"
8295 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
8296 echo "$ac_t""yes" 1>&6
8297 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8298 cat >> confdefs.h <<EOF
8299 #define $ac_tr_hdr 1
8301 ac_header_dirent=$ac_hdr; break
8303 echo "$ac_t""no" 1>&6
8306 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8307 if test $ac_header_dirent = dirent.h; then
8308 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
8309 echo "configure:8310: checking for opendir in -ldir" >&5
8310 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
8311 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8312 echo $ac_n "(cached) $ac_c" 1>&6
8314 ac_save_LIBS="$LIBS"
8316 cat > conftest.$ac_ext <<EOF
8317 #line 8318 "configure"
8318 #include "confdefs.h"
8319 /* Override any gcc2 internal prototype to avoid an error. */
8320 /* We use char because int might match the return type of a gcc2
8321 builtin and then its argument prototype would still apply. */
8328 if { (eval echo configure:8329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8330 eval "ac_cv_lib_$ac_lib_var=yes"
8332 echo "configure: failed program was:" >&5
8333 cat conftest.$ac_ext >&5
8335 eval "ac_cv_lib_$ac_lib_var=no"
8338 LIBS="$ac_save_LIBS"
8341 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8342 echo "$ac_t""yes" 1>&6
8345 echo "$ac_t""no" 1>&6
8349 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
8350 echo "configure:8351: checking for opendir in -lx" >&5
8351 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
8352 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8353 echo $ac_n "(cached) $ac_c" 1>&6
8355 ac_save_LIBS="$LIBS"
8357 cat > conftest.$ac_ext <<EOF
8358 #line 8359 "configure"
8359 #include "confdefs.h"
8360 /* Override any gcc2 internal prototype to avoid an error. */
8361 /* We use char because int might match the return type of a gcc2
8362 builtin and then its argument prototype would still apply. */
8369 if { (eval echo configure:8370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8371 eval "ac_cv_lib_$ac_lib_var=yes"
8373 echo "configure: failed program was:" >&5
8374 cat conftest.$ac_ext >&5
8376 eval "ac_cv_lib_$ac_lib_var=no"
8379 LIBS="$ac_save_LIBS"
8382 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8383 echo "$ac_t""yes" 1>&6
8386 echo "$ac_t""no" 1>&6
8391 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
8392 echo "configure:8393: checking for sys/wait.h that is POSIX.1 compatible" >&5
8393 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
8394 echo $ac_n "(cached) $ac_c" 1>&6
8396 cat > conftest.$ac_ext <<EOF
8397 #line 8398 "configure"
8398 #include "confdefs.h"
8399 #include <sys/types.h>
8400 #include <sys/wait.h>
8402 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8405 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8410 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8413 if { (eval echo configure:8414: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8415 ac_cv_header_sys_wait_h=yes
8417 echo "configure: failed program was:" >&5
8418 cat conftest.$ac_ext >&5
8420 ac_cv_header_sys_wait_h=no
8425 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
8426 if test $ac_cv_header_sys_wait_h = yes; then
8427 cat >> confdefs.h <<\EOF
8428 #define HAVE_SYS_WAIT_H 1
8433 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
8434 echo "configure:8435: checking POSIX termios" >&5
8435 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
8436 echo $ac_n "(cached) $ac_c" 1>&6
8438 cat > conftest.$ac_ext <<EOF
8439 #line 8440 "configure"
8440 #include "confdefs.h"
8441 #include <sys/types.h>
8443 #include <termios.h>
8445 /* SunOS 4.0.3 has termios.h but not the library calls. */
8449 if { (eval echo configure:8450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8451 am_cv_sys_posix_termios=yes
8453 echo "configure: failed program was:" >&5
8454 cat conftest.$ac_ext >&5
8456 am_cv_sys_posix_termios=no
8461 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
8464 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
8465 echo "configure:8466: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
8466 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
8467 echo $ac_n "(cached) $ac_c" 1>&6
8469 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
8471 gwinsz_in_termios_h=no
8472 if test $am_cv_sys_posix_termios = yes; then
8473 cat > conftest.$ac_ext <<EOF
8474 #line 8475 "configure"
8475 #include "confdefs.h"
8476 #include <sys/types.h>
8477 # include <termios.h>
8483 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8484 egrep "yes" >/dev/null 2>&1; then
8486 gwinsz_in_termios_h=yes
8492 if test $gwinsz_in_termios_h = no; then
8493 cat > conftest.$ac_ext <<EOF
8494 #line 8495 "configure"
8495 #include "confdefs.h"
8496 #include <sys/types.h>
8497 # include <sys/ioctl.h>
8503 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8504 egrep "yes" >/dev/null 2>&1; then
8506 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
8514 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
8515 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
8516 cat >> confdefs.h <<\EOF
8517 #define GWINSZ_IN_SYS_IOCTL 1
8522 if test $am_cv_sys_posix_termios = yes ; then
8523 cat >> confdefs.h <<\EOF
8524 #define HAVE_POSIX_TERMIOS 1
8580 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8581 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8582 echo "configure:8583: checking for $ac_hdr" >&5
8583 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8584 echo $ac_n "(cached) $ac_c" 1>&6
8586 cat > conftest.$ac_ext <<EOF
8587 #line 8588 "configure"
8588 #include "confdefs.h"
8591 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8592 { (eval echo configure:8593: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8593 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8594 if test -z "$ac_err"; then
8596 eval "ac_cv_header_$ac_safe=yes"
8599 echo "configure: failed program was:" >&5
8600 cat conftest.$ac_ext >&5
8602 eval "ac_cv_header_$ac_safe=no"
8606 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8607 echo "$ac_t""yes" 1>&6
8608 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8609 cat >> confdefs.h <<EOF
8610 #define $ac_tr_hdr 1
8614 echo "$ac_t""no" 1>&6
8621 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
8622 echo "configure:8623: checking for sigset in -lV3" >&5
8623 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
8624 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8625 echo $ac_n "(cached) $ac_c" 1>&6
8627 ac_save_LIBS="$LIBS"
8629 cat > conftest.$ac_ext <<EOF
8630 #line 8631 "configure"
8631 #include "confdefs.h"
8632 /* Override any gcc2 internal prototype to avoid an error. */
8633 /* We use char because int might match the return type of a gcc2
8634 builtin and then its argument prototype would still apply. */
8641 if { (eval echo configure:8642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8643 eval "ac_cv_lib_$ac_lib_var=yes"
8645 echo "configure: failed program was:" >&5
8646 cat conftest.$ac_ext >&5
8648 eval "ac_cv_lib_$ac_lib_var=no"
8651 LIBS="$ac_save_LIBS"
8654 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8655 echo "$ac_t""yes" 1>&6
8656 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8657 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8658 cat >> confdefs.h <<EOF
8659 #define $ac_tr_lib 1
8665 echo "$ac_t""no" 1>&6
8669 if test "$ac_cv_header_winsock_h" = yes; then
8670 echo $ac_n "checking for winsock""... $ac_c" 1>&6
8671 echo "configure:8672: checking for winsock" >&5
8672 if eval "test \"\${ol_cv_winsock+set}\" = set"; then
8673 echo $ac_n "(cached) $ac_c" 1>&6
8676 for curlib in ws2_32 wsock32; do
8677 LIBS="$LIBS -l$curlib"
8678 cat > conftest.$ac_ext <<EOF
8679 #line 8680 "configure"
8680 #include "confdefs.h"
8681 #include <winsock.h>
8686 select(0,NULL,NULL,NULL,NULL);
8688 gethostname(NULL,0);
8692 if { (eval echo configure:8693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8696 echo "configure: failed program was:" >&5
8697 cat conftest.$ac_ext >&5
8703 if test $ol_cv_winsock = yes; then
8704 cat >> confdefs.h <<\EOF
8705 #define HAVE_WINSOCK 1
8708 ac_cv_func_socket=yes
8709 ac_cv_func_select=yes
8710 ac_cv_func_closesocket=yes
8711 ac_cv_func_gethostname=yes
8712 if test $curlib = ws2_32; then
8713 ol_cv_winsock=winsock2
8714 cat >> confdefs.h <<\EOF
8715 #define HAVE_WINSOCK2 1
8725 echo "$ac_t""$ol_cv_winsock" 1>&6
8729 echo $ac_n "checking for socket""... $ac_c" 1>&6
8730 echo "configure:8731: checking for socket" >&5
8731 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
8732 echo $ac_n "(cached) $ac_c" 1>&6
8734 cat > conftest.$ac_ext <<EOF
8735 #line 8736 "configure"
8736 #include "confdefs.h"
8737 /* System header to define __stub macros and hopefully few prototypes,
8738 which can conflict with char socket(); below. */
8740 /* Override any gcc2 internal prototype to avoid an error. */
8741 /* We use char because int might match the return type of a gcc2
8742 builtin and then its argument prototype would still apply. */
8748 /* The GNU C library defines this for functions which it implements
8749 to always fail with ENOSYS. Some functions are actually named
8750 something starting with __ and the normal name is an alias. */
8751 #if defined (__stub_socket) || defined (__stub___socket)
8759 if { (eval echo configure:8760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8761 eval "ac_cv_func_socket=yes"
8763 echo "configure: failed program was:" >&5
8764 cat conftest.$ac_ext >&5
8766 eval "ac_cv_func_socket=no"
8771 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
8772 echo "$ac_t""yes" 1>&6
8775 echo "$ac_t""no" 1>&6
8777 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
8778 echo "configure:8779: checking for main in -lsocket" >&5
8779 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
8780 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8781 echo $ac_n "(cached) $ac_c" 1>&6
8783 ac_save_LIBS="$LIBS"
8784 LIBS="-lsocket $LIBS"
8785 cat > conftest.$ac_ext <<EOF
8786 #line 8787 "configure"
8787 #include "confdefs.h"
8793 if { (eval echo configure:8794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8795 eval "ac_cv_lib_$ac_lib_var=yes"
8797 echo "configure: failed program was:" >&5
8798 cat conftest.$ac_ext >&5
8800 eval "ac_cv_lib_$ac_lib_var=no"
8803 LIBS="$ac_save_LIBS"
8806 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8807 echo "$ac_t""yes" 1>&6
8808 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8809 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8810 cat >> confdefs.h <<EOF
8811 #define $ac_tr_lib 1
8814 LIBS="-lsocket $LIBS"
8817 echo "$ac_t""no" 1>&6
8820 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
8821 echo "configure:8822: checking for main in -lnet" >&5
8822 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
8823 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8824 echo $ac_n "(cached) $ac_c" 1>&6
8826 ac_save_LIBS="$LIBS"
8828 cat > conftest.$ac_ext <<EOF
8829 #line 8830 "configure"
8830 #include "confdefs.h"
8836 if { (eval echo configure:8837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8838 eval "ac_cv_lib_$ac_lib_var=yes"
8840 echo "configure: failed program was:" >&5
8841 cat conftest.$ac_ext >&5
8843 eval "ac_cv_lib_$ac_lib_var=no"
8846 LIBS="$ac_save_LIBS"
8849 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8850 echo "$ac_t""yes" 1>&6
8851 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8852 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8853 cat >> confdefs.h <<EOF
8854 #define $ac_tr_lib 1
8860 echo "$ac_t""no" 1>&6
8863 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
8864 echo "configure:8865: checking for main in -lnsl_s" >&5
8865 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
8866 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8867 echo $ac_n "(cached) $ac_c" 1>&6
8869 ac_save_LIBS="$LIBS"
8870 LIBS="-lnsl_s $LIBS"
8871 cat > conftest.$ac_ext <<EOF
8872 #line 8873 "configure"
8873 #include "confdefs.h"
8879 if { (eval echo configure:8880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8881 eval "ac_cv_lib_$ac_lib_var=yes"
8883 echo "configure: failed program was:" >&5
8884 cat conftest.$ac_ext >&5
8886 eval "ac_cv_lib_$ac_lib_var=no"
8889 LIBS="$ac_save_LIBS"
8892 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8893 echo "$ac_t""yes" 1>&6
8894 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8895 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8896 cat >> confdefs.h <<EOF
8897 #define $ac_tr_lib 1
8900 LIBS="-lnsl_s $LIBS"
8903 echo "$ac_t""no" 1>&6
8906 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
8907 echo "configure:8908: checking for main in -lnsl" >&5
8908 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
8909 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8910 echo $ac_n "(cached) $ac_c" 1>&6
8912 ac_save_LIBS="$LIBS"
8914 cat > conftest.$ac_ext <<EOF
8915 #line 8916 "configure"
8916 #include "confdefs.h"
8922 if { (eval echo configure:8923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8924 eval "ac_cv_lib_$ac_lib_var=yes"
8926 echo "configure: failed program was:" >&5
8927 cat conftest.$ac_ext >&5
8929 eval "ac_cv_lib_$ac_lib_var=no"
8932 LIBS="$ac_save_LIBS"
8935 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8936 echo "$ac_t""yes" 1>&6
8937 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8938 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8939 cat >> confdefs.h <<EOF
8940 #define $ac_tr_lib 1
8946 echo "$ac_t""no" 1>&6
8949 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
8950 echo "configure:8951: checking for socket in -linet" >&5
8951 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
8952 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8953 echo $ac_n "(cached) $ac_c" 1>&6
8955 ac_save_LIBS="$LIBS"
8957 cat > conftest.$ac_ext <<EOF
8958 #line 8959 "configure"
8959 #include "confdefs.h"
8960 /* Override any gcc2 internal prototype to avoid an error. */
8961 /* We use char because int might match the return type of a gcc2
8962 builtin and then its argument prototype would still apply. */
8969 if { (eval echo configure:8970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8971 eval "ac_cv_lib_$ac_lib_var=yes"
8973 echo "configure: failed program was:" >&5
8974 cat conftest.$ac_ext >&5
8976 eval "ac_cv_lib_$ac_lib_var=no"
8979 LIBS="$ac_save_LIBS"
8982 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8983 echo "$ac_t""yes" 1>&6
8984 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8985 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8986 cat >> confdefs.h <<EOF
8987 #define $ac_tr_lib 1
8993 echo "$ac_t""no" 1>&6
8996 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
8997 echo "configure:8998: checking for main in -lgen" >&5
8998 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
8999 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9000 echo $ac_n "(cached) $ac_c" 1>&6
9002 ac_save_LIBS="$LIBS"
9004 cat > conftest.$ac_ext <<EOF
9005 #line 9006 "configure"
9006 #include "confdefs.h"
9012 if { (eval echo configure:9013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9014 eval "ac_cv_lib_$ac_lib_var=yes"
9016 echo "configure: failed program was:" >&5
9017 cat conftest.$ac_ext >&5
9019 eval "ac_cv_lib_$ac_lib_var=no"
9022 LIBS="$ac_save_LIBS"
9025 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9026 echo "$ac_t""yes" 1>&6
9027 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9028 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9029 cat >> confdefs.h <<EOF
9030 #define $ac_tr_lib 1
9036 echo "$ac_t""no" 1>&6
9043 echo $ac_n "checking for select""... $ac_c" 1>&6
9044 echo "configure:9045: checking for select" >&5
9045 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
9046 echo $ac_n "(cached) $ac_c" 1>&6
9048 cat > conftest.$ac_ext <<EOF
9049 #line 9050 "configure"
9050 #include "confdefs.h"
9051 /* System header to define __stub macros and hopefully few prototypes,
9052 which can conflict with char select(); below. */
9054 /* Override any gcc2 internal prototype to avoid an error. */
9055 /* We use char because int might match the return type of a gcc2
9056 builtin and then its argument prototype would still apply. */
9062 /* The GNU C library defines this for functions which it implements
9063 to always fail with ENOSYS. Some functions are actually named
9064 something starting with __ and the normal name is an alias. */
9065 #if defined (__stub_select) || defined (__stub___select)
9073 if { (eval echo configure:9074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9075 eval "ac_cv_func_select=yes"
9077 echo "configure: failed program was:" >&5
9078 cat conftest.$ac_ext >&5
9080 eval "ac_cv_func_select=no"
9085 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
9086 echo "$ac_t""yes" 1>&6
9089 echo "$ac_t""no" 1>&6
9090 { echo "configure: error: select() required." 1>&2; exit 1; }
9094 if test "${ac_cv_header_winsock_h}" != yes; then
9095 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
9096 echo "configure:9097: checking types of arguments for select()" >&5
9097 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
9098 echo $ac_n "(cached) $ac_c" 1>&6
9100 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
9101 echo $ac_n "(cached) $ac_c" 1>&6
9103 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
9104 echo $ac_n "(cached) $ac_c" 1>&6
9106 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
9107 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
9108 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
9109 cat > conftest.$ac_ext <<EOF
9110 #line 9111 "configure"
9111 #include "confdefs.h"
9112 #ifdef HAVE_SYS_TYPES_H
9113 #include <sys/types.h>
9115 #ifdef HAVE_SYS_TIME_H
9116 #include <sys/time.h>
9118 #ifdef HAVE_SYS_SELECT_H
9119 #include <sys/select.h>
9121 #ifdef HAVE_SYS_SOCKET_H
9122 #include <sys/socket.h>
9124 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);
9129 if { (eval echo configure:9130: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9131 ac_not_found=no ; break 3
9133 echo "configure: failed program was:" >&5
9134 cat conftest.$ac_ext >&5
9148 if test "$ac_not_found" = yes; then
9149 ac_cv_func_select_arg1=int
9150 ac_cv_func_select_arg234='int *'
9151 ac_cv_func_select_arg5='struct timeval *'
9153 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
9154 cat >> confdefs.h <<EOF
9155 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
9158 cat >> confdefs.h <<EOF
9159 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
9162 cat >> confdefs.h <<EOF
9163 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
9170 for ac_hdr in regex.h
9172 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9173 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9174 echo "configure:9175: checking for $ac_hdr" >&5
9175 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9176 echo $ac_n "(cached) $ac_c" 1>&6
9178 cat > conftest.$ac_ext <<EOF
9179 #line 9180 "configure"
9180 #include "confdefs.h"
9183 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9184 { (eval echo configure:9185: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9185 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9186 if test -z "$ac_err"; then
9188 eval "ac_cv_header_$ac_safe=yes"
9191 echo "configure: failed program was:" >&5
9192 cat conftest.$ac_ext >&5
9194 eval "ac_cv_header_$ac_safe=no"
9198 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9199 echo "$ac_t""yes" 1>&6
9200 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9201 cat >> confdefs.h <<EOF
9202 #define $ac_tr_hdr 1
9206 echo "$ac_t""no" 1>&6
9210 if test "$ac_cv_header_regex_h" != yes ; then
9211 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
9214 echo $ac_n "checking for library containing regfree""... $ac_c" 1>&6
9215 echo "configure:9216: checking for library containing regfree" >&5
9216 if eval "test \"\${ac_cv_search_regfree+set}\" = set"; then
9217 echo $ac_n "(cached) $ac_c" 1>&6
9219 ac_func_search_save_LIBS="$LIBS"
9220 ac_cv_search_regfree="no"
9221 cat > conftest.$ac_ext <<EOF
9222 #line 9223 "configure"
9223 #include "confdefs.h"
9224 /* Override any gcc2 internal prototype to avoid an error. */
9225 /* We use char because int might match the return type of a gcc2
9226 builtin and then its argument prototype would still apply. */
9233 if { (eval echo configure:9234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9235 ac_cv_search_regfree="none required"
9237 echo "configure: failed program was:" >&5
9238 cat conftest.$ac_ext >&5
9241 test "$ac_cv_search_regfree" = "no" && for ac_lib in regex gnuregex; do
9242 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9243 cat > conftest.$ac_ext <<EOF
9244 #line 9245 "configure"
9245 #include "confdefs.h"
9246 /* Override any gcc2 internal prototype to avoid an error. */
9247 /* We use char because int might match the return type of a gcc2
9248 builtin and then its argument prototype would still apply. */
9255 if { (eval echo configure:9256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9257 ac_cv_search_regfree="-l$ac_lib"
9260 echo "configure: failed program was:" >&5
9261 cat conftest.$ac_ext >&5
9265 LIBS="$ac_func_search_save_LIBS"
9268 echo "$ac_t""$ac_cv_search_regfree" 1>&6
9269 if test "$ac_cv_search_regfree" != "no"; then
9270 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
9273 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
9277 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
9278 echo "configure:9279: checking for compatible POSIX regex" >&5
9279 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
9280 echo $ac_n "(cached) $ac_c" 1>&6
9283 if test "$cross_compiling" = yes; then
9284 ol_cv_c_posix_regex=cross
9286 cat > conftest.$ac_ext <<EOF
9287 #line 9288 "configure"
9288 #include "confdefs.h"
9290 #include <sys/types.h>
9292 static char *pattern, *string;
9300 if(regcomp(&re, pattern, 0)) {
9304 string = "ALL MATCH";
9306 rc = regexec(&re, string, 0, (void*)0, 0);
9313 if { (eval echo configure:9314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9315 ol_cv_c_posix_regex=yes
9317 echo "configure: failed program was:" >&5
9318 cat conftest.$ac_ext >&5
9320 ol_cv_c_posix_regex=no
9327 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
9329 if test "$ol_cv_c_posix_regex" = no ; then
9330 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
9335 for ac_hdr in sys/uuid.h
9337 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9338 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9339 echo "configure:9340: checking for $ac_hdr" >&5
9340 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9341 echo $ac_n "(cached) $ac_c" 1>&6
9343 cat > conftest.$ac_ext <<EOF
9344 #line 9345 "configure"
9345 #include "confdefs.h"
9348 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9349 { (eval echo configure:9350: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9350 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9351 if test -z "$ac_err"; then
9353 eval "ac_cv_header_$ac_safe=yes"
9356 echo "configure: failed program was:" >&5
9357 cat conftest.$ac_ext >&5
9359 eval "ac_cv_header_$ac_safe=no"
9363 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9364 echo "$ac_t""yes" 1>&6
9365 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9366 cat >> confdefs.h <<EOF
9367 #define $ac_tr_hdr 1
9371 echo "$ac_t""no" 1>&6
9375 if test $ac_cv_header_sys_uuid_h = yes ; then
9378 echo $ac_n "checking for library containing uuid_to_str""... $ac_c" 1>&6
9379 echo "configure:9380: checking for library containing uuid_to_str" >&5
9380 if eval "test \"\${ac_cv_search_uuid_to_str+set}\" = set"; then
9381 echo $ac_n "(cached) $ac_c" 1>&6
9383 ac_func_search_save_LIBS="$LIBS"
9384 ac_cv_search_uuid_to_str="no"
9385 cat > conftest.$ac_ext <<EOF
9386 #line 9387 "configure"
9387 #include "confdefs.h"
9388 /* Override any gcc2 internal prototype to avoid an error. */
9389 /* We use char because int might match the return type of a gcc2
9390 builtin and then its argument prototype would still apply. */
9397 if { (eval echo configure:9398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9399 ac_cv_search_uuid_to_str="none required"
9401 echo "configure: failed program was:" >&5
9402 cat conftest.$ac_ext >&5
9405 test "$ac_cv_search_uuid_to_str" = "no" && for ac_lib in uuid; do
9406 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9407 cat > conftest.$ac_ext <<EOF
9408 #line 9409 "configure"
9409 #include "confdefs.h"
9410 /* Override any gcc2 internal prototype to avoid an error. */
9411 /* We use char because int might match the return type of a gcc2
9412 builtin and then its argument prototype would still apply. */
9419 if { (eval echo configure:9420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9421 ac_cv_search_uuid_to_str="-l$ac_lib"
9424 echo "configure: failed program was:" >&5
9425 cat conftest.$ac_ext >&5
9429 LIBS="$ac_func_search_save_LIBS"
9432 echo "$ac_t""$ac_cv_search_uuid_to_str" 1>&6
9433 if test "$ac_cv_search_uuid_to_str" != "no"; then
9434 test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
9441 if test have_uuid = yes ; then
9442 cat >> confdefs.h <<\EOF
9443 #define HAVE_UUID_TO_STR 1
9447 test "$ac_cv_search_uuid_to_str" = "none required" || \
9448 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
9452 if test $have_uuid = no ; then
9453 echo $ac_n "checking to see if -lrpcrt4 is needed for win32 UUID support""... $ac_c" 1>&6
9454 echo "configure:9455: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
9456 LIBS="$LIBS -lrpcrt4"
9457 cat > conftest.$ac_ext <<EOF
9458 #line 9459 "configure"
9459 #include "confdefs.h"
9461 int __stdcall UuidCreate(void *);
9462 int __stdcall UuidToStringA(void *,void **);
9471 if { (eval echo configure:9472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9475 echo "configure: failed program was:" >&5
9476 cat conftest.$ac_ext >&5
9481 if test $need_rpcrt = yes; then
9482 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
9485 echo "$ac_t""$need_rpcrt" 1>&6
9489 echo $ac_n "checking for res_query""... $ac_c" 1>&6
9490 echo "configure:9491: checking for res_query" >&5
9491 if eval "test \"\${ac_cv_func_res_query+set}\" = set"; then
9492 echo $ac_n "(cached) $ac_c" 1>&6
9494 cat > conftest.$ac_ext <<EOF
9495 #line 9496 "configure"
9496 #include "confdefs.h"
9497 /* System header to define __stub macros and hopefully few prototypes,
9498 which can conflict with char res_query(); below. */
9500 /* Override any gcc2 internal prototype to avoid an error. */
9501 /* We use char because int might match the return type of a gcc2
9502 builtin and then its argument prototype would still apply. */
9508 /* The GNU C library defines this for functions which it implements
9509 to always fail with ENOSYS. Some functions are actually named
9510 something starting with __ and the normal name is an alias. */
9511 #if defined (__stub_res_query) || defined (__stub___res_query)
9519 if { (eval echo configure:9520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9521 eval "ac_cv_func_res_query=yes"
9523 echo "configure: failed program was:" >&5
9524 cat conftest.$ac_ext >&5
9526 eval "ac_cv_func_res_query=no"
9531 if eval "test \"`echo '$ac_cv_func_'res_query`\" = yes"; then
9532 echo "$ac_t""yes" 1>&6
9535 echo "$ac_t""no" 1>&6
9538 if test $ac_cv_func_res_query = no ; then
9539 echo $ac_n "checking for __res_query""... $ac_c" 1>&6
9540 echo "configure:9541: checking for __res_query" >&5
9541 if eval "test \"\${ac_cv_func___res_query+set}\" = set"; then
9542 echo $ac_n "(cached) $ac_c" 1>&6
9544 cat > conftest.$ac_ext <<EOF
9545 #line 9546 "configure"
9546 #include "confdefs.h"
9547 /* System header to define __stub macros and hopefully few prototypes,
9548 which can conflict with char __res_query(); below. */
9550 /* Override any gcc2 internal prototype to avoid an error. */
9551 /* We use char because int might match the return type of a gcc2
9552 builtin and then its argument prototype would still apply. */
9558 /* The GNU C library defines this for functions which it implements
9559 to always fail with ENOSYS. Some functions are actually named
9560 something starting with __ and the normal name is an alias. */
9561 #if defined (__stub___res_query) || defined (__stub_____res_query)
9569 if { (eval echo configure:9570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9571 eval "ac_cv_func___res_query=yes"
9573 echo "configure: failed program was:" >&5
9574 cat conftest.$ac_ext >&5
9576 eval "ac_cv_func___res_query=no"
9581 if eval "test \"`echo '$ac_cv_func_'__res_query`\" = yes"; then
9582 echo "$ac_t""yes" 1>&6
9585 echo "$ac_t""no" 1>&6
9588 ac_cv_func_res_query=$ac_cv_func___res_query
9591 if test $ac_cv_func_res_query = no ; then
9592 echo $ac_n "checking for res_query in -lbind""... $ac_c" 1>&6
9593 echo "configure:9594: checking for res_query in -lbind" >&5
9594 ac_lib_var=`echo bind'_'res_query | sed 'y%./+-:%__p__%'`
9595 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9596 echo $ac_n "(cached) $ac_c" 1>&6
9598 ac_save_LIBS="$LIBS"
9600 cat > conftest.$ac_ext <<EOF
9601 #line 9602 "configure"
9602 #include "confdefs.h"
9603 /* Override any gcc2 internal prototype to avoid an error. */
9604 /* We use char because int might match the return type of a gcc2
9605 builtin and then its argument prototype would still apply. */
9612 if { (eval echo configure:9613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9614 eval "ac_cv_lib_$ac_lib_var=yes"
9616 echo "configure: failed program was:" >&5
9617 cat conftest.$ac_ext >&5
9619 eval "ac_cv_lib_$ac_lib_var=no"
9622 LIBS="$ac_save_LIBS"
9625 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9626 echo "$ac_t""yes" 1>&6
9627 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9628 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9629 cat >> confdefs.h <<EOF
9630 #define $ac_tr_lib 1
9636 echo "$ac_t""no" 1>&6
9639 ac_cv_func_res_query=$ac_cv_lib_bind_res_query
9642 if test $ac_cv_func_res_query = no ; then
9643 echo $ac_n "checking for __res_query in -lbind""... $ac_c" 1>&6
9644 echo "configure:9645: checking for __res_query in -lbind" >&5
9645 ac_lib_var=`echo bind'_'__res_query | sed 'y%./+-:%__p__%'`
9646 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9647 echo $ac_n "(cached) $ac_c" 1>&6
9649 ac_save_LIBS="$LIBS"
9651 cat > conftest.$ac_ext <<EOF
9652 #line 9653 "configure"
9653 #include "confdefs.h"
9654 /* Override any gcc2 internal prototype to avoid an error. */
9655 /* We use char because int might match the return type of a gcc2
9656 builtin and then its argument prototype would still apply. */
9663 if { (eval echo configure:9664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9665 eval "ac_cv_lib_$ac_lib_var=yes"
9667 echo "configure: failed program was:" >&5
9668 cat conftest.$ac_ext >&5
9670 eval "ac_cv_lib_$ac_lib_var=no"
9673 LIBS="$ac_save_LIBS"
9676 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9677 echo "$ac_t""yes" 1>&6
9678 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9679 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9680 cat >> confdefs.h <<EOF
9681 #define $ac_tr_lib 1
9687 echo "$ac_t""no" 1>&6
9690 ac_cv_func_res_query=$ac_cv_lib_bind___res_query
9693 if test $ac_cv_func_res_query = no ; then
9694 echo $ac_n "checking for res_query in -lresolv""... $ac_c" 1>&6
9695 echo "configure:9696: checking for res_query in -lresolv" >&5
9696 ac_lib_var=`echo resolv'_'res_query | sed 'y%./+-:%__p__%'`
9697 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9698 echo $ac_n "(cached) $ac_c" 1>&6
9700 ac_save_LIBS="$LIBS"
9701 LIBS="-lresolv $LIBS"
9702 cat > conftest.$ac_ext <<EOF
9703 #line 9704 "configure"
9704 #include "confdefs.h"
9705 /* Override any gcc2 internal prototype to avoid an error. */
9706 /* We use char because int might match the return type of a gcc2
9707 builtin and then its argument prototype would still apply. */
9714 if { (eval echo configure:9715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9716 eval "ac_cv_lib_$ac_lib_var=yes"
9718 echo "configure: failed program was:" >&5
9719 cat conftest.$ac_ext >&5
9721 eval "ac_cv_lib_$ac_lib_var=no"
9724 LIBS="$ac_save_LIBS"
9727 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9728 echo "$ac_t""yes" 1>&6
9729 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9730 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9731 cat >> confdefs.h <<EOF
9732 #define $ac_tr_lib 1
9735 LIBS="-lresolv $LIBS"
9738 echo "$ac_t""no" 1>&6
9741 ac_cv_func_res_query=$ac_cv_lib_resolv_res_query
9744 if test $ac_cv_func_res_query = no ; then
9745 echo $ac_n "checking for __res_query in -lresolv""... $ac_c" 1>&6
9746 echo "configure:9747: checking for __res_query in -lresolv" >&5
9747 ac_lib_var=`echo resolv'_'__res_query | sed 'y%./+-:%__p__%'`
9748 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9749 echo $ac_n "(cached) $ac_c" 1>&6
9751 ac_save_LIBS="$LIBS"
9752 LIBS="-lresolv $LIBS"
9753 cat > conftest.$ac_ext <<EOF
9754 #line 9755 "configure"
9755 #include "confdefs.h"
9756 /* Override any gcc2 internal prototype to avoid an error. */
9757 /* We use char because int might match the return type of a gcc2
9758 builtin and then its argument prototype would still apply. */
9765 if { (eval echo configure:9766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9767 eval "ac_cv_lib_$ac_lib_var=yes"
9769 echo "configure: failed program was:" >&5
9770 cat conftest.$ac_ext >&5
9772 eval "ac_cv_lib_$ac_lib_var=no"
9775 LIBS="$ac_save_LIBS"
9778 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9779 echo "$ac_t""yes" 1>&6
9780 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9781 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9782 cat >> confdefs.h <<EOF
9783 #define $ac_tr_lib 1
9786 LIBS="-lresolv $LIBS"
9789 echo "$ac_t""no" 1>&6
9792 ac_cv_func_res_query=$ac_cv_lib_resolv___res_query
9795 if test "$ac_cv_func_res_query" = yes ; then
9796 cat >> confdefs.h <<\EOF
9797 #define HAVE_RES_QUERY 1
9801 if test $ol_enable_dnssrv != no ; then
9806 if test "$ol_enable_dnssrv" != no -a "$ol_link_dnssrv" = no ; then
9807 { echo "configure: error: DNSSRV requires res_query()" 1>&2; exit 1; }
9810 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
9812 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9813 echo "configure:9814: checking for $ac_func" >&5
9814 if eval "test \"\${ac_cv_func_$ac_func+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 $ac_func(); 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_$ac_func) || defined (__stub___$ac_func)
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_$ac_func=yes"
9846 echo "configure: failed program was:" >&5
9847 cat conftest.$ac_ext >&5
9849 eval "ac_cv_func_$ac_func=no"
9854 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9855 echo "$ac_t""yes" 1>&6
9856 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9857 cat >> confdefs.h <<EOF
9858 #define $ac_tr_func 1
9862 echo "$ac_t""no" 1>&6
9868 if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then
9869 if test $ol_enable_ipv6 = yes ; then
9870 { echo "configure: error: IPv6 support requires getaddrinfo() and inet_ntop()" 1>&2; exit 1; }
9872 elif test $ol_enable_ipv6 != no ; then
9873 echo $ac_n "checking INET6_ADDRSTRLEN""... $ac_c" 1>&6
9874 echo "configure:9875: checking INET6_ADDRSTRLEN" >&5
9875 if eval "test \"\${ol_cv_inet6_addrstrlen+set}\" = set"; then
9876 echo $ac_n "(cached) $ac_c" 1>&6
9879 cat > conftest.$ac_ext <<EOF
9880 #line 9881 "configure"
9881 #include "confdefs.h"
9883 # include <netinet/in.h>
9884 # ifdef INET6_ADDRSTRLEN
9885 __has_inet6_addrstrlen__;
9889 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9890 egrep "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
9892 ol_cv_inet6_addrstrlen=yes
9895 ol_cv_inet6_addrstrlen=no
9901 echo "$ac_t""$ol_cv_inet6_addrstrlen" 1>&6
9904 echo $ac_n "checking struct sockaddr_storage""... $ac_c" 1>&6
9905 echo "configure:9906: checking struct sockaddr_storage" >&5
9906 if eval "test \"\${ol_cv_struct_sockaddr_storage+set}\" = set"; then
9907 echo $ac_n "(cached) $ac_c" 1>&6
9910 cat > conftest.$ac_ext <<EOF
9911 #line 9912 "configure"
9912 #include "confdefs.h"
9914 #include <sys/types.h>
9915 #include <sys/socket.h>
9919 struct sockaddr_storage ss;
9923 if { (eval echo configure:9924: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9925 ol_cv_struct_sockaddr_storage=yes
9927 echo "configure: failed program was:" >&5
9928 cat conftest.$ac_ext >&5
9930 ol_cv_struct_sockaddr_storage=no
9935 echo "$ac_t""$ol_cv_struct_sockaddr_storage" 1>&6
9937 if test $ol_cv_inet6_addrstrlen = yes \
9938 -a $ol_cv_struct_sockaddr_storage = yes ; then
9940 elif test $ol_enable_ipv6 = yes \
9941 -a $ol_cv_inet6_addrstrlen = no ; then
9942 { echo "configure: error: IPv6 support requires INET6_ADDRSTRLEN" 1>&2; exit 1; }
9943 elif test $ol_enable_ipv6 = yes \
9944 -a $ol_cv_struct_sockaddr_storage = no ; then
9945 { echo "configure: error: IPv6 support requires struct sockaddr_storage" 1>&2; exit 1; }
9949 if test $ol_enable_local != no ; then
9950 for ac_hdr in sys/un.h
9952 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9953 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9954 echo "configure:9955: checking for $ac_hdr" >&5
9955 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9956 echo $ac_n "(cached) $ac_c" 1>&6
9958 cat > conftest.$ac_ext <<EOF
9959 #line 9960 "configure"
9960 #include "confdefs.h"
9963 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9964 { (eval echo configure:9965: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9965 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9966 if test -z "$ac_err"; then
9968 eval "ac_cv_header_$ac_safe=yes"
9971 echo "configure: failed program was:" >&5
9972 cat conftest.$ac_ext >&5
9974 eval "ac_cv_header_$ac_safe=no"
9978 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9979 echo "$ac_t""yes" 1>&6
9980 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9981 cat >> confdefs.h <<EOF
9982 #define $ac_tr_hdr 1
9986 echo "$ac_t""no" 1>&6
9991 if test $ol_enable_local = auto ; then
9992 ol_enable_local=$ac_cv_header_sys_un_h
9993 elif test $ac_cv_header_sys_un_h = no ; then
9994 { echo "configure: error: AF_LOCAL domain support requires sys/un.h" 1>&2; exit 1; }
10002 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
10003 -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
10004 -o $ol_with_kerberos = k425 ; then
10006 for ac_hdr in krb5.h
10008 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10009 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10010 echo "configure:10011: checking for $ac_hdr" >&5
10011 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10012 echo $ac_n "(cached) $ac_c" 1>&6
10014 cat > conftest.$ac_ext <<EOF
10015 #line 10016 "configure"
10016 #include "confdefs.h"
10019 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10020 { (eval echo configure:10021: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10021 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10022 if test -z "$ac_err"; then
10024 eval "ac_cv_header_$ac_safe=yes"
10027 echo "configure: failed program was:" >&5
10028 cat conftest.$ac_ext >&5
10030 eval "ac_cv_header_$ac_safe=no"
10034 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10035 echo "$ac_t""yes" 1>&6
10036 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10037 cat >> confdefs.h <<EOF
10038 #define $ac_tr_hdr 1
10042 echo "$ac_t""no" 1>&6
10047 if test $ac_cv_header_krb5_h = yes ; then
10048 for ac_hdr in heim_err.h
10050 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10051 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10052 echo "configure:10053: checking for $ac_hdr" >&5
10053 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10054 echo $ac_n "(cached) $ac_c" 1>&6
10056 cat > conftest.$ac_ext <<EOF
10057 #line 10058 "configure"
10058 #include "confdefs.h"
10061 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10062 { (eval echo configure:10063: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10063 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10064 if test -z "$ac_err"; then
10066 eval "ac_cv_header_$ac_safe=yes"
10069 echo "configure: failed program was:" >&5
10070 cat conftest.$ac_ext >&5
10072 eval "ac_cv_header_$ac_safe=no"
10076 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10077 echo "$ac_t""yes" 1>&6
10078 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10079 cat >> confdefs.h <<EOF
10080 #define $ac_tr_hdr 1
10084 echo "$ac_t""no" 1>&6
10088 if test $ac_cv_header_heim_err_h = yes ; then
10094 if test $krb5_impl = mit; then
10095 echo $ac_n "checking for main in -lk5crypto""... $ac_c" 1>&6
10096 echo "configure:10097: checking for main in -lk5crypto" >&5
10097 ac_lib_var=`echo k5crypto'_'main | sed 'y%./+-:%__p__%'`
10098 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10099 echo $ac_n "(cached) $ac_c" 1>&6
10101 ac_save_LIBS="$LIBS"
10102 LIBS="-lk5crypto $LIBS"
10103 cat > conftest.$ac_ext <<EOF
10104 #line 10105 "configure"
10105 #include "confdefs.h"
10111 if { (eval echo configure:10112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10113 eval "ac_cv_lib_$ac_lib_var=yes"
10115 echo "configure: failed program was:" >&5
10116 cat conftest.$ac_ext >&5
10118 eval "ac_cv_lib_$ac_lib_var=no"
10121 LIBS="$ac_save_LIBS"
10124 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10125 echo "$ac_t""yes" 1>&6
10126 krb5crypto=k5crypto
10128 echo "$ac_t""no" 1>&6
10133 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
10134 echo "configure:10135: checking for main in -lkrb5" >&5
10135 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
10136 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10137 echo $ac_n "(cached) $ac_c" 1>&6
10139 ac_save_LIBS="$LIBS"
10140 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
10141 cat > conftest.$ac_ext <<EOF
10142 #line 10143 "configure"
10143 #include "confdefs.h"
10149 if { (eval echo configure:10150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10151 eval "ac_cv_lib_$ac_lib_var=yes"
10153 echo "configure: failed program was:" >&5
10154 cat conftest.$ac_ext >&5
10156 eval "ac_cv_lib_$ac_lib_var=no"
10159 LIBS="$ac_save_LIBS"
10162 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10163 echo "$ac_t""yes" 1>&6
10165 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
10167 echo "$ac_t""no" 1>&6
10172 elif test $krb5_impl = heimdal; then
10173 echo $ac_n "checking for main in -ldes""... $ac_c" 1>&6
10174 echo "configure:10175: checking for main in -ldes" >&5
10175 ac_lib_var=`echo des'_'main | sed 'y%./+-:%__p__%'`
10176 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10177 echo $ac_n "(cached) $ac_c" 1>&6
10179 ac_save_LIBS="$LIBS"
10181 cat > conftest.$ac_ext <<EOF
10182 #line 10183 "configure"
10183 #include "confdefs.h"
10189 if { (eval echo configure:10190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10191 eval "ac_cv_lib_$ac_lib_var=yes"
10193 echo "configure: failed program was:" >&5
10194 cat conftest.$ac_ext >&5
10196 eval "ac_cv_lib_$ac_lib_var=no"
10199 LIBS="$ac_save_LIBS"
10202 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10203 echo "$ac_t""yes" 1>&6
10206 echo "$ac_t""no" 1>&6
10211 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
10212 echo "configure:10213: checking for main in -lkrb5" >&5
10213 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
10214 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10215 echo $ac_n "(cached) $ac_c" 1>&6
10217 ac_save_LIBS="$LIBS"
10218 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
10219 cat > conftest.$ac_ext <<EOF
10220 #line 10221 "configure"
10221 #include "confdefs.h"
10227 if { (eval echo configure:10228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10229 eval "ac_cv_lib_$ac_lib_var=yes"
10231 echo "configure: failed program was:" >&5
10232 cat conftest.$ac_ext >&5
10234 eval "ac_cv_lib_$ac_lib_var=no"
10237 LIBS="$ac_save_LIBS"
10240 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10241 echo "$ac_t""yes" 1>&6
10243 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
10245 echo "$ac_t""no" 1>&6
10250 cat >> confdefs.h <<\EOF
10251 #define HAVE_HEIMDAL_KERBEROS 1
10257 echo "configure: warning: Unrecognized Kerberos5 Implementation" 1>&2
10260 if test $have_krb5 = yes ; then
10263 cat >> confdefs.h <<\EOF
10264 #define HAVE_KRB5 1
10268 if test $ol_with_kerberos = k5only ; then
10269 ol_with_kerberos=found
10272 elif test $ol_with_kerberos != auto ; then
10273 { echo "configure: error: Required Kerberos 5 support not available" 1>&2; exit 1; }
10279 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
10280 $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
10282 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
10284 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10285 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10286 echo "configure:10287: checking for $ac_hdr" >&5
10287 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10288 echo $ac_n "(cached) $ac_c" 1>&6
10290 cat > conftest.$ac_ext <<EOF
10291 #line 10292 "configure"
10292 #include "confdefs.h"
10295 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10296 { (eval echo configure:10297: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10297 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10298 if test -z "$ac_err"; then
10300 eval "ac_cv_header_$ac_safe=yes"
10303 echo "configure: failed program was:" >&5
10304 cat conftest.$ac_ext >&5
10306 eval "ac_cv_header_$ac_safe=no"
10310 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10311 echo "$ac_t""yes" 1>&6
10312 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10313 cat >> confdefs.h <<EOF
10314 #define $ac_tr_hdr 1
10318 echo "$ac_t""no" 1>&6
10323 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
10324 if test $krb5_impl = mit; then
10325 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
10326 echo "configure:10327: checking for main in -lkrb4" >&5
10327 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
10328 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10329 echo $ac_n "(cached) $ac_c" 1>&6
10331 ac_save_LIBS="$LIBS"
10332 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
10333 cat > conftest.$ac_ext <<EOF
10334 #line 10335 "configure"
10335 #include "confdefs.h"
10341 if { (eval echo configure:10342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10343 eval "ac_cv_lib_$ac_lib_var=yes"
10345 echo "configure: failed program was:" >&5
10346 cat conftest.$ac_ext >&5
10348 eval "ac_cv_lib_$ac_lib_var=no"
10351 LIBS="$ac_save_LIBS"
10354 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10355 echo "$ac_t""yes" 1>&6
10357 KRB4_LIBS="-lkrb4 -ldes425"
10359 echo "$ac_t""no" 1>&6
10364 elif test $krb5_impl = heimdal; then
10365 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
10366 echo "configure:10367: checking for main in -lkrb4" >&5
10367 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
10368 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10369 echo $ac_n "(cached) $ac_c" 1>&6
10371 ac_save_LIBS="$LIBS"
10372 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
10373 cat > conftest.$ac_ext <<EOF
10374 #line 10375 "configure"
10375 #include "confdefs.h"
10381 if { (eval echo configure:10382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10383 eval "ac_cv_lib_$ac_lib_var=yes"
10385 echo "configure: failed program was:" >&5
10386 cat conftest.$ac_ext >&5
10388 eval "ac_cv_lib_$ac_lib_var=no"
10391 LIBS="$ac_save_LIBS"
10394 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10395 echo "$ac_t""yes" 1>&6
10399 echo "$ac_t""no" 1>&6
10406 echo "configure: warning: Unrecongized Kerberos V Implementation" 1>&2
10409 if test $have_k425 = yes ; then
10410 ol_with_kerberos=found
10413 cat >> confdefs.h <<\EOF
10414 #define HAVE_KRB425 1
10417 cat >> confdefs.h <<\EOF
10418 #define HAVE_KRB4 1
10422 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
10423 echo "configure:10424: checking for des_debug in Kerberos libraries" >&5
10424 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
10425 echo $ac_n "(cached) $ac_c" 1>&6
10429 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
10430 cat > conftest.$ac_ext <<EOF
10431 #line 10432 "configure"
10432 #include "confdefs.h"
10434 #include <kerberosIV/krb.h>
10435 #include <kerberosIV/des.h>
10436 extern int des_debug;
10444 if { (eval echo configure:10445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10446 ol_cv_var_des_debug=yes
10448 echo "configure: failed program was:" >&5
10449 cat conftest.$ac_ext >&5
10451 ol_cv_var_des_debug=no
10458 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
10460 if test $ol_cv_var_des_debug = yes ; then
10461 cat >> confdefs.h <<\EOF
10462 #define HAVE_DES_DEBUG 1
10472 if test $ol_link_krb5 = yes ; then
10473 ol_with_kerberos=found
10476 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
10477 -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
10479 for ac_hdr in krb.h des.h krb-archaeology.h
10481 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10482 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10483 echo "configure:10484: checking for $ac_hdr" >&5
10484 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10485 echo $ac_n "(cached) $ac_c" 1>&6
10487 cat > conftest.$ac_ext <<EOF
10488 #line 10489 "configure"
10489 #include "confdefs.h"
10492 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10493 { (eval echo configure:10494: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10494 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10495 if test -z "$ac_err"; then
10497 eval "ac_cv_header_$ac_safe=yes"
10500 echo "configure: failed program was:" >&5
10501 cat conftest.$ac_ext >&5
10503 eval "ac_cv_header_$ac_safe=no"
10507 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10508 echo "$ac_t""yes" 1>&6
10509 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10510 cat >> confdefs.h <<EOF
10511 #define $ac_tr_hdr 1
10515 echo "$ac_t""no" 1>&6
10520 if test $ac_cv_header_krb_h = yes ; then
10521 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
10522 echo "configure:10523: checking for main in -lkrb" >&5
10523 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
10524 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10525 echo $ac_n "(cached) $ac_c" 1>&6
10527 ac_save_LIBS="$LIBS"
10528 LIBS="-lkrb -ldes $LIBS"
10529 cat > conftest.$ac_ext <<EOF
10530 #line 10531 "configure"
10531 #include "confdefs.h"
10537 if { (eval echo configure:10538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10539 eval "ac_cv_lib_$ac_lib_var=yes"
10541 echo "configure: failed program was:" >&5
10542 cat conftest.$ac_ext >&5
10544 eval "ac_cv_lib_$ac_lib_var=no"
10547 LIBS="$ac_save_LIBS"
10550 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10551 echo "$ac_t""yes" 1>&6
10554 echo "$ac_t""no" 1>&6
10559 if test $have_k4 = yes ; then
10560 ol_with_kerberos=found
10563 cat >> confdefs.h <<\EOF
10564 #define HAVE_KRB4 1
10568 KRB4_LIBS="-lkrb -ldes"
10570 if test $ac_cv_header_krb_archaeology_h = yes ; then
10571 cat >> confdefs.h <<\EOF
10572 #define HAVE_KTH_KERBEROS 1
10580 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
10583 elif test $ol_enable_kbind = yes ; then
10584 { echo "configure: error: Kerberos IV detection failed" 1>&2; exit 1; }
10587 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
10588 cat >> confdefs.h <<\EOF
10589 #define HAVE_KERBEROS 1
10593 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
10594 { echo "configure: error: Kerberos detection failed" 1>&2; exit 1; }
10598 if test $ol_with_tls != no ; then
10599 for ac_hdr in openssl/ssl.h ssl.h
10601 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10602 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10603 echo "configure:10604: checking for $ac_hdr" >&5
10604 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10605 echo $ac_n "(cached) $ac_c" 1>&6
10607 cat > conftest.$ac_ext <<EOF
10608 #line 10609 "configure"
10609 #include "confdefs.h"
10612 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10613 { (eval echo configure:10614: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10614 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10615 if test -z "$ac_err"; then
10617 eval "ac_cv_header_$ac_safe=yes"
10620 echo "configure: failed program was:" >&5
10621 cat conftest.$ac_ext >&5
10623 eval "ac_cv_header_$ac_safe=no"
10627 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10628 echo "$ac_t""yes" 1>&6
10629 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10630 cat >> confdefs.h <<EOF
10631 #define $ac_tr_hdr 1
10635 echo "$ac_t""no" 1>&6
10640 if test $ac_cv_header_openssl_ssl_h = yes \
10641 -o $ac_cv_header_ssl_h = yes ; then
10642 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
10643 echo "configure:10644: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
10644 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
10645 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10646 echo $ac_n "(cached) $ac_c" 1>&6
10648 ac_save_LIBS="$LIBS"
10649 LIBS="-lssl -lcrypto $LIBS"
10650 cat > conftest.$ac_ext <<EOF
10651 #line 10652 "configure"
10652 #include "confdefs.h"
10653 /* Override any gcc2 internal prototype to avoid an error. */
10654 /* We use char because int might match the return type of a gcc2
10655 builtin and then its argument prototype would still apply. */
10656 char SSLeay_add_ssl_algorithms();
10659 SSLeay_add_ssl_algorithms()
10662 if { (eval echo configure:10663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10664 eval "ac_cv_lib_$ac_lib_var=yes"
10666 echo "configure: failed program was:" >&5
10667 cat conftest.$ac_ext >&5
10669 eval "ac_cv_lib_$ac_lib_var=no"
10672 LIBS="$ac_save_LIBS"
10675 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10676 echo "$ac_t""yes" 1>&6
10680 echo "$ac_t""no" 1>&6
10685 if test $have_ssleay = no ; then
10686 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
10687 echo "configure:10688: checking for SSL_library_init in -lssl" >&5
10688 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
10689 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10690 echo $ac_n "(cached) $ac_c" 1>&6
10692 ac_save_LIBS="$LIBS"
10693 LIBS="-lssl -lcrypto $LIBS"
10694 cat > conftest.$ac_ext <<EOF
10695 #line 10696 "configure"
10696 #include "confdefs.h"
10697 /* Override any gcc2 internal prototype to avoid an error. */
10698 /* We use char because int might match the return type of a gcc2
10699 builtin and then its argument prototype would still apply. */
10700 char SSL_library_init();
10706 if { (eval echo configure:10707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10708 eval "ac_cv_lib_$ac_lib_var=yes"
10710 echo "configure: failed program was:" >&5
10711 cat conftest.$ac_ext >&5
10713 eval "ac_cv_lib_$ac_lib_var=no"
10716 LIBS="$ac_save_LIBS"
10719 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10720 echo "$ac_t""yes" 1>&6
10724 echo "$ac_t""no" 1>&6
10730 if test $have_ssleay = no ; then
10731 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
10732 echo "configure:10733: checking for ssl3_accept in -lssl" >&5
10733 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
10734 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10735 echo $ac_n "(cached) $ac_c" 1>&6
10737 ac_save_LIBS="$LIBS"
10738 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
10739 cat > conftest.$ac_ext <<EOF
10740 #line 10741 "configure"
10741 #include "confdefs.h"
10742 /* Override any gcc2 internal prototype to avoid an error. */
10743 /* We use char because int might match the return type of a gcc2
10744 builtin and then its argument prototype would still apply. */
10745 char ssl3_accept();
10751 if { (eval echo configure:10752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10753 eval "ac_cv_lib_$ac_lib_var=yes"
10755 echo "configure: failed program was:" >&5
10756 cat conftest.$ac_ext >&5
10758 eval "ac_cv_lib_$ac_lib_var=no"
10761 LIBS="$ac_save_LIBS"
10764 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10765 echo "$ac_t""yes" 1>&6
10769 echo "$ac_t""no" 1>&6
10775 if test $have_ssleay = yes ; then
10779 cat >> confdefs.h <<\EOF
10780 #define HAVE_SSLEAY 1
10784 if test $need_rsaref = yes; then
10785 cat >> confdefs.h <<\EOF
10786 #define HAVE_RSAREF 1
10790 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
10792 TLS_LIBS="-lssl -lcrypto"
10798 echo "configure: warning: TLS data protection not supported!" 1>&2
10802 if test $ol_link_tls = yes ; then
10803 cat >> confdefs.h <<\EOF
10809 elif test $ol_with_tls = auto ; then
10810 echo "configure: warning: Could not locate TLS/SSL package" 1>&2
10811 echo "configure: warning: TLS data protection not supported!" 1>&2
10813 elif test $ol_with_tls != no ; then
10814 { echo "configure: error: Could not locate TLS/SSL package" 1>&2; exit 1; }
10817 if test $ol_enable_lmpasswd != no; then
10818 if test $ol_link_tls != yes ; then
10819 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
10822 cat >> confdefs.h <<\EOF
10823 #define SLAPD_LMHASH 1
10830 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10831 -o $ol_with_threads = nt ; then
10834 echo $ac_n "checking for _beginthread""... $ac_c" 1>&6
10835 echo "configure:10836: checking for _beginthread" >&5
10836 if eval "test \"\${ac_cv_func__beginthread+set}\" = set"; then
10837 echo $ac_n "(cached) $ac_c" 1>&6
10839 cat > conftest.$ac_ext <<EOF
10840 #line 10841 "configure"
10841 #include "confdefs.h"
10842 /* System header to define __stub macros and hopefully few prototypes,
10843 which can conflict with char _beginthread(); below. */
10844 #include <assert.h>
10845 /* Override any gcc2 internal prototype to avoid an error. */
10846 /* We use char because int might match the return type of a gcc2
10847 builtin and then its argument prototype would still apply. */
10848 char _beginthread();
10853 /* The GNU C library defines this for functions which it implements
10854 to always fail with ENOSYS. Some functions are actually named
10855 something starting with __ and the normal name is an alias. */
10856 #if defined (__stub__beginthread) || defined (__stub____beginthread)
10864 if { (eval echo configure:10865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10866 eval "ac_cv_func__beginthread=yes"
10868 echo "configure: failed program was:" >&5
10869 cat conftest.$ac_ext >&5
10871 eval "ac_cv_func__beginthread=no"
10876 if eval "test \"`echo '$ac_cv_func_'_beginthread`\" = yes"; then
10877 echo "$ac_t""yes" 1>&6
10880 echo "$ac_t""no" 1>&6
10884 if test $ac_cv_func__beginthread = yes ; then
10885 cat >> confdefs.h <<\EOF
10886 #define HAVE_NT_THREADS 1
10889 ol_cv_nt_threads=yes
10893 if test "$ol_cv_nt_threads" = yes ; then
10895 ol_with_threads=found
10896 ol_with_yielding_select=yes
10898 cat >> confdefs.h <<\EOF
10899 #define HAVE_NT_SERVICE_MANAGER 1
10902 cat >> confdefs.h <<\EOF
10903 #define HAVE_NT_EVENT_LOG 1
10908 if test $ol_with_threads = nt ; then
10909 { echo "configure: error: could not locate NT Threads" 1>&2; exit 1; }
10913 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10914 -o $ol_with_threads = posix ; then
10916 for ac_hdr in pthread.h
10918 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10919 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10920 echo "configure:10921: checking for $ac_hdr" >&5
10921 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10922 echo $ac_n "(cached) $ac_c" 1>&6
10924 cat > conftest.$ac_ext <<EOF
10925 #line 10926 "configure"
10926 #include "confdefs.h"
10929 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10930 { (eval echo configure:10931: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10931 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10932 if test -z "$ac_err"; then
10934 eval "ac_cv_header_$ac_safe=yes"
10937 echo "configure: failed program was:" >&5
10938 cat conftest.$ac_ext >&5
10940 eval "ac_cv_header_$ac_safe=no"
10944 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10945 echo "$ac_t""yes" 1>&6
10946 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10947 cat >> confdefs.h <<EOF
10948 #define $ac_tr_hdr 1
10952 echo "$ac_t""no" 1>&6
10957 if test $ac_cv_header_pthread_h = yes ; then
10958 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
10959 echo "configure:10960: checking POSIX thread version" >&5
10960 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
10961 echo $ac_n "(cached) $ac_c" 1>&6
10964 cat > conftest.$ac_ext <<EOF
10965 #line 10966 "configure"
10966 #include "confdefs.h"
10968 # include <pthread.h>
10972 int i = PTHREAD_CREATE_JOINABLE;
10976 if { (eval echo configure:10977: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10979 cat > conftest.$ac_ext <<EOF
10980 #line 10981 "configure"
10981 #include "confdefs.h"
10982 #include <pthread.h>
10984 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10985 egrep "pthread_detach" >/dev/null 2>&1; then
10987 ol_cv_pthread_version=10
10990 ol_cv_pthread_version=8
10995 echo "configure: failed program was:" >&5
10996 cat conftest.$ac_ext >&5
10999 cat > conftest.$ac_ext <<EOF
11000 #line 11001 "configure"
11001 #include "confdefs.h"
11003 # include <pthread.h>
11004 # ifdef PTHREAD_CREATE_UNDETACHED
11009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11010 egrep "draft7" >/dev/null 2>&1; then
11012 ol_cv_pthread_version=7
11016 cat > conftest.$ac_ext <<EOF
11017 #line 11018 "configure"
11018 #include "confdefs.h"
11019 #include <pthread.h>
11021 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11022 egrep "pthread_attr_init" >/dev/null 2>&1; then
11024 ol_cv_pthread_version=6
11028 cat > conftest.$ac_ext <<EOF
11029 #line 11030 "configure"
11030 #include "confdefs.h"
11032 # include <pthread.h>
11033 #ifdef PTHREAD_MUTEX_INITIALIZER
11038 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11039 egrep "draft5" >/dev/null 2>&1; then
11041 ol_cv_pthread_version=5
11044 ol_cv_pthread_version=4
11059 echo "$ac_t""$ol_cv_pthread_version" 1>&6
11062 if test $ol_cv_pthread_version != 0 ; then
11063 cat >> confdefs.h <<EOF
11064 #define HAVE_PTHREADS $ol_cv_pthread_version
11068 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
11071 # consider threads found
11072 ol_with_threads=found
11075 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
11076 echo "configure:11077: checking for LinuxThreads pthread.h" >&5
11077 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
11078 echo $ac_n "(cached) $ac_c" 1>&6
11080 cat > conftest.$ac_ext <<EOF
11081 #line 11082 "configure"
11082 #include "confdefs.h"
11083 #include <pthread.h>
11085 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11086 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
11088 ol_cv_header_linux_threads=yes
11091 ol_cv_header_linux_threads=no
11098 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
11099 if test $ol_cv_header_linux_threads = yes; then
11100 cat >> confdefs.h <<\EOF
11101 #define HAVE_LINUX_THREADS 1
11107 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
11108 echo "configure:11109: checking for GNU Pth pthread.h" >&5
11109 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+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 #include <pthread.h>
11116 #ifdef _POSIX_THREAD_IS_GNU_PTH
11121 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11122 egrep "__gnu_pth__" >/dev/null 2>&1; then
11124 ol_cv_header_gnu_pth_pthread_h=yes
11127 ol_cv_header_gnu_pth_pthread_h=no
11134 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
11137 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
11138 for ac_hdr in sched.h
11140 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11141 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11142 echo "configure:11143: checking for $ac_hdr" >&5
11143 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11144 echo $ac_n "(cached) $ac_c" 1>&6
11146 cat > conftest.$ac_ext <<EOF
11147 #line 11148 "configure"
11148 #include "confdefs.h"
11151 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11152 { (eval echo configure:11153: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11153 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11154 if test -z "$ac_err"; then
11156 eval "ac_cv_header_$ac_safe=yes"
11159 echo "configure: failed program was:" >&5
11160 cat conftest.$ac_ext >&5
11162 eval "ac_cv_header_$ac_safe=no"
11166 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11167 echo "$ac_t""yes" 1>&6
11168 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11169 cat >> confdefs.h <<EOF
11170 #define $ac_tr_hdr 1
11174 echo "$ac_t""no" 1>&6
11181 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
11182 echo "configure:11183: checking for pthread_create in default libraries" >&5
11183 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
11184 echo $ac_n "(cached) $ac_c" 1>&6
11187 if test "$cross_compiling" = yes; then
11188 cat > conftest.$ac_ext <<EOF
11189 #line 11190 "configure"
11190 #include "confdefs.h"
11191 /* pthread test headers */
11192 #include <pthread.h>
11193 #if HAVE_PTHREADS < 7
11197 #define NULL (void*)0
11200 static void *task(p)
11203 return (void *) (p == NULL);
11208 /* pthread test function */
11209 #ifndef PTHREAD_CREATE_DETACHED
11210 #define PTHREAD_CREATE_DETACHED 1
11214 int detach = PTHREAD_CREATE_DETACHED;
11216 #if HAVE_PTHREADS > 4
11217 /* Final pthreads */
11218 pthread_attr_t attr;
11220 status = pthread_attr_init(&attr);
11221 if( status ) return status;
11223 #if HAVE_PTHREADS < 7
11224 status = pthread_attr_setdetachstate(&attr, &detach);
11225 if( status < 0 ) status = errno;
11227 status = pthread_attr_setdetachstate(&attr, detach);
11229 if( status ) return status;
11230 status = pthread_create( &t, &attr, task, NULL );
11231 #if HAVE_PTHREADS < 7
11232 if( status < 0 ) status = errno;
11234 if( status ) return status;
11236 /* Draft 4 pthreads */
11237 status = pthread_create( &t, pthread_attr_default, task, NULL );
11238 if( status ) return errno;
11240 /* give thread a chance to complete */
11241 /* it should remain joinable and hence detachable */
11244 status = pthread_detach( &t );
11245 if( status ) return errno;
11248 #ifdef HAVE_LINUX_THREADS
11249 pthread_kill_other_threads_np();
11256 if { (eval echo configure:11257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11258 ol_cv_pthread_create=yes
11260 echo "configure: failed program was:" >&5
11261 cat conftest.$ac_ext >&5
11263 ol_cv_pthread_create=no
11267 cat > conftest.$ac_ext <<EOF
11268 #line 11269 "configure"
11269 #include "confdefs.h"
11270 /* pthread test headers */
11271 #include <pthread.h>
11272 #if HAVE_PTHREADS < 7
11276 #define NULL (void*)0
11279 static void *task(p)
11282 return (void *) (p == NULL);
11286 int main(argc, argv)
11291 /* pthread test function */
11292 #ifndef PTHREAD_CREATE_DETACHED
11293 #define PTHREAD_CREATE_DETACHED 1
11297 int detach = PTHREAD_CREATE_DETACHED;
11299 #if HAVE_PTHREADS > 4
11300 /* Final pthreads */
11301 pthread_attr_t attr;
11303 status = pthread_attr_init(&attr);
11304 if( status ) return status;
11306 #if HAVE_PTHREADS < 7
11307 status = pthread_attr_setdetachstate(&attr, &detach);
11308 if( status < 0 ) status = errno;
11310 status = pthread_attr_setdetachstate(&attr, detach);
11312 if( status ) return status;
11313 status = pthread_create( &t, &attr, task, NULL );
11314 #if HAVE_PTHREADS < 7
11315 if( status < 0 ) status = errno;
11317 if( status ) return status;
11319 /* Draft 4 pthreads */
11320 status = pthread_create( &t, pthread_attr_default, task, NULL );
11321 if( status ) return errno;
11323 /* give thread a chance to complete */
11324 /* it should remain joinable and hence detachable */
11327 status = pthread_detach( &t );
11328 if( status ) return errno;
11331 #ifdef HAVE_LINUX_THREADS
11332 pthread_kill_other_threads_np();
11340 if { (eval echo configure:11341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11342 ol_cv_pthread_create=yes
11344 echo "configure: failed program was:" >&5
11345 cat conftest.$ac_ext >&5
11347 ol_cv_pthread_create=no
11354 echo "$ac_t""$ol_cv_pthread_create" 1>&6
11356 if test $ol_cv_pthread_create != no ; then
11357 ol_link_threads=posix
11358 ol_link_pthreads=""
11361 # Pthread try link: -kthread (ol_cv_pthread_kthread)
11362 if test "$ol_link_threads" = no ; then
11364 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
11365 echo "configure:11366: checking for pthread link with -kthread" >&5
11366 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
11367 echo $ac_n "(cached) $ac_c" 1>&6
11372 LIBS="-kthread $LIBS"
11374 if test "$cross_compiling" = yes; then
11375 cat > conftest.$ac_ext <<EOF
11376 #line 11377 "configure"
11377 #include "confdefs.h"
11378 /* pthread test headers */
11379 #include <pthread.h>
11380 #if HAVE_PTHREADS < 7
11384 #define NULL (void*)0
11387 static void *task(p)
11390 return (void *) (p == NULL);
11395 /* pthread test function */
11396 #ifndef PTHREAD_CREATE_DETACHED
11397 #define PTHREAD_CREATE_DETACHED 1
11401 int detach = PTHREAD_CREATE_DETACHED;
11403 #if HAVE_PTHREADS > 4
11404 /* Final pthreads */
11405 pthread_attr_t attr;
11407 status = pthread_attr_init(&attr);
11408 if( status ) return status;
11410 #if HAVE_PTHREADS < 7
11411 status = pthread_attr_setdetachstate(&attr, &detach);
11412 if( status < 0 ) status = errno;
11414 status = pthread_attr_setdetachstate(&attr, detach);
11416 if( status ) return status;
11417 status = pthread_create( &t, &attr, task, NULL );
11418 #if HAVE_PTHREADS < 7
11419 if( status < 0 ) status = errno;
11421 if( status ) return status;
11423 /* Draft 4 pthreads */
11424 status = pthread_create( &t, pthread_attr_default, task, NULL );
11425 if( status ) return errno;
11427 /* give thread a chance to complete */
11428 /* it should remain joinable and hence detachable */
11431 status = pthread_detach( &t );
11432 if( status ) return errno;
11435 #ifdef HAVE_LINUX_THREADS
11436 pthread_kill_other_threads_np();
11443 if { (eval echo configure:11444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11445 ol_cv_pthread_kthread=yes
11447 echo "configure: failed program was:" >&5
11448 cat conftest.$ac_ext >&5
11450 ol_cv_pthread_kthread=no
11454 cat > conftest.$ac_ext <<EOF
11455 #line 11456 "configure"
11456 #include "confdefs.h"
11457 /* pthread test headers */
11458 #include <pthread.h>
11459 #if HAVE_PTHREADS < 7
11463 #define NULL (void*)0
11466 static void *task(p)
11469 return (void *) (p == NULL);
11473 int main(argc, argv)
11478 /* pthread test function */
11479 #ifndef PTHREAD_CREATE_DETACHED
11480 #define PTHREAD_CREATE_DETACHED 1
11484 int detach = PTHREAD_CREATE_DETACHED;
11486 #if HAVE_PTHREADS > 4
11487 /* Final pthreads */
11488 pthread_attr_t attr;
11490 status = pthread_attr_init(&attr);
11491 if( status ) return status;
11493 #if HAVE_PTHREADS < 7
11494 status = pthread_attr_setdetachstate(&attr, &detach);
11495 if( status < 0 ) status = errno;
11497 status = pthread_attr_setdetachstate(&attr, detach);
11499 if( status ) return status;
11500 status = pthread_create( &t, &attr, task, NULL );
11501 #if HAVE_PTHREADS < 7
11502 if( status < 0 ) status = errno;
11504 if( status ) return status;
11506 /* Draft 4 pthreads */
11507 status = pthread_create( &t, pthread_attr_default, task, NULL );
11508 if( status ) return errno;
11510 /* give thread a chance to complete */
11511 /* it should remain joinable and hence detachable */
11514 status = pthread_detach( &t );
11515 if( status ) return errno;
11518 #ifdef HAVE_LINUX_THREADS
11519 pthread_kill_other_threads_np();
11527 if { (eval echo configure:11528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11529 ol_cv_pthread_kthread=yes
11531 echo "configure: failed program was:" >&5
11532 cat conftest.$ac_ext >&5
11534 ol_cv_pthread_kthread=no
11545 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
11547 if test $ol_cv_pthread_kthread = yes ; then
11548 ol_link_pthreads="-kthread"
11549 ol_link_threads=posix
11553 # Pthread try link: -pthread (ol_cv_pthread_pthread)
11554 if test "$ol_link_threads" = no ; then
11556 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
11557 echo "configure:11558: checking for pthread link with -pthread" >&5
11558 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
11559 echo $ac_n "(cached) $ac_c" 1>&6
11564 LIBS="-pthread $LIBS"
11566 if test "$cross_compiling" = yes; then
11567 cat > conftest.$ac_ext <<EOF
11568 #line 11569 "configure"
11569 #include "confdefs.h"
11570 /* pthread test headers */
11571 #include <pthread.h>
11572 #if HAVE_PTHREADS < 7
11576 #define NULL (void*)0
11579 static void *task(p)
11582 return (void *) (p == NULL);
11587 /* pthread test function */
11588 #ifndef PTHREAD_CREATE_DETACHED
11589 #define PTHREAD_CREATE_DETACHED 1
11593 int detach = PTHREAD_CREATE_DETACHED;
11595 #if HAVE_PTHREADS > 4
11596 /* Final pthreads */
11597 pthread_attr_t attr;
11599 status = pthread_attr_init(&attr);
11600 if( status ) return status;
11602 #if HAVE_PTHREADS < 7
11603 status = pthread_attr_setdetachstate(&attr, &detach);
11604 if( status < 0 ) status = errno;
11606 status = pthread_attr_setdetachstate(&attr, detach);
11608 if( status ) return status;
11609 status = pthread_create( &t, &attr, task, NULL );
11610 #if HAVE_PTHREADS < 7
11611 if( status < 0 ) status = errno;
11613 if( status ) return status;
11615 /* Draft 4 pthreads */
11616 status = pthread_create( &t, pthread_attr_default, task, NULL );
11617 if( status ) return errno;
11619 /* give thread a chance to complete */
11620 /* it should remain joinable and hence detachable */
11623 status = pthread_detach( &t );
11624 if( status ) return errno;
11627 #ifdef HAVE_LINUX_THREADS
11628 pthread_kill_other_threads_np();
11635 if { (eval echo configure:11636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11637 ol_cv_pthread_pthread=yes
11639 echo "configure: failed program was:" >&5
11640 cat conftest.$ac_ext >&5
11642 ol_cv_pthread_pthread=no
11646 cat > conftest.$ac_ext <<EOF
11647 #line 11648 "configure"
11648 #include "confdefs.h"
11649 /* pthread test headers */
11650 #include <pthread.h>
11651 #if HAVE_PTHREADS < 7
11655 #define NULL (void*)0
11658 static void *task(p)
11661 return (void *) (p == NULL);
11665 int main(argc, argv)
11670 /* pthread test function */
11671 #ifndef PTHREAD_CREATE_DETACHED
11672 #define PTHREAD_CREATE_DETACHED 1
11676 int detach = PTHREAD_CREATE_DETACHED;
11678 #if HAVE_PTHREADS > 4
11679 /* Final pthreads */
11680 pthread_attr_t attr;
11682 status = pthread_attr_init(&attr);
11683 if( status ) return status;
11685 #if HAVE_PTHREADS < 7
11686 status = pthread_attr_setdetachstate(&attr, &detach);
11687 if( status < 0 ) status = errno;
11689 status = pthread_attr_setdetachstate(&attr, detach);
11691 if( status ) return status;
11692 status = pthread_create( &t, &attr, task, NULL );
11693 #if HAVE_PTHREADS < 7
11694 if( status < 0 ) status = errno;
11696 if( status ) return status;
11698 /* Draft 4 pthreads */
11699 status = pthread_create( &t, pthread_attr_default, task, NULL );
11700 if( status ) return errno;
11702 /* give thread a chance to complete */
11703 /* it should remain joinable and hence detachable */
11706 status = pthread_detach( &t );
11707 if( status ) return errno;
11710 #ifdef HAVE_LINUX_THREADS
11711 pthread_kill_other_threads_np();
11719 if { (eval echo configure:11720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11721 ol_cv_pthread_pthread=yes
11723 echo "configure: failed program was:" >&5
11724 cat conftest.$ac_ext >&5
11726 ol_cv_pthread_pthread=no
11737 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
11739 if test $ol_cv_pthread_pthread = yes ; then
11740 ol_link_pthreads="-pthread"
11741 ol_link_threads=posix
11745 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
11746 if test "$ol_link_threads" = no ; then
11748 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
11749 echo "configure:11750: checking for pthread link with -pthreads" >&5
11750 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
11751 echo $ac_n "(cached) $ac_c" 1>&6
11756 LIBS="-pthreads $LIBS"
11758 if test "$cross_compiling" = yes; then
11759 cat > conftest.$ac_ext <<EOF
11760 #line 11761 "configure"
11761 #include "confdefs.h"
11762 /* pthread test headers */
11763 #include <pthread.h>
11764 #if HAVE_PTHREADS < 7
11768 #define NULL (void*)0
11771 static void *task(p)
11774 return (void *) (p == NULL);
11779 /* pthread test function */
11780 #ifndef PTHREAD_CREATE_DETACHED
11781 #define PTHREAD_CREATE_DETACHED 1
11785 int detach = PTHREAD_CREATE_DETACHED;
11787 #if HAVE_PTHREADS > 4
11788 /* Final pthreads */
11789 pthread_attr_t attr;
11791 status = pthread_attr_init(&attr);
11792 if( status ) return status;
11794 #if HAVE_PTHREADS < 7
11795 status = pthread_attr_setdetachstate(&attr, &detach);
11796 if( status < 0 ) status = errno;
11798 status = pthread_attr_setdetachstate(&attr, detach);
11800 if( status ) return status;
11801 status = pthread_create( &t, &attr, task, NULL );
11802 #if HAVE_PTHREADS < 7
11803 if( status < 0 ) status = errno;
11805 if( status ) return status;
11807 /* Draft 4 pthreads */
11808 status = pthread_create( &t, pthread_attr_default, task, NULL );
11809 if( status ) return errno;
11811 /* give thread a chance to complete */
11812 /* it should remain joinable and hence detachable */
11815 status = pthread_detach( &t );
11816 if( status ) return errno;
11819 #ifdef HAVE_LINUX_THREADS
11820 pthread_kill_other_threads_np();
11827 if { (eval echo configure:11828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11829 ol_cv_pthread_pthreads=yes
11831 echo "configure: failed program was:" >&5
11832 cat conftest.$ac_ext >&5
11834 ol_cv_pthread_pthreads=no
11838 cat > conftest.$ac_ext <<EOF
11839 #line 11840 "configure"
11840 #include "confdefs.h"
11841 /* pthread test headers */
11842 #include <pthread.h>
11843 #if HAVE_PTHREADS < 7
11847 #define NULL (void*)0
11850 static void *task(p)
11853 return (void *) (p == NULL);
11857 int main(argc, argv)
11862 /* pthread test function */
11863 #ifndef PTHREAD_CREATE_DETACHED
11864 #define PTHREAD_CREATE_DETACHED 1
11868 int detach = PTHREAD_CREATE_DETACHED;
11870 #if HAVE_PTHREADS > 4
11871 /* Final pthreads */
11872 pthread_attr_t attr;
11874 status = pthread_attr_init(&attr);
11875 if( status ) return status;
11877 #if HAVE_PTHREADS < 7
11878 status = pthread_attr_setdetachstate(&attr, &detach);
11879 if( status < 0 ) status = errno;
11881 status = pthread_attr_setdetachstate(&attr, detach);
11883 if( status ) return status;
11884 status = pthread_create( &t, &attr, task, NULL );
11885 #if HAVE_PTHREADS < 7
11886 if( status < 0 ) status = errno;
11888 if( status ) return status;
11890 /* Draft 4 pthreads */
11891 status = pthread_create( &t, pthread_attr_default, task, NULL );
11892 if( status ) return errno;
11894 /* give thread a chance to complete */
11895 /* it should remain joinable and hence detachable */
11898 status = pthread_detach( &t );
11899 if( status ) return errno;
11902 #ifdef HAVE_LINUX_THREADS
11903 pthread_kill_other_threads_np();
11911 if { (eval echo configure:11912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11913 ol_cv_pthread_pthreads=yes
11915 echo "configure: failed program was:" >&5
11916 cat conftest.$ac_ext >&5
11918 ol_cv_pthread_pthreads=no
11929 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
11931 if test $ol_cv_pthread_pthreads = yes ; then
11932 ol_link_pthreads="-pthreads"
11933 ol_link_threads=posix
11937 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
11938 if test "$ol_link_threads" = no ; then
11940 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
11941 echo "configure:11942: checking for pthread link with -mthreads" >&5
11942 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
11943 echo $ac_n "(cached) $ac_c" 1>&6
11948 LIBS="-mthreads $LIBS"
11950 if test "$cross_compiling" = yes; then
11951 cat > conftest.$ac_ext <<EOF
11952 #line 11953 "configure"
11953 #include "confdefs.h"
11954 /* pthread test headers */
11955 #include <pthread.h>
11956 #if HAVE_PTHREADS < 7
11960 #define NULL (void*)0
11963 static void *task(p)
11966 return (void *) (p == NULL);
11971 /* pthread test function */
11972 #ifndef PTHREAD_CREATE_DETACHED
11973 #define PTHREAD_CREATE_DETACHED 1
11977 int detach = PTHREAD_CREATE_DETACHED;
11979 #if HAVE_PTHREADS > 4
11980 /* Final pthreads */
11981 pthread_attr_t attr;
11983 status = pthread_attr_init(&attr);
11984 if( status ) return status;
11986 #if HAVE_PTHREADS < 7
11987 status = pthread_attr_setdetachstate(&attr, &detach);
11988 if( status < 0 ) status = errno;
11990 status = pthread_attr_setdetachstate(&attr, detach);
11992 if( status ) return status;
11993 status = pthread_create( &t, &attr, task, NULL );
11994 #if HAVE_PTHREADS < 7
11995 if( status < 0 ) status = errno;
11997 if( status ) return status;
11999 /* Draft 4 pthreads */
12000 status = pthread_create( &t, pthread_attr_default, task, NULL );
12001 if( status ) return errno;
12003 /* give thread a chance to complete */
12004 /* it should remain joinable and hence detachable */
12007 status = pthread_detach( &t );
12008 if( status ) return errno;
12011 #ifdef HAVE_LINUX_THREADS
12012 pthread_kill_other_threads_np();
12019 if { (eval echo configure:12020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12021 ol_cv_pthread_mthreads=yes
12023 echo "configure: failed program was:" >&5
12024 cat conftest.$ac_ext >&5
12026 ol_cv_pthread_mthreads=no
12030 cat > conftest.$ac_ext <<EOF
12031 #line 12032 "configure"
12032 #include "confdefs.h"
12033 /* pthread test headers */
12034 #include <pthread.h>
12035 #if HAVE_PTHREADS < 7
12039 #define NULL (void*)0
12042 static void *task(p)
12045 return (void *) (p == NULL);
12049 int main(argc, argv)
12054 /* pthread test function */
12055 #ifndef PTHREAD_CREATE_DETACHED
12056 #define PTHREAD_CREATE_DETACHED 1
12060 int detach = PTHREAD_CREATE_DETACHED;
12062 #if HAVE_PTHREADS > 4
12063 /* Final pthreads */
12064 pthread_attr_t attr;
12066 status = pthread_attr_init(&attr);
12067 if( status ) return status;
12069 #if HAVE_PTHREADS < 7
12070 status = pthread_attr_setdetachstate(&attr, &detach);
12071 if( status < 0 ) status = errno;
12073 status = pthread_attr_setdetachstate(&attr, detach);
12075 if( status ) return status;
12076 status = pthread_create( &t, &attr, task, NULL );
12077 #if HAVE_PTHREADS < 7
12078 if( status < 0 ) status = errno;
12080 if( status ) return status;
12082 /* Draft 4 pthreads */
12083 status = pthread_create( &t, pthread_attr_default, task, NULL );
12084 if( status ) return errno;
12086 /* give thread a chance to complete */
12087 /* it should remain joinable and hence detachable */
12090 status = pthread_detach( &t );
12091 if( status ) return errno;
12094 #ifdef HAVE_LINUX_THREADS
12095 pthread_kill_other_threads_np();
12103 if { (eval echo configure:12104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12105 ol_cv_pthread_mthreads=yes
12107 echo "configure: failed program was:" >&5
12108 cat conftest.$ac_ext >&5
12110 ol_cv_pthread_mthreads=no
12121 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
12123 if test $ol_cv_pthread_mthreads = yes ; then
12124 ol_link_pthreads="-mthreads"
12125 ol_link_threads=posix
12129 # Pthread try link: -thread (ol_cv_pthread_thread)
12130 if test "$ol_link_threads" = no ; then
12132 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
12133 echo "configure:12134: checking for pthread link with -thread" >&5
12134 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
12135 echo $ac_n "(cached) $ac_c" 1>&6
12140 LIBS="-thread $LIBS"
12142 if test "$cross_compiling" = yes; then
12143 cat > conftest.$ac_ext <<EOF
12144 #line 12145 "configure"
12145 #include "confdefs.h"
12146 /* pthread test headers */
12147 #include <pthread.h>
12148 #if HAVE_PTHREADS < 7
12152 #define NULL (void*)0
12155 static void *task(p)
12158 return (void *) (p == NULL);
12163 /* pthread test function */
12164 #ifndef PTHREAD_CREATE_DETACHED
12165 #define PTHREAD_CREATE_DETACHED 1
12169 int detach = PTHREAD_CREATE_DETACHED;
12171 #if HAVE_PTHREADS > 4
12172 /* Final pthreads */
12173 pthread_attr_t attr;
12175 status = pthread_attr_init(&attr);
12176 if( status ) return status;
12178 #if HAVE_PTHREADS < 7
12179 status = pthread_attr_setdetachstate(&attr, &detach);
12180 if( status < 0 ) status = errno;
12182 status = pthread_attr_setdetachstate(&attr, detach);
12184 if( status ) return status;
12185 status = pthread_create( &t, &attr, task, NULL );
12186 #if HAVE_PTHREADS < 7
12187 if( status < 0 ) status = errno;
12189 if( status ) return status;
12191 /* Draft 4 pthreads */
12192 status = pthread_create( &t, pthread_attr_default, task, NULL );
12193 if( status ) return errno;
12195 /* give thread a chance to complete */
12196 /* it should remain joinable and hence detachable */
12199 status = pthread_detach( &t );
12200 if( status ) return errno;
12203 #ifdef HAVE_LINUX_THREADS
12204 pthread_kill_other_threads_np();
12211 if { (eval echo configure:12212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12213 ol_cv_pthread_thread=yes
12215 echo "configure: failed program was:" >&5
12216 cat conftest.$ac_ext >&5
12218 ol_cv_pthread_thread=no
12222 cat > conftest.$ac_ext <<EOF
12223 #line 12224 "configure"
12224 #include "confdefs.h"
12225 /* pthread test headers */
12226 #include <pthread.h>
12227 #if HAVE_PTHREADS < 7
12231 #define NULL (void*)0
12234 static void *task(p)
12237 return (void *) (p == NULL);
12241 int main(argc, argv)
12246 /* pthread test function */
12247 #ifndef PTHREAD_CREATE_DETACHED
12248 #define PTHREAD_CREATE_DETACHED 1
12252 int detach = PTHREAD_CREATE_DETACHED;
12254 #if HAVE_PTHREADS > 4
12255 /* Final pthreads */
12256 pthread_attr_t attr;
12258 status = pthread_attr_init(&attr);
12259 if( status ) return status;
12261 #if HAVE_PTHREADS < 7
12262 status = pthread_attr_setdetachstate(&attr, &detach);
12263 if( status < 0 ) status = errno;
12265 status = pthread_attr_setdetachstate(&attr, detach);
12267 if( status ) return status;
12268 status = pthread_create( &t, &attr, task, NULL );
12269 #if HAVE_PTHREADS < 7
12270 if( status < 0 ) status = errno;
12272 if( status ) return status;
12274 /* Draft 4 pthreads */
12275 status = pthread_create( &t, pthread_attr_default, task, NULL );
12276 if( status ) return errno;
12278 /* give thread a chance to complete */
12279 /* it should remain joinable and hence detachable */
12282 status = pthread_detach( &t );
12283 if( status ) return errno;
12286 #ifdef HAVE_LINUX_THREADS
12287 pthread_kill_other_threads_np();
12295 if { (eval echo configure:12296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12297 ol_cv_pthread_thread=yes
12299 echo "configure: failed program was:" >&5
12300 cat conftest.$ac_ext >&5
12302 ol_cv_pthread_thread=no
12313 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
12315 if test $ol_cv_pthread_thread = yes ; then
12316 ol_link_pthreads="-thread"
12317 ol_link_threads=posix
12322 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
12323 if test "$ol_link_threads" = no ; then
12324 # try -lpthread -lmach -lexc -lc_r
12325 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
12326 echo "configure:12327: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
12327 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
12328 echo $ac_n "(cached) $ac_c" 1>&6
12333 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
12335 if test "$cross_compiling" = yes; then
12336 cat > conftest.$ac_ext <<EOF
12337 #line 12338 "configure"
12338 #include "confdefs.h"
12339 /* pthread test headers */
12340 #include <pthread.h>
12341 #if HAVE_PTHREADS < 7
12345 #define NULL (void*)0
12348 static void *task(p)
12351 return (void *) (p == NULL);
12356 /* pthread test function */
12357 #ifndef PTHREAD_CREATE_DETACHED
12358 #define PTHREAD_CREATE_DETACHED 1
12362 int detach = PTHREAD_CREATE_DETACHED;
12364 #if HAVE_PTHREADS > 4
12365 /* Final pthreads */
12366 pthread_attr_t attr;
12368 status = pthread_attr_init(&attr);
12369 if( status ) return status;
12371 #if HAVE_PTHREADS < 7
12372 status = pthread_attr_setdetachstate(&attr, &detach);
12373 if( status < 0 ) status = errno;
12375 status = pthread_attr_setdetachstate(&attr, detach);
12377 if( status ) return status;
12378 status = pthread_create( &t, &attr, task, NULL );
12379 #if HAVE_PTHREADS < 7
12380 if( status < 0 ) status = errno;
12382 if( status ) return status;
12384 /* Draft 4 pthreads */
12385 status = pthread_create( &t, pthread_attr_default, task, NULL );
12386 if( status ) return errno;
12388 /* give thread a chance to complete */
12389 /* it should remain joinable and hence detachable */
12392 status = pthread_detach( &t );
12393 if( status ) return errno;
12396 #ifdef HAVE_LINUX_THREADS
12397 pthread_kill_other_threads_np();
12404 if { (eval echo configure:12405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12406 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
12408 echo "configure: failed program was:" >&5
12409 cat conftest.$ac_ext >&5
12411 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
12415 cat > conftest.$ac_ext <<EOF
12416 #line 12417 "configure"
12417 #include "confdefs.h"
12418 /* pthread test headers */
12419 #include <pthread.h>
12420 #if HAVE_PTHREADS < 7
12424 #define NULL (void*)0
12427 static void *task(p)
12430 return (void *) (p == NULL);
12434 int main(argc, argv)
12439 /* pthread test function */
12440 #ifndef PTHREAD_CREATE_DETACHED
12441 #define PTHREAD_CREATE_DETACHED 1
12445 int detach = PTHREAD_CREATE_DETACHED;
12447 #if HAVE_PTHREADS > 4
12448 /* Final pthreads */
12449 pthread_attr_t attr;
12451 status = pthread_attr_init(&attr);
12452 if( status ) return status;
12454 #if HAVE_PTHREADS < 7
12455 status = pthread_attr_setdetachstate(&attr, &detach);
12456 if( status < 0 ) status = errno;
12458 status = pthread_attr_setdetachstate(&attr, detach);
12460 if( status ) return status;
12461 status = pthread_create( &t, &attr, task, NULL );
12462 #if HAVE_PTHREADS < 7
12463 if( status < 0 ) status = errno;
12465 if( status ) return status;
12467 /* Draft 4 pthreads */
12468 status = pthread_create( &t, pthread_attr_default, task, NULL );
12469 if( status ) return errno;
12471 /* give thread a chance to complete */
12472 /* it should remain joinable and hence detachable */
12475 status = pthread_detach( &t );
12476 if( status ) return errno;
12479 #ifdef HAVE_LINUX_THREADS
12480 pthread_kill_other_threads_np();
12488 if { (eval echo configure:12489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12490 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
12492 echo "configure: failed program was:" >&5
12493 cat conftest.$ac_ext >&5
12495 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
12506 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
12508 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
12509 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
12510 ol_link_threads=posix
12514 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
12515 if test "$ol_link_threads" = no ; then
12516 # try -lpthread -lmach -lexc
12517 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
12518 echo "configure:12519: checking for pthread link with -lpthread -lmach -lexc" >&5
12519 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
12520 echo $ac_n "(cached) $ac_c" 1>&6
12525 LIBS="-lpthread -lmach -lexc $LIBS"
12527 if test "$cross_compiling" = yes; then
12528 cat > conftest.$ac_ext <<EOF
12529 #line 12530 "configure"
12530 #include "confdefs.h"
12531 /* pthread test headers */
12532 #include <pthread.h>
12533 #if HAVE_PTHREADS < 7
12537 #define NULL (void*)0
12540 static void *task(p)
12543 return (void *) (p == NULL);
12548 /* pthread test function */
12549 #ifndef PTHREAD_CREATE_DETACHED
12550 #define PTHREAD_CREATE_DETACHED 1
12554 int detach = PTHREAD_CREATE_DETACHED;
12556 #if HAVE_PTHREADS > 4
12557 /* Final pthreads */
12558 pthread_attr_t attr;
12560 status = pthread_attr_init(&attr);
12561 if( status ) return status;
12563 #if HAVE_PTHREADS < 7
12564 status = pthread_attr_setdetachstate(&attr, &detach);
12565 if( status < 0 ) status = errno;
12567 status = pthread_attr_setdetachstate(&attr, detach);
12569 if( status ) return status;
12570 status = pthread_create( &t, &attr, task, NULL );
12571 #if HAVE_PTHREADS < 7
12572 if( status < 0 ) status = errno;
12574 if( status ) return status;
12576 /* Draft 4 pthreads */
12577 status = pthread_create( &t, pthread_attr_default, task, NULL );
12578 if( status ) return errno;
12580 /* give thread a chance to complete */
12581 /* it should remain joinable and hence detachable */
12584 status = pthread_detach( &t );
12585 if( status ) return errno;
12588 #ifdef HAVE_LINUX_THREADS
12589 pthread_kill_other_threads_np();
12596 if { (eval echo configure:12597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12598 ol_cv_pthread_lpthread_lmach_lexc=yes
12600 echo "configure: failed program was:" >&5
12601 cat conftest.$ac_ext >&5
12603 ol_cv_pthread_lpthread_lmach_lexc=no
12607 cat > conftest.$ac_ext <<EOF
12608 #line 12609 "configure"
12609 #include "confdefs.h"
12610 /* pthread test headers */
12611 #include <pthread.h>
12612 #if HAVE_PTHREADS < 7
12616 #define NULL (void*)0
12619 static void *task(p)
12622 return (void *) (p == NULL);
12626 int main(argc, argv)
12631 /* pthread test function */
12632 #ifndef PTHREAD_CREATE_DETACHED
12633 #define PTHREAD_CREATE_DETACHED 1
12637 int detach = PTHREAD_CREATE_DETACHED;
12639 #if HAVE_PTHREADS > 4
12640 /* Final pthreads */
12641 pthread_attr_t attr;
12643 status = pthread_attr_init(&attr);
12644 if( status ) return status;
12646 #if HAVE_PTHREADS < 7
12647 status = pthread_attr_setdetachstate(&attr, &detach);
12648 if( status < 0 ) status = errno;
12650 status = pthread_attr_setdetachstate(&attr, detach);
12652 if( status ) return status;
12653 status = pthread_create( &t, &attr, task, NULL );
12654 #if HAVE_PTHREADS < 7
12655 if( status < 0 ) status = errno;
12657 if( status ) return status;
12659 /* Draft 4 pthreads */
12660 status = pthread_create( &t, pthread_attr_default, task, NULL );
12661 if( status ) return errno;
12663 /* give thread a chance to complete */
12664 /* it should remain joinable and hence detachable */
12667 status = pthread_detach( &t );
12668 if( status ) return errno;
12671 #ifdef HAVE_LINUX_THREADS
12672 pthread_kill_other_threads_np();
12680 if { (eval echo configure:12681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12682 ol_cv_pthread_lpthread_lmach_lexc=yes
12684 echo "configure: failed program was:" >&5
12685 cat conftest.$ac_ext >&5
12687 ol_cv_pthread_lpthread_lmach_lexc=no
12698 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
12700 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
12701 ol_link_pthreads="-lpthread -lmach -lexc"
12702 ol_link_threads=posix
12707 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
12708 if test "$ol_link_threads" = no ; then
12709 # try -lpthread -Wl,-woff,85
12710 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
12711 echo "configure:12712: checking for pthread link with -lpthread -Wl,-woff,85" >&5
12712 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
12713 echo $ac_n "(cached) $ac_c" 1>&6
12718 LIBS="-lpthread -Wl,-woff,85 $LIBS"
12720 if test "$cross_compiling" = yes; then
12721 cat > conftest.$ac_ext <<EOF
12722 #line 12723 "configure"
12723 #include "confdefs.h"
12724 /* pthread test headers */
12725 #include <pthread.h>
12726 #if HAVE_PTHREADS < 7
12730 #define NULL (void*)0
12733 static void *task(p)
12736 return (void *) (p == NULL);
12741 /* pthread test function */
12742 #ifndef PTHREAD_CREATE_DETACHED
12743 #define PTHREAD_CREATE_DETACHED 1
12747 int detach = PTHREAD_CREATE_DETACHED;
12749 #if HAVE_PTHREADS > 4
12750 /* Final pthreads */
12751 pthread_attr_t attr;
12753 status = pthread_attr_init(&attr);
12754 if( status ) return status;
12756 #if HAVE_PTHREADS < 7
12757 status = pthread_attr_setdetachstate(&attr, &detach);
12758 if( status < 0 ) status = errno;
12760 status = pthread_attr_setdetachstate(&attr, detach);
12762 if( status ) return status;
12763 status = pthread_create( &t, &attr, task, NULL );
12764 #if HAVE_PTHREADS < 7
12765 if( status < 0 ) status = errno;
12767 if( status ) return status;
12769 /* Draft 4 pthreads */
12770 status = pthread_create( &t, pthread_attr_default, task, NULL );
12771 if( status ) return errno;
12773 /* give thread a chance to complete */
12774 /* it should remain joinable and hence detachable */
12777 status = pthread_detach( &t );
12778 if( status ) return errno;
12781 #ifdef HAVE_LINUX_THREADS
12782 pthread_kill_other_threads_np();
12789 if { (eval echo configure:12790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12791 ol_cv_pthread_lib_lpthread_woff=yes
12793 echo "configure: failed program was:" >&5
12794 cat conftest.$ac_ext >&5
12796 ol_cv_pthread_lib_lpthread_woff=no
12800 cat > conftest.$ac_ext <<EOF
12801 #line 12802 "configure"
12802 #include "confdefs.h"
12803 /* pthread test headers */
12804 #include <pthread.h>
12805 #if HAVE_PTHREADS < 7
12809 #define NULL (void*)0
12812 static void *task(p)
12815 return (void *) (p == NULL);
12819 int main(argc, argv)
12824 /* pthread test function */
12825 #ifndef PTHREAD_CREATE_DETACHED
12826 #define PTHREAD_CREATE_DETACHED 1
12830 int detach = PTHREAD_CREATE_DETACHED;
12832 #if HAVE_PTHREADS > 4
12833 /* Final pthreads */
12834 pthread_attr_t attr;
12836 status = pthread_attr_init(&attr);
12837 if( status ) return status;
12839 #if HAVE_PTHREADS < 7
12840 status = pthread_attr_setdetachstate(&attr, &detach);
12841 if( status < 0 ) status = errno;
12843 status = pthread_attr_setdetachstate(&attr, detach);
12845 if( status ) return status;
12846 status = pthread_create( &t, &attr, task, NULL );
12847 #if HAVE_PTHREADS < 7
12848 if( status < 0 ) status = errno;
12850 if( status ) return status;
12852 /* Draft 4 pthreads */
12853 status = pthread_create( &t, pthread_attr_default, task, NULL );
12854 if( status ) return errno;
12856 /* give thread a chance to complete */
12857 /* it should remain joinable and hence detachable */
12860 status = pthread_detach( &t );
12861 if( status ) return errno;
12864 #ifdef HAVE_LINUX_THREADS
12865 pthread_kill_other_threads_np();
12873 if { (eval echo configure:12874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12875 ol_cv_pthread_lib_lpthread_woff=yes
12877 echo "configure: failed program was:" >&5
12878 cat conftest.$ac_ext >&5
12880 ol_cv_pthread_lib_lpthread_woff=no
12891 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
12893 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
12894 ol_link_pthreads="-lpthread -Wl,-woff,85"
12895 ol_link_threads=posix
12900 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
12901 if test "$ol_link_threads" = no ; then
12903 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
12904 echo "configure:12905: checking for pthread link with -lpthread" >&5
12905 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
12906 echo $ac_n "(cached) $ac_c" 1>&6
12911 LIBS="-lpthread $LIBS"
12913 if test "$cross_compiling" = yes; then
12914 cat > conftest.$ac_ext <<EOF
12915 #line 12916 "configure"
12916 #include "confdefs.h"
12917 /* pthread test headers */
12918 #include <pthread.h>
12919 #if HAVE_PTHREADS < 7
12923 #define NULL (void*)0
12926 static void *task(p)
12929 return (void *) (p == NULL);
12934 /* pthread test function */
12935 #ifndef PTHREAD_CREATE_DETACHED
12936 #define PTHREAD_CREATE_DETACHED 1
12940 int detach = PTHREAD_CREATE_DETACHED;
12942 #if HAVE_PTHREADS > 4
12943 /* Final pthreads */
12944 pthread_attr_t attr;
12946 status = pthread_attr_init(&attr);
12947 if( status ) return status;
12949 #if HAVE_PTHREADS < 7
12950 status = pthread_attr_setdetachstate(&attr, &detach);
12951 if( status < 0 ) status = errno;
12953 status = pthread_attr_setdetachstate(&attr, detach);
12955 if( status ) return status;
12956 status = pthread_create( &t, &attr, task, NULL );
12957 #if HAVE_PTHREADS < 7
12958 if( status < 0 ) status = errno;
12960 if( status ) return status;
12962 /* Draft 4 pthreads */
12963 status = pthread_create( &t, pthread_attr_default, task, NULL );
12964 if( status ) return errno;
12966 /* give thread a chance to complete */
12967 /* it should remain joinable and hence detachable */
12970 status = pthread_detach( &t );
12971 if( status ) return errno;
12974 #ifdef HAVE_LINUX_THREADS
12975 pthread_kill_other_threads_np();
12982 if { (eval echo configure:12983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12984 ol_cv_pthread_lpthread=yes
12986 echo "configure: failed program was:" >&5
12987 cat conftest.$ac_ext >&5
12989 ol_cv_pthread_lpthread=no
12993 cat > conftest.$ac_ext <<EOF
12994 #line 12995 "configure"
12995 #include "confdefs.h"
12996 /* pthread test headers */
12997 #include <pthread.h>
12998 #if HAVE_PTHREADS < 7
13002 #define NULL (void*)0
13005 static void *task(p)
13008 return (void *) (p == NULL);
13012 int main(argc, argv)
13017 /* pthread test function */
13018 #ifndef PTHREAD_CREATE_DETACHED
13019 #define PTHREAD_CREATE_DETACHED 1
13023 int detach = PTHREAD_CREATE_DETACHED;
13025 #if HAVE_PTHREADS > 4
13026 /* Final pthreads */
13027 pthread_attr_t attr;
13029 status = pthread_attr_init(&attr);
13030 if( status ) return status;
13032 #if HAVE_PTHREADS < 7
13033 status = pthread_attr_setdetachstate(&attr, &detach);
13034 if( status < 0 ) status = errno;
13036 status = pthread_attr_setdetachstate(&attr, detach);
13038 if( status ) return status;
13039 status = pthread_create( &t, &attr, task, NULL );
13040 #if HAVE_PTHREADS < 7
13041 if( status < 0 ) status = errno;
13043 if( status ) return status;
13045 /* Draft 4 pthreads */
13046 status = pthread_create( &t, pthread_attr_default, task, NULL );
13047 if( status ) return errno;
13049 /* give thread a chance to complete */
13050 /* it should remain joinable and hence detachable */
13053 status = pthread_detach( &t );
13054 if( status ) return errno;
13057 #ifdef HAVE_LINUX_THREADS
13058 pthread_kill_other_threads_np();
13066 if { (eval echo configure:13067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13068 ol_cv_pthread_lpthread=yes
13070 echo "configure: failed program was:" >&5
13071 cat conftest.$ac_ext >&5
13073 ol_cv_pthread_lpthread=no
13084 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
13086 if test $ol_cv_pthread_lpthread = yes ; then
13087 ol_link_pthreads="-lpthread"
13088 ol_link_threads=posix
13092 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
13093 if test "$ol_link_threads" = no ; then
13095 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
13096 echo "configure:13097: checking for pthread link with -lc_r" >&5
13097 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
13098 echo $ac_n "(cached) $ac_c" 1>&6
13105 if test "$cross_compiling" = yes; then
13106 cat > conftest.$ac_ext <<EOF
13107 #line 13108 "configure"
13108 #include "confdefs.h"
13109 /* pthread test headers */
13110 #include <pthread.h>
13111 #if HAVE_PTHREADS < 7
13115 #define NULL (void*)0
13118 static void *task(p)
13121 return (void *) (p == NULL);
13126 /* pthread test function */
13127 #ifndef PTHREAD_CREATE_DETACHED
13128 #define PTHREAD_CREATE_DETACHED 1
13132 int detach = PTHREAD_CREATE_DETACHED;
13134 #if HAVE_PTHREADS > 4
13135 /* Final pthreads */
13136 pthread_attr_t attr;
13138 status = pthread_attr_init(&attr);
13139 if( status ) return status;
13141 #if HAVE_PTHREADS < 7
13142 status = pthread_attr_setdetachstate(&attr, &detach);
13143 if( status < 0 ) status = errno;
13145 status = pthread_attr_setdetachstate(&attr, detach);
13147 if( status ) return status;
13148 status = pthread_create( &t, &attr, task, NULL );
13149 #if HAVE_PTHREADS < 7
13150 if( status < 0 ) status = errno;
13152 if( status ) return status;
13154 /* Draft 4 pthreads */
13155 status = pthread_create( &t, pthread_attr_default, task, NULL );
13156 if( status ) return errno;
13158 /* give thread a chance to complete */
13159 /* it should remain joinable and hence detachable */
13162 status = pthread_detach( &t );
13163 if( status ) return errno;
13166 #ifdef HAVE_LINUX_THREADS
13167 pthread_kill_other_threads_np();
13174 if { (eval echo configure:13175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13176 ol_cv_pthread_lc_r=yes
13178 echo "configure: failed program was:" >&5
13179 cat conftest.$ac_ext >&5
13181 ol_cv_pthread_lc_r=no
13185 cat > conftest.$ac_ext <<EOF
13186 #line 13187 "configure"
13187 #include "confdefs.h"
13188 /* pthread test headers */
13189 #include <pthread.h>
13190 #if HAVE_PTHREADS < 7
13194 #define NULL (void*)0
13197 static void *task(p)
13200 return (void *) (p == NULL);
13204 int main(argc, argv)
13209 /* pthread test function */
13210 #ifndef PTHREAD_CREATE_DETACHED
13211 #define PTHREAD_CREATE_DETACHED 1
13215 int detach = PTHREAD_CREATE_DETACHED;
13217 #if HAVE_PTHREADS > 4
13218 /* Final pthreads */
13219 pthread_attr_t attr;
13221 status = pthread_attr_init(&attr);
13222 if( status ) return status;
13224 #if HAVE_PTHREADS < 7
13225 status = pthread_attr_setdetachstate(&attr, &detach);
13226 if( status < 0 ) status = errno;
13228 status = pthread_attr_setdetachstate(&attr, detach);
13230 if( status ) return status;
13231 status = pthread_create( &t, &attr, task, NULL );
13232 #if HAVE_PTHREADS < 7
13233 if( status < 0 ) status = errno;
13235 if( status ) return status;
13237 /* Draft 4 pthreads */
13238 status = pthread_create( &t, pthread_attr_default, task, NULL );
13239 if( status ) return errno;
13241 /* give thread a chance to complete */
13242 /* it should remain joinable and hence detachable */
13245 status = pthread_detach( &t );
13246 if( status ) return errno;
13249 #ifdef HAVE_LINUX_THREADS
13250 pthread_kill_other_threads_np();
13258 if { (eval echo configure:13259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13260 ol_cv_pthread_lc_r=yes
13262 echo "configure: failed program was:" >&5
13263 cat conftest.$ac_ext >&5
13265 ol_cv_pthread_lc_r=no
13276 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
13278 if test $ol_cv_pthread_lc_r = yes ; then
13279 ol_link_pthreads="-lc_r"
13280 ol_link_threads=posix
13285 # Pthread try link: -threads (ol_cv_pthread_threads)
13286 if test "$ol_link_threads" = no ; then
13288 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
13289 echo "configure:13290: checking for pthread link with -threads" >&5
13290 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
13291 echo $ac_n "(cached) $ac_c" 1>&6
13296 LIBS="-threads $LIBS"
13298 if test "$cross_compiling" = yes; then
13299 cat > conftest.$ac_ext <<EOF
13300 #line 13301 "configure"
13301 #include "confdefs.h"
13302 /* pthread test headers */
13303 #include <pthread.h>
13304 #if HAVE_PTHREADS < 7
13308 #define NULL (void*)0
13311 static void *task(p)
13314 return (void *) (p == NULL);
13319 /* pthread test function */
13320 #ifndef PTHREAD_CREATE_DETACHED
13321 #define PTHREAD_CREATE_DETACHED 1
13325 int detach = PTHREAD_CREATE_DETACHED;
13327 #if HAVE_PTHREADS > 4
13328 /* Final pthreads */
13329 pthread_attr_t attr;
13331 status = pthread_attr_init(&attr);
13332 if( status ) return status;
13334 #if HAVE_PTHREADS < 7
13335 status = pthread_attr_setdetachstate(&attr, &detach);
13336 if( status < 0 ) status = errno;
13338 status = pthread_attr_setdetachstate(&attr, detach);
13340 if( status ) return status;
13341 status = pthread_create( &t, &attr, task, NULL );
13342 #if HAVE_PTHREADS < 7
13343 if( status < 0 ) status = errno;
13345 if( status ) return status;
13347 /* Draft 4 pthreads */
13348 status = pthread_create( &t, pthread_attr_default, task, NULL );
13349 if( status ) return errno;
13351 /* give thread a chance to complete */
13352 /* it should remain joinable and hence detachable */
13355 status = pthread_detach( &t );
13356 if( status ) return errno;
13359 #ifdef HAVE_LINUX_THREADS
13360 pthread_kill_other_threads_np();
13367 if { (eval echo configure:13368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13369 ol_cv_pthread_threads=yes
13371 echo "configure: failed program was:" >&5
13372 cat conftest.$ac_ext >&5
13374 ol_cv_pthread_threads=no
13378 cat > conftest.$ac_ext <<EOF
13379 #line 13380 "configure"
13380 #include "confdefs.h"
13381 /* pthread test headers */
13382 #include <pthread.h>
13383 #if HAVE_PTHREADS < 7
13387 #define NULL (void*)0
13390 static void *task(p)
13393 return (void *) (p == NULL);
13397 int main(argc, argv)
13402 /* pthread test function */
13403 #ifndef PTHREAD_CREATE_DETACHED
13404 #define PTHREAD_CREATE_DETACHED 1
13408 int detach = PTHREAD_CREATE_DETACHED;
13410 #if HAVE_PTHREADS > 4
13411 /* Final pthreads */
13412 pthread_attr_t attr;
13414 status = pthread_attr_init(&attr);
13415 if( status ) return status;
13417 #if HAVE_PTHREADS < 7
13418 status = pthread_attr_setdetachstate(&attr, &detach);
13419 if( status < 0 ) status = errno;
13421 status = pthread_attr_setdetachstate(&attr, detach);
13423 if( status ) return status;
13424 status = pthread_create( &t, &attr, task, NULL );
13425 #if HAVE_PTHREADS < 7
13426 if( status < 0 ) status = errno;
13428 if( status ) return status;
13430 /* Draft 4 pthreads */
13431 status = pthread_create( &t, pthread_attr_default, task, NULL );
13432 if( status ) return errno;
13434 /* give thread a chance to complete */
13435 /* it should remain joinable and hence detachable */
13438 status = pthread_detach( &t );
13439 if( status ) return errno;
13442 #ifdef HAVE_LINUX_THREADS
13443 pthread_kill_other_threads_np();
13451 if { (eval echo configure:13452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13453 ol_cv_pthread_threads=yes
13455 echo "configure: failed program was:" >&5
13456 cat conftest.$ac_ext >&5
13458 ol_cv_pthread_threads=no
13469 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
13471 if test $ol_cv_pthread_threads = yes ; then
13472 ol_link_pthreads="-threads"
13473 ol_link_threads=posix
13478 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
13479 if test "$ol_link_threads" = no ; then
13480 # try -lpthreads -lmach -lexc -lc_r
13481 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
13482 echo "configure:13483: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
13483 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
13484 echo $ac_n "(cached) $ac_c" 1>&6
13489 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
13491 if test "$cross_compiling" = yes; then
13492 cat > conftest.$ac_ext <<EOF
13493 #line 13494 "configure"
13494 #include "confdefs.h"
13495 /* pthread test headers */
13496 #include <pthread.h>
13497 #if HAVE_PTHREADS < 7
13501 #define NULL (void*)0
13504 static void *task(p)
13507 return (void *) (p == NULL);
13512 /* pthread test function */
13513 #ifndef PTHREAD_CREATE_DETACHED
13514 #define PTHREAD_CREATE_DETACHED 1
13518 int detach = PTHREAD_CREATE_DETACHED;
13520 #if HAVE_PTHREADS > 4
13521 /* Final pthreads */
13522 pthread_attr_t attr;
13524 status = pthread_attr_init(&attr);
13525 if( status ) return status;
13527 #if HAVE_PTHREADS < 7
13528 status = pthread_attr_setdetachstate(&attr, &detach);
13529 if( status < 0 ) status = errno;
13531 status = pthread_attr_setdetachstate(&attr, detach);
13533 if( status ) return status;
13534 status = pthread_create( &t, &attr, task, NULL );
13535 #if HAVE_PTHREADS < 7
13536 if( status < 0 ) status = errno;
13538 if( status ) return status;
13540 /* Draft 4 pthreads */
13541 status = pthread_create( &t, pthread_attr_default, task, NULL );
13542 if( status ) return errno;
13544 /* give thread a chance to complete */
13545 /* it should remain joinable and hence detachable */
13548 status = pthread_detach( &t );
13549 if( status ) return errno;
13552 #ifdef HAVE_LINUX_THREADS
13553 pthread_kill_other_threads_np();
13560 if { (eval echo configure:13561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13562 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
13564 echo "configure: failed program was:" >&5
13565 cat conftest.$ac_ext >&5
13567 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
13571 cat > conftest.$ac_ext <<EOF
13572 #line 13573 "configure"
13573 #include "confdefs.h"
13574 /* pthread test headers */
13575 #include <pthread.h>
13576 #if HAVE_PTHREADS < 7
13580 #define NULL (void*)0
13583 static void *task(p)
13586 return (void *) (p == NULL);
13590 int main(argc, argv)
13595 /* pthread test function */
13596 #ifndef PTHREAD_CREATE_DETACHED
13597 #define PTHREAD_CREATE_DETACHED 1
13601 int detach = PTHREAD_CREATE_DETACHED;
13603 #if HAVE_PTHREADS > 4
13604 /* Final pthreads */
13605 pthread_attr_t attr;
13607 status = pthread_attr_init(&attr);
13608 if( status ) return status;
13610 #if HAVE_PTHREADS < 7
13611 status = pthread_attr_setdetachstate(&attr, &detach);
13612 if( status < 0 ) status = errno;
13614 status = pthread_attr_setdetachstate(&attr, detach);
13616 if( status ) return status;
13617 status = pthread_create( &t, &attr, task, NULL );
13618 #if HAVE_PTHREADS < 7
13619 if( status < 0 ) status = errno;
13621 if( status ) return status;
13623 /* Draft 4 pthreads */
13624 status = pthread_create( &t, pthread_attr_default, task, NULL );
13625 if( status ) return errno;
13627 /* give thread a chance to complete */
13628 /* it should remain joinable and hence detachable */
13631 status = pthread_detach( &t );
13632 if( status ) return errno;
13635 #ifdef HAVE_LINUX_THREADS
13636 pthread_kill_other_threads_np();
13644 if { (eval echo configure:13645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13646 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
13648 echo "configure: failed program was:" >&5
13649 cat conftest.$ac_ext >&5
13651 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
13662 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
13664 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
13665 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
13666 ol_link_threads=posix
13670 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
13671 if test "$ol_link_threads" = no ; then
13672 # try -lpthreads -lmach -lexc
13673 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
13674 echo "configure:13675: checking for pthread link with -lpthreads -lmach -lexc" >&5
13675 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
13676 echo $ac_n "(cached) $ac_c" 1>&6
13681 LIBS="-lpthreads -lmach -lexc $LIBS"
13683 if test "$cross_compiling" = yes; then
13684 cat > conftest.$ac_ext <<EOF
13685 #line 13686 "configure"
13686 #include "confdefs.h"
13687 /* pthread test headers */
13688 #include <pthread.h>
13689 #if HAVE_PTHREADS < 7
13693 #define NULL (void*)0
13696 static void *task(p)
13699 return (void *) (p == NULL);
13704 /* pthread test function */
13705 #ifndef PTHREAD_CREATE_DETACHED
13706 #define PTHREAD_CREATE_DETACHED 1
13710 int detach = PTHREAD_CREATE_DETACHED;
13712 #if HAVE_PTHREADS > 4
13713 /* Final pthreads */
13714 pthread_attr_t attr;
13716 status = pthread_attr_init(&attr);
13717 if( status ) return status;
13719 #if HAVE_PTHREADS < 7
13720 status = pthread_attr_setdetachstate(&attr, &detach);
13721 if( status < 0 ) status = errno;
13723 status = pthread_attr_setdetachstate(&attr, detach);
13725 if( status ) return status;
13726 status = pthread_create( &t, &attr, task, NULL );
13727 #if HAVE_PTHREADS < 7
13728 if( status < 0 ) status = errno;
13730 if( status ) return status;
13732 /* Draft 4 pthreads */
13733 status = pthread_create( &t, pthread_attr_default, task, NULL );
13734 if( status ) return errno;
13736 /* give thread a chance to complete */
13737 /* it should remain joinable and hence detachable */
13740 status = pthread_detach( &t );
13741 if( status ) return errno;
13744 #ifdef HAVE_LINUX_THREADS
13745 pthread_kill_other_threads_np();
13752 if { (eval echo configure:13753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13754 ol_cv_pthread_lpthreads_lmach_lexc=yes
13756 echo "configure: failed program was:" >&5
13757 cat conftest.$ac_ext >&5
13759 ol_cv_pthread_lpthreads_lmach_lexc=no
13763 cat > conftest.$ac_ext <<EOF
13764 #line 13765 "configure"
13765 #include "confdefs.h"
13766 /* pthread test headers */
13767 #include <pthread.h>
13768 #if HAVE_PTHREADS < 7
13772 #define NULL (void*)0
13775 static void *task(p)
13778 return (void *) (p == NULL);
13782 int main(argc, argv)
13787 /* pthread test function */
13788 #ifndef PTHREAD_CREATE_DETACHED
13789 #define PTHREAD_CREATE_DETACHED 1
13793 int detach = PTHREAD_CREATE_DETACHED;
13795 #if HAVE_PTHREADS > 4
13796 /* Final pthreads */
13797 pthread_attr_t attr;
13799 status = pthread_attr_init(&attr);
13800 if( status ) return status;
13802 #if HAVE_PTHREADS < 7
13803 status = pthread_attr_setdetachstate(&attr, &detach);
13804 if( status < 0 ) status = errno;
13806 status = pthread_attr_setdetachstate(&attr, detach);
13808 if( status ) return status;
13809 status = pthread_create( &t, &attr, task, NULL );
13810 #if HAVE_PTHREADS < 7
13811 if( status < 0 ) status = errno;
13813 if( status ) return status;
13815 /* Draft 4 pthreads */
13816 status = pthread_create( &t, pthread_attr_default, task, NULL );
13817 if( status ) return errno;
13819 /* give thread a chance to complete */
13820 /* it should remain joinable and hence detachable */
13823 status = pthread_detach( &t );
13824 if( status ) return errno;
13827 #ifdef HAVE_LINUX_THREADS
13828 pthread_kill_other_threads_np();
13836 if { (eval echo configure:13837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13838 ol_cv_pthread_lpthreads_lmach_lexc=yes
13840 echo "configure: failed program was:" >&5
13841 cat conftest.$ac_ext >&5
13843 ol_cv_pthread_lpthreads_lmach_lexc=no
13854 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
13856 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
13857 ol_link_pthreads="-lpthreads -lmach -lexc"
13858 ol_link_threads=posix
13862 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
13863 if test "$ol_link_threads" = no ; then
13864 # try -lpthreads -lexc
13865 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
13866 echo "configure:13867: checking for pthread link with -lpthreads -lexc" >&5
13867 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
13868 echo $ac_n "(cached) $ac_c" 1>&6
13873 LIBS="-lpthreads -lexc $LIBS"
13875 if test "$cross_compiling" = yes; then
13876 cat > conftest.$ac_ext <<EOF
13877 #line 13878 "configure"
13878 #include "confdefs.h"
13879 /* pthread test headers */
13880 #include <pthread.h>
13881 #if HAVE_PTHREADS < 7
13885 #define NULL (void*)0
13888 static void *task(p)
13891 return (void *) (p == NULL);
13896 /* pthread test function */
13897 #ifndef PTHREAD_CREATE_DETACHED
13898 #define PTHREAD_CREATE_DETACHED 1
13902 int detach = PTHREAD_CREATE_DETACHED;
13904 #if HAVE_PTHREADS > 4
13905 /* Final pthreads */
13906 pthread_attr_t attr;
13908 status = pthread_attr_init(&attr);
13909 if( status ) return status;
13911 #if HAVE_PTHREADS < 7
13912 status = pthread_attr_setdetachstate(&attr, &detach);
13913 if( status < 0 ) status = errno;
13915 status = pthread_attr_setdetachstate(&attr, detach);
13917 if( status ) return status;
13918 status = pthread_create( &t, &attr, task, NULL );
13919 #if HAVE_PTHREADS < 7
13920 if( status < 0 ) status = errno;
13922 if( status ) return status;
13924 /* Draft 4 pthreads */
13925 status = pthread_create( &t, pthread_attr_default, task, NULL );
13926 if( status ) return errno;
13928 /* give thread a chance to complete */
13929 /* it should remain joinable and hence detachable */
13932 status = pthread_detach( &t );
13933 if( status ) return errno;
13936 #ifdef HAVE_LINUX_THREADS
13937 pthread_kill_other_threads_np();
13944 if { (eval echo configure:13945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13946 ol_cv_pthread_lpthreads_lexc=yes
13948 echo "configure: failed program was:" >&5
13949 cat conftest.$ac_ext >&5
13951 ol_cv_pthread_lpthreads_lexc=no
13955 cat > conftest.$ac_ext <<EOF
13956 #line 13957 "configure"
13957 #include "confdefs.h"
13958 /* pthread test headers */
13959 #include <pthread.h>
13960 #if HAVE_PTHREADS < 7
13964 #define NULL (void*)0
13967 static void *task(p)
13970 return (void *) (p == NULL);
13974 int main(argc, argv)
13979 /* pthread test function */
13980 #ifndef PTHREAD_CREATE_DETACHED
13981 #define PTHREAD_CREATE_DETACHED 1
13985 int detach = PTHREAD_CREATE_DETACHED;
13987 #if HAVE_PTHREADS > 4
13988 /* Final pthreads */
13989 pthread_attr_t attr;
13991 status = pthread_attr_init(&attr);
13992 if( status ) return status;
13994 #if HAVE_PTHREADS < 7
13995 status = pthread_attr_setdetachstate(&attr, &detach);
13996 if( status < 0 ) status = errno;
13998 status = pthread_attr_setdetachstate(&attr, detach);
14000 if( status ) return status;
14001 status = pthread_create( &t, &attr, task, NULL );
14002 #if HAVE_PTHREADS < 7
14003 if( status < 0 ) status = errno;
14005 if( status ) return status;
14007 /* Draft 4 pthreads */
14008 status = pthread_create( &t, pthread_attr_default, task, NULL );
14009 if( status ) return errno;
14011 /* give thread a chance to complete */
14012 /* it should remain joinable and hence detachable */
14015 status = pthread_detach( &t );
14016 if( status ) return errno;
14019 #ifdef HAVE_LINUX_THREADS
14020 pthread_kill_other_threads_np();
14028 if { (eval echo configure:14029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14030 ol_cv_pthread_lpthreads_lexc=yes
14032 echo "configure: failed program was:" >&5
14033 cat conftest.$ac_ext >&5
14035 ol_cv_pthread_lpthreads_lexc=no
14046 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
14048 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
14049 ol_link_pthreads="-lpthreads -lexc"
14050 ol_link_threads=posix
14055 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
14056 if test "$ol_link_threads" = no ; then
14058 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
14059 echo "configure:14060: checking for pthread link with -lpthreads" >&5
14060 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
14061 echo $ac_n "(cached) $ac_c" 1>&6
14066 LIBS="-lpthreads $LIBS"
14068 if test "$cross_compiling" = yes; then
14069 cat > conftest.$ac_ext <<EOF
14070 #line 14071 "configure"
14071 #include "confdefs.h"
14072 /* pthread test headers */
14073 #include <pthread.h>
14074 #if HAVE_PTHREADS < 7
14078 #define NULL (void*)0
14081 static void *task(p)
14084 return (void *) (p == NULL);
14089 /* pthread test function */
14090 #ifndef PTHREAD_CREATE_DETACHED
14091 #define PTHREAD_CREATE_DETACHED 1
14095 int detach = PTHREAD_CREATE_DETACHED;
14097 #if HAVE_PTHREADS > 4
14098 /* Final pthreads */
14099 pthread_attr_t attr;
14101 status = pthread_attr_init(&attr);
14102 if( status ) return status;
14104 #if HAVE_PTHREADS < 7
14105 status = pthread_attr_setdetachstate(&attr, &detach);
14106 if( status < 0 ) status = errno;
14108 status = pthread_attr_setdetachstate(&attr, detach);
14110 if( status ) return status;
14111 status = pthread_create( &t, &attr, task, NULL );
14112 #if HAVE_PTHREADS < 7
14113 if( status < 0 ) status = errno;
14115 if( status ) return status;
14117 /* Draft 4 pthreads */
14118 status = pthread_create( &t, pthread_attr_default, task, NULL );
14119 if( status ) return errno;
14121 /* give thread a chance to complete */
14122 /* it should remain joinable and hence detachable */
14125 status = pthread_detach( &t );
14126 if( status ) return errno;
14129 #ifdef HAVE_LINUX_THREADS
14130 pthread_kill_other_threads_np();
14137 if { (eval echo configure:14138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14139 ol_cv_pthread_lib_lpthreads=yes
14141 echo "configure: failed program was:" >&5
14142 cat conftest.$ac_ext >&5
14144 ol_cv_pthread_lib_lpthreads=no
14148 cat > conftest.$ac_ext <<EOF
14149 #line 14150 "configure"
14150 #include "confdefs.h"
14151 /* pthread test headers */
14152 #include <pthread.h>
14153 #if HAVE_PTHREADS < 7
14157 #define NULL (void*)0
14160 static void *task(p)
14163 return (void *) (p == NULL);
14167 int main(argc, argv)
14172 /* pthread test function */
14173 #ifndef PTHREAD_CREATE_DETACHED
14174 #define PTHREAD_CREATE_DETACHED 1
14178 int detach = PTHREAD_CREATE_DETACHED;
14180 #if HAVE_PTHREADS > 4
14181 /* Final pthreads */
14182 pthread_attr_t attr;
14184 status = pthread_attr_init(&attr);
14185 if( status ) return status;
14187 #if HAVE_PTHREADS < 7
14188 status = pthread_attr_setdetachstate(&attr, &detach);
14189 if( status < 0 ) status = errno;
14191 status = pthread_attr_setdetachstate(&attr, detach);
14193 if( status ) return status;
14194 status = pthread_create( &t, &attr, task, NULL );
14195 #if HAVE_PTHREADS < 7
14196 if( status < 0 ) status = errno;
14198 if( status ) return status;
14200 /* Draft 4 pthreads */
14201 status = pthread_create( &t, pthread_attr_default, task, NULL );
14202 if( status ) return errno;
14204 /* give thread a chance to complete */
14205 /* it should remain joinable and hence detachable */
14208 status = pthread_detach( &t );
14209 if( status ) return errno;
14212 #ifdef HAVE_LINUX_THREADS
14213 pthread_kill_other_threads_np();
14221 if { (eval echo configure:14222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14223 ol_cv_pthread_lib_lpthreads=yes
14225 echo "configure: failed program was:" >&5
14226 cat conftest.$ac_ext >&5
14228 ol_cv_pthread_lib_lpthreads=no
14239 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
14241 if test $ol_cv_pthread_lib_lpthreads = yes ; then
14242 ol_link_pthreads="-lpthreads"
14243 ol_link_threads=posix
14248 if test $ol_link_threads != no ; then
14249 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
14251 save_CPPFLAGS="$CPPFLAGS"
14253 LIBS="$LTHREAD_LIBS $LIBS"
14255 for ac_func in sched_yield pthread_yield thr_yield
14257 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14258 echo "configure:14259: checking for $ac_func" >&5
14259 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14260 echo $ac_n "(cached) $ac_c" 1>&6
14262 cat > conftest.$ac_ext <<EOF
14263 #line 14264 "configure"
14264 #include "confdefs.h"
14265 /* System header to define __stub macros and hopefully few prototypes,
14266 which can conflict with char $ac_func(); below. */
14267 #include <assert.h>
14268 /* Override any gcc2 internal prototype to avoid an error. */
14269 /* We use char because int might match the return type of a gcc2
14270 builtin and then its argument prototype would still apply. */
14276 /* The GNU C library defines this for functions which it implements
14277 to always fail with ENOSYS. Some functions are actually named
14278 something starting with __ and the normal name is an alias. */
14279 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14287 if { (eval echo configure:14288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14289 eval "ac_cv_func_$ac_func=yes"
14291 echo "configure: failed program was:" >&5
14292 cat conftest.$ac_ext >&5
14294 eval "ac_cv_func_$ac_func=no"
14299 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14300 echo "$ac_t""yes" 1>&6
14301 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14302 cat >> confdefs.h <<EOF
14303 #define $ac_tr_func 1
14307 echo "$ac_t""no" 1>&6
14312 if test $ac_cv_func_sched_yield = no -a \
14313 $ac_cv_func_pthread_yield = no -a \
14314 $ac_cv_func_thr_yield = no ; then
14315 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
14316 echo "configure:14317: checking for sched_yield in -lrt" >&5
14317 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
14318 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14319 echo $ac_n "(cached) $ac_c" 1>&6
14321 ac_save_LIBS="$LIBS"
14323 cat > conftest.$ac_ext <<EOF
14324 #line 14325 "configure"
14325 #include "confdefs.h"
14326 /* Override any gcc2 internal prototype to avoid an error. */
14327 /* We use char because int might match the return type of a gcc2
14328 builtin and then its argument prototype would still apply. */
14329 char sched_yield();
14335 if { (eval echo configure:14336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14337 eval "ac_cv_lib_$ac_lib_var=yes"
14339 echo "configure: failed program was:" >&5
14340 cat conftest.$ac_ext >&5
14342 eval "ac_cv_lib_$ac_lib_var=no"
14345 LIBS="$ac_save_LIBS"
14348 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14349 echo "$ac_t""yes" 1>&6
14350 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
14351 cat >> confdefs.h <<\EOF
14352 #define HAVE_SCHED_YIELD 1
14355 ac_cv_func_sched_yield=yes
14357 echo "$ac_t""no" 1>&6
14358 ac_cv_func_sched_yield=no
14362 if test $ac_cv_func_sched_yield = no -a \
14363 $ac_cv_func_pthread_yield = no -a \
14364 "$ac_cv_func_thr_yield" = no ; then
14365 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
14368 for ac_func in pthread_kill pthread_rwlock_destroy
14370 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14371 echo "configure:14372: checking for $ac_func" >&5
14372 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14373 echo $ac_n "(cached) $ac_c" 1>&6
14375 cat > conftest.$ac_ext <<EOF
14376 #line 14377 "configure"
14377 #include "confdefs.h"
14378 /* System header to define __stub macros and hopefully few prototypes,
14379 which can conflict with char $ac_func(); below. */
14380 #include <assert.h>
14381 /* Override any gcc2 internal prototype to avoid an error. */
14382 /* We use char because int might match the return type of a gcc2
14383 builtin and then its argument prototype would still apply. */
14389 /* The GNU C library defines this for functions which it implements
14390 to always fail with ENOSYS. Some functions are actually named
14391 something starting with __ and the normal name is an alias. */
14392 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14400 if { (eval echo configure:14401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14402 eval "ac_cv_func_$ac_func=yes"
14404 echo "configure: failed program was:" >&5
14405 cat conftest.$ac_ext >&5
14407 eval "ac_cv_func_$ac_func=no"
14412 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14413 echo "$ac_t""yes" 1>&6
14414 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14415 cat >> confdefs.h <<EOF
14416 #define $ac_tr_func 1
14420 echo "$ac_t""no" 1>&6
14425 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
14426 echo "configure:14427: checking for pthread_detach with <pthread.h>" >&5
14427 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
14428 echo $ac_n "(cached) $ac_c" 1>&6
14431 cat > conftest.$ac_ext <<EOF
14432 #line 14433 "configure"
14433 #include "confdefs.h"
14435 #include <pthread.h>
14437 #define NULL (void*)0
14441 pthread_detach(NULL);
14444 if { (eval echo configure:14445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14446 ol_cv_func_pthread_detach=yes
14448 echo "configure: failed program was:" >&5
14449 cat conftest.$ac_ext >&5
14451 ol_cv_func_pthread_detach=no
14457 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
14459 if test $ol_cv_func_pthread_detach = no ; then
14460 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
14463 cat >> confdefs.h <<\EOF
14464 #define HAVE_PTHREAD_DETACH 1
14469 pthread_setconcurrency \
14470 pthread_getconcurrency \
14471 thr_setconcurrency \
14472 thr_getconcurrency \
14475 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14476 echo "configure:14477: checking for $ac_func" >&5
14477 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14478 echo $ac_n "(cached) $ac_c" 1>&6
14480 cat > conftest.$ac_ext <<EOF
14481 #line 14482 "configure"
14482 #include "confdefs.h"
14483 /* System header to define __stub macros and hopefully few prototypes,
14484 which can conflict with char $ac_func(); below. */
14485 #include <assert.h>
14486 /* Override any gcc2 internal prototype to avoid an error. */
14487 /* We use char because int might match the return type of a gcc2
14488 builtin and then its argument prototype would still apply. */
14494 /* The GNU C library defines this for functions which it implements
14495 to always fail with ENOSYS. Some functions are actually named
14496 something starting with __ and the normal name is an alias. */
14497 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14505 if { (eval echo configure:14506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14507 eval "ac_cv_func_$ac_func=yes"
14509 echo "configure: failed program was:" >&5
14510 cat conftest.$ac_ext >&5
14512 eval "ac_cv_func_$ac_func=no"
14517 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14518 echo "$ac_t""yes" 1>&6
14519 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14520 cat >> confdefs.h <<EOF
14521 #define $ac_tr_func 1
14525 echo "$ac_t""no" 1>&6
14531 for ac_func in pthread_kill_other_threads_np
14533 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14534 echo "configure:14535: checking for $ac_func" >&5
14535 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14536 echo $ac_n "(cached) $ac_c" 1>&6
14538 cat > conftest.$ac_ext <<EOF
14539 #line 14540 "configure"
14540 #include "confdefs.h"
14541 /* System header to define __stub macros and hopefully few prototypes,
14542 which can conflict with char $ac_func(); below. */
14543 #include <assert.h>
14544 /* Override any gcc2 internal prototype to avoid an error. */
14545 /* We use char because int might match the return type of a gcc2
14546 builtin and then its argument prototype would still apply. */
14552 /* The GNU C library defines this for functions which it implements
14553 to always fail with ENOSYS. Some functions are actually named
14554 something starting with __ and the normal name is an alias. */
14555 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14563 if { (eval echo configure:14564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14565 eval "ac_cv_func_$ac_func=yes"
14567 echo "configure: failed program was:" >&5
14568 cat conftest.$ac_ext >&5
14570 eval "ac_cv_func_$ac_func=no"
14575 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14576 echo "$ac_t""yes" 1>&6
14577 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14578 cat >> confdefs.h <<EOF
14579 #define $ac_tr_func 1
14583 echo "$ac_t""no" 1>&6
14587 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
14588 echo "configure:14589: checking for LinuxThreads implementation" >&5
14589 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
14590 echo $ac_n "(cached) $ac_c" 1>&6
14592 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
14595 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
14600 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
14601 echo "configure:14602: checking for LinuxThreads consistency" >&5
14602 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
14603 echo $ac_n "(cached) $ac_c" 1>&6
14606 if test $ol_cv_header_linux_threads = yes -a \
14607 $ol_cv_sys_linux_threads = yes; then
14608 ol_cv_linux_threads=yes
14609 elif test $ol_cv_header_linux_threads = no -a \
14610 $ol_cv_sys_linux_threads = no; then
14611 ol_cv_linux_threads=no
14613 ol_cv_linux_threads=error
14618 echo "$ac_t""$ol_cv_linux_threads" 1>&6
14621 if test $ol_cv_linux_threads = error; then
14622 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
14625 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
14626 echo "configure:14627: checking if pthread_create() works" >&5
14627 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
14628 echo $ac_n "(cached) $ac_c" 1>&6
14631 if test "$cross_compiling" = yes; then
14632 ol_cv_pthread_create_works=yes
14634 cat > conftest.$ac_ext <<EOF
14635 #line 14636 "configure"
14636 #include "confdefs.h"
14637 /* pthread test headers */
14638 #include <pthread.h>
14639 #if HAVE_PTHREADS < 7
14643 #define NULL (void*)0
14646 static void *task(p)
14649 return (void *) (p == NULL);
14653 int main(argc, argv)
14658 /* pthread test function */
14659 #ifndef PTHREAD_CREATE_DETACHED
14660 #define PTHREAD_CREATE_DETACHED 1
14664 int detach = PTHREAD_CREATE_DETACHED;
14666 #if HAVE_PTHREADS > 4
14667 /* Final pthreads */
14668 pthread_attr_t attr;
14670 status = pthread_attr_init(&attr);
14671 if( status ) return status;
14673 #if HAVE_PTHREADS < 7
14674 status = pthread_attr_setdetachstate(&attr, &detach);
14675 if( status < 0 ) status = errno;
14677 status = pthread_attr_setdetachstate(&attr, detach);
14679 if( status ) return status;
14680 status = pthread_create( &t, &attr, task, NULL );
14681 #if HAVE_PTHREADS < 7
14682 if( status < 0 ) status = errno;
14684 if( status ) return status;
14686 /* Draft 4 pthreads */
14687 status = pthread_create( &t, pthread_attr_default, task, NULL );
14688 if( status ) return errno;
14690 /* give thread a chance to complete */
14691 /* it should remain joinable and hence detachable */
14694 status = pthread_detach( &t );
14695 if( status ) return errno;
14698 #ifdef HAVE_LINUX_THREADS
14699 pthread_kill_other_threads_np();
14707 if { (eval echo configure:14708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14709 ol_cv_pthread_create_works=yes
14711 echo "configure: failed program was:" >&5
14712 cat conftest.$ac_ext >&5
14714 ol_cv_pthread_create_works=no
14721 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
14723 if test $ol_cv_pthread_create_works = no ; then
14724 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
14727 if test $ol_with_yielding_select = auto ; then
14728 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
14729 echo "configure:14730: checking if select yields when using pthreads" >&5
14730 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
14731 echo $ac_n "(cached) $ac_c" 1>&6
14734 if test "$cross_compiling" = yes; then
14735 ol_cv_pthread_select_yields=cross
14737 cat > conftest.$ac_ext <<EOF
14738 #line 14739 "configure"
14739 #include "confdefs.h"
14741 #include <sys/types.h>
14742 #include <sys/time.h>
14743 #include <unistd.h>
14744 #include <pthread.h>
14746 #define NULL (void*) 0
14749 static int fildes[2];
14751 static void *task(p)
14763 FD_SET(fildes[0], &rfds);
14765 /* we're not interested in any fds */
14766 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
14773 exit(0); /* if we exit here, the select blocked the whole process */
14776 int main(argc, argv)
14782 /* create a pipe to select */
14783 if(pipe(&fildes[0])) {
14788 #ifdef HAVE_PTHREAD_SETCONCURRENCY
14789 (void) pthread_setconcurrency(2);
14791 #ifdef HAVE_THR_SETCONCURRENCY
14792 /* Set Solaris LWP concurrency to 2 */
14793 thr_setconcurrency(2);
14797 #if HAVE_PTHREADS < 6
14798 pthread_create(&t, pthread_attr_default, task, NULL);
14800 pthread_create(&t, NULL, task, NULL);
14803 /* make sure task runs first */
14806 #elif defined( HAVE_SCHED_YIELD )
14808 #elif defined( HAVE_PTHREAD_YIELD )
14815 if { (eval echo configure:14816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14817 ol_cv_pthread_select_yields=no
14819 echo "configure: failed program was:" >&5
14820 cat conftest.$ac_ext >&5
14822 ol_cv_pthread_select_yields=yes
14829 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
14831 if test $ol_cv_pthread_select_yields = cross ; then
14832 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
14835 if test $ol_cv_pthread_select_yields = yes ; then
14836 ol_with_yielding_select=yes
14840 CPPFLAGS="$save_CPPFLAGS"
14843 { echo "configure: error: could not locate usable POSIX Threads" 1>&2; exit 1; }
14847 if test $ol_with_threads = posix ; then
14848 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
14852 if test $ol_with_threads = auto -o $ol_with_threads = yes \
14853 -o $ol_with_threads = mach ; then
14855 for ac_hdr in mach/cthreads.h cthreads.h
14857 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14858 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14859 echo "configure:14860: checking for $ac_hdr" >&5
14860 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
14861 echo $ac_n "(cached) $ac_c" 1>&6
14863 cat > conftest.$ac_ext <<EOF
14864 #line 14865 "configure"
14865 #include "confdefs.h"
14868 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14869 { (eval echo configure:14870: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14870 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14871 if test -z "$ac_err"; then
14873 eval "ac_cv_header_$ac_safe=yes"
14876 echo "configure: failed program was:" >&5
14877 cat conftest.$ac_ext >&5
14879 eval "ac_cv_header_$ac_safe=no"
14883 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14884 echo "$ac_t""yes" 1>&6
14885 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14886 cat >> confdefs.h <<EOF
14887 #define $ac_tr_hdr 1
14891 echo "$ac_t""no" 1>&6
14895 if test $ac_cv_header_mach_cthreads_h = yes ; then
14896 ol_with_threads=found
14898 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
14899 echo "configure:14900: checking for cthread_fork" >&5
14900 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
14901 echo $ac_n "(cached) $ac_c" 1>&6
14903 cat > conftest.$ac_ext <<EOF
14904 #line 14905 "configure"
14905 #include "confdefs.h"
14906 /* System header to define __stub macros and hopefully few prototypes,
14907 which can conflict with char cthread_fork(); below. */
14908 #include <assert.h>
14909 /* Override any gcc2 internal prototype to avoid an error. */
14910 /* We use char because int might match the return type of a gcc2
14911 builtin and then its argument prototype would still apply. */
14912 char cthread_fork();
14917 /* The GNU C library defines this for functions which it implements
14918 to always fail with ENOSYS. Some functions are actually named
14919 something starting with __ and the normal name is an alias. */
14920 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
14928 if { (eval echo configure:14929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14930 eval "ac_cv_func_cthread_fork=yes"
14932 echo "configure: failed program was:" >&5
14933 cat conftest.$ac_ext >&5
14935 eval "ac_cv_func_cthread_fork=no"
14940 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
14941 echo "$ac_t""yes" 1>&6
14942 ol_link_threads=yes
14944 echo "$ac_t""no" 1>&6
14948 if test $ol_link_threads = no ; then
14949 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
14950 echo "configure:14951: checking for cthread_fork with -all_load" >&5
14951 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
14952 echo $ac_n "(cached) $ac_c" 1>&6
14956 LIBS="-all_load $LIBS"
14957 cat > conftest.$ac_ext <<EOF
14958 #line 14959 "configure"
14959 #include "confdefs.h"
14960 #include <mach/cthreads.h>
14963 cthread_fork((void *)0, (void *)0);
14967 if { (eval echo configure:14968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14969 ol_cv_cthread_all_load=yes
14971 echo "configure: failed program was:" >&5
14972 cat conftest.$ac_ext >&5
14974 ol_cv_cthread_all_load=no
14981 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
14983 if test $ol_cv_cthread_all_load = yes ; then
14984 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
14985 ol_link_threads=mach
14986 ol_with_threads=found
14990 elif test $ac_cv_header_cthreads_h = yes ; then
14992 ol_with_threads=found
14995 LIBS="$LIBS -lthreads"
14996 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
14997 echo "configure:14998: checking for cthread_fork" >&5
14998 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
14999 echo $ac_n "(cached) $ac_c" 1>&6
15001 cat > conftest.$ac_ext <<EOF
15002 #line 15003 "configure"
15003 #include "confdefs.h"
15004 /* System header to define __stub macros and hopefully few prototypes,
15005 which can conflict with char cthread_fork(); below. */
15006 #include <assert.h>
15007 /* Override any gcc2 internal prototype to avoid an error. */
15008 /* We use char because int might match the return type of a gcc2
15009 builtin and then its argument prototype would still apply. */
15010 char cthread_fork();
15015 /* The GNU C library defines this for functions which it implements
15016 to always fail with ENOSYS. Some functions are actually named
15017 something starting with __ and the normal name is an alias. */
15018 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
15026 if { (eval echo configure:15027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15028 eval "ac_cv_func_cthread_fork=yes"
15030 echo "configure: failed program was:" >&5
15031 cat conftest.$ac_ext >&5
15033 eval "ac_cv_func_cthread_fork=no"
15038 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
15039 echo "$ac_t""yes" 1>&6
15040 ol_link_threads=yes
15042 echo "$ac_t""no" 1>&6
15047 if test $ol_link_threads = yes ; then
15048 LTHREAD_LIBS="-lthreads"
15049 ol_link_threads=mach
15050 ol_with_threads=found
15052 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
15055 elif test $ol_with_threads = mach ; then
15056 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
15059 if test $ol_link_threads = mach ; then
15060 cat >> confdefs.h <<\EOF
15061 #define HAVE_MACH_CTHREADS 1
15064 elif test $ol_with_threads = found ; then
15065 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
15069 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15070 -o $ol_with_threads = pth ; then
15072 for ac_hdr in pth.h
15074 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15075 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15076 echo "configure:15077: checking for $ac_hdr" >&5
15077 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15078 echo $ac_n "(cached) $ac_c" 1>&6
15080 cat > conftest.$ac_ext <<EOF
15081 #line 15082 "configure"
15082 #include "confdefs.h"
15085 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15086 { (eval echo configure:15087: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15087 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15088 if test -z "$ac_err"; then
15090 eval "ac_cv_header_$ac_safe=yes"
15093 echo "configure: failed program was:" >&5
15094 cat conftest.$ac_ext >&5
15096 eval "ac_cv_header_$ac_safe=no"
15100 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15101 echo "$ac_t""yes" 1>&6
15102 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15103 cat >> confdefs.h <<EOF
15104 #define $ac_tr_hdr 1
15108 echo "$ac_t""no" 1>&6
15113 if test $ac_cv_header_pth_h = yes ; then
15114 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
15115 echo "configure:15116: checking for pth_version in -lpth" >&5
15116 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
15117 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15118 echo $ac_n "(cached) $ac_c" 1>&6
15120 ac_save_LIBS="$LIBS"
15122 cat > conftest.$ac_ext <<EOF
15123 #line 15124 "configure"
15124 #include "confdefs.h"
15125 /* Override any gcc2 internal prototype to avoid an error. */
15126 /* We use char because int might match the return type of a gcc2
15127 builtin and then its argument prototype would still apply. */
15128 char pth_version();
15134 if { (eval echo configure:15135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15136 eval "ac_cv_lib_$ac_lib_var=yes"
15138 echo "configure: failed program was:" >&5
15139 cat conftest.$ac_ext >&5
15141 eval "ac_cv_lib_$ac_lib_var=no"
15144 LIBS="$ac_save_LIBS"
15147 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15148 echo "$ac_t""yes" 1>&6
15151 echo "$ac_t""no" 1>&6
15156 if test $have_pth = yes ; then
15157 cat >> confdefs.h <<\EOF
15158 #define HAVE_GNU_PTH 1
15161 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
15162 ol_link_threads=pth
15163 ol_with_threads=found
15165 if test $ol_with_yielding_select = auto ; then
15166 ol_with_yielding_select=yes
15172 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15173 -o $ol_with_threads = lwp ; then
15175 for ac_hdr in thread.h synch.h
15177 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15178 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15179 echo "configure:15180: checking for $ac_hdr" >&5
15180 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15181 echo $ac_n "(cached) $ac_c" 1>&6
15183 cat > conftest.$ac_ext <<EOF
15184 #line 15185 "configure"
15185 #include "confdefs.h"
15188 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15189 { (eval echo configure:15190: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15190 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15191 if test -z "$ac_err"; then
15193 eval "ac_cv_header_$ac_safe=yes"
15196 echo "configure: failed program was:" >&5
15197 cat conftest.$ac_ext >&5
15199 eval "ac_cv_header_$ac_safe=no"
15203 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15204 echo "$ac_t""yes" 1>&6
15205 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15206 cat >> confdefs.h <<EOF
15207 #define $ac_tr_hdr 1
15211 echo "$ac_t""no" 1>&6
15215 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
15216 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
15217 echo "configure:15218: checking for thr_create in -lthread" >&5
15218 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
15219 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15220 echo $ac_n "(cached) $ac_c" 1>&6
15222 ac_save_LIBS="$LIBS"
15223 LIBS="-lthread $LIBS"
15224 cat > conftest.$ac_ext <<EOF
15225 #line 15226 "configure"
15226 #include "confdefs.h"
15227 /* Override any gcc2 internal prototype to avoid an error. */
15228 /* We use char because int might match the return type of a gcc2
15229 builtin and then its argument prototype would still apply. */
15236 if { (eval echo configure:15237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15238 eval "ac_cv_lib_$ac_lib_var=yes"
15240 echo "configure: failed program was:" >&5
15241 cat conftest.$ac_ext >&5
15243 eval "ac_cv_lib_$ac_lib_var=no"
15246 LIBS="$ac_save_LIBS"
15249 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15250 echo "$ac_t""yes" 1>&6
15253 echo "$ac_t""no" 1>&6
15258 if test $have_thr = yes ; then
15259 cat >> confdefs.h <<\EOF
15263 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
15264 ol_link_threads=thr
15266 if test $ol_with_yielding_select = auto ; then
15267 ol_with_yielding_select=yes
15271 thr_setconcurrency \
15272 thr_getconcurrency \
15275 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15276 echo "configure:15277: checking for $ac_func" >&5
15277 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15278 echo $ac_n "(cached) $ac_c" 1>&6
15280 cat > conftest.$ac_ext <<EOF
15281 #line 15282 "configure"
15282 #include "confdefs.h"
15283 /* System header to define __stub macros and hopefully few prototypes,
15284 which can conflict with char $ac_func(); below. */
15285 #include <assert.h>
15286 /* Override any gcc2 internal prototype to avoid an error. */
15287 /* We use char because int might match the return type of a gcc2
15288 builtin and then its argument prototype would still apply. */
15294 /* The GNU C library defines this for functions which it implements
15295 to always fail with ENOSYS. Some functions are actually named
15296 something starting with __ and the normal name is an alias. */
15297 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15305 if { (eval echo configure:15306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15307 eval "ac_cv_func_$ac_func=yes"
15309 echo "configure: failed program was:" >&5
15310 cat conftest.$ac_ext >&5
15312 eval "ac_cv_func_$ac_func=no"
15317 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15318 echo "$ac_t""yes" 1>&6
15319 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15320 cat >> confdefs.h <<EOF
15321 #define $ac_tr_func 1
15325 echo "$ac_t""no" 1>&6
15332 for ac_hdr in lwp/lwp.h
15334 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15335 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15336 echo "configure:15337: checking for $ac_hdr" >&5
15337 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15338 echo $ac_n "(cached) $ac_c" 1>&6
15340 cat > conftest.$ac_ext <<EOF
15341 #line 15342 "configure"
15342 #include "confdefs.h"
15345 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15346 { (eval echo configure:15347: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15347 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15348 if test -z "$ac_err"; then
15350 eval "ac_cv_header_$ac_safe=yes"
15353 echo "configure: failed program was:" >&5
15354 cat conftest.$ac_ext >&5
15356 eval "ac_cv_header_$ac_safe=no"
15360 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15361 echo "$ac_t""yes" 1>&6
15362 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15363 cat >> confdefs.h <<EOF
15364 #define $ac_tr_hdr 1
15368 echo "$ac_t""no" 1>&6
15372 if test $ac_cv_header_lwp_lwp_h = yes ; then
15373 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
15374 echo "configure:15375: checking for lwp_create in -llwp" >&5
15375 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
15376 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15377 echo $ac_n "(cached) $ac_c" 1>&6
15379 ac_save_LIBS="$LIBS"
15381 cat > conftest.$ac_ext <<EOF
15382 #line 15383 "configure"
15383 #include "confdefs.h"
15384 /* Override any gcc2 internal prototype to avoid an error. */
15385 /* We use char because int might match the return type of a gcc2
15386 builtin and then its argument prototype would still apply. */
15393 if { (eval echo configure:15394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15395 eval "ac_cv_lib_$ac_lib_var=yes"
15397 echo "configure: failed program was:" >&5
15398 cat conftest.$ac_ext >&5
15400 eval "ac_cv_lib_$ac_lib_var=no"
15403 LIBS="$ac_save_LIBS"
15406 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15407 echo "$ac_t""yes" 1>&6
15410 echo "$ac_t""no" 1>&6
15415 if test $have_lwp = yes ; then
15416 cat >> confdefs.h <<\EOF
15420 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
15421 ol_link_threads=lwp
15423 if test $ol_with_yielding_select = auto ; then
15424 ol_with_yielding_select=no
15430 if test $ol_with_yielding_select = yes ; then
15431 cat >> confdefs.h <<\EOF
15432 #define HAVE_YIELDING_SELECT 1
15437 if test $ol_with_threads = manual ; then
15438 ol_link_threads=yes
15440 echo "configure: warning: thread defines and link options must be set manually" 1>&2
15442 for ac_hdr in pthread.h sched.h
15444 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15445 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15446 echo "configure:15447: checking for $ac_hdr" >&5
15447 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15448 echo $ac_n "(cached) $ac_c" 1>&6
15450 cat > conftest.$ac_ext <<EOF
15451 #line 15452 "configure"
15452 #include "confdefs.h"
15455 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15456 { (eval echo configure:15457: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15457 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15458 if test -z "$ac_err"; then
15460 eval "ac_cv_header_$ac_safe=yes"
15463 echo "configure: failed program was:" >&5
15464 cat conftest.$ac_ext >&5
15466 eval "ac_cv_header_$ac_safe=no"
15470 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15471 echo "$ac_t""yes" 1>&6
15472 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15473 cat >> confdefs.h <<EOF
15474 #define $ac_tr_hdr 1
15478 echo "$ac_t""no" 1>&6
15482 for ac_func in sched_yield pthread_yield
15484 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15485 echo "configure:15486: checking for $ac_func" >&5
15486 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15487 echo $ac_n "(cached) $ac_c" 1>&6
15489 cat > conftest.$ac_ext <<EOF
15490 #line 15491 "configure"
15491 #include "confdefs.h"
15492 /* System header to define __stub macros and hopefully few prototypes,
15493 which can conflict with char $ac_func(); below. */
15494 #include <assert.h>
15495 /* Override any gcc2 internal prototype to avoid an error. */
15496 /* We use char because int might match the return type of a gcc2
15497 builtin and then its argument prototype would still apply. */
15503 /* The GNU C library defines this for functions which it implements
15504 to always fail with ENOSYS. Some functions are actually named
15505 something starting with __ and the normal name is an alias. */
15506 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15514 if { (eval echo configure:15515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15516 eval "ac_cv_func_$ac_func=yes"
15518 echo "configure: failed program was:" >&5
15519 cat conftest.$ac_ext >&5
15521 eval "ac_cv_func_$ac_func=no"
15526 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15527 echo "$ac_t""yes" 1>&6
15528 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15529 cat >> confdefs.h <<EOF
15530 #define $ac_tr_func 1
15534 echo "$ac_t""no" 1>&6
15539 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
15540 echo "configure:15541: checking for LinuxThreads pthread.h" >&5
15541 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
15542 echo $ac_n "(cached) $ac_c" 1>&6
15544 cat > conftest.$ac_ext <<EOF
15545 #line 15546 "configure"
15546 #include "confdefs.h"
15547 #include <pthread.h>
15549 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15550 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
15552 ol_cv_header_linux_threads=yes
15555 ol_cv_header_linux_threads=no
15562 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
15563 if test $ol_cv_header_linux_threads = yes; then
15564 cat >> confdefs.h <<\EOF
15565 #define HAVE_LINUX_THREADS 1
15571 for ac_hdr in mach/cthreads.h
15573 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15574 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15575 echo "configure:15576: checking for $ac_hdr" >&5
15576 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15577 echo $ac_n "(cached) $ac_c" 1>&6
15579 cat > conftest.$ac_ext <<EOF
15580 #line 15581 "configure"
15581 #include "confdefs.h"
15584 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15585 { (eval echo configure:15586: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15586 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15587 if test -z "$ac_err"; then
15589 eval "ac_cv_header_$ac_safe=yes"
15592 echo "configure: failed program was:" >&5
15593 cat conftest.$ac_ext >&5
15595 eval "ac_cv_header_$ac_safe=no"
15599 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15600 echo "$ac_t""yes" 1>&6
15601 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15602 cat >> confdefs.h <<EOF
15603 #define $ac_tr_hdr 1
15607 echo "$ac_t""no" 1>&6
15611 for ac_hdr in lwp/lwp.h
15613 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15614 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15615 echo "configure:15616: checking for $ac_hdr" >&5
15616 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15617 echo $ac_n "(cached) $ac_c" 1>&6
15619 cat > conftest.$ac_ext <<EOF
15620 #line 15621 "configure"
15621 #include "confdefs.h"
15624 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15625 { (eval echo configure:15626: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15626 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15627 if test -z "$ac_err"; then
15629 eval "ac_cv_header_$ac_safe=yes"
15632 echo "configure: failed program was:" >&5
15633 cat conftest.$ac_ext >&5
15635 eval "ac_cv_header_$ac_safe=no"
15639 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15640 echo "$ac_t""yes" 1>&6
15641 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15642 cat >> confdefs.h <<EOF
15643 #define $ac_tr_hdr 1
15647 echo "$ac_t""no" 1>&6
15651 for ac_hdr in thread.h synch.h
15653 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15654 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15655 echo "configure:15656: checking for $ac_hdr" >&5
15656 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15657 echo $ac_n "(cached) $ac_c" 1>&6
15659 cat > conftest.$ac_ext <<EOF
15660 #line 15661 "configure"
15661 #include "confdefs.h"
15664 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15665 { (eval echo configure:15666: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15666 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15667 if test -z "$ac_err"; then
15669 eval "ac_cv_header_$ac_safe=yes"
15672 echo "configure: failed program was:" >&5
15673 cat conftest.$ac_ext >&5
15675 eval "ac_cv_header_$ac_safe=no"
15679 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15680 echo "$ac_t""yes" 1>&6
15681 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15682 cat >> confdefs.h <<EOF
15683 #define $ac_tr_hdr 1
15687 echo "$ac_t""no" 1>&6
15693 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
15694 cat >> confdefs.h <<\EOF
15695 #define REENTRANT 1
15698 cat >> confdefs.h <<\EOF
15699 #define _REENTRANT 1
15702 cat >> confdefs.h <<\EOF
15703 #define THREAD_SAFE 1
15706 cat >> confdefs.h <<\EOF
15707 #define _THREAD_SAFE 1
15710 cat >> confdefs.h <<\EOF
15711 #define THREADSAFE 1
15714 cat >> confdefs.h <<\EOF
15715 #define _THREADSAFE 1
15718 cat >> confdefs.h <<\EOF
15719 #define _SGI_MP_SOURCE 1
15723 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
15724 echo "configure:15725: checking for thread specific errno" >&5
15725 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
15726 echo $ac_n "(cached) $ac_c" 1>&6
15729 cat > conftest.$ac_ext <<EOF
15730 #line 15731 "configure"
15731 #include "confdefs.h"
15737 if { (eval echo configure:15738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15739 ol_cv_errno_thread_specific=yes
15741 echo "configure: failed program was:" >&5
15742 cat conftest.$ac_ext >&5
15744 ol_cv_errno_thread_specific=no
15750 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
15752 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
15753 echo "configure:15754: checking for thread specific h_errno" >&5
15754 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
15755 echo $ac_n "(cached) $ac_c" 1>&6
15758 cat > conftest.$ac_ext <<EOF
15759 #line 15760 "configure"
15760 #include "confdefs.h"
15766 if { (eval echo configure:15767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15768 ol_cv_h_errno_thread_specific=yes
15770 echo "configure: failed program was:" >&5
15771 cat conftest.$ac_ext >&5
15773 ol_cv_h_errno_thread_specific=no
15779 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
15781 if test $ol_cv_errno_thread_specific != yes \
15782 -o $ol_cv_h_errno_thread_specific != yes ; then
15783 LIBS="$LTHREAD_LIBS $LIBS"
15789 if test $ol_link_threads = no ; then
15790 if test $ol_with_threads = yes ; then
15791 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
15794 if test $ol_with_threads = auto ; then
15795 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
15799 cat >> confdefs.h <<\EOF
15800 #define NO_THREADS 1
15806 if test $ol_link_threads != no ; then
15807 cat >> confdefs.h <<\EOF
15808 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
15815 gethostbyname_r gethostbyaddr_r \
15818 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15819 echo "configure:15820: checking for $ac_func" >&5
15820 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15821 echo $ac_n "(cached) $ac_c" 1>&6
15823 cat > conftest.$ac_ext <<EOF
15824 #line 15825 "configure"
15825 #include "confdefs.h"
15826 /* System header to define __stub macros and hopefully few prototypes,
15827 which can conflict with char $ac_func(); below. */
15828 #include <assert.h>
15829 /* Override any gcc2 internal prototype to avoid an error. */
15830 /* We use char because int might match the return type of a gcc2
15831 builtin and then its argument prototype would still apply. */
15837 /* The GNU C library defines this for functions which it implements
15838 to always fail with ENOSYS. Some functions are actually named
15839 something starting with __ and the normal name is an alias. */
15840 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15848 if { (eval echo configure:15849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15850 eval "ac_cv_func_$ac_func=yes"
15852 echo "configure: failed program was:" >&5
15853 cat conftest.$ac_ext >&5
15855 eval "ac_cv_func_$ac_func=no"
15860 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15861 echo "$ac_t""yes" 1>&6
15862 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15863 cat >> confdefs.h <<EOF
15864 #define $ac_tr_func 1
15868 echo "$ac_t""no" 1>&6
15873 if test "$ac_cv_func_ctime_r" = no ; then
15874 ol_cv_func_ctime_r_nargs=0
15876 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
15877 echo "configure:15878: checking number of arguments of ctime_r" >&5
15878 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
15879 echo $ac_n "(cached) $ac_c" 1>&6
15881 cat > conftest.$ac_ext <<EOF
15882 #line 15883 "configure"
15883 #include "confdefs.h"
15886 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
15889 if { (eval echo configure:15890: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15891 ol_cv_func_ctime_r_nargs3=yes
15893 echo "configure: failed program was:" >&5
15894 cat conftest.$ac_ext >&5
15896 ol_cv_func_ctime_r_nargs3=no
15900 cat > conftest.$ac_ext <<EOF
15901 #line 15902 "configure"
15902 #include "confdefs.h"
15905 time_t ti; char *buffer; ctime_r(&ti,buffer);
15908 if { (eval echo configure:15909: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15910 ol_cv_func_ctime_r_nargs2=yes
15912 echo "configure: failed program was:" >&5
15913 cat conftest.$ac_ext >&5
15915 ol_cv_func_ctime_r_nargs2=no
15919 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
15920 $ol_cv_func_ctime_r_nargs2 = no ; then
15922 ol_cv_func_ctime_r_nargs=3
15924 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
15925 $ol_cv_func_ctime_r_nargs2 = yes ; then
15927 ol_cv_func_ctime_r_nargs=2
15930 ol_cv_func_ctime_r_nargs=0
15935 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
15937 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
15938 cat >> confdefs.h <<EOF
15939 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
15946 if test "$ac_cv_func_gethostbyname_r" = yes ; then
15947 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
15948 echo "configure:15949: checking number of arguments of gethostbyname_r" >&5
15949 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
15950 echo $ac_n "(cached) $ac_c" 1>&6
15952 cat > conftest.$ac_ext <<EOF
15953 #line 15954 "configure"
15954 #include "confdefs.h"
15955 #include <sys/types.h>
15956 #include <sys/socket.h>
15957 #include <netinet/in.h>
15959 #define BUFSIZE (sizeof(struct hostent)+10)
15961 struct hostent hent; char buffer[BUFSIZE];
15962 int bufsize=BUFSIZE;int h_errno;
15963 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
15964 buffer, bufsize, &h_errno);
15967 if { (eval echo configure:15968: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15969 ol_cv_func_gethostbyname_r_nargs5=yes
15971 echo "configure: failed program was:" >&5
15972 cat conftest.$ac_ext >&5
15974 ol_cv_func_gethostbyname_r_nargs5=no
15978 cat > conftest.$ac_ext <<EOF
15979 #line 15980 "configure"
15980 #include "confdefs.h"
15981 #include <sys/types.h>
15982 #include <sys/socket.h>
15983 #include <netinet/in.h>
15985 #define BUFSIZE (sizeof(struct hostent)+10)
15987 struct hostent hent;struct hostent *rhent;
15988 char buffer[BUFSIZE];
15989 int bufsize=BUFSIZE;int h_errno;
15990 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
15994 if { (eval echo configure:15995: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15996 ol_cv_func_gethostbyname_r_nargs6=yes
15998 echo "configure: failed program was:" >&5
15999 cat conftest.$ac_ext >&5
16001 ol_cv_func_gethostbyname_r_nargs6=no
16005 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
16006 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
16008 ol_cv_func_gethostbyname_r_nargs=5
16010 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
16011 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
16013 ol_cv_func_gethostbyname_r_nargs=6
16016 ol_cv_func_gethostbyname_r_nargs=0
16021 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
16022 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
16023 cat >> confdefs.h <<EOF
16024 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
16030 ol_cv_func_gethostbyname_r_nargs=0
16033 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
16034 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
16035 echo "configure:16036: checking number of arguments of gethostbyaddr_r" >&5
16036 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
16037 echo $ac_n "(cached) $ac_c" 1>&6
16039 cat > conftest.$ac_ext <<EOF
16040 #line 16041 "configure"
16041 #include "confdefs.h"
16042 #include <sys/types.h>
16043 #include <sys/socket.h>
16044 #include <netinet/in.h>
16046 #define BUFSIZE (sizeof(struct hostent)+10)
16048 struct hostent hent; char buffer[BUFSIZE];
16049 struct in_addr add;
16050 size_t alen=sizeof(struct in_addr);
16051 int bufsize=BUFSIZE;int h_errno;
16052 (void)gethostbyaddr_r( (void *)&(add.s_addr),
16053 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
16056 if { (eval echo configure:16057: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16058 ol_cv_func_gethostbyaddr_r_nargs7=yes
16060 echo "configure: failed program was:" >&5
16061 cat conftest.$ac_ext >&5
16063 ol_cv_func_gethostbyaddr_r_nargs7=no
16067 cat > conftest.$ac_ext <<EOF
16068 #line 16069 "configure"
16069 #include "confdefs.h"
16070 #include <sys/types.h>
16071 #include <sys/socket.h>
16072 #include <netinet/in.h>
16074 #define BUFSIZE (sizeof(struct hostent)+10)
16076 struct hostent hent;
16077 struct hostent *rhent; char buffer[BUFSIZE];
16078 struct in_addr add;
16079 size_t alen=sizeof(struct in_addr);
16080 int bufsize=BUFSIZE;int h_errno;
16081 (void)gethostbyaddr_r( (void *)&(add.s_addr),
16082 alen, AF_INET, &hent, buffer, bufsize,
16086 if { (eval echo configure:16087: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16088 ol_cv_func_gethostbyaddr_r_nargs8=yes
16090 echo "configure: failed program was:" >&5
16091 cat conftest.$ac_ext >&5
16093 ol_cv_func_gethostbyaddr_r_nargs8=no
16097 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
16098 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
16100 ol_cv_func_gethostbyaddr_r_nargs=7
16102 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
16103 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
16105 ol_cv_func_gethostbyaddr_r_nargs=8
16108 ol_cv_func_gethostbyaddr_r_nargs=0
16113 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
16114 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
16115 cat >> confdefs.h <<EOF
16116 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
16122 ol_cv_func_gethostbyaddr_r_nargs=0
16127 if test $ol_with_ldbm_api = auto \
16128 -o $ol_with_ldbm_api = berkeley \
16129 -o $ol_with_ldbm_api = bcompat ; then
16131 if test $ol_with_ldbm_api = bcompat; then \
16132 for ac_hdr in db_185.h db.h
16134 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16135 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16136 echo "configure:16137: checking for $ac_hdr" >&5
16137 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16138 echo $ac_n "(cached) $ac_c" 1>&6
16140 cat > conftest.$ac_ext <<EOF
16141 #line 16142 "configure"
16142 #include "confdefs.h"
16145 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16146 { (eval echo configure:16147: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16147 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16148 if test -z "$ac_err"; then
16150 eval "ac_cv_header_$ac_safe=yes"
16153 echo "configure: failed program was:" >&5
16154 cat conftest.$ac_ext >&5
16156 eval "ac_cv_header_$ac_safe=no"
16160 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16161 echo "$ac_t""yes" 1>&6
16162 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16163 cat >> confdefs.h <<EOF
16164 #define $ac_tr_hdr 1
16168 echo "$ac_t""no" 1>&6
16172 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
16173 echo $ac_n "checking if Berkeley DB header compatibility""... $ac_c" 1>&6
16174 echo "configure:16175: checking if Berkeley DB header compatibility" >&5
16175 if eval "test \"\${ol_cv_header_db1+set}\" = set"; then
16176 echo $ac_n "(cached) $ac_c" 1>&6
16179 cat > conftest.$ac_ext <<EOF
16180 #line 16181 "configure"
16181 #include "confdefs.h"
16184 # include <db_185.h>
16189 /* this check could be improved */
16190 #ifndef DB_VERSION_MAJOR
16191 # define DB_VERSION_MAJOR 1
16194 #if DB_VERSION_MAJOR == 1
16199 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16200 egrep "__db_version_1" >/dev/null 2>&1; then
16202 ol_cv_header_db1=yes
16205 ol_cv_header_db1=no
16211 echo "$ac_t""$ol_cv_header_db1" 1>&6
16213 if test $ol_cv_header_db1 = yes ; then
16215 if test $ol_cv_lib_db = no ; then
16216 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
16217 echo "configure:16218: checking for Berkeley DB link (default)" >&5
16218 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
16219 echo $ac_n "(cached) $ac_c" 1>&6
16224 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16226 cat > conftest.$ac_ext <<EOF
16227 #line 16228 "configure"
16228 #include "confdefs.h"
16230 #ifdef HAVE_DB_185_H
16231 # include <db_185.h>
16236 #ifndef DB_VERSION_MAJOR
16237 # define DB_VERSION_MAJOR 1
16241 #define NULL ((void*)0)
16246 #if DB_VERSION_MAJOR > 1
16249 int major, minor, patch;
16251 version = db_version( &major, &minor, &patch );
16253 if( major != DB_VERSION_MAJOR ||
16254 minor < DB_VERSION_MINOR )
16256 printf("Berkeley DB version mismatch\n"
16257 "\texpected: %s\n\tgot: %s\n",
16258 DB_VERSION_STRING, version);
16264 #if DB_VERSION_MAJOR > 2
16265 db_env_create( NULL, 0 );
16266 #elif DB_VERSION_MAJOR > 1
16267 db_appexit( NULL );
16269 (void) dbopen( NULL, 0, 0, 0, NULL);
16274 if { (eval echo configure:16275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16278 echo "configure: failed program was:" >&5
16279 cat conftest.$ac_ext >&5
16289 echo "$ac_t""$ol_cv_db_none" 1>&6
16291 if test $ol_cv_db_none = yes ; then
16296 if test $ol_cv_lib_db = no ; then
16297 echo $ac_n "checking for Berkeley DB link (-ldb42)""... $ac_c" 1>&6
16298 echo "configure:16299: checking for Berkeley DB link (-ldb42)" >&5
16299 if eval "test \"\${ol_cv_db_db42+set}\" = set"; then
16300 echo $ac_n "(cached) $ac_c" 1>&6
16305 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16307 cat > conftest.$ac_ext <<EOF
16308 #line 16309 "configure"
16309 #include "confdefs.h"
16311 #ifdef HAVE_DB_185_H
16312 # include <db_185.h>
16317 #ifndef DB_VERSION_MAJOR
16318 # define DB_VERSION_MAJOR 1
16322 #define NULL ((void*)0)
16327 #if DB_VERSION_MAJOR > 1
16330 int major, minor, patch;
16332 version = db_version( &major, &minor, &patch );
16334 if( major != DB_VERSION_MAJOR ||
16335 minor < DB_VERSION_MINOR )
16337 printf("Berkeley DB version mismatch\n"
16338 "\texpected: %s\n\tgot: %s\n",
16339 DB_VERSION_STRING, version);
16345 #if DB_VERSION_MAJOR > 2
16346 db_env_create( NULL, 0 );
16347 #elif DB_VERSION_MAJOR > 1
16348 db_appexit( NULL );
16350 (void) dbopen( NULL, 0, 0, 0, NULL);
16355 if { (eval echo configure:16356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16359 echo "configure: failed program was:" >&5
16360 cat conftest.$ac_ext >&5
16370 echo "$ac_t""$ol_cv_db_db42" 1>&6
16372 if test $ol_cv_db_db42 = yes ; then
16373 ol_cv_lib_db=-ldb42
16377 if test $ol_cv_lib_db = no ; then
16378 echo $ac_n "checking for Berkeley DB link (-ldb-42)""... $ac_c" 1>&6
16379 echo "configure:16380: checking for Berkeley DB link (-ldb-42)" >&5
16380 if eval "test \"\${ol_cv_db_db_42+set}\" = set"; then
16381 echo $ac_n "(cached) $ac_c" 1>&6
16386 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16388 cat > conftest.$ac_ext <<EOF
16389 #line 16390 "configure"
16390 #include "confdefs.h"
16392 #ifdef HAVE_DB_185_H
16393 # include <db_185.h>
16398 #ifndef DB_VERSION_MAJOR
16399 # define DB_VERSION_MAJOR 1
16403 #define NULL ((void*)0)
16408 #if DB_VERSION_MAJOR > 1
16411 int major, minor, patch;
16413 version = db_version( &major, &minor, &patch );
16415 if( major != DB_VERSION_MAJOR ||
16416 minor < DB_VERSION_MINOR )
16418 printf("Berkeley DB version mismatch\n"
16419 "\texpected: %s\n\tgot: %s\n",
16420 DB_VERSION_STRING, version);
16426 #if DB_VERSION_MAJOR > 2
16427 db_env_create( NULL, 0 );
16428 #elif DB_VERSION_MAJOR > 1
16429 db_appexit( NULL );
16431 (void) dbopen( NULL, 0, 0, 0, NULL);
16436 if { (eval echo configure:16437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16440 echo "configure: failed program was:" >&5
16441 cat conftest.$ac_ext >&5
16451 echo "$ac_t""$ol_cv_db_db_42" 1>&6
16453 if test $ol_cv_db_db_42 = yes ; then
16454 ol_cv_lib_db=-ldb-42
16458 if test $ol_cv_lib_db = no ; then
16459 echo $ac_n "checking for Berkeley DB link (-ldb-4.2)""... $ac_c" 1>&6
16460 echo "configure:16461: checking for Berkeley DB link (-ldb-4.2)" >&5
16461 if eval "test \"\${ol_cv_db_db_4_dot_2+set}\" = set"; then
16462 echo $ac_n "(cached) $ac_c" 1>&6
16467 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16469 cat > conftest.$ac_ext <<EOF
16470 #line 16471 "configure"
16471 #include "confdefs.h"
16473 #ifdef HAVE_DB_185_H
16474 # include <db_185.h>
16479 #ifndef DB_VERSION_MAJOR
16480 # define DB_VERSION_MAJOR 1
16484 #define NULL ((void*)0)
16489 #if DB_VERSION_MAJOR > 1
16492 int major, minor, patch;
16494 version = db_version( &major, &minor, &patch );
16496 if( major != DB_VERSION_MAJOR ||
16497 minor < DB_VERSION_MINOR )
16499 printf("Berkeley DB version mismatch\n"
16500 "\texpected: %s\n\tgot: %s\n",
16501 DB_VERSION_STRING, version);
16507 #if DB_VERSION_MAJOR > 2
16508 db_env_create( NULL, 0 );
16509 #elif DB_VERSION_MAJOR > 1
16510 db_appexit( NULL );
16512 (void) dbopen( NULL, 0, 0, 0, NULL);
16517 if { (eval echo configure:16518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16519 ol_cv_db_db_4_dot_2=yes
16521 echo "configure: failed program was:" >&5
16522 cat conftest.$ac_ext >&5
16524 ol_cv_db_db_4_dot_2=no
16532 echo "$ac_t""$ol_cv_db_db_4_dot_2" 1>&6
16534 if test $ol_cv_db_db_4_dot_2 = yes ; then
16535 ol_cv_lib_db=-ldb-4.2
16539 if test $ol_cv_lib_db = no ; then
16540 echo $ac_n "checking for Berkeley DB link (-ldb-4-2)""... $ac_c" 1>&6
16541 echo "configure:16542: checking for Berkeley DB link (-ldb-4-2)" >&5
16542 if eval "test \"\${ol_cv_db_db_4_2+set}\" = set"; then
16543 echo $ac_n "(cached) $ac_c" 1>&6
16548 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16550 cat > conftest.$ac_ext <<EOF
16551 #line 16552 "configure"
16552 #include "confdefs.h"
16554 #ifdef HAVE_DB_185_H
16555 # include <db_185.h>
16560 #ifndef DB_VERSION_MAJOR
16561 # define DB_VERSION_MAJOR 1
16565 #define NULL ((void*)0)
16570 #if DB_VERSION_MAJOR > 1
16573 int major, minor, patch;
16575 version = db_version( &major, &minor, &patch );
16577 if( major != DB_VERSION_MAJOR ||
16578 minor < DB_VERSION_MINOR )
16580 printf("Berkeley DB version mismatch\n"
16581 "\texpected: %s\n\tgot: %s\n",
16582 DB_VERSION_STRING, version);
16588 #if DB_VERSION_MAJOR > 2
16589 db_env_create( NULL, 0 );
16590 #elif DB_VERSION_MAJOR > 1
16591 db_appexit( NULL );
16593 (void) dbopen( NULL, 0, 0, 0, NULL);
16598 if { (eval echo configure:16599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16600 ol_cv_db_db_4_2=yes
16602 echo "configure: failed program was:" >&5
16603 cat conftest.$ac_ext >&5
16613 echo "$ac_t""$ol_cv_db_db_4_2" 1>&6
16615 if test $ol_cv_db_db_4_2 = yes ; then
16616 ol_cv_lib_db=-ldb-4-2
16620 if test $ol_cv_lib_db = no ; then
16621 echo $ac_n "checking for Berkeley DB link (-ldb-4)""... $ac_c" 1>&6
16622 echo "configure:16623: checking for Berkeley DB link (-ldb-4)" >&5
16623 if eval "test \"\${ol_cv_db_db_4+set}\" = set"; then
16624 echo $ac_n "(cached) $ac_c" 1>&6
16629 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16631 cat > conftest.$ac_ext <<EOF
16632 #line 16633 "configure"
16633 #include "confdefs.h"
16635 #ifdef HAVE_DB_185_H
16636 # include <db_185.h>
16641 #ifndef DB_VERSION_MAJOR
16642 # define DB_VERSION_MAJOR 1
16646 #define NULL ((void*)0)
16651 #if DB_VERSION_MAJOR > 1
16654 int major, minor, patch;
16656 version = db_version( &major, &minor, &patch );
16658 if( major != DB_VERSION_MAJOR ||
16659 minor < DB_VERSION_MINOR )
16661 printf("Berkeley DB version mismatch\n"
16662 "\texpected: %s\n\tgot: %s\n",
16663 DB_VERSION_STRING, version);
16669 #if DB_VERSION_MAJOR > 2
16670 db_env_create( NULL, 0 );
16671 #elif DB_VERSION_MAJOR > 1
16672 db_appexit( NULL );
16674 (void) dbopen( NULL, 0, 0, 0, NULL);
16679 if { (eval echo configure:16680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16683 echo "configure: failed program was:" >&5
16684 cat conftest.$ac_ext >&5
16694 echo "$ac_t""$ol_cv_db_db_4" 1>&6
16696 if test $ol_cv_db_db_4 = yes ; then
16697 ol_cv_lib_db=-ldb-4
16701 if test $ol_cv_lib_db = no ; then
16702 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
16703 echo "configure:16704: checking for Berkeley DB link (-ldb4)" >&5
16704 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
16705 echo $ac_n "(cached) $ac_c" 1>&6
16710 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16712 cat > conftest.$ac_ext <<EOF
16713 #line 16714 "configure"
16714 #include "confdefs.h"
16716 #ifdef HAVE_DB_185_H
16717 # include <db_185.h>
16722 #ifndef DB_VERSION_MAJOR
16723 # define DB_VERSION_MAJOR 1
16727 #define NULL ((void*)0)
16732 #if DB_VERSION_MAJOR > 1
16735 int major, minor, patch;
16737 version = db_version( &major, &minor, &patch );
16739 if( major != DB_VERSION_MAJOR ||
16740 minor < DB_VERSION_MINOR )
16742 printf("Berkeley DB version mismatch\n"
16743 "\texpected: %s\n\tgot: %s\n",
16744 DB_VERSION_STRING, version);
16750 #if DB_VERSION_MAJOR > 2
16751 db_env_create( NULL, 0 );
16752 #elif DB_VERSION_MAJOR > 1
16753 db_appexit( NULL );
16755 (void) dbopen( NULL, 0, 0, 0, NULL);
16760 if { (eval echo configure:16761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16764 echo "configure: failed program was:" >&5
16765 cat conftest.$ac_ext >&5
16775 echo "$ac_t""$ol_cv_db_db4" 1>&6
16777 if test $ol_cv_db_db4 = yes ; then
16782 if test $ol_cv_lib_db = no ; then
16783 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
16784 echo "configure:16785: checking for Berkeley DB link (-ldb)" >&5
16785 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
16786 echo $ac_n "(cached) $ac_c" 1>&6
16791 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16793 cat > conftest.$ac_ext <<EOF
16794 #line 16795 "configure"
16795 #include "confdefs.h"
16797 #ifdef HAVE_DB_185_H
16798 # include <db_185.h>
16803 #ifndef DB_VERSION_MAJOR
16804 # define DB_VERSION_MAJOR 1
16808 #define NULL ((void*)0)
16813 #if DB_VERSION_MAJOR > 1
16816 int major, minor, patch;
16818 version = db_version( &major, &minor, &patch );
16820 if( major != DB_VERSION_MAJOR ||
16821 minor < DB_VERSION_MINOR )
16823 printf("Berkeley DB version mismatch\n"
16824 "\texpected: %s\n\tgot: %s\n",
16825 DB_VERSION_STRING, version);
16831 #if DB_VERSION_MAJOR > 2
16832 db_env_create( NULL, 0 );
16833 #elif DB_VERSION_MAJOR > 1
16834 db_appexit( NULL );
16836 (void) dbopen( NULL, 0, 0, 0, NULL);
16841 if { (eval echo configure:16842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16845 echo "configure: failed program was:" >&5
16846 cat conftest.$ac_ext >&5
16856 echo "$ac_t""$ol_cv_db_db" 1>&6
16858 if test $ol_cv_db_db = yes ; then
16863 if test $ol_cv_lib_db = no ; then
16864 echo $ac_n "checking for Berkeley DB link (-ldb41)""... $ac_c" 1>&6
16865 echo "configure:16866: checking for Berkeley DB link (-ldb41)" >&5
16866 if eval "test \"\${ol_cv_db_db41+set}\" = set"; then
16867 echo $ac_n "(cached) $ac_c" 1>&6
16872 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16874 cat > conftest.$ac_ext <<EOF
16875 #line 16876 "configure"
16876 #include "confdefs.h"
16878 #ifdef HAVE_DB_185_H
16879 # include <db_185.h>
16884 #ifndef DB_VERSION_MAJOR
16885 # define DB_VERSION_MAJOR 1
16889 #define NULL ((void*)0)
16894 #if DB_VERSION_MAJOR > 1
16897 int major, minor, patch;
16899 version = db_version( &major, &minor, &patch );
16901 if( major != DB_VERSION_MAJOR ||
16902 minor < DB_VERSION_MINOR )
16904 printf("Berkeley DB version mismatch\n"
16905 "\texpected: %s\n\tgot: %s\n",
16906 DB_VERSION_STRING, version);
16912 #if DB_VERSION_MAJOR > 2
16913 db_env_create( NULL, 0 );
16914 #elif DB_VERSION_MAJOR > 1
16915 db_appexit( NULL );
16917 (void) dbopen( NULL, 0, 0, 0, NULL);
16922 if { (eval echo configure:16923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16926 echo "configure: failed program was:" >&5
16927 cat conftest.$ac_ext >&5
16937 echo "$ac_t""$ol_cv_db_db41" 1>&6
16939 if test $ol_cv_db_db41 = yes ; then
16940 ol_cv_lib_db=-ldb41
16944 if test $ol_cv_lib_db = no ; then
16945 echo $ac_n "checking for Berkeley DB link (-ldb-41)""... $ac_c" 1>&6
16946 echo "configure:16947: checking for Berkeley DB link (-ldb-41)" >&5
16947 if eval "test \"\${ol_cv_db_db_41+set}\" = set"; then
16948 echo $ac_n "(cached) $ac_c" 1>&6
16953 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16955 cat > conftest.$ac_ext <<EOF
16956 #line 16957 "configure"
16957 #include "confdefs.h"
16959 #ifdef HAVE_DB_185_H
16960 # include <db_185.h>
16965 #ifndef DB_VERSION_MAJOR
16966 # define DB_VERSION_MAJOR 1
16970 #define NULL ((void*)0)
16975 #if DB_VERSION_MAJOR > 1
16978 int major, minor, patch;
16980 version = db_version( &major, &minor, &patch );
16982 if( major != DB_VERSION_MAJOR ||
16983 minor < DB_VERSION_MINOR )
16985 printf("Berkeley DB version mismatch\n"
16986 "\texpected: %s\n\tgot: %s\n",
16987 DB_VERSION_STRING, version);
16993 #if DB_VERSION_MAJOR > 2
16994 db_env_create( NULL, 0 );
16995 #elif DB_VERSION_MAJOR > 1
16996 db_appexit( NULL );
16998 (void) dbopen( NULL, 0, 0, 0, NULL);
17003 if { (eval echo configure:17004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17007 echo "configure: failed program was:" >&5
17008 cat conftest.$ac_ext >&5
17018 echo "$ac_t""$ol_cv_db_db_41" 1>&6
17020 if test $ol_cv_db_db_41 = yes ; then
17021 ol_cv_lib_db=-ldb-41
17025 if test $ol_cv_lib_db = no ; then
17026 echo $ac_n "checking for Berkeley DB link (-ldb-4.1)""... $ac_c" 1>&6
17027 echo "configure:17028: checking for Berkeley DB link (-ldb-4.1)" >&5
17028 if eval "test \"\${ol_cv_db_db_4_dot_1+set}\" = set"; then
17029 echo $ac_n "(cached) $ac_c" 1>&6
17034 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17036 cat > conftest.$ac_ext <<EOF
17037 #line 17038 "configure"
17038 #include "confdefs.h"
17040 #ifdef HAVE_DB_185_H
17041 # include <db_185.h>
17046 #ifndef DB_VERSION_MAJOR
17047 # define DB_VERSION_MAJOR 1
17051 #define NULL ((void*)0)
17056 #if DB_VERSION_MAJOR > 1
17059 int major, minor, patch;
17061 version = db_version( &major, &minor, &patch );
17063 if( major != DB_VERSION_MAJOR ||
17064 minor < DB_VERSION_MINOR )
17066 printf("Berkeley DB version mismatch\n"
17067 "\texpected: %s\n\tgot: %s\n",
17068 DB_VERSION_STRING, version);
17074 #if DB_VERSION_MAJOR > 2
17075 db_env_create( NULL, 0 );
17076 #elif DB_VERSION_MAJOR > 1
17077 db_appexit( NULL );
17079 (void) dbopen( NULL, 0, 0, 0, NULL);
17084 if { (eval echo configure:17085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17086 ol_cv_db_db_4_dot_1=yes
17088 echo "configure: failed program was:" >&5
17089 cat conftest.$ac_ext >&5
17091 ol_cv_db_db_4_dot_1=no
17099 echo "$ac_t""$ol_cv_db_db_4_dot_1" 1>&6
17101 if test $ol_cv_db_db_4_dot_1 = yes ; then
17102 ol_cv_lib_db=-ldb-4.1
17106 if test $ol_cv_lib_db = no ; then
17107 echo $ac_n "checking for Berkeley DB link (-ldb-4-1)""... $ac_c" 1>&6
17108 echo "configure:17109: checking for Berkeley DB link (-ldb-4-1)" >&5
17109 if eval "test \"\${ol_cv_db_db_4_1+set}\" = set"; then
17110 echo $ac_n "(cached) $ac_c" 1>&6
17115 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17117 cat > conftest.$ac_ext <<EOF
17118 #line 17119 "configure"
17119 #include "confdefs.h"
17121 #ifdef HAVE_DB_185_H
17122 # include <db_185.h>
17127 #ifndef DB_VERSION_MAJOR
17128 # define DB_VERSION_MAJOR 1
17132 #define NULL ((void*)0)
17137 #if DB_VERSION_MAJOR > 1
17140 int major, minor, patch;
17142 version = db_version( &major, &minor, &patch );
17144 if( major != DB_VERSION_MAJOR ||
17145 minor < DB_VERSION_MINOR )
17147 printf("Berkeley DB version mismatch\n"
17148 "\texpected: %s\n\tgot: %s\n",
17149 DB_VERSION_STRING, version);
17155 #if DB_VERSION_MAJOR > 2
17156 db_env_create( NULL, 0 );
17157 #elif DB_VERSION_MAJOR > 1
17158 db_appexit( NULL );
17160 (void) dbopen( NULL, 0, 0, 0, NULL);
17165 if { (eval echo configure:17166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17167 ol_cv_db_db_4_1=yes
17169 echo "configure: failed program was:" >&5
17170 cat conftest.$ac_ext >&5
17180 echo "$ac_t""$ol_cv_db_db_4_1" 1>&6
17182 if test $ol_cv_db_db_4_1 = yes ; then
17183 ol_cv_lib_db=-ldb-4-1
17187 if test $ol_cv_lib_db = no ; then
17188 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
17189 echo "configure:17190: checking for Berkeley DB link (-ldb3)" >&5
17190 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
17191 echo $ac_n "(cached) $ac_c" 1>&6
17196 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17198 cat > conftest.$ac_ext <<EOF
17199 #line 17200 "configure"
17200 #include "confdefs.h"
17202 #ifdef HAVE_DB_185_H
17203 # include <db_185.h>
17208 #ifndef DB_VERSION_MAJOR
17209 # define DB_VERSION_MAJOR 1
17213 #define NULL ((void*)0)
17218 #if DB_VERSION_MAJOR > 1
17221 int major, minor, patch;
17223 version = db_version( &major, &minor, &patch );
17225 if( major != DB_VERSION_MAJOR ||
17226 minor < DB_VERSION_MINOR )
17228 printf("Berkeley DB version mismatch\n"
17229 "\texpected: %s\n\tgot: %s\n",
17230 DB_VERSION_STRING, version);
17236 #if DB_VERSION_MAJOR > 2
17237 db_env_create( NULL, 0 );
17238 #elif DB_VERSION_MAJOR > 1
17239 db_appexit( NULL );
17241 (void) dbopen( NULL, 0, 0, 0, NULL);
17246 if { (eval echo configure:17247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17250 echo "configure: failed program was:" >&5
17251 cat conftest.$ac_ext >&5
17261 echo "$ac_t""$ol_cv_db_db3" 1>&6
17263 if test $ol_cv_db_db3 = yes ; then
17268 if test $ol_cv_lib_db = no ; then
17269 echo $ac_n "checking for Berkeley DB link (-ldb-3)""... $ac_c" 1>&6
17270 echo "configure:17271: checking for Berkeley DB link (-ldb-3)" >&5
17271 if eval "test \"\${ol_cv_db_db_3+set}\" = set"; then
17272 echo $ac_n "(cached) $ac_c" 1>&6
17277 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17279 cat > conftest.$ac_ext <<EOF
17280 #line 17281 "configure"
17281 #include "confdefs.h"
17283 #ifdef HAVE_DB_185_H
17284 # include <db_185.h>
17289 #ifndef DB_VERSION_MAJOR
17290 # define DB_VERSION_MAJOR 1
17294 #define NULL ((void*)0)
17299 #if DB_VERSION_MAJOR > 1
17302 int major, minor, patch;
17304 version = db_version( &major, &minor, &patch );
17306 if( major != DB_VERSION_MAJOR ||
17307 minor < DB_VERSION_MINOR )
17309 printf("Berkeley DB version mismatch\n"
17310 "\texpected: %s\n\tgot: %s\n",
17311 DB_VERSION_STRING, version);
17317 #if DB_VERSION_MAJOR > 2
17318 db_env_create( NULL, 0 );
17319 #elif DB_VERSION_MAJOR > 1
17320 db_appexit( NULL );
17322 (void) dbopen( NULL, 0, 0, 0, NULL);
17327 if { (eval echo configure:17328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17331 echo "configure: failed program was:" >&5
17332 cat conftest.$ac_ext >&5
17342 echo "$ac_t""$ol_cv_db_db_3" 1>&6
17344 if test $ol_cv_db_db_3 = yes ; then
17345 ol_cv_lib_db=-ldb-3
17349 if test $ol_cv_lib_db = no ; then
17350 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
17351 echo "configure:17352: checking for Berkeley DB link (-ldb2)" >&5
17352 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
17353 echo $ac_n "(cached) $ac_c" 1>&6
17358 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17360 cat > conftest.$ac_ext <<EOF
17361 #line 17362 "configure"
17362 #include "confdefs.h"
17364 #ifdef HAVE_DB_185_H
17365 # include <db_185.h>
17370 #ifndef DB_VERSION_MAJOR
17371 # define DB_VERSION_MAJOR 1
17375 #define NULL ((void*)0)
17380 #if DB_VERSION_MAJOR > 1
17383 int major, minor, patch;
17385 version = db_version( &major, &minor, &patch );
17387 if( major != DB_VERSION_MAJOR ||
17388 minor < DB_VERSION_MINOR )
17390 printf("Berkeley DB version mismatch\n"
17391 "\texpected: %s\n\tgot: %s\n",
17392 DB_VERSION_STRING, version);
17398 #if DB_VERSION_MAJOR > 2
17399 db_env_create( NULL, 0 );
17400 #elif DB_VERSION_MAJOR > 1
17401 db_appexit( NULL );
17403 (void) dbopen( NULL, 0, 0, 0, NULL);
17408 if { (eval echo configure:17409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17412 echo "configure: failed program was:" >&5
17413 cat conftest.$ac_ext >&5
17423 echo "$ac_t""$ol_cv_db_db2" 1>&6
17425 if test $ol_cv_db_db2 = yes ; then
17430 if test $ol_cv_lib_db = no ; then
17431 echo $ac_n "checking for Berkeley DB link (-ldb-2)""... $ac_c" 1>&6
17432 echo "configure:17433: checking for Berkeley DB link (-ldb-2)" >&5
17433 if eval "test \"\${ol_cv_db_db_2+set}\" = set"; then
17434 echo $ac_n "(cached) $ac_c" 1>&6
17439 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17441 cat > conftest.$ac_ext <<EOF
17442 #line 17443 "configure"
17443 #include "confdefs.h"
17445 #ifdef HAVE_DB_185_H
17446 # include <db_185.h>
17451 #ifndef DB_VERSION_MAJOR
17452 # define DB_VERSION_MAJOR 1
17456 #define NULL ((void*)0)
17461 #if DB_VERSION_MAJOR > 1
17464 int major, minor, patch;
17466 version = db_version( &major, &minor, &patch );
17468 if( major != DB_VERSION_MAJOR ||
17469 minor < DB_VERSION_MINOR )
17471 printf("Berkeley DB version mismatch\n"
17472 "\texpected: %s\n\tgot: %s\n",
17473 DB_VERSION_STRING, version);
17479 #if DB_VERSION_MAJOR > 2
17480 db_env_create( NULL, 0 );
17481 #elif DB_VERSION_MAJOR > 1
17482 db_appexit( NULL );
17484 (void) dbopen( NULL, 0, 0, 0, NULL);
17489 if { (eval echo configure:17490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17493 echo "configure: failed program was:" >&5
17494 cat conftest.$ac_ext >&5
17504 echo "$ac_t""$ol_cv_db_db_2" 1>&6
17506 if test $ol_cv_db_db_2 = yes ; then
17507 ol_cv_lib_db=-ldb-2
17511 if test $ol_cv_lib_db = no ; then
17512 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
17513 echo "configure:17514: checking for Berkeley DB link (-ldb1)" >&5
17514 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
17515 echo $ac_n "(cached) $ac_c" 1>&6
17520 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17522 cat > conftest.$ac_ext <<EOF
17523 #line 17524 "configure"
17524 #include "confdefs.h"
17526 #ifdef HAVE_DB_185_H
17527 # include <db_185.h>
17532 #ifndef DB_VERSION_MAJOR
17533 # define DB_VERSION_MAJOR 1
17537 #define NULL ((void*)0)
17542 #if DB_VERSION_MAJOR > 1
17545 int major, minor, patch;
17547 version = db_version( &major, &minor, &patch );
17549 if( major != DB_VERSION_MAJOR ||
17550 minor < DB_VERSION_MINOR )
17552 printf("Berkeley DB version mismatch\n"
17553 "\texpected: %s\n\tgot: %s\n",
17554 DB_VERSION_STRING, version);
17560 #if DB_VERSION_MAJOR > 2
17561 db_env_create( NULL, 0 );
17562 #elif DB_VERSION_MAJOR > 1
17563 db_appexit( NULL );
17565 (void) dbopen( NULL, 0, 0, 0, NULL);
17570 if { (eval echo configure:17571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17574 echo "configure: failed program was:" >&5
17575 cat conftest.$ac_ext >&5
17585 echo "$ac_t""$ol_cv_db_db1" 1>&6
17587 if test $ol_cv_db_db1 = yes ; then
17592 if test $ol_cv_lib_db = no ; then
17593 echo $ac_n "checking for Berkeley DB link (-ldb-1)""... $ac_c" 1>&6
17594 echo "configure:17595: checking for Berkeley DB link (-ldb-1)" >&5
17595 if eval "test \"\${ol_cv_db_db_1+set}\" = set"; then
17596 echo $ac_n "(cached) $ac_c" 1>&6
17601 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17603 cat > conftest.$ac_ext <<EOF
17604 #line 17605 "configure"
17605 #include "confdefs.h"
17607 #ifdef HAVE_DB_185_H
17608 # include <db_185.h>
17613 #ifndef DB_VERSION_MAJOR
17614 # define DB_VERSION_MAJOR 1
17618 #define NULL ((void*)0)
17623 #if DB_VERSION_MAJOR > 1
17626 int major, minor, patch;
17628 version = db_version( &major, &minor, &patch );
17630 if( major != DB_VERSION_MAJOR ||
17631 minor < DB_VERSION_MINOR )
17633 printf("Berkeley DB version mismatch\n"
17634 "\texpected: %s\n\tgot: %s\n",
17635 DB_VERSION_STRING, version);
17641 #if DB_VERSION_MAJOR > 2
17642 db_env_create( NULL, 0 );
17643 #elif DB_VERSION_MAJOR > 1
17644 db_appexit( NULL );
17646 (void) dbopen( NULL, 0, 0, 0, NULL);
17651 if { (eval echo configure:17652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17655 echo "configure: failed program was:" >&5
17656 cat conftest.$ac_ext >&5
17666 echo "$ac_t""$ol_cv_db_db_1" 1>&6
17668 if test $ol_cv_db_db_1 = yes ; then
17669 ol_cv_lib_db=-ldb-1
17674 if test "$ol_cv_lib_db" != no ; then
17675 ol_cv_berkeley_db=yes
17681 ol_cv_berkeley_db=no
17684 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17685 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17686 echo "configure:17687: checking for $ac_hdr" >&5
17687 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
17688 echo $ac_n "(cached) $ac_c" 1>&6
17690 cat > conftest.$ac_ext <<EOF
17691 #line 17692 "configure"
17692 #include "confdefs.h"
17695 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17696 { (eval echo configure:17697: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17697 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17698 if test -z "$ac_err"; then
17700 eval "ac_cv_header_$ac_safe=yes"
17703 echo "configure: failed program was:" >&5
17704 cat conftest.$ac_ext >&5
17706 eval "ac_cv_header_$ac_safe=no"
17710 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17711 echo "$ac_t""yes" 1>&6
17712 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17713 cat >> confdefs.h <<EOF
17714 #define $ac_tr_hdr 1
17718 echo "$ac_t""no" 1>&6
17722 if test $ac_cv_header_db_h = yes; then
17724 if test $ol_cv_lib_db = no ; then
17725 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
17726 echo "configure:17727: checking for Berkeley DB link (default)" >&5
17727 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
17728 echo $ac_n "(cached) $ac_c" 1>&6
17733 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17735 cat > conftest.$ac_ext <<EOF
17736 #line 17737 "configure"
17737 #include "confdefs.h"
17739 #ifdef HAVE_DB_185_H
17740 # include <db_185.h>
17745 #ifndef DB_VERSION_MAJOR
17746 # define DB_VERSION_MAJOR 1
17750 #define NULL ((void*)0)
17755 #if DB_VERSION_MAJOR > 1
17758 int major, minor, patch;
17760 version = db_version( &major, &minor, &patch );
17762 if( major != DB_VERSION_MAJOR ||
17763 minor < DB_VERSION_MINOR )
17765 printf("Berkeley DB version mismatch\n"
17766 "\texpected: %s\n\tgot: %s\n",
17767 DB_VERSION_STRING, version);
17773 #if DB_VERSION_MAJOR > 2
17774 db_env_create( NULL, 0 );
17775 #elif DB_VERSION_MAJOR > 1
17776 db_appexit( NULL );
17778 (void) dbopen( NULL, 0, 0, 0, NULL);
17783 if { (eval echo configure:17784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17787 echo "configure: failed program was:" >&5
17788 cat conftest.$ac_ext >&5
17798 echo "$ac_t""$ol_cv_db_none" 1>&6
17800 if test $ol_cv_db_none = yes ; then
17805 if test $ol_cv_lib_db = no ; then
17806 echo $ac_n "checking for Berkeley DB link (-ldb42)""... $ac_c" 1>&6
17807 echo "configure:17808: checking for Berkeley DB link (-ldb42)" >&5
17808 if eval "test \"\${ol_cv_db_db42+set}\" = set"; then
17809 echo $ac_n "(cached) $ac_c" 1>&6
17814 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17816 cat > conftest.$ac_ext <<EOF
17817 #line 17818 "configure"
17818 #include "confdefs.h"
17820 #ifdef HAVE_DB_185_H
17821 # include <db_185.h>
17826 #ifndef DB_VERSION_MAJOR
17827 # define DB_VERSION_MAJOR 1
17831 #define NULL ((void*)0)
17836 #if DB_VERSION_MAJOR > 1
17839 int major, minor, patch;
17841 version = db_version( &major, &minor, &patch );
17843 if( major != DB_VERSION_MAJOR ||
17844 minor < DB_VERSION_MINOR )
17846 printf("Berkeley DB version mismatch\n"
17847 "\texpected: %s\n\tgot: %s\n",
17848 DB_VERSION_STRING, version);
17854 #if DB_VERSION_MAJOR > 2
17855 db_env_create( NULL, 0 );
17856 #elif DB_VERSION_MAJOR > 1
17857 db_appexit( NULL );
17859 (void) dbopen( NULL, 0, 0, 0, NULL);
17864 if { (eval echo configure:17865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17868 echo "configure: failed program was:" >&5
17869 cat conftest.$ac_ext >&5
17879 echo "$ac_t""$ol_cv_db_db42" 1>&6
17881 if test $ol_cv_db_db42 = yes ; then
17882 ol_cv_lib_db=-ldb42
17886 if test $ol_cv_lib_db = no ; then
17887 echo $ac_n "checking for Berkeley DB link (-ldb-42)""... $ac_c" 1>&6
17888 echo "configure:17889: checking for Berkeley DB link (-ldb-42)" >&5
17889 if eval "test \"\${ol_cv_db_db_42+set}\" = set"; then
17890 echo $ac_n "(cached) $ac_c" 1>&6
17895 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17897 cat > conftest.$ac_ext <<EOF
17898 #line 17899 "configure"
17899 #include "confdefs.h"
17901 #ifdef HAVE_DB_185_H
17902 # include <db_185.h>
17907 #ifndef DB_VERSION_MAJOR
17908 # define DB_VERSION_MAJOR 1
17912 #define NULL ((void*)0)
17917 #if DB_VERSION_MAJOR > 1
17920 int major, minor, patch;
17922 version = db_version( &major, &minor, &patch );
17924 if( major != DB_VERSION_MAJOR ||
17925 minor < DB_VERSION_MINOR )
17927 printf("Berkeley DB version mismatch\n"
17928 "\texpected: %s\n\tgot: %s\n",
17929 DB_VERSION_STRING, version);
17935 #if DB_VERSION_MAJOR > 2
17936 db_env_create( NULL, 0 );
17937 #elif DB_VERSION_MAJOR > 1
17938 db_appexit( NULL );
17940 (void) dbopen( NULL, 0, 0, 0, NULL);
17945 if { (eval echo configure:17946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17949 echo "configure: failed program was:" >&5
17950 cat conftest.$ac_ext >&5
17960 echo "$ac_t""$ol_cv_db_db_42" 1>&6
17962 if test $ol_cv_db_db_42 = yes ; then
17963 ol_cv_lib_db=-ldb-42
17967 if test $ol_cv_lib_db = no ; then
17968 echo $ac_n "checking for Berkeley DB link (-ldb-4.2)""... $ac_c" 1>&6
17969 echo "configure:17970: checking for Berkeley DB link (-ldb-4.2)" >&5
17970 if eval "test \"\${ol_cv_db_db_4_dot_2+set}\" = set"; then
17971 echo $ac_n "(cached) $ac_c" 1>&6
17976 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17978 cat > conftest.$ac_ext <<EOF
17979 #line 17980 "configure"
17980 #include "confdefs.h"
17982 #ifdef HAVE_DB_185_H
17983 # include <db_185.h>
17988 #ifndef DB_VERSION_MAJOR
17989 # define DB_VERSION_MAJOR 1
17993 #define NULL ((void*)0)
17998 #if DB_VERSION_MAJOR > 1
18001 int major, minor, patch;
18003 version = db_version( &major, &minor, &patch );
18005 if( major != DB_VERSION_MAJOR ||
18006 minor < DB_VERSION_MINOR )
18008 printf("Berkeley DB version mismatch\n"
18009 "\texpected: %s\n\tgot: %s\n",
18010 DB_VERSION_STRING, version);
18016 #if DB_VERSION_MAJOR > 2
18017 db_env_create( NULL, 0 );
18018 #elif DB_VERSION_MAJOR > 1
18019 db_appexit( NULL );
18021 (void) dbopen( NULL, 0, 0, 0, NULL);
18026 if { (eval echo configure:18027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18028 ol_cv_db_db_4_dot_2=yes
18030 echo "configure: failed program was:" >&5
18031 cat conftest.$ac_ext >&5
18033 ol_cv_db_db_4_dot_2=no
18041 echo "$ac_t""$ol_cv_db_db_4_dot_2" 1>&6
18043 if test $ol_cv_db_db_4_dot_2 = yes ; then
18044 ol_cv_lib_db=-ldb-4.2
18048 if test $ol_cv_lib_db = no ; then
18049 echo $ac_n "checking for Berkeley DB link (-ldb-4-2)""... $ac_c" 1>&6
18050 echo "configure:18051: checking for Berkeley DB link (-ldb-4-2)" >&5
18051 if eval "test \"\${ol_cv_db_db_4_2+set}\" = set"; then
18052 echo $ac_n "(cached) $ac_c" 1>&6
18057 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18059 cat > conftest.$ac_ext <<EOF
18060 #line 18061 "configure"
18061 #include "confdefs.h"
18063 #ifdef HAVE_DB_185_H
18064 # include <db_185.h>
18069 #ifndef DB_VERSION_MAJOR
18070 # define DB_VERSION_MAJOR 1
18074 #define NULL ((void*)0)
18079 #if DB_VERSION_MAJOR > 1
18082 int major, minor, patch;
18084 version = db_version( &major, &minor, &patch );
18086 if( major != DB_VERSION_MAJOR ||
18087 minor < DB_VERSION_MINOR )
18089 printf("Berkeley DB version mismatch\n"
18090 "\texpected: %s\n\tgot: %s\n",
18091 DB_VERSION_STRING, version);
18097 #if DB_VERSION_MAJOR > 2
18098 db_env_create( NULL, 0 );
18099 #elif DB_VERSION_MAJOR > 1
18100 db_appexit( NULL );
18102 (void) dbopen( NULL, 0, 0, 0, NULL);
18107 if { (eval echo configure:18108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18109 ol_cv_db_db_4_2=yes
18111 echo "configure: failed program was:" >&5
18112 cat conftest.$ac_ext >&5
18122 echo "$ac_t""$ol_cv_db_db_4_2" 1>&6
18124 if test $ol_cv_db_db_4_2 = yes ; then
18125 ol_cv_lib_db=-ldb-4-2
18129 if test $ol_cv_lib_db = no ; then
18130 echo $ac_n "checking for Berkeley DB link (-ldb-4)""... $ac_c" 1>&6
18131 echo "configure:18132: checking for Berkeley DB link (-ldb-4)" >&5
18132 if eval "test \"\${ol_cv_db_db_4+set}\" = set"; then
18133 echo $ac_n "(cached) $ac_c" 1>&6
18138 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18140 cat > conftest.$ac_ext <<EOF
18141 #line 18142 "configure"
18142 #include "confdefs.h"
18144 #ifdef HAVE_DB_185_H
18145 # include <db_185.h>
18150 #ifndef DB_VERSION_MAJOR
18151 # define DB_VERSION_MAJOR 1
18155 #define NULL ((void*)0)
18160 #if DB_VERSION_MAJOR > 1
18163 int major, minor, patch;
18165 version = db_version( &major, &minor, &patch );
18167 if( major != DB_VERSION_MAJOR ||
18168 minor < DB_VERSION_MINOR )
18170 printf("Berkeley DB version mismatch\n"
18171 "\texpected: %s\n\tgot: %s\n",
18172 DB_VERSION_STRING, version);
18178 #if DB_VERSION_MAJOR > 2
18179 db_env_create( NULL, 0 );
18180 #elif DB_VERSION_MAJOR > 1
18181 db_appexit( NULL );
18183 (void) dbopen( NULL, 0, 0, 0, NULL);
18188 if { (eval echo configure:18189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18192 echo "configure: failed program was:" >&5
18193 cat conftest.$ac_ext >&5
18203 echo "$ac_t""$ol_cv_db_db_4" 1>&6
18205 if test $ol_cv_db_db_4 = yes ; then
18206 ol_cv_lib_db=-ldb-4
18210 if test $ol_cv_lib_db = no ; then
18211 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
18212 echo "configure:18213: checking for Berkeley DB link (-ldb4)" >&5
18213 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
18214 echo $ac_n "(cached) $ac_c" 1>&6
18219 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18221 cat > conftest.$ac_ext <<EOF
18222 #line 18223 "configure"
18223 #include "confdefs.h"
18225 #ifdef HAVE_DB_185_H
18226 # include <db_185.h>
18231 #ifndef DB_VERSION_MAJOR
18232 # define DB_VERSION_MAJOR 1
18236 #define NULL ((void*)0)
18241 #if DB_VERSION_MAJOR > 1
18244 int major, minor, patch;
18246 version = db_version( &major, &minor, &patch );
18248 if( major != DB_VERSION_MAJOR ||
18249 minor < DB_VERSION_MINOR )
18251 printf("Berkeley DB version mismatch\n"
18252 "\texpected: %s\n\tgot: %s\n",
18253 DB_VERSION_STRING, version);
18259 #if DB_VERSION_MAJOR > 2
18260 db_env_create( NULL, 0 );
18261 #elif DB_VERSION_MAJOR > 1
18262 db_appexit( NULL );
18264 (void) dbopen( NULL, 0, 0, 0, NULL);
18269 if { (eval echo configure:18270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18273 echo "configure: failed program was:" >&5
18274 cat conftest.$ac_ext >&5
18284 echo "$ac_t""$ol_cv_db_db4" 1>&6
18286 if test $ol_cv_db_db4 = yes ; then
18291 if test $ol_cv_lib_db = no ; then
18292 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
18293 echo "configure:18294: checking for Berkeley DB link (-ldb)" >&5
18294 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
18295 echo $ac_n "(cached) $ac_c" 1>&6
18300 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18302 cat > conftest.$ac_ext <<EOF
18303 #line 18304 "configure"
18304 #include "confdefs.h"
18306 #ifdef HAVE_DB_185_H
18307 # include <db_185.h>
18312 #ifndef DB_VERSION_MAJOR
18313 # define DB_VERSION_MAJOR 1
18317 #define NULL ((void*)0)
18322 #if DB_VERSION_MAJOR > 1
18325 int major, minor, patch;
18327 version = db_version( &major, &minor, &patch );
18329 if( major != DB_VERSION_MAJOR ||
18330 minor < DB_VERSION_MINOR )
18332 printf("Berkeley DB version mismatch\n"
18333 "\texpected: %s\n\tgot: %s\n",
18334 DB_VERSION_STRING, version);
18340 #if DB_VERSION_MAJOR > 2
18341 db_env_create( NULL, 0 );
18342 #elif DB_VERSION_MAJOR > 1
18343 db_appexit( NULL );
18345 (void) dbopen( NULL, 0, 0, 0, NULL);
18350 if { (eval echo configure:18351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18354 echo "configure: failed program was:" >&5
18355 cat conftest.$ac_ext >&5
18365 echo "$ac_t""$ol_cv_db_db" 1>&6
18367 if test $ol_cv_db_db = yes ; then
18372 if test $ol_cv_lib_db = no ; then
18373 echo $ac_n "checking for Berkeley DB link (-ldb41)""... $ac_c" 1>&6
18374 echo "configure:18375: checking for Berkeley DB link (-ldb41)" >&5
18375 if eval "test \"\${ol_cv_db_db41+set}\" = set"; then
18376 echo $ac_n "(cached) $ac_c" 1>&6
18381 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18383 cat > conftest.$ac_ext <<EOF
18384 #line 18385 "configure"
18385 #include "confdefs.h"
18387 #ifdef HAVE_DB_185_H
18388 # include <db_185.h>
18393 #ifndef DB_VERSION_MAJOR
18394 # define DB_VERSION_MAJOR 1
18398 #define NULL ((void*)0)
18403 #if DB_VERSION_MAJOR > 1
18406 int major, minor, patch;
18408 version = db_version( &major, &minor, &patch );
18410 if( major != DB_VERSION_MAJOR ||
18411 minor < DB_VERSION_MINOR )
18413 printf("Berkeley DB version mismatch\n"
18414 "\texpected: %s\n\tgot: %s\n",
18415 DB_VERSION_STRING, version);
18421 #if DB_VERSION_MAJOR > 2
18422 db_env_create( NULL, 0 );
18423 #elif DB_VERSION_MAJOR > 1
18424 db_appexit( NULL );
18426 (void) dbopen( NULL, 0, 0, 0, NULL);
18431 if { (eval echo configure:18432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18435 echo "configure: failed program was:" >&5
18436 cat conftest.$ac_ext >&5
18446 echo "$ac_t""$ol_cv_db_db41" 1>&6
18448 if test $ol_cv_db_db41 = yes ; then
18449 ol_cv_lib_db=-ldb41
18453 if test $ol_cv_lib_db = no ; then
18454 echo $ac_n "checking for Berkeley DB link (-ldb-41)""... $ac_c" 1>&6
18455 echo "configure:18456: checking for Berkeley DB link (-ldb-41)" >&5
18456 if eval "test \"\${ol_cv_db_db_41+set}\" = set"; then
18457 echo $ac_n "(cached) $ac_c" 1>&6
18462 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18464 cat > conftest.$ac_ext <<EOF
18465 #line 18466 "configure"
18466 #include "confdefs.h"
18468 #ifdef HAVE_DB_185_H
18469 # include <db_185.h>
18474 #ifndef DB_VERSION_MAJOR
18475 # define DB_VERSION_MAJOR 1
18479 #define NULL ((void*)0)
18484 #if DB_VERSION_MAJOR > 1
18487 int major, minor, patch;
18489 version = db_version( &major, &minor, &patch );
18491 if( major != DB_VERSION_MAJOR ||
18492 minor < DB_VERSION_MINOR )
18494 printf("Berkeley DB version mismatch\n"
18495 "\texpected: %s\n\tgot: %s\n",
18496 DB_VERSION_STRING, version);
18502 #if DB_VERSION_MAJOR > 2
18503 db_env_create( NULL, 0 );
18504 #elif DB_VERSION_MAJOR > 1
18505 db_appexit( NULL );
18507 (void) dbopen( NULL, 0, 0, 0, NULL);
18512 if { (eval echo configure:18513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18516 echo "configure: failed program was:" >&5
18517 cat conftest.$ac_ext >&5
18527 echo "$ac_t""$ol_cv_db_db_41" 1>&6
18529 if test $ol_cv_db_db_41 = yes ; then
18530 ol_cv_lib_db=-ldb-41
18534 if test $ol_cv_lib_db = no ; then
18535 echo $ac_n "checking for Berkeley DB link (-ldb-4.1)""... $ac_c" 1>&6
18536 echo "configure:18537: checking for Berkeley DB link (-ldb-4.1)" >&5
18537 if eval "test \"\${ol_cv_db_db_4_dot_1+set}\" = set"; then
18538 echo $ac_n "(cached) $ac_c" 1>&6
18543 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18545 cat > conftest.$ac_ext <<EOF
18546 #line 18547 "configure"
18547 #include "confdefs.h"
18549 #ifdef HAVE_DB_185_H
18550 # include <db_185.h>
18555 #ifndef DB_VERSION_MAJOR
18556 # define DB_VERSION_MAJOR 1
18560 #define NULL ((void*)0)
18565 #if DB_VERSION_MAJOR > 1
18568 int major, minor, patch;
18570 version = db_version( &major, &minor, &patch );
18572 if( major != DB_VERSION_MAJOR ||
18573 minor < DB_VERSION_MINOR )
18575 printf("Berkeley DB version mismatch\n"
18576 "\texpected: %s\n\tgot: %s\n",
18577 DB_VERSION_STRING, version);
18583 #if DB_VERSION_MAJOR > 2
18584 db_env_create( NULL, 0 );
18585 #elif DB_VERSION_MAJOR > 1
18586 db_appexit( NULL );
18588 (void) dbopen( NULL, 0, 0, 0, NULL);
18593 if { (eval echo configure:18594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18595 ol_cv_db_db_4_dot_1=yes
18597 echo "configure: failed program was:" >&5
18598 cat conftest.$ac_ext >&5
18600 ol_cv_db_db_4_dot_1=no
18608 echo "$ac_t""$ol_cv_db_db_4_dot_1" 1>&6
18610 if test $ol_cv_db_db_4_dot_1 = yes ; then
18611 ol_cv_lib_db=-ldb-4.1
18615 if test $ol_cv_lib_db = no ; then
18616 echo $ac_n "checking for Berkeley DB link (-ldb-4-1)""... $ac_c" 1>&6
18617 echo "configure:18618: checking for Berkeley DB link (-ldb-4-1)" >&5
18618 if eval "test \"\${ol_cv_db_db_4_1+set}\" = set"; then
18619 echo $ac_n "(cached) $ac_c" 1>&6
18624 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18626 cat > conftest.$ac_ext <<EOF
18627 #line 18628 "configure"
18628 #include "confdefs.h"
18630 #ifdef HAVE_DB_185_H
18631 # include <db_185.h>
18636 #ifndef DB_VERSION_MAJOR
18637 # define DB_VERSION_MAJOR 1
18641 #define NULL ((void*)0)
18646 #if DB_VERSION_MAJOR > 1
18649 int major, minor, patch;
18651 version = db_version( &major, &minor, &patch );
18653 if( major != DB_VERSION_MAJOR ||
18654 minor < DB_VERSION_MINOR )
18656 printf("Berkeley DB version mismatch\n"
18657 "\texpected: %s\n\tgot: %s\n",
18658 DB_VERSION_STRING, version);
18664 #if DB_VERSION_MAJOR > 2
18665 db_env_create( NULL, 0 );
18666 #elif DB_VERSION_MAJOR > 1
18667 db_appexit( NULL );
18669 (void) dbopen( NULL, 0, 0, 0, NULL);
18674 if { (eval echo configure:18675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18676 ol_cv_db_db_4_1=yes
18678 echo "configure: failed program was:" >&5
18679 cat conftest.$ac_ext >&5
18689 echo "$ac_t""$ol_cv_db_db_4_1" 1>&6
18691 if test $ol_cv_db_db_4_1 = yes ; then
18692 ol_cv_lib_db=-ldb-4-1
18696 if test $ol_cv_lib_db = no ; then
18697 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
18698 echo "configure:18699: checking for Berkeley DB link (-ldb3)" >&5
18699 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
18700 echo $ac_n "(cached) $ac_c" 1>&6
18705 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18707 cat > conftest.$ac_ext <<EOF
18708 #line 18709 "configure"
18709 #include "confdefs.h"
18711 #ifdef HAVE_DB_185_H
18712 # include <db_185.h>
18717 #ifndef DB_VERSION_MAJOR
18718 # define DB_VERSION_MAJOR 1
18722 #define NULL ((void*)0)
18727 #if DB_VERSION_MAJOR > 1
18730 int major, minor, patch;
18732 version = db_version( &major, &minor, &patch );
18734 if( major != DB_VERSION_MAJOR ||
18735 minor < DB_VERSION_MINOR )
18737 printf("Berkeley DB version mismatch\n"
18738 "\texpected: %s\n\tgot: %s\n",
18739 DB_VERSION_STRING, version);
18745 #if DB_VERSION_MAJOR > 2
18746 db_env_create( NULL, 0 );
18747 #elif DB_VERSION_MAJOR > 1
18748 db_appexit( NULL );
18750 (void) dbopen( NULL, 0, 0, 0, NULL);
18755 if { (eval echo configure:18756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18759 echo "configure: failed program was:" >&5
18760 cat conftest.$ac_ext >&5
18770 echo "$ac_t""$ol_cv_db_db3" 1>&6
18772 if test $ol_cv_db_db3 = yes ; then
18777 if test $ol_cv_lib_db = no ; then
18778 echo $ac_n "checking for Berkeley DB link (-ldb-3)""... $ac_c" 1>&6
18779 echo "configure:18780: checking for Berkeley DB link (-ldb-3)" >&5
18780 if eval "test \"\${ol_cv_db_db_3+set}\" = set"; then
18781 echo $ac_n "(cached) $ac_c" 1>&6
18786 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18788 cat > conftest.$ac_ext <<EOF
18789 #line 18790 "configure"
18790 #include "confdefs.h"
18792 #ifdef HAVE_DB_185_H
18793 # include <db_185.h>
18798 #ifndef DB_VERSION_MAJOR
18799 # define DB_VERSION_MAJOR 1
18803 #define NULL ((void*)0)
18808 #if DB_VERSION_MAJOR > 1
18811 int major, minor, patch;
18813 version = db_version( &major, &minor, &patch );
18815 if( major != DB_VERSION_MAJOR ||
18816 minor < DB_VERSION_MINOR )
18818 printf("Berkeley DB version mismatch\n"
18819 "\texpected: %s\n\tgot: %s\n",
18820 DB_VERSION_STRING, version);
18826 #if DB_VERSION_MAJOR > 2
18827 db_env_create( NULL, 0 );
18828 #elif DB_VERSION_MAJOR > 1
18829 db_appexit( NULL );
18831 (void) dbopen( NULL, 0, 0, 0, NULL);
18836 if { (eval echo configure:18837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18840 echo "configure: failed program was:" >&5
18841 cat conftest.$ac_ext >&5
18851 echo "$ac_t""$ol_cv_db_db_3" 1>&6
18853 if test $ol_cv_db_db_3 = yes ; then
18854 ol_cv_lib_db=-ldb-3
18858 if test $ol_cv_lib_db = no ; then
18859 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
18860 echo "configure:18861: checking for Berkeley DB link (-ldb2)" >&5
18861 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
18862 echo $ac_n "(cached) $ac_c" 1>&6
18867 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18869 cat > conftest.$ac_ext <<EOF
18870 #line 18871 "configure"
18871 #include "confdefs.h"
18873 #ifdef HAVE_DB_185_H
18874 # include <db_185.h>
18879 #ifndef DB_VERSION_MAJOR
18880 # define DB_VERSION_MAJOR 1
18884 #define NULL ((void*)0)
18889 #if DB_VERSION_MAJOR > 1
18892 int major, minor, patch;
18894 version = db_version( &major, &minor, &patch );
18896 if( major != DB_VERSION_MAJOR ||
18897 minor < DB_VERSION_MINOR )
18899 printf("Berkeley DB version mismatch\n"
18900 "\texpected: %s\n\tgot: %s\n",
18901 DB_VERSION_STRING, version);
18907 #if DB_VERSION_MAJOR > 2
18908 db_env_create( NULL, 0 );
18909 #elif DB_VERSION_MAJOR > 1
18910 db_appexit( NULL );
18912 (void) dbopen( NULL, 0, 0, 0, NULL);
18917 if { (eval echo configure:18918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18921 echo "configure: failed program was:" >&5
18922 cat conftest.$ac_ext >&5
18932 echo "$ac_t""$ol_cv_db_db2" 1>&6
18934 if test $ol_cv_db_db2 = yes ; then
18939 if test $ol_cv_lib_db = no ; then
18940 echo $ac_n "checking for Berkeley DB link (-ldb-2)""... $ac_c" 1>&6
18941 echo "configure:18942: checking for Berkeley DB link (-ldb-2)" >&5
18942 if eval "test \"\${ol_cv_db_db_2+set}\" = set"; then
18943 echo $ac_n "(cached) $ac_c" 1>&6
18948 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18950 cat > conftest.$ac_ext <<EOF
18951 #line 18952 "configure"
18952 #include "confdefs.h"
18954 #ifdef HAVE_DB_185_H
18955 # include <db_185.h>
18960 #ifndef DB_VERSION_MAJOR
18961 # define DB_VERSION_MAJOR 1
18965 #define NULL ((void*)0)
18970 #if DB_VERSION_MAJOR > 1
18973 int major, minor, patch;
18975 version = db_version( &major, &minor, &patch );
18977 if( major != DB_VERSION_MAJOR ||
18978 minor < DB_VERSION_MINOR )
18980 printf("Berkeley DB version mismatch\n"
18981 "\texpected: %s\n\tgot: %s\n",
18982 DB_VERSION_STRING, version);
18988 #if DB_VERSION_MAJOR > 2
18989 db_env_create( NULL, 0 );
18990 #elif DB_VERSION_MAJOR > 1
18991 db_appexit( NULL );
18993 (void) dbopen( NULL, 0, 0, 0, NULL);
18998 if { (eval echo configure:18999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19002 echo "configure: failed program was:" >&5
19003 cat conftest.$ac_ext >&5
19013 echo "$ac_t""$ol_cv_db_db_2" 1>&6
19015 if test $ol_cv_db_db_2 = yes ; then
19016 ol_cv_lib_db=-ldb-2
19020 if test $ol_cv_lib_db = no ; then
19021 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
19022 echo "configure:19023: checking for Berkeley DB link (-ldb1)" >&5
19023 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
19024 echo $ac_n "(cached) $ac_c" 1>&6
19029 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19031 cat > conftest.$ac_ext <<EOF
19032 #line 19033 "configure"
19033 #include "confdefs.h"
19035 #ifdef HAVE_DB_185_H
19036 # include <db_185.h>
19041 #ifndef DB_VERSION_MAJOR
19042 # define DB_VERSION_MAJOR 1
19046 #define NULL ((void*)0)
19051 #if DB_VERSION_MAJOR > 1
19054 int major, minor, patch;
19056 version = db_version( &major, &minor, &patch );
19058 if( major != DB_VERSION_MAJOR ||
19059 minor < DB_VERSION_MINOR )
19061 printf("Berkeley DB version mismatch\n"
19062 "\texpected: %s\n\tgot: %s\n",
19063 DB_VERSION_STRING, version);
19069 #if DB_VERSION_MAJOR > 2
19070 db_env_create( NULL, 0 );
19071 #elif DB_VERSION_MAJOR > 1
19072 db_appexit( NULL );
19074 (void) dbopen( NULL, 0, 0, 0, NULL);
19079 if { (eval echo configure:19080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19083 echo "configure: failed program was:" >&5
19084 cat conftest.$ac_ext >&5
19094 echo "$ac_t""$ol_cv_db_db1" 1>&6
19096 if test $ol_cv_db_db1 = yes ; then
19101 if test $ol_cv_lib_db = no ; then
19102 echo $ac_n "checking for Berkeley DB link (-ldb-1)""... $ac_c" 1>&6
19103 echo "configure:19104: checking for Berkeley DB link (-ldb-1)" >&5
19104 if eval "test \"\${ol_cv_db_db_1+set}\" = set"; then
19105 echo $ac_n "(cached) $ac_c" 1>&6
19110 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19112 cat > conftest.$ac_ext <<EOF
19113 #line 19114 "configure"
19114 #include "confdefs.h"
19116 #ifdef HAVE_DB_185_H
19117 # include <db_185.h>
19122 #ifndef DB_VERSION_MAJOR
19123 # define DB_VERSION_MAJOR 1
19127 #define NULL ((void*)0)
19132 #if DB_VERSION_MAJOR > 1
19135 int major, minor, patch;
19137 version = db_version( &major, &minor, &patch );
19139 if( major != DB_VERSION_MAJOR ||
19140 minor < DB_VERSION_MINOR )
19142 printf("Berkeley DB version mismatch\n"
19143 "\texpected: %s\n\tgot: %s\n",
19144 DB_VERSION_STRING, version);
19150 #if DB_VERSION_MAJOR > 2
19151 db_env_create( NULL, 0 );
19152 #elif DB_VERSION_MAJOR > 1
19153 db_appexit( NULL );
19155 (void) dbopen( NULL, 0, 0, 0, NULL);
19160 if { (eval echo configure:19161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19164 echo "configure: failed program was:" >&5
19165 cat conftest.$ac_ext >&5
19175 echo "$ac_t""$ol_cv_db_db_1" 1>&6
19177 if test $ol_cv_db_db_1 = yes ; then
19178 ol_cv_lib_db=-ldb-1
19183 if test "$ol_cv_lib_db" != no ; then
19184 ol_cv_berkeley_db=yes
19185 echo $ac_n "checking for Berkeley DB thread support""... $ac_c" 1>&6
19186 echo "configure:19187: checking for Berkeley DB thread support" >&5
19187 if eval "test \"\${ol_cv_berkeley_db_thread+set}\" = set"; then
19188 echo $ac_n "(cached) $ac_c" 1>&6
19192 LIBS="$LTHREAD_LIBS $LIBS"
19193 if test $ol_cv_lib_db != yes ; then
19194 LIBS="$ol_cv_lib_db $LIBS"
19197 if test "$cross_compiling" = yes; then
19198 ol_cv_berkeley_db_thread=cross
19200 cat > conftest.$ac_ext <<EOF
19201 #line 19202 "configure"
19202 #include "confdefs.h"
19204 #ifdef HAVE_DB_185_H
19210 #define NULL ((void *)0)
19215 u_int32_t flags = DB_CREATE |
19221 #if DB_VERSION_MAJOR > 2
19222 DB_ENV *env = NULL;
19224 rc = db_env_create( &env, 0 );
19226 flags |= DB_INIT_MPOOL;
19227 #ifdef DB_MPOOL_PRIVATE
19228 flags |= DB_MPOOL_PRIVATE;
19232 printf("BerkeleyDB: %s\n", db_strerror(rc) );
19236 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
19237 rc = env->open( env, NULL, flags, 0 );
19239 rc = env->open( env, NULL, NULL, flags, 0 );
19243 rc = env->close( env, 0 );
19247 printf("BerkeleyDB: %s\n", db_strerror(rc) );
19253 memset( &env, '\0', sizeof(env) );
19255 rc = db_appinit( NULL, NULL, &env, flags );
19258 db_appexit( &env );
19261 unlink("__db_mpool.share");
19262 unlink("__db_lock.share");
19268 if { (eval echo configure:19269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
19270 ol_cv_berkeley_db_thread=yes
19272 echo "configure: failed program was:" >&5
19273 cat conftest.$ac_ext >&5
19275 ol_cv_berkeley_db_thread=no
19285 echo "$ac_t""$ol_cv_berkeley_db_thread" 1>&6
19287 if test $ol_cv_berkeley_db_thread != no ; then
19288 cat >> confdefs.h <<\EOF
19289 #define HAVE_BERKELEY_DB_THREAD 1
19299 if test $ol_cv_berkeley_db != no ; then
19300 cat >> confdefs.h <<\EOF
19301 #define HAVE_BERKELEY_DB 1
19305 ol_link_ldbm=berkeley
19306 ol_with_ldbm_api=berkeley
19308 if test $ol_with_ldbm_type = hash ; then
19309 cat >> confdefs.h <<\EOF
19310 #define LDBM_USE_DBHASH 1
19314 cat >> confdefs.h <<\EOF
19315 #define LDBM_USE_DBBTREE 1
19320 if test $ol_cv_lib_db != yes ; then
19321 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
19326 if test $ol_enable_bdb = yes -a $ol_link_ldbm != berkeley ; then
19327 { echo "configure: error: BDB: BerkeleyDB not available" 1>&2; exit 1; }
19328 elif test $ol_enable_bdb != no -a $ol_link_ldbm = berkeley ; then
19329 echo $ac_n "checking Berkeley DB version for BDB backend""... $ac_c" 1>&6
19330 echo "configure:19331: checking Berkeley DB version for BDB backend" >&5
19331 if eval "test \"\${ol_cv_bdb_compat+set}\" = set"; then
19332 echo $ac_n "(cached) $ac_c" 1>&6
19335 cat > conftest.$ac_ext <<EOF
19336 #line 19337 "configure"
19337 #include "confdefs.h"
19341 /* this check could be improved */
19342 #ifndef DB_VERSION_MAJOR
19343 # define DB_VERSION_MAJOR 1
19345 #ifndef DB_VERSION_MINOR
19346 # define DB_VERSION_MINOR 0
19349 /* require 4.2 or later */
19350 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2)
19351 __db_version_compat
19355 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19356 egrep "__db_version_compat" >/dev/null 2>&1; then
19358 ol_cv_bdb_compat=yes
19361 ol_cv_bdb_compat=no
19367 echo "$ac_t""$ol_cv_bdb_compat" 1>&6
19370 if test $ol_cv_bdb_compat = yes ; then
19372 elif test $ol_enable_bdb = yes ; then
19373 { echo "configure: error: BDB: BerkeleyDB version incompatible" 1>&2; exit 1; }
19378 if test $ol_enable_hdb = yes -a $ol_link_ldbm != berkeley ; then
19379 { echo "configure: error: HDB: BerkeleyDB not available" 1>&2; exit 1; }
19382 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
19383 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
19384 ol_with_ldbm_api=none
19387 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
19388 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
19389 echo "configure:19390: checking for MDBM library" >&5
19390 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
19391 echo $ac_n "(cached) $ac_c" 1>&6
19394 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
19395 echo "configure:19396: checking for mdbm_set_chain" >&5
19396 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
19397 echo $ac_n "(cached) $ac_c" 1>&6
19399 cat > conftest.$ac_ext <<EOF
19400 #line 19401 "configure"
19401 #include "confdefs.h"
19402 /* System header to define __stub macros and hopefully few prototypes,
19403 which can conflict with char mdbm_set_chain(); below. */
19404 #include <assert.h>
19405 /* Override any gcc2 internal prototype to avoid an error. */
19406 /* We use char because int might match the return type of a gcc2
19407 builtin and then its argument prototype would still apply. */
19408 char mdbm_set_chain();
19413 /* The GNU C library defines this for functions which it implements
19414 to always fail with ENOSYS. Some functions are actually named
19415 something starting with __ and the normal name is an alias. */
19416 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
19419 f = mdbm_set_chain;
19424 if { (eval echo configure:19425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19426 eval "ac_cv_func_mdbm_set_chain=yes"
19428 echo "configure: failed program was:" >&5
19429 cat conftest.$ac_ext >&5
19431 eval "ac_cv_func_mdbm_set_chain=no"
19436 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
19437 echo "$ac_t""yes" 1>&6
19440 echo "$ac_t""no" 1>&6
19442 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
19443 echo "configure:19444: checking for mdbm_set_chain in -lmdbm" >&5
19444 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
19445 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19446 echo $ac_n "(cached) $ac_c" 1>&6
19448 ac_save_LIBS="$LIBS"
19449 LIBS="-lmdbm $LIBS"
19450 cat > conftest.$ac_ext <<EOF
19451 #line 19452 "configure"
19452 #include "confdefs.h"
19453 /* Override any gcc2 internal prototype to avoid an error. */
19454 /* We use char because int might match the return type of a gcc2
19455 builtin and then its argument prototype would still apply. */
19456 char mdbm_set_chain();
19462 if { (eval echo configure:19463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19464 eval "ac_cv_lib_$ac_lib_var=yes"
19466 echo "configure: failed program was:" >&5
19467 cat conftest.$ac_ext >&5
19469 eval "ac_cv_lib_$ac_lib_var=no"
19472 LIBS="$ac_save_LIBS"
19475 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19476 echo "$ac_t""yes" 1>&6
19477 ol_cv_lib_mdbm=-lmdbm
19479 echo "$ac_t""no" 1>&6
19490 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
19493 for ac_hdr in mdbm.h
19495 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19496 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19497 echo "configure:19498: checking for $ac_hdr" >&5
19498 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19499 echo $ac_n "(cached) $ac_c" 1>&6
19501 cat > conftest.$ac_ext <<EOF
19502 #line 19503 "configure"
19503 #include "confdefs.h"
19506 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19507 { (eval echo configure:19508: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19508 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19509 if test -z "$ac_err"; then
19511 eval "ac_cv_header_$ac_safe=yes"
19514 echo "configure: failed program was:" >&5
19515 cat conftest.$ac_ext >&5
19517 eval "ac_cv_header_$ac_safe=no"
19521 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19522 echo "$ac_t""yes" 1>&6
19523 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19524 cat >> confdefs.h <<EOF
19525 #define $ac_tr_hdr 1
19529 echo "$ac_t""no" 1>&6
19533 echo $ac_n "checking for db""... $ac_c" 1>&6
19534 echo "configure:19535: checking for db" >&5
19535 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
19536 echo $ac_n "(cached) $ac_c" 1>&6
19539 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
19547 echo "$ac_t""$ol_cv_mdbm" 1>&6
19548 if test $ol_cv_mdbm = yes ; then
19549 cat >> confdefs.h <<\EOF
19550 #define HAVE_MDBM 1
19556 if test $ol_cv_mdbm = yes ; then
19558 ol_with_ldbm_api=mdbm
19559 if test $ol_cv_lib_mdbm != yes ; then
19560 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
19565 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
19566 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
19567 echo "configure:19568: checking for GDBM library" >&5
19568 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
19569 echo $ac_n "(cached) $ac_c" 1>&6
19572 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
19573 echo "configure:19574: checking for gdbm_open" >&5
19574 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
19575 echo $ac_n "(cached) $ac_c" 1>&6
19577 cat > conftest.$ac_ext <<EOF
19578 #line 19579 "configure"
19579 #include "confdefs.h"
19580 /* System header to define __stub macros and hopefully few prototypes,
19581 which can conflict with char gdbm_open(); below. */
19582 #include <assert.h>
19583 /* Override any gcc2 internal prototype to avoid an error. */
19584 /* We use char because int might match the return type of a gcc2
19585 builtin and then its argument prototype would still apply. */
19591 /* The GNU C library defines this for functions which it implements
19592 to always fail with ENOSYS. Some functions are actually named
19593 something starting with __ and the normal name is an alias. */
19594 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
19602 if { (eval echo configure:19603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19604 eval "ac_cv_func_gdbm_open=yes"
19606 echo "configure: failed program was:" >&5
19607 cat conftest.$ac_ext >&5
19609 eval "ac_cv_func_gdbm_open=no"
19614 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
19615 echo "$ac_t""yes" 1>&6
19618 echo "$ac_t""no" 1>&6
19620 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
19621 echo "configure:19622: checking for gdbm_open in -lgdbm" >&5
19622 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
19623 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19624 echo $ac_n "(cached) $ac_c" 1>&6
19626 ac_save_LIBS="$LIBS"
19627 LIBS="-lgdbm $LIBS"
19628 cat > conftest.$ac_ext <<EOF
19629 #line 19630 "configure"
19630 #include "confdefs.h"
19631 /* Override any gcc2 internal prototype to avoid an error. */
19632 /* We use char because int might match the return type of a gcc2
19633 builtin and then its argument prototype would still apply. */
19640 if { (eval echo configure:19641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19642 eval "ac_cv_lib_$ac_lib_var=yes"
19644 echo "configure: failed program was:" >&5
19645 cat conftest.$ac_ext >&5
19647 eval "ac_cv_lib_$ac_lib_var=no"
19650 LIBS="$ac_save_LIBS"
19653 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19654 echo "$ac_t""yes" 1>&6
19655 ol_cv_lib_gdbm=-lgdbm
19657 echo "$ac_t""no" 1>&6
19668 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
19671 for ac_hdr in gdbm.h
19673 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19674 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19675 echo "configure:19676: checking for $ac_hdr" >&5
19676 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19677 echo $ac_n "(cached) $ac_c" 1>&6
19679 cat > conftest.$ac_ext <<EOF
19680 #line 19681 "configure"
19681 #include "confdefs.h"
19684 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19685 { (eval echo configure:19686: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19686 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19687 if test -z "$ac_err"; then
19689 eval "ac_cv_header_$ac_safe=yes"
19692 echo "configure: failed program was:" >&5
19693 cat conftest.$ac_ext >&5
19695 eval "ac_cv_header_$ac_safe=no"
19699 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19700 echo "$ac_t""yes" 1>&6
19701 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19702 cat >> confdefs.h <<EOF
19703 #define $ac_tr_hdr 1
19707 echo "$ac_t""no" 1>&6
19711 echo $ac_n "checking for db""... $ac_c" 1>&6
19712 echo "configure:19713: checking for db" >&5
19713 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
19714 echo $ac_n "(cached) $ac_c" 1>&6
19717 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
19725 echo "$ac_t""$ol_cv_gdbm" 1>&6
19726 if test $ol_cv_gdbm = yes ; then
19727 cat >> confdefs.h <<\EOF
19728 #define HAVE_GDBM 1
19734 if test $ol_cv_gdbm = yes ; then
19736 ol_with_ldbm_api=gdbm
19738 if test $ol_cv_lib_gdbm != yes ; then
19739 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
19744 if test $ol_with_ldbm_api = ndbm ; then
19745 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
19746 echo "configure:19747: checking for NDBM library" >&5
19747 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
19748 echo $ac_n "(cached) $ac_c" 1>&6
19751 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
19752 echo "configure:19753: checking for dbm_open" >&5
19753 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
19754 echo $ac_n "(cached) $ac_c" 1>&6
19756 cat > conftest.$ac_ext <<EOF
19757 #line 19758 "configure"
19758 #include "confdefs.h"
19759 /* System header to define __stub macros and hopefully few prototypes,
19760 which can conflict with char dbm_open(); below. */
19761 #include <assert.h>
19762 /* Override any gcc2 internal prototype to avoid an error. */
19763 /* We use char because int might match the return type of a gcc2
19764 builtin and then its argument prototype would still apply. */
19770 /* The GNU C library defines this for functions which it implements
19771 to always fail with ENOSYS. Some functions are actually named
19772 something starting with __ and the normal name is an alias. */
19773 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
19781 if { (eval echo configure:19782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19783 eval "ac_cv_func_dbm_open=yes"
19785 echo "configure: failed program was:" >&5
19786 cat conftest.$ac_ext >&5
19788 eval "ac_cv_func_dbm_open=no"
19793 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
19794 echo "$ac_t""yes" 1>&6
19797 echo "$ac_t""no" 1>&6
19799 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
19800 echo "configure:19801: checking for dbm_open in -lndbm" >&5
19801 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
19802 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19803 echo $ac_n "(cached) $ac_c" 1>&6
19805 ac_save_LIBS="$LIBS"
19806 LIBS="-lndbm $LIBS"
19807 cat > conftest.$ac_ext <<EOF
19808 #line 19809 "configure"
19809 #include "confdefs.h"
19810 /* Override any gcc2 internal prototype to avoid an error. */
19811 /* We use char because int might match the return type of a gcc2
19812 builtin and then its argument prototype would still apply. */
19819 if { (eval echo configure:19820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19821 eval "ac_cv_lib_$ac_lib_var=yes"
19823 echo "configure: failed program was:" >&5
19824 cat conftest.$ac_ext >&5
19826 eval "ac_cv_lib_$ac_lib_var=no"
19829 LIBS="$ac_save_LIBS"
19832 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19833 echo "$ac_t""yes" 1>&6
19834 ol_cv_lib_ndbm=-lndbm
19836 echo "$ac_t""no" 1>&6
19838 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
19839 echo "configure:19840: checking for dbm_open in -ldbm" >&5
19840 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
19841 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19842 echo $ac_n "(cached) $ac_c" 1>&6
19844 ac_save_LIBS="$LIBS"
19846 cat > conftest.$ac_ext <<EOF
19847 #line 19848 "configure"
19848 #include "confdefs.h"
19849 /* Override any gcc2 internal prototype to avoid an error. */
19850 /* We use char because int might match the return type of a gcc2
19851 builtin and then its argument prototype would still apply. */
19858 if { (eval echo configure:19859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19860 eval "ac_cv_lib_$ac_lib_var=yes"
19862 echo "configure: failed program was:" >&5
19863 cat conftest.$ac_ext >&5
19865 eval "ac_cv_lib_$ac_lib_var=no"
19868 LIBS="$ac_save_LIBS"
19871 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19872 echo "$ac_t""yes" 1>&6
19873 ol_cv_lib_ndbm=-ldbm
19875 echo "$ac_t""no" 1>&6
19888 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
19891 for ac_hdr in ndbm.h
19893 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19894 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19895 echo "configure:19896: checking for $ac_hdr" >&5
19896 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19897 echo $ac_n "(cached) $ac_c" 1>&6
19899 cat > conftest.$ac_ext <<EOF
19900 #line 19901 "configure"
19901 #include "confdefs.h"
19904 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19905 { (eval echo configure:19906: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19906 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19907 if test -z "$ac_err"; then
19909 eval "ac_cv_header_$ac_safe=yes"
19912 echo "configure: failed program was:" >&5
19913 cat conftest.$ac_ext >&5
19915 eval "ac_cv_header_$ac_safe=no"
19919 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19920 echo "$ac_t""yes" 1>&6
19921 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19922 cat >> confdefs.h <<EOF
19923 #define $ac_tr_hdr 1
19927 echo "$ac_t""no" 1>&6
19931 echo $ac_n "checking for db""... $ac_c" 1>&6
19932 echo "configure:19933: checking for db" >&5
19933 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
19934 echo $ac_n "(cached) $ac_c" 1>&6
19937 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
19945 echo "$ac_t""$ol_cv_ndbm" 1>&6
19946 if test $ol_cv_ndbm = yes ; then
19947 cat >> confdefs.h <<\EOF
19948 #define HAVE_NDBM 1
19954 if test $ol_cv_ndbm = yes ; then
19956 ol_with_ldbm_api=ndbm
19958 if test $ol_cv_lib_ndbm != yes ; then
19959 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
19964 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
19965 echo "configure: warning: could not find suitable LDBM backend" 1>&2
19966 if test $ol_enable_ldbm = yes ; then
19967 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
19970 echo "configure: warning: disabling LDBM" 1>&2
19975 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
19976 BUILD_LIBS_DYNAMIC=shared
19977 cat >> confdefs.h <<\EOF
19978 #define LDAP_LIBS_DYNAMIC 1
19983 BUILD_LIBS_DYNAMIC=static
19987 if test $ol_enable_wrappers != no ; then
19988 for ac_hdr in tcpd.h
19990 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19991 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19992 echo "configure:19993: checking for $ac_hdr" >&5
19993 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19994 echo $ac_n "(cached) $ac_c" 1>&6
19996 cat > conftest.$ac_ext <<EOF
19997 #line 19998 "configure"
19998 #include "confdefs.h"
20001 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20002 { (eval echo configure:20003: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20003 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20004 if test -z "$ac_err"; then
20006 eval "ac_cv_header_$ac_safe=yes"
20009 echo "configure: failed program was:" >&5
20010 cat conftest.$ac_ext >&5
20012 eval "ac_cv_header_$ac_safe=no"
20016 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20017 echo "$ac_t""yes" 1>&6
20018 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20019 cat >> confdefs.h <<EOF
20020 #define $ac_tr_hdr 1
20023 echo $ac_n "checking for TCP wrappers library""... $ac_c" 1>&6
20024 echo "configure:20025: checking for TCP wrappers library" >&5
20026 LIBS="$LIBS -lwrap"
20027 cat > conftest.$ac_ext <<EOF
20028 #line 20029 "configure"
20029 #include "confdefs.h"
20032 int allow_severity = 0;
20033 int deny_severity = 0;
20035 struct request_info *req;
20043 if { (eval echo configure:20044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20045 echo "$ac_t""-lwrap" 1>&6
20049 echo "configure: failed program was:" >&5
20050 cat conftest.$ac_ext >&5
20054 cat > conftest.$ac_ext <<EOF
20055 #line 20056 "configure"
20056 #include "confdefs.h"
20059 int allow_severity = 0;
20060 int deny_severity = 0;
20062 struct request_info *req;
20070 if { (eval echo configure:20071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20072 echo "$ac_t""-lwrap -lnsl" 1>&6
20074 LIBS="$save_LIBS -lnsl"
20076 echo "configure: failed program was:" >&5
20077 cat conftest.$ac_ext >&5
20080 echo "$ac_t""no" 1>&6
20088 echo "$ac_t""no" 1>&6
20094 if test $have_wrappers = yes ; then
20095 cat >> confdefs.h <<\EOF
20096 #define HAVE_TCPD 1
20100 elif test $ol_enable_wrappers = yes ; then
20101 { echo "configure: error: could not find TCP wrappers, select apppropriate options or disable" 1>&2; exit 1; }
20103 echo "configure: warning: could not find TCP wrappers, support disabled" 1>&2
20108 if test $ol_enable_syslog != no ; then
20109 echo $ac_n "checking for openlog""... $ac_c" 1>&6
20110 echo "configure:20111: checking for openlog" >&5
20111 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
20112 echo $ac_n "(cached) $ac_c" 1>&6
20114 cat > conftest.$ac_ext <<EOF
20115 #line 20116 "configure"
20116 #include "confdefs.h"
20117 /* System header to define __stub macros and hopefully few prototypes,
20118 which can conflict with char openlog(); below. */
20119 #include <assert.h>
20120 /* Override any gcc2 internal prototype to avoid an error. */
20121 /* We use char because int might match the return type of a gcc2
20122 builtin and then its argument prototype would still apply. */
20128 /* The GNU C library defines this for functions which it implements
20129 to always fail with ENOSYS. Some functions are actually named
20130 something starting with __ and the normal name is an alias. */
20131 #if defined (__stub_openlog) || defined (__stub___openlog)
20139 if { (eval echo configure:20140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20141 eval "ac_cv_func_openlog=yes"
20143 echo "configure: failed program was:" >&5
20144 cat conftest.$ac_ext >&5
20146 eval "ac_cv_func_openlog=no"
20151 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
20152 echo "$ac_t""yes" 1>&6
20155 echo "$ac_t""no" 1>&6
20158 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
20159 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
20161 ol_enable_syslog=$ac_cv_func_openlog
20166 if test $ol_enable_sql != no ; then
20167 for ac_hdr in sql.h sqlext.h
20169 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20170 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20171 echo "configure:20172: checking for $ac_hdr" >&5
20172 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20173 echo $ac_n "(cached) $ac_c" 1>&6
20175 cat > conftest.$ac_ext <<EOF
20176 #line 20177 "configure"
20177 #include "confdefs.h"
20180 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20181 { (eval echo configure:20182: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20182 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20183 if test -z "$ac_err"; then
20185 eval "ac_cv_header_$ac_safe=yes"
20188 echo "configure: failed program was:" >&5
20189 cat conftest.$ac_ext >&5
20191 eval "ac_cv_header_$ac_safe=no"
20195 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20196 echo "$ac_t""yes" 1>&6
20197 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20198 cat >> confdefs.h <<EOF
20199 #define $ac_tr_hdr 1
20203 echo "$ac_t""no" 1>&6
20204 { echo "configure: error: could not locate SQL headers" 1>&2; exit 1; }
20210 echo $ac_n "checking for SQLDriverConnect in -liodbc""... $ac_c" 1>&6
20211 echo "configure:20212: checking for SQLDriverConnect in -liodbc" >&5
20212 ac_lib_var=`echo iodbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
20213 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20214 echo $ac_n "(cached) $ac_c" 1>&6
20216 ac_save_LIBS="$LIBS"
20217 LIBS="-liodbc $LIBS"
20218 cat > conftest.$ac_ext <<EOF
20219 #line 20220 "configure"
20220 #include "confdefs.h"
20221 /* Override any gcc2 internal prototype to avoid an error. */
20222 /* We use char because int might match the return type of a gcc2
20223 builtin and then its argument prototype would still apply. */
20224 char SQLDriverConnect();
20230 if { (eval echo configure:20231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20232 eval "ac_cv_lib_$ac_lib_var=yes"
20234 echo "configure: failed program was:" >&5
20235 cat conftest.$ac_ext >&5
20237 eval "ac_cv_lib_$ac_lib_var=no"
20240 LIBS="$ac_save_LIBS"
20243 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20244 echo "$ac_t""yes" 1>&6
20247 echo "$ac_t""no" 1>&6
20251 if test $have_iodbc = yes ; then
20252 ol_link_sql="-liodbc"
20254 echo $ac_n "checking for SQLDriverConnect in -lodbc""... $ac_c" 1>&6
20255 echo "configure:20256: checking for SQLDriverConnect in -lodbc" >&5
20256 ac_lib_var=`echo odbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
20257 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20258 echo $ac_n "(cached) $ac_c" 1>&6
20260 ac_save_LIBS="$LIBS"
20261 LIBS="-lodbc $LIBS"
20262 cat > conftest.$ac_ext <<EOF
20263 #line 20264 "configure"
20264 #include "confdefs.h"
20265 /* Override any gcc2 internal prototype to avoid an error. */
20266 /* We use char because int might match the return type of a gcc2
20267 builtin and then its argument prototype would still apply. */
20268 char SQLDriverConnect();
20274 if { (eval echo configure:20275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20276 eval "ac_cv_lib_$ac_lib_var=yes"
20278 echo "configure: failed program was:" >&5
20279 cat conftest.$ac_ext >&5
20281 eval "ac_cv_lib_$ac_lib_var=no"
20284 LIBS="$ac_save_LIBS"
20287 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20288 echo "$ac_t""yes" 1>&6
20291 echo "$ac_t""no" 1>&6
20295 if test $have_odbc = yes ; then
20296 ol_link_sql="-lodbc"
20300 if test $ol_link_sql != no ; then
20301 SLAPD_SQL_LIBS="$ol_link_sql"
20303 elif test $ol_enable_sql != auto ; then
20304 { echo "configure: error: could not locate suitable ODBC library" 1>&2; exit 1; }
20310 if test $ol_with_cyrus_sasl != no ; then
20311 for ac_hdr in sasl/sasl.h sasl.h
20313 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20314 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20315 echo "configure:20316: checking for $ac_hdr" >&5
20316 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20317 echo $ac_n "(cached) $ac_c" 1>&6
20319 cat > conftest.$ac_ext <<EOF
20320 #line 20321 "configure"
20321 #include "confdefs.h"
20324 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20325 { (eval echo configure:20326: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20326 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20327 if test -z "$ac_err"; then
20329 eval "ac_cv_header_$ac_safe=yes"
20332 echo "configure: failed program was:" >&5
20333 cat conftest.$ac_ext >&5
20335 eval "ac_cv_header_$ac_safe=no"
20339 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20340 echo "$ac_t""yes" 1>&6
20341 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20342 cat >> confdefs.h <<EOF
20343 #define $ac_tr_hdr 1
20347 echo "$ac_t""no" 1>&6
20352 if test $ac_cv_header_sasl_sasl_h = yes -o $ac_cv_header_sasl_h = yes; then
20353 echo $ac_n "checking for sasl_client_init in -lsasl2""... $ac_c" 1>&6
20354 echo "configure:20355: checking for sasl_client_init in -lsasl2" >&5
20355 ac_lib_var=`echo sasl2'_'sasl_client_init | sed 'y%./+-:%__p__%'`
20356 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20357 echo $ac_n "(cached) $ac_c" 1>&6
20359 ac_save_LIBS="$LIBS"
20360 LIBS="-lsasl2 $LIBS"
20361 cat > conftest.$ac_ext <<EOF
20362 #line 20363 "configure"
20363 #include "confdefs.h"
20364 /* Override any gcc2 internal prototype to avoid an error. */
20365 /* We use char because int might match the return type of a gcc2
20366 builtin and then its argument prototype would still apply. */
20367 char sasl_client_init();
20373 if { (eval echo configure:20374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20375 eval "ac_cv_lib_$ac_lib_var=yes"
20377 echo "configure: failed program was:" >&5
20378 cat conftest.$ac_ext >&5
20380 eval "ac_cv_lib_$ac_lib_var=no"
20383 LIBS="$ac_save_LIBS"
20386 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20387 echo "$ac_t""yes" 1>&6
20388 ol_link_sasl="-lsasl2"
20390 echo "$ac_t""no" 1>&6
20391 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
20392 echo "configure:20393: checking for sasl_client_init in -lsasl" >&5
20393 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
20394 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20395 echo $ac_n "(cached) $ac_c" 1>&6
20397 ac_save_LIBS="$LIBS"
20398 LIBS="-lsasl $LIBS"
20399 cat > conftest.$ac_ext <<EOF
20400 #line 20401 "configure"
20401 #include "confdefs.h"
20402 /* Override any gcc2 internal prototype to avoid an error. */
20403 /* We use char because int might match the return type of a gcc2
20404 builtin and then its argument prototype would still apply. */
20405 char sasl_client_init();
20411 if { (eval echo configure:20412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20413 eval "ac_cv_lib_$ac_lib_var=yes"
20415 echo "configure: failed program was:" >&5
20416 cat conftest.$ac_ext >&5
20418 eval "ac_cv_lib_$ac_lib_var=no"
20421 LIBS="$ac_save_LIBS"
20424 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20425 echo "$ac_t""yes" 1>&6
20426 ol_link_sasl="-lsasl"
20428 echo "$ac_t""no" 1>&6
20435 if test $ol_link_sasl = no ; then
20436 if test $ol_with_cyrus_sasl != auto ; then
20437 { echo "configure: error: Could not locate Cyrus SASL" 1>&2; exit 1; }
20439 echo "configure: warning: Could not locate Cyrus SASL" 1>&2
20440 echo "configure: warning: SASL authentication not supported!" 1>&2
20441 if test $ol_link_tls = no ; then
20442 echo "configure: warning: Strong authentication not supported!" 1>&2
20446 echo $ac_n "checking Cyrus SASL library version""... $ac_c" 1>&6
20447 echo "configure:20448: checking Cyrus SASL library version" >&5
20448 if eval "test \"\${ol_cv_sasl_compat+set}\" = set"; then
20449 echo $ac_n "(cached) $ac_c" 1>&6
20452 cat > conftest.$ac_ext <<EOF
20453 #line 20454 "configure"
20454 #include "confdefs.h"
20456 #ifdef HAVE_SASL_SASL_H
20457 #include <sasl/sasl.h>
20462 /* Require 2.1.15+ */
20463 #if SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
20464 char *__sasl_compat = "2.2+ or better okay (we guess)";
20465 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
20466 && SASL_VERSION_STEP >=15
20467 char *__sasl_compat = "2.1.15+ or better okay";
20471 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20472 egrep "__sasl_compat" >/dev/null 2>&1; then
20474 ol_cv_sasl_compat=yes
20477 ol_cv_sasl_compat=no
20483 echo "$ac_t""$ol_cv_sasl_compat" 1>&6
20485 if test $ol_cv_sasl_compat = no ; then
20487 { echo "configure: error: Cyrus SASL library located but is incompatible" 1>&2; exit 1; }
20490 cat >> confdefs.h <<\EOF
20491 #define HAVE_CYRUS_SASL 1
20494 SASL_LIBS="$ol_link_sasl"
20495 if test $ol_enable_spasswd != no ; then
20496 ol_link_spasswd=yes
20499 ac_save_LIBS="$LIBS"
20500 LIBS="$LIBS $ol_link_sasl"
20501 echo $ac_n "checking for sasl_version""... $ac_c" 1>&6
20502 echo "configure:20503: checking for sasl_version" >&5
20503 if eval "test \"\${ac_cv_func_sasl_version+set}\" = set"; then
20504 echo $ac_n "(cached) $ac_c" 1>&6
20506 cat > conftest.$ac_ext <<EOF
20507 #line 20508 "configure"
20508 #include "confdefs.h"
20509 /* System header to define __stub macros and hopefully few prototypes,
20510 which can conflict with char sasl_version(); below. */
20511 #include <assert.h>
20512 /* Override any gcc2 internal prototype to avoid an error. */
20513 /* We use char because int might match the return type of a gcc2
20514 builtin and then its argument prototype would still apply. */
20515 char sasl_version();
20520 /* The GNU C library defines this for functions which it implements
20521 to always fail with ENOSYS. Some functions are actually named
20522 something starting with __ and the normal name is an alias. */
20523 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
20531 if { (eval echo configure:20532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20533 eval "ac_cv_func_sasl_version=yes"
20535 echo "configure: failed program was:" >&5
20536 cat conftest.$ac_ext >&5
20538 eval "ac_cv_func_sasl_version=no"
20543 if eval "test \"`echo '$ac_cv_func_'sasl_version`\" = yes"; then
20544 echo "$ac_t""yes" 1>&6
20545 cat >> confdefs.h <<\EOF
20546 #define HAVE_SASL_VERSION 1
20550 echo "$ac_t""no" 1>&6
20553 LIBS="$ac_save_LIBS"
20557 echo "configure: warning: SASL authentication not supported!" 1>&2
20558 if test $ol_link_tls = no ; then
20559 echo "configure: warning: Strong authentication not supported!" 1>&2
20563 if test $cross_compiling != yes -a "$ac_cv_mingw32" != yes ; then
20565 if test -r /dev/urandom ; then
20566 dev="/dev/urandom";
20567 elif test -r /idev/urandom ; then
20568 dev="/idev/urandom";
20569 elif test -r /dev/srandom ; then
20570 dev="/dev/srandom";
20571 elif test -r /dev/random ; then
20573 elif test -r /idev/random ; then
20574 dev="/idev/random";
20577 if test $dev != no ; then
20578 cat >> confdefs.h <<EOF
20579 #define URANDOM_DEVICE "$dev"
20586 if test $ol_with_fetch != no ; then
20588 LIBS="-lfetch -lcom_err $LIBS"
20589 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
20590 echo "configure:20591: checking fetch(3) library" >&5
20591 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
20592 echo $ac_n "(cached) $ac_c" 1>&6
20595 cat > conftest.$ac_ext <<EOF
20596 #line 20597 "configure"
20597 #include "confdefs.h"
20599 #include <sys/param.h>
20603 struct url *u = fetchParseURL("file:///");
20606 if { (eval echo configure:20607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20608 ol_cv_lib_fetch=yes
20610 echo "configure: failed program was:" >&5
20611 cat conftest.$ac_ext >&5
20618 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
20620 if test $ol_cv_lib_fetch != no ; then
20621 ol_link_fetch="-lfetch -lcom_err"
20622 cat >> confdefs.h <<\EOF
20623 #define HAVE_FETCH 1
20629 if test $ol_cv_lib_fetch != no ; then
20630 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
20631 ol_link_fetch=freebsd
20633 elif test $ol_with_fetch != auto ; then
20634 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
20638 if test $ol_enable_crypt != no ; then
20640 LIBS="$TLS_LIBS $LIBS"
20642 echo $ac_n "checking for crypt""... $ac_c" 1>&6
20643 echo "configure:20644: checking for crypt" >&5
20644 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
20645 echo $ac_n "(cached) $ac_c" 1>&6
20647 cat > conftest.$ac_ext <<EOF
20648 #line 20649 "configure"
20649 #include "confdefs.h"
20650 /* System header to define __stub macros and hopefully few prototypes,
20651 which can conflict with char crypt(); below. */
20652 #include <assert.h>
20653 /* Override any gcc2 internal prototype to avoid an error. */
20654 /* We use char because int might match the return type of a gcc2
20655 builtin and then its argument prototype would still apply. */
20661 /* The GNU C library defines this for functions which it implements
20662 to always fail with ENOSYS. Some functions are actually named
20663 something starting with __ and the normal name is an alias. */
20664 #if defined (__stub_crypt) || defined (__stub___crypt)
20672 if { (eval echo configure:20673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20674 eval "ac_cv_func_crypt=yes"
20676 echo "configure: failed program was:" >&5
20677 cat conftest.$ac_ext >&5
20679 eval "ac_cv_func_crypt=no"
20684 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
20685 echo "$ac_t""yes" 1>&6
20688 echo "$ac_t""no" 1>&6
20691 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
20692 echo "configure:20693: checking for crypt in -lcrypt" >&5
20693 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
20694 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20695 echo $ac_n "(cached) $ac_c" 1>&6
20697 ac_save_LIBS="$LIBS"
20698 LIBS="-lcrypt $LIBS"
20699 cat > conftest.$ac_ext <<EOF
20700 #line 20701 "configure"
20701 #include "confdefs.h"
20702 /* Override any gcc2 internal prototype to avoid an error. */
20703 /* We use char because int might match the return type of a gcc2
20704 builtin and then its argument prototype would still apply. */
20711 if { (eval echo configure:20712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20713 eval "ac_cv_lib_$ac_lib_var=yes"
20715 echo "configure: failed program was:" >&5
20716 cat conftest.$ac_ext >&5
20718 eval "ac_cv_lib_$ac_lib_var=no"
20721 LIBS="$ac_save_LIBS"
20724 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20725 echo "$ac_t""yes" 1>&6
20726 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
20729 echo "$ac_t""no" 1>&6
20738 if test $have_crypt = yes ; then
20739 cat >> confdefs.h <<\EOF
20740 #define HAVE_CRYPT 1
20744 echo "configure: warning: could not find crypt" 1>&2
20745 if test $ol_enable_crypt = yes ; then
20746 { echo "configure: error: could not find crypt, select appropriate options or disable" 1>&2; exit 1; }
20749 echo "configure: warning: disabling crypt support" 1>&2
20754 if test $ol_enable_proctitle != no ; then
20755 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
20756 echo "configure:20757: checking for setproctitle" >&5
20757 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
20758 echo $ac_n "(cached) $ac_c" 1>&6
20760 cat > conftest.$ac_ext <<EOF
20761 #line 20762 "configure"
20762 #include "confdefs.h"
20763 /* System header to define __stub macros and hopefully few prototypes,
20764 which can conflict with char setproctitle(); below. */
20765 #include <assert.h>
20766 /* Override any gcc2 internal prototype to avoid an error. */
20767 /* We use char because int might match the return type of a gcc2
20768 builtin and then its argument prototype would still apply. */
20769 char setproctitle();
20774 /* The GNU C library defines this for functions which it implements
20775 to always fail with ENOSYS. Some functions are actually named
20776 something starting with __ and the normal name is an alias. */
20777 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
20785 if { (eval echo configure:20786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20787 eval "ac_cv_func_setproctitle=yes"
20789 echo "configure: failed program was:" >&5
20790 cat conftest.$ac_ext >&5
20792 eval "ac_cv_func_setproctitle=no"
20797 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
20798 echo "$ac_t""yes" 1>&6
20799 have_setproctitle=yes
20801 echo "$ac_t""no" 1>&6
20803 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
20804 echo "configure:20805: checking for setproctitle in -lutil" >&5
20805 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
20806 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20807 echo $ac_n "(cached) $ac_c" 1>&6
20809 ac_save_LIBS="$LIBS"
20810 LIBS="-lutil $LIBS"
20811 cat > conftest.$ac_ext <<EOF
20812 #line 20813 "configure"
20813 #include "confdefs.h"
20814 /* Override any gcc2 internal prototype to avoid an error. */
20815 /* We use char because int might match the return type of a gcc2
20816 builtin and then its argument prototype would still apply. */
20817 char setproctitle();
20823 if { (eval echo configure:20824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20825 eval "ac_cv_lib_$ac_lib_var=yes"
20827 echo "configure: failed program was:" >&5
20828 cat conftest.$ac_ext >&5
20830 eval "ac_cv_lib_$ac_lib_var=no"
20833 LIBS="$ac_save_LIBS"
20836 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20837 echo "$ac_t""yes" 1>&6
20838 have_setproctitle=yes
20839 LUTIL_LIBS="$LUTIL_LIBS -lutil"
20841 echo "$ac_t""no" 1>&6
20842 have_setproctitle=no
20843 LIBOBJS="$LIBOBJS setproctitle.o"
20844 LIBSRCS="$LIBSRCS setproctitle.c"
20850 if test $have_setproctitle = yes ; then
20851 cat >> confdefs.h <<\EOF
20852 #define HAVE_SETPROCTITLE 1
20858 if test $ol_enable_slp != no ; then
20859 for ac_hdr in slp.h
20861 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20862 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20863 echo "configure:20864: checking for $ac_hdr" >&5
20864 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20865 echo $ac_n "(cached) $ac_c" 1>&6
20867 cat > conftest.$ac_ext <<EOF
20868 #line 20869 "configure"
20869 #include "confdefs.h"
20872 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20873 { (eval echo configure:20874: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20874 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20875 if test -z "$ac_err"; then
20877 eval "ac_cv_header_$ac_safe=yes"
20880 echo "configure: failed program was:" >&5
20881 cat conftest.$ac_ext >&5
20883 eval "ac_cv_header_$ac_safe=no"
20887 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20888 echo "$ac_t""yes" 1>&6
20889 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20890 cat >> confdefs.h <<EOF
20891 #define $ac_tr_hdr 1
20895 echo "$ac_t""no" 1>&6
20900 if test $ac_cv_header_slp_h = yes ; then
20901 echo $ac_n "checking for SLPOpen in -lslp""... $ac_c" 1>&6
20902 echo "configure:20903: checking for SLPOpen in -lslp" >&5
20903 ac_lib_var=`echo slp'_'SLPOpen | sed 'y%./+-:%__p__%'`
20904 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20905 echo $ac_n "(cached) $ac_c" 1>&6
20907 ac_save_LIBS="$LIBS"
20909 cat > conftest.$ac_ext <<EOF
20910 #line 20911 "configure"
20911 #include "confdefs.h"
20912 /* Override any gcc2 internal prototype to avoid an error. */
20913 /* We use char because int might match the return type of a gcc2
20914 builtin and then its argument prototype would still apply. */
20921 if { (eval echo configure:20922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20923 eval "ac_cv_lib_$ac_lib_var=yes"
20925 echo "configure: failed program was:" >&5
20926 cat conftest.$ac_ext >&5
20928 eval "ac_cv_lib_$ac_lib_var=no"
20931 LIBS="$ac_save_LIBS"
20934 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20935 echo "$ac_t""yes" 1>&6
20938 echo "$ac_t""no" 1>&6
20942 if test $have_slp = yes ; then
20943 cat >> confdefs.h <<\EOF
20947 SLAPD_SLP_LIBS=-lslp
20950 elif test $ol_enable_slp = yes ; then
20951 { echo "configure: error: SLP not found" 1>&2; exit 1; }
20956 echo $ac_n "checking long long""... $ac_c" 1>&6
20957 echo "configure:20958: checking long long" >&5
20958 if eval "test \"\${ol_cv_type_long_long+set}\" = set"; then
20959 echo $ac_n "(cached) $ac_c" 1>&6
20962 cat > conftest.$ac_ext <<EOF
20963 #line 20964 "configure"
20964 #include "confdefs.h"
20970 if { (eval echo configure:20971: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20972 ol_cv_type_long_long=yes
20974 echo "configure: failed program was:" >&5
20975 cat conftest.$ac_ext >&5
20977 ol_cv_type_long_long=no
20982 echo "$ac_t""$ol_cv_type_long_long" 1>&6
20983 if test $ol_cv_type_long_long = yes; then
20984 cat >> confdefs.h <<\EOF
20985 #define HAVE_LONG_LONG 1
20990 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
20991 echo "configure:20992: checking for ANSI C header files" >&5
20992 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
20993 echo $ac_n "(cached) $ac_c" 1>&6
20995 cat > conftest.$ac_ext <<EOF
20996 #line 20997 "configure"
20997 #include "confdefs.h"
20998 #include <stdlib.h>
20999 #include <stdarg.h>
21000 #include <string.h>
21003 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21004 { (eval echo configure:21005: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21005 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21006 if test -z "$ac_err"; then
21008 ac_cv_header_stdc=yes
21011 echo "configure: failed program was:" >&5
21012 cat conftest.$ac_ext >&5
21014 ac_cv_header_stdc=no
21018 if test $ac_cv_header_stdc = yes; then
21019 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21020 cat > conftest.$ac_ext <<EOF
21021 #line 21022 "configure"
21022 #include "confdefs.h"
21023 #include <string.h>
21025 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21026 egrep "memchr" >/dev/null 2>&1; then
21030 ac_cv_header_stdc=no
21036 if test $ac_cv_header_stdc = yes; then
21037 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21038 cat > conftest.$ac_ext <<EOF
21039 #line 21040 "configure"
21040 #include "confdefs.h"
21041 #include <stdlib.h>
21043 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21044 egrep "free" >/dev/null 2>&1; then
21048 ac_cv_header_stdc=no
21054 if test $ac_cv_header_stdc = yes; then
21055 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21056 if test "$cross_compiling" = yes; then
21059 cat > conftest.$ac_ext <<EOF
21060 #line 21061 "configure"
21061 #include "confdefs.h"
21063 #if ((' ' & 0x0FF) == 0x020)
21064 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21065 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21067 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
21068 || ('j' <= (c) && (c) <= 'r') \
21069 || ('s' <= (c) && (c) <= 'z'))
21070 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21072 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21073 int main () { int i; for (i = 0; i < 256; i++)
21074 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
21078 if { (eval echo configure:21079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21082 echo "configure: failed program was:" >&5
21083 cat conftest.$ac_ext >&5
21085 ac_cv_header_stdc=no
21093 echo "$ac_t""$ac_cv_header_stdc" 1>&6
21094 if test $ac_cv_header_stdc = yes; then
21095 cat >> confdefs.h <<\EOF
21096 #define STDC_HEADERS 1
21101 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
21102 echo "configure:21103: checking for mode_t" >&5
21103 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
21104 echo $ac_n "(cached) $ac_c" 1>&6
21106 cat > conftest.$ac_ext <<EOF
21107 #line 21108 "configure"
21108 #include "confdefs.h"
21109 #include <sys/types.h>
21111 #include <stdlib.h>
21112 #include <stddef.h>
21116 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21117 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21119 eval "ac_cv_type_mode_t=yes"
21122 eval "ac_cv_type_mode_t=no"
21127 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
21128 echo "$ac_t""yes" 1>&6
21130 echo "$ac_t""no" 1>&6
21131 cat >> confdefs.h <<EOF
21137 echo $ac_n "checking for off_t""... $ac_c" 1>&6
21138 echo "configure:21139: checking for off_t" >&5
21139 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
21140 echo $ac_n "(cached) $ac_c" 1>&6
21142 cat > conftest.$ac_ext <<EOF
21143 #line 21144 "configure"
21144 #include "confdefs.h"
21145 #include <sys/types.h>
21147 #include <stdlib.h>
21148 #include <stddef.h>
21152 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21153 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21155 eval "ac_cv_type_off_t=yes"
21158 eval "ac_cv_type_off_t=no"
21163 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
21164 echo "$ac_t""yes" 1>&6
21166 echo "$ac_t""no" 1>&6
21167 cat >> confdefs.h <<EOF
21173 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
21174 echo "configure:21175: checking for pid_t" >&5
21175 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
21176 echo $ac_n "(cached) $ac_c" 1>&6
21178 cat > conftest.$ac_ext <<EOF
21179 #line 21180 "configure"
21180 #include "confdefs.h"
21181 #include <sys/types.h>
21183 #include <stdlib.h>
21184 #include <stddef.h>
21188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21189 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21191 eval "ac_cv_type_pid_t=yes"
21194 eval "ac_cv_type_pid_t=no"
21199 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
21200 echo "$ac_t""yes" 1>&6
21202 echo "$ac_t""no" 1>&6
21203 cat >> confdefs.h <<EOF
21209 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
21210 echo "configure:21211: checking for ptrdiff_t" >&5
21211 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
21212 echo $ac_n "(cached) $ac_c" 1>&6
21214 cat > conftest.$ac_ext <<EOF
21215 #line 21216 "configure"
21216 #include "confdefs.h"
21217 #include <stddef.h>
21222 if { (eval echo configure:21223: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21224 am_cv_type_ptrdiff_t=yes
21226 echo "configure: failed program was:" >&5
21227 cat conftest.$ac_ext >&5
21229 am_cv_type_ptrdiff_t=no
21234 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
21235 if test $am_cv_type_ptrdiff_t = yes; then
21236 cat >> confdefs.h <<\EOF
21237 #define HAVE_PTRDIFF_T 1
21242 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
21243 echo "configure:21244: checking return type of signal handlers" >&5
21244 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
21245 echo $ac_n "(cached) $ac_c" 1>&6
21247 cat > conftest.$ac_ext <<EOF
21248 #line 21249 "configure"
21249 #include "confdefs.h"
21250 #include <sys/types.h>
21251 #include <signal.h>
21256 extern "C" void (*signal (int, void (*)(int)))(int);
21258 void (*signal ()) ();
21265 if { (eval echo configure:21266: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21267 ac_cv_type_signal=void
21269 echo "configure: failed program was:" >&5
21270 cat conftest.$ac_ext >&5
21272 ac_cv_type_signal=int
21277 echo "$ac_t""$ac_cv_type_signal" 1>&6
21278 cat >> confdefs.h <<EOF
21279 #define RETSIGTYPE $ac_cv_type_signal
21283 echo $ac_n "checking for size_t""... $ac_c" 1>&6
21284 echo "configure:21285: checking for size_t" >&5
21285 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
21286 echo $ac_n "(cached) $ac_c" 1>&6
21288 cat > conftest.$ac_ext <<EOF
21289 #line 21290 "configure"
21290 #include "confdefs.h"
21291 #include <sys/types.h>
21293 #include <stdlib.h>
21294 #include <stddef.h>
21298 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21299 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21301 eval "ac_cv_type_size_t=yes"
21304 eval "ac_cv_type_size_t=no"
21309 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
21310 echo "$ac_t""yes" 1>&6
21312 echo "$ac_t""no" 1>&6
21313 cat >> confdefs.h <<EOF
21314 #define size_t unsigned
21320 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
21321 echo "configure:21322: checking for ssize_t" >&5
21322 if eval "test \"\${ac_cv_type_ssize_t+set}\" = set"; then
21323 echo $ac_n "(cached) $ac_c" 1>&6
21325 cat > conftest.$ac_ext <<EOF
21326 #line 21327 "configure"
21327 #include "confdefs.h"
21328 #include <sys/types.h>
21330 #include <stdlib.h>
21331 #include <stddef.h>
21335 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21336 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21338 eval "ac_cv_type_ssize_t=yes"
21341 eval "ac_cv_type_ssize_t=no"
21346 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
21347 echo "$ac_t""yes" 1>&6
21349 echo "$ac_t""no" 1>&6
21350 cat >> confdefs.h <<EOF
21351 #define ssize_t signed int
21356 echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
21357 echo "configure:21358: checking for caddr_t" >&5
21358 if eval "test \"\${ac_cv_type_caddr_t+set}\" = set"; then
21359 echo $ac_n "(cached) $ac_c" 1>&6
21361 cat > conftest.$ac_ext <<EOF
21362 #line 21363 "configure"
21363 #include "confdefs.h"
21364 #include <sys/types.h>
21366 #include <stdlib.h>
21367 #include <stddef.h>
21371 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21372 egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21374 eval "ac_cv_type_caddr_t=yes"
21377 eval "ac_cv_type_caddr_t=no"
21382 if eval "test \"`echo '$ac_cv_type_'caddr_t`\" = yes"; then
21383 echo "$ac_t""yes" 1>&6
21385 echo "$ac_t""no" 1>&6
21386 cat >> confdefs.h <<EOF
21387 #define caddr_t char *
21393 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
21394 echo "configure:21395: checking for socklen_t" >&5
21395 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
21396 echo $ac_n "(cached) $ac_c" 1>&6
21398 cat > conftest.$ac_ext <<EOF
21399 #line 21400 "configure"
21400 #include "confdefs.h"
21402 #ifdef HAVE_SYS_TYPES_H
21403 #include <sys/types.h>
21405 #ifdef HAVE_SYS_SOCKET_H
21406 #include <sys/socket.h>
21413 if { (eval echo configure:21414: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21415 ol_cv_type_socklen_t=yes
21417 echo "configure: failed program was:" >&5
21418 cat conftest.$ac_ext >&5
21420 ol_cv_type_socklen_t=no
21425 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
21426 if test $ol_cv_type_socklen_t = no; then
21427 cat >> confdefs.h <<\EOF
21428 #define socklen_t int
21433 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
21434 echo "configure:21435: checking for member st_blksize in aggregate type struct stat" >&5
21435 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
21436 echo $ac_n "(cached) $ac_c" 1>&6
21438 cat > conftest.$ac_ext <<EOF
21439 #line 21440 "configure"
21440 #include "confdefs.h"
21441 #include <sys/types.h>
21442 #include <sys/stat.h>
21444 struct stat foo; foo.st_blksize;
21447 if { (eval echo configure:21448: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21449 ac_cv_c_struct_member_st_blksize=yes
21451 echo "configure: failed program was:" >&5
21452 cat conftest.$ac_ext >&5
21454 ac_cv_c_struct_member_st_blksize=no
21459 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
21460 st_blksize="$ac_cv_c_struct_member_st_blksize"
21461 if test $ac_cv_c_struct_member_st_blksize = yes; then
21462 cat >> confdefs.h <<\EOF
21463 #define HAVE_ST_BLKSIZE 1
21468 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
21469 echo "configure:21470: checking whether time.h and sys/time.h may both be included" >&5
21470 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
21471 echo $ac_n "(cached) $ac_c" 1>&6
21473 cat > conftest.$ac_ext <<EOF
21474 #line 21475 "configure"
21475 #include "confdefs.h"
21476 #include <sys/types.h>
21477 #include <sys/time.h>
21483 if { (eval echo configure:21484: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21485 ac_cv_header_time=yes
21487 echo "configure: failed program was:" >&5
21488 cat conftest.$ac_ext >&5
21490 ac_cv_header_time=no
21495 echo "$ac_t""$ac_cv_header_time" 1>&6
21496 if test $ac_cv_header_time = yes; then
21497 cat >> confdefs.h <<\EOF
21498 #define TIME_WITH_SYS_TIME 1
21503 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
21504 echo "configure:21505: checking whether struct tm is in sys/time.h or time.h" >&5
21505 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
21506 echo $ac_n "(cached) $ac_c" 1>&6
21508 cat > conftest.$ac_ext <<EOF
21509 #line 21510 "configure"
21510 #include "confdefs.h"
21511 #include <sys/types.h>
21514 struct tm *tp; tp->tm_sec;
21517 if { (eval echo configure:21518: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21519 ac_cv_struct_tm=time.h
21521 echo "configure: failed program was:" >&5
21522 cat conftest.$ac_ext >&5
21524 ac_cv_struct_tm=sys/time.h
21529 echo "$ac_t""$ac_cv_struct_tm" 1>&6
21530 if test $ac_cv_struct_tm = sys/time.h; then
21531 cat >> confdefs.h <<\EOF
21532 #define TM_IN_SYS_TIME 1
21537 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
21538 echo "configure:21539: checking for uid_t in sys/types.h" >&5
21539 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
21540 echo $ac_n "(cached) $ac_c" 1>&6
21542 cat > conftest.$ac_ext <<EOF
21543 #line 21544 "configure"
21544 #include "confdefs.h"
21545 #include <sys/types.h>
21547 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21548 egrep "uid_t" >/dev/null 2>&1; then
21550 ac_cv_type_uid_t=yes
21553 ac_cv_type_uid_t=no
21559 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
21560 if test $ac_cv_type_uid_t = no; then
21561 cat >> confdefs.h <<\EOF
21565 cat >> confdefs.h <<\EOF
21571 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
21572 echo "configure:21573: checking for sig_atomic_t" >&5
21573 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
21574 echo $ac_n "(cached) $ac_c" 1>&6
21576 cat > conftest.$ac_ext <<EOF
21577 #line 21578 "configure"
21578 #include "confdefs.h"
21579 #include <signal.h>
21581 sig_atomic_t atomic;
21584 if { (eval echo configure:21585: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21586 ol_cv_type_sig_atomic_t=yes
21588 echo "configure: failed program was:" >&5
21589 cat conftest.$ac_ext >&5
21591 ol_cv_type_sig_atomic_t=no
21596 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
21597 if test $ol_cv_type_sig_atomic_t = no; then
21598 cat >> confdefs.h <<\EOF
21599 #define sig_atomic_t int
21606 # test for pw_gecos in struct passwd
21607 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
21608 echo "configure:21609: checking struct passwd for pw_gecos" >&5
21609 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
21610 echo $ac_n "(cached) $ac_c" 1>&6
21613 cat > conftest.$ac_ext <<EOF
21614 #line 21615 "configure"
21615 #include "confdefs.h"
21620 pwd.pw_gecos = pwd.pw_name;
21624 if { (eval echo configure:21625: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21626 ol_cv_struct_passwd_pw_gecos=yes
21628 echo "configure: failed program was:" >&5
21629 cat conftest.$ac_ext >&5
21631 ol_cv_struct_passwd_pw_gecos=no
21636 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
21637 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
21638 cat >> confdefs.h <<\EOF
21639 #define HAVE_PW_GECOS 1
21644 # test for pw_passwd in struct passwd
21645 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
21646 echo "configure:21647: checking struct passwd for pw_passwd" >&5
21647 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
21648 echo $ac_n "(cached) $ac_c" 1>&6
21651 cat > conftest.$ac_ext <<EOF
21652 #line 21653 "configure"
21653 #include "confdefs.h"
21658 pwd.pw_passwd = pwd.pw_name;
21662 if { (eval echo configure:21663: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21664 ol_cv_struct_passwd_pw_passwd=yes
21666 echo "configure: failed program was:" >&5
21667 cat conftest.$ac_ext >&5
21669 ol_cv_struct_passwd_pw_passwd=no
21674 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
21675 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
21676 cat >> confdefs.h <<\EOF
21677 #define HAVE_PW_PASSWD 1
21683 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
21684 echo "configure:21685: checking if toupper() requires islower()" >&5
21685 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
21686 echo $ac_n "(cached) $ac_c" 1>&6
21689 if test "$cross_compiling" = yes; then
21690 ol_cv_c_upper_lower=safe
21692 cat > conftest.$ac_ext <<EOF
21693 #line 21694 "configure"
21694 #include "confdefs.h"
21699 if ('C' == toupper('C'))
21705 if { (eval echo configure:21706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21707 ol_cv_c_upper_lower=no
21709 echo "configure: failed program was:" >&5
21710 cat conftest.$ac_ext >&5
21712 ol_cv_c_upper_lower=yes
21719 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
21720 if test $ol_cv_c_upper_lower != no ; then
21721 cat >> confdefs.h <<\EOF
21722 #define C_UPPER_LOWER 1
21727 echo $ac_n "checking for working const""... $ac_c" 1>&6
21728 echo "configure:21729: checking for working const" >&5
21729 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
21730 echo $ac_n "(cached) $ac_c" 1>&6
21732 cat > conftest.$ac_ext <<EOF
21733 #line 21734 "configure"
21734 #include "confdefs.h"
21738 /* Ultrix mips cc rejects this. */
21739 typedef int charset[2]; const charset x;
21740 /* SunOS 4.1.1 cc rejects this. */
21741 char const *const *ccp;
21743 /* NEC SVR4.0.2 mips cc rejects this. */
21744 struct point {int x, y;};
21745 static struct point const zero = {0,0};
21746 /* AIX XL C 1.02.0.0 rejects this.
21747 It does not let you subtract one const X* pointer from another in an arm
21748 of an if-expression whose if-part is not a constant expression */
21749 const char *g = "string";
21750 ccp = &g + (g ? g-g : 0);
21751 /* HPUX 7.0 cc rejects these. */
21754 ccp = (char const *const *) p;
21755 { /* SCO 3.2v4 cc rejects this. */
21757 char const *s = 0 ? (char *) 0 : (char const *) 0;
21761 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21762 int x[] = {25, 17};
21763 const int *foo = &x[0];
21766 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21767 typedef const int *iptr;
21771 { /* AIX XL C 1.02.0.0 rejects this saying
21772 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21773 struct s { int j; const int *ap[3]; };
21774 struct s *b; b->j = 5;
21776 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21777 const int foo = 10;
21782 if { (eval echo configure:21783: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21786 echo "configure: failed program was:" >&5
21787 cat conftest.$ac_ext >&5
21794 echo "$ac_t""$ac_cv_c_const" 1>&6
21795 if test $ac_cv_c_const = no; then
21796 cat >> confdefs.h <<\EOF
21802 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
21803 echo "configure:21804: checking if compiler understands volatile" >&5
21804 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
21805 echo $ac_n "(cached) $ac_c" 1>&6
21807 cat > conftest.$ac_ext <<EOF
21808 #line 21809 "configure"
21809 #include "confdefs.h"
21812 volatile int a; int * volatile b = x ? &y : &z;
21813 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
21817 if { (eval echo configure:21818: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21819 ol_cv_c_volatile=yes
21821 echo "configure: failed program was:" >&5
21822 cat conftest.$ac_ext >&5
21824 ol_cv_c_volatile=no
21829 echo "$ac_t""$ol_cv_c_volatile" 1>&6
21830 if test $ol_cv_c_volatile = yes; then
21833 cat >> confdefs.h <<\EOF
21840 if test $cross_compiling = yes ; then
21841 echo "configure: warning: Crossing compiling... all bets are off!" 1>&2
21842 cat >> confdefs.h <<\EOF
21843 #define CROSS_COMPILING 1
21847 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
21848 echo "configure:21849: checking whether byte ordering is bigendian" >&5
21849 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
21850 echo $ac_n "(cached) $ac_c" 1>&6
21852 ac_cv_c_bigendian=unknown
21853 # See if sys/param.h defines the BYTE_ORDER macro.
21854 cat > conftest.$ac_ext <<EOF
21855 #line 21856 "configure"
21856 #include "confdefs.h"
21857 #include <sys/types.h>
21858 #include <sys/param.h>
21861 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
21862 bogus endian macros
21866 if { (eval echo configure:21867: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21868 # It does; now see whether it defined to BIG_ENDIAN or not.
21869 cat > conftest.$ac_ext <<EOF
21870 #line 21871 "configure"
21871 #include "confdefs.h"
21872 #include <sys/types.h>
21873 #include <sys/param.h>
21876 #if BYTE_ORDER != BIG_ENDIAN
21881 if { (eval echo configure:21882: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21883 ac_cv_c_bigendian=yes
21885 echo "configure: failed program was:" >&5
21886 cat conftest.$ac_ext >&5
21888 ac_cv_c_bigendian=no
21892 echo "configure: failed program was:" >&5
21893 cat conftest.$ac_ext >&5
21896 if test $ac_cv_c_bigendian = unknown; then
21897 if test "$cross_compiling" = yes; then
21898 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
21900 cat > conftest.$ac_ext <<EOF
21901 #line 21902 "configure"
21902 #include "confdefs.h"
21904 /* Are we little or big endian? From Harbison&Steele. */
21908 char c[sizeof (long)];
21911 exit (u.c[sizeof (long) - 1] == 1);
21914 if { (eval echo configure:21915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21916 ac_cv_c_bigendian=no
21918 echo "configure: failed program was:" >&5
21919 cat conftest.$ac_ext >&5
21921 ac_cv_c_bigendian=yes
21929 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
21930 if test $ac_cv_c_bigendian = yes; then
21931 cat >> confdefs.h <<\EOF
21932 #define WORDS_BIGENDIAN 1
21939 echo $ac_n "checking size of short""... $ac_c" 1>&6
21940 echo "configure:21941: checking size of short" >&5
21941 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
21942 echo $ac_n "(cached) $ac_c" 1>&6
21944 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
21945 cat > conftest.$ac_ext <<EOF
21946 #line 21947 "configure"
21947 #include "confdefs.h"
21948 #include "confdefs.h"
21949 #include <stdlib.h>
21950 #include <sys/types.h>
21954 switch (0) case 0: case (sizeof (short) == $ac_size):;
21957 if { (eval echo configure:21958: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21959 ac_cv_sizeof_short=$ac_size
21961 echo "configure: failed program was:" >&5
21962 cat conftest.$ac_ext >&5
21965 if test x$ac_cv_sizeof_short != x ; then break; fi
21970 if test x$ac_cv_sizeof_short = x ; then
21971 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
21973 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
21974 cat >> confdefs.h <<EOF
21975 #define SIZEOF_SHORT $ac_cv_sizeof_short
21979 echo $ac_n "checking size of int""... $ac_c" 1>&6
21980 echo "configure:21981: checking size of int" >&5
21981 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
21982 echo $ac_n "(cached) $ac_c" 1>&6
21984 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
21985 cat > conftest.$ac_ext <<EOF
21986 #line 21987 "configure"
21987 #include "confdefs.h"
21988 #include "confdefs.h"
21989 #include <stdlib.h>
21990 #include <sys/types.h>
21994 switch (0) case 0: case (sizeof (int) == $ac_size):;
21997 if { (eval echo configure:21998: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21999 ac_cv_sizeof_int=$ac_size
22001 echo "configure: failed program was:" >&5
22002 cat conftest.$ac_ext >&5
22005 if test x$ac_cv_sizeof_int != x ; then break; fi
22010 if test x$ac_cv_sizeof_int = x ; then
22011 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
22013 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
22014 cat >> confdefs.h <<EOF
22015 #define SIZEOF_INT $ac_cv_sizeof_int
22019 echo $ac_n "checking size of long""... $ac_c" 1>&6
22020 echo "configure:22021: checking size of long" >&5
22021 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
22022 echo $ac_n "(cached) $ac_c" 1>&6
22024 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22025 cat > conftest.$ac_ext <<EOF
22026 #line 22027 "configure"
22027 #include "confdefs.h"
22028 #include "confdefs.h"
22029 #include <stdlib.h>
22030 #include <sys/types.h>
22034 switch (0) case 0: case (sizeof (long) == $ac_size):;
22037 if { (eval echo configure:22038: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22039 ac_cv_sizeof_long=$ac_size
22041 echo "configure: failed program was:" >&5
22042 cat conftest.$ac_ext >&5
22045 if test x$ac_cv_sizeof_long != x ; then break; fi
22050 if test x$ac_cv_sizeof_long = x ; then
22051 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
22053 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
22054 cat >> confdefs.h <<EOF
22055 #define SIZEOF_LONG $ac_cv_sizeof_long
22059 echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
22060 echo "configure:22061: checking size of wchar_t" >&5
22061 if eval "test \"\${ac_cv_sizeof_wchar_t+set}\" = set"; then
22062 echo $ac_n "(cached) $ac_c" 1>&6
22064 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22065 cat > conftest.$ac_ext <<EOF
22066 #line 22067 "configure"
22067 #include "confdefs.h"
22068 #include "confdefs.h"
22069 #include <stdlib.h>
22070 #include <sys/types.h>
22074 switch (0) case 0: case (sizeof (wchar_t) == $ac_size):;
22077 if { (eval echo configure:22078: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22079 ac_cv_sizeof_wchar_t=$ac_size
22081 echo "configure: failed program was:" >&5
22082 cat conftest.$ac_ext >&5
22085 if test x$ac_cv_sizeof_wchar_t != x ; then break; fi
22090 if test x$ac_cv_sizeof_wchar_t = x ; then
22091 { echo "configure: error: cannot determine a size for wchar_t" 1>&2; exit 1; }
22093 echo "$ac_t""$ac_cv_sizeof_wchar_t" 1>&6
22094 cat >> confdefs.h <<EOF
22095 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
22100 if test "$ac_cv_sizeof_int" -lt 4 ; then
22101 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
22103 cat >> confdefs.h <<\EOF
22104 #define LBER_INT_T long
22108 cat >> confdefs.h <<\EOF
22109 #define LBER_INT_T int
22114 cat >> confdefs.h <<\EOF
22115 #define LBER_LEN_T long
22118 cat >> confdefs.h <<\EOF
22119 #define LBER_SOCKET_T int
22122 cat >> confdefs.h <<\EOF
22123 #define LBER_TAG_T long
22127 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
22128 echo "configure:22129: checking for 8-bit clean memcmp" >&5
22129 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
22130 echo $ac_n "(cached) $ac_c" 1>&6
22132 if test "$cross_compiling" = yes; then
22133 ac_cv_func_memcmp_clean=no
22135 cat > conftest.$ac_ext <<EOF
22136 #line 22137 "configure"
22137 #include "confdefs.h"
22141 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
22142 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
22146 if { (eval echo configure:22147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
22148 ac_cv_func_memcmp_clean=yes
22150 echo "configure: failed program was:" >&5
22151 cat conftest.$ac_ext >&5
22153 ac_cv_func_memcmp_clean=no
22160 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
22161 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
22163 echo $ac_n "checking for strftime""... $ac_c" 1>&6
22164 echo "configure:22165: checking for strftime" >&5
22165 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
22166 echo $ac_n "(cached) $ac_c" 1>&6
22168 cat > conftest.$ac_ext <<EOF
22169 #line 22170 "configure"
22170 #include "confdefs.h"
22171 /* System header to define __stub macros and hopefully few prototypes,
22172 which can conflict with char strftime(); below. */
22173 #include <assert.h>
22174 /* Override any gcc2 internal prototype to avoid an error. */
22175 /* We use char because int might match the return type of a gcc2
22176 builtin and then its argument prototype would still apply. */
22182 /* The GNU C library defines this for functions which it implements
22183 to always fail with ENOSYS. Some functions are actually named
22184 something starting with __ and the normal name is an alias. */
22185 #if defined (__stub_strftime) || defined (__stub___strftime)
22193 if { (eval echo configure:22194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22195 eval "ac_cv_func_strftime=yes"
22197 echo "configure: failed program was:" >&5
22198 cat conftest.$ac_ext >&5
22200 eval "ac_cv_func_strftime=no"
22205 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
22206 echo "$ac_t""yes" 1>&6
22207 cat >> confdefs.h <<\EOF
22208 #define HAVE_STRFTIME 1
22212 echo "$ac_t""no" 1>&6
22213 # strftime is in -lintl on SCO UNIX.
22214 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
22215 echo "configure:22216: checking for strftime in -lintl" >&5
22216 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
22217 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
22218 echo $ac_n "(cached) $ac_c" 1>&6
22220 ac_save_LIBS="$LIBS"
22221 LIBS="-lintl $LIBS"
22222 cat > conftest.$ac_ext <<EOF
22223 #line 22224 "configure"
22224 #include "confdefs.h"
22225 /* Override any gcc2 internal prototype to avoid an error. */
22226 /* We use char because int might match the return type of a gcc2
22227 builtin and then its argument prototype would still apply. */
22234 if { (eval echo configure:22235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22236 eval "ac_cv_lib_$ac_lib_var=yes"
22238 echo "configure: failed program was:" >&5
22239 cat conftest.$ac_ext >&5
22241 eval "ac_cv_lib_$ac_lib_var=no"
22244 LIBS="$ac_save_LIBS"
22247 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
22248 echo "$ac_t""yes" 1>&6
22249 cat >> confdefs.h <<\EOF
22250 #define HAVE_STRFTIME 1
22253 LIBS="-lintl $LIBS"
22255 echo "$ac_t""no" 1>&6
22261 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
22262 echo "configure:22263: checking for inet_aton()" >&5
22263 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
22264 echo $ac_n "(cached) $ac_c" 1>&6
22266 cat > conftest.$ac_ext <<EOF
22267 #line 22268 "configure"
22268 #include "confdefs.h"
22270 #ifdef HAVE_SYS_TYPES_H
22271 # include <sys/types.h>
22273 #ifdef HAVE_SYS_SOCKET_H
22274 # include <sys/socket.h>
22275 # ifdef HAVE_SYS_SELECT_H
22276 # include <sys/select.h>
22278 # include <netinet/in.h>
22279 # ifdef HAVE_ARPA_INET_H
22280 # include <arpa/inet.h>
22286 int rc = inet_aton( "255.255.255.255", &in );
22289 if { (eval echo configure:22290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22291 ol_cv_func_inet_aton=yes
22293 echo "configure: failed program was:" >&5
22294 cat conftest.$ac_ext >&5
22296 ol_cv_func_inet_aton=no
22301 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
22302 if test $ol_cv_func_inet_aton != no; then
22303 cat >> confdefs.h <<\EOF
22304 #define HAVE_INET_ATON 1
22310 echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
22311 echo "configure:22312: checking for _spawnlp" >&5
22312 if eval "test \"\${ac_cv_func__spawnlp+set}\" = set"; then
22313 echo $ac_n "(cached) $ac_c" 1>&6
22315 cat > conftest.$ac_ext <<EOF
22316 #line 22317 "configure"
22317 #include "confdefs.h"
22318 /* System header to define __stub macros and hopefully few prototypes,
22319 which can conflict with char _spawnlp(); below. */
22320 #include <assert.h>
22321 /* Override any gcc2 internal prototype to avoid an error. */
22322 /* We use char because int might match the return type of a gcc2
22323 builtin and then its argument prototype would still apply. */
22329 /* The GNU C library defines this for functions which it implements
22330 to always fail with ENOSYS. Some functions are actually named
22331 something starting with __ and the normal name is an alias. */
22332 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
22340 if { (eval echo configure:22341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22342 eval "ac_cv_func__spawnlp=yes"
22344 echo "configure: failed program was:" >&5
22345 cat conftest.$ac_ext >&5
22347 eval "ac_cv_func__spawnlp=no"
22352 if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
22353 echo "$ac_t""yes" 1>&6
22354 cat >> confdefs.h <<\EOF
22355 #define HAVE_SPAWNLP 1
22359 echo "$ac_t""no" 1>&6
22363 echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
22364 echo "configure:22365: checking for _snprintf" >&5
22365 if eval "test \"\${ac_cv_func__snprintf+set}\" = set"; then
22366 echo $ac_n "(cached) $ac_c" 1>&6
22368 cat > conftest.$ac_ext <<EOF
22369 #line 22370 "configure"
22370 #include "confdefs.h"
22371 /* System header to define __stub macros and hopefully few prototypes,
22372 which can conflict with char _snprintf(); below. */
22373 #include <assert.h>
22374 /* Override any gcc2 internal prototype to avoid an error. */
22375 /* We use char because int might match the return type of a gcc2
22376 builtin and then its argument prototype would still apply. */
22382 /* The GNU C library defines this for functions which it implements
22383 to always fail with ENOSYS. Some functions are actually named
22384 something starting with __ and the normal name is an alias. */
22385 #if defined (__stub__snprintf) || defined (__stub____snprintf)
22393 if { (eval echo configure:22394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22395 eval "ac_cv_func__snprintf=yes"
22397 echo "configure: failed program was:" >&5
22398 cat conftest.$ac_ext >&5
22400 eval "ac_cv_func__snprintf=no"
22405 if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
22406 echo "$ac_t""yes" 1>&6
22407 ac_cv_func_snprintf=yes
22408 cat >> confdefs.h <<\EOF
22409 #define snprintf _snprintf
22414 echo "$ac_t""no" 1>&6
22418 echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
22419 echo "configure:22420: checking for _vsnprintf" >&5
22420 if eval "test \"\${ac_cv_func__vsnprintf+set}\" = set"; then
22421 echo $ac_n "(cached) $ac_c" 1>&6
22423 cat > conftest.$ac_ext <<EOF
22424 #line 22425 "configure"
22425 #include "confdefs.h"
22426 /* System header to define __stub macros and hopefully few prototypes,
22427 which can conflict with char _vsnprintf(); below. */
22428 #include <assert.h>
22429 /* Override any gcc2 internal prototype to avoid an error. */
22430 /* We use char because int might match the return type of a gcc2
22431 builtin and then its argument prototype would still apply. */
22437 /* The GNU C library defines this for functions which it implements
22438 to always fail with ENOSYS. Some functions are actually named
22439 something starting with __ and the normal name is an alias. */
22440 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
22448 if { (eval echo configure:22449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22450 eval "ac_cv_func__vsnprintf=yes"
22452 echo "configure: failed program was:" >&5
22453 cat conftest.$ac_ext >&5
22455 eval "ac_cv_func__vsnprintf=no"
22460 if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
22461 echo "$ac_t""yes" 1>&6
22462 ac_cv_func_vsnprintf=yes
22463 cat >> confdefs.h <<\EOF
22464 #define vsnprintf _vsnprintf
22469 echo "$ac_t""no" 1>&6
22473 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
22474 echo "configure:22475: checking for vprintf" >&5
22475 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
22476 echo $ac_n "(cached) $ac_c" 1>&6
22478 cat > conftest.$ac_ext <<EOF
22479 #line 22480 "configure"
22480 #include "confdefs.h"
22481 /* System header to define __stub macros and hopefully few prototypes,
22482 which can conflict with char vprintf(); below. */
22483 #include <assert.h>
22484 /* Override any gcc2 internal prototype to avoid an error. */
22485 /* We use char because int might match the return type of a gcc2
22486 builtin and then its argument prototype would still apply. */
22492 /* The GNU C library defines this for functions which it implements
22493 to always fail with ENOSYS. Some functions are actually named
22494 something starting with __ and the normal name is an alias. */
22495 #if defined (__stub_vprintf) || defined (__stub___vprintf)
22503 if { (eval echo configure:22504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22505 eval "ac_cv_func_vprintf=yes"
22507 echo "configure: failed program was:" >&5
22508 cat conftest.$ac_ext >&5
22510 eval "ac_cv_func_vprintf=no"
22515 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
22516 echo "$ac_t""yes" 1>&6
22517 cat >> confdefs.h <<\EOF
22518 #define HAVE_VPRINTF 1
22522 echo "$ac_t""no" 1>&6
22525 if test "$ac_cv_func_vprintf" != yes; then
22526 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
22527 echo "configure:22528: checking for _doprnt" >&5
22528 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
22529 echo $ac_n "(cached) $ac_c" 1>&6
22531 cat > conftest.$ac_ext <<EOF
22532 #line 22533 "configure"
22533 #include "confdefs.h"
22534 /* System header to define __stub macros and hopefully few prototypes,
22535 which can conflict with char _doprnt(); below. */
22536 #include <assert.h>
22537 /* Override any gcc2 internal prototype to avoid an error. */
22538 /* We use char because int might match the return type of a gcc2
22539 builtin and then its argument prototype would still apply. */
22545 /* The GNU C library defines this for functions which it implements
22546 to always fail with ENOSYS. Some functions are actually named
22547 something starting with __ and the normal name is an alias. */
22548 #if defined (__stub__doprnt) || defined (__stub____doprnt)
22556 if { (eval echo configure:22557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22558 eval "ac_cv_func__doprnt=yes"
22560 echo "configure: failed program was:" >&5
22561 cat conftest.$ac_ext >&5
22563 eval "ac_cv_func__doprnt=no"
22568 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
22569 echo "$ac_t""yes" 1>&6
22570 cat >> confdefs.h <<\EOF
22571 #define HAVE_DOPRNT 1
22575 echo "$ac_t""no" 1>&6
22581 if test $ac_cv_func_vprintf = yes ; then
22582 for ac_func in snprintf vsnprintf
22584 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22585 echo "configure:22586: checking for $ac_func" >&5
22586 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
22587 echo $ac_n "(cached) $ac_c" 1>&6
22589 cat > conftest.$ac_ext <<EOF
22590 #line 22591 "configure"
22591 #include "confdefs.h"
22592 /* System header to define __stub macros and hopefully few prototypes,
22593 which can conflict with char $ac_func(); below. */
22594 #include <assert.h>
22595 /* Override any gcc2 internal prototype to avoid an error. */
22596 /* We use char because int might match the return type of a gcc2
22597 builtin and then its argument prototype would still apply. */
22603 /* The GNU C library defines this for functions which it implements
22604 to always fail with ENOSYS. Some functions are actually named
22605 something starting with __ and the normal name is an alias. */
22606 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22614 if { (eval echo configure:22615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22616 eval "ac_cv_func_$ac_func=yes"
22618 echo "configure: failed program was:" >&5
22619 cat conftest.$ac_ext >&5
22621 eval "ac_cv_func_$ac_func=no"
22626 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22627 echo "$ac_t""yes" 1>&6
22628 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22629 cat >> confdefs.h <<EOF
22630 #define $ac_tr_func 1
22634 echo "$ac_t""no" 1>&6
22699 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22700 echo "configure:22701: checking for $ac_func" >&5
22701 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
22702 echo $ac_n "(cached) $ac_c" 1>&6
22704 cat > conftest.$ac_ext <<EOF
22705 #line 22706 "configure"
22706 #include "confdefs.h"
22707 /* System header to define __stub macros and hopefully few prototypes,
22708 which can conflict with char $ac_func(); below. */
22709 #include <assert.h>
22710 /* Override any gcc2 internal prototype to avoid an error. */
22711 /* We use char because int might match the return type of a gcc2
22712 builtin and then its argument prototype would still apply. */
22718 /* The GNU C library defines this for functions which it implements
22719 to always fail with ENOSYS. Some functions are actually named
22720 something starting with __ and the normal name is an alias. */
22721 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22729 if { (eval echo configure:22730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22731 eval "ac_cv_func_$ac_func=yes"
22733 echo "configure: failed program was:" >&5
22734 cat conftest.$ac_ext >&5
22736 eval "ac_cv_func_$ac_func=no"
22741 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22742 echo "$ac_t""yes" 1>&6
22743 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22744 cat >> confdefs.h <<EOF
22745 #define $ac_tr_func 1
22749 echo "$ac_t""no" 1>&6
22754 for ac_func in getopt getpeereid
22756 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22757 echo "configure:22758: checking for $ac_func" >&5
22758 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
22759 echo $ac_n "(cached) $ac_c" 1>&6
22761 cat > conftest.$ac_ext <<EOF
22762 #line 22763 "configure"
22763 #include "confdefs.h"
22764 /* System header to define __stub macros and hopefully few prototypes,
22765 which can conflict with char $ac_func(); below. */
22766 #include <assert.h>
22767 /* Override any gcc2 internal prototype to avoid an error. */
22768 /* We use char because int might match the return type of a gcc2
22769 builtin and then its argument prototype would still apply. */
22775 /* The GNU C library defines this for functions which it implements
22776 to always fail with ENOSYS. Some functions are actually named
22777 something starting with __ and the normal name is an alias. */
22778 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22786 if { (eval echo configure:22787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22788 eval "ac_cv_func_$ac_func=yes"
22790 echo "configure: failed program was:" >&5
22791 cat conftest.$ac_ext >&5
22793 eval "ac_cv_func_$ac_func=no"
22798 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22799 echo "$ac_t""yes" 1>&6
22800 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22801 cat >> confdefs.h <<EOF
22802 #define $ac_tr_func 1
22806 echo "$ac_t""no" 1>&6
22807 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
22813 if test "$ac_cv_func_getopt" != yes; then
22814 LIBSRCS="$LIBSRCS getopt.c"
22816 if test "$ac_cv_func_getpeereid" != yes; then
22817 echo $ac_n "checking for msg_accrights in msghdr""... $ac_c" 1>&6
22818 echo "configure:22819: checking for msg_accrights in msghdr" >&5
22819 if eval "test \"\${ol_cv_msghdr_msg_accrights+set}\" = set"; then
22820 echo $ac_n "(cached) $ac_c" 1>&6
22822 cat > conftest.$ac_ext <<EOF
22823 #line 22824 "configure"
22824 #include "confdefs.h"
22825 #include <sys/socket.h>
22827 struct msghdr m; m.msg_accrightslen=0
22830 if { (eval echo configure:22831: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22832 ol_cv_msghdr_msg_accrights=yes
22834 echo "configure: failed program was:" >&5
22835 cat conftest.$ac_ext >&5
22837 ol_cv_msghdr_msg_accrights=no
22843 echo "$ac_t""$ol_cv_msghdr_msg_accrights" 1>&6
22844 if test $ol_cv_msghdr_msg_accrights = "yes" ; then
22845 cat >> confdefs.h <<\EOF
22846 #define HAVE_MSGHDR_MSG_ACCRIGHTS 1
22851 LIBSRCS="$LIBSRCS getpeereid.c"
22853 if test "$ac_cv_func_snprintf" != yes -o "$ac_cv_func_vsnprintf" != yes; then
22854 if test "$ac_cv_func_snprintf" != yes; then
22855 cat >> confdefs.h <<\EOF
22856 #define snprintf ber_pvt_snprintf
22860 if test "$ac_cv_func_vsnprintf" != yes; then
22861 cat >> confdefs.h <<\EOF
22862 #define vsnprintf ber_pvt_vsnprintf
22868 # Check Configuration
22869 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
22870 echo "configure:22871: checking declaration of sys_errlist" >&5
22871 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
22872 echo $ac_n "(cached) $ac_c" 1>&6
22875 cat > conftest.$ac_ext <<EOF
22876 #line 22877 "configure"
22877 #include "confdefs.h"
22880 #include <sys/types.h>
22883 #include <stdlib.h>
22886 char *c = (char *) *sys_errlist
22889 if { (eval echo configure:22890: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22891 ol_cv_dcl_sys_errlist=yes
22892 ol_cv_have_sys_errlist=yes
22894 echo "configure: failed program was:" >&5
22895 cat conftest.$ac_ext >&5
22897 ol_cv_dcl_sys_errlist=no
22902 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
22904 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
22905 if test $ol_cv_dcl_sys_errlist = no ; then
22906 cat >> confdefs.h <<\EOF
22907 #define DECL_SYS_ERRLIST 1
22911 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
22912 echo "configure:22913: checking existence of sys_errlist" >&5
22913 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
22914 echo $ac_n "(cached) $ac_c" 1>&6
22917 cat > conftest.$ac_ext <<EOF
22918 #line 22919 "configure"
22919 #include "confdefs.h"
22922 char *c = (char *) *sys_errlist
22925 if { (eval echo configure:22926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22927 ol_cv_have_sys_errlist=yes
22929 echo "configure: failed program was:" >&5
22930 cat conftest.$ac_ext >&5
22932 ol_cv_have_sys_errlist=no
22937 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
22939 if test $ol_cv_have_sys_errlist = yes ; then
22940 cat >> confdefs.h <<\EOF
22941 #define HAVE_SYS_ERRLIST 1
22948 if test "$ol_enable_slapi" != no ; then
22949 for ac_hdr in ltdl.h
22951 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22952 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22953 echo "configure:22954: checking for $ac_hdr" >&5
22954 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
22955 echo $ac_n "(cached) $ac_c" 1>&6
22957 cat > conftest.$ac_ext <<EOF
22958 #line 22959 "configure"
22959 #include "confdefs.h"
22962 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22963 { (eval echo configure:22964: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22964 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22965 if test -z "$ac_err"; then
22967 eval "ac_cv_header_$ac_safe=yes"
22970 echo "configure: failed program was:" >&5
22971 cat conftest.$ac_ext >&5
22973 eval "ac_cv_header_$ac_safe=no"
22977 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22978 echo "$ac_t""yes" 1>&6
22979 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22980 cat >> confdefs.h <<EOF
22981 #define $ac_tr_hdr 1
22985 echo "$ac_t""no" 1>&6
22990 if test $ac_cv_header_ltdl_h != yes ; then
22991 { echo "configure: error: could not locate <ltdl.h>" 1>&2; exit 1; }
22993 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
22994 echo "configure:22995: checking for lt_dlinit in -lltdl" >&5
22995 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
22996 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
22997 echo $ac_n "(cached) $ac_c" 1>&6
22999 ac_save_LIBS="$LIBS"
23000 LIBS="-lltdl $LIBS"
23001 cat > conftest.$ac_ext <<EOF
23002 #line 23003 "configure"
23003 #include "confdefs.h"
23004 /* Override any gcc2 internal prototype to avoid an error. */
23005 /* We use char because int might match the return type of a gcc2
23006 builtin and then its argument prototype would still apply. */
23013 if { (eval echo configure:23014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23015 eval "ac_cv_lib_$ac_lib_var=yes"
23017 echo "configure: failed program was:" >&5
23018 cat conftest.$ac_ext >&5
23020 eval "ac_cv_lib_$ac_lib_var=no"
23023 LIBS="$ac_save_LIBS"
23026 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
23027 echo "$ac_t""yes" 1>&6
23030 LIBSLAPI=libslapi.a
23031 LIBSLAPITOOLS=../libslapi.a
23032 cat >> confdefs.h <<\EOF
23033 #define HAVE_LIBLTDL 1
23038 echo "$ac_t""no" 1>&6
23039 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
23043 cat >> confdefs.h <<\EOF
23044 #define LDAP_SLAPI 1
23049 if test "$ol_enable_debug" != no ; then
23050 cat >> confdefs.h <<\EOF
23051 #define LDAP_DEBUG 1
23055 if test "$ol_enable_syslog" = yes ; then
23056 cat >> confdefs.h <<\EOF
23057 #define LDAP_SYSLOG 1
23061 if test "$ol_link_kbind" != no ; then
23062 cat >> confdefs.h <<\EOF
23063 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
23067 if test "$ol_enable_proctitle" != no ; then
23068 cat >> confdefs.h <<\EOF
23069 #define LDAP_PROCTITLE 1
23073 if test "$ol_enable_referrals" != no ; then
23074 cat >> confdefs.h <<\EOF
23075 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
23079 if test "$ol_enable_local" != no; then
23080 cat >> confdefs.h <<\EOF
23081 #define LDAP_PF_LOCAL 1
23085 if test "$ol_link_ipv6" != no; then
23086 cat >> confdefs.h <<\EOF
23087 #define LDAP_PF_INET6 1
23091 if test "$ol_enable_cleartext" != no ; then
23092 cat >> confdefs.h <<\EOF
23093 #define SLAPD_CLEARTEXT 1
23097 if test "$ol_enable_crypt" != no ; then
23098 cat >> confdefs.h <<\EOF
23099 #define SLAPD_CRYPT 1
23103 if test "$ol_link_spasswd" != no ; then
23104 cat >> confdefs.h <<\EOF
23105 #define SLAPD_SPASSWD 1
23109 if test "$ol_enable_multimaster" != no ; then
23110 cat >> confdefs.h <<\EOF
23111 #define SLAPD_MULTIMASTER 1
23115 if test "$ol_enable_rlookups" != no ; then
23116 cat >> confdefs.h <<\EOF
23117 #define SLAPD_RLOOKUPS 1
23121 if test "$ol_enable_aci" != no ; then
23122 cat >> confdefs.h <<\EOF
23123 #define SLAPD_ACI_ENABLED 1
23128 if test "$ol_link_modules" != no ; then
23129 cat >> confdefs.h <<\EOF
23130 #define SLAPD_MODULES 1
23134 SLAPD_MODULES_LDFLAGS="-dlopen self"
23137 cat >> confdefs.h <<\EOF
23138 #define SLAPD_MOD_STATIC 1
23141 cat >> confdefs.h <<\EOF
23142 #define SLAPD_MOD_DYNAMIC 2
23146 if test "$ol_enable_bdb" != no ; then
23148 BUILD_BDB=$ol_enable_bdb
23149 if test "$ol_enable_bdb" = mod ; then
23150 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
23151 MFLAG=SLAPD_MOD_DYNAMIC
23153 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
23154 MFLAG=SLAPD_MOD_STATIC
23156 cat >> confdefs.h <<EOF
23157 #define SLAPD_BDB $MFLAG
23162 if test "$ol_enable_dnssrv" != no ; then
23164 BUILD_DNSSRV=$ol_enable_dnssrv
23165 if test "$ol_enable_dnssrv" = mod ; then
23166 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
23167 MFLAG=SLAPD_MOD_DYNAMIC
23169 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
23170 MFLAG=SLAPD_MOD_STATIC
23172 cat >> confdefs.h <<EOF
23173 #define SLAPD_DNSSRV $MFLAG
23178 if test "$ol_enable_hdb" != no ; then
23180 BUILD_HDB=$ol_enable_hdb
23181 if test "$ol_enable_hdb" = mod ; then
23182 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
23183 MFLAG=SLAPD_MOD_DYNAMIC
23185 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
23186 MFLAG=SLAPD_MOD_STATIC
23188 cat >> confdefs.h <<EOF
23189 #define SLAPD_HDB $MFLAG
23194 if test "$ol_enable_ldap" != no ; then
23196 BUILD_LDAP=$ol_enable_ldap
23197 if test "$ol_enable_ldap" = mod ; then
23198 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
23199 MFLAG=SLAPD_MOD_DYNAMIC
23201 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
23202 MFLAG=SLAPD_MOD_STATIC
23204 cat >> confdefs.h <<EOF
23205 #define SLAPD_LDAP $MFLAG
23210 if test "$ol_link_ldbm" != no -a $ol_enable_ldbm != no; then
23212 BUILD_LDBM=$ol_enable_ldbm
23213 if test "$ol_enable_ldbm" = mod ; then
23214 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
23215 MFLAG=SLAPD_MOD_DYNAMIC
23217 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
23218 MFLAG=SLAPD_MOD_STATIC
23220 cat >> confdefs.h <<EOF
23221 #define SLAPD_LDBM $MFLAG
23226 if test "$ol_enable_meta" != no ; then
23228 BUILD_META=$ol_enable_meta
23230 if test "$ol_enable_meta" = mod ; then
23231 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
23232 MFLAG=SLAPD_MOD_DYNAMIC
23234 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
23235 MFLAG=SLAPD_MOD_STATIC
23237 cat >> confdefs.h <<EOF
23238 #define SLAPD_META $MFLAG
23243 if test "$ol_enable_monitor" != no ; then
23245 BUILD_MONITOR=$ol_enable_monitor
23246 if test "$ol_enable_monitor" = mod ; then
23247 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
23248 MFLAG=SLAPD_MOD_DYNAMIC
23250 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
23251 MFLAG=SLAPD_MOD_STATIC
23253 cat >> confdefs.h <<EOF
23254 #define SLAPD_MONITOR $MFLAG
23259 if test "$ol_enable_null" != no ; then
23261 BUILD_NULL=$ol_enable_null
23262 if test "$ol_enable_null" = mod ; then
23263 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
23264 MFLAG=SLAPD_MOD_DYNAMIC
23266 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
23267 MFLAG=SLAPD_MOD_STATIC
23269 cat >> confdefs.h <<EOF
23270 #define SLAPD_NULL $MFLAG
23275 if test "$ol_enable_passwd" != no ; then
23277 BUILD_PASSWD=$ol_enable_passwd
23278 if test "$ol_enable_passwd" = mod ; then
23279 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
23280 MFLAG=SLAPD_MOD_DYNAMIC
23282 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
23283 MFLAG=SLAPD_MOD_STATIC
23285 cat >> confdefs.h <<EOF
23286 #define SLAPD_PASSWD $MFLAG
23291 if test "$ol_link_perl" != no ; then
23293 BUILD_PERL=$ol_enable_perl
23294 if test "$ol_enable_perl" = mod ; then
23295 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
23296 MFLAG=SLAPD_MOD_DYNAMIC
23298 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
23299 MFLAG=SLAPD_MOD_STATIC
23301 cat >> confdefs.h <<EOF
23302 #define SLAPD_PERL $MFLAG
23307 if test "$ol_enable_shell" != no ; then
23308 if test "$ol_link_thread" != no ; then
23309 echo "configure: warning: Use of --without-threads is recommended with back-shell" 1>&2
23312 BUILD_SHELL=$ol_enable_shell
23313 if test "$ol_enable_shell" = mod ; then
23314 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
23315 MFLAG=SLAPD_MOD_DYNAMIC
23317 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
23318 MFLAG=SLAPD_MOD_STATIC
23320 cat >> confdefs.h <<EOF
23321 #define SLAPD_SHELL $MFLAG
23326 if test "$ol_link_sql" != no ; then
23328 BUILD_SQL=$ol_enable_sql
23329 if test "$ol_enable_sql" = mod; then
23330 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
23331 MFLAG=SLAPD_MOD_DYNAMIC
23333 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
23334 MFLAG=SLAPD_MOD_STATIC
23336 cat >> confdefs.h <<EOF
23337 #define SLAPD_SQL $MFLAG
23342 if test "$ol_enable_dyngroup" != no ; then
23343 BUILD_DYNGROUP=$ol_enable_dyngroup
23344 if test "$ol_enable_dyngroup" = mod ; then
23345 MFLAG=SLAPD_MOD_DYNAMIC
23346 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
23348 MFLAG=SLAPD_MOD_STATIC
23350 cat >> confdefs.h <<EOF
23351 #define SLAPD_OVER_DYNGROUP $MFLAG
23356 if test "$ol_enable_proxycache" != no ; then
23357 BUILD_PROXYCACHE=$ol_enable_proxycache
23358 if test "$ol_enable_proxycache" = mod ; then
23359 MFLAG=SLAPD_MOD_DYNAMIC
23360 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
23362 MFLAG=SLAPD_MOD_STATIC
23364 cat >> confdefs.h <<EOF
23365 #define SLAPD_OVER_PROXYCACHE $MFLAG
23370 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
23371 $BUILD_SLAPD = yes ; then
23375 if test "$ol_enable_rewrite" != no ; then
23376 cat >> confdefs.h <<\EOF
23377 #define ENABLE_REWRITE 1
23383 if test "$ol_enable_slapi" != no ; then
23384 cat >> confdefs.h <<\EOF
23385 #define ENABLE_SLAPI 1
23389 SLAPD_SLAPI_DEPEND=libslapi.a
23394 if test "$ac_cv_mingw32" = yes ; then
23396 SLAPD_MODULES_LDFLAGS=
23401 if test -z "$SLAPD_STATIC_BACKENDS"; then
23402 SLAPD_NO_STATIC='#'
23467 # Check whether --with-xxinstall or --without-xxinstall was given.
23468 if test "${with_xxinstall+set}" = set; then
23469 withval="$with_xxinstall"
23477 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
23479 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23480 # Let make expand exec_prefix.
23481 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23483 # Any assignment to VPATH causes Sun make to only execute
23484 # the first set of double-colon rules, so remove it if not needed.
23485 # If there is a colon in the path, we need to keep it.
23486 if test "x$srcdir" = x.; then
23487 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
23490 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
23492 DEFS=-DHAVE_CONFIG_H
23494 # Without the "./", some shells look in PATH for config.status.
23495 : ${CONFIG_STATUS=./config.status}
23497 echo creating $CONFIG_STATUS
23498 rm -f $CONFIG_STATUS
23499 cat > $CONFIG_STATUS <<EOF
23501 # Generated automatically by configure.
23502 # Run this file to recreate the current configuration.
23503 # This directory was configured as follows,
23504 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23506 # $0 $ac_configure_args
23508 # Compiler output produced by configure, useful for debugging
23509 # configure, is in ./config.log if it exists.
23511 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
23514 case "\$ac_option" in
23515 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23516 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
23517 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
23518 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
23519 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
23521 -help | --help | --hel | --he | --h)
23522 echo "\$ac_cs_usage"; exit 0 ;;
23523 *) echo "\$ac_cs_usage"; exit 1 ;;
23527 ac_given_srcdir=$srcdir
23528 ac_given_INSTALL="$INSTALL"
23530 trap 'rm -fr `echo "\
23531 Makefile:build/top.mk:Makefile.in:build/dir.mk \
23532 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
23533 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
23534 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
23535 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
23536 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
23537 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
23538 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
23539 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
23540 include/Makefile:build/top.mk:include/Makefile.in \
23541 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
23542 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
23543 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
23544 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
23545 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
23546 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
23547 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
23548 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
23549 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
23550 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
23551 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
23552 servers/slapd/back-hdb/Makefile:build/top.mk:servers/slapd/back-hdb/Makefile.in:build/mod.mk \
23553 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
23554 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
23555 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
23556 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
23557 servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk \
23558 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
23559 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
23560 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
23561 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
23562 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
23563 servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk \
23564 servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk \
23565 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
23566 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
23568 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
23569 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
23571 cat >> $CONFIG_STATUS <<EOF
23573 # Protect against being on the right side of a sed subst in config.status.
23574 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
23575 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
23579 s%@CFLAGS@%$CFLAGS%g
23580 s%@CPPFLAGS@%$CPPFLAGS%g
23581 s%@CXXFLAGS@%$CXXFLAGS%g
23582 s%@FFLAGS@%$FFLAGS%g
23584 s%@LDFLAGS@%$LDFLAGS%g
23586 s%@exec_prefix@%$exec_prefix%g
23587 s%@prefix@%$prefix%g
23588 s%@program_transform_name@%$program_transform_name%g
23589 s%@bindir@%$bindir%g
23590 s%@sbindir@%$sbindir%g
23591 s%@libexecdir@%$libexecdir%g
23592 s%@datadir@%$datadir%g
23593 s%@sysconfdir@%$sysconfdir%g
23594 s%@sharedstatedir@%$sharedstatedir%g
23595 s%@localstatedir@%$localstatedir%g
23596 s%@libdir@%$libdir%g
23597 s%@includedir@%$includedir%g
23598 s%@oldincludedir@%$oldincludedir%g
23599 s%@infodir@%$infodir%g
23600 s%@mandir@%$mandir%g
23602 s%@host_alias@%$host_alias%g
23603 s%@host_cpu@%$host_cpu%g
23604 s%@host_vendor@%$host_vendor%g
23605 s%@host_os@%$host_os%g
23606 s%@target@%$target%g
23607 s%@target_alias@%$target_alias%g
23608 s%@target_cpu@%$target_cpu%g
23609 s%@target_vendor@%$target_vendor%g
23610 s%@target_os@%$target_os%g
23612 s%@build_alias@%$build_alias%g
23613 s%@build_cpu@%$build_cpu%g
23614 s%@build_vendor@%$build_vendor%g
23615 s%@build_os@%$build_os%g
23616 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
23617 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
23618 s%@INSTALL_DATA@%$INSTALL_DATA%g
23619 s%@PACKAGE@%$PACKAGE%g
23620 s%@VERSION@%$VERSION%g
23621 s%@ACLOCAL@%$ACLOCAL%g
23622 s%@AUTOCONF@%$AUTOCONF%g
23623 s%@AUTOMAKE@%$AUTOMAKE%g
23624 s%@AUTOHEADER@%$AUTOHEADER%g
23625 s%@MAKEINFO@%$MAKEINFO%g
23626 s%@install_sh@%$install_sh%g
23629 s%@AMTARFLAGS@%$AMTARFLAGS%g
23630 s%@SET_MAKE@%$SET_MAKE%g
23631 s%@OPENLDAP_LIBRELEASE@%$OPENLDAP_LIBRELEASE%g
23632 s%@OPENLDAP_LIBVERSION@%$OPENLDAP_LIBVERSION%g
23633 s%@OPENLDAP_RELEASE_DATE@%$OPENLDAP_RELEASE_DATE%g
23634 s%@top_builddir@%$top_builddir%g
23635 s%@ldap_subdir@%$ldap_subdir%g
23639 s%@OBJEXT@%$OBJEXT%g
23640 s%@EXEEXT@%$EXEEXT%g
23642 s%@RANLIB@%$RANLIB%g
23644 s%@DLLTOOL@%$DLLTOOL%g
23646 s%@OBJDUMP@%$OBJDUMP%g
23648 s%@LIBTOOL@%$LIBTOOL%g
23650 s%@PERLBIN@%$PERLBIN%g
23651 s%@OL_MKDEP@%$OL_MKDEP%g
23652 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
23653 s%@LTSTATIC@%$LTSTATIC%g
23654 s%@LIBOBJS@%$LIBOBJS%g
23655 s%@LIBSRCS@%$LIBSRCS%g
23657 s%@WITH_TLS@%$WITH_TLS%g
23658 s%@BUILD_LIBS_DYNAMIC@%$BUILD_LIBS_DYNAMIC%g
23659 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
23660 s%@BUILD_SLAPI@%$BUILD_SLAPI%g
23661 s%@SLAPD_SLAPI_DEPEND@%$SLAPD_SLAPI_DEPEND%g
23662 s%@BUILD_BDB@%$BUILD_BDB%g
23663 s%@BUILD_DNSSRV@%$BUILD_DNSSRV%g
23664 s%@BUILD_HDB@%$BUILD_HDB%g
23665 s%@BUILD_LDAP@%$BUILD_LDAP%g
23666 s%@BUILD_LDBM@%$BUILD_LDBM%g
23667 s%@BUILD_META@%$BUILD_META%g
23668 s%@BUILD_MONITOR@%$BUILD_MONITOR%g
23669 s%@BUILD_NULL@%$BUILD_NULL%g
23670 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
23671 s%@BUILD_PERL@%$BUILD_PERL%g
23672 s%@BUILD_SHELL@%$BUILD_SHELL%g
23673 s%@BUILD_SQL@%$BUILD_SQL%g
23674 s%@BUILD_DYNGROUP@%$BUILD_DYNGROUP%g
23675 s%@BUILD_PROXYCACHE@%$BUILD_PROXYCACHE%g
23676 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
23677 s%@LDAP_LIBS@%$LDAP_LIBS%g
23678 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
23679 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
23680 s%@LDBM_LIBS@%$LDBM_LIBS%g
23681 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
23682 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
23683 s%@WRAP_LIBS@%$WRAP_LIBS%g
23684 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
23685 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
23686 s%@SLAPD_NO_STATIC@%$SLAPD_NO_STATIC%g
23687 s%@SLAPD_STATIC_BACKENDS@%$SLAPD_STATIC_BACKENDS%g
23688 s%@SLAPD_DYNAMIC_BACKENDS@%$SLAPD_DYNAMIC_BACKENDS%g
23689 s%@SLAPD_DYNAMIC_OVERLAYS@%$SLAPD_DYNAMIC_OVERLAYS%g
23690 s%@PERL_CPPFLAGS@%$PERL_CPPFLAGS%g
23691 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
23692 s%@MOD_PERL_LDFLAGS@%$MOD_PERL_LDFLAGS%g
23693 s%@KRB4_LIBS@%$KRB4_LIBS%g
23694 s%@KRB5_LIBS@%$KRB5_LIBS%g
23695 s%@SASL_LIBS@%$SASL_LIBS%g
23696 s%@TLS_LIBS@%$TLS_LIBS%g
23697 s%@MODULES_LIBS@%$MODULES_LIBS%g
23698 s%@SLAPI_LIBS@%$SLAPI_LIBS%g
23699 s%@LIBSLAPI@%$LIBSLAPI%g
23700 s%@LIBSLAPITOOLS@%$LIBSLAPITOOLS%g
23701 s%@AUTH_LIBS@%$AUTH_LIBS%g
23702 s%@SLAPD_SLP_LIBS@%$SLAPD_SLP_LIBS%g
23703 s%@SLAPD_SQL_LDFLAGS@%$SLAPD_SQL_LDFLAGS%g
23704 s%@SLAPD_SQL_LIBS@%$SLAPD_SQL_LIBS%g
23705 s%@SLAPD_SQL_INCLUDES@%$SLAPD_SQL_INCLUDES%g
23710 cat >> $CONFIG_STATUS <<\EOF
23712 # Split the substitutions into bite-sized pieces for seds with
23713 # small command number limits, like on Digital OSF/1 and HP-UX.
23714 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
23715 ac_file=1 # Number of current file.
23716 ac_beg=1 # First line for current file.
23717 ac_end=$ac_max_sed_cmds # Line after last line for current file.
23720 while $ac_more_lines; do
23721 if test $ac_beg -gt 1; then
23722 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
23724 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
23726 if test ! -s conftest.s$ac_file; then
23727 ac_more_lines=false
23728 rm -f conftest.s$ac_file
23730 if test -z "$ac_sed_cmds"; then
23731 ac_sed_cmds="sed -f conftest.s$ac_file"
23733 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
23735 ac_file=`expr $ac_file + 1`
23737 ac_end=`expr $ac_end + $ac_max_sed_cmds`
23740 if test -z "$ac_sed_cmds"; then
23745 cat >> $CONFIG_STATUS <<EOF
23747 CONFIG_FILES=\${CONFIG_FILES-"\
23748 Makefile:build/top.mk:Makefile.in:build/dir.mk \
23749 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
23750 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
23751 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
23752 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
23753 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
23754 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
23755 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
23756 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
23757 include/Makefile:build/top.mk:include/Makefile.in \
23758 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
23759 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
23760 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
23761 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
23762 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
23763 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
23764 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
23765 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
23766 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
23767 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
23768 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
23769 servers/slapd/back-hdb/Makefile:build/top.mk:servers/slapd/back-hdb/Makefile.in:build/mod.mk \
23770 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
23771 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
23772 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
23773 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
23774 servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk \
23775 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
23776 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
23777 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
23778 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
23779 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
23780 servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk \
23781 servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk \
23782 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
23783 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
23785 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
23788 cat >> $CONFIG_STATUS <<\EOF
23789 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
23790 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23792 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
23793 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
23794 *) ac_file_in="${ac_file}.in" ;;
23797 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
23799 # Remove last slash and all that follows it. Not all systems have dirname.
23800 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
23801 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
23802 # The file is in a subdirectory.
23803 test ! -d "$ac_dir" && mkdir "$ac_dir"
23804 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
23805 # A "../" for each directory in $ac_dir_suffix.
23806 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
23808 ac_dir_suffix= ac_dots=
23811 case "$ac_given_srcdir" in
23813 if test -z "$ac_dots"; then top_srcdir=.
23814 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
23815 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
23816 *) # Relative path.
23817 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
23818 top_srcdir="$ac_dots$ac_given_srcdir" ;;
23821 case "$ac_given_INSTALL" in
23822 [/$]*) INSTALL="$ac_given_INSTALL" ;;
23823 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
23826 echo creating "$ac_file"
23828 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
23830 *[Mm]akefile*) ac_comsub="1i\\
23831 # $configure_input" ;;
23835 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
23837 s%@configure_input@%$configure_input%g
23838 s%@srcdir@%$srcdir%g
23839 s%@top_srcdir@%$top_srcdir%g
23840 s%@INSTALL@%$INSTALL%g
23841 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
23845 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23846 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23848 # ac_d sets the value in "#define NAME VALUE" lines.
23849 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23850 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
23853 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
23854 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23855 ac_uB='\([ ]\)%\1#\2define\3'
23858 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23859 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23860 ac_eB='$%\1#\2define\3'
23864 if test "${CONFIG_HEADERS+set}" != set; then
23866 cat >> $CONFIG_STATUS <<EOF
23867 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
23869 cat >> $CONFIG_STATUS <<\EOF
23871 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
23872 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23874 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
23875 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
23876 *) ac_file_in="${ac_file}.in" ;;
23879 echo creating $ac_file
23881 rm -f conftest.frag conftest.in conftest.out
23882 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
23883 cat $ac_file_inputs > conftest.in
23887 # Transform confdefs.h into a sed script conftest.vals that substitutes
23888 # the proper values into config.h.in to produce config.h. And first:
23889 # Protect against being on the right side of a sed subst in config.status.
23890 # Protect against being in an unquoted here document in config.status.
23891 rm -f conftest.vals
23892 cat > conftest.hdr <<\EOF
23895 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
23899 sed -n -f conftest.hdr confdefs.h > conftest.vals
23902 # This sed command replaces #undef with comments. This is necessary, for
23903 # example, in the case of _POSIX_SOURCE, which is predefined and required
23904 # on some systems where configure will not decide to define it.
23905 cat >> conftest.vals <<\EOF
23906 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
23909 # Break up conftest.vals because some shells have a limit on
23910 # the size of here documents, and old seds have small limits too.
23912 rm -f conftest.tail
23915 ac_lines=`grep -c . conftest.vals`
23916 # grep -c gives empty output for an empty file on some AIX systems.
23917 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
23918 # Write a limited-size here document to conftest.frag.
23919 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
23920 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
23922 sed -f conftest.frag conftest.in > conftest.out
23924 mv conftest.out conftest.in
23925 ' >> $CONFIG_STATUS
23926 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
23927 rm -f conftest.vals
23928 mv conftest.tail conftest.vals
23930 rm -f conftest.vals
23932 cat >> $CONFIG_STATUS <<\EOF
23933 rm -f conftest.frag conftest.h
23934 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
23935 cat conftest.in >> conftest.h
23937 if cmp -s $ac_file conftest.h 2>/dev/null; then
23938 echo "$ac_file is unchanged"
23941 # Remove last slash and all that follows it. Not all systems have dirname.
23942 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
23943 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
23944 # The file is in a subdirectory.
23945 test ! -d "$ac_dir" && mkdir "$ac_dir"
23948 mv conftest.h $ac_file
23953 cat >> $CONFIG_STATUS <<EOF
23956 cat >> $CONFIG_STATUS <<\EOF
23960 echo Please run \"make depend\" to build dependencies
23964 chmod +x $CONFIG_STATUS
23965 rm -fr confdefs* $ac_clean_files
23966 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1